]> git.saurik.com Git - wxWidgets.git/blob - samples/xrc/myframe.h
added wxNativeFontInfo() ctor from LOGFONT, this is convenient for MSW code
[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 OnCustomClassToolOrMenuCommand(wxCommandEvent& event);
48 void OnPlatformPropertyToolOrMenuCommand(wxCommandEvent& event);
49 void OnArtProviderToolOrMenuCommand(wxCommandEvent& event);
50 void OnVariableExpansionToolOrMenuCommand(wxCommandEvent& event);
51 void OnAnimationCtrlPlay(wxCommandEvent& event);
52
53 // Any class wishing to process wxWidgets events must use this macro
54 DECLARE_EVENT_TABLE()
55
56 };
57
58 //-----------------------------------------------------------------------------
59 // End single inclusion of this .h file condition
60 //-----------------------------------------------------------------------------
61
62 #endif // _MYFRAME_H_