OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
travelwindow.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_TravelWINDOW_H
2 #define MWGUI_TravelWINDOW_H
3 
4 
5 #include "windowbase.hpp"
6 #include "referenceinterface.hpp"
7 
8 namespace MyGUI
9 {
10  class Gui;
11  class Widget;
12 }
13 
14 namespace MWGui
15 {
16  class WindowManager;
17 }
18 
19 
20 namespace MWGui
21 {
23  {
24  public:
25  TravelWindow();
26 
27  virtual void exit();
28 
29  void startTravel(const MWWorld::Ptr& actor);
30 
31  protected:
32  MyGUI::Button* mCancelButton;
33  MyGUI::TextBox* mPlayerGold;
34  MyGUI::TextBox* mDestinations;
35  MyGUI::TextBox* mSelect;
36 
37  MyGUI::ScrollView* mDestinationsView;
38 
39  void onCancelButtonClicked(MyGUI::Widget* _sender);
40  void onTravelButtonClick(MyGUI::Widget* _sender);
41  void onMouseWheel(MyGUI::Widget* _sender, int _rel);
42  void addDestination(const std::string& name, ESM::Position pos, bool interior);
43  void clearDestinations();
44  int mCurrentY;
45 
46  static const int sLineHeight;
47 
48  void updateLabels();
49 
50  virtual void onReferenceUnavailable();
51  };
52 }
53 
54 #endif
void clearDestinations()
Definition: travelwindow.cpp:106
void addDestination(const std::string &name, ESM::Position pos, bool interior)
Definition: travelwindow.cpp:56
TravelWindow()
Definition: travelwindow.cpp:27
int mCurrentY
Definition: travelwindow.hpp:44
void updateLabels()
Definition: travelwindow.cpp:203
virtual void exit()
Gracefully exits the window.
Definition: travelwindow.cpp:51
void onMouseWheel(MyGUI::Widget *_sender, int _rel)
Definition: travelwindow.cpp:221
void onTravelButtonClick(MyGUI::Widget *_sender)
Definition: travelwindow.cpp:149
void onCancelButtonClicked(MyGUI::Widget *_sender)
Definition: travelwindow.cpp:198
MyGUI::TextBox * mDestinations
Definition: travelwindow.hpp:34
Definition: windowbase.hpp:16
void startTravel(const MWWorld::Ptr &actor)
Definition: travelwindow.cpp:114
Definition: defs.hpp:38
MyGUI::TextBox * mPlayerGold
Definition: travelwindow.hpp:33
virtual void onReferenceUnavailable()
called when reference has become unavailable
Definition: travelwindow.cpp:215
static const int sLineHeight
Definition: travelwindow.hpp:46
Definition: travelwindow.hpp:22
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window acc...
Definition: referenceinterface.hpp:12
MyGUI::ScrollView * mDestinationsView
Definition: travelwindow.hpp:37
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
MyGUI::TextBox * mSelect
Definition: travelwindow.hpp:35
MyGUI::Button * mCancelButton
Definition: travelwindow.hpp:32
const char * name
Definition: crashcatcher.cpp:59