vdr-plugin-tvguide/config.h

247 lines
7.9 KiB
C
Raw Normal View History

2013-01-17 13:16:44 +01:00
#ifndef __TVGUIDE_CONFIG_H
#define __TVGUIDE_CONFIG_H
2013-12-07 15:51:50 +01:00
#include <vdr/themes.h>
#include <vdr/plugin.h>
#include "osdmanager.h"
2013-12-21 11:25:03 +01:00
#include "geometrymanager.h"
#include "fontmanager.h"
#include "imagecache.h"
2013-12-07 15:51:50 +01:00
enum {
e12Hours,
e24Hours
};
enum {
eVertical,
eHorizontal
};
enum {
eNumJump,
eGroupJump
};
2013-12-21 11:25:03 +01:00
enum {
eStyleGraphical,
eStyleBlendingMagick,
eStyleBlendingDefault,
eStyleFlat
};
2014-01-15 17:30:06 +01:00
enum eBlueKeyMode {
eBlueKeySwitch = 0,
eBlueKeyEPG,
eBlueKeyFavorites
};
2014-01-15 17:30:06 +01:00
2013-01-17 13:16:44 +01:00
class cTvguideConfig {
private:
cString checkSlashAtEnd(std::string path);
2013-05-26 11:38:05 +02:00
public:
cTvguideConfig();
~cTvguideConfig();
2013-12-21 11:25:03 +01:00
int debugImageLoading;
int showMainMenuEntry;
int replaceOriginalSchedule;
2013-05-24 16:23:23 +02:00
int displayMode;
int showTimeInGrid;
2013-05-26 11:38:05 +02:00
int channelCols;
int channelRows;
2013-05-24 16:23:23 +02:00
int numGrids;
2013-05-26 11:38:05 +02:00
int displayTime;
int displayStatusHeader;
2013-05-31 13:58:22 +02:00
int displayChannelGroups;
2014-01-15 18:25:37 +01:00
int displayTimeBase;
int headerHeightPercent;
2013-05-31 13:58:22 +02:00
int channelGroupsPercent;
2013-12-21 11:25:03 +01:00
int epgViewBorder;
int scaleVideo;
2013-05-24 16:23:23 +02:00
int decorateVideo;
2013-05-26 11:38:05 +02:00
int timeLineWidthPercent;
int timeLineHeightPercent;
2013-05-24 16:23:23 +02:00
int displayChannelName;
2013-05-26 11:38:05 +02:00
int channelHeaderWidthPercent;
int channelHeaderHeightPercent;
2013-12-21 11:25:03 +01:00
int footerHeightPercent;
2013-05-26 11:38:05 +02:00
int stepMinutes;
int bigStepHours;
int hugeStepHours;
2013-05-31 13:58:22 +02:00
int channelJumpMode;
2013-05-26 11:38:05 +02:00
int jumpChannels;
int blueKeyMode;
2013-07-20 13:46:26 +02:00
int closeOnSwitch;
int numkeyMode;
2013-07-20 13:46:26 +02:00
int useRemoteTimers;
2013-05-31 13:58:22 +02:00
int hideLastGroup;
2013-05-26 11:38:05 +02:00
int hideChannelLogos;
int logoWidthRatio;
int logoHeightRatio;
cString logoPath;
int logoExtension;
int hideEpgImages;
int epgImageWidth;
int epgImageHeight;
int numAdditionalEPGPictures;
2013-07-20 13:46:26 +02:00
int epgImageWidthLarge;
int epgImageHeightLarge;
2013-05-26 11:38:05 +02:00
cString epgImagePath;
2013-07-09 00:17:42 +02:00
cString iconPath;
cString logoPathDefault;
cString iconPathDefault;
cString epgImagePathDefault;
int recMenuAskFolder;
int favWhatsOnNow;
int favWhatsOnNext;
int favUseTime1;
int favUseTime2;
int favUseTime3;
int favUseTime4;
int favTime1;
int favTime2;
int favTime3;
int favTime4;
std::string descUser1;
std::string descUser2;
std::string descUser3;
std::string descUser4;
int favLimitChannels;
int favStartChannel;
int favStopChannel;
2013-05-26 11:38:05 +02:00
int fontIndex;
const char *fontNameDefault;
2013-05-24 16:23:23 +02:00
int FontButtonDelta;
int FontDetailViewDelta;
2013-08-25 13:57:10 +02:00
int FontDetailViewSmallDelta;
2013-05-24 16:23:23 +02:00
int FontDetailHeaderDelta;
int FontMessageBoxDelta;
int FontMessageBoxLargeDelta;
int FontStatusHeaderDelta;
int FontStatusHeaderLargeDelta;
int FontChannelHeaderDelta;
2013-05-31 13:58:22 +02:00
int FontChannelGroupsDelta;
2013-05-24 16:23:23 +02:00
int FontGridDelta;
int FontGridSmallDelta;
int FontTimeLineWeekdayDelta;
int FontTimeLineDateDelta;
int FontTimeLineTimeDelta;
int FontChannelHeaderHorizontalDelta;
2013-05-31 13:58:22 +02:00
int FontChannelGroupsHorizontalDelta;
2013-05-24 16:23:23 +02:00
int FontGridHorizontalDelta;
int FontGridHorizontalSmallDelta;
int FontTimeLineDateHorizontalDelta;
int FontTimeLineTimeHorizontalDelta;
2013-07-09 00:17:42 +02:00
int FontRecMenuItemDelta;
int FontRecMenuItemSmallDelta;
int FontRecMenuItemLargeDelta;
2013-05-26 11:38:05 +02:00
int timeFormat;
2013-12-21 11:25:03 +01:00
int useNopacityTheme;
2013-05-26 11:38:05 +02:00
int themeIndex;
2013-12-21 11:25:03 +01:00
int themeIndexCurrent;
cString themeName;
std::string nOpacityTheme;
int style;
2013-05-26 11:38:05 +02:00
int roundedCorners;
2013-05-26 17:44:04 +02:00
int displayRerunsDetailEPGView;
int numReruns;
int useSubtitleRerun;
2013-12-21 11:25:03 +01:00
int numLogosInitial;
int numLogosMax;
int limitLogoCache;
bool logoPathSet;
bool imagesPathSet;
bool iconsPathSet;
bool LoadTheme();
void SetStyle(void);
void setDynamicValues(void);
void SetLogoPath(cString path);
void SetImagesPath(cString path);
void SetIconsPath(cString path);
void SetDefaultPathes(void);
2013-05-26 11:38:05 +02:00
bool SetupParse(const char *Name, const char *Value);
2013-01-17 13:16:44 +01:00
};
2013-12-07 15:51:50 +01:00
#ifdef DEFINE_CONFIG
cTvguideConfig tvguideConfig;
cOsdManager osdManager;
2013-12-21 11:25:03 +01:00
cGeometryManager geoManager;
cFontManager fontManager;
cImageCache imgCache;
2013-12-07 15:51:50 +01:00
cTheme theme;
cPlugin* pRemoteTimers = NULL;
#else
extern cTvguideConfig tvguideConfig;
extern cOsdManager osdManager;
2013-12-21 11:25:03 +01:00
extern cGeometryManager geoManager;
extern cFontManager fontManager;
extern cImageCache imgCache;
2013-12-07 15:51:50 +01:00
extern cTheme theme;
extern cPlugin* pRemoteTimers;
#endif
// --- Theme -------------------------------------------------------------
2013-12-21 11:25:03 +01:00
//Style SETUP
#define CLR_STYLE_BLENDING_MAGICK 0xFFFFFFFF
#define CLR_STYLE_BLENDING_DEFAULT 0xAAAAAAAA
#define CLR_STYLE_GRAPHICAL 0x66666666
#define CLR_STYLE_FLAT 0x00000000
2013-12-07 15:51:50 +01:00
2013-12-21 11:25:03 +01:00
THEME_CLR(theme, clrStyle, CLR_STYLE_BLENDING_DEFAULT);
THEME_CLR(theme, clrBackgroundOSD, 0xB012273f);
THEME_CLR(theme, clrBackground, 0xFF12273f);
2013-12-21 11:25:03 +01:00
THEME_CLR(theme, clrGrid1, 0x00000000);
THEME_CLR(theme, clrGrid1Blending, 0x00000000);
THEME_CLR(theme, clrGrid2, 0x00000000);
THEME_CLR(theme, clrGrid2Blending, 0x00000000);
THEME_CLR(theme, clrHighlight, 0xAA3A3A55);
THEME_CLR(theme, clrHighlightBlending, 0xDD000000);
THEME_CLR(theme, clrGridFontBack, clrTransparent);
THEME_CLR(theme, clrGridActiveFontBack, 0xFFAFD533);
2013-12-07 15:51:50 +01:00
THEME_CLR(theme, clrFont, clrWhite);
2013-12-21 11:25:03 +01:00
THEME_CLR(theme, clrFontActive, 0xFF363636);
THEME_CLR(theme, clrFontHeader, 0xFF363636);
2013-12-07 15:51:50 +01:00
THEME_CLR(theme, clrFontButtons, clrWhite);
2013-12-21 11:25:03 +01:00
THEME_CLR(theme, clrStatusHeader, 0x00000000);
THEME_CLR(theme, clrStatusHeaderBlending, 0x00000000);
THEME_CLR(theme, clrHeader, 0x00000000);
THEME_CLR(theme, clrHeaderBlending, 0x00000000);
THEME_CLR(theme, clrBorder, 0x00000000);
2013-12-07 15:51:50 +01:00
THEME_CLR(theme, clrTimeline1, clrWhite);
THEME_CLR(theme, clrTimeline1Blending, 0xFF828282);
THEME_CLR(theme, clrTimeline2, clrBlack);
THEME_CLR(theme, clrTimeline2Blending, 0xFF3F3F3F);
2014-01-15 18:25:37 +01:00
THEME_CLR(theme, clrTimeBase, 0xA0FF0000);
2013-12-21 11:25:03 +01:00
THEME_CLR(theme, clrButtonRed, 0x00000000);
THEME_CLR(theme, clrButtonRedBorder, 0x00000000);
THEME_CLR(theme, clrButtonGreen, 0x00000000);
THEME_CLR(theme, clrButtonGreenBorder, 0x00000000);
THEME_CLR(theme, clrButtonYellow, 0x00000000);
THEME_CLR(theme, clrButtonYellowBorder, 0x00000000);
THEME_CLR(theme, clrButtonBlue, 0x00000000);
THEME_CLR(theme, clrButtonBlueBorder, 0x00000000);
2013-12-07 15:51:50 +01:00
THEME_CLR(theme, clrButtonBlend, 0xDD000000);
2013-12-21 11:25:03 +01:00
THEME_CLR(theme, clrRecMenuBackground, 0xAA000000);
2013-12-07 15:51:50 +01:00
THEME_CLR(theme, clrRecMenuTimerConflictBackground, 0xFFCCCCCC);
THEME_CLR(theme, clrRecMenuTimerConflictBar, 0xFF222222);
THEME_CLR(theme, clrRecMenuTimerConflictOverlap, 0xAAFF0000);
THEME_CLR(theme, clrRecMenuDayActive, 0xFF00FF00);
THEME_CLR(theme, clrRecMenuDayInactive, 0xFFFF0000);
THEME_CLR(theme, clrRecMenuDayHighlight, 0x44FFFFFF);
THEME_CLR(theme, clrRecMenuTextBack, 0xFF000000);
2014-01-10 23:07:52 +01:00
THEME_CLR(theme, clrRecMenuTextActiveBack, 0xFF939376);
2013-12-07 15:51:50 +01:00
THEME_CLR(theme, clrRecMenuKeyboardBack, 0xFF000000);
THEME_CLR(theme, clrRecMenuKeyboardBorder, clrWhite);
2013-12-21 11:25:03 +01:00
THEME_CLR(theme, clrRecMenuKeyboardHigh, 0x40BB0000);
2013-12-07 15:51:50 +01:00
THEME_CLR(theme, clrButtonRedKeyboard, 0xFFBB0000);
THEME_CLR(theme, clrButtonGreenKeyboard, 0xFF00BB00);
THEME_CLR(theme, clrButtonYellowKeyboard, 0xFFBBBB00);
THEME_CLR(theme, clrRecMenuTimelineTimer, 0xB012273f);
THEME_CLR(theme, clrRecMenuTimelineBack, 0xFF828282);
THEME_CLR(theme, clrRecMenuTimelineActive, 0xFF3F3F3F);
THEME_CLR(theme, clrRecMenuTimelineConflict, 0x30FF0000);
THEME_CLR(theme, clrRecMenuTimelineConflictOverlap, 0x90FF0000);
2013-01-17 13:16:44 +01:00
#endif //__TVGUIDE_CONFIG_H