summaryrefslogtreecommitdiff
path: root/mymenusetup.c
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2006-03-13 13:43:16 +0100
committerAndreas Mair <andreas@vdr-developer.org>2006-03-13 13:43:16 +0100
commit69ab28fe3563ca25153a7bc5bfab003f6c23d9aa (patch)
tree7c0194a56f46a7bd06fd56437daffd1bff647dbe /mymenusetup.c
parent17f89bafd559b28b5a175aa82730226dfe9f7d69 (diff)
downloadvdr-plugin-extrecmenu-69ab28fe3563ca25153a7bc5bfab003f6c23d9aa.tar.gz
vdr-plugin-extrecmenu-69ab28fe3563ca25153a7bc5bfab003f6c23d9aa.tar.bz2
Version 0.4v0.4
- add option to hide main menu entry - set tabs depending on the shown recordings details - looks more fancy and there is more space for the recording names - fixed a possible memory leak
Diffstat (limited to 'mymenusetup.c')
-rw-r--r--mymenusetup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mymenusetup.c b/mymenusetup.c
index 2f3ae40..f0d2cc7 100644
--- a/mymenusetup.c
+++ b/mymenusetup.c
@@ -1,14 +1,15 @@
-#include <vdr/menu.h>
#include "mymenusetup.h"
mySetup mysetup;
myMenuSetup::myMenuSetup()
{
+ hidemainmenuentry=mysetup.HideMainMenuEntry;
showrecdate=mysetup.ShowRecDate;
showrectime=mysetup.ShowRecTime;
showreclength=mysetup.ShowRecLength;
+ Add(new cMenuEditBoolItem(tr("Hide main menu entry"),&hidemainmenuentry));
Add(new cMenuEditBoolItem(tr("Show recording date"),&showrecdate));
Add(new cMenuEditBoolItem(tr("Show recording time"),&showrectime));
Add(new cMenuEditBoolItem(tr("Show recording length"),&showreclength));
@@ -16,6 +17,7 @@ myMenuSetup::myMenuSetup()
void myMenuSetup::Store()
{
+ SetupStore("HideMainMenuEntry",mysetup.HideMainMenuEntry=hidemainmenuentry);
SetupStore("ShowRecDate",mysetup.ShowRecDate=showrecdate);
SetupStore("ShowRecTime",mysetup.ShowRecTime=showrectime);
SetupStore("ShowRecLength",mysetup.ShowRecLength=showreclength);