Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: HideMenu patch (WAS: Re: Request for Pilot-Plugin)



Javier Marcet wrote:
* Olivier Jacques <vdr@olivierjacques.com> [030825 14:52]:

could you please make an update to the plugin and add an "Hide Mainmenu Entry" option to it? I think it would be nice to hide it because I never accessed it via the mainmenu as I always use the yellow button on my remote. So then I would have one more position for another plugin. These positions are very valuable because vdr only counts till 10 (at least with Elchi).

This has already been asked but I don't know how to do it (I actually
think that this is not possible without patching VDR!).
When using the macro keys feature from VDR, an entry _has_ to exist in
the main menu. I tried to hide it but then the plugin is not launched
anymore.

Maybe somebody else has an idea?

Try the attached patch, it seems to work fine here :)



------------------------------------------------------------------------

--- pilot-0.0.3c/pilot.c.orig 2003-08-25 15:37:49.000000000 +0200
+++ pilot-0.0.3c/pilot.c 2003-08-25 15:52:17.000000000 +0200
@@ -30,6 +30,7 @@
config.alphaborder=255;
config.closeonswitch=1;
config.usedxr3=0;
+ config.hidemenu=0;
}
cPluginPilot::~cPluginPilot()
@@ -65,7 +66,7 @@
const char *cPluginPilot::MainMenuEntry(void)
{
// Perform the action when selected from the main VDR menu.
- return tr(MAINMENUENTRY);
+ return config.hidemenu ? NULL : tr(MAINMENUENTRY);
}
cOsdObject *cPluginPilot::MainMenuAction(void)
--- pilot-0.0.3c/pilotsetup.c.orig 2003-07-01 22:10:28.000000000 +0200
+++ pilot-0.0.3c/pilotsetup.c 2003-08-25 15:54:48.000000000 +0200
@@ -25,6 +25,7 @@
AlphaBorder = config.alphaborder;
CloseOnSwitch = config.closeonswitch;
UseDXR3 = config.usedxr3;
+ HideMenu = config.hidemenu;
Add(new cMenuEditIntItem(tr("Red"), &Red, 0, 255));
Add(new cMenuEditIntItem(tr("Green"), &Green, 0, 255));
@@ -37,6 +38,7 @@
Add(new cMenuEditIntItem(tr("Border opacity"), &AlphaBorder, 0, 255));
Add(new cMenuEditBoolItem(tr("Close on OK"), &CloseOnSwitch));
Add(new cMenuEditBoolItem(tr("Use DXR3"), &UseDXR3));
+ Add(new cMenuEditBoolItem(tr("Hide Menu Entry"), &HideMenu));
}
void cPilotSetup::Store(void)
@@ -52,6 +54,7 @@
SetupStore("AlphaBorder", config.alphaborder = AlphaBorder);
SetupStore("CloseOnSwitch", config.closeonswitch = CloseOnSwitch);
SetupStore("UseDXR3", config.usedxr3 = UseDXR3);
+ SetupStore("HideMenu", config.hidemenu = HideMenu);
}
--- pilot-0.0.3c/pilotsetup.h.orig 2003-07-01 22:10:32.000000000 +0200
+++ pilot-0.0.3c/pilotsetup.h 2003-08-25 15:54:18.000000000 +0200
@@ -16,6 +16,7 @@
int Alpha1, Alpha2, AlphaBorder;
int CloseOnSwitch;
int UseDXR3;
+ int HideMenu;
protected:
virtual void Store(void);
public:
Thanks, but when chosing Hide Mainmenu Entry = yes when I hit the yellow button the Schedule menu pops up. Chosing Hide Mainmenu Entry = no pilot is back on the yellow key :p

Halfway there

Sebastian



--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index