wxXmlResourceHandlerwxXmlResourceHandler is an abstract base class for resource handlers capable of creating a control from an XML node. See XML-based resource system overview for details. Derived from Include files <wx/xrc/xmlres.h> Members
wxXmlResourceHandler::wxXmlResourceHandler
wxXmlResourceHandler::wxXmlResourceHandlerwxXmlResourceHandler() Default constructor.
wxXmlResourceHandler::~wxXmlResourceHandler~wxXmlResourceHandler() Destructor.
wxXmlResourceHandler::AddStylevoid AddStyle(const wxString& name, int value) Add a style flag (e.g. wxMB_DOCKABLE) to the list of flags understood by this handler.
wxXmlResourceHandler::AddWindowStylesvoid AddWindowStyles() Add styles common to all wxWindow-derived classes.
wxXmlResourceHandler::CanHandlebool CanHandle(wxXmlNode* node) Returns true if it understands this node and can create a resource from it, false otherwise. Note You must not call any wxXmlResourceHandler methods except IsOfClass from this method! The instance is not yet initialized with node data at the time CanHandle is called and it is only safe to operate on node directly or to call IsOfClass.
wxXmlResourceHandler::CreateChildrenvoid CreateChildren(wxObject* parent, bool this_hnd_only = false) Creates children.
wxXmlResourceHandler::CreateChildrenPrivatelyvoid CreateChildrenPrivately(wxObject* parent, wxXmlNode* rootnode = NULL) Helper function.
wxXmlResourceHandler::CreateResFromNodewxObject* CreateResFromNode(wxXmlNode* node, wxObject* parent, wxObject* instance = NULL) Creates a resource from a node.
wxXmlResourceHandler::CreateResourcewxObject* CreateResource(wxXmlNode* node, wxObject* parent, wxObject* instance) Creates an object (menu, dialog, control, ...) from an XML node. Should check for validity. parent is a higher-level object (usually window, dialog or panel) that is often necessary to create the resource. If instance is non-NULL it should not create a new instance via 'new' but should rather use this one, and call its Create method.
wxXmlResourceHandler::DoCreateResourcewxObject* DoCreateResource() Called from CreateResource after variables were filled.
wxXmlResourceHandler::GetBitmapwxBitmap GetBitmap(const wxString& param = wxT("bitmap"), wxSize size = wxDefaultSize) Gets a bitmap.
wxXmlResourceHandler::GetBoolbool GetBool(const wxString& param, bool defaultv = false) Gets a bool flag (1, t, yes, on, true are true, everything else is false).
wxXmlResourceHandler::GetColourwxColour GetColour(const wxString& param, const wxColour& default = wxNullColour) Gets colour in HTML syntax (#RRGGBB).
wxXmlResourceHandler::GetCurFileSystemwxFileSystem& GetCurFileSystem() Returns the current file system.
wxXmlResourceHandler::GetDimensionwxCoord GetDimension(const wxString& param, wxCoord defaultv = 0) Gets a dimension (may be in dialog units).
wxXmlResourceHandler::GetFontwxFont GetFont(const wxString& param = wxT("font")) Gets a font.
wxXmlResourceHandler::GetIDint GetID() Returns the XRCID.
wxXmlResourceHandler::GetIconwxIcon GetIcon(const wxString& param = wxT("icon"), wxSize size = wxDefaultSize) Returns an icon.
wxXmlResourceHandler::GetLonglong GetLong(const wxString& param, long defaultv = 0) Gets the integer value from the parameter.
wxXmlResourceHandler::GetNamewxString GetName() Returns the resource name.
wxXmlResourceHandler::GetNodeContentwxString GetNodeContent(wxXmlNode* node) Gets node content from wxXML_ENTITY_NODE.
wxXmlResourceHandler::GetParamNodewxXmlNode* GetParamNode(const wxString& param) Finds the node or returns NULL.
wxXmlResourceHandler::GetParamValuewxString GetParamValue(const wxString& param) Finds the parameter value or returns the empty string.
wxXmlResourceHandler::GetPositionwxPoint GetPosition(const wxString& param = wxT("pos")) Gets the position (may be in dialog units).
wxXmlResourceHandler::GetSizewxSize GetSize(const wxString& param = wxT("size")) Gets the size (may be in dialog units).
wxXmlResourceHandler::GetStyleint GetStyle(const wxString& param = wxT("style"), int defaults = 0) Gets style flags from text in form "flag | flag2| flag3 |..." Only understands flags added with AddStyle.
wxXmlResourceHandler::GetTextwxString GetText(const wxString& param) Gets text from param and does some conversions:
wxXmlResourceHandler::HasParambool HasParam(const wxString& param) Check to see if a parameter exists.
wxXmlResourceHandler::IsOfClassbool IsOfClass(wxXmlNode* node, const wxString& classname) Convenience function. Returns true if the node has a property class equal to classname, e.g. <object class="wxDialog">.
wxXmlResourceHandler::SetParentResourcevoid SetParentResource(wxXmlResource* res) Sets the parent resource.
wxXmlResourceHandler::SetupWindowvoid SetupWindow(wxWindow* wnd) Sets common window options.
|