MutView.h
gehe zur Dokumentation dieser Datei
00001 
00039 #ifndef MUTABOR_MUT_VIEW_H
00040 #define MUTABOR_MUT_VIEW_H
00041 // ---------------------------------------------------------------------------
00042 // headers
00043 // --------------------------------------------------------------------------
00044 
00045 
00046 // For compilers that support precompilation, includes "wx/wx.h".
00047 #include "Defs.h"
00048 #include <wx/wxprec.h>
00049 
00050 #ifdef __BORLANDC__
00051     #pragma hdrstop
00052 #endif
00053 #include <wx/wx.h>
00054 #include <wx/docview.h>
00055 #include "MutFrame.h"
00056 
00057 
00058 namespace mutaborGUI {
00069         class MutView : public wxView
00070         {
00071 
00072                 friend class MutDocument;
00073         public:
00074                 MutView();
00075                 virtual ~MutView();
00076 
00077                 // message handler methods go here
00078                 // virtual override
00079                 virtual bool OnCreate(wxDocument* doc, long flags);
00080                 // virtual override
00081                 virtual bool OnClose(bool deleteWindow = true);
00082                 // virtual override
00083                 virtual void OnDraw(wxDC* dc);
00084                 // virtual override
00085                 virtual void OnUpdate(wxView* sender, wxObject* hint = NULL);
00086                 
00087                 virtual void OnActivateView(bool activate, wxView * activeView, wxView * deactiveView);
00088 
00089 
00090                 MutEditFile * GetTextsw() { return textsw; }
00091                 void SetTextsw(MutEditFile * t) { textsw = t; }
00092                 MutFrame * GetMutFrame() { 
00093                         wxWindow * f = GetFrame();
00094                         if (f) {
00095                                 wxASSERT(dynamic_cast<MutFrame *>(f));
00096                         }
00097                         return (MutFrame *) f; 
00098                 }
00099                 
00100                 DECLARE_EVENT_TABLE()
00101         protected:
00102                 MutEditFile * textsw;
00103                 
00104                 DECLARE_DYNAMIC_CLASS(MutView)
00105         };
00106 
00107 }
00108 #endif
00109 

Erzeugt am Sun Aug 21 2011 10:51:55 für Mutabor von doxygen 1.7.4