1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/openmw/mwgui/confirmationdialog.hpp

35 lines
876 B
C++
Raw Normal View History

2012-05-23 05:28:25 +02:00
#ifndef MWGUI_CONFIRMATIONDIALOG_H
#define MWGUI_CONFIRMATIONDIALOG_H
#include "windowbase.hpp"
2012-05-23 05:28:25 +02:00
namespace MWGui
{
class ConfirmationDialog : public WindowModal
2012-05-23 05:28:25 +02:00
{
public:
ConfirmationDialog();
2017-03-30 17:05:56 +04:00
void askForConfirmation(const std::string& message);
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