2012-08-10 19:28:34 +00:00
|
|
|
#ifndef _GUITHEME_H_
|
|
|
|
#define _GUITHEME_H_
|
|
|
|
|
|
|
|
#include "../GuiComponent.h"
|
|
|
|
#include "../pugiXML/pugixml.hpp"
|
|
|
|
|
|
|
|
class GuiTheme : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiTheme(std::string path = "");
|
|
|
|
~GuiTheme();
|
|
|
|
|
|
|
|
void readXML(std::string path);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void deleteComponents();
|
|
|
|
GuiComponent* createElement(pugi::xml_node data, GuiComponent* parent);
|
2012-08-11 04:17:52 +00:00
|
|
|
std::string expandPath(std::string path);
|
|
|
|
float resolveExp(std::string str);
|
2012-08-10 19:28:34 +00:00
|
|
|
|
|
|
|
std::vector<GuiComponent*> mComponentVector;
|
2012-08-11 04:17:52 +00:00
|
|
|
std::string mPath;
|
2012-08-10 19:28:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|