diff options
author | Martin Prochnow <nordlicht@martins-kabuff.de> | 2006-05-02 19:11:38 +0200 |
---|---|---|
committer | Andreas Mair <andreas@vdr-developer.org> | 2006-05-02 19:11:38 +0200 |
commit | 47a981960f1d0b6d0d8cbe3bdc15f2b9e8665731 (patch) | |
tree | 912ec408b85195c6298a55276587535427ae83fd /mymenurecordinginfo.c | |
parent | 3c04e4ce347dff915def3a79f348f2f46e60564d (diff) | |
download | vdr-plugin-extrecmenu-47a981960f1d0b6d0d8cbe3bdc15f2b9e8665731.tar.gz vdr-plugin-extrecmenu-47a981960f1d0b6d0d8cbe3bdc15f2b9e8665731.tar.bz2 |
Version 0.10v0.10
- made changes to Makefile for APIVERSION (VDR >= 1.3.47)
- changed myReplayControl; suggested by Thomas Günther
- added display of free disk space to the title bar
- fixed adjustments for BigPatch/CmdSubMenu-patch; thanks to Thomas Günther for the patch
- renaming/moving directories is now possible
- fixed escaping of parameters for dvdarchive.sh
- changed behaviour if the replay of a recording ends, plugins will not open
- 'Play' and 'Menu'->'Blue' for resuming a replay work now; BUT: the replay isn't done with the plugin if you start replaying this way, means if you stop the replay you come to VDR's recordings menu
- switched off editing of details (priority and lifetime) or archive dvd recordings to avoid trouble with the dir name that identifies it on the media
- added option to mark last replayed recording while opening the plugin
- added possibilty to include video dvd's into the recordings hierarchy; see README
- introduced new parameters for the '-r'-option if VDR: move, rename and delete
Diffstat (limited to 'mymenurecordinginfo.c')
-rw-r--r-- | mymenurecordinginfo.c | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/mymenurecordinginfo.c b/mymenurecordinginfo.c deleted file mode 100644 index 70384b3..0000000 --- a/mymenurecordinginfo.c +++ /dev/null @@ -1,79 +0,0 @@ -/* - * See the README file for copyright information and how to reach the author. - * - * This code is directly taken from VDR with some changes by me to work with this plugin - */ - -#include <vdr/status.h> -#include "myreplaycontrol.h" - -myMenuRecordingInfo::myMenuRecordingInfo(const cRecording *Recording,bool WithButtons):cOsdMenu(tr("Recording info")) -{ - recording=Recording; - withButtons=WithButtons; - if(withButtons) - SetHelp(tr("Button$Play"),tr("Button$Rewind")); -} - -void myMenuRecordingInfo::Display(void) -{ - cOsdMenu::Display(); - DisplayMenu()->SetRecording(recording); - cStatus::MsgOsdTextItem(recording->Info()->Description()); -} - -eOSState myMenuRecordingInfo::Play() -{ - if(recording) - { - myReplayControl::SetRecording(recording->FileName(),recording->Title()); - cControl::Shutdown(); // stop running playbacks - cControl::Launch(new myReplayControl); // start playback - return osEnd; // close plugin - } - return osContinue; -} - -eOSState myMenuRecordingInfo::Rewind() -{ - if(recording) - { - cDevice::PrimaryDevice()->StopReplay(); - cResumeFile ResumeFile(recording->FileName()); - ResumeFile.Delete(); - return Play(); - } - return osContinue; -} - -eOSState myMenuRecordingInfo::ProcessKey(eKeys Key) -{ - switch (Key) - { - case kUp|k_Repeat: - case kUp: - case kDown|k_Repeat: - case kDown: - case kLeft|k_Repeat: - case kLeft: - case kRight|k_Repeat: - case kRight: DisplayMenu()->Scroll(NORMALKEY(Key)==kUp||NORMALKEY(Key)==kLeft,NORMALKEY(Key)==kLeft||NORMALKEY(Key)==kRight); - cStatus::MsgOsdTextItem(NULL,NORMALKEY(Key)==kUp); - return osContinue; - default: break; - } - - eOSState state=cOsdMenu::ProcessKey(Key); - - if(state==osUnknown) - { - switch (Key) - { - case kRed: return Play(); - case kGreen: return Rewind(); - case kOk: return osBack; - default: break; - } - } - return state; -} |