]>
git.saurik.com Git - wxWidgets.git/blob - samples/docview/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__
19 #include "wx/docview.h"
23 // Define a new application
24 class MyApp
: public wxApp
31 wxFrame
*CreateChildFrame(wxDocument
*doc
, wxView
*view
, bool isCanvas
);
34 wxDocManager
* m_docManager
;
41 class MyFrame
: public wxDocParentFrame
43 DECLARE_CLASS(MyFrame
)
47 // This pointer only needed if in single window mode
50 MyFrame(wxDocManager
*manager
, wxFrame
*frame
, wxWindowID id
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
53 void OnAbout(wxCommandEvent
& event
);
54 MyCanvas
*CreateCanvas(wxView
*view
, wxFrame
*parent
);
59 extern MyFrame
*GetMainFrame(void);
62 #define DOCVIEW_ABOUT 2
64 extern bool singleWindowMode
;