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::PickClassDialog Class Reference

#include <class.hpp>

Inheritance diagram for MWGui::PickClassDialog:
Collaboration diagram for MWGui::PickClassDialog:

Public Types

typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void
 
- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 

Public Member Functions

 PickClassDialog ()
 
const std::string & getClassId () const
 
void setClassId (const std::string &classId)
 
void setNextButtonShow (bool shown)
 
virtual void onOpen ()
 Notify that window has been made visible. More...
 
bool exit ()
 Gracefully exits the window. 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 onFrame (float duration)
 Called every frame if the window is in an active GUI mode. 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
 
- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 

Protected Member Functions

void onSelectClass (MyGUI::ListBox *_sender, size_t _index)
 
void onAccept (MyGUI::ListBox *_sender, size_t _index)
 
void onOkClicked (MyGUI::Widget *_sender)
 
void onBackClicked (MyGUI::Widget *_sender)
 

Private Member Functions

void updateClasses ()
 
void updateStats ()
 

Private Attributes

MyGUI::ImageBox * mClassImage
 
MyGUI::ListBox * mClassList
 
MyGUI::TextBox * mSpecializationName
 
Widgets::MWAttributePtr mFavoriteAttribute [2]
 
Widgets::MWSkillPtr mMajorSkill [5]
 
Widgets::MWSkillPtr mMinorSkill [5]
 
std::string mCurrentClassId
 

Additional Inherited Members

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

Member Typedef Documentation

typedef MyGUI::delegates::CMultiDelegate0 MWGui::PickClassDialog::EventHandle_Void

Constructor & Destructor Documentation

MWGui::PickClassDialog::PickClassDialog ( )

Here is the call graph for this function:

Member Function Documentation

bool MWGui::PickClassDialog::exit ( )
inlinevirtual

Gracefully exits the window.

Reimplemented from MWGui::WindowModal.

const std::string& MWGui::PickClassDialog::getClassId ( ) const
inline

Here is the caller graph for this function:

void MWGui::PickClassDialog::onAccept ( MyGUI::ListBox *  _sender,
size_t  _index 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void MWGui::PickClassDialog::onOpen ( )
virtual

Notify that window has been made visible.

Reimplemented from MWGui::WindowModal.

Here is the call graph for this function:

void MWGui::PickClassDialog::onSelectClass ( MyGUI::ListBox *  _sender,
size_t  _index 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::PickClassDialog::setClassId ( const std::string &  classId)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::PickClassDialog::setNextButtonShow ( bool  shown)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::PickClassDialog::updateClasses ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::PickClassDialog::updateStats ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

EventHandle_Void MWGui::PickClassDialog::eventBack

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

EventHandle_WindowBase MWGui::PickClassDialog::eventDone

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

MyGUI::ImageBox* MWGui::PickClassDialog::mClassImage
private
MyGUI::ListBox* MWGui::PickClassDialog::mClassList
private
std::string MWGui::PickClassDialog::mCurrentClassId
private
Widgets::MWAttributePtr MWGui::PickClassDialog::mFavoriteAttribute[2]
private
Widgets::MWSkillPtr MWGui::PickClassDialog::mMajorSkill[5]
private
Widgets::MWSkillPtr MWGui::PickClassDialog::mMinorSkill[5]
private
MyGUI::TextBox* MWGui::PickClassDialog::mSpecializationName
private

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