28 #ifndef _CEGUIConfig_xmlHandler_h_
29 #define _CEGUIConfig_xmlHandler_h_
31 #include "CEGUIBase.h"
32 #include "CEGUIString.h"
33 #include "CEGUILogger.h"
34 #include "CEGUIXMLHandler.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;
63 static const String DefaultGUISheetElement;
65 static const String FilenameAttribute;
66 static const String LevelAttribute;
67 static const String TypeAttribute;
68 static const String GroupAttribute;
69 static const String PatternAttribute;
70 static const String DirectoryAttribute;
71 static const String InitScriptAttribute;
72 static const String TerminateScriptAttribute;
73 static const String ImagesetAttribute;
74 static const String ImageAttribute;
75 static const String NameAttribute;
127 struct ResourceDirectory
134 struct DefaultResourceGroup
141 struct AutoLoadResource
150 void handleCEGUIConfigElement(
const XMLAttributes& attr);
151 void handleLoggingElement(
const XMLAttributes& attr);
152 void handleAutoLoadElement(
const XMLAttributes& attr);
153 void handleResourceDirectoryElement(
const XMLAttributes& attr);
154 void handleDefaultResourceGroupElement(
const XMLAttributes& attr);
155 void handleScriptingElement(
const XMLAttributes& attr);
156 void handleXMLParserElement(
const XMLAttributes& attr);
157 void handleImageCodecElement(
const XMLAttributes& attr);
158 void handleDefaultTooltipElement(
const XMLAttributes& attr);
159 void handleDefaultGUISheetElement(
const XMLAttributes& attr);
160 void handleDefaultFontElement(
const XMLAttributes& attr);
161 void handleDefaultMouseCursorElement(
const XMLAttributes& attr);
164 ResourceType stringToResourceType(
const String& type)
const;
166 void autoLoadLayouts(
const String& pattern,
const String& group)
const;
168 void autoLoadLookNFeels(
const String& pattern,
const String& group)
const;
171 typedef std::vector<ResourceDirectory> ResourceDirVector;
173 typedef std::vector<DefaultResourceGroup> DefaultGroupVector;
175 typedef std::vector<AutoLoadResource> AutoResourceVector;
177 String d_logFileName;
181 String d_xmlParserName;
183 String d_imageCodecName;
185 String d_defaultFont;
187 String d_defaultMouseImageset;
189 String d_defaultMouseImage;
191 String d_defaultTooltipType;
193 String d_defaultGUISheet;
195 String d_scriptingInitScript;
197 String d_scriptingTerminateScript;
199 ResourceDirVector d_resourceDirectories;
201 DefaultGroupVector d_defaultResourceGroups;
203 AutoResourceVector d_autoLoadResources;
208 #if defined (_MSC_VER)
209 # pragma warning(pop)
212 #endif // end of guard _CEGUIConfig_xmlHandler_h_