OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
trainingwindow.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_TRAININGWINDOW_H
2 #define MWGUI_TRAININGWINDOW_H
3 
4 #include "windowbase.hpp"
5 #include "referenceinterface.hpp"
6 #include "timeadvancer.hpp"
7 #include "waitdialog.hpp"
8 
9 namespace MWGui
10 {
11 
13  {
14  public:
16 
17  virtual void open();
18 
19  virtual void exit();
20 
21  void startTraining(MWWorld::Ptr actor);
22 
23  void onFrame(float dt);
24 
25  protected:
26  virtual void onReferenceUnavailable ();
27 
28  void onCancelButtonClicked (MyGUI::Widget* sender);
29  void onTrainingSelected(MyGUI::Widget* sender);
30 
31  void onTrainingProgressChanged(int cur, int total);
32  void onTrainingFinished();
33 
34  MyGUI::Widget* mTrainingOptions;
35  MyGUI::Button* mCancelButton;
36  MyGUI::TextBox* mPlayerGold;
37 
39 
42  };
43 
44 }
45 
46 #endif
Definition: waitdialog.hpp:11
void onFrame(float dt)
Definition: trainingwindow.cpp:201
MyGUI::Button * mCancelButton
Definition: trainingwindow.hpp:35
Definition: trainingwindow.hpp:12
void onTrainingFinished()
Definition: trainingwindow.cpp:196
virtual void onReferenceUnavailable()
called when reference has become unavailable
Definition: trainingwindow.cpp:120
void onCancelButtonClicked(MyGUI::Widget *sender)
Definition: trainingwindow.cpp:125
MyGUI::Widget * mTrainingOptions
Definition: trainingwindow.hpp:34
void startTraining(MWWorld::Ptr actor)
Definition: trainingwindow.cpp:68
WaitDialogProgressBar mProgressBar
Definition: trainingwindow.hpp:40
void onTrainingProgressChanged(int cur, int total)
Definition: trainingwindow.cpp:191
MyGUI::TextBox * mPlayerGold
Definition: trainingwindow.hpp:36
virtual void exit()
Gracefully exits the window.
Definition: trainingwindow.cpp:63
Definition: windowbase.hpp:16
TimeAdvancer mTimeAdvancer
Definition: trainingwindow.hpp:41
void onTrainingSelected(MyGUI::Widget *sender)
Definition: trainingwindow.cpp:130
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window acc...
Definition: referenceinterface.hpp:12
virtual void open()
Notify that window has been made visible.
Definition: trainingwindow.cpp:58
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
Definition: timeadvancer.hpp:8
TrainingWindow()
Definition: trainingwindow.cpp:41
float mFadeTimeRemaining
Definition: trainingwindow.hpp:38