2014-09-27 09:25:14 +02:00
|
|
|
#ifndef __DESIGNER_CONFIG_H
|
|
|
|
#define __DESIGNER_CONFIG_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
#include <vdr/tools.h>
|
|
|
|
#include <vdr/skins.h>
|
|
|
|
#include <vdr/plugin.h>
|
|
|
|
#include "libcore/fontmanager.h"
|
|
|
|
#include "libcore/imagecache.h"
|
2014-10-18 16:50:33 +02:00
|
|
|
#include "libcore/recfolderinfo.h"
|
2014-09-27 09:25:14 +02:00
|
|
|
|
|
|
|
class cDesignerConfig {
|
|
|
|
private:
|
|
|
|
cString CheckSlashAtEnd(std::string path);
|
|
|
|
bool epgImagePathSet;
|
|
|
|
bool skinPathSet;
|
2014-10-03 15:54:23 +02:00
|
|
|
bool logoPathSet;
|
2014-10-18 10:05:32 +02:00
|
|
|
cRect osdSize;
|
|
|
|
string osdSkin;
|
|
|
|
string osdTheme;
|
2014-10-18 10:28:38 +02:00
|
|
|
string fontFix;
|
|
|
|
string fontOsd;
|
|
|
|
string fontSml;
|
2014-09-27 09:25:14 +02:00
|
|
|
public:
|
|
|
|
cDesignerConfig();
|
|
|
|
~cDesignerConfig();
|
|
|
|
bool SetupParse(const char *Name, const char *Value);
|
2014-10-03 15:54:23 +02:00
|
|
|
void SetPathes(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
void SetSkinPath(cString path);
|
2014-10-03 15:54:23 +02:00
|
|
|
void SetLogoPath(cString path);
|
2014-09-27 09:25:14 +02:00
|
|
|
void SetEpgImagePath(cString path);
|
2014-10-03 15:54:23 +02:00
|
|
|
void ReadSkins(void);
|
|
|
|
void InitSkinIterator(void) { skinIterator = skins.begin(); };
|
|
|
|
bool GetSkin(string &skin);
|
2014-09-27 09:25:14 +02:00
|
|
|
void SetChannelLogoSize(void);
|
|
|
|
void CheckDecimalPoint(void);
|
2014-10-18 10:05:32 +02:00
|
|
|
void SetSkin(void);
|
|
|
|
bool SkinChanged(void);
|
|
|
|
void SetOSDSize(void);
|
|
|
|
bool OsdSizeChanged(void);
|
2014-10-18 10:28:38 +02:00
|
|
|
void SetOSDFonts(void);
|
|
|
|
bool OsdFontsChanged(void);
|
2014-10-26 11:09:09 +01:00
|
|
|
cString GetSkinRessourcePath(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
cString logoExtension;
|
|
|
|
cString skinPath;
|
2014-10-03 15:54:23 +02:00
|
|
|
cString logoPath;
|
2014-09-27 09:25:14 +02:00
|
|
|
cString epgImagePath;
|
|
|
|
int numLogosPerSizeInitial;
|
|
|
|
int limitLogoCache;
|
|
|
|
int numLogosMax;
|
|
|
|
int debugImageLoading;
|
|
|
|
int logoWidth;
|
|
|
|
int logoHeight;
|
|
|
|
bool replaceDecPoint;
|
|
|
|
char decPoint;
|
2014-10-03 15:54:23 +02:00
|
|
|
vector<string> skins;
|
|
|
|
vector<string>::iterator skinIterator;
|
2014-10-11 10:39:41 +02:00
|
|
|
int rerunAmount;
|
|
|
|
int rerunDistance;
|
|
|
|
int rerunMaxChannel;
|
2014-10-18 09:11:11 +02:00
|
|
|
int blockFlush;
|
2014-10-28 16:39:42 +01:00
|
|
|
int bitrateCalcInterval;
|
2014-09-27 09:25:14 +02:00
|
|
|
};
|
2014-10-18 09:11:11 +02:00
|
|
|
|
2014-09-27 09:25:14 +02:00
|
|
|
#ifdef DEFINE_CONFIG
|
|
|
|
bool firstDisplay = true;
|
|
|
|
cDesignerConfig config;
|
2014-10-03 15:54:23 +02:00
|
|
|
cFontManager *fontManager = NULL;
|
|
|
|
cImageCache *imgCache = NULL;
|
2014-09-27 09:25:14 +02:00
|
|
|
cTheme Theme;
|
2014-10-18 16:50:33 +02:00
|
|
|
cRecordingsFolderInfo recFolderInfo(Recordings);
|
2014-09-27 09:25:14 +02:00
|
|
|
#else
|
|
|
|
extern bool firstDisplay;
|
|
|
|
extern cDesignerConfig config;
|
|
|
|
extern cFontManager *fontManager;
|
|
|
|
extern cImageCache *imgCache;
|
|
|
|
extern cTheme Theme;
|
2014-10-18 16:50:33 +02:00
|
|
|
extern cRecordingsFolderInfo recFolderInfo;
|
2014-09-27 09:25:14 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //__DESIGNER_CONFIG_H
|