1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-31 06:32:39 +00:00
OpenMW/apps/openmw/mwgui/repair.hpp

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

56 lines
1.0 KiB
C++
Raw Normal View History

2013-03-23 08:16:46 +01:00
#ifndef OPENMW_MWGUI_REPAIR_H
#define OPENMW_MWGUI_REPAIR_H
#include <memory>
#include "windowbase.hpp"
2013-03-23 08:16:46 +01:00
#include "../mwmechanics/repair.hpp"
namespace MWGui
{
2017-04-15 23:06:13 +04:00
class ItemSelectionDialog;
class ItemWidget;
class ItemChargeView;
2013-03-23 08:16:46 +01:00
class Repair : public WindowBase
{
public:
Repair();
2013-03-23 08:16:46 +01:00
void onOpen() override;
2013-03-23 08:16:46 +01:00
void setPtr(const MWWorld::Ptr& item) override;
2013-03-23 08:16:46 +01:00
protected:
ItemChargeView* mRepairBox;
MyGUI::Widget* mToolBox;
2013-03-23 08:16:46 +01:00
ItemWidget* mToolIcon;
2017-04-15 23:06:13 +04:00
2013-03-23 08:16:46 +01:00
std::unique_ptr<ItemSelectionDialog> mItemSelectionDialog;
MyGUI::TextBox* mUsesLabel;
MyGUI::TextBox* mQualityLabel;
MyGUI::Button* mCancelButton;
MWMechanics::Repair mRepair;
2017-04-15 23:06:13 +04:00
void updateRepairView();
void onSelectItem(MyGUI::Widget* sender);
void onItemSelected(MWWorld::Ptr item);
void onItemCancel();
2013-03-23 08:16:46 +01:00
void onRepairItem(MyGUI::Widget* sender, const MWWorld::Ptr& ptr);
2017-04-15 23:06:13 +04:00
void onCancel(MyGUI::Widget* sender);
2013-03-23 08:16:46 +01:00
};
}
#endif