You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
875 B
C++
35 lines
875 B
C++
#ifndef MWGUI_CONFIRMATIONDIALOG_H
|
|
#define MWGUI_CONFIRMATIONDIALOG_H
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
class ConfirmationDialog : public WindowModal
|
|
{
|
|
public:
|
|
ConfirmationDialog();
|
|
void askForConfirmation(const std::string& message);
|
|
virtual bool exit();
|
|
|
|
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
|
|
|
|
/** 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);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|