30 #ifndef _CEGUIWindowManager_h_
31 #define _CEGUIWindowManager_h_
33 #include "CEGUIBase.h"
34 #include "CEGUIString.h"
35 #include "CEGUISingleton.h"
36 #include "CEGUILogger.h"
37 #include "CEGUIIteratorBase.h"
38 #include "CEGUIEventSet.h"
43 # pragma warning(push)
44 # pragma warning(disable : 4275)
45 # pragma warning(disable : 4251)
167 void destroyWindow(
Window* window);
182 void destroyWindow(
const String& window);
210 bool isWindowPresent(
const String& name)
const;
222 void destroyAllWindows(
void);
255 Window* loadWindowLayout(
const String& filename,
const String& name_prefix =
"",
const String& resourceGroup =
"", PropertyCallback* callback = 0,
void* userdata = 0);
265 bool isDeadPoolEmpty(
void)
const;
278 void cleanDeadPool(
void);
297 void writeWindowLayoutToStream(
const Window& window,
OutStream& out_stream,
bool writeParent =
false)
const;
316 void writeWindowLayoutToStream(
const String& window,
OutStream& out_stream,
bool writeParent =
false)
const;
337 void saveWindowLayout(
const String& window,
const String& filename,
const bool writeParent =
false)
const;
357 void saveWindowLayout(
const Window& window,
const String& filename,
const bool writeParent =
false)
const;
375 void renameWindow(
const String& window,
const String& new_name);
390 void renameWindow(
Window* window,
const String& new_name);
400 static const String& getDefaultResourceGroup()
401 {
return d_defaultResourceGroup; }
413 static void setDefaultResourceGroup(
const String& resourceGroup)
414 { d_defaultResourceGroup = resourceGroup; }
462 bool isLocked()
const;
472 String generateUniqueWindowName();
475 void initialiseRenderEffect(
Window* wnd,
const String& effect)
const;
480 static const char GUILayoutSchemaName[];
486 typedef std::map<String, Window*, String::FastLessCompare> WindowRegistry;
487 typedef std::vector<Window*> WindowVector;
489 WindowRegistry d_windowRegistry;
490 WindowVector d_deathrow;
492 unsigned long d_uid_counter;
493 static String d_defaultResourceGroup;
507 WindowIterator getIterator(
void)
const;
519 void DEBUG_dumpWindowNames(
String zone);
524 #if defined(_MSC_VER)
525 # pragma warning(pop)
528 #endif // end of guard _CEGUIWindowManager_h_