2013-11-19 05:48:47 +00:00
|
|
|
#ifndef OPENMW_MWGUI_RECHARGE_H
|
|
|
|
#define OPENMW_MWGUI_RECHARGE_H
|
|
|
|
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
2014-06-05 20:13:18 +00:00
|
|
|
class ItemWidget;
|
|
|
|
|
2013-11-19 05:48:47 +00:00
|
|
|
class Recharge : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Recharge();
|
|
|
|
|
|
|
|
virtual void open();
|
|
|
|
|
2014-05-27 03:13:37 +00:00
|
|
|
virtual void exit();
|
|
|
|
|
2013-11-19 05:48:47 +00:00
|
|
|
void start (const MWWorld::Ptr& gem);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
MyGUI::Widget* mBox;
|
|
|
|
MyGUI::ScrollView* mView;
|
|
|
|
|
|
|
|
MyGUI::Widget* mGemBox;
|
|
|
|
|
2014-06-05 20:13:18 +00:00
|
|
|
ItemWidget* mGemIcon;
|
2013-11-19 05:48:47 +00:00
|
|
|
|
|
|
|
MyGUI::TextBox* mChargeLabel;
|
|
|
|
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
|
|
|
|
void updateView();
|
|
|
|
|
|
|
|
void onItemClicked (MyGUI::Widget* sender);
|
|
|
|
void onCancel (MyGUI::Widget* sender);
|
|
|
|
void onMouseWheel(MyGUI::Widget* _sender, int _rel);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|