]>
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
5 // Copyright: (c) Robert O'Connor and Vaclav Slavik
6 // Licence: wxWindows licence
7 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
10 // Begin single inclusion of this .h file condition
11 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
23 // Class definition: MyFrame
24 //-----------------------------------------------------------------------------
26 // Define a new frame type: this is going to be our main frame
27 class MyFrame
: public wxFrame
33 MyFrame( wxWindow
* parent
=(wxWindow
*)NULL
);
37 // Event handlers (these functions should _not_ be virtual)
38 void OnUnloadResourceMenuCommand(wxCommandEvent
& event
);
39 void OnReloadResourceMenuCommand(wxCommandEvent
& event
);
40 void OnExitToolOrMenuCommand(wxCommandEvent
& event
);
41 void OnAboutToolOrMenuCommand(wxCommandEvent
& event
);
42 void OnNonDerivedDialogToolOrMenuCommand(wxCommandEvent
& event
);
43 void OnDerivedDialogToolOrMenuCommand(wxCommandEvent
& event
);
44 void OnControlsToolOrMenuCommand(wxCommandEvent
& event
);
45 void OnUncenteredToolOrMenuCommand(wxCommandEvent
& event
);
46 void OnObjRefToolOrMenuCommand(wxCommandEvent
& event
);
47 void OnCustomClassToolOrMenuCommand(wxCommandEvent
& event
);
48 void OnPlatformPropertyToolOrMenuCommand(wxCommandEvent
& event
);
49 void OnArtProviderToolOrMenuCommand(wxCommandEvent
& event
);
50 void OnVariableExpansionToolOrMenuCommand(wxCommandEvent
& event
);
51 void OnRecursiveLoad(wxCommandEvent
& event
);
52 void OnAnimationCtrlPlay(wxCommandEvent
& event
);
54 // Any class wishing to process wxWidgets events must use this macro
59 //-----------------------------------------------------------------------------
60 // End single inclusion of this .h file condition
61 //-----------------------------------------------------------------------------