Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Persist_XML_CPEditor Class Reference

This class is designed to read the UI data in an xml format used by the CP_Editor. More...

Inheritance diagram for CP_Persist_XML_CPEditor:

CP_NoCopy List of all members.

Public Member Functions

Constructor / Destructor
 CP_Persist_XML_CPEditor ()
 Constructor.
virtual ~CP_Persist_XML_CPEditor ()
 Destructor.
Creation
CP_M_PersistCreate (CP_XMLDocument &inXMLDocument, CP_View *inSuperview=NULL, bool inDocumentWindow=false)

Protected Member Functions

DataValue List
CP_DataValueList CreateDataValueList (CP_XMLDocNode *inContainingViewDocNode)

Protected Attributes

CP_ObjectDescriptions fObjectDescriptions
CP_SignalSlotConnections fSignalConnections

Private Member Functions

Creation
CP_M_PersistCreateUISection (CP_XMLDocNode *inDocNode, CP_View *inSuperview=NULL, bool inDocumentWindow=false)
void CreateSignalSlotSection (CP_XMLDocNode *inDocNode)
void HandleSignalSlotConnection (CP_XMLDocNode *inDocNode)
CP_M_PersistCreateToplevelView (CP_XMLDocNode *inDocNode, CP_View *inSuperview=NULL, bool inDocumentWindow=false)
void CreateSubviewSection (CP_XMLDocNode *inDocNode, CP_View *inSuperview)

Detailed Description

The format of the xml data is as follows:

<?xml version="1.0" encoding="UTF-8"?> <cplat_description> <ui_description> <widget id="1" class="CPLAT::CP_Window"> <cp_rect name="bounds">32 60 732 567</cp_rect> <uint32 name="class">6</uint32> <uint32 name="attributes">34078720</uint32> <cp_string name="text">Simple Hello</cp_string> </widget> <array count="2" name="subviews"> <widget id="1" class="CPLAT::CP_TextGroupBox"> <cp_rect name="bounds">20 20 520 320</cp_rect> <cp_string name="text">Box - at 20,20 size 500,300</cp_string> </widget> <widget id="1" class="CPLAT::CP_PushButton"> <cp_rect name="bounds">557 34 627 54</cp_rect> <cp_string name="text">Button</cp_string> </widget> </array> </ui_description> </cplat_description>


Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_Persist_XML_CPEditor::CP_Persist_XML_CPEditor  ) 
 

Constructor.

CP_Persist_XML_CPEditor::~CP_Persist_XML_CPEditor  )  [virtual]
 

Destructor.


Member Function Documentation

CP_M_Persist * CP_Persist_XML_CPEditor::Create CP_XMLDocument inXMLDocument,
CP_View inSuperview = NULL,
bool  inDocumentWindow = false
 

CP_DataValueList CP_Persist_XML_CPEditor::CreateDataValueList CP_XMLDocNode inContainingViewDocNode  )  [protected]
 

CP_M_Persist * CP_Persist_XML_CPEditor::CreateUISection CP_XMLDocNode inDocNode,
CP_View inSuperview = NULL,
bool  inDocumentWindow = false
[private]
 

void CP_Persist_XML_CPEditor::CreateSignalSlotSection CP_XMLDocNode inDocNode  )  [private]
 

void CP_Persist_XML_CPEditor::HandleSignalSlotConnection CP_XMLDocNode inDocNode  )  [private]
 

CP_M_Persist * CP_Persist_XML_CPEditor::CreateToplevelView CP_XMLDocNode inDocNode,
CP_View inSuperview = NULL,
bool  inDocumentWindow = false
[private]
 

void CP_Persist_XML_CPEditor::CreateSubviewSection CP_XMLDocNode inDocNode,
CP_View inSuperview
[private]
 

Creates the subview section for a view. This is called with an array of subviews for a superview is encountered in the xml document.

Parameters:
inDocNode The node containing the subviews to be created.
inSuperview The view that will contains these newly created subviews.
Exceptions:
NULL Throws a NULL exception if a NULL node is encountered, or an object can't be created. CP_paramErr If a node doesn't contain data in the proper format.
Returns:
void


Member Data Documentation

CP_ObjectDescriptions CP_Persist_XML_CPEditor::fObjectDescriptions [protected]
 

CP_SignalSlotConnections CP_Persist_XML_CPEditor::fSignalConnections [protected]
 

List of object descriptions.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:55 2005 for CPLAT by  doxygen 1.4.0