]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/xrc/derivdlg.h
XRC spec: document wxRibbon* XRC handler.
[wxWidgets.git] / samples / xrc / derivdlg.h
... / ...
CommitLineData
1//-----------------------------------------------------------------------------
2// Name: derivdlg.h
3// Purpose: XML resources sample: A derived dialog
4// Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
5// Copyright: (c) Robert O'Connor and Vaclav Slavik
6// Licence: wxWindows licence
7//-----------------------------------------------------------------------------
8
9//-----------------------------------------------------------------------------
10// Begin single inclusion of this .h file condition
11//-----------------------------------------------------------------------------
12
13#ifndef _DERIVDLG_H_
14#define _DERIVDLG_H_
15
16//-----------------------------------------------------------------------------
17// Headers
18//-----------------------------------------------------------------------------
19
20#include "wx/dialog.h"
21
22//-----------------------------------------------------------------------------
23// Class definition: PreferencesDialog
24//-----------------------------------------------------------------------------
25
26// A derived dialog.
27class PreferencesDialog : public wxDialog
28{
29
30public:
31
32 // Constructor.
33 /*
34 \param parent The parent window. Simple constructor.
35 */
36 PreferencesDialog( wxWindow* parent );
37
38 // Destructor.
39 ~PreferencesDialog(){};
40
41private:
42
43 // Stuff to do when "My Button" gets clicked
44 void OnMyButtonClicked( wxCommandEvent &event );
45
46 // Stuff to do when a "My Checkbox" gets updated
47 // (drawn, or it changes its value)
48 void OnUpdateUIMyCheckbox( wxUpdateUIEvent &event );
49
50 // Override base class functions of a wxDialog.
51 void OnOK( 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 //_DERIVDLG_H_