]> git.saurik.com Git - wxWidgets.git/blame - samples/xrc/myframe.h
Make wxEnhMetaFileDC ctor from wxDC explicit.
[wxWidgets.git] / samples / xrc / myframe.h
CommitLineData
af1337b0
JS
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
af1337b0
JS
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
28class MyFrame : public wxFrame
29{
30
31public:
32
33 // Constructor.
34 MyFrame( wxWindow* parent=(wxWindow *)NULL);
35
f80ea77b 36private:
af1337b0
JS
37
38 // Event handlers (these functions should _not_ be virtual)
60982dea
VZ
39 void OnUnloadResourceMenuCommand(wxCommandEvent& event);
40 void OnReloadResourceMenuCommand(wxCommandEvent& event);
af1337b0
JS
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);
f80ea77b 46 void OnUncenteredToolOrMenuCommand(wxCommandEvent& event);
0526c8cc 47 void OnObjRefToolOrMenuCommand(wxCommandEvent& event);
af1337b0
JS
48 void OnCustomClassToolOrMenuCommand(wxCommandEvent& event);
49 void OnPlatformPropertyToolOrMenuCommand(wxCommandEvent& event);
50 void OnArtProviderToolOrMenuCommand(wxCommandEvent& event);
51 void OnVariableExpansionToolOrMenuCommand(wxCommandEvent& event);
af0ac990 52 void OnRecursiveLoad(wxCommandEvent& event);
d956f3e7 53 void OnAnimationCtrlPlay(wxCommandEvent& event);
af1337b0 54
be5a51fb 55 // Any class wishing to process wxWidgets events must use this macro
af1337b0
JS
56 DECLARE_EVENT_TABLE()
57
58};
59
60//-----------------------------------------------------------------------------
61// End single inclusion of this .h file condition
62//-----------------------------------------------------------------------------
63
64#endif // _MYFRAME_H_