diff options
author | louis <louis.braun@gmx.de> | 2013-06-01 11:18:43 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-06-01 11:18:43 +0200 |
commit | da2893031856b0c051224650d689d76601523f83 (patch) | |
tree | 78a5f0edcf6a7ca1dcb9b79851e64717eada6416 | |
parent | 10c1a1d8cec7772a2e8975bc8a7c580ecdd19955 (diff) | |
download | vdr-plugin-tvguide-da2893031856b0c051224650d689d76601523f83.tar.gz vdr-plugin-tvguide-da2893031856b0c051224650d689d76601523f83.tar.bz2 |
Setup option to hide schedules time display in horizontal EPG grids
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | config.c | 2 | ||||
-rw-r--r-- | config.h | 1 | ||||
-rw-r--r-- | epggrid.c | 9 | ||||
-rwxr-xr-x | po/de_DE.po | 5 | ||||
-rw-r--r-- | setup.c | 2 |
6 files changed, 17 insertions, 3 deletions
@@ -41,3 +41,4 @@ VDR Plugin 'tvguide' Revision History - Eliminated setup option "Number of channels to jump", directly jump number of channel columns / rows with green / yellow - Added setup option to switch functionality of keys "Blue" and "OK" +- Setup option to hide schedules time display in horizontal EPG grids @@ -20,6 +20,7 @@ cTvguideConfig::cTvguideConfig() { osdWidth = 0;
osdHeight = 0;
displayMode = eHorizontal;
+ showTimeInGrid = 1;
colWidth = 0;
rowHeight = 0;
channelCols = 5;
@@ -238,6 +239,7 @@ bool cTvguideConfig::SetupParse(const char *Name, const char *Value) { else if (strcmp(Name, "showMainMenuEntry") == 0) showMainMenuEntry = atoi(Value);
else if (strcmp(Name, "themeIndex") == 0) themeIndex = atoi(Value);
else if (strcmp(Name, "displayMode") == 0) displayMode = atoi(Value);
+ else if (strcmp(Name, "showTimeInGrid") == 0) showTimeInGrid = atoi(Value);
else if (strcmp(Name, "displayStatusHeader") == 0) displayStatusHeader = atoi(Value);
else if (strcmp(Name, "displayChannelGroups") == 0) displayChannelGroups = atoi(Value);
else if (strcmp(Name, "statusHeaderPercent") == 0) statusHeaderPercent = atoi(Value);
@@ -15,6 +15,7 @@ class cTvguideConfig { int osdWidth;
int osdHeight;
int displayMode;
+ int showTimeInGrid;
int colWidth;
int rowHeight;
int channelCols;
@@ -97,9 +97,14 @@ void cEpgGrid::drawText() { pixmap->DrawText(cPoint(borderWidth - 2, titleY), "...", colorText, colorTextBack, tvguideConfig.FontGridHorizontal);
return;
}
- pixmap->DrawText(cPoint(borderWidth, borderWidth), *timeString, colorText, colorTextBack, tvguideConfig.FontGridHorizontalSmall);
cString strTitle = CutText(event->Title(), viewportHeight, tvguideConfig.FontGridHorizontal).c_str();
- int titleY = tvguideConfig.FontGridHorizontalSmall->Height() + (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontalSmall->Height() - tvguideConfig.FontGridHorizontal->Height())/2;
+ int titleY = 0;
+ if (tvguideConfig.showTimeInGrid) {
+ pixmap->DrawText(cPoint(borderWidth, borderWidth), *timeString, colorText, colorTextBack, tvguideConfig.FontGridHorizontalSmall);
+ titleY = tvguideConfig.FontGridHorizontalSmall->Height() + (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontalSmall->Height() - tvguideConfig.FontGridHorizontal->Height())/2;
+ } else {
+ titleY = (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontal->Height())/2;
+ }
pixmap->DrawText(cPoint(borderWidth, titleY), *strTitle, colorText, colorTextBack, tvguideConfig.FontGridHorizontal);
}
}
diff --git a/po/de_DE.po b/po/de_DE.po index f59fad3..3b74dd3 100755 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-tvguide 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-06-01 11:02+0200\n" +"POT-Creation-Date: 2013-06-01 11:12+0200\n" "PO-Revision-Date: 2012-08-25 17:49+0200\n" "Last-Translator: Horst\n" "Language-Team: \n" @@ -123,6 +123,9 @@ msgstr "Breite des Kanalheaders (% der OSD Breite)" msgid "Height of Timeline (Perc. of osd height)" msgstr "Höhe der Zeitleiste (% der OSD Höhe)" +msgid "Display time in EPG Grids" +msgstr "Zeit in EPG Grids anzeigen" + msgid "Height of Footer" msgstr "Höhe des Footers" @@ -48,6 +48,7 @@ void cTvguideSetup::Store(void) { SetupStore("themeIndex", tvguideConfig.themeIndex); SetupStore("showMainMenuEntry", tvguideConfig.showMainMenuEntry); SetupStore("displayMode", tvguideConfig.displayMode); + SetupStore("showTimeInGrid", tvguideConfig.showTimeInGrid); SetupStore("displayStatusHeader", tvguideConfig.displayStatusHeader); SetupStore("displayChannelGroups", tvguideConfig.displayChannelGroups); SetupStore("statusHeaderPercent", tvguideConfig.statusHeaderPercent); @@ -206,6 +207,7 @@ void cMenuSetupScreenLayout::Set(void) { Add(new cMenuEditIntItem(*cString::sprintf("%s%s", indent, tr("Width of Channel Header (Perc. of osd width)")), &tmpTvguideConfig->channelHeaderWidthPercent, 5, 30)); Add(new cMenuEditIntItem(*cString::sprintf("%s%s", indent, tr("Height of Timeline (Perc. of osd height)")), &tmpTvguideConfig->timeLineHeightPercent, 5, 30)); Add(new cMenuEditIntItem(*cString::sprintf("%s%s", indent, tr("Number of Channels to display")), &tmpTvguideConfig->channelRows, 3, 12)); + Add(new cMenuEditBoolItem(*cString::sprintf("%s%s", indent, tr("Display time in EPG Grids")), &tmpTvguideConfig->showTimeInGrid)); } Add(new cMenuEditIntItem(tr("Height of Footer"), &tmpTvguideConfig->footerHeight, 50, 300)); |