Crazy Eddie's GUI System
0.8.7
|
29 #ifndef _CEGUIGUILayout_xmlHandler_h_
30 #define _CEGUIGUILayout_xmlHandler_h_
32 #include "CEGUI/WindowManager.h"
33 #include "CEGUI/Window.h"
34 #include "CEGUI/XMLHandler.h"
45 class GUILayout_xmlHandler :
public XMLHandler
60 d_propertyCallback(callback),
80 virtual void elementStart(
const String& element,
const XMLAttributes& attributes);
81 virtual void elementEnd(
const String& element);
82 virtual void text(
const String&
text);
130 void elementAutoWindowStart(
const XMLAttributes& attributes);
136 void elementUserStringStart(
const XMLAttributes& attributes);
160 void elementWindowEnd();
166 void elementAutoWindowEnd();
172 void elementUserStringEnd();
178 void elementPropertyEnd();
185 typedef std::pair<Window*, bool> WindowStackEntry;
186 typedef std::vector<WindowStackEntry
187 CEGUI_VECTOR_ALLOC(WindowStackEntry)> WindowStack;
190 PropertyCallback* d_propertyCallback;
200 #endif // end of guard _CEGUIGUILayout_xmlHandler_h_
static const String EventNameAttribute
Attribute name that stores the event name to be subscribed.
Definition: GUILayout_xmlHandler.h:148
static const String GUILayoutVersionAttribute
Attribute name that stores the xml file version.
Definition: GUILayout_xmlHandler.h:150
static const String EventFunctionAttribute
Attribute name that stores the name of the scripted function to be bound.
Definition: GUILayout_xmlHandler.h:149
static const String LayoutImportElement
Tag name for LayoutImport elements.
Definition: GUILayout_xmlHandler.h:144
virtual void elementStart(const String &element, const XMLAttributes &attributes)
document processing (only care about elements, schema validates format)
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
static const String EventElement
Tag name for Event elements.
Definition: GUILayout_xmlHandler.h:145
static const String LayoutImportResourceGroupAttribute
Attribute name that stores the resource group identifier used when loading imported file.
Definition: GUILayout_xmlHandler.h:147
Window * getLayoutRootWindow(void) const
Return a pointer to the 'root' window created.
virtual void elementEnd(const String &element)
Method called to notify the handler at the end of each XML element encountered.
Class representing a block of attributes associated with an XML element.
Definition: XMLAttributes.h:66
virtual const String & getSchemaName() const
Retrieves the schema file name to use with resources handled by this handler.
GUILayout_xmlHandler(PropertyCallback *callback=0, void *userdata=0)
Constructor for GUILayout_xmlHandler objects.
Definition: GUILayout_xmlHandler.h:103
static const String LayoutImportFilenameAttribute
Attribute name that stores the file name of the layout to import.
Definition: GUILayout_xmlHandler.h:146
bool PropertyCallback(Window *window, String &propname, String &propvalue, void *userdata)
Function type that is used as a callback when loading layouts from XML; the function is called for ea...
Definition: WindowManager.h:150
void cleanupLoadedWindows(void)
Destroy all windows created so far.
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:171
static const String NativeVersion
The only version that we will allow to load.
Definition: GUILayout_xmlHandler.h:95
virtual const String & getDefaultResourceGroup() const
Retrieves the default resource group to be used when handling files.
virtual ~GUILayout_xmlHandler(void)
Destructor for GUILayout_xmlHandler objects.
Definition: GUILayout_xmlHandler.h:113
String class used within the GUI system.
Definition: String.h:83
static const String GUILayoutElement
Tag name for GUILayout elements.
Definition: GUILayout_xmlHandler.h:143
virtual void text(const String &text)
Method called to notify text node, several successiv text node are agregated.
Handler class used to parse the GUILayout XML files using SAX2.
Definition: GUILayout_xmlHandler.h:67