mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Display of Main Menu Entry configurable
This commit is contained in:
parent
4f960c48cb
commit
0f22ee7b7e
1
HISTORY
1
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
|
||||
|
2
config.c
2
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);
|
||||
|
1
config.h
1
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;
|
||||
|
@ -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"
|
||||
|
||||
|
2
setup.c
2
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));
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user