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

#include <review.hpp>

Inheritance diagram for MWGui::ReviewDialog:
Collaboration diagram for MWGui::ReviewDialog:

Public Types

enum  Dialogs { NAME_DIALOG, RACE_DIALOG, CLASS_DIALOG, BIRTHSIGN_DIALOG }
 
typedef std::vector< intSkillList
 
typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void
 
typedef
MyGUI::delegates::CMultiDelegate1
< int
EventHandle_Int
 
- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 

Public Member Functions

 ReviewDialog ()
 
bool exit ()
 Gracefully exits the window. More...
 
void setPlayerName (const std::string &name)
 
void setRace (const std::string &raceId)
 
void setClass (const ESM::Class &class_)
 
void setBirthSign (const std::string &signId)
 
void setHealth (const MWMechanics::DynamicStat< float > &value)
 
void setMagicka (const MWMechanics::DynamicStat< float > &value)
 
void setFatigue (const MWMechanics::DynamicStat< float > &value)
 
void setAttribute (ESM::Attribute::AttributeID attributeId, const MWMechanics::AttributeValue &value)
 
void configureSkills (const SkillList &major, const SkillList &minor)
 
void setSkillValue (ESM::Skill::SkillEnum skillId, const MWMechanics::SkillValue &value)
 
virtual void onOpen ()
 Notify that window has been made visible. More...
 
void onFrame (float duration)
 Called every frame if the window is in an active GUI mode. More...
 
- Public Member Functions inherited from MWGui::WindowModal
 WindowModal (const std::string &parLayout)
 
virtual void onClose () override
 Notify that window has been hidden. More...
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual MyGUI::Widget * getDefaultKeyFocus ()
 
virtual void setPtr (const MWWorld::Ptr &ptr)
 Open this object in the GUI, for windows that support it. More...
 
virtual void setVisible (bool visible)
 Sets the visibility of the window. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
virtual void clear ()
 Clear any state specific to the running game. More...
 
virtual void onResChange (int width, int height)
 Called when GUI viewport changes size. More...
 
- Public Member Functions inherited from MWGui::Layout
 Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
virtual ~Layout ()
 
MyGUI::Widget * getWidget (const std::string &_name)
 
template<typename T >
void getWidget (T *&_widget, const std::string &_name)
 
void setCoord (int x, int y, int w, int h)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 

Public Attributes

EventHandle_Void eventBack
 
EventHandle_WindowBase eventDone
 
EventHandle_Int eventActivateDialog
 
- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 

Protected Member Functions

void onOkClicked (MyGUI::Widget *_sender)
 
void onBackClicked (MyGUI::Widget *_sender)
 
void onNameClicked (MyGUI::Widget *_sender)
 
void onRaceClicked (MyGUI::Widget *_sender)
 
void onClassClicked (MyGUI::Widget *_sender)
 
void onBirthSignClicked (MyGUI::Widget *_sender)
 
void onMouseWheel (MyGUI::Widget *_sender, int _rel)
 

Private Member Functions

void addSkills (const SkillList &skills, const std::string &titleId, const std::string &titleDefault, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2)
 
void addSeparator (MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2)
 
void addGroup (const std::string &label, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2)
 
MyGUI::TextBox * addValueItem (const std::string &text, const std::string &value, const std::string &state, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2)
 
void addItem (const std::string &text, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2)
 
void addItem (const ESM::Spell *spell, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2)
 
void updateSkillArea ()
 

Private Attributes

MyGUI::TextBox * mNameWidget
 
MyGUI::TextBox * mRaceWidget
 
MyGUI::TextBox * mClassWidget
 
MyGUI::TextBox * mBirthSignWidget
 
MyGUI::ScrollView * mSkillView
 
Widgets::MWDynamicStatPtr mHealth
 
Widgets::MWDynamicStatPtr mMagicka
 
Widgets::MWDynamicStatPtr mFatigue
 
std::map< int,
Widgets::MWAttributePtr
mAttributeWidgets
 
SkillList mMajorSkills
 
SkillList mMinorSkills
 
SkillList mMiscSkills
 
std::map< int,
MWMechanics::SkillValue
mSkillValues
 
std::map< int, MyGUI::TextBox * > mSkillWidgetMap
 
std::string mName
 
std::string mRaceId
 
std::string mBirthSignId
 
ESM::Class mKlass
 
std::vector< MyGUI::Widget * > mSkillWidgets
 
bool mUpdateSkillArea
 

Additional Inherited Members

- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Member Typedef Documentation

typedef MyGUI::delegates::CMultiDelegate1<int> MWGui::ReviewDialog::EventHandle_Int
typedef MyGUI::delegates::CMultiDelegate0 MWGui::ReviewDialog::EventHandle_Void
typedef std::vector<int> MWGui::ReviewDialog::SkillList

Member Enumeration Documentation

Enumerator
NAME_DIALOG 
RACE_DIALOG 
CLASS_DIALOG 
BIRTHSIGN_DIALOG 

Constructor & Destructor Documentation

MWGui::ReviewDialog::ReviewDialog ( )

Here is the call graph for this function:

Member Function Documentation

