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 onOpen();
16 
17  void setPtr(const MWWorld::Ptr& actor);
18 
19 private:
20  MyGUI::ScrollView* mList;
21  MyGUI::Button* mOkButton;
22  MyGUI::TextBox* mGoldLabel;
23 
25 
26 protected:
27  void onMouseWheel(MyGUI::Widget* _sender, int _rel);
28  void onRepairButtonClick(MyGUI::Widget* sender);
29  void onOkButtonClick(MyGUI::Widget* sender);
30 };
31 
32 }
33 
34 #endif
void onRepairButtonClick(MyGUI::Widget *sender)
Definition: merchantrepair.cpp:118
void onOkButtonClick(MyGUI::Widget *sender)
Definition: merchantrepair.cpp:143
MyGUI::ScrollView * mList
Definition: merchantrepair.hpp:20
MyGUI::TextBox * mGoldLabel
Definition: merchantrepair.hpp:22
MWWorld::Ptr mActor
Definition: merchantrepair.hpp:24
Definition: windowbase.hpp:21
MyGUI::Button * mOkButton
Definition: merchantrepair.hpp:21
MerchantRepair()
Definition: merchantrepair.cpp:23
void setPtr(const MWWorld::Ptr &actor)
Open this object in the GUI, for windows that support it.
Definition: merchantrepair.cpp:33
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual void onOpen()
Notify that window has been made visible.
Definition: merchantrepair.cpp:111
void onMouseWheel(MyGUI::Widget *_sender, int _rel)
Definition: merchantrepair.cpp:103
Definition: merchantrepair.hpp:10