2013-03-23 07:16:46 +00:00
|
|
|
#ifndef OPENMW_MWGUI_REPAIR_H
|
|
|
|
#define OPENMW_MWGUI_REPAIR_H
|
|
|
|
|
2013-04-10 04:32:05 +00:00
|
|
|
#include "windowbase.hpp"
|
2013-03-23 07:16:46 +00:00
|
|
|
|
|
|
|
#include "../mwmechanics/repair.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
2017-04-15 19:06:13 +00:00
|
|
|
class ItemSelectionDialog;
|
2014-06-05 20:13:18 +00:00
|
|
|
class ItemWidget;
|
2016-11-06 10:01:46 +00:00
|
|
|
class ItemChargeView;
|
2014-06-05 20:13:18 +00:00
|
|
|
|
2013-03-23 07:16:46 +00:00
|
|
|
class Repair : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 18:46:21 +00:00
|
|
|
Repair();
|
2013-03-23 07:16:46 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void onOpen() override;
|
2013-03-23 07:16:46 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void setPtr (const MWWorld::Ptr& item) override;
|
2013-03-23 07:16:46 +00:00
|
|
|
|
|
|
|
protected:
|
2016-11-06 10:01:46 +00:00
|
|
|
ItemChargeView* mRepairBox;
|
2013-03-23 07:16:46 +00:00
|
|
|
|
|
|
|
MyGUI::Widget* mToolBox;
|
|
|
|
|
2014-06-05 20:13:18 +00:00
|
|
|
ItemWidget* mToolIcon;
|
2013-03-23 07:16:46 +00:00
|
|
|
|
2017-04-15 19:06:13 +00:00
|
|
|
ItemSelectionDialog* mItemSelectionDialog;
|
|
|
|
|
2013-03-23 07:16:46 +00:00
|
|
|
MyGUI::TextBox* mUsesLabel;
|
|
|
|
MyGUI::TextBox* mQualityLabel;
|
|
|
|
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
|
|
|
|
MWMechanics::Repair mRepair;
|
|
|
|
|
|
|
|
void updateRepairView();
|
|
|
|
|
2017-04-15 19:06:13 +00:00
|
|
|
void onSelectItem(MyGUI::Widget* sender);
|
|
|
|
|
|
|
|
void onItemSelected(MWWorld::Ptr item);
|
|
|
|
void onItemCancel();
|
|
|
|
|
2016-11-06 10:01:46 +00:00
|
|
|
void onRepairItem(MyGUI::Widget* sender, const MWWorld::Ptr& ptr);
|
|
|
|
void onCancel(MyGUI::Widget* sender);
|
2013-03-23 07:16:46 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|