Display of Main Menu Entry configurable

This commit is contained in:
louis 2013-05-31 14:05:30 +02:00
parent 4f960c48cb
commit 0f22ee7b7e
6 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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);

View File

@ -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;

View File

@ -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"

View File

@ -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));

View File

@ -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);