1 /*!
2 	@file
3 	@author		Albert Semenov
4 	@date		09/2008
5 */
6 #ifndef DIALOG_H_
7 #define DIALOG_H_
8 
9 #include <MyGUI.h>
10 #include "BaseLayout/BaseLayout.h"
11 
12 namespace tools
13 {
14 	class Dialog :
15 		public wraps::BaseLayout
16 	{
17 	public:
18 		typedef MyGUI::delegates::CDelegate2<Dialog*, bool> EventHandle_Result;
19 
20 	public:
21 		Dialog();
22 		Dialog(const std::string& _layout);
23 
24 		void doModal();
25 		void endModal();
26 
27 		EventHandle_Result eventEndDialog;
28 
29 	protected:
onDoModal()30 		virtual void onDoModal() { }
onEndModal()31 		virtual void onEndModal() { }
32 
33 	private:
34 		bool mModal;
35 	};
36 
37 } // namespace tools
38 
39 #endif // DIALOG_H_
40