xh_radbx.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_radbx.h
  3. // Purpose: XML resource handler for wxRadioBox
  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_RADBX_H_
  10. #define _WX_XH_RADBX_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC && wxUSE_RADIOBOX
  13. class WXDLLIMPEXP_XRC wxRadioBoxXmlHandler : public wxXmlResourceHandler
  14. {
  15. DECLARE_DYNAMIC_CLASS(wxRadioBoxXmlHandler)
  16. public:
  17. wxRadioBoxXmlHandler();
  18. virtual wxObject *DoCreateResource();
  19. virtual bool CanHandle(wxXmlNode *node);
  20. private:
  21. bool m_insideBox;
  22. // the items labels
  23. wxArrayString m_labels;
  24. #if wxUSE_TOOLTIPS
  25. // the items tooltips
  26. wxArrayString m_tooltips;
  27. #endif // wxUSE_TOOLTIPS
  28. // the item help text
  29. wxArrayString m_helptexts;
  30. wxArrayInt m_helptextSpecified;
  31. // if the corresponding array element is 1, the radiobox item is
  32. // disabled/hidden
  33. wxArrayInt m_isEnabled,
  34. m_isShown;
  35. };
  36. #endif // wxUSE_XRC && wxUSE_RADIOBOX
  37. #endif // _WX_XH_RADBX_H_