]>
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 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __DOCVIEWSAMPLEH__
13 #define __DOCVIEWSAMPLEH__
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
;
37 class MyFrame
: public wxDocParentFrame
39 DECLARE_CLASS(MyFrame
)
43 // This pointer only needed if in single window mode
46 MyFrame(wxDocManager
*manager
, wxFrame
*frame
, wxWindowID id
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
49 void OnAbout(wxCommandEvent
& event
);
50 MyCanvas
*CreateCanvas(wxView
*view
, wxFrame
*parent
);
55 extern MyFrame
*GetMainFrame(void);
58 #define DOCVIEW_ABOUT wxID_ABOUT
60 extern bool singleWindowMode
;