1 /*! 2 @file 3 @author Albert Semenov 4 @date 08/2010 5 */ 6 7 #ifndef _625c2a75_11e0_40d3_9ce1_78e805050dcf_ 8 #define _625c2a75_11e0_40d3_9ce1_78e805050dcf_ 9 10 #include <MyGUI.h> 11 #include "Dialog.h" 12 13 namespace tools 14 { 15 16 class MYGUI_EXPORT_DLL DialogManager : 17 public MyGUI::Singleton<DialogManager> 18 { 19 public: 20 void initialise(); 21 void shutdown(); 22 23 bool getAnyDialog(); 24 void endTopDialog(bool _result = false); 25 26 public: 27 void _addDialog(Dialog* _modal); 28 void _removeDialog(Dialog* _modal); 29 30 private: 31 typedef std::vector<Dialog*> VectorDialog; 32 VectorDialog mDialogs; 33 }; 34 35 } 36 37 #endif 38