OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::WindowManager Class Reference

#include <windowmanagerimp.hpp>

Inheritance diagram for MWGui::WindowManager:
Collaboration diagram for MWGui::WindowManager:

Public Types

typedef std::pair< std::string,
int
Faction
 
typedef std::vector< FactionFactionList
 
- Public Types inherited from MWBase::WindowManager
typedef std::vector< intSkillList
 

Public Member Functions

 WindowManager (osgViewer::Viewer *viewer, osg::Group *guiRoot, Resource::ResourceSystem *resourceSystem, const std::string &logpath, const std::string &cacheDir, bool consoleOnlyScripts, Translation::Storage &translationDataStorage, ToUTF8::FromType encoding, bool exportFonts, const std::map< std::string, std::string > &fallbackMap, const std::string &versionDescription)
 
virtual ~WindowManager ()
 
void setStore (const MWWorld::ESMStore &store)
 Set the ESMStore to use for retrieving of GUI-related strings. More...
 
void initUI ()
 
void renderWorldMap ()
 
virtual Loading::ListenergetLoadingScreen ()
 
virtual void playVideo (const std::string &name, bool allowSkipping)
 
virtual void update ()
 
virtual void setKeyFocusWidget (MyGUI::Widget *widget)
 Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this. More...
 
virtual void setNewGame (bool newgame)
 
virtual void pushGuiMode (GuiMode mode)
 
virtual void popGuiMode ()
 
virtual void removeGuiMode (GuiMode mode)
 can be anywhere in the stack More...
 
virtual void goToJail (int days)
 
virtual GuiMode getMode () const
 
virtual bool containsMode (GuiMode mode) const
 
virtual bool isGuiMode () const
 
virtual bool isConsoleMode () const
 
virtual void toggleVisible (GuiWindow wnd)
 
virtual void forceHide (MWGui::GuiWindow wnd)
 
virtual void unsetForceHide (MWGui::GuiWindow wnd)
 
virtual void disallowAll ()
 Disallow all inventory mode windows. More...
 
virtual void allow (GuiWindow wnd)
 Allow one or more windows. More...
 
virtual bool isAllowed (GuiWindow wnd) const
 
virtual MWGui::DialogueWindowgetDialogueWindow ()
 
virtual MWGui::InventoryWindowgetInventoryWindow ()
 
virtual MWGui::CountDialoggetCountDialog ()
 
virtual MWGui::ConfirmationDialoggetConfirmationDialog ()
 
virtual MWGui::TradeWindowgetTradeWindow ()
 
virtual void useItem (const MWWorld::Ptr &item)
 Make the player use an item, while updating GUI state accordingly. More...
 
virtual void updateSpellWindow ()
 
virtual void setConsoleSelectedObject (const MWWorld::Ptr &object)
 Set value for the given ID. More...
 
virtual void setValue (const std::string &id, const MWMechanics::AttributeValue &value)
 Set value for the given ID. More...
 
virtual void setValue (int parSkill, const MWMechanics::SkillValue &value)
 
virtual void setValue (const std::string &id, const MWMechanics::DynamicStat< float > &value)
 
virtual void setValue (const std::string &id, const std::string &value)
 
virtual void setValue (const std::string &id, int value)
 
virtual void setDrowningTimeLeft (float time, float maxTime)
 
virtual void setPlayerClass (const ESM::Class &class_)
 set current class of player More...
 
virtual void configureSkills (const SkillList &major, const SkillList &minor)
 configure skill groups, each set contains the skill ID for that group. More...
 
virtual void updateSkillArea ()
 update display of skills, factions, birth sign, reputation and bounty More...
 
virtual void changeCell (const MWWorld::CellStore *cell)
 change the active cell More...
 
virtual void setFocusObject (const MWWorld::Ptr &focus)
 
virtual void setFocusObjectScreenCoords (float min_x, float min_y, float max_x, float max_y)
 
virtual void getMousePosition (int &x, int &y)
 
virtual void getMousePosition (float &x, float &y)
 
virtual void setDragDrop (bool dragDrop)
 
virtual bool getWorldMouseOver ()
 
virtual bool toggleFogOfWar ()
 
virtual bool toggleFullHelp ()
 show extra info in item tooltips (owner, script) More...
 
virtual bool getFullHelp () const
 
virtual void setActiveMap (int x, int y, bool interior)
 set the indices of the map texture that should be used More...
 
virtual void setDrowningBarVisibility (bool visible)
 sets the visibility of the drowning bar More...
 
virtual void setHMSVisibility (bool visible)
 sets the visibility of the hud health/magicka/stamina bars More...
 
virtual void setMinimapVisibility (bool visible)
 sets the visibility of the hud minimap More...
 
