]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/xrc/derivdlg.h
ensure all topic overviews have an horizontal rule with the list of the sections...
[wxWidgets.git] / samples / xrc / derivdlg.h
... / ...
CommitLineData
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// Headers
19//-----------------------------------------------------------------------------
20
21#include "wx/dialog.h"
22
23//-----------------------------------------------------------------------------
24// Class definition: PreferencesDialog
25//-----------------------------------------------------------------------------
26
27// A derived dialog.
28class PreferencesDialog : public wxDialog
29{
30
31public:
32
33 // Constructor.
34 /*
35 \param parent The parent window. Simple constructor.
36 */
37 PreferencesDialog( wxWindow* parent );
38
39 // Destructor.
40 ~PreferencesDialog(){};
41
42private:
43
44 // Stuff to do when "My Button" gets clicked
45 void OnMyButtonClicked( wxCommandEvent &event );
46
47 // Stuff to do when a "My Checkbox" gets updated
48 // (drawn, or it changes its value)
49 void OnUpdateUIMyCheckbox( wxUpdateUIEvent &event );
50
51 // Override base class functions of a wxDialog.
52 void OnOK( wxCommandEvent &event );
53
54 // Any class wishing to process wxWidgets events must use this macro
55 DECLARE_EVENT_TABLE()
56
57};
58
59//-----------------------------------------------------------------------------
60// End single inclusion of this .h file condition
61//-----------------------------------------------------------------------------
62
63#endif //_DERIVDLG_H_