add support for loading wxListCtrl items and wxImageLists from XRC (closes #10647)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-05-07 17:29:57 +00:00
parent c84d0c864a
commit 326462ae94
14 changed files with 533 additions and 34 deletions

View File

@@ -492,6 +492,14 @@ protected:
wxBitmap GetBitmap(const wxString& param = "bitmap",
const wxArtClient& defaultArtClient = wxART_OTHER,
wxSize size = wxDefaultSize);
/**
Gets a bitmap from an XmlNode.
@since 2.9.1
*/
wxBitmap GetBitmap(const wxXmlNode* node,
const wxArtClient& defaultArtClient = wxART_OTHER,
wxSize size = wxDefaultSize);
/**
Gets a bool flag (1, t, yes, on, true are @true, everything else is @false).
@@ -532,6 +540,15 @@ protected:
const wxArtClient& defaultArtClient = wxART_OTHER,
wxSize size = wxDefaultSize);
/**
Gets an icon from an XmlNode.
@since 2.9.1
*/
wxIcon GetIcon(const wxXmlNode* node,
const wxArtClient& defaultArtClient = wxART_OTHER,
wxSize size = wxDefaultSize);
/**
Returns an icon bundle.
@@ -545,6 +562,16 @@ protected:
wxIconBundle GetIconBundle(const wxString& param,
const wxArtClient& defaultArtClient = wxART_OTHER);
/**
Creates an image list from the @a param markup data.
@return
The new instance of wxImageList or @NULL if no data is found.
@since 2.9.1
*/
wxImageList *GetImageList(const wxString& param = wxT("imagelist"));
/**
Gets the integer value from the parameter.
*/
@@ -570,6 +597,13 @@ protected:
*/
wxString GetParamValue(const wxString& param);
/**
Returns the node parameter value.
@since 2.9.1
*/
wxString GetParamValue(const wxXmlNode* node);
/**
Gets the position (may be in dialog units).
*/