virtual void setWeaponVisibility (bool visible)
 
virtual void setSpellVisibility (bool visible)
 
virtual void setSneakVisibility (bool visible)
 
virtual void activateQuickKey (int index)
 
virtual std::string getSelectedSpell ()
 
virtual void setSelectedSpell (const std::string &spellId, int successChancePercent)
 
virtual void setSelectedEnchantItem (const MWWorld::Ptr &item)
 
virtual void setSelectedWeapon (const MWWorld::Ptr &item)
 
virtual void unsetSelectedSpell ()
 
virtual void unsetSelectedWeapon ()
 
virtual void showCrosshair (bool show)
 
virtual bool getSubtitlesEnabled ()
 
virtual bool toggleGui ()
 Turn visibility of all GUI elements on or off (HUD and all windows, except the console) More...
 
virtual void disallowMouse ()
 
virtual void allowMouse ()
 
virtual void notifyInputActionBound ()
 
virtual void addVisitedLocation (const std::string &name, int x, int y)
 
virtual void removeDialog (Layout *dialog)
 Hides dialog and schedules dialog to be deleted. More...
 
virtual void exitCurrentGuiMode ()
 Gracefully attempts to exit the topmost GUI mode. More...
 
virtual void messageBox (const std::string &message, enum MWGui::ShowInDialogueMode showInDialogueMode=MWGui::ShowInDialogueMode_IfPossible)
 
virtual void staticMessageBox (const std::string &message)
 
virtual void removeStaticMessageBox ()
 
virtual void interactiveMessageBox (const std::string &message, const std::vector< std::string > &buttons=std::vector< std::string >(), bool block=false)
 
virtual int readPressedButton ()
 returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox) More...
 
virtual void onFrame (float frameDuration)
 
virtual std::map< int,
MWMechanics::SkillValue
getPlayerSkillValues ()
 
virtual std::map< int,
MWMechanics::AttributeValue
getPlayerAttributeValues ()
 
virtual SkillList getPlayerMinorSkills ()
 
virtual SkillList getPlayerMajorSkills ()
 
virtual std::string getGameSettingString (const std::string &id, const std::string &default_)
 
virtual void processChangedSettings (const Settings::CategorySettingVector &changed)
 
virtual void windowResized (int x, int y)
 
virtual void executeInConsole (const std::string &path)
 
virtual void enableRest ()
 
virtual bool getRestEnabled ()
 
virtual bool getJournalAllowed ()
 
virtual bool getPlayerSleeping ()
 
virtual void wakeUpPlayer ()
 
virtual void updatePlayer ()
 
virtual void showCompanionWindow (MWWorld::Ptr actor)
 
virtual void startSpellMaking (MWWorld::Ptr actor)
 
virtual void startEnchanting (MWWorld::Ptr actor)
 
virtual void startSelfEnchanting (MWWorld::Ptr soulgem)
 
virtual void startTraining (MWWorld::Ptr actor)
 
virtual void startRepair (MWWorld::Ptr actor)
 
virtual void startRepairItem (MWWorld::Ptr item)
 
virtual void startRecharge (MWWorld::Ptr soulgem)
 
virtual void startTravel (const MWWorld::Ptr &actor)
 
virtual void startSpellBuying (const MWWorld::Ptr &actor)
 
virtual void startTrade (const MWWorld::Ptr &actor)
 
virtual void openContainer (const MWWorld::Ptr &container, bool loot)
 
virtual void showBook (const MWWorld::Ptr &item, bool showTakeButton)
 
virtual void showScroll (const MWWorld::Ptr &item, bool showTakeButton)
 
virtual void showSoulgemDialog (MWWorld::Ptr item)
 
virtual void changePointer (const std::string &name)
 
virtual void setEnemy (const MWWorld::Ptr &enemy)
 
virtual const
Translation::Storage
getTranslationDataStorage () const
 
void onSoulgemDialogButtonPressed (int button)
 
virtual bool getCursorVisible ()
 Should the cursor be visible? More...
 
virtual void clear ()
 Clear all savegame-specific data. More...
 
virtual void write (ESM::ESMWriter &writer, Loading::Listener &progress)
 
virtual void readRecord (ESM::ESMReader &reader, uint32_t type)
 
virtual int countSavedGameRecords () const
 
virtual bool isSavingAllowed () const
 Does the current stack of GUI-windows permit saving? More...
 
virtual void exitCurrentModal ()
 Send exit command to active Modal window **/. More...
 
virtual void addCurrentModal (WindowModal *input)
 Sets the current Modal. More...
 
virtual void removeCurrentModal (WindowModal *input)
 Removes the top Modal. More...
 
