Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 10:29:21 PM (8 years ago)
Author:
landauf
Message:

merged branch cpp11_v3 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/core/GUIManager.h

    r11052 r11071  
    4040#include <map>
    4141#include <string>
     42#include <memory>
    4243
    4344#if CEGUI_VERSION >= 0x000800
     
    4849#   include <CEGUIVersion.h>
    4950#endif
    50 
    51 #include <boost/shared_ptr.hpp>
    5251
    5352#include "util/DestructionHelper.h"
     
    9897
    9998        //! Leave empty and use cleanup() instead
    100         ~GUIManager() {}
     99        ~GUIManager() = default;
    101100        /// Destructor that also executes when object fails to construct
    102101        void destroy();
     
    137136        inline void setPlayer(const std::string& guiname, PlayerInfo* player)
    138137            { 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_export
     138        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
    140139
    141140        // TODO: Temporary hack because the tolua exported CEGUI method does not seem to work
     
    154153
    155154    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;
    157158
    158159        void executeCode(const std::string& str);
     
    172173
    173174        // keyHandler functions
    174         void buttonPressed (const KeyEvent& evt);
    175         void buttonReleased(const KeyEvent& evt);
     175        virtual void buttonPressed (const KeyEvent& evt) override;
     176        virtual void buttonReleased(const KeyEvent& evt) override;
    176177
    177178        // mouseHandler functions
    178         void buttonPressed (MouseButtonCode::ByEnum id);
    179         void buttonReleased(MouseButtonCode::ByEnum id);
    180         void mouseMoved    (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize);
    181         void 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;
    182183        void mouseLeft     ();
    183184
    184185        // 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;
    187188
    188189#ifdef ORXONOX_OLD_CEGUI
     
    198199        CEGUI::LuaScriptModule*              scriptModule_;         //!< CEGUI's script module to use Lua
    199200        CEGUI::System*                       guiSystem_;            //!< CEGUI's main system
    200         shared_ptr<ResourceInfo>             rootFileInfo_;         //!< Resource information about the root script
     201        std::shared_ptr<ResourceInfo>        rootFileInfo_;         //!< Resource information about the root script
    201202        CEGUI::Logger*                       ceguiLogger_;          //!< CEGUI's logger to be able to log CEGUI errors in our log
    202203        int                                  outputLevelCeguiLog_;  //!< CEGUI's log level
Note: See TracChangeset for help on using the changeset viewer.