mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-04-20 01:43:12 +02:00
47 lines
594 B
C++
47 lines
594 B
C++
#ifndef THEME_H
|
|
#define THEME_H
|
|
|
|
#include<map>
|
|
#include<string>
|
|
|
|
/*
|
|
class ThemeMap {
|
|
public:
|
|
THEME_CLASS *current_theme;
|
|
std::map<std::string, THEME_CLASS> theme_map;
|
|
|
|
ThemeMap() {
|
|
_instance = this;
|
|
}
|
|
~ThemeMap() {
|
|
_instance = nullptr;
|
|
}
|
|
|
|
static ThemeMap *get_singleton() {
|
|
return _instance;
|
|
}
|
|
|
|
private:
|
|
static ThemeMap *_instance;
|
|
};
|
|
|
|
ThemeMap *ThemeMap::_instance = nullptr;
|
|
*/
|
|
|
|
class Theme {
|
|
public:
|
|
|
|
|
|
Theme();
|
|
virtual ~Theme();
|
|
};
|
|
|
|
|
|
//forumtheme
|
|
//sitetheme
|
|
//...
|
|
//all singleton
|
|
//not templated
|
|
//and a theme map
|
|
|
|
#endif |