]> git.saurik.com Git - wxWidgets.git/blame - samples/xrc/derivdlg.h
fixed library order (important for static linking under Unix
[wxWidgets.git] / samples / xrc / derivdlg.h
CommitLineData
af1337b0
JS
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
ab7ce33c 21#if defined(__GNUG__) && !defined(__APPLE__)
af1337b0
JS
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.
36class PreferencesDialog : public wxDialog
37{
38
f80ea77b
WS
39public:
40
af1337b0
JS
41 // Constructor.
42 /*
43 \param parent The parent window. Simple constructor.
f80ea77b 44 */
af1337b0 45 PreferencesDialog( wxWindow* parent );
f80ea77b
WS
46
47 // Destructor.
925e9792 48 ~PreferencesDialog(){};
af1337b0
JS
49
50private:
f80ea77b 51
af1337b0
JS
52 // Stuff to do when "My Button" gets clicked
53 void OnMyButtonClicked( wxCommandEvent &event );
54
f80ea77b 55 // Stuff to do when a "My Checkbox" gets updated
af1337b0 56 // (drawn, or it changes its value)
6372b068 57 void OnUpdateUIMyCheckbox( wxUpdateUIEvent &event );
f80ea77b 58
af1337b0
JS
59 // Override base class functions of a wxDialog.
60 void OnOK( wxCommandEvent &event );
61
be5a51fb 62 // Any class wishing to process wxWidgets events must use this macro
af1337b0
JS
63 DECLARE_EVENT_TABLE()
64
65};
66
67//-----------------------------------------------------------------------------
68// End single inclusion of this .h file condition
69//-----------------------------------------------------------------------------
70
71#endif //_DERIVDLG_H_