]>
git.saurik.com Git - wxWidgets.git/blob - contrib/utils/wxrcedit/prophnd.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Purpose: XML resources editor
3 // Author: Vaclav Slavik
6 // Copyright: (c) 2000 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #pragma interface "prophnd.h"
24 #include "wx/xml/xml.h"
25 #include "wx/dynarray.h"
36 #define PROP_TYPES_CNT 6
46 WX_DECLARE_OBJARRAY(PropertyInfo
, PropertyInfoArray
);
49 class PropertyHandler
;
51 class PropsListInfo
: public wxObject
54 PropsListInfo(int index
, PropertyHandler
*hnd
, wxXmlNode
*node
,
55 PropertyInfo
*pi
, wxListCtrl
*listctrl
) :
56 m_Index(index
), m_Handler(hnd
), m_Node(node
),
57 m_PropInfo(pi
), m_ListCtrl(listctrl
) {}
58 virtual ~PropsListInfo() {}
61 PropertyHandler
*m_Handler
;
63 PropertyInfo
*m_PropInfo
;
64 wxListCtrl
*m_ListCtrl
;
75 int CreateListItem(wxListCtrl
*listctrl
, wxXmlNode
*node
, PropertyInfo
*pi
);
77 virtual wxString
GetBriefValue(wxXmlNode
*node
, PropertyInfo
*pi
);
78 virtual wxPanel
*CreateEditPanel(wxWindow
*parent
, PropsListInfo
*pli
) = 0;
83 class TextPropertyHandler
: public PropertyHandler
86 TextPropertyHandler() {}
87 virtual wxPanel
*CreateEditPanel(wxWindow
*parent
, PropsListInfo
*pli
);
91 class CoordPropertyHandler
: public PropertyHandler
94 CoordPropertyHandler() {}
95 virtual wxPanel
*CreateEditPanel(wxWindow
*parent
, PropsListInfo
*pli
);
99 class BoolPropertyHandler
: public PropertyHandler
102 BoolPropertyHandler() {}
103 virtual wxString
GetBriefValue(wxXmlNode
*node
, PropertyInfo
*pi
);
104 virtual wxPanel
*CreateEditPanel(wxWindow
*parent
, PropsListInfo
*pli
);
108 class FlagsPropertyHandler
: public PropertyHandler
111 FlagsPropertyHandler() {}
112 virtual wxPanel
*CreateEditPanel(wxWindow
*parent
, PropsListInfo
*pli
);