]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_spin.h
corrected ifdef condition
[wxWidgets.git] / include / wx / xrc / xh_spin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_spin.h
3 // Purpose: XML resource handler for wxSpinButton
4 // Author: Bob Mitchell
5 // Created: 2000/03/21
6 // RCS-ID: $Id$
7 // Copyright: (c) 2000 Bob Mitchell and Verant Interactive
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_XH_SPIN_H_
12 #define _WX_XH_SPIN_H_
13
14 #include "wx/xrc/xmlres.h"
15 #include "wx/defs.h"
16
17 #if wxUSE_SPINBTN
18 class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
19 {
20 DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
21 enum
22 {
23 wxSP_DEFAULT_VALUE = 0,
24 wxSP_DEFAULT_MIN = 0,
25 wxSP_DEFAULT_MAX = 100
26 };
27
28 public:
29 wxSpinButtonXmlHandler();
30 virtual wxObject *DoCreateResource();
31 virtual bool CanHandle(wxXmlNode *node);
32 };
33 #endif
34
35 #if wxUSE_SPINCTRL
36 class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
37 {
38 DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
39 enum
40 {
41 wxSP_DEFAULT_VALUE = 0,
42 wxSP_DEFAULT_MIN = 0,
43 wxSP_DEFAULT_MAX = 100
44 };
45
46 public:
47 wxSpinCtrlXmlHandler();
48 virtual wxObject *DoCreateResource();
49 virtual bool CanHandle(wxXmlNode *node);
50 };
51 #endif
52
53 #endif // _WX_XH_SPIN_H_