summaryrefslogtreecommitdiff
path: root/mymenusetup.c
diff options
context:
space:
mode:
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);
+}