OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
birth.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_BIRTH_H
2 #define MWGUI_BIRTH_H
3 
4 #include "windowbase.hpp"
5 
6 namespace MWGui
7 {
8  class BirthDialog : public WindowModal
9  {
10  public:
11  BirthDialog();
12 
13  enum Gender
14  {
17  };
18 
19  const std::string &getBirthId() const { return mCurrentBirthId; }
20  void setBirthId(const std::string &raceId);
21 
22  void setNextButtonShow(bool shown);
23  virtual void open();
24 
25  // Events
26  typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
27 
32 
37 
38  protected:
39  void onSelectBirth(MyGUI::ListBox* _sender, size_t _index);
40 
41  void onAccept(MyGUI::ListBox* _sender, size_t index);
42  void onOkClicked(MyGUI::Widget* _sender);
43  void onBackClicked(MyGUI::Widget* _sender);
44 
45  private:
46  void updateBirths();
47  void updateSpells();
48 
49  MyGUI::ListBox* mBirthList;
50  MyGUI::Widget* mSpellArea;
51  MyGUI::ImageBox* mBirthImage;
52  std::vector<MyGUI::Widget*> mSpellItems;
53 
54  std::string mCurrentBirthId;
55  };
56 }
57 #endif
virtual void open()
Notify that window has been made visible.
Definition: birth.cpp:66
void onSelectBirth(MyGUI::ListBox *_sender, size_t _index)
Definition: birth.cpp:113
Definition: birth.hpp:8
MyGUI::Widget * mSpellArea
Definition: birth.hpp:50
EventHandle_WindowBase eventDone
Definition: birth.hpp:36
BirthDialog()
Definition: birth.cpp:27
MyGUI::delegates::CMultiDelegate0 EventHandle_Void
Definition: birth.hpp:26
Definition: birth.hpp:15
const std::string & getBirthId() const
Definition: birth.hpp:19
void onBackClicked(MyGUI::Widget *_sender)
Definition: birth.cpp:108
void onAccept(MyGUI::ListBox *_sender, size_t index)
Definition: birth.cpp:100
Gender
Definition: birth.hpp:13
std::vector< MyGUI::Widget * > mSpellItems
Definition: birth.hpp:52
void setBirthId(const std::string &raceId)
Definition: birth.cpp:74
MyGUI::ListBox * mBirthList
Definition: birth.hpp:49
void updateSpells()
Definition: birth.cpp:162
void onOkClicked(MyGUI::Widget *_sender)
Definition: birth.cpp:93
std::string mCurrentBirthId
Definition: birth.hpp:54
void setNextButtonShow(bool shown)
Definition: birth.cpp:55
EventHandle_Void eventBack
Definition: birth.hpp:31
MyGUI::delegates::CMultiDelegate1< WindowBase * > EventHandle_WindowBase
Definition: windowbase.hpp:22
Definition: birth.hpp:16
void updateBirths()
Definition: birth.cpp:128
MyGUI::ImageBox * mBirthImage
Definition: birth.hpp:51
Definition: windowbase.hpp:41