2012-05-23 03:28:25 +00:00
|
|
|
#ifndef MWGUI_CONFIRMATIONDIALOG_H
|
|
|
|
#define MWGUI_CONFIRMATIONDIALOG_H
|
|
|
|
|
|
|
|
#include "window_base.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
2012-08-26 08:52:06 +00:00
|
|
|
class ConfirmationDialog : public WindowModal
|
2012-05-23 03:28:25 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-08-12 16:11:09 +00:00
|
|
|
ConfirmationDialog(MWBase::WindowManager& parWindowManager);
|
2012-05-23 03:28:25 +00:00
|
|
|
void open(const std::string& message);
|
|
|
|
|
|
|
|
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
|
|
|
|
|
|
|
|
/** Event : Ok button was clicked.\n
|
|
|
|
signature : void method()\n
|
|
|
|
*/
|
|
|
|
EventHandle_Void eventOkClicked;
|
2012-05-28 10:34:29 +00:00
|
|
|
EventHandle_Void eventCancelClicked;
|
2012-05-23 03:28:25 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
MyGUI::EditBox* mMessage;
|
|
|
|
MyGUI::Button* mOkButton;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
|
|
|
|
void onCancelButtonClicked(MyGUI::Widget* _sender);
|
|
|
|
void onOkButtonClicked(MyGUI::Widget* _sender);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|