1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 15:40:10 +00:00
OpenMW/apps/openmw/mwgui/recharge.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.0 KiB
C++
Raw Normal View History

#ifndef OPENMW_MWGUI_RECHARGE_H
#define OPENMW_MWGUI_RECHARGE_H
#include <memory>
#include "windowbase.hpp"
2015-01-10 03:56:06 +01:00
namespace MWWorld
{
class Ptr;
}
namespace MWGui
{
2017-04-16 16:52:56 +04: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 16:52:56 +04:00
std::unique_ptr<ItemSelectionDialog> mItemSelectionDialog;
MyGUI::TextBox* mChargeLabel;
MyGUI::Button* mCancelButton;
2017-04-16 16:52:56 +04:00
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