summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--config.c2
-rw-r--r--config.h1
-rwxr-xr-xpo/de_DE.po5
-rw-r--r--setup.c2
-rw-r--r--tvguide.c2
6 files changed, 11 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index a200858..bdb3ebc 100644
--- a/HISTORY
+++ b/HISTORY
@@ -33,3 +33,4 @@ VDR Plugin 'tvguide' Revision History
- Buttons green / yellow can be configured to jump to prev / next channel
group
- Added setup option to hide last channel group
+- Display of Main Menu Entry configurable
diff --git a/config.c b/config.c
index 154af20..e44e353 100644
--- a/config.c
+++ b/config.c
@@ -16,6 +16,7 @@ enum {
};
cTvguideConfig::cTvguideConfig() {
+ showMainMenuEntry = 1;
osdWidth = 0;
osdHeight = 0;
displayMode = eHorizontal;
@@ -232,6 +233,7 @@ void cTvguideConfig::loadTheme() {
bool cTvguideConfig::SetupParse(const char *Name, const char *Value) {
if (strcmp(Name, "timeFormat") == 0) timeFormat = atoi(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, "displayStatusHeader") == 0) displayStatusHeader = atoi(Value);
diff --git a/config.h b/config.h
index ee2a2a4..6895581 100644
--- a/config.h
+++ b/config.h
@@ -11,6 +11,7 @@ class cTvguideConfig {
void SetLogoPath(cString path);
void SetImagesPath(cString path);
void SetBlending(void);
+ int showMainMenuEntry;
int osdWidth;
int osdHeight;
int displayMode;
diff --git a/po/de_DE.po b/po/de_DE.po
index dc388f2..f6dd305 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-05-31 11:43+0200\n"
+"POT-Creation-Date: 2013-05-31 14:01+0200\n"
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
"Last-Translator: Horst\n"
"Language-Team: \n"
@@ -57,6 +57,9 @@ msgstr "falls vorhanden"
msgid "always"
msgstr "immer"
+msgid "Show Main Menu Entry"
+msgstr "Hauptmenüeintrag anzeigen"
+
msgid "Theme"
msgstr "Theme"
diff --git a/setup.c b/setup.c
index b22c61d..66f1e66 100644
--- a/setup.c
+++ b/setup.c
@@ -46,6 +46,7 @@ void cTvguideSetup::Store(void) {
tvguideConfig = tmpTvguideConfig;
SetupStore("themeIndex", tvguideConfig.themeIndex);
+ SetupStore("showMainMenuEntry", tvguideConfig.showMainMenuEntry);
SetupStore("displayMode", tvguideConfig.displayMode);
SetupStore("displayStatusHeader", tvguideConfig.displayStatusHeader);
SetupStore("displayChannelGroups", tvguideConfig.displayChannelGroups);
@@ -145,6 +146,7 @@ void cMenuSetupGeneral::Set(void) {
const char *indent = " ";
int currentItem = Current();
Clear();
+ Add(new cMenuEditBoolItem(tr("Show Main Menu Entry"), &tmpTvguideConfig->showMainMenuEntry));
if (themes.NumThemes())
Add(new cMenuEditStraItem(tr("Theme"), &tmpTvguideConfig->themeIndex, themes.NumThemes(), themes.Descriptions()));
Add(new cMenuEditBoolItem(tr("Rounded Corners"), &tmpTvguideConfig->roundedCorners));
diff --git a/tvguide.c b/tvguide.c
index 2f4521d..e378fcb 100644
--- a/tvguide.c
+++ b/tvguide.c
@@ -42,7 +42,7 @@ public:
virtual void MainThreadHook(void);
virtual cString Active(void);
virtual time_t WakeupTime(void);
- virtual const char *MainMenuEntry(void) { return MAINMENUENTRY; }
+ virtual const char *MainMenuEntry(void) { return (tvguideConfig.showMainMenuEntry)?MAINMENUENTRY:NULL; }
virtual cOsdObject *MainMenuAction(void);
virtual cMenuSetupPage *SetupMenu(void);
virtual bool SetupParse(const char *Name, const char *Value);