blob: 0d6b1671adc74dafd15f41a41ece413e3a95a827 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* $Id: theme.h,v 1.1.1.1 2004/11/19 16:45:31 lordjaxom Exp $
*/
#ifndef VDR_TEXT2SKIN_THEME_H
#define VDR_TEXT2SKIN_THEME_H
#include "common.h"
#include "file.h"
#include <map>
#include <vdr/themes.h>
class cText2SkinTheme: public cText2SkinFile {
private:
cTheme mTheme;
std::map<std::string,int> mMap;
protected:
bool Parse(const char *Text);
public:
cText2SkinTheme(const char *Skin);
virtual ~cText2SkinTheme();
cTheme *Theme(void) { return &mTheme; }
tColor Color(const std::string &Name);
};
inline tColor cText2SkinTheme::Color(const std::string &Name) {
if (mMap.find(Name) != mMap.end())
return mTheme.Color(mMap[Name]);
else
return 0x00000000;
}
#endif // VDR_TEXT2SKIN_THEME_H
|