#include <cartctl.h>
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. |
Definition at line 288 of file cartctl.h.
|
Constructor.
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 }
|
|
Determines whether or not we can handle an object type.
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 }
|
|
Creates a wxCamArtControl from XML.
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 }
|