OpenMW
apps/openmw/mwgui/confirmationdialog.hpp
Go to the documentation of this file.
00001 #ifndef MWGUI_CONFIRMATIONDIALOG_H
00002 #define MWGUI_CONFIRMATIONDIALOG_H
00003 
00004 #include "windowbase.hpp"
00005 
00006 namespace MWGui
00007 {
00008     class ConfirmationDialog : public WindowModal
00009     {
00010         public:
00011             ConfirmationDialog();
00012             void open(const std::string& message);
00013 
00014             typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
00015 
00019             EventHandle_Void eventOkClicked;
00020             EventHandle_Void eventCancelClicked;
00021 
00022         private:
00023             MyGUI::EditBox* mMessage;
00024             MyGUI::Button* mOkButton;
00025             MyGUI::Button* mCancelButton;
00026 
00027             void onCancelButtonClicked(MyGUI::Widget* _sender);
00028             void onOkButtonClicked(MyGUI::Widget* _sender);
00029     };
00030 
00031 }
00032 
00033 #endif