Changeset 8423 for code/trunk/src/libraries/core/GUIManager.h
- Timestamp:
- May 9, 2011, 5:06:49 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/GUIManager.h
r8411 r8423 44 44 #include <CEGUIVersion.h> 45 45 #include <boost/shared_ptr.hpp> 46 #include <loki/ScopeGuard.h>47 46 47 #include "util/DestructionHelper.h" 48 48 #include "util/OgreForwardRefs.h" 49 49 #include "util/TriBool.h" … … 83 83 public: 84 84 GUIManager(const std::pair<int, int>& mousePosition); 85 85 86 //! Leave empty and use cleanup() instead 86 87 ~GUIManager() {} 88 /// Destructor that also executes when object fails to construct 89 void destroy(); 87 90 88 91 void setConfigValues(void); … … 134 137 GUIManager(const GUIManager& instance); //!< private and undefined copy c'tor (this is a singleton class) 135 138 136 /// Destructor that also executes when object fails to construct137 void cleanup();138 139 139 void executeCode(const std::string& str); 140 140 … … 156 156 virtual void windowResized(unsigned int newWidth, unsigned int newHeight); 157 157 virtual void windowFocusChanged(bool bFocus); 158 159 /// Surrogate for the destructor160 Loki::ObjScopeGuardImpl0<GUIManager, void (GUIManager::*)()> destroyer_;161 158 162 159 #ifdef ORXONOX_OLD_CEGUI … … 180 177 Ogre::Camera* camera_; //!< Camera used to render the scene with the GUI 181 178 179 /// Helper object that executes the surrogate destructor destroy() 180 DestructionHelper<GUIManager> destructionHelper_; 181 182 182 static GUIManager* singletonPtr_s; //!< Singleton reference to GUIManager 183 183
Note: See TracChangeset
for help on using the changeset viewer.