Changeset 11071 for code/trunk/src/libraries/core/GUIManager.h
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/GUIManager.h
r11052 r11071 40 40 #include <map> 41 41 #include <string> 42 #include <memory> 42 43 43 44 #if CEGUI_VERSION >= 0x000800 … … 48 49 # include <CEGUIVersion.h> 49 50 #endif 50 51 #include <boost/shared_ptr.hpp>52 51 53 52 #include "util/DestructionHelper.h" … … 98 97 99 98 //! Leave empty and use cleanup() instead 100 ~GUIManager() {}99 ~GUIManager() = default; 101 100 /// Destructor that also executes when object fails to construct 102 101 void destroy(); … … 137 136 inline void setPlayer(const std::string& guiname, PlayerInfo* player) 138 137 { this->players_[guiname] = player; } 139 inline orxonox::PlayerInfo* getPlayer(const std::string& guiname) const { std::map<std::string, PlayerInfo*>::const_iterator it = this->players_.find(guiname); return (it != this->players_.end()) ? it->second : 0; } // tolua_export138 inline orxonox::PlayerInfo* getPlayer(const std::string& guiname) const { std::map<std::string, PlayerInfo*>::const_iterator it = this->players_.find(guiname); return (it != this->players_.end()) ? it->second : nullptr; } // tolua_export 140 139 141 140 // TODO: Temporary hack because the tolua exported CEGUI method does not seem to work … … 154 153 155 154 private: 156 GUIManager(const GUIManager& instance); //!< private and undefined copy c'tor (this is a singleton class) 155 // non-copyable: 156 GUIManager(const GUIManager&) = delete; 157 GUIManager& operator=(const GUIManager&) = delete; 157 158 158 159 void executeCode(const std::string& str); … … 172 173 173 174 // keyHandler functions 174 v oid buttonPressed (const KeyEvent& evt);175 v oid buttonReleased(const KeyEvent& evt);175 virtual void buttonPressed (const KeyEvent& evt) override; 176 virtual void buttonReleased(const KeyEvent& evt) override; 176 177 177 178 // mouseHandler functions 178 v oid buttonPressed (MouseButtonCode::ByEnum id);179 v oid buttonReleased(MouseButtonCode::ByEnum id);180 v oid mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize);181 v oid mouseScrolled (int abs, int rel);179 virtual void buttonPressed (MouseButtonCode::ByEnum id) override; 180 virtual void buttonReleased(MouseButtonCode::ByEnum id) override; 181 virtual void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override; 182 virtual void mouseScrolled (int abs, int rel) override; 182 183 void mouseLeft (); 183 184 184 185 // window event handler 185 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) ;186 virtual void windowFocusChanged(bool bFocus) ;186 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) override; 187 virtual void windowFocusChanged(bool bFocus) override; 187 188 188 189 #ifdef ORXONOX_OLD_CEGUI … … 198 199 CEGUI::LuaScriptModule* scriptModule_; //!< CEGUI's script module to use Lua 199 200 CEGUI::System* guiSystem_; //!< CEGUI's main system 200 s hared_ptr<ResourceInfo>rootFileInfo_; //!< Resource information about the root script201 std::shared_ptr<ResourceInfo> rootFileInfo_; //!< Resource information about the root script 201 202 CEGUI::Logger* ceguiLogger_; //!< CEGUI's logger to be able to log CEGUI errors in our log 202 203 int outputLevelCeguiLog_; //!< CEGUI's log level
Note: See TracChangeset
for help on using the changeset viewer.