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  void setPtr (const MWWorld::Ptr& actor);
28 
29  protected:
30  MyGUI::Button* mCancelButton;
31  MyGUI::TextBox* mPlayerGold;
32  MyGUI::TextBox* mDestinations;
33  MyGUI::TextBox* mSelect;
34 
35  MyGUI::ScrollView* mDestinationsView;
36 
37  void onCancelButtonClicked(MyGUI::Widget* _sender);
38  void onTravelButtonClick(MyGUI::Widget* _sender);
39  void onMouseWheel(MyGUI::Widget* _sender, int _rel);
40  void addDestination(const std::string& name, ESM::Position pos, bool interior);
41  void clearDestinations();
42  int mCurrentY;
43 
44  void updateLabels();
45 
46  virtual void onReferenceUnavailable();
47  };
48 }
49 
50 #endif
void clearDestinations()
Definition: travelwindow.cpp:102
void addDestination(const std::string &name, ESM::Position pos, bool interior)
Definition: travelwindow.cpp:47
TravelWindow()
Definition: travelwindow.cpp:25
int mCurrentY
Definition: travelwindow.hpp:42
void updateLabels()
Definition: travelwindow.cpp:205
void onMouseWheel(MyGUI::Widget *_sender, int _rel)
Definition: travelwindow.cpp:223
void onTravelButtonClick(MyGUI::Widget *_sender)
Definition: travelwindow.cpp:145
void onCancelButtonClicked(MyGUI::Widget *_sender)
Definition: travelwindow.cpp:200
void setPtr(const MWWorld::Ptr &actor)
Open this object in the GUI, for windows that support it.
Definition: travelwindow.cpp:110
MyGUI::TextBox * mDestinations
Definition: travelwindow.hpp:32
Definition: windowbase.hpp:21
Definition: defs.hpp:38
MyGUI::TextBox * mPlayerGold
Definition: travelwindow.hpp:31
virtual void onReferenceUnavailable()
called when reference has become unavailable
Definition: travelwindow.cpp:217
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:35
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
MyGUI::TextBox * mSelect
Definition: travelwindow.hpp:33
MyGUI::Button * mCancelButton
Definition: travelwindow.hpp:30
const char * name
Definition: crashcatcher.cpp:67