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),
130 void elementAutoWindowStart(
const XMLAttributes& attributes);
136 void elementUserStringStart(
const XMLAttributes& attributes);
148 void elementLayoutImportStart(
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_ virtual void text(const String &text)
Method called to notify text node, several successiv text node are agregated.
Definition: GUILayout_xmlHandler.cpp:140
Window * getLayoutRootWindow(void) const
Return a pointer to the 'root' window created.
Definition: GUILayout_xmlHandler.cpp:181
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
virtual void elementStart(const String &element, const XMLAttributes &attributes)
document processing (only care about elements, schema validates format)
Definition: GUILayout_xmlHandler.cpp:63
Handler class used to parse the GUILayout XML files using SAX2.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:45
static const String GUILayoutVersionAttribute
Attribute name that stores the xml file version.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:107
virtual void elementEnd(const String &element)
Method called to notify the handler at the end of each XML element encountered.
Definition: GUILayout_xmlHandler.cpp:107
virtual const String & getDefaultResourceGroup() const
Retrieves the default resource group to be used when handling files.
Definition: GUILayout_xmlHandler.cpp:58
virtual const String & getSchemaName() const
Retrieves the schema file name to use with resources handled by this handler.
Definition: GUILayout_xmlHandler.cpp:54
static const String EventElement
Tag name for Event elements.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:102
static const String EventFunctionAttribute
Attribute name that stores the name of the scripted function to be bound.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:106
static const String EventNameAttribute
Attribute name that stores the event name to be subscribed.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:105
static const String LayoutImportFilenameAttribute
Attribute name that stores the file name of the layout to import.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:103
Class representing a block of attributes associated with an XML element.
Definition: cegui/include/CEGUI/XMLAttributes.h:46
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: cegui/include/CEGUI/Window.h:149
static const String LayoutImportElement
Tag name for LayoutImport elements.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:101
void cleanupLoadedWindows(void)
Destroy all windows created so far.
Definition: GUILayout_xmlHandler.cpp:148
GUILayout_xmlHandler(PropertyCallback *callback=0, void *userdata=0)
Constructor for GUILayout_xmlHandler objects.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/GUILayout_xmlHandler.h:58
static const String GUILayoutElement
Tag name for GUILayout elements.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:100
static const String NativeVersion
The only version that we will allow to load.
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:49
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: cegui/include/CEGUI/WindowManager.h:105
static const String LayoutImportResourceGroupAttribute
Attribute name that stores the resource group identifier used when loading imported file...
Definition: cegui/include/CEGUI/GUILayout_xmlHandler.h:104
virtual ~GUILayout_xmlHandler(void)
Destructor for GUILayout_xmlHandler objects.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/GUILayout_xmlHandler.h:68
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62