]> git.saurik.com Git - wxWidgets.git/blame - include/wx/xrc/xh_spin.h
added wxDatePickerCtrl XRC control
[wxWidgets.git] / include / wx / xrc / xh_spin.h
CommitLineData
56d2f750
VS
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
0c9ff74f 14#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
56d2f750
VS
15#pragma interface "xh_spin.h"
16#endif
17
999d9a9f 18#include "wx/xrc/xmlres.h"
56d2f750
VS
19#include "wx/defs.h"
20
21#if wxUSE_SPINBTN
30dc3455 22class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
56d2f750 23{
f80ea77b 24 DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
ea89ec17 25 enum
56d2f750
VS
26 {
27 wxSP_DEFAULT_VALUE = 0,
28 wxSP_DEFAULT_MIN = 0,
29 wxSP_DEFAULT_MAX = 100
30 };
31
eb8671f2
VS
32public:
33 wxSpinButtonXmlHandler();
34 virtual wxObject *DoCreateResource();
35 virtual bool CanHandle(wxXmlNode *node);
56d2f750
VS
36};
37#endif
38
39#if wxUSE_SPINCTRL
30dc3455 40class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
56d2f750 41{
f80ea77b 42 DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
ea89ec17 43 enum
56d2f750
VS
44 {
45 wxSP_DEFAULT_VALUE = 0,
46 wxSP_DEFAULT_MIN = 0,
47 wxSP_DEFAULT_MAX = 100
48 };
49
eb8671f2
VS
50public:
51 wxSpinCtrlXmlHandler();
52 virtual wxObject *DoCreateResource();
53 virtual bool CanHandle(wxXmlNode *node);
56d2f750
VS
54};
55#endif
56
57#endif // _WX_XH_SPIN_H_