virtual void pinWindow (MWGui::GuiWindow window)
 
virtual void fadeScreenIn (const float time, bool clearQueue)
 Fade the screen in, over time seconds. More...
 
virtual void fadeScreenOut (const float time, bool clearQueue)
 Fade the screen out to black, over time seconds. More...
 
virtual void fadeScreenTo (const int percent, const float time, bool clearQueue)
 Fade the screen to a specified percentage of black, over time seconds. More...
 
virtual void setBlindness (const int percent)
 Darken the screen to a specified percentage. More...
 
virtual void activateHitOverlay (bool interrupt)
 
virtual void setWerewolfOverlay (bool set)
 
virtual void toggleDebugWindow ()
 
virtual void cycleSpell (bool next)
 Cycle to next or previous spell. More...
 
virtual void cycleWeapon (bool next)
 Cycle to next or previous weapon. More...
 
virtual std::string correctIconPath (const std::string &path)
 
virtual std::string correctBookartPath (const std::string &path, int width, int height)
 
virtual std::string correctTexturePath (const std::string &path)
 
virtual bool textureExists (const std::string &path)
 
void removeCell (MWWorld::CellStore *cell)
 
void writeFog (MWWorld::CellStore *cell)
 
- Public Member Functions inherited from MWBase::WindowManager
 WindowManager ()
 
virtual void processChangedSettings (const std::set< std::pair< std::string, std::string > > &changed)=0
 

Private Member Functions

void trackWindow (Layout *layout, const std::string &name)
 
void onWindowChangeCoord (MyGUI::Window *_sender)
 
void setCursorVisible (bool visible)
 
void cleanupGarbage ()
 
void updateVisible ()
 
void updateMap ()
 
void onRetrieveTag (const MyGUI::UString &_tag, MyGUI::UString &_result)
 
void onCursorChange (const std::string &name)
 
void onKeyFocusChanged (MyGUI::Widget *widget)
 
void onVideoKeyPressed (MyGUI::Widget *_sender, MyGUI::KeyCode _key, MyGUI::Char _char)
 
void sizeVideo (int screenWidth, int screenHeight)
 
void onClipboardChanged (const std::string &_type, const std::string &_data)
 
void onClipboardRequested (const std::string &_type, std::string &_data)
 
void createTextures ()
 
void createCursors ()
 
void setMenuTransparency (float value)
 

Private Attributes

const MWWorld::ESMStoremStore
 
Resource::ResourceSystemmResourceSystem
 
osgMyGUI::PlatformmGuiPlatform
 
osgViewer::Viewer * mViewer
 
std::auto_ptr< Gui::FontLoadermFontLoader
 
bool mConsoleOnlyScripts
 
std::map< MyGUI::Window
*, std::string > 
mTrackedWindows
 
std::string mSelectedSpell
 
std::stack< WindowModal * > mCurrentModals
 
CustomMarkerCollection mCustomMarkers
 
HUDmHud
 
MapWindowmMap
 
MWRender::LocalMapmLocalMapRender
 
MainMenumMenu
 
ToolTipsmToolTips
 
StatsWindowmStatsWindow
 
MessageBoxManagermMessageBoxManager
 
ConsolemConsole
 
JournalWindowmJournal
 
DialogueWindowmDialogueWindow
 
ContainerWindowmContainerWindow
 
DragAndDropmDragAndDrop
 
InventoryWindowmInventoryWindow
 
ScrollWindowmScrollWindow
 
BookWindowmBookWindow
 
CountDialogmCountDialog
 
TradeWindowmTradeWindow
 
SpellBuyingWindowmSpellBuyingWindow
 
TravelWindowmTravelWindow
 
SettingsWindowmSettingsWindow
 
ConfirmationDialogmConfirmationDialog
 
AlchemyWindowmAlchemyWindow
 
SpellWindowmSpellWindow
 
QuickKeysMenumQuickKeysMenu
 
LoadingScreenmLoadingScreen
 
LevelupDialogmLevelupDialog
 
WaitDialogmWaitDialog
 
SpellCreationDialogmSpellCreationDialog
 
EnchantingDialogmEnchantingDialog
 
TrainingWindowmTrainingWindow
 
MerchantRepairmMerchantRepair
 
SoulgemDialogmSoulgemDialog
 
RepairmRepair
 
RechargemRecharge
 
CompanionWindowmCompanionWindow
 
MyGUI::ImageBox * mVideoBackground
 
VideoWidgetmVideoWidget
 
ScreenFadermWerewolfFader
 
ScreenFadermBlindnessFader
 
ScreenFadermHitFader
 
ScreenFadermScreenFader
 
