Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2009, 11:30:05 AM (15 years ago)
Author:
rgrieder
Message:

Moved WindowEventListener to the core to avoid some really ugly hacks in the Mouse.

Location:
code/branches/core4/src
Files:
1 added
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/core/CMakeLists.txt

    r3245 r3290  
    3131  ObjectListBase.cc
    3232  OrxonoxClass.cc
     33  WindowEventListener.cc
    3334
    3435  # command
  • code/branches/core4/src/core/WindowEventListener.h

    r3282 r3290  
    3030#define _WindowEventListener_H__
    3131
    32 #include "OrxonoxPrereqs.h"
    33 #include "core/OrxonoxClass.h"
     32#include "CorePrereqs.h"
     33#include "OrxonoxClass.h"
    3434
    3535namespace orxonox
    3636{
    37     /**
    38         @brief Interface for receiving window events.
    39     */
    40     class _OrxonoxExport WindowEventListener : virtual public OrxonoxClass
     37    //! Interface for receiving window events like resize, moved and focusChanged
     38    class _CoreExport WindowEventListener : virtual public OrxonoxClass
    4139    {
    4240        public:
     
    4442            virtual ~WindowEventListener() { }
    4543
    46             /** Window has moved position */
     44            //! Window has been moved
    4745            virtual void windowMoved() { }
    4846
    49             /** Window has resized */
     47            //! Window has resized
    5048            virtual void windowResized(unsigned int newWidth, unsigned int newHeight) { }
    5149
    52             /** Window has lost/gained focus */
     50            //! Window has lost/gained focus
    5351            virtual void windowFocusChanged() { }
    5452    };
  • code/branches/core4/src/orxonox/GraphicsManager.cc

    r3254 r3290  
    6363#include "core/Game.h"
    6464#include "core/GameMode.h"
     65#include "core/WindowEventListener.h"
    6566#include "tools/ParticleInterface.h"
    66 #include "interfaces/WindowEventListener.h"
    6767
    6868// HACK!
  • code/branches/core4/src/orxonox/gamestates/GSGraphics.h

    r3274 r3290  
    3939
    4040#include "core/GameState.h"
    41 #include "interfaces/WindowEventListener.h"
     41#include "core/WindowEventListener.h"
    4242
    4343namespace orxonox
  • code/branches/core4/src/orxonox/interfaces/InterfaceCompilation.cc

    r3196 r3290  
    4040#include "Tickable.h"
    4141#include "TimeFactorListener.h"
    42 #include "WindowEventListener.h"
    4342
    4443#include "core/CoreIncludes.h"
     
    103102
    104103    //----------------------------
    105     // WindowEventListener
    106     //----------------------------
    107     /**
    108         @brief Constructor for the WindowEventListener.
    109     */
    110     WindowEventListener::WindowEventListener()
    111     {
    112         RegisterRootObject(WindowEventListener);
    113     }
    114 
    115     //----------------------------
    116104    // Rewardable
    117105    //----------------------------
  • code/branches/core4/src/orxonox/overlays/OrxonoxOverlay.h

    r3196 r3290  
    4242#include "util/OgreForwardRefs.h"
    4343#include "core/BaseObject.h"
    44 #include "interfaces/WindowEventListener.h"
     44#include "core/WindowEventListener.h"
    4545
    4646namespace orxonox
  • code/branches/core4/src/orxonox/overlays/console/InGameConsole.h

    r3274 r3290  
    3636#include "util/OgreForwardRefs.h"
    3737#include "core/Shell.h"
    38 #include "interfaces/WindowEventListener.h"
     38#include "core/WindowEventListener.h"
    3939
    4040namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.