You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
936 B
C++
57 lines
936 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 onOpen();
|
|
|
|
void setPtr (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
|