summaryrefslogtreecommitdiff
path: root/mymenusetup.c
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2006-03-12 18:14:36 +0100
committerAndreas Mair <andreas@vdr-developer.org>2006-03-12 18:14:36 +0100
commit17f89bafd559b28b5a175aa82730226dfe9f7d69 (patch)
tree7098824c14f462d44eaaccf5dc4c6975673ed275 /mymenusetup.c
parentbabfdd26f9d2fbe164205951413d74aa6d21ef23 (diff)
downloadvdr-plugin-extrecmenu-17f89bafd559b28b5a175aa82730226dfe9f7d69.tar.gz
vdr-plugin-extrecmenu-17f89bafd559b28b5a175aa82730226dfe9f7d69.tar.bz2
Version 0.3v0.3
- details for directories are shown now (# of entries, # of new entries) - option to shown the length of a recording - option to hide recording date, time and/or length
Diffstat (limited to 'mymenusetup.c')
-rw-r--r--mymenusetup.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/mymenusetup.c b/mymenusetup.c
new file mode 100644
index 0000000..2f3ae40
--- /dev/null
+++ b/mymenusetup.c
@@ -0,0 +1,22 @@
+#include <vdr/menu.h>
+#include "mymenusetup.h"
+
+mySetup mysetup;
+
+myMenuSetup::myMenuSetup()
+{
+ showrecdate=mysetup.ShowRecDate;
+ showrectime=mysetup.ShowRecTime;
+ showreclength=mysetup.ShowRecLength;
+
+ Add(new cMenuEditBoolItem(tr("Show recording date"),&showrecdate));
+ Add(new cMenuEditBoolItem(tr("Show recording time"),&showrectime));
+ Add(new cMenuEditBoolItem(tr("Show recording length"),&showreclength));
+}
+
+void myMenuSetup::Store()
+{
+ SetupStore("ShowRecDate",mysetup.ShowRecDate=showrecdate);
+ SetupStore("ShowRecTime",mysetup.ShowRecTime=showrectime);
+ SetupStore("ShowRecLength",mysetup.ShowRecLength=showreclength);
+}