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
|
|
|
|
{
|
|
|
|
|
2014-06-05 20:13:18 +00:00
|
|
|
class ItemWidget;
|
|
|
|
|
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
|
|
|
|
|
|
|
virtual void open();
|
|
|
|
|
2014-05-27 03:13:37 +00:00
|
|
|
virtual void exit();
|
|
|
|
|
2013-03-23 07:16:46 +00:00
|
|
|
void startRepairItem (const MWWorld::Ptr& item);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
MyGUI::Widget* mRepairBox;
|
|
|
|
MyGUI::ScrollView* mRepairView;
|
|
|
|
|
|
|
|
MyGUI::Widget* mToolBox;
|
|
|
|
|
2014-06-05 20:13:18 +00:00
|
|
|
ItemWidget* mToolIcon;
|
2013-03-23 07:16:46 +00:00
|
|
|
|
|
|
|
MyGUI::TextBox* mUsesLabel;
|
|
|
|
MyGUI::TextBox* mQualityLabel;
|
|
|
|
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
|
|
|
|
MWMechanics::Repair mRepair;
|
|
|
|
|
|
|
|
void updateRepairView();
|
|
|
|
|
|
|
|
void onRepairItem (MyGUI::Widget* sender);
|
|
|
|
void onCancel (MyGUI::Widget* sender);
|
|
|
|
void onMouseWheel(MyGUI::Widget* _sender, int _rel);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|