]>
git.saurik.com Git - wxWidgets.git/blob - samples/docvwmdi/docview.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Document/view demo
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
13 // #pragma interface "docview.h"
16 #ifndef __DOCVIEWSAMPLEH__
17 #define __DOCVIEWSAMPLEH__
20 #include "wx/docview.h"
21 #include "wx/docmdi.h"
25 // Define a new application
26 class MyApp
: public wxApp
33 wxMDIChildFrame
*CreateChildFrame(wxDocument
*doc
, wxView
*view
, bool isCanvas
);
36 wxDocManager
* m_docManager
;
43 class MyFrame
: public wxDocMDIParentFrame
45 DECLARE_CLASS(MyFrame
)
49 MyFrame(wxDocManager
*manager
, wxFrame
*frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
52 void OnAbout(wxCommandEvent
& event
);
53 MyCanvas
*CreateCanvas(wxView
*view
, wxMDIChildFrame
*parent
);
58 extern MyFrame
*GetMainFrame(void);
61 #define DOCVIEW_ABOUT 2
63 extern bool singleWindowMode
;