]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_spin.h
detect adding too many items to a grid sizer sooner and don't crash if this happens
[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 public:
23 wxSpinButtonXmlHandler();
24 virtual wxObject *DoCreateResource();
25 virtual bool CanHandle(wxXmlNode *node);
26
27 DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
28 };
29
30 #endif // wxUSE_SPINBTN
31
32
33 #if wxUSE_SPINCTRL
34
35 class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
36 {
37 public:
38 wxSpinCtrlXmlHandler();
39 virtual wxObject *DoCreateResource();
40 virtual bool CanHandle(wxXmlNode *node);
41
42 DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
43 };
44
45 #endif // wxUSE_SPINCTRL
46
47 #endif // wxUSE_XRC
48
49 #endif // _WX_XH_SPIN_H_