1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 21:19:57 +00:00
openmw-tes3mp/apps/openmw/mwgui/recharge.hpp
2017-05-31 19:11:49 +04:00

59 lines
946 B
C++

#ifndef OPENMW_MWGUI_RECHARGE_H
#define OPENMW_MWGUI_RECHARGE_H
#include "windowbase.hpp"
#include "itemselection.hpp"
namespace MWWorld
{
class Ptr;
}
namespace MWGui
{
class ItemSelectionDialog;
class ItemWidget;
class ItemChargeView;
class Recharge : public WindowBase
{
public:
Recharge();
virtual void open();
virtual void exit();
void start (const MWWorld::Ptr& gem);
protected:
ItemChargeView* mBox;
MyGUI::Widget* mGemBox;
ItemWidget* mGemIcon;
ItemSelectionDialog* mItemSelectionDialog;
MyGUI::TextBox* mChargeLabel;
MyGUI::Button* mCancelButton;
void updateView();
void onSelectItem(MyGUI::Widget* sender);
void onItemSelected(MWWorld::Ptr item);
void onItemCancel();
void onItemClicked (MyGUI::Widget* sender, const MWWorld::Ptr& item);
void onCancel (MyGUI::Widget* sender);
void onMouseWheel(MyGUI::Widget* _sender, int _rel);
};
}
#endif