void MWGui::ReviewDialog::addGroup ( const std::string &  label,
MyGUI::IntCoord &  coord1,
MyGUI::IntCoord &  coord2 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::addItem ( const std::string &  text,
MyGUI::IntCoord &  coord1,
MyGUI::IntCoord &  coord2 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::addItem ( const ESM::Spell spell,
MyGUI::IntCoord &  coord1,
MyGUI::IntCoord &  coord2 
)
private

Here is the call graph for this function:

void MWGui::ReviewDialog::addSeparator ( MyGUI::IntCoord &  coord1,
MyGUI::IntCoord &  coord2 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::addSkills ( const SkillList skills,
const std::string &  titleId,
const std::string &  titleDefault,
MyGUI::IntCoord &  coord1,
MyGUI::IntCoord &  coord2 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

MyGUI::TextBox * MWGui::ReviewDialog::addValueItem ( const std::string &  text,
const std::string &  value,
const std::string &  state,
MyGUI::IntCoord &  coord1,
MyGUI::IntCoord &  coord2 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::configureSkills ( const SkillList major,
const SkillList minor 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWGui::ReviewDialog::exit ( )
inlinevirtual

Gracefully exits the window.

Reimplemented from MWGui::WindowModal.

void MWGui::ReviewDialog::onBackClicked ( MyGUI::Widget *  _sender)
protected

Here is the caller graph for this function:

void MWGui::ReviewDialog::onBirthSignClicked ( MyGUI::Widget *  _sender)
protected

Here is the caller graph for this function:

void MWGui::ReviewDialog::onClassClicked ( MyGUI::Widget *  _sender)
protected

Here is the caller graph for this function:

void MWGui::ReviewDialog::onFrame ( float  duration)
virtual

Called every frame if the window is in an active GUI mode.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::onMouseWheel ( MyGUI::Widget *  _sender,
int  _rel 
)
protected

Here is the caller graph for this function:

void MWGui::ReviewDialog::onNameClicked ( MyGUI::Widget *  _sender)
protected

Here is the caller graph for this function:

void MWGui::ReviewDialog::onOkClicked ( MyGUI::Widget *  _sender)
protected

Here is the caller graph for this function:

void MWGui::ReviewDialog::onOpen ( )
virtual

Notify that window has been made visible.

Reimplemented from MWGui::WindowModal.

Here is the call graph for this function:

void MWGui::ReviewDialog::onRaceClicked ( MyGUI::Widget *  _sender)
protected

Here is the caller graph for this function:

void MWGui::ReviewDialog::setAttribute ( ESM::Attribute::AttributeID  attributeId,
const MWMechanics::AttributeValue value 
)

Here is the caller graph for this function:

void MWGui::ReviewDialog::setBirthSign ( const std::string &  signId)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::setClass ( const ESM::Class class_)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::setFatigue ( const MWMechanics::DynamicStat< float > &  value)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::setHealth ( const MWMechanics::DynamicStat< float > &  value)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::setMagicka ( const MWMechanics::DynamicStat< float > &  value)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::setPlayerName ( const std::string &  name)

Here is the caller graph for this function:

void MWGui::ReviewDialog::setRace ( const std::string &  raceId)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::setSkillValue ( ESM::Skill::SkillEnum  skillId,
const MWMechanics::SkillValue value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ReviewDialog::updateSkillArea ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

EventHandle_Int MWGui::ReviewDialog::eventActivateDialog
EventHandle_Void MWGui::ReviewDialog::eventBack

Event : Back button clicked.
signature : void method()

EventHandle_WindowBase MWGui::ReviewDialog::eventDone

Event : Dialog finished, OK button clicked.
signature : void method()

std::map<int, Widgets::MWAttributePtr> MWGui::ReviewDialog::mAttributeWidgets
private
std::string MWGui::ReviewDialog::mBirthSignId
private
MyGUI::TextBox * MWGui::ReviewDialog::mBirthSignWidget
private
MyGUI::TextBox * MWGui::ReviewDialog::mClassWidget
private
Widgets::MWDynamicStatPtr MWGui::ReviewDialog::mFatigue
private
Widgets::MWDynamicStatPtr MWGui::ReviewDialog::mHealth
private
ESM::Class MWGui::ReviewDialog::mKlass
private
Widgets::MWDynamicStatPtr MWGui::ReviewDialog::mMagicka
private
SkillList MWGui::ReviewDialog::mMajorSkills
private
SkillList MWGui::ReviewDialog::mMinorSkills
private
SkillList MWGui::ReviewDialog::mMiscSkills
private
std::string MWGui::ReviewDialog::mName
private
MyGUI::TextBox* MWGui::ReviewDialog::mNameWidget
private
std::string MWGui::ReviewDialog::mRaceId
private
MyGUI::TextBox * MWGui::ReviewDialog::mRaceWidget
private
std::map<int, MWMechanics::SkillValue > MWGui::ReviewDialog::mSkillValues
private
MyGUI::ScrollView* MWGui::ReviewDialog::mSkillView
private
std::map<int, MyGUI::TextBox*> MWGui::ReviewDialog::mSkillWidgetMap
private
std::vector<MyGUI::Widget*> MWGui::ReviewDialog::mSkillWidgets
private
bool MWGui::ReviewDialog::mUpdateSkillArea
private

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