1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00
OpenMW/apps/openmw/mwgui/repair.hpp

57 lines
946 B
C++
Raw Normal View History

2013-03-23 08:16:46 +01:00
#ifndef OPENMW_MWGUI_REPAIR_H
#define OPENMW_MWGUI_REPAIR_H
#include "windowbase.hpp"
2013-03-23 08:16:46 +01:00
2017-04-15 23:06:13 +04:00
#include "itemselection.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;
2013-03-23 08:16:46 +01:00
MyGUI::Widget* mToolBox;
ItemWidget* mToolIcon;
2013-03-23 08:16:46 +01:00
2017-04-15 23:06:13 +04:00
ItemSelectionDialog* mItemSelectionDialog;
2013-03-23 08:16:46 +01:00
MyGUI::TextBox* mUsesLabel;
MyGUI::TextBox* mQualityLabel;
MyGUI::Button* mCancelButton;
MWMechanics::Repair mRepair;
void updateRepairView();
2017-04-15 23:06:13 +04:00
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);
2013-03-23 08:16:46 +01:00
};
}
#endif