diff options
author | Martin Prochnow <nordlicht@martins-kabuff.de> | 2006-03-26 12:18:12 +0200 |
---|---|---|
committer | Andreas Mair <andreas@vdr-developer.org> | 2006-03-26 12:18:12 +0200 |
commit | 54d5f6870a7351584fcb1c3e861a4fc9224badf3 (patch) | |
tree | fb51954380f42e8827a0a8fa757ef12e17e4e0f9 /mymenumoverecording.h | |
parent | 20683b994128131bcb22f89f00282cefdc54fc04 (diff) | |
download | vdr-plugin-extrecmenu-54d5f6870a7351584fcb1c3e861a4fc9224badf3.tar.gz vdr-plugin-extrecmenu-54d5f6870a7351584fcb1c3e861a4fc9224badf3.tar.bz2 |
Version 0.7v0.7
- added frensh translation; thanks to Patrice Staudt
- added finnish translation; thanks to Rolf Ahrenberg
- several bugfixes:
* if there are more then one recording with the same name, only one of it is shown if the recording details are hidden; thanks to Monroe from vdr-portal.de for reporting
* recording list entry (not the recording itselfs!) is deleted, if it is moved to the same place; thanks to Monroe from vdr-portal.de for reporting
* if a recording was deleted, the selection bar jumps to the first list entry
* some people reported problems with wrong recording dates using LinVDR
- revised rename-recording-menu; thanks to Monroe from vdr-portal.de for suggesting
- revised move-recording-menu - it is now more obvious; thanks to Monroe from vdr-portal.de for suggesting
- added option to show an alternative new marker - it's only useful for german speaking users because this icon shows 'NEU'; suggestions for an international version are welcome, you has 22x22 pixels for it
- added the functionality of the DvdArchive- and the DVDShowArchive-patch for VDR
- thanks fpr vejoun from vdr-portal.de for the script 'dvdarchive.sh'
Diffstat (limited to 'mymenumoverecording.h')
-rw-r--r-- | mymenumoverecording.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/mymenumoverecording.h b/mymenumoverecording.h new file mode 100644 index 0000000..bc7b389 --- /dev/null +++ b/mymenumoverecording.h @@ -0,0 +1,75 @@ +extern bool clearall; // needed for myMenuMoveRecording + +// --- myMenuRecordingsItem --------------------------------------------------- +class myMenuRecordingsItem:public cOsdItem +{ + private: + int level,isdirectory; + int totalentries,newentries; + char *title; + char *name; + const char *filename; + public: + myMenuRecordingsItem(cRecording *Recording,int Level); + ~myMenuRecordingsItem(); + const char *FileName(){return filename;} + const char *Name(){return name;} + bool IsDirectory(){return name!=NULL;} + void IncrementCounter(bool IsNew); +}; + +// --- myMenuRecordings ------------------------------------------------------- +class myMenuRecordings:public cOsdMenu +{ + private: + bool edit; + int level,helpkeys; + int recordingsstate; + char *base; + bool Open(); + void SetHelpKeys(); + cRecording *GetRecording(myMenuRecordingsItem *Item); + eOSState Play(); + eOSState Rewind(); + eOSState Delete(); + eOSState Rename(); + eOSState MoveRec(); + eOSState Info(); + eOSState Commands(eKeys Key=kNone); + public: + myMenuRecordings(const char *Base=NULL,int Level=0); + ~myMenuRecordings(); + void Set(bool Refresh=false); + virtual eOSState ProcessKey(eKeys Key); +}; + +// --- myMenuRenameRecording -------------------------------------------------- +class myMenuRenameRecording:public cOsdMenu +{ + private: + char name[MaxFileName]; + char path[MaxFileName]; + cRecording *recording; + myMenuRecordings *menurecordings; + public: + myMenuRenameRecording(cRecording *Recording,myMenuRecordings *MenuRecordings); + virtual eOSState ProcessKey(eKeys Key); +}; + +// --- myMenuMoveRecording ---------------------------------------------------- +class myMenuMoveRecording:public cOsdMenu +{ + private: + int level; + char *base; + cRecording *recording; + myMenuRecordings *menurecordings; + void Set(); + eOSState Open(); + eOSState MoveRec(); + eOSState Create(); + public: + myMenuMoveRecording(cRecording *Recording,myMenuRecordings *MenuRecordings,const char *Base=NULL,int Level=0); + myMenuMoveRecording::~myMenuMoveRecording(); + virtual eOSState ProcessKey(eKeys Key); +}; |