OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
recharge.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MWGUI_RECHARGE_H
2 #define OPENMW_MWGUI_RECHARGE_H
3 
4 #include "windowbase.hpp"
5 
6 namespace MWWorld
7 {
8  class Ptr;
9 }
10 
11 namespace MWGui
12 {
13 
14 class ItemWidget;
15 class ItemChargeView;
16 
17 class Recharge : public WindowBase
18 {
19 public:
20  Recharge();
21 
22  virtual void open();
23 
24  virtual void exit();
25 
26  void start (const MWWorld::Ptr& gem);
27 
28 protected:
30 
31  MyGUI::Widget* mGemBox;
32 
34 
35  MyGUI::TextBox* mChargeLabel;
36 
37  MyGUI::Button* mCancelButton;
38 
39  void updateView();
40 
41  void onItemClicked (MyGUI::Widget* sender, const MWWorld::Ptr& item);
42  void onCancel (MyGUI::Widget* sender);
43  void onMouseWheel(MyGUI::Widget* _sender, int _rel);
44 
45 };
46 
47 }
48 
49 #endif
ItemWidget * mGemIcon
Definition: recharge.hpp:33
Recharge()
Definition: recharge.cpp:33
virtual void exit()
Gracefully exits the window.
Definition: recharge.cpp:62
void onMouseWheel(MyGUI::Widget *_sender, int _rel)
MyGUI::TextBox * mChargeLabel
Definition: recharge.hpp:35
Definition: recharge.hpp:17
void updateView()
Definition: recharge.cpp:76
virtual void open()
Notify that window has been made visible.
Definition: recharge.cpp:50
MyGUI::Button * mCancelButton
Definition: recharge.hpp:37
void onItemClicked(MyGUI::Widget *sender, const MWWorld::Ptr &item)
Definition: recharge.cpp:104
Definition: windowbase.hpp:16
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void onCancel(MyGUI::Widget *sender)
Definition: recharge.cpp:99
Definition: itemchargeview.hpp:24
ItemChargeView * mBox
Definition: recharge.hpp:29
MyGUI::Widget * mGemBox
Definition: recharge.hpp:31
void start(const MWWorld::Ptr &gem)
Definition: recharge.cpp:67
A widget that shows an icon for an MWWorld::Ptr.
Definition: itemwidget.hpp:15