From ebf0862dfa77c9427346a87e7f08fb7eb812a7ef Mon Sep 17 00:00:00 2001 From: louis Date: Mon, 16 Sep 2013 10:14:45 +0200 Subject: added setup option to display poster or fanart in channel display --- HISTORY | 1 + config.c | 2 ++ config.h | 1 + displaychannel.c | 3 ++- po/ca_ES.po | 5 ++++- po/de_DE.po | 7 +++++-- po/it_IT.po | 5 ++++- po/sk_SK.po | 5 ++++- setup.c | 2 ++ 9 files changed, 25 insertions(+), 6 deletions(-) diff --git a/HISTORY b/HISTORY index 664678f..6795b26 100644 --- a/HISTORY +++ b/HISTORY @@ -273,3 +273,4 @@ Version 0.1.4 fullscreen mode is configured in plugin setup, the right area next to the list of events /recordings is completely used to display immeditately the detailed information of the selected event / recording. +- added some rounded corners (if activated in setup) diff --git a/config.c b/config.c index efa8579..9064b38 100644 --- a/config.c +++ b/config.c @@ -35,6 +35,7 @@ cNopacityConfig::cNopacityConfig() { resolutionIconSize = 100; statusIconSize = 64; progressCurrentSchedule = 0; + displayPoster = 1; //Display Replay replayHeight = 25; replayBorderVertical = 15; @@ -326,6 +327,7 @@ bool cNopacityConfig::SetupParse(const char *Name, const char *Value) { else if (strcmp(Name, "resolutionIconSize") == 0) resolutionIconSize = atoi(Value); else if (strcmp(Name, "statusIconSize") == 0) statusIconSize = atoi(Value); else if (strcmp(Name, "progressCurrentSchedule") == 0) progressCurrentSchedule = atoi(Value); + else if (strcmp(Name, "displayPoster") == 0) displayPoster = atoi(Value); else if (strcmp(Name, "replayHeight") == 0) replayHeight = atoi(Value); else if (strcmp(Name, "replayBorderVertical") == 0) replayBorderVertical = atoi(Value); else if (strcmp(Name, "replayBorderBottom") == 0) replayBorderBottom = atoi(Value); diff --git a/config.h b/config.h index c51bd58..2536aae 100644 --- a/config.h +++ b/config.h @@ -60,6 +60,7 @@ class cNopacityConfig { int resolutionIconSize; int statusIconSize; int progressCurrentSchedule; + int displayPoster; //DisplayReplay int replayHeight; int replayBorderVertical; diff --git a/displaychannel.c b/displaychannel.c index 345e6d9..ad4aca3 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -691,7 +691,8 @@ void cNopacityDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Fol int remaining = (int)(e->EndTime() - time(NULL))/60; strSeen = cString::sprintf("-%d/%dmin", remaining, e->Duration()/60); } - DrawPoster(e); + if (config.displayPoster) + DrawPoster(e); } else { strSeen = cString::sprintf("%dmin", e->Duration()/60); } diff --git a/po/ca_ES.po b/po/ca_ES.po index bebf53a..acf8c49 100644 --- a/po/ca_ES.po +++ b/po/ca_ES.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-09-14 17:27+0200\n" +"POT-Creation-Date: 2013-09-16 10:09+0200\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Gabychan \n" "Language-Team: \n" @@ -440,6 +440,9 @@ msgstr "Mostra qualitat i intensitat del senyal" msgid "Display Channel Source information" msgstr "Mostra informació del canal" +msgid "Display Poster or Fanart from TVScraper" +msgstr "" + msgid "Display previous and next Channel Group" msgstr "Mostra grups de canals anterior i posterior" diff --git a/po/de_DE.po b/po/de_DE.po index a1e1838..79d96c6 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-09-14 17:27+0200\n" +"POT-Creation-Date: 2013-09-16 10:09+0200\n" "PO-Revision-Date: 2012-11-11 17:49+0200\n" "Last-Translator: louis\n" "Language-Team: \n" @@ -354,7 +354,7 @@ msgid "Adjust Font Size - EPG Info Window" msgstr "Schriftgröße anpassen - EPG Infofenster" msgid "Adjust Font Size - EPG Info Window Header" -msgstr "" +msgstr "Schriftgröße anpassen - EPG Infofenster Header" msgid "Transponder Information" msgstr "Transponder Information" @@ -437,6 +437,9 @@ msgstr "Signalstärke- und Qualität anzeigen" msgid "Display Channel Source information" msgstr "Quellinformationen für Kanal anzeigen" +msgid "Display Poster or Fanart from TVScraper" +msgstr "Poster bzw. Fanart von TVScraper anzeigen" + msgid "Display previous and next Channel Group" msgstr "Vorherige und nächste Kanalgruppe anzeigen" diff --git a/po/it_IT.po b/po/it_IT.po index 41718de..7f4d4ea 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-09-14 17:27+0200\n" +"POT-Creation-Date: 2013-09-16 10:09+0200\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Diego Pierotto \n" "Language-Team: \n" @@ -440,6 +440,9 @@ msgstr "Mostra qualità e intensità segnale" msgid "Display Channel Source information" msgstr "" +msgid "Display Poster or Fanart from TVScraper" +msgstr "" + msgid "Display previous and next Channel Group" msgstr "" diff --git a/po/sk_SK.po b/po/sk_SK.po index f2eef89..198157e 100644 --- a/po/sk_SK.po +++ b/po/sk_SK.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skinnopacity 0.0.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-09-14 17:27+0200\n" +"POT-Creation-Date: 2013-09-16 10:09+0200\n" "PO-Revision-Date: 2013-03-12 15:59+0100\n" "Last-Translator: Milan Hrala \n" "Language-Team: \n" @@ -440,6 +440,9 @@ msgstr "Zobrazi msgid "Display Channel Source information" msgstr "" +msgid "Display Poster or Fanart from TVScraper" +msgstr "" + msgid "Display previous and next Channel Group" msgstr "" diff --git a/setup.c b/setup.c index bc758fb..5a85086 100644 --- a/setup.c +++ b/setup.c @@ -95,6 +95,7 @@ void cNopacitySetup::Store(void) { SetupStore("resolutionIconSize", config.resolutionIconSize); SetupStore("statusIconSize", config.statusIconSize); SetupStore("progressCurrentSchedule", config.progressCurrentSchedule); + SetupStore("displayPoster", config.displayPoster); SetupStore("replayHeight", config.replayHeight); SetupStore("replayBorderVertical", config.replayBorderVertical); SetupStore("replayBorderBottom", config.replayBorderBottom); @@ -516,6 +517,7 @@ void cNopacitySetupChannelDisplay::Set(void) { Add(new cMenuEditStraItem(tr("Kind of time display for current schedule"), &tmpNopacityConfig->progressCurrentSchedule, 2, progressStyleCurrentSchedule)); Add(new cMenuEditBoolItem(tr("Display Signal Strength & Quality"), &tmpNopacityConfig->displaySignalStrength)); Add(new cMenuEditBoolItem(tr("Display Channel Source information"), &tmpNopacityConfig->displaySourceInfo)); + Add(new cMenuEditBoolItem(tr("Display Poster or Fanart from TVScraper"), &tmpNopacityConfig->displayPoster)); Add(new cMenuEditBoolItem(tr("Display previous and next Channel Group"), &tmpNopacityConfig->displayPrevNextChannelGroup)); Add(new cMenuEditIntItem(tr("Screen Resolution Icon Size"), &tmpNopacityConfig->resolutionIconSize, 30, 200)); Add(new cMenuEditIntItem(tr("Status Icons Size"), &tmpNopacityConfig->statusIconSize, 30, 150)); -- cgit v1.2.3