wxCamDrawControlXmlHandler Class Reference

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

#include <drawctl.h>

List of all members.

Public Member Functions

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


Detailed Description

A resource handler to enable wxCamDrawControl 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 228 of file drawctl.h.


Constructor & Destructor Documentation

wxCamDrawControlXmlHandler::wxCamDrawControlXmlHandler  ) 
 

Constructor.

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

Errors: -

See also:
-

Definition at line 330 of file drawctl.cpp.

00330                                                        : wxXmlResourceHandler()
00331 {
00332     XRC_ADD_STYLE(wxCDCS_DEFAULT);
00333     XRC_ADD_STYLE(wxCDCS_SETCLIPRECT);
00334     AddWindowStyles();
00335 }


Member Function Documentation

bool wxCamDrawControlXmlHandler::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 387 of file drawctl.cpp.

00387                : Correct*/ wxCamDrawControlXmlHandler::CanHandle(wxXmlNode *node)
00388 {
00389     bool    fOurClass = node->GetPropVal(wxT("class"), wxEmptyString) == wxT("wxCamDrawControl");
00390     return fOurClass;
00391 
00392     // This doesn't work on some compilers (although it is identical to what's above
00393     // just not in a function implemented in a header)
00394 //  return (IsOfClass(node, wxT("wxCamDrawControl")));
00395 }

wxObject * wxCamDrawControlXmlHandler::DoCreateResource  )  [virtual]
 

Creates a wxCamDrawControl from XML.

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

Errors: -

See also:
-

Definition at line 353 of file drawctl.cpp.

00354 {
00355     XRC_MAKE_INSTANCE(control, wxCamDrawControl);
00356     control->Create(m_parentAsWindow,
00357                     GetID(),
00358                     GetPosition(),
00359                     GetSize(),
00360                     (GetStyle() & ~wxBORDER_MASK) | wxNO_BORDER,
00361                     wxDefaultValidator,
00362                     (wxCamDrawControlStyle)GetStyle(_T("camdrawstyle")),
00363                     GetParamValue(_T("optoken"))
00364                     );
00365 
00366     SetupWindow(control);
00367 
00368     return control;
00369 }


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