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

#include <race.hpp>

Inheritance diagram for MWGui::RaceDialog:
Collaboration diagram for MWGui::RaceDialog:

Public Types

enum  Gender { GM_Male, GM_Female }
 
typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void
 
- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 

Public Member Functions

 RaceDialog (osg::Group *parent, Resource::ResourceSystem *resourceSystem)
 
const ESM::NPCgetResult () const
 
const std::string & getRaceId () const
 
Gender getGender () const
 
void setRaceId (const std::string &raceId)
 
void setGender (Gender gender)
 
void setNextButtonShow (bool shown)
 
virtual void open ()
 Notify that window has been made visible. More...
 
virtual void close ()
 Notify that window has been hidden. More...
 
- Public Member Functions inherited from MWGui::WindowModal
 WindowModal (const std::string &parLayout)
 
virtual void exit ()
 Gracefully exits the window. More...
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual void setVisible (bool visible)
 Sets the visibility of the window. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
- 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 onHeadRotate (MyGUI::ScrollBar *_sender, size_t _position)
 
void onSelectPreviousGender (MyGUI::Widget *_sender)
 
void onSelectNextGender (MyGUI::Widget *_sender)
 
void onSelectPreviousFace (MyGUI::Widget *_sender)
 
void onSelectNextFace (MyGUI::Widget *_sender)
 
void onSelectPreviousHair (MyGUI::Widget *_sender)
 
void onSelectNextHair (MyGUI::Widget *_sender)
 
void onSelectRace (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 updateRaces ()
 
void updateSkills ()
 
void updateSpellPowers ()
 
void updatePreview ()
 
void recountParts ()
 
void getBodyParts (int part, std::vector< std::string > &out)
 

Private Attributes

osg::Group * mParent
 
Resource::ResourceSystemmResourceSystem
 
std::vector< std::string > mAvailableHeads
 
std::vector< std::string > mAvailableHairs
 
MyGUI::ImageBox * mPreviewImage
 
MyGUI::ListBox * mRaceList
 
MyGUI::ScrollBar * mHeadRotate
 
MyGUI::Widget * mSkillList
 
std::vector< MyGUI::Widget * > mSkillItems
 
MyGUI::Widget * mSpellPowerList
 
std::vector< MyGUI::Widget * > mSpellPowerItems
 
int mGenderIndex
 
int mFaceIndex
 
int mHairIndex
 
std::string mCurrentRaceId
 
float mCurrentAngle
 
std::auto_ptr
< MWRender::RaceSelectionPreview
mPreview
 
std::auto_ptr< MyGUI::ITexture > mPreviewTexture
 
bool mPreviewDirty
 

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::RaceDialog::EventHandle_Void

Member Enumeration Documentation

Enumerator
GM_Male 
GM_Female 

Constructor & Destructor Documentation

MWGui::RaceDialog::RaceDialog ( osg::Group *  parent,
Resource::ResourceSystem resourceSystem 
)

Here is the call graph for this function:

Member Function Documentation

void MWGui::RaceDialog::close ( )
virtual

Notify that window has been hidden.

Reimplemented from MWGui::WindowModal.

void MWGui::RaceDialog::getBodyParts ( int  part,
std::vector< std::string > &  out 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

Gender MWGui::RaceDialog::getGender ( ) const
inline
const std::string& MWGui::RaceDialog::getRaceId ( ) const
inline
const ESM::NPC & MWGui::RaceDialog::getResult ( ) const

Here is the caller graph for this function:

void MWGui::RaceDialog::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::RaceDialog::onBackClicked ( MyGUI::Widget *  _sender)
protected

Here is the caller graph for this function:

void MWGui::RaceDialog::onHeadRotate ( MyGUI::ScrollBar *  _sender,
size_t  _position 
)
protected

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void MWGui::RaceDialog::onSelectNextFace ( MyGUI::Widget *  _sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::onSelectNextGender ( MyGUI::Widget *  _sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::onSelectNextHair ( MyGUI::Widget *  _sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::onSelectPreviousFace ( MyGUI::Widget *  _sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::onSelectPreviousGender ( MyGUI::Widget *  _sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::onSelectPreviousHair ( MyGUI::Widget *  _sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::onSelectRace ( 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::RaceDialog::open ( )
virtual

Notify that window has been made visible.

Reimplemented from MWGui::WindowModal.

Here is the call graph for this function:

void MWGui::RaceDialog::recountParts ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::setGender ( Gender  gender)
inline
void MWGui::RaceDialog::setNextButtonShow ( bool  shown)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::setRaceId ( const std::string &  raceId)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::updatePreview ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::updateRaces ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::updateSkills ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::RaceDialog::updateSpellPowers ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

EventHandle_Void MWGui::RaceDialog::eventBack

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

EventHandle_WindowBase MWGui::RaceDialog::eventDone

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

std::vector<std::string> MWGui::RaceDialog::mAvailableHairs
private
std::vector<std::string> MWGui::RaceDialog::mAvailableHeads
private
float MWGui::RaceDialog::mCurrentAngle
private
std::string MWGui::RaceDialog::mCurrentRaceId
private
int MWGui::RaceDialog::mFaceIndex
private
int MWGui::RaceDialog::mGenderIndex
private
int MWGui::RaceDialog::mHairIndex
private
MyGUI::ScrollBar* MWGui::RaceDialog::mHeadRotate
private
osg::Group* MWGui::RaceDialog::mParent
private
std::auto_ptr<MWRender::RaceSelectionPreview> MWGui::RaceDialog::mPreview
private
bool MWGui::RaceDialog::mPreviewDirty
private
MyGUI::ImageBox* MWGui::RaceDialog::mPreviewImage
private
std::auto_ptr<MyGUI::ITexture> MWGui::RaceDialog::mPreviewTexture
private
MyGUI::ListBox* MWGui::RaceDialog::mRaceList
private
Resource::ResourceSystem* MWGui::RaceDialog::mResourceSystem
private
std::vector<MyGUI::Widget*> MWGui::RaceDialog::mSkillItems
private
MyGUI::Widget* MWGui::RaceDialog::mSkillList
private
std::vector<MyGUI::Widget*> MWGui::RaceDialog::mSpellPowerItems
private
MyGUI::Widget* MWGui::RaceDialog::mSpellPowerList
private

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