mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
VDR developer version 2.1.8 is now available at ftp://ftp.tvdr.de/vdr/Developer/vdr-2.1.8.tar.bz2 A 'diff' against the previous version is available at ftp://ftp.tvdr.de/vdr/Developer/vdr-2.1.7-2.1.8.diff MD5 checksums: 1d2751e87def9b18b448513f24e635e9 vdr-2.1.8.tar.bz2 0487e037278f6f6684a7933674910f05 vdr-2.1.7-2.1.8.diff WARNING: ======== This is a *developer* version. Even though *I* use it in my productive environment, I strongly recommend that you only use it under controlled conditions and for testing and debugging. From the HISTORY file: - Updated the Italian OSD texts (thanks to Diego Pierotto). - Fixed "warning: invalid suffix on literal" with GCC 4.8 and C++11 (thanks to Joerg Bornkessel). - Fixed the link to "svdrpsend (1)" in the vdr.1 man page (thanks to Chris Mayo). - Updated the Finnish OSD texts (thanks to Rolf Ahrenberg). - Updated the Romanian OSD texts (thanks to Lucian Muresan). - Added functionality based on the "jumpplay" patch from Torsten Kunkel and Thomas Günther: + The new option "Setup/Replay/Pause replay when jumping to a mark" can be used to turn off pausing replay when jumping to an editing mark with the '9' key. + The new option "Setup/Replay/Skip edited parts" can be used to automatically skip the edited parts of a recording during replay, without the need to actually cut the recording. + The new option "Setup/Replay/Pause replay at last mark" can be used to make replay go into Pause mode when it has reached the last "end" mark. + The '8' key for testing an edited sequence now also jumps to the next *end* mark if "Setup/Replay/Skip edited parts" is active. This allows for testing edits in recordings that have actually been cut, as well as recordings that have not been cut, in case "Skip edited parts" is enabled. - Added support for "Satellite Channel Routing" (SCR) according to EN50607, also known as "JESS" (thanks to Manfred Völkel and Frank Neumann). - The keys '1' and '3' can now be used in replay mode to position an editing mark in "binary" mode (based on a patch from Rolf Ahrenberg, with modifications by Helmut Auer). See MANUAL, section "Editing a Recording". - The Yellow button in the "Setup/CAM" menu can now be used to put the selected CAM into a mode where it remains assigned to a device that is tuned to the current channel until the smart card it contains is activated and the CAM thus starts to descramble (see MANUAL, section "Setup/CAM" for details). - Updated the Estonian OSD texts (thanks to Arthur Konovalov). - Added ARGSDIR to the ONEDIR section of Make.config.template (suggested by Derek Kelly). - Made cRecording::GetResume() public (suggested by Stefan Braun). - Fixed setting the read index in cDvbPlayer::Goto() in case Still is false. - The function cDvbPlayer::Goto() now automatically calls Play() if Still is false. - Added support for LCN (Logical Channel Numbers), which plugins may use to sort channels (thanks to Rolf Ahrenberg).
147 lines
3.7 KiB
C++
147 lines
3.7 KiB
C++
/*
|
|
* keys.h: Remote control Key handling
|
|
*
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
* how to reach the author.
|
|
*
|
|
* $Id: keys.h 3.1 2015/01/27 10:45:18 kls Exp $
|
|
*/
|
|
|
|
#ifndef __KEYS_H
|
|
#define __KEYS_H
|
|
|
|
#include "config.h"
|
|
#include "tools.h"
|
|
|
|
enum eKeys { // "Up" and "Down" must be the first two keys!
|
|
kUp,
|
|
kDown,
|
|
kMenu,
|
|
kOk,
|
|
kBack,
|
|
kLeft,
|
|
kRight,
|
|
kRed,
|
|
kGreen,
|
|
kYellow,
|
|
kBlue,
|
|
k0, k1, k2, k3, k4, k5, k6, k7, k8, k9,
|
|
kInfo,
|
|
kPlayPause, // combined Play/Pause key
|
|
kPlay,
|
|
kPause,
|
|
kStop,
|
|
kRecord,
|
|
kFastFwd,
|
|
kFastRew,
|
|
kNext,
|
|
kPrev,
|
|
kPower,
|
|
kChanUp,
|
|
kChanDn,
|
|
kChanPrev,
|
|
kVolUp,
|
|
kVolDn,
|
|
kMute,
|
|
kAudio,
|
|
kSubtitles,
|
|
kSchedule,
|
|
kChannels,
|
|
kTimers,
|
|
kRecordings,
|
|
kSetup,
|
|
kCommands,
|
|
kUser0, kUser1, kUser2, kUser3, kUser4, kUser5, kUser6, kUser7, kUser8, kUser9,
|
|
kNone,
|
|
kKbd,
|
|
// The following codes are used internally:
|
|
k_Plugin,
|
|
k_Setup,
|
|
// The following flags are OR'd with the above codes:
|
|
k_Repeat = 0x8000,
|
|
k_Release = 0x4000,
|
|
k_Flags = k_Repeat | k_Release,
|
|
};
|
|
|
|
// This is in preparation for having more key codes:
|
|
#define kMarkToggle k0
|
|
#define kMarkSkipBack k1
|
|
#define kMarkSkipForward k3
|
|
#define kMarkMoveBack k4
|
|
#define kMarkMoveForward k6
|
|
#define kMarkJumpBack k7
|
|
#define kMarkJumpForward k9
|
|
#define kEditCut k2
|
|
#define kEditTest k8
|
|
|
|
#define RAWKEY(k) (eKeys((k) & ~k_Flags))
|
|
#define ISRAWKEY(k) ((k) != kNone && ((k) & k_Flags) == 0)
|
|
#define NORMALKEY(k) (eKeys((k) & ~k_Repeat))
|
|
#define ISMODELESSKEY(k) (RAWKEY(k) > k9)
|
|
#define ISREALKEY(k) (k != kNone && k != k_Plugin)
|
|
|
|
#define BASICKEY(k) (eKeys((k) & 0xFFFF))
|
|
#define KBDKEY(k) (eKeys(((k) << 16) | kKbd))
|
|
#define KEYKBD(k) (((k) >> 16) & 0xFFFF)
|
|
|
|
struct tKey {
|
|
eKeys type;
|
|
const char *name;
|
|
};
|
|
|
|
class cKey : public cListObject {
|
|
private:
|
|
char *remote;
|
|
char *code;
|
|
eKeys key;
|
|
public:
|
|
cKey(void);
|
|
cKey(const char *Remote, const char *Code, eKeys Key);
|
|
~cKey();
|
|
const char *Remote(void) { return remote; }
|
|
const char *Code(void) { return code; }
|
|
eKeys Key(void) { return key; }
|
|
bool Parse(char *s);
|
|
bool Save(FILE *f);
|
|
static eKeys FromString(const char *Name);
|
|
static const char *ToString(eKeys Key, bool Translate = false);
|
|
};
|
|
|
|
class cKeys : public cConfig<cKey> {
|
|
public:
|
|
bool KnowsRemote(const char *Remote);
|
|
eKeys Get(const char *Remote, const char *Code);
|
|
const char *GetSetup(const char *Remote);
|
|
void PutSetup(const char *Remote, const char *Setup);
|
|
};
|
|
|
|
extern cKeys Keys;
|
|
|
|
#define MAXKEYSINMACRO 16
|
|
|
|
class cKeyMacro : public cListObject {
|
|
private:
|
|
eKeys macro[MAXKEYSINMACRO];
|
|
int numKeys;
|
|
char *plugin;
|
|
public:
|
|
cKeyMacro(void);
|
|
~cKeyMacro();
|
|
bool Parse(char *s);
|
|
int NumKeys(void) const { return numKeys; }
|
|
///< Returns the number of keys in this macro. The first key (with
|
|
///< index 0) is the macro code. The actual macro expansion codes
|
|
///< start at index 1 and go to NumKeys() - 1.
|
|
const eKeys *Macro(void) const { return macro; }
|
|
const char *Plugin(void) const { return plugin; }
|
|
};
|
|
|
|
class cKeyMacros : public cConfig<cKeyMacro> {
|
|
public:
|
|
const cKeyMacro *Get(eKeys Key);
|
|
};
|
|
|
|
extern cKeyMacros KeyMacros;
|
|
|
|
#endif //__KEYS_H
|