vdr-plugin-tvguide/config.h

215 lines
7.2 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"
enum {
e12Hours,
e24Hours
};
enum {
eVertical,
eHorizontal
};
enum {
eNumJump,
eGroupJump
};
2013-01-17 13:16:44 +01:00
class cTvguideConfig {
private:
void SetGeometry(int width, int height);
void SetFonts(void);
2013-05-26 11:38:05 +02:00
public:
cTvguideConfig();
~cTvguideConfig();
void SetLogoPath(cString path);
void SetImagesPath(cString path);
2013-07-09 00:17:42 +02:00
void SetIconsPath(cString path);
void SetBlending(void);
int showMainMenuEntry;
int replaceOriginalSchedule;
2013-05-24 16:23:23 +02:00
int osdWidth;
2013-05-26 11:38:05 +02:00
int osdHeight;
2013-05-24 16:23:23 +02:00
int displayMode;
int showTimeInGrid;
2013-05-26 11:38:05 +02:00
int colWidth;
2013-05-24 16:23:23 +02:00
int rowHeight;
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 minutePixel;
int displayStatusHeader;
2013-05-31 13:58:22 +02:00
int displayChannelGroups;
int statusHeaderPercent;
int statusHeaderHeight;
2013-05-31 13:58:22 +02:00
int channelGroupsPercent;
int channelGroupsWidth;
int channelGroupsHeight;
int scaleVideo;
2013-05-24 16:23:23 +02:00
int decorateVideo;
2013-05-26 11:38:05 +02:00
int timeLineWidthPercent;
int timeLineHeightPercent;
int timeLineWidth;
int timeLineHeight;
2013-05-24 16:23:23 +02:00
int displayChannelName;
2013-05-26 11:38:05 +02:00
int channelHeaderWidthPercent;
int channelHeaderHeightPercent;
int channelHeaderWidth;
int channelHeaderHeight;
int footerHeight;
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 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;
int recMenuAskFolder;
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;
2013-05-26 11:38:05 +02:00
const cFont *FontChannelHeader;
2013-05-24 16:23:23 +02:00
const cFont *FontChannelHeaderHorizontal;
2013-05-31 13:58:22 +02:00
const cFont *FontChannelGroups;
const cFont *FontChannelGroupsHorizontal;
2013-05-26 11:38:05 +02:00
const cFont *FontStatusHeader;
const cFont *FontStatusHeaderLarge;
const cFont *FontGrid;
const cFont *FontGridSmall;
2013-05-24 16:23:23 +02:00
const cFont *FontGridHorizontal;
2013-05-26 11:38:05 +02:00
const cFont *FontGridHorizontalSmall;
const cFont *FontTimeLineWeekday;
const cFont *FontTimeLineDate;
const cFont *FontTimeLineDateHorizontal;
const cFont *FontTimeLineTime;
2013-05-24 16:23:23 +02:00
const cFont *FontTimeLineTimeHorizontal;
2013-05-26 11:38:05 +02:00
const cFont *FontButton;
const cFont *FontDetailView;
2013-08-25 13:57:10 +02:00
const cFont *FontDetailViewSmall;
2013-05-26 11:38:05 +02:00
const cFont *FontDetailHeader;
const cFont *FontMessageBox;
const cFont *FontMessageBoxLarge;
2013-07-09 00:17:42 +02:00
const cFont *FontRecMenuItem;
const cFont *FontRecMenuItemSmall;
2013-05-26 11:38:05 +02:00
int timeFormat;
int themeIndex;
int useBlending;
int roundedCorners;
2013-05-26 17:44:04 +02:00
int displayRerunsDetailEPGView;
int numReruns;
int useSubtitleRerun;
2013-05-26 11:38:05 +02:00
void setDynamicValues(int width, int height);
bool SetupParse(const char *Name, const char *Value);
void loadTheme();
2013-01-17 13:16:44 +01:00
};
2013-12-07 15:51:50 +01:00
#ifdef DEFINE_CONFIG
cTvguideConfig tvguideConfig;
cOsdManager osdManager;
cTheme theme;
cPlugin* pRemoteTimers = NULL;
#else
extern cTvguideConfig tvguideConfig;
extern cOsdManager osdManager;
extern cTheme theme;
extern cPlugin* pRemoteTimers;
#endif
// --- Theme -------------------------------------------------------------
//BLENDING SETUP
#define CLR_BLENDING_NOPACITY 0xFFFFFFFF
#define CLR_BLENDING_DEFAULT 0xAAAAAAAA
#define CLR_BLENDING_OFF 0x00000000
THEME_CLR(theme, clrDoBlending, CLR_BLENDING_DEFAULT);
THEME_CLR(theme, clrBackgroundOSD, clrBlack);
THEME_CLR(theme, clrBackground, clrBlack);
THEME_CLR(theme, clrGrid1, 0xFF404749);
THEME_CLR(theme, clrGrid1Blending, 0xFF000000);
THEME_CLR(theme, clrGrid2, 0xFF20293F);
THEME_CLR(theme, clrGrid2Blending, 0xFF000000);
THEME_CLR(theme, clrHighlight, 0xFFFF4D00);
THEME_CLR(theme, clrHighlightBlending, 0xFF000000);
THEME_CLR(theme, clrFont, clrWhite);
THEME_CLR(theme, clrFontActive, clrWhite);
THEME_CLR(theme, clrFontHeader, clrWhite);
THEME_CLR(theme, clrFontButtons, clrWhite);
THEME_CLR(theme, clrStatusHeader, clrBlack);
THEME_CLR(theme, clrStatusHeaderBlending, clrBlack);
THEME_CLR(theme, clrHeader, clrBlack);
THEME_CLR(theme, clrHeaderBlending, 0xFFE0E0E0);
THEME_CLR(theme, clrBorder, clrWhite);
THEME_CLR(theme, clrTimeline1, clrWhite);
THEME_CLR(theme, clrTimeline1Blending, 0xFF828282);
THEME_CLR(theme, clrTimeline2, clrBlack);
THEME_CLR(theme, clrTimeline2Blending, 0xFF3F3F3F);
THEME_CLR(theme, clrButtonRed, 0x99BB0000);
THEME_CLR(theme, clrButtonRedBorder, 0xFFBB0000);
THEME_CLR(theme, clrButtonGreen, 0x9900BB00);
THEME_CLR(theme, clrButtonGreenBorder, 0xFF00BB00);
THEME_CLR(theme, clrButtonYellow, 0x99BBBB00);
THEME_CLR(theme, clrButtonYellowBorder, 0xFFBBBB00);
THEME_CLR(theme, clrButtonBlue, 0x990000BB);
THEME_CLR(theme, clrButtonBlueBorder, 0xFF0000BB);
THEME_CLR(theme, clrButtonBlend, 0xDD000000);
THEME_CLR(theme, clrRecMenuBackground, 0xB0000000);
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);
THEME_CLR(theme, clrRecMenuTextActiveBack, 0xFF404749);
THEME_CLR(theme, clrRecMenuKeyboardBack, 0xFF000000);
THEME_CLR(theme, clrRecMenuKeyboardBorder, clrWhite);
THEME_CLR(theme, clrRecMenuKeyboardHigh, 0x55FFFFFF);
THEME_CLR(theme, clrButtonRedKeyboard, 0xFFBB0000);
THEME_CLR(theme, clrButtonGreenKeyboard, 0xFF00BB00);
THEME_CLR(theme, clrButtonYellowKeyboard, 0xFFBBBB00);
2013-01-17 13:16:44 +01:00
#endif //__TVGUIDE_CONFIG_H