]> git.saurik.com Git - wxWidgets.git/blame - samples/xrc/myframe.h
reSWIGged
[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);
af1337b0
JS
47 void OnCustomClassToolOrMenuCommand(wxCommandEvent& event);
48 void OnPlatformPropertyToolOrMenuCommand(wxCommandEvent& event);
49 void OnArtProviderToolOrMenuCommand(wxCommandEvent& event);
50 void OnVariableExpansionToolOrMenuCommand(wxCommandEvent& event);
51
be5a51fb 52 // Any class wishing to process wxWidgets events must use this macro
af1337b0
JS
53 DECLARE_EVENT_TABLE()
54
55};
56
57//-----------------------------------------------------------------------------
58// End single inclusion of this .h file condition
59//-----------------------------------------------------------------------------
60
61#endif // _MYFRAME_H_