mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
No longer displaying color buttons in the recording info menu if it has been invoked from a player
This commit is contained in:
parent
408966aa0a
commit
806a7f6768
@ -1651,3 +1651,7 @@ Philippe Gramoull
|
|||||||
André Weidemann <Andre.Weidemann@web.de>
|
André Weidemann <Andre.Weidemann@web.de>
|
||||||
for suggesting to only write Dolby Digital tracks into the 'info.vdr' file of a
|
for suggesting to only write Dolby Digital tracks into the 'info.vdr' file of a
|
||||||
recording if Setup.UseDolbyDigital is true
|
recording if Setup.UseDolbyDigital is true
|
||||||
|
|
||||||
|
Jürgen Schilling <juergen_schilling@web.de>
|
||||||
|
for reporting that color buttons were displayed in the recording info menu if it
|
||||||
|
has been invoked from a player
|
||||||
|
2
HISTORY
2
HISTORY
@ -4187,3 +4187,5 @@ Video Disk Recorder Revision History
|
|||||||
if Setup.UseDolbyDigital is true (suggested by André Weidemann).
|
if Setup.UseDolbyDigital is true (suggested by André Weidemann).
|
||||||
- Added a leading '0' to the day in the DayDateTime() function (thanks to Rolf
|
- Added a leading '0' to the day in the DayDateTime() function (thanks to Rolf
|
||||||
Ahrenberg).
|
Ahrenberg).
|
||||||
|
- No longer displaying color buttons in the recording info menu if it has been
|
||||||
|
invoked from a player (reported by Jürgen Schilling).
|
||||||
|
21
menu.c
21
menu.c
@ -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.395 2006/01/15 13:35:05 kls Exp $
|
* $Id: menu.c 1.396 2006/01/15 15:02:36 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -1702,17 +1702,19 @@ cOsdObject *CamControl(void)
|
|||||||
class cMenuRecording : public cOsdMenu {
|
class cMenuRecording : public cOsdMenu {
|
||||||
private:
|
private:
|
||||||
const cRecording *recording;
|
const cRecording *recording;
|
||||||
|
bool withButtons;
|
||||||
public:
|
public:
|
||||||
cMenuRecording(const cRecording *Recording);
|
cMenuRecording(const cRecording *Recording, bool WithButtons = false);
|
||||||
virtual void Display(void);
|
virtual void Display(void);
|
||||||
virtual eOSState ProcessKey(eKeys Key);
|
virtual eOSState ProcessKey(eKeys Key);
|
||||||
};
|
};
|
||||||
|
|
||||||
cMenuRecording::cMenuRecording(const cRecording *Recording)
|
cMenuRecording::cMenuRecording(const cRecording *Recording, bool WithButtons)
|
||||||
:cOsdMenu(tr("Recording info"))
|
:cOsdMenu(tr("Recording info"))
|
||||||
{
|
{
|
||||||
recording = Recording;
|
recording = Recording;
|
||||||
if (recording)
|
withButtons = WithButtons;
|
||||||
|
if (withButtons)
|
||||||
SetHelp(tr("Button$Play"), tr("Button$Rewind"));
|
SetHelp(tr("Button$Play"), tr("Button$Rewind"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1744,8 +1746,11 @@ eOSState cMenuRecording::ProcessKey(eKeys Key)
|
|||||||
|
|
||||||
if (state == osUnknown) {
|
if (state == osUnknown) {
|
||||||
switch (Key) {
|
switch (Key) {
|
||||||
case kRed: Key = kOk; // will play the recording, even if recording commands are defined
|
case kRed: if (withButtons)
|
||||||
case kGreen: cRemote::Put(Key, true);
|
Key = kOk; // will play the recording, even if recording commands are defined
|
||||||
|
case kGreen: if (!withButtons)
|
||||||
|
break;
|
||||||
|
cRemote::Put(Key, true);
|
||||||
// continue with osBack to close the info menu and process the key
|
// continue with osBack to close the info menu and process the key
|
||||||
case kOk: return osBack;
|
case kOk: return osBack;
|
||||||
default: break;
|
default: break;
|
||||||
@ -1993,7 +1998,7 @@ eOSState cMenuRecordings::Info(void)
|
|||||||
if (ri && !ri->IsDirectory()) {
|
if (ri && !ri->IsDirectory()) {
|
||||||
cRecording *recording = GetRecording(ri);
|
cRecording *recording = GetRecording(ri);
|
||||||
if (recording && recording->Info()->Title())
|
if (recording && recording->Info()->Title())
|
||||||
return AddSubMenu(new cMenuRecording(recording));
|
return AddSubMenu(new cMenuRecording(recording, true));
|
||||||
}
|
}
|
||||||
return osContinue;
|
return osContinue;
|
||||||
}
|
}
|
||||||
@ -3993,7 +3998,7 @@ cOsdObject *cReplayControl::GetInfo(void)
|
|||||||
{
|
{
|
||||||
cRecording *Recording = Recordings.GetByName(cReplayControl::LastReplayed());
|
cRecording *Recording = Recordings.GetByName(cReplayControl::LastReplayed());
|
||||||
if (Recording)
|
if (Recording)
|
||||||
return new cMenuRecording(Recording);
|
return new cMenuRecording(Recording, false);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user