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.c9
6 files changed, 18 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 4698d9f..207e7cc 100644
--- a/HISTORY
+++ b/HISTORY
@@ -48,3 +48,4 @@ VDR Plugin 'tvguide' Revision History
- added theme "keep it simple" (thanks @saman)
- display of additional EPG pictures in detailed epg view
- Introduction of "Search & Recording" Menu
+- added possibility to replace original VDR schedules menu
diff --git a/config.c b/config.c
index 408374f..384d724 100644
--- a/config.c
+++ b/config.c
@@ -17,6 +17,7 @@ enum {
cTvguideConfig::cTvguideConfig() {
showMainMenuEntry = 1;
+ replaceOriginalSchedule = 0;
osdWidth = 0;
osdHeight = 0;
displayMode = eHorizontal;
@@ -252,6 +253,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, "replaceOriginalSchedule") == 0) replaceOriginalSchedule = atoi(Value);
else if (strcmp(Name, "themeIndex") == 0) themeIndex = atoi(Value);
else if (strcmp(Name, "displayMode") == 0) displayMode = atoi(Value);
else if (strcmp(Name, "showTimeInGrid") == 0) showTimeInGrid = atoi(Value);
diff --git a/config.h b/config.h
index 3afd857..b5d9e35 100644
--- a/config.h
+++ b/config.h
@@ -13,6 +13,7 @@ class cTvguideConfig {
void SetIconsPath(cString path);
void SetBlending(void);
int showMainMenuEntry;
+ int replaceOriginalSchedule;
int osdWidth;
int osdHeight;
int displayMode;
diff --git a/po/de_DE.po b/po/de_DE.po
index d1a58c6..02c3e9a 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-07-07 13:43+0200\n"
+"POT-Creation-Date: 2013-07-12 16:08+0200\n"
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
"Last-Translator: Horst\n"
"Language-Team: \n"
@@ -399,6 +399,9 @@ msgstr "immer"
msgid "Show Main Menu Entry"
msgstr "Hauptmenüeintrag anzeigen"
+msgid "Replace VDR Schedules Menu"
+msgstr "VDR Programm Menü ersetzen"
+
msgid "Theme"
msgstr "Theme"
diff --git a/setup.c b/setup.c
index 7368bb7..2309f45 100644
--- a/setup.c
+++ b/setup.c
@@ -47,6 +47,7 @@ void cTvguideSetup::Store(void) {
SetupStore("themeIndex", tvguideConfig.themeIndex);
SetupStore("showMainMenuEntry", tvguideConfig.showMainMenuEntry);
+ SetupStore("replaceOriginalSchedule", tvguideConfig.replaceOriginalSchedule);
SetupStore("displayMode", tvguideConfig.displayMode);
SetupStore("showTimeInGrid", tvguideConfig.showTimeInGrid);
SetupStore("displayStatusHeader", tvguideConfig.displayStatusHeader);
@@ -154,6 +155,7 @@ void cMenuSetupGeneral::Set(void) {
int currentItem = Current();
Clear();
Add(new cMenuEditBoolItem(tr("Show Main Menu Entry"), &tmpTvguideConfig->showMainMenuEntry));
+ Add(new cMenuEditBoolItem(tr("Replace VDR Schedules Menu"), &tmpTvguideConfig->replaceOriginalSchedule));
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 0a848fb..766c2c3 100644
--- a/tvguide.c
+++ b/tvguide.c
@@ -192,7 +192,14 @@ bool cPluginTvguide::SetupParse(const char *Name, const char *Value)
bool cPluginTvguide::Service(const char *Id, void *Data)
{
- // Handle custom service requests from other plugins
+ if (strcmp(Id, "MainMenuHooksPatch-v1.0::osSchedule") == 0 && tvguideConfig.replaceOriginalSchedule != 0) {
+ if (Data == NULL)
+ return true;
+ cOsdMenu **menu = (cOsdMenu**) Data;
+ if (menu)
+ *menu = (cOsdMenu*) MainMenuAction();
+ return true;
+ }
return false;
}