]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/ogl/ogledit/ogledit.h
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/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
70 #define OGLEDIT_ADD_SHAPE 2
71 #define OGLEDIT_ADD_LINE 3
72 #define OGLEDIT_EDIT_LABEL 4
73 #define OGLEDIT_CHANGE_BACKGROUND_COLOUR 5
75 #define OGLEDIT_ABOUT 100
78 // _OGLSAMPLE_OGLEDIT_H_