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 onOpen();
18 
19  bool exit();
20 
21  void setPtr(const MWWorld::Ptr& actor);
22 
23  void onFrame(float dt);
24 
26 
27  void clear() { resetReference(); }
28 
29  protected:
30  virtual void onReferenceUnavailable ();
31 
32  void onCancelButtonClicked (MyGUI::Widget* sender);
33  void onTrainingSelected(MyGUI::Widget* sender);
34 
35  void onTrainingProgressChanged(int cur, int total);
36  void onTrainingFinished();
37 
38  MyGUI::Widget* mTrainingOptions;
39  MyGUI::Button* mCancelButton;
40  MyGUI::TextBox* mPlayerGold;
41 
44  };
45 
46 }
47 
48 #endif
virtual void onOpen()
Notify that window has been made visible.
Definition: trainingwindow.cpp:54
Definition: waitdialog.hpp:11
void onFrame(float dt)
Called every frame if the window is in an active GUI mode.
Definition: trainingwindow.cpp:201
MyGUI::Button * mCancelButton
Definition: trainingwindow.hpp:39
void setPtr(const MWWorld::Ptr &actor)
Open this object in the GUI, for windows that support it.
Definition: trainingwindow.cpp:67
Definition: trainingwindow.hpp:12
void onTrainingFinished()
Definition: trainingwindow.cpp:192
virtual void onReferenceUnavailable()
called when reference has become unavailable
Definition: trainingwindow.cpp:119
void clear()
Clear any state specific to the running game.
Definition: trainingwindow.hpp:27
void onCancelButtonClicked(MyGUI::Widget *sender)
Definition: trainingwindow.cpp:124
MyGUI::Widget * mTrainingOptions
Definition: trainingwindow.hpp:38
WaitDialogProgressBar mProgressBar
Definition: trainingwindow.hpp:42
void onTrainingProgressChanged(int cur, int total)
Definition: trainingwindow.cpp:187
bool exit()
Gracefully exits the window.
Definition: trainingwindow.cpp:207
MyGUI::TextBox * mPlayerGold
Definition: trainingwindow.hpp:40
Definition: windowbase.hpp:21
TimeAdvancer mTimeAdvancer
Definition: trainingwindow.hpp:43
void onTrainingSelected(MyGUI::Widget *sender)
Definition: trainingwindow.cpp:129
WindowBase * getProgressBar()
Definition: trainingwindow.hpp:25
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window acc...
Definition: referenceinterface.hpp:12
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
Definition: timeadvancer.hpp:8
TrainingWindow()
Definition: trainingwindow.cpp:40
virtual void resetReference()
Definition: referenceinterface.hpp:20