From 47a981960f1d0b6d0d8cbe3bdc15f2b9e8665731 Mon Sep 17 00:00:00 2001 From: Martin Prochnow Date: Tue, 2 May 2006 19:11:38 +0200 Subject: =?UTF-8?q?Version=200.10=20-=20made=20changes=20to=20Makefile=20f?= =?UTF-8?q?or=20APIVERSION=20(VDR=20>=3D=201.3.47)=20-=20changed=20myRepla?= =?UTF-8?q?yControl;=20suggested=20by=20Thomas=20G=FCnther=20-=20added=20d?= =?UTF-8?q?isplay=20of=20free=20disk=20space=20to=20the=20title=20bar=20-?= =?UTF-8?q?=20fixed=20adjustments=20for=20BigPatch/CmdSubMenu-patch;=20tha?= =?UTF-8?q?nks=20to=20Thomas=20G=FCnther=20for=20the=20patch=20-=20renamin?= =?UTF-8?q?g/moving=20directories=20is=20now=20possible=20-=20fixed=20esca?= =?UTF-8?q?ping=20of=20parameters=20for=20dvdarchive.sh=20-=20changed=20be?= =?UTF-8?q?haviour=20if=20the=20replay=20of=20a=20recording=20ends,=20plug?= =?UTF-8?q?ins=20will=20not=20open=20-=20'Play'=20and=20'Menu'->'Blue'=20f?= =?UTF-8?q?or=20resuming=20a=20replay=20work=20now;=20BUT:=20the=20replay?= =?UTF-8?q?=20isn't=20done=20with=20the=20plugin=20if=20you=20start=20repl?= =?UTF-8?q?aying=20this=20way,=20means=20if=20you=20stop=20the=20replay=20?= =?UTF-8?q?you=20come=20to=20VDR's=20recordings=20menu=20-=20switched=20of?= =?UTF-8?q?f=20editing=20of=20details=20(priority=20and=20lifetime)=20or?= =?UTF-8?q?=20archive=20dvd=20recordings=20to=20avoid=20trouble=20with=20t?= =?UTF-8?q?he=20dir=20name=20that=20identifies=20it=20on=20the=20media=20-?= =?UTF-8?q?=20added=20option=20to=20mark=20last=20replayed=20recording=20w?= =?UTF-8?q?hile=20opening=20the=20plugin=20-=20added=20possibilty=20to=20i?= =?UTF-8?q?nclude=20video=20dvd's=20into=20the=20recordings=20hierarchy;?= =?UTF-8?q?=20see=20README=20-=20introduced=20new=20parameters=20for=20the?= =?UTF-8?q?=20'-r'-option=20if=20VDR:=20move,=20rename=20and=20delete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mymenurecordinginfo.c | 79 --------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 mymenurecordinginfo.c (limited to 'mymenurecordinginfo.c') 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 -#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; -} -- cgit v1.2.3