28 #ifndef _CEGUIConfig_xmlHandler_h_
29 #define _CEGUIConfig_xmlHandler_h_
31 #include "CEGUI/Base.h"
32 #include "CEGUI/String.h"
33 #include "CEGUI/Logger.h"
34 #include "CEGUI/XMLHandler.h"
37 #if defined (_MSC_VER)
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
52 static const String CEGUIConfigElement;
53 static const String LoggingElement;
54 static const String AutoLoadElement;
55 static const String ResourceDirectoryElement;
56 static const String DefaultResourceGroupElement;
57 static const String ScriptingElement;
58 static const String XMLParserElement;
59 static const String ImageCodecElement;
60 static const String DefaultFontElement;
61 static const String DefaultMouseCursorElement;
62 static const String DefaultTooltipElement;
64 static const String FilenameAttribute;
65 static const String LevelAttribute;
66 static const String TypeAttribute;
67 static const String GroupAttribute;
68 static const String PatternAttribute;
69 static const String DirectoryAttribute;
70 static const String InitScriptAttribute;
71 static const String TerminateScriptAttribute;
72 static const String ImageAttribute;
73 static const String NameAttribute;
126 struct ResourceDirectory
133 struct DefaultResourceGroup
140 struct AutoLoadResource
149 void handleCEGUIConfigElement(
const XMLAttributes& attr);
150 void handleLoggingElement(
const XMLAttributes& attr);
151 void handleAutoLoadElement(
const XMLAttributes& attr);
152 void handleResourceDirectoryElement(
const XMLAttributes& attr);
153 void handleDefaultResourceGroupElement(
const XMLAttributes& attr);
154 void handleScriptingElement(
const XMLAttributes& attr);
155 void handleXMLParserElement(
const XMLAttributes& attr);
156 void handleImageCodecElement(
const XMLAttributes& attr);
157 void handleDefaultTooltipElement(
const XMLAttributes& attr);
158 void handleDefaultFontElement(
const XMLAttributes& attr);
159 void handleDefaultMouseCursorElement(
const XMLAttributes& attr);
162 ResourceType stringToResourceType(
const String& type)
const;
164 void autoLoadLookNFeels(
const String& pattern,
const String& group)
const;
166 void autoLoadImagesets(
const String& pattern,
const String& group)
const;
169 typedef std::vector<ResourceDirectory
170 CEGUI_VECTOR_ALLOC(ResourceDirectory)> ResourceDirVector;
172 typedef std::vector<DefaultResourceGroup
173 CEGUI_VECTOR_ALLOC(DefaultResourceGroup)> DefaultGroupVector;
175 typedef std::vector<AutoLoadResource
176 CEGUI_VECTOR_ALLOC(AutoLoadResource)> AutoResourceVector;
178 String d_logFileName;
182 String d_xmlParserName;
184 String d_imageCodecName;
186 String d_defaultFont;
188 String d_defaultMouseImage;
190 String d_defaultTooltipType;
192 String d_scriptingInitScript;
194 String d_scriptingTerminateScript;
196 ResourceDirVector d_resourceDirectories;
198 DefaultGroupVector d_defaultResourceGroups;
200 AutoResourceVector d_autoLoadResources;
205 #if defined (_MSC_VER)
206 # pragma warning(pop)
209 #endif // end of guard _CEGUIConfig_xmlHandler_h_