OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
confirmationdialog.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_CONFIRMATIONDIALOG_H
2 #define MWGUI_CONFIRMATIONDIALOG_H
3 
4 #include "windowbase.hpp"
5 
6 namespace MWGui
7 {
9  {
10  public:
12  void askForConfirmation(const std::string& message, const std::string& confirmMessage="#{sOk}", const std::string& cancelMessage="#{sCancel}");
13  virtual void exit();
14 
15  typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
16 
22 
23  private:
24  MyGUI::EditBox* mMessage;
25  MyGUI::Button* mOkButton;
26  MyGUI::Button* mCancelButton;
27 
28  void onCancelButtonClicked(MyGUI::Widget* _sender);
29  void onOkButtonClicked(MyGUI::Widget* _sender);
30  };
31 
32 }
33 
34 #endif
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition: generator.cpp:537
Definition: confirmationdialog.hpp:8
void onCancelButtonClicked(MyGUI::Widget *_sender)
Definition: confirmationdialog.cpp:44
void onOkButtonClicked(MyGUI::Widget *_sender)
Definition: confirmationdialog.cpp:49
MyGUI::Button * mCancelButton
Definition: confirmationdialog.hpp:26
EventHandle_Void eventCancelClicked
Definition: confirmationdialog.hpp:21
ConfirmationDialog()
Definition: confirmationdialog.cpp:8
MyGUI::Button * mOkButton
Definition: confirmationdialog.hpp:25
void askForConfirmation(const std::string &message, const std::string &confirmMessage="#{sOk}", const std::string &cancelMessage="#{sCancel}")
Definition: confirmationdialog.cpp:19
virtual void exit()
Gracefully exits the window.
Definition: confirmationdialog.cpp:37
MyGUI::EditBox * mMessage
Definition: confirmationdialog.hpp:24
EventHandle_Void eventOkClicked
Definition: confirmationdialog.hpp:20
MyGUI::delegates::CMultiDelegate0 EventHandle_Void
Definition: confirmationdialog.hpp:15
Definition: windowbase.hpp:41