wxCamArtControlXmlHandler Class Reference

A resource handler to enable wxCamArtControl items to be loaded from XML Notes: In the OIL See Also:. More...

#include <cartctl.h>

List of all members.

Public Member Functions

 wxCamArtControlXmlHandler ()
 Constructor.
virtual wxObject * DoCreateResource ()
 Creates a wxCamArtControl from XML.
virtual bool CanHandle (wxXmlNode *node)
 Determines whether or not we can handle an object type.


Detailed Description

A resource handler to enable wxCamArtControl items to be loaded from XML Notes: In the OIL See Also:.

Author:
Alex_Bligh <alex@alex.org.uk>
Date:
19/12/2005

Definition at line 288 of file cartctl.h.


Constructor & Destructor Documentation

wxCamArtControlXmlHandler::wxCamArtControlXmlHandler  ) 
 

Constructor.

Author:
Alex_Bligh <alex@alex.org.uk>
Date:
30/12/2005
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 460 of file cartctl.cpp.

00460                                                      : wxXmlResourceHandler()
00461 {
00462     XRC_ADD_STYLE(wxCACS_TEXT);
00463     XRC_ADD_STYLE(wxCACS_TOOLBACKGROUND);
00464     XRC_ADD_STYLE(wxCACS_PUSHBUTTON);
00465     XRC_ADD_STYLE(wxCACS_TOGGLEBUTTON);
00466     XRC_ADD_STYLE(wxCACS_ALWAYS3D);
00467     XRC_ADD_STYLE(wxCACS_ALLOWHOVER);
00468     XRC_ADD_STYLE(wxCACS_NOINTERNALBORDER);
00469     XRC_ADD_STYLE(wxCACS_HALFHEIGHT);
00470     XRC_ADD_STYLE(wxCACS_EXACTFIT);
00471     XRC_ADD_STYLE(wxCACS_TOP);
00472     XRC_ADD_STYLE(wxCACS_BOTTOM);
00473     XRC_ADD_STYLE(wxCACS_LEFT);
00474     XRC_ADD_STYLE(wxCACS_RIGHT);
00475     XRC_ADD_STYLE(wxCACS_NOAUTOREPEAT);
00476     XRC_ADD_STYLE(wxCACS_STATUSBARTEXT);
00477     AddWindowStyles();
00478 }


Member Function Documentation

bool wxCamArtControlXmlHandler::CanHandle wxXmlNode *  node  )  [virtual]
 

Determines whether or not we can handle an object type.

Author:
Alex_Bligh <alex@alex.org.uk>
Date:
30/12/2005
Parameters:
node - a pointer to the xml node [INPUTS]
- [OUTPUTS]
Returns:
TRUE if we can load it

Errors: -

See also:
-

Definition at line 530 of file cartctl.cpp.

00530                : Correct*/ wxCamArtControlXmlHandler::CanHandle(wxXmlNode *node)
00531 {
00532     bool    fOurClass = node->GetPropVal(wxT("class"), wxEmptyString) == wxT("wxCamArtControl");
00533     return fOurClass;
00534 
00535     // This doesn't work on some compilers (although it is identical to what's above
00536     // just not in a function implemented in a header)
00537 //  return (IsOfClass(node, wxT("wxCamArtControl")));
00538 }

wxObject * wxCamArtControlXmlHandler::DoCreateResource  )  [virtual]
 

Creates a wxCamArtControl from XML.

Author:
Alex_Bligh <alex@alex.org.uk>
Date:
30/12/2005
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 496 of file cartctl.cpp.

00497 {
00498     XRC_MAKE_INSTANCE(control, wxCamArtControl);
00499     control->Create(m_parentAsWindow,
00500                     GetID(),
00501                     GetPosition(),
00502                     GetSize(),
00503                     (GetStyle() & ~wxBORDER_MASK) | wxNO_BORDER,
00504                     wxDefaultValidator,
00505                     (wxCamArtControlStyle)GetStyle(_T("camartstyle")),
00506                     GetParamValue(_T("optoken"))
00507                     );
00508 
00509     SetupWindow(control);
00510 
00511     return control;
00512 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:03:15 2007 for Camelot by  doxygen 1.4.4