]>
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
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/docview.h"
19 // Define a new application
20 class MyApp
: public wxApp
27 wxFrame
*CreateChildFrame(wxDocument
*doc
, wxView
*view
, bool isCanvas
);
30 wxDocManager
* m_docManager
;
38 class MyFrame
: public wxDocParentFrame
40 DECLARE_CLASS(MyFrame
)
44 // This pointer only needed if in single window mode
47 MyFrame(wxDocManager
*manager
, wxFrame
*frame
, wxWindowID id
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
50 MyCanvas
* CreateCanvas(DrawingView
*, wxFrame
*parent
);
53 void OnAbout(wxCommandEvent
& event
);
57 extern MyFrame
*GetMainFrame();
60 #define DOCVIEW_ABOUT wxID_ABOUT
62 extern bool singleWindowMode
;