summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2015-02-08 14:32:58 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2015-02-08 14:32:58 +0100
commit488fbd339aec71e7c085a634f0c615745e3ee419 (patch)
tree3e53db33ba02b6c4c7471ddd1f6a85b8be013b48
parentdf3e9f1854af5efe1b253dac54a73ff6043aa2c1 (diff)
downloadskin-flatplus-488fbd339aec71e7c085a634f0c615745e3ee419.tar.gz
skin-flatplus-488fbd339aec71e7c085a634f0c615745e3ee419.tar.bz2
[add] option to allways show date in schedule menu
-rw-r--r--HISTORY1
-rw-r--r--config.c3
-rw-r--r--config.h1
-rw-r--r--displaymenu.c3
-rw-r--r--po/de_DE.po5
-rw-r--r--setup.c4
6 files changed, 16 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 005f51f7..7c940d1e 100644
--- a/HISTORY
+++ b/HISTORY
@@ -18,6 +18,7 @@ VDR Plugin 'skinflatplus' Revision History
- [add] support for message text with parse tilde and extra text color
- [add] provide support for new SetMenuSortMode function, to show sort in menus
- [add] recording menu, progressbar icon to show how much seen from the recording
+- [add] option to allways show date in schedule menu
2014-12-04: Version 0.5.0
- [fix] femon receiver - do not get data from previous channel
diff --git a/config.c b/config.c
index 0e827820..e0af986c 100644
--- a/config.c
+++ b/config.c
@@ -61,6 +61,8 @@ cFlatConfig::cFlatConfig(void) {
MenuEventView = 1;
MenuRecordingView = 1;
+ MenuEventViewAllwaysWithDate = 1;
+
MenuRecordingShowCount = 1;
MenuTimerShowCount = 1;
MenuChannelShowCount = 1;
@@ -363,6 +365,7 @@ bool cFlatConfig::SetupParse(const char *Name, const char *Value) {
else if (strcmp(Name, "RecordingDimmOnPauseOpaque") == 0) RecordingDimmOnPauseOpaque = atoi(Value);
else if (strcmp(Name, "MainMenuWidgetActiveTimerShowActive") == 0) MainMenuWidgetActiveTimerShowActive = atoi(Value);
else if (strcmp(Name, "MainMenuWidgetActiveTimerShowRecording") == 0) MainMenuWidgetActiveTimerShowRecording = atoi(Value);
+ else if (strcmp(Name, "MenuEventViewAllwaysWithDate") == 0) MenuEventViewAllwaysWithDate = atoi(Value);
else return false;
diff --git a/config.h b/config.h
index fdbeb48c..2122cf30 100644
--- a/config.h
+++ b/config.h
@@ -236,6 +236,7 @@ class cFlatConfig
int MenuEventView;
int MenuRecordingView;
int MenuFullOsd;
+ int MenuEventViewAllwaysWithDate;
int MenuRecordingShowCount;
int MenuTimerShowCount;
diff --git a/displaymenu.c b/displaymenu.c
index 763806f4..7f681187 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -1425,6 +1425,9 @@ bool cFlatDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Current
if( Config.MenuEventView == 0 )
return false;
+ if( Config.MenuEventViewAllwaysWithDate )
+ WithDate = true;
+
cImage *img = NULL;
cString buffer;
int y = Index * itemEventHeight;
diff --git a/po/de_DE.po b/po/de_DE.po
index d292a962..776748b9 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-skinflat 0.5.0\n"
"Report-Msgid-Bugs-To: <see README>\n"
-"POT-Creation-Date: 2015-02-06 17:18+0100\n"
+"POT-Creation-Date: 2015-02-08 14:30+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -639,6 +639,9 @@ msgstr "Menü: Timer Ansicht"
msgid "Menu event view"
msgstr "Menü: Programm Ansicht"
+msgid "Menu event view allways with date"
+msgstr "Menü: Programm immer mit Datum"
+
msgid "Menu recording view"
msgstr "Menü: Aufzeichnungen Ansicht"
diff --git a/setup.c b/setup.c
index aece129e..dbab7fa3 100644
--- a/setup.c
+++ b/setup.c
@@ -320,6 +320,7 @@ void cFlatSetup::Store(void) {
SetupStore("RecordingDimmOnPauseOpaque", Config.RecordingDimmOnPauseOpaque);
SetupStore("MainMenuWidgetActiveTimerShowActive", Config.MainMenuWidgetActiveTimerShowActive);
SetupStore("MainMenuWidgetActiveTimerShowRecording", Config.MainMenuWidgetActiveTimerShowRecording);
+ SetupStore("MenuEventViewAllwaysWithDate", Config.MenuEventViewAllwaysWithDate);
Config.Init();
}
@@ -505,6 +506,7 @@ bool cFlatSetupGeneral::SetupParse(const char *Name, const char *Value) {
else if (strcmp(Name, "RecordingDimmOnPauseOpaque") == 0) SetupConfig->RecordingDimmOnPauseOpaque = atoi(Value);
else if (strcmp(Name, "MainMenuWidgetActiveTimerShowActive") == 0) SetupConfig->MainMenuWidgetActiveTimerShowActive = atoi(Value);
else if (strcmp(Name, "MainMenuWidgetActiveTimerShowRecording") == 0) SetupConfig->MainMenuWidgetActiveTimerShowRecording = atoi(Value);
+ else if (strcmp(Name, "MenuEventViewAllwaysWithDate") == 0) SetupConfig->MenuEventViewAllwaysWithDate = atoi(Value);
else return false;
return true;
@@ -672,6 +674,7 @@ void cFlatSetupGeneral::SaveCurrentSettings(void) {
Config.Store("RecordingDimmOnPauseOpaque", SetupConfig->RecordingDimmOnPauseOpaque, *Filename);
Config.Store("MainMenuWidgetActiveTimerShowActive", SetupConfig->MainMenuWidgetActiveTimerShowActive, *Filename);
Config.Store("MainMenuWidgetActiveTimerShowRecording", SetupConfig->MainMenuWidgetActiveTimerShowRecording, *Filename);
+ Config.Store("MenuEventViewAllwaysWithDate", SetupConfig->MenuEventViewAllwaysWithDate, *Filename);
cString msg = cString::sprintf("%s %s", tr("saved settings in file:"), *File);
Skins.Message(mtInfo, msg);
@@ -951,6 +954,7 @@ void cFlatSetupMenu::Setup(void) {
Add(new cMenuEditStraItem(tr("Menu channel view"), &SetupConfig->MenuChannelView, MenuChannelViews.Size(), &MenuChannelViews[0]));
Add(new cMenuEditStraItem(tr("Menu timer view"), &SetupConfig->MenuTimerView, MenuTimerViews.Size(), &MenuTimerViews[0]));
Add(new cMenuEditStraItem(tr("Menu event view"), &SetupConfig->MenuEventView, MenuEventViews.Size(), &MenuEventViews[0]));
+ Add(new cMenuEditBoolItem(tr("Menu event view allways with date"), &SetupConfig->MenuEventViewAllwaysWithDate));
Add(new cMenuEditStraItem(tr("Menu recording view"), &SetupConfig->MenuRecordingView, MenuRecordingViews.Size(), &MenuRecordingViews[0]));
Add(new cMenuEditBoolItem(tr("Scrollbar by decor-file?"), &SetupConfig->decorScrollBarByTheme));