2012-05-23 05:28:25 +02:00
|
|
|
#ifndef MWGUI_CONFIRMATIONDIALOG_H
|
|
|
|
#define MWGUI_CONFIRMATIONDIALOG_H
|
|
|
|
|
2013-04-10 00:32:05 -04:00
|
|
|
#include "windowbase.hpp"
|
2012-05-23 05:28:25 +02:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
2012-08-26 10:52:06 +02:00
|
|
|
class ConfirmationDialog : public WindowModal
|
2012-05-23 05:28:25 +02:00
|
|
|
{
|
|
|
|
public:
|
2013-04-10 14:46:21 -04:00
|
|
|
ConfirmationDialog();
|
2017-03-30 17:05:56 +04:00
|
|
|
void askForConfirmation(const std::string& message);
|
2020-10-16 22:18:54 +04:00
|
|
|
bool exit() override;
|
2012-05-23 05:28:25 +02:00
|
|
|
|
|
|
|
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
|
|
|
|
|
|
|
|
/** Event : Ok button was clicked.\n
|
|
|
|
signature : void method()\n
|
|
|
|
*/
|
|
|
|
EventHandle_Void eventOkClicked;
|
2012-05-28 12:34:29 +02:00
|
|
|
EventHandle_Void eventCancelClicked;
|
2012-05-23 05:28:25 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
MyGUI::EditBox* mMessage;
|
|
|
|
MyGUI::Button* mOkButton;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
|
|
|
|
void onCancelButtonClicked(MyGUI::Widget* _sender);
|
|
|
|
void onOkButtonClicked(MyGUI::Widget* _sender);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|