add support for defining list control columns in XRC too (and correct a few things in previously added list items support)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-05-25 13:00:28 +00:00
parent 9cd203f776
commit ef18e79223
6 changed files with 128 additions and 73 deletions

View File

@@ -16,6 +16,7 @@
#if wxUSE_XRC && wxUSE_LISTCTRL
class WXDLLIMPEXP_FWD_CORE wxListCtrl;
class WXDLLIMPEXP_FWD_CORE wxListItem;
class WXDLLIMPEXP_XRC wxListCtrlXmlHandler : public wxXmlResourceHandler
{
@@ -25,8 +26,13 @@ public:
virtual bool CanHandle(wxXmlNode *node);
private:
long Handle_wxListItem();
wxObject* Handle_wxListCtrl();
// handlers for wxListCtrl itself and its listcol and listitem children
wxListCtrl *HandleListCtrl();
void HandleListCol();
void HandleListItem();
// common part to HandleList{Col,Item}()
void HandleCommonItemAttrs(wxListItem& item);
// gets the items image index in the corresponding image list (normal if
// which is wxIMAGE_LIST_NORMAL or small if it is wxIMAGE_LIST_SMALL)