diff options
author | louis <louis.braun@gmx.de> | 2015-06-30 17:55:17 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-06-30 17:55:17 +0200 |
commit | c341a635d9b0c4dfdd5e2f6ab25f9d94f53ac795 (patch) | |
tree | 0051dbf5d3146fd145f154ffb83dfb590d9cc4fe | |
parent | 1e6e2c49cbbec03a4dc661edff04b85f7372cf2f (diff) | |
download | vdr-plugin-tvguideng-c341a635d9b0c4dfdd5e2f6ab25f9d94f53ac795.tar.gz vdr-plugin-tvguideng-c341a635d9b0c4dfdd5e2f6ab25f9d94f53ac795.tar.bz2 |
made default time before a switchtimer switches configurable
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | config.c | 4 | ||||
-rw-r--r-- | config.h | 1 | ||||
-rw-r--r-- | detailview.c | 2 | ||||
-rw-r--r-- | po/de_DE.po | 5 | ||||
-rw-r--r-- | recmenu.c | 5 | ||||
-rw-r--r-- | recmenus.c | 2 | ||||
-rw-r--r-- | setup.c | 2 | ||||
-rw-r--r-- | switchtimer.c | 2 | ||||
-rw-r--r-- | switchtimer.h | 1 | ||||
-rw-r--r-- | tvguidengosd.c | 2 |
11 files changed, 18 insertions, 9 deletions
@@ -52,3 +52,4 @@ Version 0.1.6 - fixed bug that menuitem number is not calculated correctly if recording menu scrolls +- made default time before a switchtimer switches configurable @@ -42,6 +42,7 @@ cTVGuideConfig::cTVGuideConfig(void) { favStartChannel = 0; favStopChannel = 0; useSubtitleRerun = 1; + switchMinsBefore = 2; } bool cTVGuideConfig::SetupParse(const char *Name, const char *Value) { @@ -83,7 +84,8 @@ bool cTVGuideConfig::SetupParse(const char *Name, const char *Value) { else if (!strcasecmp(Name, "favLimitChannels")) favLimitChannels = atoi(Value); else if (!strcasecmp(Name, "favStartChannel")) favStartChannel = atoi(Value); else if (!strcasecmp(Name, "favStopChannel")) favStopChannel = atoi(Value); + else if (!strcasecmp(Name, "switchMinsBefore")) switchMinsBefore = atoi(Value); else return false; return true; -} +}
\ No newline at end of file @@ -77,6 +77,7 @@ public: int favStartChannel; int favStopChannel; int useSubtitleRerun; + int switchMinsBefore; bool SetupParse(const char *Name, const char *Value); }; diff --git a/detailview.c b/detailview.c index 2ed44c0..ad8a7b1 100644 --- a/detailview.c +++ b/detailview.c @@ -632,4 +632,4 @@ void cDetailView::SetEpgPictures(int eventId) { tabs->AddStringToken(path.str(), "");
}
}
-}
+}
\ No newline at end of file diff --git a/po/de_DE.po b/po/de_DE.po index e45e50c..8dcde82 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-tvguideng 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2015-06-26 13:48+0200\n" +"POT-Creation-Date: 2015-06-30 17:27+0200\n" "PO-Revision-Date: 2015-03-08 17:49+0200\n" "Last-Translator: Louis\n" "Language-Team: \n" @@ -605,3 +605,6 @@ msgstr "Benutzerdef. Zeit 4 in Favoriten benutzen" msgid "Limit channels in favorites" msgstr "Kanäle in Favoriten beschränken" + +msgid "Minutes a switchtimer switches before start of a show" +msgstr "Minuten vor Beginn einer Sendung, zu der ein Switchtimer umschaltet" @@ -151,8 +151,9 @@ void cRecMenu::AddFooter(cRecMenuItem *footer) { int cRecMenu::GetNumActive(void) {
int num = 0;
for (cRecMenuItem *current = menuItems.First(); current; current = menuItems.Next(current)) {
- if (current == active)
+ if (current == active) {
return num;
+ }
num++;
}
return 0;
@@ -504,4 +505,4 @@ void cRecMenu::DrawFooter(void) { active = footer;
recMenuGrid->SetCurrent(footer->Id(), true);
}
-}
+}
\ No newline at end of file @@ -738,7 +738,7 @@ cRecMenuSearchTimerNothingFound::cRecMenuSearchTimerNothingFound(string searchSt // --- cRecMenuSwitchTimer ---------------------------------------------------------
cRecMenuSwitchTimer::cRecMenuSwitchTimer(void) {
SetMenuWidth(60);
- switchMinsBefore = 2;
+ switchMinsBefore = config.switchMinsBefore;
announceOnly = 0;
AddHeader(new cRecMenuItemInfo(tr("Configure Options for Switchtimer")));
@@ -86,6 +86,7 @@ void cTvGuideSetup::Setup(void) { Add(new cMenuEditChanItem(tr("Start Channel"), &tmpConfig.favStartChannel)); Add(new cMenuEditChanItem(tr("Stop Channel"), &tmpConfig.favStopChannel)); } + Add(new cMenuEditIntItem(tr("Minutes a switchtimer switches before start of a show"), &tmpConfig.switchMinsBefore, 0, 10)); SetCurrent(Get(current)); Display(); @@ -130,6 +131,7 @@ void cTvGuideSetup::Store(void) { SetupStore("favLimitChannels", config.favLimitChannels); SetupStore("favStartChannel", config.favStartChannel); SetupStore("favStopChannel", config.favStopChannel); + SetupStore("switchMinsBefore", config.switchMinsBefore); } eOSState cTvGuideSetup::ProcessKey(eKeys Key) { diff --git a/switchtimer.c b/switchtimer.c index f56c469..79e0bce 100644 --- a/switchtimer.c +++ b/switchtimer.c @@ -6,7 +6,7 @@ cSwitchTimers SwitchTimers; cSwitchTimer::cSwitchTimer(void) { eventID = 0; startTime = 0; - switchMinsBefore = 2; + switchMinsBefore = config.switchMinsBefore; announceOnly = 0; } diff --git a/switchtimer.h b/switchtimer.h index 09ebe88..eea468f 100644 --- a/switchtimer.h +++ b/switchtimer.h @@ -2,6 +2,7 @@ #define __TVGUIDE_SWITCHTIMER_H #include <vdr/plugin.h> +#include "config.h" class cSwitchTimer : public cListObject { public: diff --git a/tvguidengosd.c b/tvguidengosd.c index a59e092..59ea707 100644 --- a/tvguidengosd.c +++ b/tvguidengosd.c @@ -458,8 +458,6 @@ void cTVGuideOSD::CreateSwitchTimer(const cEvent *e) { if (SwitchTimers.EventInSwitchList(e)) return; cSwitchTimer st; - st.switchMinsBefore = 2; - st.announceOnly = 0; cRecManager recManager; recManager.SetEPGSearchPlugin(); recManager.CreateSwitchTimer(e, st); |