MutDocument.h
gehe zur Dokumentation dieser Datei
00001 
00037 // ---------------------------------------------------------------------------
00038 // headers
00039 // ---------------------------------------------------------------------------
00040 
00041 #ifndef MUTABOR_MUT_DOCUMENT_H
00042 #define MUTABOR_MUT_DOCUMENT_H
00043 
00044 // For compilers that support precompilation, includes "wx/wx.h".
00045 #include "Defs.h"
00046 #include <wx/wxprec.h>
00047 
00048 #ifdef __BORLANDC__
00049     #pragma hdrstop
00050 #endif
00051 
00052 #include <wx/wx.h>
00053 #include <wx/docview.h>
00054 
00055 namespace mutaborGUI {
00056         c
00057 
00058 
00059         class MutDocument : public wxDocument
00060         {
00061                 DECLARE_DYNAMIC_CLASS(MutDocument)
00062                         public:
00063                 MutDocument();
00064                 virtual ~MutDocument();
00065 
00066                 bool DoSaveDocument(const wxString& filename);
00067 
00068                 bool DoOpenDocument(const wxString& filename);
00069                 virtual bool OnNewDocument();
00070 
00071                 virtual bool IsModified(void) const;
00072                 virtual void Modify(bool mod);
00073 
00074 
00075                 // save and load methods go here (backup for eventual usage)
00076 #if wxUSE_STD_IOSTREAM
00077                 virtual wxSTD ostream& SaveObject(wxSTD ostream& stream);
00078                 virtual wxSTD istream& LoadObject(wxSTD istream& stream);
00079 #else
00080                 virtual wxOutputStream& SaveObject(wxOutputStream& stream);
00081                 virtual wxInputStream& LoadObject(wxInputStream& stream);
00082 #endif
00083 
00084                 virtual bool OnCreate(const wxString& path, long flags);
00085                 // event handlers go here
00086                 void CmdNewView(wxCommandEvent& event);
00087                 void OnNewViewUpdateUI(wxUpdateUIEvent& event);
00088                 void CmdUpdateAllViews(wxCommandEvent& event);
00089         private:
00090                 DECLARE_EVENT_TABLE()
00091                         
00092         };
00093 
00094 }
00095 
00096 #endif
00097 

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