xh_editlbox.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_editlbox.h
  3. // Purpose: declaration of wxEditableListBox XRC handler
  4. // Author: Vadim Zeitlin
  5. // Created: 2009-06-04
  6. // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XRC_XH_EDITLBOX_H_
  10. #define _WX_XRC_XH_EDITLBOX_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC && wxUSE_EDITABLELISTBOX
  13. // ----------------------------------------------------------------------------
  14. // wxEditableListBoxXmlHandler: XRC handler for wxEditableListBox
  15. // ----------------------------------------------------------------------------
  16. class WXDLLIMPEXP_XRC wxEditableListBoxXmlHandler : public wxXmlResourceHandler
  17. {
  18. public:
  19. wxEditableListBoxXmlHandler();
  20. virtual wxObject *DoCreateResource();
  21. virtual bool CanHandle(wxXmlNode *node);
  22. private:
  23. bool m_insideBox;
  24. wxArrayString m_items;
  25. DECLARE_DYNAMIC_CLASS(wxEditableListBoxXmlHandler)
  26. };
  27. #endif // wxUSE_XRC && wxUSE_EDITABLELISTBOX
  28. #endif // _WX_XRC_XH_EDITLBOX_H_