]> git.saurik.com Git - wxWidgets.git/blame - samples/xrc/derivdlg.h
fix vertical mouse wheel event rotation value, sign was reversed in r74805
[wxWidgets.git] / samples / xrc / derivdlg.h
CommitLineData
af1337b0 1//-----------------------------------------------------------------------------
0526c8cc 2// Name: derivdlg.h
af1337b0
JS
3// Purpose: XML resources sample: A derived dialog
4// Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
af1337b0
JS
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
af1337b0
JS
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
f80ea77b
WS
30public:
31
af1337b0
JS
32 // Constructor.
33 /*
34 \param parent The parent window. Simple constructor.
f80ea77b 35 */
af1337b0 36 PreferencesDialog( wxWindow* parent );
f80ea77b
WS
37
38 // Destructor.
925e9792 39 ~PreferencesDialog(){};
af1337b0
JS
40
41private:
f80ea77b 42
af1337b0
JS
43 // Stuff to do when "My Button" gets clicked
44 void OnMyButtonClicked( wxCommandEvent &event );
45
f80ea77b 46 // Stuff to do when a "My Checkbox" gets updated
af1337b0 47 // (drawn, or it changes its value)
6372b068 48 void OnUpdateUIMyCheckbox( wxUpdateUIEvent &event );
f80ea77b 49
af1337b0
JS
50 // Override base class functions of a wxDialog.
51 void OnOK( wxCommandEvent &event );
52
be5a51fb 53 // Any class wishing to process wxWidgets events must use this macro
af1337b0
JS
54 DECLARE_EVENT_TABLE()
55
56};
57
58//-----------------------------------------------------------------------------
59// End single inclusion of this .h file condition
60//-----------------------------------------------------------------------------
61
62#endif //_DERIVDLG_H_