1 /////////////////////////////////////////////////////////////////////////////
2 // Name: contrib/samples/ogl/ogledit/ogledit.h
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _OGLSAMPLE_OGLEDIT_H_
13 #define _OGLSAMPLE_OGLEDIT_H_
15 #include "wx/docview.h"
16 #include "wx/ogl/ogl.h" // base header of OGL, includes and adjusts wx/deprecated/setup.h
18 // Define a new application
20 class EditorToolPalette
;
21 class MyApp
: public wxApp
25 wxDocManager
* myDocManager
;
32 EditorToolPalette
*CreatePalette(wxFrame
*parent
);
39 class MyFrame
: public wxDocParentFrame
41 DECLARE_CLASS(MyFrame
)
46 EditorToolPalette
*palette
;
48 MyFrame(wxDocManager
*manager
, wxFrame
*parent
, const wxString
& title
,
49 const wxPoint
& pos
= wxDefaultPosition
,
50 const wxSize
& size
= wxDefaultSize
,
51 long style
= wxDEFAULT_FRAME_STYLE
);
53 MyCanvas
*CreateCanvas(wxView
*view
, wxFrame
*parent
);
54 void OnSize(wxSizeEvent
& event
);
55 void OnCloseWindow(wxCloseEvent
& event
);
56 void OnAbout(wxCommandEvent
& event
);
61 extern MyFrame
*GetMainFrame(void);
63 // Menu/undo/redo commands
67 OGLEDIT_ADD_SHAPE
= wxID_HIGHEST
,
70 OGLEDIT_CHANGE_BACKGROUND_COLOUR
,
71 OGLEDIT_ABOUT
= wxID_ABOUT
75 // _OGLSAMPLE_OGLEDIT_H_