mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 22:53:53 +00:00
Reduce includes in MWGui
This commit is contained in:
parent
728b842e72
commit
5b9d10f851
26 changed files with 65 additions and 42 deletions
|
@ -3,11 +3,6 @@
|
|||
|
||||
#include "windowbase.hpp"
|
||||
|
||||
/*
|
||||
This file contains the dialog for choosing a birth sign.
|
||||
Layout is defined by resources/mygui/openmw_chargen_race.layout.
|
||||
*/
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class BirthDialog : public WindowModal
|
||||
|
|
|
@ -6,11 +6,6 @@
|
|||
#include "widgets.hpp"
|
||||
#include "windowbase.hpp"
|
||||
|
||||
/*
|
||||
This file contains the dialogs for choosing a class.
|
||||
Layout is defined by resources/mygui/openmw_chargen_class.layout.
|
||||
*/
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class InfoBoxDialog : public WindowModal
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/dialoguemanager.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
|
||||
#include "../mwmechanics/npcstats.hpp"
|
||||
|
||||
|
|
|
@ -18,11 +18,6 @@ namespace MWGui
|
|||
class WindowManager;
|
||||
}
|
||||
|
||||
/*
|
||||
This file contains the dialouge window
|
||||
Layout is defined by resources/mygui/openmw_dialogue_window.layout.
|
||||
*/
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class DialogueHistoryViewModel;
|
||||
|
|
|
@ -3,7 +3,12 @@
|
|||
#include <iomanip>
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
#include <MyGUI_Button.h>
|
||||
#include <MyGUI_ScrollView.h>
|
||||
|
||||
#include <components/esm/records.hpp>
|
||||
#include <components/widgets/list.hpp>
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/world.hpp"
|
||||
|
|
|
@ -4,7 +4,11 @@
|
|||
#include "mapwindow.hpp"
|
||||
|
||||
#include "../mwmechanics/stat.hpp"
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
class Ptr;
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef MWGUI_JOURNAL_H
|
||||
#define MWGUI_JOURNAL_H
|
||||
|
||||
#include <memory>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
namespace MWBase { class WindowManager; }
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <OgreTextureManager.h>
|
||||
#include <OgreViewport.h>
|
||||
#include <OgreHardwarePixelBuffer.h>
|
||||
#include <OgreSceneManager.h>
|
||||
|
||||
#include <MyGUI_RenderManager.h>
|
||||
#include <MyGUI_ScrollBar.h>
|
||||
|
|
|
@ -1,13 +1,18 @@
|
|||
#ifndef MWGUI_LOADINGSCREEN_H
|
||||
#define MWGUI_LOADINGSCREEN_H
|
||||
|
||||
#include <OgreSceneManager.h>
|
||||
#include <OgreTimer.h>
|
||||
#include <OgreStringVector.h>
|
||||
|
||||
#include "windowbase.hpp"
|
||||
|
||||
#include <components/loadinglistener/loadinglistener.hpp>
|
||||
|
||||
namespace Ogre
|
||||
{
|
||||
class SceneManager;
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class BackgroundImage;
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
#include "windowbase.hpp"
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
#include "../mwbase/inputmanager.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include "windowbase.hpp"
|
||||
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
|
||||
#undef MessageBox
|
||||
|
||||
namespace MyGUI
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/world.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
#include "../mwrender/characterpreview.hpp"
|
||||
|
||||
#include "tooltips.hpp"
|
||||
|
||||
|
@ -446,4 +447,9 @@ namespace MWGui
|
|||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
const ESM::NPC& RaceDialog::getResult() const
|
||||
{
|
||||
return mPreview->getPrototype();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef MWGUI_RACE_H
|
||||
#define MWGUI_RACE_H
|
||||
|
||||
#include "../mwrender/characterpreview.hpp"
|
||||
|
||||
#include "windowbase.hpp"
|
||||
|
||||
|
||||
|
@ -11,10 +9,15 @@ namespace MWGui
|
|||
class WindowManager;
|
||||
}
|
||||
|
||||
/*
|
||||
This file contains the dialog for choosing a race.
|
||||
Layout is defined by resources/mygui/openmw_chargen_race.layout.
|
||||
*/
|
||||
namespace MWRender
|
||||
{
|
||||
class RaceSelectionPreview;
|
||||
}
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
struct NPC;
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
@ -29,7 +32,7 @@ namespace MWGui
|
|||
GM_Female
|
||||
};
|
||||
|
||||
const ESM::NPC &getResult() const { return mPreview->getPrototype(); }
|
||||
const ESM::NPC &getResult() const;
|
||||
const std::string &getRaceId() const { return mCurrentRaceId; }
|
||||
Gender getGender() const { return mGenderIndex == 0 ? GM_Male : GM_Female; }
|
||||
// getFace()
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
|
||||
#include "windowbase.hpp"
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
namespace MWWorld
|
||||
{
|
||||
class Ptr;
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
|
|
@ -11,11 +11,6 @@ namespace MWGui
|
|||
class WindowManager;
|
||||
}
|
||||
|
||||
/*
|
||||
This file contains the dialog for reviewing the generated character.
|
||||
Layout is defined by resources/mygui/openmw_chargen_review.layout.
|
||||
*/
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class ReviewDialog : public WindowModal
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <MyGUI_ScrollView.h>
|
||||
|
||||
#include <components/esm/loadbook.hpp>
|
||||
#include <components/widgets/imagebutton.hpp>
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/world.hpp"
|
||||
|
|
|
@ -3,10 +3,13 @@
|
|||
|
||||
#include "windowbase.hpp"
|
||||
|
||||
#include <components/widgets/imagebutton.hpp>
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
namespace Gui
|
||||
{
|
||||
class ImageButton;
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class ScrollWindow : public WindowBase
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "soulgemdialog.hpp"
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
|
||||
#include "messagebox.hpp"
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <components/misc/resourcehelpers.hpp>
|
||||
#include <components/esm/records.hpp>
|
||||
#include <components/widgets/list.hpp>
|
||||
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
|
@ -22,6 +23,7 @@
|
|||
|
||||
#include "tooltips.hpp"
|
||||
#include "class.hpp"
|
||||
#include "widgets.hpp"
|
||||
|
||||
namespace
|
||||
{
|
||||
|
|
|
@ -3,11 +3,14 @@
|
|||
|
||||
#include <components/esm/loadmgef.hpp>
|
||||
#include <components/esm/loadspel.hpp>
|
||||
#include <components/widgets/list.hpp>
|
||||
|
||||
#include "windowbase.hpp"
|
||||
#include "referenceinterface.hpp"
|
||||
#include "widgets.hpp"
|
||||
|
||||
namespace Gui
|
||||
{
|
||||
class MWList;
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "../mwworld/class.hpp"
|
||||
#include "../mwworld/player.hpp"
|
||||
#include "../mwworld/esmstore.hpp"
|
||||
|
||||
#include "../mwmechanics/npcstats.hpp"
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#ifndef MWGUI_STATS_WINDOW_H
|
||||
#define MWGUI_STATS_WINDOW_H
|
||||
|
||||
#include "../mwworld/esmstore.hpp"
|
||||
|
||||
#include "../mwmechanics/stat.hpp"
|
||||
#include "windowpinnablebase.hpp"
|
||||
|
||||
#include <components/esm/loadskil.hpp>
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class WindowManager;
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
|
||||
#include "../mwstate/charactermanager.hpp"
|
||||
|
||||
#include "widgets.hpp"
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
||||
|
|
|
@ -2,11 +2,15 @@
|
|||
#define MWGUI_WAIT_DIALOG_H
|
||||
|
||||
#include "windowbase.hpp"
|
||||
#include "widgets.hpp"
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
||||
namespace Widgets
|
||||
{
|
||||
class MWScrollBar;
|
||||
}
|
||||
|
||||
class WaitDialogProgressBar : public WindowBase
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <OgreTextureManager.h>
|
||||
#include <OgreRenderWindow.h>
|
||||
#include <OgreSceneManager.h>
|
||||
|
||||
#include <MyGUI_UString.h>
|
||||
#include <MyGUI_IPointer.h>
|
||||
|
@ -34,6 +35,7 @@
|
|||
#include "../mwworld/class.hpp"
|
||||
#include "../mwworld/player.hpp"
|
||||
#include "../mwworld/cellstore.hpp"
|
||||
#include "../mwworld/esmstore.hpp"
|
||||
|
||||
#include "../mwmechanics/npcstats.hpp"
|
||||
|
||||
|
|
Loading…
Reference in a new issue