mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
56 lines
1.0 KiB
C++
56 lines
1.0 KiB
C++
#ifndef OPENMW_MWGUI_REPAIR_H
|
|
#define OPENMW_MWGUI_REPAIR_H
|
|
|
|
#include <memory>
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
#include "../mwmechanics/repair.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
|
|
class ItemSelectionDialog;
|
|
class ItemWidget;
|
|
class ItemChargeView;
|
|
|
|
class Repair : public WindowBase
|
|
{
|
|
public:
|
|
Repair();
|
|
|
|
void onOpen() override;
|
|
|
|
void setPtr(const MWWorld::Ptr& item) override;
|
|
|
|
protected:
|
|
ItemChargeView* mRepairBox;
|
|
|
|
MyGUI::Widget* mToolBox;
|
|
|
|
ItemWidget* mToolIcon;
|
|
|
|
std::unique_ptr<ItemSelectionDialog> mItemSelectionDialog;
|
|
|
|
MyGUI::TextBox* mUsesLabel;
|
|
MyGUI::TextBox* mQualityLabel;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
MWMechanics::Repair mRepair;
|
|
|
|
void updateRepairView();
|
|
|
|
void onSelectItem(MyGUI::Widget* sender);
|
|
|
|
void onItemSelected(MWWorld::Ptr item);
|
|
void onItemCancel();
|
|
|
|
void onRepairItem(MyGUI::Widget* sender, const MWWorld::Ptr& ptr);
|
|
void onCancel(MyGUI::Widget* sender);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|