1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 21:49:56 +00:00
openmw-tes3mp/apps/openmw/mwgui/recharge.hpp

58 lines
933 B
C++
Raw Normal View History

#ifndef OPENMW_MWGUI_RECHARGE_H
#define OPENMW_MWGUI_RECHARGE_H
#include "windowbase.hpp"
2017-04-16 12:52:56 +00:00
#include "itemselection.hpp"
2015-01-10 02:56:06 +00:00
namespace MWWorld
{
class Ptr;
}
namespace MWGui
{
2017-04-16 12:52:56 +00:00
class ItemSelectionDialog;
class ItemWidget;
class ItemChargeView;
class Recharge : public WindowBase
{
public:
Recharge();
void onOpen() override;
void setPtr (const MWWorld::Ptr& gem) override;
protected:
ItemChargeView* mBox;
MyGUI::Widget* mGemBox;
ItemWidget* mGemIcon;
2017-04-16 12:52:56 +00:00
ItemSelectionDialog* mItemSelectionDialog;
MyGUI::TextBox* mChargeLabel;
MyGUI::Button* mCancelButton;
void updateView();
2017-04-16 12:52:56 +00:00
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