mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
74 lines
1.9 KiB
C++
74 lines
1.9 KiB
C++
/*!
|
|
@file
|
|
@author Albert Semenov
|
|
@date 11/2007
|
|
@module
|
|
*/
|
|
/*
|
|
This file is part of MyGUI.
|
|
|
|
MyGUI is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
MyGUI is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#ifndef __MYGUI_SKIN_MANAGER_H__
|
|
#define __MYGUI_SKIN_MANAGER_H__
|
|
|
|
#include "MyGUI_Prerequest.h"
|
|
#include "MyGUI_Instance.h"
|
|
#include "MyGUI_Enumerator.h"
|
|
#include "MyGUI_ResourceSkin.h"
|
|
#include "MyGUI_XmlDocument.h"
|
|
#include "MyGUI_ResourceManager.h"
|
|
|
|
namespace MyGUI
|
|
{
|
|
|
|
class MYGUI_EXPORT SkinManager
|
|
{
|
|
MYGUI_INSTANCE_HEADER( SkinManager )
|
|
|
|
public:
|
|
void initialise();
|
|
void shutdown();
|
|
|
|
/** Load additional MyGUI *_skin.xml file */
|
|
bool load(const std::string& _file);
|
|
void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
|
|
|
|
ResourceSkin* getByName(const std::string& _name) const;
|
|
|
|
bool isExist(const std::string& _name) const;
|
|
|
|
const std::string getDefaultSkin() const { return mDefaultName; }
|
|
void setDefaultSkin(const std::string& _value);
|
|
|
|
/*obsolete:*/
|
|
#ifndef MYGUI_DONT_USE_OBSOLETE
|
|
|
|
MYGUI_OBSOLETE("use : ResourceSkin* SkinManager::getByName(const std::string& _name)")
|
|
ResourceSkin* getSkin(const std::string& _name) const { return getByName(_name); }
|
|
|
|
#endif // MYGUI_DONT_USE_OBSOLETE
|
|
|
|
private:
|
|
void createDefault(const std::string& _value);
|
|
|
|
private:
|
|
std::string mDefaultName;
|
|
|
|
};
|
|
|
|
} // namespace MyGUI
|
|
|
|
#endif // __MYGUI_SKIN_MANAGER_H__
|