OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
repair.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MWGUI_REPAIR_H
2 #define OPENMW_MWGUI_REPAIR_H
3 
4 #include "windowbase.hpp"
5 
6 #include "../mwmechanics/repair.hpp"
7 
8 namespace MWGui
9 {
10 
11 class ItemWidget;
12 class ItemChargeView;
13 
14 class Repair : public WindowBase
15 {
16 public:
17  Repair();
18 
19  virtual void open();
20 
21  virtual void exit();
22 
23  void startRepairItem (const MWWorld::Ptr& item);
24 
25 protected:
27 
28  MyGUI::Widget* mToolBox;
29 
31 
32  MyGUI::TextBox* mUsesLabel;
33  MyGUI::TextBox* mQualityLabel;
34 
35  MyGUI::Button* mCancelButton;
36 
38 
39  void updateRepairView();
40 
41  void onRepairItem(MyGUI::Widget* sender, const MWWorld::Ptr& ptr);
42  void onCancel(MyGUI::Widget* sender);
43 
44 };
45 
46 }
47 
48 #endif
Repair()
Definition: repair.cpp:30
ItemChargeView * mRepairBox
Definition: repair.hpp:26
void onRepairItem(MyGUI::Widget *sender, const MWWorld::Ptr &ptr)
Definition: repair.cpp:108
MyGUI::Button * mCancelButton
Definition: repair.hpp:35
Definition: repair.hpp:9
virtual void exit()
Gracefully exits the window.
Definition: repair.cpp:58
void onCancel(MyGUI::Widget *sender)
Definition: repair.cpp:103
ItemWidget * mToolIcon
Definition: repair.hpp:30
MyGUI::TextBox * mUsesLabel
Definition: repair.hpp:32
MWMechanics::Repair mRepair
Definition: repair.hpp:37
Definition: windowbase.hpp:16
virtual void open()
Notify that window has been made visible.
Definition: repair.cpp:46
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
MyGUI::Widget * mToolBox
Definition: repair.hpp:28
MyGUI::TextBox * mQualityLabel
Definition: repair.hpp:33
void updateRepairView()
Definition: repair.cpp:74
Definition: itemchargeview.hpp:24
Definition: repair.hpp:14
A widget that shows an icon for an MWWorld::Ptr.
Definition: itemwidget.hpp:15
void startRepairItem(const MWWorld::Ptr &item)
Definition: repair.cpp:63