1 /*!
2 	@file
3 	@author		Albert Semenov
4 	@date		09/2008
5 */
6 
7 #ifndef _1b12f1d3_3f8d_4436_a78b_bac3214b47db_
8 #define _1b12f1d3_3f8d_4436_a78b_bac3214b47db_
9 
10 #include <MyGUI.h>
11 #include "sigslot.h"
12 
13 namespace tools
14 {
15 
16 	class MYGUI_EXPORT_DLL Dialog
17 	{
18 	public:
19 		Dialog();
20 		virtual ~Dialog() = default;
21 
22 		void setDialogRoot(MyGUI::Widget* _root);
23 		bool isDialogModal();
24 
25 		void doModal();
26 		void endModal();
27 
28 		sigslot::signal2<Dialog*, bool> eventEndDialog;
29 
30 	protected:
onDoModal()31 		virtual void onDoModal() { }
onEndModal()32 		virtual void onEndModal() { }
33 
34 	private:
35 		bool mModal;
36 		MyGUI::Widget* mRootWidget;
37 	};
38 
39 }
40 
41 #endif
42