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
|
- Buttons green / yellow can be configured to jump to prev / next channel
|
||||||
group
|
group
|
||||||
- Added setup option to hide last 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() {
|
cTvguideConfig::cTvguideConfig() {
|
||||||
|
showMainMenuEntry = 1;
|
||||||
osdWidth = 0;
|
osdWidth = 0;
|
||||||
osdHeight = 0;
|
osdHeight = 0;
|
||||||
displayMode = eHorizontal;
|
displayMode = eHorizontal;
|
||||||
@ -232,6 +233,7 @@ void cTvguideConfig::loadTheme() {
|
|||||||
|
|
||||||
bool cTvguideConfig::SetupParse(const char *Name, const char *Value) {
|
bool cTvguideConfig::SetupParse(const char *Name, const char *Value) {
|
||||||
if (strcmp(Name, "timeFormat") == 0) timeFormat = atoi(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, "themeIndex") == 0) themeIndex = atoi(Value);
|
||||||
else if (strcmp(Name, "displayMode") == 0) displayMode = atoi(Value);
|
else if (strcmp(Name, "displayMode") == 0) displayMode = atoi(Value);
|
||||||
else if (strcmp(Name, "displayStatusHeader") == 0) displayStatusHeader = 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 SetLogoPath(cString path);
|
||||||
void SetImagesPath(cString path);
|
void SetImagesPath(cString path);
|
||||||
void SetBlending(void);
|
void SetBlending(void);
|
||||||
|
int showMainMenuEntry;
|
||||||
int osdWidth;
|
int osdWidth;
|
||||||
int osdHeight;
|
int osdHeight;
|
||||||
int displayMode;
|
int displayMode;
|
||||||
|
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\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"
|
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
|
||||||
"Last-Translator: Horst\n"
|
"Last-Translator: Horst\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -57,6 +57,9 @@ msgstr "falls vorhanden"
|
|||||||
msgid "always"
|
msgid "always"
|
||||||
msgstr "immer"
|
msgstr "immer"
|
||||||
|
|
||||||
|
msgid "Show Main Menu Entry"
|
||||||
|
msgstr "Hauptmenüeintrag anzeigen"
|
||||||
|
|
||||||
msgid "Theme"
|
msgid "Theme"
|
||||||
msgstr "Theme"
|
msgstr "Theme"
|
||||||
|
|
||||||
|
2
setup.c
2
setup.c
@ -46,6 +46,7 @@ void cTvguideSetup::Store(void) {
|
|||||||
tvguideConfig = tmpTvguideConfig;
|
tvguideConfig = tmpTvguideConfig;
|
||||||
|
|
||||||
SetupStore("themeIndex", tvguideConfig.themeIndex);
|
SetupStore("themeIndex", tvguideConfig.themeIndex);
|
||||||
|
SetupStore("showMainMenuEntry", tvguideConfig.showMainMenuEntry);
|
||||||
SetupStore("displayMode", tvguideConfig.displayMode);
|
SetupStore("displayMode", tvguideConfig.displayMode);
|
||||||
SetupStore("displayStatusHeader", tvguideConfig.displayStatusHeader);
|
SetupStore("displayStatusHeader", tvguideConfig.displayStatusHeader);
|
||||||
SetupStore("displayChannelGroups", tvguideConfig.displayChannelGroups);
|
SetupStore("displayChannelGroups", tvguideConfig.displayChannelGroups);
|
||||||
@ -145,6 +146,7 @@ void cMenuSetupGeneral::Set(void) {
|
|||||||
const char *indent = " ";
|
const char *indent = " ";
|
||||||
int currentItem = Current();
|
int currentItem = Current();
|
||||||
Clear();
|
Clear();
|
||||||
|
Add(new cMenuEditBoolItem(tr("Show Main Menu Entry"), &tmpTvguideConfig->showMainMenuEntry));
|
||||||
if (themes.NumThemes())
|
if (themes.NumThemes())
|
||||||
Add(new cMenuEditStraItem(tr("Theme"), &tmpTvguideConfig->themeIndex, themes.NumThemes(), themes.Descriptions()));
|
Add(new cMenuEditStraItem(tr("Theme"), &tmpTvguideConfig->themeIndex, themes.NumThemes(), themes.Descriptions()));
|
||||||
Add(new cMenuEditBoolItem(tr("Rounded Corners"), &tmpTvguideConfig->roundedCorners));
|
Add(new cMenuEditBoolItem(tr("Rounded Corners"), &tmpTvguideConfig->roundedCorners));
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
virtual void MainThreadHook(void);
|
virtual void MainThreadHook(void);
|
||||||
virtual cString Active(void);
|
virtual cString Active(void);
|
||||||
virtual time_t WakeupTime(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 cOsdObject *MainMenuAction(void);
|
||||||
virtual cMenuSetupPage *SetupMenu(void);
|
virtual cMenuSetupPage *SetupMenu(void);
|
||||||
virtual bool SetupParse(const char *Name, const char *Value);
|
virtual bool SetupParse(const char *Name, const char *Value);
|
||||||
|
Loading…
Reference in New Issue
Block a user