OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
merchantrepair.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MWGUI_MERCHANTREPAIR_H
2 #define OPENMW_MWGUI_MERCHANTREPAIR_H
3 
4 #include "windowbase.hpp"
5 #include "../mwworld/ptr.hpp"
6 
7 namespace MWGui
8 {
9 
10 class MerchantRepair : public WindowBase
11 {
12 public:
14 
15  virtual void open();
16 
17  virtual void exit();
18 
19  void startRepair(const MWWorld::Ptr& actor);
20 
21 private:
22  MyGUI::ScrollView* mList;
23  MyGUI::Button* mOkButton;
24  MyGUI::TextBox* mGoldLabel;
25 
27 
28 protected:
29  void onMouseWheel(MyGUI::Widget* _sender, int _rel);
30  void onRepairButtonClick(MyGUI::Widget* sender);
31  void onOkButtonClick(MyGUI::Widget* sender);
32 
33 };
34 
35 }
36 
37 #endif
void onRepairButtonClick(MyGUI::Widget *sender)
Definition: merchantrepair.cpp:127
void onOkButtonClick(MyGUI::Widget *sender)
Definition: merchantrepair.cpp:153
MyGUI::ScrollView * mList
Definition: merchantrepair.hpp:22
void startRepair(const MWWorld::Ptr &actor)
Definition: merchantrepair.cpp:35
MyGUI::TextBox * mGoldLabel
Definition: merchantrepair.hpp:24
MWWorld::Ptr mActor
Definition: merchantrepair.hpp:26
virtual void open()
Notify that window has been made visible.
Definition: merchantrepair.cpp:115
Definition: windowbase.hpp:16
MyGUI::Button * mOkButton
Definition: merchantrepair.hpp:23
MerchantRepair()
Definition: merchantrepair.cpp:25
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void onMouseWheel(MyGUI::Widget *_sender, int _rel)
Definition: merchantrepair.cpp:107
virtual void exit()
Gracefully exits the window.
Definition: merchantrepair.cpp:122
Definition: merchantrepair.hpp:10