diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | config.c | 3 | ||||
-rw-r--r-- | config.h | 2 | ||||
-rw-r--r-- | displaymenu.c | 6 | ||||
-rw-r--r-- | po/de_DE.po | 5 | ||||
-rw-r--r-- | po/it_IT.po | 5 | ||||
-rw-r--r-- | setup.c | 5 |
7 files changed, 25 insertions, 2 deletions
@@ -16,6 +16,7 @@ VDR Plugin 'skinflatplus' Revision History - [add] displaychannel - dvbapi info you need oscam min rev 10653 and dvbapi min commit 85da7b2 - [add] add italian translation (thanks to fiveten_59) +- [add] option MenuItemRecordingSeenTreshold to set the treshold when a recording will be marked as seen 2015-02-14: Version 0.5.1 - [fix] topbar number recordings @@ -125,6 +125,8 @@ cFlatConfig::cFlatConfig(void) { MainMenuWidgetWeatherDays = 5; MainMenuWidgetWeatherType = 0; + MenuItemRecordingSeenTreshold = 0.98 / 100.0; + ChannelWeatherShow = 1; PlaybackWeatherShow = 1; WeatherFontSize = 0.05; @@ -371,6 +373,7 @@ bool cFlatConfig::SetupParse(const char *Name, const char *Value) { else if (strcmp(Name, "MainMenuWidgetActiveTimerShowRemoteRecording") == 0) MainMenuWidgetActiveTimerShowRemoteRecording = atoi(Value); else if (strcmp(Name, "MainMenuWidgetActiveTimerShowRemoteRefreshTime") == 0) MainMenuWidgetActiveTimerShowRemoteRefreshTime = atoi(Value); else if (strcmp(Name, "ChannelDvbapiInfoShow") == 0) ChannelDvbapiInfoShow = atoi(Value); + else if (strcmp(Name, "MenuItemRecordingSeenTreshold") == 0) MenuItemRecordingSeenTreshold = atod(Value); else return false; return true; @@ -241,6 +241,8 @@ class cFlatConfig int MenuTimerShowCount; int MenuChannelShowCount; + double MenuItemRecordingSeenTreshold; + // 0 = vertikal // 1 = horizontal int MessageColorPosition; diff --git a/displaymenu.c b/displaymenu.c index 2368d145..085ae1b0 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -2038,6 +2038,9 @@ bool cFlatDisplayMenu::SetItemRecording(const cRecording *Recording, int Index, double FrameSeen = (double)FrameResume / (double)FrameTotal; cString SeenIcon; + double seenTreshold = Config.MenuItemRecordingSeenTreshold * 100.0; + //dsyslog("Config.MenuItemRecordingSeenTreshold: %.2f\n", seenTreshold ); + if( FrameSeen < 0.1 ) SeenIcon = "recording_seen_0"; else if( FrameSeen < 0.2 ) @@ -2061,6 +2064,9 @@ bool cFlatDisplayMenu::SetItemRecording(const cRecording *Recording, int Index, else SeenIcon = "recording_seen_10"; + if( FrameSeen >= seenTreshold ) + SeenIcon = "recording_seen_10"; + cImage *imgSeen = NULL; if( Current ) { cString SeenIconCur = cString::sprintf("%s_cur", *SeenIcon); diff --git a/po/de_DE.po b/po/de_DE.po index 367e139e..ffb6603e 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skinflat 0.5.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2015-12-12 15:10+0100\n" +"POT-Creation-Date: 2016-01-22 17:13+0100\n" "PO-Revision-Date: 2015-02-09 20:09+0100\n" "Last-Translator: Martin Schirrmacher\n" "Language-Team: Martin Schirrmacher\n" @@ -627,6 +627,9 @@ msgstr "Menü: Zeichne Hintergrund über gesamte Höhe" msgid "Recording menu show recording count in title" msgstr "Aufnahmen: Anzahl der Aufnahmen in Titelleiste" +msgid "Recording menu seen treshold" +msgstr "" + msgid "Timer menu show timer count in title" msgstr "Timer: Anzahl der Timer in Titelleiste" diff --git a/po/it_IT.po b/po/it_IT.po index b1f88289..adab15a6 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skinflat 0.5.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2015-12-12 15:10+0100\n" +"POT-Creation-Date: 2016-01-22 17:13+0100\n" "PO-Revision-Date: 2015-02-09 20:09+0100\n" "Last-Translator: fiveten_59\n" "Language-Team: Italian\n" @@ -627,6 +627,9 @@ msgstr "Menü: traccia il background per l'intera altezza" msgid "Recording menu show recording count in title" msgstr "Menù registrazioni mostra la lunghezza nel titolo" +msgid "Recording menu seen treshold" +msgstr "" + msgid "Timer menu show timer count in title" msgstr "Timer: calcola la lunghezza nel titolo" @@ -323,6 +323,7 @@ void cFlatSetup::Store(void) { SetupStore("MainMenuWidgetActiveTimerShowRemoteRecording", Config.MainMenuWidgetActiveTimerShowRemoteRecording); SetupStore("MainMenuWidgetActiveTimerShowRemoteRefreshTime", Config.MainMenuWidgetActiveTimerShowRemoteRefreshTime); SetupStore("ChannelDvbapiInfoShow", Config.ChannelDvbapiInfoShow); + SetupStore("MenuItemRecordingSeenTreshold", dtoa(Config.MenuItemRecordingSeenTreshold)); Config.Init(); } @@ -511,6 +512,7 @@ bool cFlatSetupGeneral::SetupParse(const char *Name, const char *Value) { else if (strcmp(Name, "MainMenuWidgetActiveTimerShowRemoteRecording") == 0) SetupConfig->MainMenuWidgetActiveTimerShowRemoteRecording = atoi(Value); else if (strcmp(Name, "MainMenuWidgetActiveTimerShowRemoteRefreshTime") == 0) SetupConfig->MainMenuWidgetActiveTimerShowRemoteRefreshTime = atoi(Value); else if (strcmp(Name, "ChannelDvbapiInfoShow") == 0) SetupConfig->ChannelDvbapiInfoShow = atoi(Value); + else if (strcmp(Name, "MenuItemRecordingSeenTreshold") == 0) SetupConfig->MenuItemRecordingSeenTreshold = atod(Value); else return false; return true; @@ -681,6 +683,7 @@ void cFlatSetupGeneral::SaveCurrentSettings(void) { Config.Store("MainMenuWidgetActiveTimerShowRemoteRecording", SetupConfig->MainMenuWidgetActiveTimerShowRemoteRecording, *Filename); Config.Store("MainMenuWidgetActiveTimerShowRemoteRefreshTime", SetupConfig->MainMenuWidgetActiveTimerShowRemoteRefreshTime, *Filename); Config.Store("ChannelDvbapiInfoShow", SetupConfig->ChannelDvbapiInfoShow, *Filename); + Config.Store("MenuItemRecordingSeenTreshold", dtoa(Config.MenuItemRecordingSeenTreshold), *Filename); cString msg = cString::sprintf("%s %s", tr("saved settings in file:"), *File); Skins.Message(mtInfo, msg); @@ -959,6 +962,8 @@ void cFlatSetupMenu::Setup(void) { Add(new cMenuEditBoolItem(tr("Menu draw background over the entire height"), &SetupConfig->MenuFullOsd)); Add(new cMenuEditBoolItem(tr("Recording menu show recording count in title"), &SetupConfig->MenuRecordingShowCount)); + Add(new cMenuEditPrcItem(tr("Recording menu seen treshold"), &SetupConfig->MenuItemRecordingSeenTreshold, 0.008, 0.01, 2)); + Add(new cMenuEditBoolItem(tr("Timer menu show timer count in title"), &SetupConfig->MenuTimerShowCount)); Add(new cMenuEditBoolItem(tr("Channel menu show channel count in title"), &SetupConfig->MenuChannelShowCount)); |