1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 21:40:15 +00:00
OpenMW/apps/openmw/mwgui/confirmationdialog.hpp

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
{
2022-09-22 21:26:05 +03:00
public:
ConfirmationDialog();
void askForConfirmation(const std::string& message);
bool exit() override;
typedef MyGUI::delegates::MultiDelegate<> EventHandle_Void;
2022-09-22 21:26:05 +03:00
/** Event : Ok button was clicked.\n
signature : void method()\n
*/
EventHandle_Void eventOkClicked;
EventHandle_Void eventCancelClicked;
private:
MyGUI::EditBox* mMessage;
MyGUI::Button* mOkButton;
MyGUI::Button* mCancelButton;
void onCancelButtonClicked(MyGUI::Widget* _sender);
void onOkButtonClicked(MyGUI::Widget* _sender);
2012-05-23 05:28:25 +02:00
};
}
#endif