From a503c6ab3f1763c98db5677a59d4d07bf8299025 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Jan 2010 12:08:03 +0100 Subject: The "Edit timer" menu can now set the folder for the recording from a list of folders stored in "folders.conf" --- menu.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'menu.h') diff --git a/menu.h b/menu.h index 1d478d9b..d428a8dd 100644 --- a/menu.h +++ b/menu.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.h 1.91 2008/02/10 16:01:53 kls Exp $ + * $Id: menu.h 2.1 2010/01/17 11:21:42 kls Exp $ */ #ifndef __MENU_H @@ -31,14 +31,39 @@ public: virtual eOSState ProcessKey(eKeys Key); }; +class cMenuFolder : public cOsdMenu { +private: + cNestedItemList *nestedItemList; + cList *list; + cString dir; + cOsdItem *firstFolder; + bool editing; + void SetHelpKeys(void); + void Set(const char *CurrentFolder = NULL); + void DescendPath(const char *Path); + eOSState SetFolder(void); + eOSState Select(void); + eOSState New(void); + eOSState Delete(void); + eOSState Edit(void); + cMenuFolder(const char *Title, cList *List, cNestedItemList *NestedItemList, const char *Dir, const char *Path = NULL); +public: + cMenuFolder(const char *Title, cNestedItemList *NestedItemList, const char *Path = NULL); + cString GetFolder(void); + virtual eOSState ProcessKey(eKeys Key); + }; + class cMenuEditTimer : public cOsdMenu { private: cTimer *timer; cTimer data; int channel; bool addIfConfirmed; + cMenuEditStrItem *file; cMenuEditDateItem *firstday; + eOSState SetFolder(void); void SetFirstDayItem(void); + void SetHelpKeys(void); public: cMenuEditTimer(cTimer *Timer, bool New = false); virtual ~cMenuEditTimer(); -- cgit v1.2.3