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

58 lines
969 B
C++

#ifndef OPENMW_MWGUI_REPAIR_H
#define OPENMW_MWGUI_REPAIR_H
#include "windowbase.hpp"
#include "itemselection.hpp"
#include "../mwmechanics/repair.hpp"
namespace MWGui
{
class ItemSelectionDialog;
class ItemWidget;
class ItemChargeView;
class Repair : public WindowBase
{
public:
Repair();
virtual void open();
virtual void exit();
void startRepairItem (const MWWorld::Ptr& item);
protected:
ItemChargeView* mRepairBox;
MyGUI::Widget* mToolBox;
ItemWidget* mToolIcon;
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