1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 21:32:42 +00:00
OpenMW/apps/openmw/mwgui/confirmationdialog.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
812 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;
2022-09-22 21:26:05 +03:00
typedef MyGUI::delegates::MultiDelegate<> EventHandle_Void;
2022-09-22 21:26:05 +03:00
2012-05-23 05:28:25 +02:00
/** Event : Ok button was clicked.\n
signature : void method()\n
*/
EventHandle_Void eventOkClicked;
2012-05-28 12:34:29 +02:00
EventHandle_Void eventCancelClicked;
2022-09-22 21:26:05 +03:00
2012-05-23 05:28:25 +02:00
private:
MyGUI::EditBox* mMessage;
MyGUI::Button* mOkButton;
MyGUI::Button* mCancelButton;
2022-09-22 21:26:05 +03:00
2012-05-23 05:28:25 +02:00
void onCancelButtonClicked(MyGUI::Widget* _sender);
void onOkButtonClicked(MyGUI::Widget* _sender);
};
}
#endif