]>
git.saurik.com Git - wxWidgets.git/blob - utils/ogl/samples/ogledit/ogledit.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #ifndef _OGLSAMPLE_OGLEDIT_H_
17 #define _OGLSAMPLE_OGLEDIT_H_
19 #include <wx/docview.h>
21 // Define a new application
23 class EditorToolPalette
;
24 class MyApp
: public wxApp
33 EditorToolPalette
*CreatePalette(wxFrame
*parent
);
40 class MyFrame
: public wxDocParentFrame
42 DECLARE_CLASS(MyFrame
)
47 EditorToolPalette
*palette
;
49 MyFrame(wxDocManager
*manager
, wxFrame
*parent
, const wxString
& title
,
50 const wxPoint
& pos
= wxDefaultPosition
,
51 const wxSize
& size
= wxDefaultSize
,
52 long style
= wxDEFAULT_FRAME_STYLE
);
54 MyCanvas
*CreateCanvas(wxView
*view
, wxFrame
*parent
);
55 void OnSize(wxSizeEvent
& event
);
57 void OnAbout(wxCommandEvent
& event
);
62 extern MyFrame
*GetMainFrame(void);
64 // Menu/undo/redo commands
67 #define OGLEDIT_ADD_SHAPE 2
68 #define OGLEDIT_ADD_LINE 3
69 #define OGLEDIT_EDIT_LABEL 4
70 #define OGLEDIT_CHANGE_BACKGROUND_COLOUR 5
72 #define OGLEDIT_ABOUT 100
75 // _OGLSAMPLE_OGLEDIT_H_