]>
git.saurik.com Git - wxWidgets.git/blob - samples/xrc/myframe.h
1 //-----------------------------------------------------------------------------
3 // Purpose: XML resources sample: A derived frame, called MyFrame
4 // Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
6 // Copyright: (c) Robert O'Connor and Vaclav Slavik
7 // Licence: wxWindows licence
8 //-----------------------------------------------------------------------------
10 //-----------------------------------------------------------------------------
11 // Begin single inclusion of this .h file condition
12 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 #if defined(__GNUG__) && !defined(__APPLE__)
22 #pragma interface "myframe.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
32 // Class definition: MyFrame
33 //-----------------------------------------------------------------------------
35 // Define a new frame type: this is going to be our main frame
36 class MyFrame
: public wxFrame
42 MyFrame( wxWindow
* parent
=(wxWindow
*)NULL
);
46 // Event handlers (these functions should _not_ be virtual)
47 void OnUnloadResourceMenuCommand(wxCommandEvent
& event
);
48 void OnReloadResourceMenuCommand(wxCommandEvent
& event
);
49 void OnExitToolOrMenuCommand(wxCommandEvent
& event
);
50 void OnAboutToolOrMenuCommand(wxCommandEvent
& event
);
51 void OnNonDerivedDialogToolOrMenuCommand(wxCommandEvent
& event
);
52 void OnDerivedDialogToolOrMenuCommand(wxCommandEvent
& event
);
53 void OnControlsToolOrMenuCommand(wxCommandEvent
& event
);
54 void OnUncenteredToolOrMenuCommand(wxCommandEvent
& event
);
55 void OnCustomClassToolOrMenuCommand(wxCommandEvent
& event
);
56 void OnPlatformPropertyToolOrMenuCommand(wxCommandEvent
& event
);
57 void OnArtProviderToolOrMenuCommand(wxCommandEvent
& event
);
58 void OnVariableExpansionToolOrMenuCommand(wxCommandEvent
& event
);
60 // Any class wishing to process wxWidgets events must use this macro
65 //-----------------------------------------------------------------------------
66 // End single inclusion of this .h file condition
67 //-----------------------------------------------------------------------------