DebugWindowmDebugWindow
 
JailScreenmJailScreen
 
Translation::StoragemTranslationDataStorage
 
CharacterCreationmCharGen
 
MyGUI::Widget * mInputBlocker
 
bool mCrosshairEnabled
 
bool mSubtitlesEnabled
 
bool mHitFaderEnabled
 
bool mWerewolfOverlayEnabled
 
bool mHudEnabled
 
bool mGuiEnabled
 
bool mCursorVisible
 
std::string mPlayerName
 
std::string mPlayerRaceId
 
std::map< int,
MWMechanics::AttributeValue
mPlayerAttributes
 
SkillList mPlayerMajorSkills
 
SkillList mPlayerMinorSkills
 
std::map< int,
MWMechanics::SkillValue
mPlayerSkillValues
 
MyGUI::Gui * mGui
 
std::vector< GuiModemGuiModes
 
SDLUtil::SDLCursorManagermCursorManager
 
std::vector< Layout * > mGarbageDialogs
 
GuiWindow mShown
 
GuiWindow mForceHidden
 
GuiWindow mAllowed
 
bool mRestAllowed
 
std::map< std::string,
std::string > 
mFallbackMap
 
int mShowOwned
 
std::string mVersionDescription
 

Member Typedef Documentation

typedef std::pair<std::string, int> MWGui::WindowManager::Faction

Constructor & Destructor Documentation

MWGui::WindowManager::WindowManager ( osgViewer::Viewer *  viewer,
osg::Group *  guiRoot,
Resource::ResourceSystem resourceSystem,
const std::string &  logpath,
const std::string &  cacheDir,
bool  consoleOnlyScripts,
Translation::Storage translationDataStorage,
ToUTF8::FromType  encoding,
bool  exportFonts,
const std::map< std::string, std::string > &  fallbackMap,
const std::string &  versionDescription 
)

Here is the call graph for this function:

MWGui::WindowManager::~WindowManager ( )
virtual

Reimplemented from MWBase::WindowManager.

Here is the call graph for this function:

Member Function Documentation

void MWGui::WindowManager::activateHitOverlay ( bool  interrupt)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::activateQuickKey ( int  index)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

virtual void MWGui::WindowManager::addCurrentModal ( WindowModal input)
inlinevirtual

Sets the current Modal.

Used to send exit command to active Modal when Esc is pressed

Implements MWBase::WindowManager.

