]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/xrc/xh_spin.h
Create an autorelease pool to catch objects created during several special situations...
[wxWidgets.git] / include / wx / xrc / xh_spin.h
index c2b23b1b502d007646ae792e60ebfa43d0ddb517..a6cf9fc27fd3cb379766b234e7fb8befd704b889 100644 (file)
 
 #include "wx/xrc/xmlres.h"
 
-#if wxUSE_XRC 
+#if wxUSE_XRC
 
 #if wxUSE_SPINBTN
 
 class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
 {
-    DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
-    enum
-    {
-        wxSP_DEFAULT_VALUE = 0,
-        wxSP_DEFAULT_MIN = 0,
-        wxSP_DEFAULT_MAX = 100
-    };
-
 public:
     wxSpinButtonXmlHandler();
     virtual wxObject *DoCreateResource();
     virtual bool CanHandle(wxXmlNode *node);
+
+    DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
 };
 
 #endif // wxUSE_SPINBTN
@@ -40,18 +34,12 @@ public:
 
 class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
 {
-    DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
-    enum
-    {
-        wxSP_DEFAULT_VALUE = 0,
-        wxSP_DEFAULT_MIN = 0,
-        wxSP_DEFAULT_MAX = 100
-    };
-
 public:
     wxSpinCtrlXmlHandler();
     virtual wxObject *DoCreateResource();
     virtual bool CanHandle(wxXmlNode *node);
+
+    DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
 };
 
 #endif // wxUSE_SPINCTRL