]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_spin.h
wxMimeTypesManagerImpl and wxFileTypeImpl are in base, not core
[wxWidgets.git] / include / wx / xrc / xh_spin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_spin.h
3 // Purpose: XML resource handler for wxSpinButton and wxSpinCtrl
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
16 #if wxUSE_XRC
17
18 #if wxUSE_SPINBTN
19
20 class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
21 {
22 DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
23 enum
24 {
25 wxSP_DEFAULT_VALUE = 0,
26 wxSP_DEFAULT_MIN = 0,
27 wxSP_DEFAULT_MAX = 100
28 };
29
30 public:
31 wxSpinButtonXmlHandler();
32 virtual wxObject *DoCreateResource();
33 virtual bool CanHandle(wxXmlNode *node);
34 };
35
36 #endif // wxUSE_SPINBTN
37
38
39 #if wxUSE_SPINCTRL
40
41 class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
42 {
43 DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
44 enum
45 {
46 wxSP_DEFAULT_VALUE = 0,
47 wxSP_DEFAULT_MIN = 0,
48 wxSP_DEFAULT_MAX = 100
49 };
50
51 public:
52 wxSpinCtrlXmlHandler();
53 virtual wxObject *DoCreateResource();
54 virtual bool CanHandle(wxXmlNode *node);
55 };
56
57 #endif // wxUSE_SPINCTRL
58
59 #endif // wxUSE_XRC
60
61 #endif // _WX_XH_SPIN_H_