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

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
{
2022-09-22 21:26:05 +03:00
class ItemSelectionDialog;
class ItemWidget;
class ItemChargeView;
2022-09-22 21:26:05 +03:00
class Repair : public WindowBase
{
public:
Repair();
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
void onOpen() override;
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
void setPtr(const MWWorld::Ptr& item) override;
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
protected:
ItemChargeView* mRepairBox;
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
MyGUI::Widget* mToolBox;
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
ItemWidget* mToolIcon;
2017-04-15 23:06:13 +04:00
2022-09-22 21:26:05 +03:00
std::unique_ptr<ItemSelectionDialog> mItemSelectionDialog;
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
MyGUI::TextBox* mUsesLabel;
MyGUI::TextBox* mQualityLabel;
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
MyGUI::Button* mCancelButton;
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
MWMechanics::Repair mRepair;
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
void updateRepairView();
2017-04-15 23:06:13 +04:00
2022-09-22 21:26:05 +03:00
void onSelectItem(MyGUI::Widget* sender);
2017-04-15 23:06:13 +04:00
2022-09-22 21:26:05 +03:00
void onItemSelected(MWWorld::Ptr item);
void onItemCancel();
2013-03-23 08:16:46 +01:00
2022-09-22 21:26:05 +03:00
void onRepairItem(MyGUI::Widget* sender, const MWWorld::Ptr& ptr);
void onCancel(MyGUI::Widget* sender);
};
2013-03-23 08:16:46 +01:00
}
#endif