mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 07:43:07 +00:00
Merge branch 'misc_cleanup' into 'master'
Misc cleanup (no functional change) See merge request OpenMW/openmw!729
This commit is contained in:
commit
8766b81cf8
24 changed files with 10 additions and 102 deletions
|
|
@ -33,26 +33,6 @@ namespace Compiler
|
||||||
class Context;
|
class Context;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWScript
|
|
||||||
{
|
|
||||||
class ScriptManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWSound
|
|
||||||
{
|
|
||||||
class SoundManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWWorld
|
|
||||||
{
|
|
||||||
class World;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWGui
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Files
|
namespace Files
|
||||||
{
|
{
|
||||||
struct ConfigurationManager;
|
struct ConfigurationManager;
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ namespace MyGUI
|
||||||
|
|
||||||
namespace ESM
|
namespace ESM
|
||||||
{
|
{
|
||||||
struct Class;
|
|
||||||
class ESMReader;
|
class ESMReader;
|
||||||
class ESMWriter;
|
class ESMWriter;
|
||||||
struct CellId;
|
struct CellId;
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,6 @@
|
||||||
|
|
||||||
#include "itemmodel.hpp"
|
#include "itemmodel.hpp"
|
||||||
|
|
||||||
namespace MWWorld
|
|
||||||
{
|
|
||||||
class Environment;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MyGUI
|
namespace MyGUI
|
||||||
{
|
{
|
||||||
class Gui;
|
class Gui;
|
||||||
|
|
@ -19,7 +14,6 @@ namespace MyGUI
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class WindowManager;
|
|
||||||
class ContainerWindow;
|
class ContainerWindow;
|
||||||
class ItemView;
|
class ItemView;
|
||||||
class SortFilterItemModel;
|
class SortFilterItemModel;
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,6 @@ namespace Gui
|
||||||
class MWList;
|
class MWList;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWGui
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class ResponseCallback;
|
class ResponseCallback;
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,6 @@
|
||||||
#include <MyGUI_RenderManager.h>
|
#include <MyGUI_RenderManager.h>
|
||||||
|
|
||||||
|
|
||||||
namespace MWGui
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWRender
|
namespace MWRender
|
||||||
{
|
{
|
||||||
class RaceSelectionPreview;
|
class RaceSelectionPreview;
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,6 @@ namespace ESM
|
||||||
struct Spell;
|
struct Spell;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWGui
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class ReviewDialog : public WindowModal
|
class ReviewDialog : public WindowModal
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,6 @@
|
||||||
|
|
||||||
#include "windowbase.hpp"
|
#include "windowbase.hpp"
|
||||||
|
|
||||||
namespace MWGui
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class SettingsWindow : public WindowBase
|
class SettingsWindow : public WindowBase
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,6 @@ namespace MyGUI
|
||||||
class Widget;
|
class Widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWGui
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class SpellBuyingWindow : public ReferenceInterface, public WindowBase
|
class SpellBuyingWindow : public ReferenceInterface, public WindowBase
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class WindowManager;
|
|
||||||
|
|
||||||
class StatsWindow : public WindowPinnableBase, public NoDrop, public StatsListener
|
class StatsWindow : public WindowPinnableBase, public NoDrop, public StatsListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,6 @@
|
||||||
|
|
||||||
#include "windowbase.hpp"
|
#include "windowbase.hpp"
|
||||||
|
|
||||||
namespace MWGui
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class TextInputDialog : public WindowModal
|
class TextInputDialog : public WindowModal
|
||||||
|
|
|
||||||
|
|
@ -58,12 +58,12 @@ namespace MWGui
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int TimeAdvancer::getHours()
|
int TimeAdvancer::getHours() const
|
||||||
{
|
{
|
||||||
return mHours;
|
return mHours;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TimeAdvancer::isRunning()
|
bool TimeAdvancer::isRunning() const
|
||||||
{
|
{
|
||||||
return mRunning;
|
return mRunning;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ namespace MWGui
|
||||||
void stop();
|
void stop();
|
||||||
void onFrame(float dt);
|
void onFrame(float dt);
|
||||||
|
|
||||||
int getHours();
|
int getHours() const;
|
||||||
bool isRunning();
|
bool isRunning() const;
|
||||||
|
|
||||||
// signals
|
// signals
|
||||||
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
|
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,6 @@ namespace MyGUI
|
||||||
class Widget;
|
class Widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWGui
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class TravelWindow : public ReferenceInterface, public WindowBase
|
class TravelWindow : public ReferenceInterface, public WindowBase
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,6 @@
|
||||||
|
|
||||||
#include "layout.hpp"
|
#include "layout.hpp"
|
||||||
|
|
||||||
namespace MWBase
|
|
||||||
{
|
|
||||||
class WindowManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWWorld
|
namespace MWWorld
|
||||||
{
|
{
|
||||||
class Ptr;
|
class Ptr;
|
||||||
|
|
@ -15,7 +10,6 @@ namespace MWWorld
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class WindowManager;
|
|
||||||
class DragAndDrop;
|
class DragAndDrop;
|
||||||
|
|
||||||
class WindowBase: public Layout
|
class WindowBase: public Layout
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,6 @@ namespace MWGui
|
||||||
class TrainingWindow;
|
class TrainingWindow;
|
||||||
class SpellIcons;
|
class SpellIcons;
|
||||||
class MerchantRepair;
|
class MerchantRepair;
|
||||||
class Repair;
|
|
||||||
class SoulgemDialog;
|
class SoulgemDialog;
|
||||||
class Recharge;
|
class Recharge;
|
||||||
class CompanionWindow;
|
class CompanionWindow;
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
class WindowManager;
|
|
||||||
|
|
||||||
class WindowPinnableBase: public WindowBase
|
class WindowPinnableBase: public WindowBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ namespace MWRender
|
||||||
{
|
{
|
||||||
std::set<ESM::RefNum> mDisabled;
|
std::set<ESM::RefNum> mDisabled;
|
||||||
std::set<ESM::RefNum> mBlacklist;
|
std::set<ESM::RefNum> mBlacklist;
|
||||||
bool operator==(const RefTracker&other) { return mDisabled == other.mDisabled && mBlacklist == other.mBlacklist; }
|
bool operator==(const RefTracker&other) const { return mDisabled == other.mDisabled && mBlacklist == other.mBlacklist; }
|
||||||
};
|
};
|
||||||
RefTracker mRefTracker;
|
RefTracker mRefTracker;
|
||||||
RefTracker mRefTrackerNew;
|
RefTracker mRefTrackerNew;
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,6 @@
|
||||||
|
|
||||||
#include "../mwworld/ptr.hpp"
|
#include "../mwworld/ptr.hpp"
|
||||||
|
|
||||||
namespace MWSound
|
|
||||||
{
|
|
||||||
class SoundManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWInput
|
|
||||||
{
|
|
||||||
struct MWInputManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWScript
|
namespace MWScript
|
||||||
{
|
{
|
||||||
class Locals;
|
class Locals;
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ namespace MWSound
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SoundManager(const VFS::Manager* vfs, bool useSound);
|
SoundManager(const VFS::Manager* vfs, bool useSound);
|
||||||
virtual ~SoundManager();
|
~SoundManager() override;
|
||||||
|
|
||||||
void processChangedSettings(const Settings::CategorySettingVector& settings) override;
|
void processChangedSettings(const Settings::CategorySettingVector& settings) override;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,14 +18,14 @@ void MWState::QuickSaveManager::visitSave(const Slot *saveSlot)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MWState::QuickSaveManager::isOldestSave(const Slot *compare)
|
bool MWState::QuickSaveManager::isOldestSave(const Slot *compare) const
|
||||||
{
|
{
|
||||||
if(mOldestSlotVisited == nullptr)
|
if(mOldestSlotVisited == nullptr)
|
||||||
return true;
|
return true;
|
||||||
return (compare->mTimeStamp <= mOldestSlotVisited->mTimeStamp);
|
return (compare->mTimeStamp <= mOldestSlotVisited->mTimeStamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MWState::QuickSaveManager::shouldCreateNewSlot()
|
bool MWState::QuickSaveManager::shouldCreateNewSlot() const
|
||||||
{
|
{
|
||||||
return (mSlotsVisited < mMaxSaves);
|
return (mSlotsVisited < mMaxSaves);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ namespace MWState{
|
||||||
unsigned int mSlotsVisited;
|
unsigned int mSlotsVisited;
|
||||||
const Slot *mOldestSlotVisited;
|
const Slot *mOldestSlotVisited;
|
||||||
private:
|
private:
|
||||||
bool shouldCreateNewSlot();
|
bool shouldCreateNewSlot() const;
|
||||||
bool isOldestSave(const Slot *compare);
|
bool isOldestSave(const Slot *compare) const;
|
||||||
public:
|
public:
|
||||||
QuickSaveManager(std::string &saveName, unsigned int maxSaves);
|
QuickSaveManager(std::string &saveName, unsigned int maxSaves);
|
||||||
///< A utility class to manage multiple quicksave slots
|
///< A utility class to manage multiple quicksave slots
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ namespace Loading
|
||||||
namespace DetourNavigator
|
namespace DetourNavigator
|
||||||
{
|
{
|
||||||
struct Navigator;
|
struct Navigator;
|
||||||
class Water;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWRender
|
namespace MWRender
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,6 @@ namespace ToUTF8
|
||||||
class Utf8Encoder;
|
class Utf8Encoder;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ContentLoader;
|
|
||||||
|
|
||||||
namespace MWPhysics
|
namespace MWPhysics
|
||||||
{
|
{
|
||||||
class Object;
|
class Object;
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,6 @@ namespace osg
|
||||||
class Material;
|
class Material;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace osgParticle
|
|
||||||
{
|
|
||||||
class Emitter;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace NifOsg
|
namespace NifOsg
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue