]> git.saurik.com Git - wxWidgets.git/blob - samples/xrc/myframe.h
Fixed flat style for toolbars under XP, Windows Classic style
[wxWidgets.git] / samples / xrc / myframe.h
1 //-----------------------------------------------------------------------------
2 // Name: myframe.h
3 // Purpose: XML resources sample: A derived frame, called MyFrame
4 // Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
5 // RCS-ID: $Id$
6 // Copyright: (c) Robert O'Connor and Vaclav Slavik
7 // Licence: wxWindows licence
8 //-----------------------------------------------------------------------------
9
10 //-----------------------------------------------------------------------------
11 // Begin single inclusion of this .h file condition
12 //-----------------------------------------------------------------------------
13
14 #ifndef _MYFRAME_H_
15 #define _MYFRAME_H_
16
17 //-----------------------------------------------------------------------------
18 // GCC interface
19 //-----------------------------------------------------------------------------
20
21 #if defined(__GNUG__) && !defined(__APPLE__)
22 #pragma interface "myframe.h"
23 #endif
24
25 //-----------------------------------------------------------------------------
26 // Headers
27 //-----------------------------------------------------------------------------
28
29 #include "wx/frame.h"
30
31 //-----------------------------------------------------------------------------
32 // Class definition: MyFrame
33 //-----------------------------------------------------------------------------
34
35 // Define a new frame type: this is going to be our main frame
36 class MyFrame : public wxFrame
37 {
38
39 public:
40
41 // Constructor.
42 MyFrame( wxWindow* parent=(wxWindow *)NULL);
43
44 private:
45
46 // Event handlers (these functions should _not_ be virtual)
47 void OnExitToolOrMenuCommand(wxCommandEvent& event);
48 void OnAboutToolOrMenuCommand(wxCommandEvent& event);
49 void OnNonDerivedDialogToolOrMenuCommand(wxCommandEvent& event);
50 void OnDerivedDialogToolOrMenuCommand(wxCommandEvent& event);
51 void OnControlsToolOrMenuCommand(wxCommandEvent& event);
52 void OnUncenteredToolOrMenuCommand(wxCommandEvent& event);
53 void OnCustomClassToolOrMenuCommand(wxCommandEvent& event);
54 void OnPlatformPropertyToolOrMenuCommand(wxCommandEvent& event);
55 void OnArtProviderToolOrMenuCommand(wxCommandEvent& event);
56 void OnVariableExpansionToolOrMenuCommand(wxCommandEvent& event);
57
58 // Any class wishing to process wxWidgets events must use this macro
59 DECLARE_EVENT_TABLE()
60
61 };
62
63 //-----------------------------------------------------------------------------
64 // End single inclusion of this .h file condition
65 //-----------------------------------------------------------------------------
66
67 #endif // _MYFRAME_H_