]> git.saurik.com Git - wxWidgets.git/blob - samples/xrc/myframe.h
fixing reentrancy which happened in tests, bringing client coordinates origins in...
[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 // Headers
19 //-----------------------------------------------------------------------------
20
21 #include "wx/frame.h"
22
23 //-----------------------------------------------------------------------------
24 // Class definition: MyFrame
25 //-----------------------------------------------------------------------------
26
27 // Define a new frame type: this is going to be our main frame
28 class MyFrame : public wxFrame
29 {
30
31 public:
32
33 // Constructor.
34 MyFrame( wxWindow* parent=(wxWindow *)NULL);
35
36 private:
37
38 // Event handlers (these functions should _not_ be virtual)
39 void OnUnloadResourceMenuCommand(wxCommandEvent& event);
40 void OnReloadResourceMenuCommand(wxCommandEvent& event);
41 void OnExitToolOrMenuCommand(wxCommandEvent& event);
42 void OnAboutToolOrMenuCommand(wxCommandEvent& event);
43 void OnNonDerivedDialogToolOrMenuCommand(wxCommandEvent& event);
44 void OnDerivedDialogToolOrMenuCommand(wxCommandEvent& event);
45 void OnControlsToolOrMenuCommand(wxCommandEvent& event);
46 void OnUncenteredToolOrMenuCommand(wxCommandEvent& event);
47 void OnObjRefToolOrMenuCommand(wxCommandEvent& event);
48 void OnCustomClassToolOrMenuCommand(wxCommandEvent& event);
49 void OnPlatformPropertyToolOrMenuCommand(wxCommandEvent& event);
50 void OnArtProviderToolOrMenuCommand(wxCommandEvent& event);
51 void OnVariableExpansionToolOrMenuCommand(wxCommandEvent& event);
52 void OnRecursiveLoad(wxCommandEvent& event);
53 void OnAnimationCtrlPlay(wxCommandEvent& event);
54
55 // Any class wishing to process wxWidgets events must use this macro
56 DECLARE_EVENT_TABLE()
57
58 };
59
60 //-----------------------------------------------------------------------------
61 // End single inclusion of this .h file condition
62 //-----------------------------------------------------------------------------
63
64 #endif // _MYFRAME_H_