MyGUI
3.2.1
|
00001 /* 00002 * This source file is part of MyGUI. For the latest info, see http://mygui.info/ 00003 * Distributed under the MIT License 00004 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) 00005 */ 00006 00007 #ifndef __MYGUI_SKIN_MANAGER_H__ 00008 #define __MYGUI_SKIN_MANAGER_H__ 00009 00010 #include "MyGUI_Prerequest.h" 00011 #include "MyGUI_Singleton.h" 00012 #include "MyGUI_Enumerator.h" 00013 #include "MyGUI_ResourceSkin.h" 00014 #include "MyGUI_XmlDocument.h" 00015 #include "MyGUI_ResourceManager.h" 00016 #include "MyGUI_BackwardCompatibility.h" 00017 00018 namespace MyGUI 00019 { 00020 00021 class MYGUI_EXPORT SkinManager : 00022 public Singleton<SkinManager>, 00023 public MemberObsolete<SkinManager> 00024 { 00025 public: 00026 SkinManager(); 00027 00028 void initialise(); 00029 void shutdown(); 00030 00032 ResourceSkin* getByName(const std::string& _name) const; 00033 00035 bool isExist(const std::string& _name) const; 00036 00040 const std::string getDefaultSkin() const; 00044 void setDefaultSkin(const std::string& _value); 00045 00046 private: 00047 void createDefault(const std::string& _value); 00048 void _load(xml::ElementPtr _node, const std::string& _file, Version _version); 00049 00050 private: 00051 std::string mDefaultName; 00052 00053 bool mIsInitialise; 00054 std::string mXmlSkinTagName; 00055 std::string mXmlDefaultSkinValue; 00056 }; 00057 00058 } // namespace MyGUI 00059 00060 #endif // __MYGUI_SKIN_MANAGER_H__