1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(__APPLE__)
16 #ifndef _OGLSAMPLE_OGLEDIT_H_
17 #define _OGLSAMPLE_OGLEDIT_H_
19 #include <wx/docview.h>
20 #include <wx/ogl/ogl.h> // base header of OGL, includes and adjusts wx/deprecated/setup.h
22 // Define a new application
24 class EditorToolPalette
;
25 class MyApp
: public wxApp
29 wxDocManager
* myDocManager
;
36 EditorToolPalette
*CreatePalette(wxFrame
*parent
);
43 class MyFrame
: public wxDocParentFrame
45 DECLARE_CLASS(MyFrame
)
50 EditorToolPalette
*palette
;
52 MyFrame(wxDocManager
*manager
, wxFrame
*parent
, const wxString
& title
,
53 const wxPoint
& pos
= wxDefaultPosition
,
54 const wxSize
& size
= wxDefaultSize
,
55 long style
= wxDEFAULT_FRAME_STYLE
);
57 MyCanvas
*CreateCanvas(wxView
*view
, wxFrame
*parent
);
58 void OnSize(wxSizeEvent
& event
);
59 void OnCloseWindow(wxCloseEvent
& event
);
60 void OnAbout(wxCommandEvent
& event
);
65 extern MyFrame
*GetMainFrame(void);
67 // Menu/undo/redo commands
71 OGLEDIT_ADD_SHAPE
= wxID_HIGHEST
,
74 OGLEDIT_CHANGE_BACKGROUND_COLOUR
,
75 OGLEDIT_ABOUT
= wxID_ABOUT
79 // _OGLSAMPLE_OGLEDIT_H_