]> git.saurik.com Git - wxWidgets.git/blob - samples/xrc/derivdlg.h
Removed CF_NOSIMULATIONS flag to increase range of available fonts
[wxWidgets.git] / samples / xrc / derivdlg.h
1 //-----------------------------------------------------------------------------
2 // Name: xmldemo.cpp
3 // Purpose: XML resources sample: A derived dialog
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 _DERIVDLG_H_
15 #define _DERIVDLG_H_
16
17 //-----------------------------------------------------------------------------
18 // GCC interface
19 //-----------------------------------------------------------------------------
20
21 #if defined(__GNUG__) && !defined(__APPLE__)
22 #pragma interface "derivdlg.h"
23 #endif
24
25 //-----------------------------------------------------------------------------
26 // Headers
27 //-----------------------------------------------------------------------------
28
29 #include "wx/dialog.h"
30
31 //-----------------------------------------------------------------------------
32 // Class definition: PreferencesDialog
33 //-----------------------------------------------------------------------------
34
35 // A derived dialog.
36 class PreferencesDialog : public wxDialog
37 {
38
39 public:
40
41 // Constructor.
42 /*
43 \param parent The parent window. Simple constructor.
44 */
45 PreferencesDialog( wxWindow* parent );
46
47 // Destructor.
48 ~PreferencesDialog(){};
49
50 private:
51
52 // Stuff to do when "My Button" gets clicked
53 void OnMyButtonClicked( wxCommandEvent &event );
54
55 // Stuff to do when a "My Checkbox" gets updated
56 // (drawn, or it changes its value)
57 void OuUpdateUIMyCheckbox( wxUpdateUIEvent &event );
58
59 // Override base class functions of a wxDialog.
60 void OnOK( wxCommandEvent &event );
61
62 // Any class wishing to process wxWidgets events must use this macro
63 DECLARE_EVENT_TABLE()
64
65 };
66
67 //-----------------------------------------------------------------------------
68 // End single inclusion of this .h file condition
69 //-----------------------------------------------------------------------------
70
71 #endif //_DERIVDLG_H_