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

CEGUI::GUILayout_xmlHandler Class Reference

Handler class used to parse the GUILayout XML files using SAX2. More...

#include <CEGUIGUILayout_xmlHandler.h>

Inheritance diagram for CEGUI::GUILayout_xmlHandler:

Inheritance graph
[legend]
Collaboration diagram for CEGUI::GUILayout_xmlHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GUILayout_xmlHandler (const String &name_prefix, PropertyCallback *callback=NULL, void *userdata=NULL)
 Constructor for GUILayout_xmlHandler objects.
virtual ~GUILayout_xmlHandler (void)
 Destructor for GUILayout_xmlHandler objects.
virtual void elementStart (const String &element, const XMLAttributes &attributes)
 document processing (only care about elements, schema validates format)
virtual void elementEnd (const String &element)
 Method called to notify the handler at the end of each XML element encountered.
void cleanupLoadedWindows (void)
 Destroy all windows created so far.
WindowgetLayoutRootWindow (void) const
 Return a pointer to the 'root' window created.

Detailed Description

Handler class used to parse the GUILayout XML files using SAX2.

Definition at line 42 of file CEGUIGUILayout_xmlHandler.h.


Constructor & Destructor Documentation

CEGUI::GUILayout_xmlHandler::GUILayout_xmlHandler const String name_prefix,
PropertyCallback *  callback = NULL,
void *  userdata = NULL
[inline]
 

Constructor for GUILayout_xmlHandler objects.

Definition at line 53 of file CEGUIGUILayout_xmlHandler.h.

virtual CEGUI::GUILayout_xmlHandler::~GUILayout_xmlHandler void   )  [inline, virtual]
 

Destructor for GUILayout_xmlHandler objects.

Definition at line 64 of file CEGUIGUILayout_xmlHandler.h.


Member Function Documentation

void CEGUI::GUILayout_xmlHandler::cleanupLoadedWindows void   ) 
 

Destroy all windows created so far.

Definition at line 227 of file CEGUIGUILayout_xmlHandler.cpp.

References CEGUI::WindowManager::destroyWindow(), CEGUI::Window::getParent(), CEGUI::WindowManager::getSingleton(), and CEGUI::Window::removeChildWindow().

Referenced by elementStart().

void CEGUI::GUILayout_xmlHandler::elementEnd const String element  )  [virtual]
 

Method called to notify the handler at the end of each XML element encountered.

Parameters:
element String object holding the name of the element that is ending.
Returns:
Nothing.

Reimplemented from CEGUI::XMLHandler.

Definition at line 198 of file CEGUIGUILayout_xmlHandler.cpp.

References CEGUI::Window::addChildWindow(), CEGUI::String::empty(), CEGUI::WindowManager::getSingleton(), and CEGUI::WindowManager::getWindow().

void CEGUI::GUILayout_xmlHandler::elementStart const String element,
const XMLAttributes attributes
[virtual]
 

document processing (only care about elements, schema validates format)

Reimplemented from CEGUI::XMLHandler.

Definition at line 55 of file CEGUIGUILayout_xmlHandler.cpp.

References cleanupLoadedWindows(), CEGUI::WindowManager::createWindow(), CEGUI::String::empty(), CEGUI::WindowManager::getSingleton(), CEGUI::XMLAttributes::getValueAsString(), CEGUI::WindowManager::loadWindowLayout(), and CEGUI::PropertySet::setProperty().

Window * CEGUI::GUILayout_xmlHandler::getLayoutRootWindow void   )  const
 

Return a pointer to the 'root' window created.

Definition at line 256 of file CEGUIGUILayout_xmlHandler.cpp.

Referenced by CEGUI::WindowManager::loadWindowLayout().


The documentation for this class was generated from the following files:
Generated on Wed Sep 7 10:06:15 2005 for Crazy Eddies GUI System by  doxygen 1.4.3