2009-06-04 19:41:51 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/xrc/xh_editlbox.h
|
|
|
|
// Purpose: declaration of wxEditableListBox XRC handler
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 2009-06-04
|
|
|
|
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_XRC_XH_EDITLBOX_H_
|
|
|
|
#define _WX_XRC_XH_EDITLBOX_H_
|
|
|
|
|
|
|
|
#include "wx/xrc/xmlres.h"
|
|
|
|
|
|
|
|
#if wxUSE_XRC && wxUSE_EDITABLELISTBOX
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxEditableListBoxXmlHandler: XRC handler for wxEditableListBox
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_XRC wxEditableListBoxXmlHandler : public wxXmlResourceHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxEditableListBoxXmlHandler();
|
|
|
|
|
2015-09-06 20:20:42 -04:00
|
|
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
|
|
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
2009-06-04 19:41:51 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_insideBox;
|
|
|
|
wxArrayString m_items;
|
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxEditableListBoxXmlHandler);
|
2009-06-04 19:41:51 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_XRC && wxUSE_EDITABLELISTBOX
|
|
|
|
|
|
|
|
#endif // _WX_XRC_XH_EDITLBOX_H_
|
|
|
|
|