27 #ifndef _CEGUIFalWidgetLookManager_h_
28 #define _CEGUIFalWidgetLookManager_h_
30 #include "../Singleton.h"
31 #include "../String.h"
32 #include "../Exceptions.h"
33 #include "./WidgetLookFeel.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
39 # pragma warning(disable : 4275)
49 class CEGUIEXPORT WidgetLookManager :
50 public Singleton<WidgetLookManager>,
51 public AllocatedObject<WidgetLookManager>
73 static WidgetLookManager& getSingleton(
void);
83 static WidgetLookManager* getSingletonPtr(
void);
87 typedef std::set<String, StringFastLessCompare CEGUI_SET_ALLOC(String)> WidgetLookNameSet;
90 typedef std::map<String, WidgetLookFeel*, StringFastLessCompare CEGUI_MAP_ALLOC(String, WidgetLookFeel*)> WidgetLookPointerMap;
113 void parseLookNFeelSpecificationFromContainer(
const RawDataContainer& source);
118 void parseLookNFeelSpecificationFromFile(
const String& filename,
const String& resourceGroup =
"");
123 void parseLookNFeelSpecificationFromString(
const String& source);
136 bool isWidgetLookAvailable(
const String& widget)
const;
151 const WidgetLookFeel& getWidgetLook(
const String& widget)
const;
165 void eraseWidgetLook(
const String& widget);
168 void eraseAllWidgetLooks();
186 void addWidgetLook(
const WidgetLookFeel& look);
200 void writeWidgetLookToStream(
const String& widgetLookName,
OutStream& out_stream)
const;
213 String getWidgetLookAsString(
const String& widgetLookName)
const;
226 String getWidgetLookSetAsString(
const WidgetLookNameSet& widgetLookNameSet)
const;
244 void writeWidgetLookSeriesToStream(
const String& prefix,
OutStream& out_stream)
const;
260 void writeWidgetLookSetToStream(
const WidgetLookNameSet& widgetLookNameSet,
OutStream& out_stream)
const;
270 static const String& getDefaultResourceGroup()
271 {
return d_defaultResourceGroup; }
283 static void setDefaultResourceGroup(
const String& resourceGroup)
284 { d_defaultResourceGroup = resourceGroup; }
294 WidgetLookPointerMap getWidgetLookPointerMap();
298 static const String FalagardSchemaName;
300 static String d_defaultResourceGroup;
306 typedef std::map<String, WidgetLookFeel, StringFastLessCompare> WidgetLookList;
309 WidgetLookList d_widgetLooks;
313 typedef ConstMapIterator<WidgetLookList> WidgetLookIterator;
315 WidgetLookIterator getWidgetLookIterator()
const;
321 #if defined(_MSC_VER)
322 # pragma warning(pop)
325 #endif // end of guard _CEGUIFalWidgetLookManager_h_