Include cleanup

pull/470/head
scrawl 10 years ago
parent 056a01a05b
commit 0c6e2170db

@ -10,7 +10,7 @@
#define MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
#endif // MAC_OS_X_VERSION_MIN_REQUIRED
#include <SDL.h>
#include <SDL_video.h>
#include <OgreRoot.h>
#include <OgreRenderSystem.h>

@ -1,5 +1,5 @@
#ifndef GAME_BASE_INVIRONMENT_H
#define GAME_BASE_INVIRONMENT_H
#ifndef GAME_BASE_ENVIRONMENT_H
#define GAME_BASE_ENVIRONMENT_H
namespace MWBase
{

@ -3,8 +3,6 @@
#include <string>
#include <components/settings/settings.hpp>
namespace MWBase
{
/// \brief Interface for input manager (implemented in MWInput)
@ -29,7 +27,7 @@ namespace MWBase
virtual void changeInputMode(bool guiMode) = 0;
virtual void processChangedSettings(const Settings::CategorySettingVector& changed) = 0;
virtual void processChangedSettings(const std::vector< std::pair<std::string, std::string> >& changed) = 0;
virtual void setDragDrop(bool dragDrop) = 0;

@ -5,8 +5,6 @@
#include <boost/shared_ptr.hpp>
#include <components/settings/settings.hpp>
#include "../mwworld/ptr.hpp"
namespace Ogre
@ -74,7 +72,7 @@ namespace MWBase
virtual ~SoundManager() {}
virtual void processChangedSettings(const Settings::CategorySettingVector& settings) = 0;
virtual void processChangedSettings(const std::vector< std::pair<std::string, std::string> >& settings) = 0;
virtual void stopMusic() = 0;
///< Stops music if it's playing

@ -5,16 +5,20 @@
#include <vector>
#include <map>
#include <components/settings/settings.hpp>
#include <components/translation/translation.hpp>
#include <components/loadinglistener/loadinglistener.hpp>
#include "../mwmechanics/stat.hpp"
#include "../mwgui/mode.hpp"
namespace Loading
{
class Listener;
}
namespace Translation
{
class Storage;
}
namespace MyGUI
{
class Gui;
@ -267,7 +271,7 @@ namespace MWBase
*/
virtual std::string getGameSettingString(const std::string &id, const std::string &default_) = 0;
virtual void processChangedSettings(const Settings::CategorySettingVector& changed) = 0;
virtual void processChangedSettings(const std::vector< std::pair<std::string, std::string> >& changed) = 0;
virtual void windowResized(int x, int y) = 0;

@ -4,25 +4,21 @@
#include <vector>
#include <map>
#include <components/settings/settings.hpp>
#include <components/esm/cellid.hpp>
#include "../mwworld/globals.hpp"
#include "../mwworld/ptr.hpp"
namespace Ogre
{
class Vector2;
class Vector3;
class Quaternion;
class Image;
}
namespace OEngine
namespace Loading
{
namespace Physic
{
class PhysicEngine;
}
class Listener;
}
namespace ESM
@ -390,7 +386,7 @@ namespace MWBase
virtual bool canPlaceObject (float cursorX, float cursorY) = 0;
///< @return true if it is possible to place on object at specified cursor location
virtual void processChangedSettings (const Settings::CategorySettingVector& settings) = 0;
virtual void processChangedSettings (const std::vector< std::pair<std::string, std::string> >& settings) = 0;
virtual bool isFlying(const MWWorld::Ptr &ptr) const = 0;
virtual bool isSlowFalling(const MWWorld::Ptr &ptr) const = 0;

@ -1,5 +1,7 @@
#include "scripttest.hpp"
#include <iostream>
#include "../mwworld/manualref.hpp"
#include "../mwworld/class.hpp"

@ -10,6 +10,7 @@
#include <MyGUI_ScrollView.h>
#include <components/misc/resourcehelpers.hpp>
#include <components/settings/settings.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/soundmanager.hpp"

@ -8,6 +8,8 @@
#include <MyGUI_InputManager.h>
#include <MyGUI_Button.h>
#include <components/settings/settings.hpp>
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/soundmanager.hpp"

@ -1,5 +1,7 @@
#include "itemmodel.hpp"
#include <set>
#include "../mwworld/class.hpp"
#include "../mwworld/containerstore.hpp"
#include "../mwworld/store.hpp"

@ -8,6 +8,8 @@
#include <components/misc/utf8stream.hpp>
#include <components/translation/translation.hpp>
#include "../mwbase/world.hpp"
#include "../mwbase/journal.hpp"
#include "../mwbase/environment.hpp"

@ -15,6 +15,8 @@
#include <MyGUI_Gui.h>
#include <MyGUI_TextBox.h>
#include <components/settings/settings.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/statemanager.hpp"

@ -9,6 +9,7 @@
#include <components/version/version.hpp>
#include <components/widgets/imagebutton.hpp>
#include <components/settings/settings.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/windowmanager.hpp"

@ -13,6 +13,7 @@
#include <MyGUI_FactoryManager.h>
#include <components/esm/globalmap.hpp>
#include <components/settings/settings.hpp>
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/world.hpp"

@ -15,6 +15,7 @@
#include <SDL_video.h>
#include <components/widgets/sharedstatebutton.hpp>
#include <components/settings/settings.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"

@ -8,6 +8,7 @@
#include <MyGUI_ImageBox.h>
#include <components/misc/resourcehelpers.hpp>
#include <components/settings/settings.hpp>
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"

@ -3,6 +3,7 @@
#include <MyGUI_ProgressBar.h>
#include <components/widgets/box.hpp>
#include <components/settings/settings.hpp>
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/world.hpp"

@ -2,6 +2,8 @@
#include <MyGUI_InputManager.h>
#include <components/settings/settings.hpp>
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/environment.hpp"

@ -19,6 +19,9 @@
#include <MyGUI_ClipboardManager.h>
#include <MyGUI_RenderManager.h>
#include <SDL_keyboard.h>
#include <SDL_clipboard.h>
#include <openengine/ogre/renderer.hpp>
#include <openengine/gui/manager.hpp>
@ -26,6 +29,8 @@
#include <components/fontloader/fontloader.hpp>
#include <components/translation/translation.hpp>
#include <components/widgets/widgets.hpp>
#include <components/widgets/tags.hpp>

@ -5,13 +5,14 @@
This class owns and controls all the MW specific windows in the
GUI. It can enable/disable Gui mode, and is responsible for sending
and retrieving information from the Gui.
MyGUI should be initialized separately before creating instances of
this class.
**/
#include <stack>
#include "../mwbase/windowmanager.hpp"
#include <components/settings/settings.hpp>
#include "mapwindow.hpp"
#include <MyGUI_KeyCode.h>

@ -5,6 +5,7 @@
#include <vector>
#include <string>
#include <map>
#include <list>
#include "movement.hpp"
#include "../mwbase/world.hpp"

@ -27,6 +27,8 @@
#include "creaturestats.hpp"
#include "security.hpp"
#include <components/settings/settings.hpp>
#include "../mwrender/animation.hpp"
#include "../mwbase/environment.hpp"

@ -18,6 +18,7 @@
#include <components/esm/loadench.hpp>
#include <components/esm/loadstat.hpp>
#include <components/misc/resourcehelpers.hpp>
#include <components/settings/settings.hpp>
#include <libs/openengine/ogre/lights.hpp>

@ -11,6 +11,7 @@
#include <OgreHardwarePixelBuffer.h>
#include <components/loadinglistener/loadinglistener.hpp>
#include <components/settings/settings.hpp>
#include <components/esm/globalmap.hpp>

@ -2,6 +2,7 @@
#include "animationextensions.hpp"
#include <stdexcept>
#include <limits>
#include <components/compiler/extensions.hpp>
#include <components/compiler/opcodes.hpp>

@ -13,6 +13,7 @@
#include <OgreImage.h>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"

@ -1,6 +1,7 @@
#include "livecellref.hpp"
#include <iostream>
#include <components/esm/objectstate.hpp>
#include "../mwbase/environment.hpp"

@ -1,8 +1,8 @@
#ifndef _SFO_EVENTS_H
#define _SFO_EVENTS_H
#include <SDL.h>
#include <SDL_types.h>
#include <SDL_events.h>
////////////
// Events //
@ -65,7 +65,7 @@ public:
virtual ~WindowListener() {}
/** @remarks The window's visibility changed */
virtual void windowVisibilityChange( bool visible ) {};
virtual void windowVisibilityChange( bool visible ) {}
/** @remarks The window got / lost input focus */
virtual void windowFocusChange( bool have_focus ) {}

@ -4,6 +4,9 @@
#include <OgreTextureManager.h>
#include <OgreRoot.h>
#include <SDL_mouse.h>
#include <SDL_endian.h>
#include <openengine/ogre/imagerotate.hpp>
namespace SFO

@ -1,11 +1,12 @@
#ifndef SDL4OGRE_CURSORMANAGER_H
#define SDL4OGRE_CURSORMANAGER_H
#include <SDL.h>
#include "cursormanager.hpp"
#include <map>
struct SDL_Cursor;
struct SDL_Surface;
namespace SFO
{
class SDLCursorManager :

Loading…
Cancel
Save