1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

The menu timeout now also works when pressing the 'Back' button during replay to enter the 'Recordings' menu

This commit is contained in:
Klaus Schmidinger 2001-10-20 11:23:27 +02:00
parent 60ee85bf17
commit e3c09115fe
4 changed files with 16 additions and 7 deletions

View File

@ -822,3 +822,5 @@ Video Disk Recorder Revision History
- Fixed a bug in the replay mode display when pressing the Green or Yellow - Fixed a bug in the replay mode display when pressing the Green or Yellow
button while in trick mode (thanks to Stefan Huelswitt) button while in trick mode (thanks to Stefan Huelswitt)
- Closing all open file descriptors when calling external programs. - Closing all open file descriptors when calling external programs.
- The menu timeout now also works when pressing the "Back" button during replay
to enter the "Recordings" menu.

11
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.129 2001/10/20 09:04:28 kls Exp $ * $Id: menu.c 1.130 2001/10/20 11:16:56 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -1808,7 +1808,7 @@ eOSState cMenuCommands::ProcessKey(eKeys Key)
#define STOP_RECORDING tr(" Stop recording ") #define STOP_RECORDING tr(" Stop recording ")
cMenuMain::cMenuMain(bool Replaying) cMenuMain::cMenuMain(bool Replaying, eOSState State)
:cOsdMenu(tr("Main")) :cOsdMenu(tr("Main"))
{ {
digit = 0; digit = 0;
@ -1844,6 +1844,13 @@ cMenuMain::cMenuMain(bool Replaying)
Display(); Display();
lastActivity = time(NULL); lastActivity = time(NULL);
SetHasHotkeys(); SetHasHotkeys();
switch (State) {
case osRecordings: AddSubMenu(new cMenuRecordings); break;
#ifdef DVDSUPPORT
case osDVD: AddSubMenu(new cMenuDVD); break;
#endif //DVDSUPPORT
default: break;
}
} }
const char *cMenuMain::hk(const char *s) const char *cMenuMain::hk(const char *s)

4
menu.h
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.h 1.31 2001/10/07 15:13:26 kls Exp $ * $Id: menu.h 1.32 2001/10/20 11:15:26 kls Exp $
*/ */
#ifndef _MENU_H #ifndef _MENU_H
@ -23,7 +23,7 @@ private:
int digit; int digit;
const char *hk(const char *s); const char *hk(const char *s);
public: public:
cMenuMain(bool Replaying); cMenuMain(bool Replaying, eOSState State = osUnknown);
virtual eOSState ProcessKey(eKeys Key); virtual eOSState ProcessKey(eKeys Key);
}; };

6
vdr.c
View File

@ -22,7 +22,7 @@
* *
* The project's page is at http://www.cadsoft.de/people/kls/vdr * The project's page is at http://www.cadsoft.de/people/kls/vdr
* *
* $Id: vdr.c 1.85 2001/10/20 10:26:54 kls Exp $ * $Id: vdr.c 1.86 2001/10/20 11:18:38 kls Exp $
*/ */
#include <getopt.h> #include <getopt.h>
@ -408,7 +408,7 @@ int main(int argc, char *argv[])
case osRecordings: case osRecordings:
DELETENULL(Menu); DELETENULL(Menu);
DELETENULL(ReplayControl); DELETENULL(ReplayControl);
Menu = new cMenuRecordings; Menu = new cMenuMain(ReplayControl, osRecordings);
break; break;
case osReplay: DELETENULL(Menu); case osReplay: DELETENULL(Menu);
DELETENULL(ReplayControl); DELETENULL(ReplayControl);
@ -417,7 +417,7 @@ int main(int argc, char *argv[])
#ifdef DVDSUPPORT #ifdef DVDSUPPORT
case osDVD: DELETENULL(Menu); case osDVD: DELETENULL(Menu);
DELETENULL(ReplayControl); DELETENULL(ReplayControl);
Menu = new cMenuDVD; Menu = new cMenuMain(ReplayControl, osDVD);
break; break;
#endif //DVDSUPPORT #endif //DVDSUPPORT
case osStopReplay: case osStopReplay: