| 1 |
///////////////////////////////////////////////////////////////////////////// |
| 2 |
// Name: wx/xrc/xh_notbk.h |
| 3 |
// Purpose: XML resource handler for wxNotebook |
| 4 |
// Author: Vaclav Slavik |
| 5 |
// RCS-ID: $Id$ |
| 6 |
// Copyright: (c) 2000 Vaclav Slavik |
| 7 |
// Licence: wxWindows licence |
| 8 |
///////////////////////////////////////////////////////////////////////////// |
| 9 |
|
| 10 |
#ifndef _WX_XH_PROPGRID_H_ |
| 11 |
#define _WX_XH_PROPGRID_H_ |
| 12 |
|
| 13 |
#include <wx/xrc/xmlres.h> |
| 14 |
#include <wx/propgrid/property.h> |
| 15 |
|
| 16 |
class wxPGProperty; |
| 17 |
class wxPropertyGrid; |
| 18 |
class wxPropertyGridManager; |
| 19 |
|
| 20 |
class MyWxPropGridXmlHandler : public wxXmlResourceHandler |
| 21 |
{ |
| 22 |
public: |
| 23 |
MyWxPropGridXmlHandler(); |
| 24 |
virtual wxObject* DoCreateResource(); |
| 25 |
virtual bool CanHandle(wxXmlNode* node); |
| 26 |
|
| 27 |
protected: |
| 28 |
void HandlePgProperty(wxPGProperty* parent); |
| 29 |
wxArrayString GetArray(const wxXmlNode* node) const; |
| 30 |
wxPGProperty* DoAppendProperty(wxPGProperty* parent, wxPGProperty* prop); |
| 31 |
|
| 32 |
private: |
| 33 |
bool m_isInside; |
| 34 |
wxPropertyGridManager* m_pgmgr; |
| 35 |
wxPGProperty* m_propertyParent; |
| 36 |
}; |
| 37 |
|
| 38 |
#endif // _WX_XH_PROPGRID_H_ |