void MWGui::WindowManager::addVisitedLocation ( const std::string &  name,
int  x,
int  y 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::allow ( GuiWindow  wnd)
virtual

Allow one or more windows.

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::allowMouse ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::changeCell ( const MWWorld::CellStore cell)
virtual

change the active cell

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::changePointer ( const std::string &  name)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::cleanupGarbage ( )
private

Here is the caller graph for this function:

void MWGui::WindowManager::clear ( )
virtual

Clear all savegame-specific data.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::configureSkills ( const SkillList major,
const SkillList minor 
)
virtual

configure skill groups, each set contains the skill ID for that group.

Implements MWBase::WindowManager.

Here is the call graph for this function:

bool MWGui::WindowManager::containsMode ( GuiMode  mode) const
virtual

Implements MWBase::WindowManager.

Here is the caller graph for this function:

std::string MWGui::WindowManager::correctBookartPath ( const std::string &  path,
int  width,
int  height 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

std::string MWGui::WindowManager::correctIconPath ( const std::string &  path)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

std::string MWGui::WindowManager::correctTexturePath ( const std::string &  path)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

int MWGui::WindowManager::countSavedGameRecords ( ) const
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::createCursors ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::createTextures ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::cycleSpell ( bool  next)
virtual

Cycle to next or previous spell.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::cycleWeapon ( bool  next)
virtual

Cycle to next or previous weapon.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::disallowAll ( )
virtual

Disallow all inventory mode windows.

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::disallowMouse ( )
virtual

Implements MWBase::WindowManager.

virtual void MWGui::WindowManager::enableRest ( )
inlinevirtual

Implements MWBase::WindowManager.

void MWGui::WindowManager::executeInConsole ( const std::string &  path)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::exitCurrentGuiMode ( )
virtual

Gracefully attempts to exit the topmost GUI mode.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::exitCurrentModal ( )
virtual

Send exit command to active Modal window **/.

Implements MWBase::WindowManager.

void MWGui::WindowManager::fadeScreenIn ( const float  time,
bool  clearQueue 
)
virtual

Fade the screen in, over time seconds.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::fadeScreenOut ( const float  time,
bool  clearQueue 
)
virtual

Fade the screen out to black, over time seconds.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::fadeScreenTo ( const int  percent,
const float  time,
bool  clearQueue 
)
virtual

Fade the screen to a specified percentage of black, over time seconds.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::forceHide ( MWGui::GuiWindow  wnd)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

MWGui::ConfirmationDialog * MWGui::WindowManager::getConfirmationDialog ( )
virtual

Implements MWBase::WindowManager.

MWGui::CountDialog * MWGui::WindowManager::getCountDialog ( )
virtual

Implements MWBase::WindowManager.

bool MWGui::WindowManager::getCursorVisible ( )
virtual

Should the cursor be visible?

Implements MWBase::WindowManager.

MWGui::DialogueWindow * MWGui::WindowManager::getDialogueWindow ( )
virtual
Todo:
investigate, if we really need to expose every single lousy UI element to the outside world

Implements MWBase::WindowManager.

bool MWGui::WindowManager::getFullHelp ( ) const
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

std::string MWGui::WindowManager::getGameSettingString ( const std::string &  id,
const std::string &  default_ 
)
virtual

Fetches a GMST string from the store, if there is no setting with the given ID or it is not a string the default string is returned.

Parameters
idIdentifier for the GMST setting, e.g. "aName"
defaultDefault value if the GMST setting cannot be used.

Implements MWBase::WindowManager.

Here is the call graph for this function:

MWGui::InventoryWindow * MWGui::WindowManager::getInventoryWindow ( )
virtual

Implements MWBase::WindowManager.

virtual bool MWGui::WindowManager::getJournalAllowed ( )
inlinevirtual

Implements MWBase::WindowManager.

Loading::Listener * MWGui::WindowManager::getLoadingScreen ( )
virtual

Implements MWBase::WindowManager.

MWGui::GuiMode MWGui::WindowManager::getMode ( ) const
virtual

Implements MWBase::WindowManager.

Here is the caller graph for this function:

void MWGui::WindowManager::getMousePosition ( int x,
int y 
)
virtual

Implements MWBase::WindowManager.

Here is the caller graph for this function:

void MWGui::WindowManager::getMousePosition ( float &  x,
float &  y 
)
virtual

Implements MWBase::WindowManager.

std::map< int, MWMechanics::AttributeValue > MWGui::WindowManager::getPlayerAttributeValues ( )
virtual

Implements MWBase::WindowManager.

WindowManager::SkillList MWGui::WindowManager::getPlayerMajorSkills ( )
virtual

Implements MWBase::WindowManager.

WindowManager::SkillList MWGui::WindowManager::getPlayerMinorSkills ( )
virtual

Implements MWBase::WindowManager.

std::map< int, MWMechanics::SkillValue > MWGui::WindowManager::getPlayerSkillValues ( )
virtual
Todo:
get rid of this stuff. Move it to the respective UI element classes, if needed.

Implements MWBase::WindowManager.

bool MWGui::WindowManager::getPlayerSleeping ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

bool MWGui::WindowManager::getRestEnabled ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

virtual std::string MWGui::WindowManager::getSelectedSpell ( )
inlinevirtual

Implements MWBase::WindowManager.

bool MWGui::WindowManager::getSubtitlesEnabled ( )
virtual

Implements MWBase::WindowManager.

MWGui::TradeWindow * MWGui::WindowManager::getTradeWindow ( )
virtual

Implements MWBase::WindowManager.

const Translation::Storage & MWGui::WindowManager::getTranslationDataStorage ( ) const
virtual

Implements MWBase::WindowManager.

bool MWGui::WindowManager::getWorldMouseOver ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::goToJail ( int  days)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::initUI ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::interactiveMessageBox ( const std::string &  message,
const std::vector< std::string > &  buttons = std::vector<std::string>(),
bool  block = false 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

bool MWGui::WindowManager::isAllowed ( GuiWindow  wnd) const
virtual

Implements MWBase::WindowManager.

bool MWGui::WindowManager::isConsoleMode ( ) const
virtual

Implements MWBase::WindowManager.

bool MWGui::WindowManager::isGuiMode ( ) const
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWGui::WindowManager::isSavingAllowed ( ) const
virtual

Does the current stack of GUI-windows permit saving?

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::messageBox ( const std::string &  message,
enum MWGui::ShowInDialogueMode  showInDialogueMode = MWGui::ShowInDialogueMode_IfPossible 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::notifyInputActionBound ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::onClipboardChanged ( const std::string &  _type,
const std::string &  _data 
)
private

Here is the caller graph for this function:

void MWGui::WindowManager::onClipboardRequested ( const std::string &  _type,
std::string &  _data 
)
private

Here is the caller graph for this function:

void MWGui::WindowManager::onCursorChange ( const std::string &  name)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::onFrame ( float  frameDuration)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::onKeyFocusChanged ( MyGUI::Widget *  widget)
private

Here is the caller graph for this function:

void MWGui::WindowManager::onRetrieveTag ( const MyGUI::UString &  _tag,
MyGUI::UString &  _result 
)
private

Called when MyGUI tries to retrieve a tag's value. Tags must be denoted in #{tag} notation and will be replaced upon setting a user visible text/property. Supported syntax: #{GMSTName}: retrieves String value of the GMST called GMSTName #{setting=CATEGORY_NAME,SETTING_NAME}: retrieves String value of SETTING_NAME under category CATEGORY_NAME from settings.cfg #{sCell=CellID}: retrieves translated name of the given CellID (used only by some Morrowind localisations, in others cell ID is == cell name) #{fontcolour=FontColourName}: retrieves the value of the fallback setting "FontColor_color_<FontColourName>" from openmw.cfg, in the format "r g b a", float values in range 0-1. Useful for "Colour" and "TextColour" properties in skins. #{fontcolourhtml=FontColourName}: retrieves the value of the fallback setting "FontColor_color_<FontColourName>" from openmw.cfg, in the format "#xxxxxx" where x are hexadecimal numbers. Useful in an EditBox's caption to change the color of following text.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::onSoulgemDialogButtonPressed ( int  button)
void MWGui::WindowManager::onVideoKeyPressed ( MyGUI::Widget *  _sender,
MyGUI::KeyCode  _key,
MyGUI::Char  _char 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::onWindowChangeCoord ( MyGUI::Window *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::openContainer ( const MWWorld::Ptr container,
bool  loot 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::pinWindow ( MWGui::GuiWindow  window)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::playVideo ( const std::string &  name,
bool  allowSkipping 
)
virtual
Note
This method will block until the video finishes playing (and will continually update the window while doing so)

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::popGuiMode ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::processChangedSettings ( const Settings::CategorySettingVector changed)
virtual

Here is the call graph for this function:

void MWGui::WindowManager::pushGuiMode ( GuiMode  mode)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

int MWGui::WindowManager::readPressedButton ( )
virtual

returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::readRecord ( ESM::ESMReader reader,
uint32_t  type 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::removeCell ( MWWorld::CellStore cell)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::removeCurrentModal ( WindowModal input)
virtual

Removes the top Modal.

Used when one Modal adds another Modal

Parameters
inputPointer to the current modal, to ensure proper modal is removed

Implements MWBase::WindowManager.

void MWGui::WindowManager::removeDialog ( Layout dialog)
virtual

Hides dialog and schedules dialog to be deleted.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::removeGuiMode ( GuiMode  mode)
virtual

can be anywhere in the stack

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::removeStaticMessageBox ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::renderWorldMap ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::setActiveMap ( int  x,
int  y,
bool  interior 
)
virtual

set the indices of the map texture that should be used

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::setBlindness ( const int  percent)
virtual

Darken the screen to a specified percentage.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setConsoleSelectedObject ( const MWWorld::Ptr object)
virtual

Set value for the given ID.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setCursorVisible ( bool  visible)
privatevirtual

Implements MWBase::WindowManager.

Here is the caller graph for this function:

void MWGui::WindowManager::setDragDrop ( bool  dragDrop)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setDrowningBarVisibility ( bool  visible)
virtual

sets the visibility of the drowning bar

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setDrowningTimeLeft ( float  time,
float  maxTime 
)
virtual

Set time left for the player to start drowning (update the drowning bar)

Parameters
timetime left to start drowning
maxTimehow long we can be underwater (in total) until drowning starts

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setEnemy ( const MWWorld::Ptr enemy)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setFocusObject ( const MWWorld::Ptr focus)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setFocusObjectScreenCoords ( float  min_x,
float  min_y,
float  max_x,
float  max_y 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setHMSVisibility ( bool  visible)
virtual

sets the visibility of the hud health/magicka/stamina bars

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::setKeyFocusWidget ( MyGUI::Widget *  widget)
virtual

Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this.

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::setMenuTransparency ( float  value)
private

Here is the caller graph for this function:

void MWGui::WindowManager::setMinimapVisibility ( bool  visible)
virtual

sets the visibility of the hud minimap

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::setNewGame ( bool  newgame)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setPlayerClass ( const ESM::Class class_)
virtual

set current class of player

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setSelectedEnchantItem ( const MWWorld::Ptr item)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setSelectedSpell ( const std::string &  spellId,
int  successChancePercent 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setSelectedWeapon ( const MWWorld::Ptr item)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setSneakVisibility ( bool  visible)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setSpellVisibility ( bool  visible)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::setStore ( const MWWorld::ESMStore store)

Set the ESMStore to use for retrieving of GUI-related strings.

Here is the caller graph for this function:

void MWGui::WindowManager::setValue ( const std::string &  id,
const MWMechanics::AttributeValue value 
)
virtual

Set value for the given ID.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setValue ( int  parSkill,
const MWMechanics::SkillValue value 
)
virtual
Todo:
Don't use the skill enum as a parameter type (we will have to drop it anyway, once we allow custom skills.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setValue ( const std::string &  id,
const MWMechanics::DynamicStat< float > &  value 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setValue ( const std::string &  id,
const std::string &  value 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setValue ( const std::string &  id,
int  value 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::setWeaponVisibility ( bool  visible)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::setWerewolfOverlay ( bool  set)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::showBook ( const MWWorld::Ptr item,
bool  showTakeButton 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::showCompanionWindow ( MWWorld::Ptr  actor)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::showCrosshair ( bool  show)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::showScroll ( const MWWorld::Ptr item,
bool  showTakeButton 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::showSoulgemDialog ( MWWorld::Ptr  item)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::sizeVideo ( int  screenWidth,
int  screenHeight 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::startEnchanting ( MWWorld::Ptr  actor)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startRecharge ( MWWorld::Ptr  soulgem)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startRepair ( MWWorld::Ptr  actor)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startRepairItem ( MWWorld::Ptr  item)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startSelfEnchanting ( MWWorld::Ptr  soulgem)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startSpellBuying ( const MWWorld::Ptr actor)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startSpellMaking ( MWWorld::Ptr  actor)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startTrade ( const MWWorld::Ptr actor)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startTraining ( MWWorld::Ptr  actor)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::startTravel ( const MWWorld::Ptr actor)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::staticMessageBox ( const std::string &  message)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

bool MWGui::WindowManager::textureExists ( const std::string &  path)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::toggleDebugWindow ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

bool MWGui::WindowManager::toggleFogOfWar ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

bool MWGui::WindowManager::toggleFullHelp ( )
virtual

show extra info in item tooltips (owner, script)

Implements MWBase::WindowManager.

Here is the call graph for this function:

bool MWGui::WindowManager::toggleGui ( )
virtual

Turn visibility of all GUI elements on or off (HUD and all windows, except the console)

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::toggleVisible ( GuiWindow  wnd)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::trackWindow ( Layout layout,
const std::string &  name 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::unsetForceHide ( MWGui::GuiWindow  wnd)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::unsetSelectedSpell ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::unsetSelectedWeapon ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::update ( )
virtual

Should be called each frame to update windows/gui elements. This could mean updating sizes of gui elements or opening new dialogs.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::updateMap ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::updatePlayer ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::updateSkillArea ( )
virtual

update display of skills, factions, birth sign, reputation and bounty

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::updateSpellWindow ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::updateVisible ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::WindowManager::useItem ( const MWWorld::Ptr item)
virtual

Make the player use an item, while updating GUI state accordingly.

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::wakeUpPlayer ( )
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::windowResized ( int  x,
int  y 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::write ( ESM::ESMWriter writer,
Loading::Listener progress 
)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

void MWGui::WindowManager::writeFog ( MWWorld::CellStore cell)
virtual

Implements MWBase::WindowManager.

Here is the call graph for this function:

Member Data Documentation

AlchemyWindow* MWGui::WindowManager::mAlchemyWindow
private
GuiWindow MWGui::WindowManager::mAllowed
private
ScreenFader* MWGui::WindowManager::mBlindnessFader
private
BookWindow* MWGui::WindowManager::mBookWindow
private
CharacterCreation* MWGui::WindowManager::mCharGen
private
CompanionWindow* MWGui::WindowManager::mCompanionWindow
private
ConfirmationDialog* MWGui::WindowManager::mConfirmationDialog
private
Console* MWGui::WindowManager::mConsole
private
bool MWGui::WindowManager::mConsoleOnlyScripts
private
ContainerWindow* MWGui::WindowManager::mContainerWindow
private
CountDialog* MWGui::WindowManager::mCountDialog
private
bool MWGui::WindowManager::mCrosshairEnabled
private
std::stack<WindowModal*> MWGui::WindowManager::mCurrentModals
private
SDLUtil::SDLCursorManager* MWGui::WindowManager::mCursorManager
private
bool MWGui::WindowManager::mCursorVisible
private
CustomMarkerCollection MWGui::WindowManager::mCustomMarkers
private
DebugWindow* MWGui::WindowManager::mDebugWindow
private
DialogueWindow* MWGui::WindowManager::mDialogueWindow
private
DragAndDrop* MWGui::WindowManager::mDragAndDrop
private
EnchantingDialog* MWGui::WindowManager::mEnchantingDialog
private
std::map<std::string, std::string> MWGui::WindowManager::mFallbackMap
private
std::auto_ptr<Gui::FontLoader> MWGui::WindowManager::mFontLoader
private
GuiWindow MWGui::WindowManager::mForceHidden
private
std::vector<Layout*> MWGui::WindowManager::mGarbageDialogs
private
MyGUI::Gui* MWGui::WindowManager::mGui
private
bool MWGui::WindowManager::mGuiEnabled
private
std::vector<GuiMode> MWGui::WindowManager::mGuiModes
private
osgMyGUI::Platform* MWGui::WindowManager::mGuiPlatform
private
ScreenFader* MWGui::WindowManager::mHitFader
private
bool MWGui::WindowManager::mHitFaderEnabled
private
HUD* MWGui::WindowManager::mHud
private
bool MWGui::WindowManager::mHudEnabled
private
MyGUI::Widget* MWGui::WindowManager::mInputBlocker
private
InventoryWindow* MWGui::WindowManager::mInventoryWindow
private
JailScreen* MWGui::WindowManager::mJailScreen
private
JournalWindow* MWGui::WindowManager::mJournal
private
LevelupDialog* MWGui::WindowManager::mLevelupDialog
private
LoadingScreen* MWGui::WindowManager::mLoadingScreen
private
MWRender::LocalMap* MWGui::WindowManager::mLocalMapRender
private
MapWindow* MWGui::WindowManager::mMap
private
MainMenu* MWGui::WindowManager::mMenu
private
MerchantRepair* MWGui::WindowManager::mMerchantRepair
private
MessageBoxManager* MWGui::WindowManager::mMessageBoxManager
private
std::map<int, MWMechanics::AttributeValue > MWGui::WindowManager::mPlayerAttributes
private
SkillList MWGui::WindowManager::mPlayerMajorSkills
private
SkillList MWGui::WindowManager::mPlayerMinorSkills
private
std::string MWGui::WindowManager::mPlayerName
private
Todo:
get rid of this stuff. Move it to the respective UI element classes, if needed.
std::string MWGui::WindowManager::mPlayerRaceId
private
std::map<int, MWMechanics::SkillValue > MWGui::WindowManager::mPlayerSkillValues
private
QuickKeysMenu* MWGui::WindowManager::mQuickKeysMenu
private
Recharge* MWGui::WindowManager::mRecharge
private
Repair* MWGui::WindowManager::mRepair
private
Resource::ResourceSystem* MWGui::WindowManager::mResourceSystem
private
bool MWGui::WindowManager::mRestAllowed
private
ScreenFader* MWGui::WindowManager::mScreenFader
private
ScrollWindow* MWGui::WindowManager::mScrollWindow
private
std::string MWGui::WindowManager::mSelectedSpell
private
SettingsWindow* MWGui::WindowManager::mSettingsWindow
private
GuiWindow MWGui::WindowManager::mShown
private
int MWGui::WindowManager::mShowOwned
private
SoulgemDialog* MWGui::WindowManager::mSoulgemDialog
private
SpellBuyingWindow* MWGui::WindowManager::mSpellBuyingWindow
private
SpellCreationDialog* MWGui::WindowManager::mSpellCreationDialog
private
SpellWindow* MWGui::WindowManager::mSpellWindow
private
StatsWindow* MWGui::WindowManager::mStatsWindow
private
const MWWorld::ESMStore* MWGui::WindowManager::mStore
private
bool MWGui::WindowManager::mSubtitlesEnabled
private
ToolTips* MWGui::WindowManager::mToolTips
private
std::map<MyGUI::Window*, std::string> MWGui::WindowManager::mTrackedWindows
private
TradeWindow* MWGui::WindowManager::mTradeWindow
private
TrainingWindow* MWGui::WindowManager::mTrainingWindow
private
Translation::Storage& MWGui::WindowManager::mTranslationDataStorage
private
TravelWindow* MWGui::WindowManager::mTravelWindow
private
std::string MWGui::WindowManager::mVersionDescription
private
MyGUI::ImageBox* MWGui::WindowManager::mVideoBackground
private
VideoWidget* MWGui::WindowManager::mVideoWidget
private
osgViewer::Viewer* MWGui::WindowManager::mViewer
private
WaitDialog* MWGui::WindowManager::mWaitDialog
private
ScreenFader* MWGui::WindowManager::mWerewolfFader
private
bool MWGui::WindowManager::mWerewolfOverlayEnabled
private

The documentation for this class was generated from the following files: