]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/xrc/xh_spin.h
ported wxSVG contrib to bakefile (patch #778614)
[wxWidgets.git] / contrib / include / wx / xrc / xh_spin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: 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 #if defined(__GNUG__) && !defined(__APPLE__)
15 #pragma interface "xh_spin.h"
16 #endif
17
18 #include "wx/xrc/xmlres.h"
19 #include "wx/defs.h"
20
21 #if wxUSE_SPINBTN
22 class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
23 {
24 DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
25 enum
26 {
27 wxSP_DEFAULT_VALUE = 0,
28 wxSP_DEFAULT_MIN = 0,
29 wxSP_DEFAULT_MAX = 100
30 };
31
32 public:
33 wxSpinButtonXmlHandler();
34 virtual wxObject *DoCreateResource();
35 virtual bool CanHandle(wxXmlNode *node);
36 };
37 #endif
38
39 #if wxUSE_SPINCTRL
40 class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
41 {
42 DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
43 enum
44 {
45 wxSP_DEFAULT_VALUE = 0,
46 wxSP_DEFAULT_MIN = 0,
47 wxSP_DEFAULT_MAX = 100
48 };
49
50 public:
51 wxSpinCtrlXmlHandler();
52 virtual wxObject *DoCreateResource();
53 virtual bool CanHandle(wxXmlNode *node);
54 };
55 #endif
56
57 #endif // _WX_XH_SPIN_H_