1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:49:56 +00:00
openmw-tes3mp/apps/openmw/mwgui/repair.hpp

55 lines
916 B
C++
Raw Normal View History

2013-03-23 07:16:46 +00:00
#ifndef OPENMW_MWGUI_REPAIR_H
#define OPENMW_MWGUI_REPAIR_H
#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;
class ItemWidget;
class ItemChargeView;
2013-03-23 07:16:46 +00:00
class Repair : public WindowBase
{
public:
Repair();
2013-03-23 07:16:46 +00:00
void onOpen() override;
2013-03-23 07:16:46 +00:00
void setPtr (const MWWorld::Ptr& item) override;
2013-03-23 07:16:46 +00:00
protected:
ItemChargeView* mRepairBox;
2013-03-23 07:16:46 +00:00
MyGUI::Widget* mToolBox;
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();
void onRepairItem(MyGUI::Widget* sender, const MWWorld::Ptr& ptr);
void onCancel(MyGUI::Widget* sender);
2013-03-23 07:16:46 +00:00
};
}
#endif