diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | config.c | 2 | ||||
-rw-r--r-- | config.h | 1 | ||||
-rwxr-xr-x | po/de_DE.po | 5 | ||||
-rw-r--r-- | setup.c | 2 | ||||
-rw-r--r-- | tvguide.c | 2 |
6 files changed, 11 insertions, 2 deletions
@@ -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 @@ -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);
@@ -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" @@ -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)); @@ -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); |