xh_spin.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. // Copyright: (c) 2000 Bob Mitchell and Verant Interactive
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XH_SPIN_H_
  10. #define _WX_XH_SPIN_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC
  13. #if wxUSE_SPINBTN
  14. class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
  15. {
  16. public:
  17. wxSpinButtonXmlHandler();
  18. virtual wxObject *DoCreateResource();
  19. virtual bool CanHandle(wxXmlNode *node);
  20. DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
  21. };
  22. #endif // wxUSE_SPINBTN
  23. #if wxUSE_SPINCTRL
  24. class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
  25. {
  26. public:
  27. wxSpinCtrlXmlHandler();
  28. virtual wxObject *DoCreateResource();
  29. virtual bool CanHandle(wxXmlNode *node);
  30. DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
  31. };
  32. #endif // wxUSE_SPINCTRL
  33. #endif // wxUSE_XRC
  34. #endif // _WX_XH_SPIN_H_