diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-17 12:08:03 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-17 12:08:03 +0100 |
commit | a503c6ab3f1763c98db5677a59d4d07bf8299025 (patch) | |
tree | 8c041b2e26b1453151f73927cdb3dacbe10b2f50 /menu.h | |
parent | 61c1df70040cbb9215f9735be36cf414b039a2e6 (diff) | |
download | vdr-a503c6ab3f1763c98db5677a59d4d07bf8299025.tar.gz vdr-a503c6ab3f1763c98db5677a59d4d07bf8299025.tar.bz2 |
The "Edit timer" menu can now set the folder for the recording from a list of folders stored in "folders.conf"
Diffstat (limited to 'menu.h')
-rw-r--r-- | menu.h | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -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<cNestedItem> *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<cNestedItem> *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(); |