2012-09-18 16:29:03 +00:00
|
|
|
#ifndef MWGUI_WAIT_DIALOG_H
|
|
|
|
#define MWGUI_WAIT_DIALOG_H
|
|
|
|
|
|
|
|
#include "window_base.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class WaitDialog : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WaitDialog(MWBase::WindowManager& parWindowManager);
|
|
|
|
|
2012-09-18 18:53:32 +00:00
|
|
|
virtual void open();
|
2012-09-18 16:29:03 +00:00
|
|
|
|
2012-09-18 18:53:32 +00:00
|
|
|
protected:
|
|
|
|
MyGUI::TextBox* mDateTimeText;
|
|
|
|
MyGUI::TextBox* mRestText;
|
|
|
|
MyGUI::TextBox* mHourText;
|
|
|
|
MyGUI::ScrollBar* mHourSlider;
|
|
|
|
MyGUI::Button* mUntilHealedButton;
|
|
|
|
MyGUI::Button* mWaitButton;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
|
|
|
|
void onUntilHealedButtonClicked(MyGUI::Widget* sender);
|
|
|
|
void onWaitButtonClicked(MyGUI::Widget* sender);
|
|
|
|
void onCancelButtonClicked(MyGUI::Widget* sender);
|
|
|
|
void onHourSliderChangedPosition(MyGUI::ScrollBar* sender, size_t position);
|
|
|
|
|
|
|
|
void setCanRest(bool canRest);
|
2012-09-18 16:29:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|