1
0
mirror of https://github.com/vdr-projects/vdr.git synced 2025-03-01 10:50:46 +00:00

Added user defined key kUser0

This commit is contained in:
Klaus Schmidinger 2010-04-05 10:14:19 +02:00
parent c270adfaa5
commit 7a5d64a984
31 changed files with 86 additions and 5 deletions

@ -2337,6 +2337,7 @@ Boguslaw Juza <bogdan@uci.agh.edu.pl>
Ulf Kiener <webmaster@ulf-kiener.de>
for reporting a problem with audio track descriptions in the DVD plugin after a
replay has been stopped
for suggesting to add user defined key kUser0
Jörg Wendel <vdr-ml@jwendel.de>
for reporting that cPlugin::Active() was called too often

@ -6425,3 +6425,4 @@ Video Disk Recorder Revision History
- Fixed cFrameDetector::Analyze() in case part of the data has been processed and
there is less than MIN_TS_PACKETS_FOR_FRAME_DETECTOR left (reported by Derek Kelly).
- Added a note about not deleting cDeviceHook objects to device.h.
- Added user defined key kUser0 (suggested by Ulf Kiener).

3
keys.c

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: keys.c 1.17 2008/02/10 14:08:48 kls Exp $
* $Id: keys.c 2.1 2010/04/05 10:05:58 kls Exp $
*/
#include "keys.h"
@ -56,6 +56,7 @@ static tKey keyTable[] = { // "Up" and "Down" must be the first two keys!
{ kRecordings, trNOOP("Key$Recordings") },
{ kSetup, trNOOP("Key$Setup") },
{ kCommands, trNOOP("Key$Commands") },
{ kUser0, trNOOP("Key$User0") },
{ kUser1, trNOOP("Key$User1") },
{ kUser2, trNOOP("Key$User2") },
{ kUser3, trNOOP("Key$User3") },

4
keys.h

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: keys.h 1.14 2007/09/26 12:34:50 kls Exp $
* $Id: keys.h 2.1 2010/04/05 10:06:04 kls Exp $
*/
#ifndef __KEYS_H
@ -50,7 +50,7 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
kRecordings,
kSetup,
kCommands,
kUser1, kUser2, kUser3, kUser4, kUser5, kUser6, kUser7, kUser8, kUser9,
kUser0, kUser1, kUser2, kUser3, kUser4, kUser5, kUser6, kUser7, kUser8, kUser9,
kNone,
kKbd,
// The following codes are used internally:

@ -478,6 +478,9 @@ msgstr "Configuraci
msgid "Key$Commands"
msgstr "Ordres"
msgid "Key$User0"
msgstr "Usuari 0"
msgid "Key$User1"
msgstr "Usuari 1"

@ -476,6 +476,9 @@ msgstr "Nastaven
msgid "Key$Commands"
msgstr "Pøíkazy"
msgid "Key$User0"
msgstr "U¾ivatel0"
msgid "Key$User1"
msgstr "U¾ivatel1"

@ -475,6 +475,9 @@ msgstr "Indstillinger"
msgid "Key$Commands"
msgstr "Kommandoer"
msgid "Key$User0"
msgstr "Bruger0"
msgid "Key$User1"
msgstr "Bruger1"

@ -475,6 +475,9 @@ msgstr "Einstellungen"
msgid "Key$Commands"
msgstr "Befehle"
msgid "Key$User0"
msgstr "Benutzer0"
msgid "Key$User1"
msgstr "Benutzer1"

@ -475,6 +475,9 @@ msgstr "
msgid "Key$Commands"
msgstr "ÅíôïëÝò"
msgid "Key$User0"
msgstr ""
msgid "Key$User1"
msgstr ""

@ -476,6 +476,9 @@ msgstr "Configuraci
msgid "Key$Commands"
msgstr "Órdenes"
msgid "Key$User0"
msgstr "Usuario 0"
msgid "Key$User1"
msgstr "Usuario 1"

@ -475,6 +475,9 @@ msgstr "S
msgid "Key$Commands"
msgstr "Käsud"
msgid "Key$User0"
msgstr "Lisaklahv0"
msgid "Key$User1"
msgstr "Lisaklahv1"

@ -478,6 +478,9 @@ msgstr "Asetukset"
msgid "Key$Commands"
msgstr "Komennot"
msgid "Key$User0"
msgstr "Lisänäppäin 0"
msgid "Key$User1"
msgstr "Lisänäppäin 1"

@ -481,6 +481,9 @@ msgstr "Configuration"
msgid "Key$Commands"
msgstr "Commandes"
msgid "Key$User0"
msgstr "Utilisateur0"
msgid "Key$User1"
msgstr "Utilisateur1"

@ -477,6 +477,9 @@ msgstr "Postavke"
msgid "Key$Commands"
msgstr "Naredbe"
msgid "Key$User0"
msgstr "Korisnik0"
msgid "Key$User1"
msgstr "Korisnik1"

@ -478,6 +478,9 @@ msgstr "Be
msgid "Key$Commands"
msgstr "Parancsok"
msgid "Key$User0"
msgstr "Felhasználó0"
msgid "Key$User1"
msgstr "Felhasználó1"

@ -482,6 +482,9 @@ msgstr "Opzioni"
msgid "Key$Commands"
msgstr "Comandi"
msgid "Key$User0"
msgstr "Utente0"
msgid "Key$User1"
msgstr "Utente1"

@ -475,6 +475,9 @@ msgstr "Nustatymai"
msgid "Key$Commands"
msgstr "Komandos"
msgid "Key$User0"
msgstr "Vartotojas0"
msgid "Key$User1"
msgstr "Vartotojas1"

@ -476,6 +476,9 @@ msgstr "Уредување"
msgid "Key$Commands"
msgstr "Наредби"
msgid "Key$User0"
msgstr "Корисник0"
msgid "Key$User1"
msgstr "Корисник1"

@ -479,6 +479,9 @@ msgstr "Instellingen"
msgid "Key$Commands"
msgstr "Commando's"
msgid "Key$User0"
msgstr "Gebruiker0"
msgid "Key$User1"
msgstr "Gebruiker1"

@ -476,6 +476,9 @@ msgstr "Konfigurasjon"
msgid "Key$Commands"
msgstr "Kommandoer"
msgid "Key$User0"
msgstr ""
msgid "Key$User1"
msgstr ""

@ -476,6 +476,9 @@ msgstr "Ustawienia"
msgid "Key$Commands"
msgstr "Polecenia"
msgid "Key$User0"
msgstr "U¿ytkownik 0"
msgid "Key$User1"
msgstr "U¿ytkownik 1"

@ -475,6 +475,9 @@ msgstr "Configura
msgid "Key$Commands"
msgstr "Comandos"
msgid "Key$User0"
msgstr "Definida0"
msgid "Key$User1"
msgstr "Definida1"

@ -478,6 +478,9 @@ msgstr "Configura
msgid "Key$Commands"
msgstr "Comenzi"
msgid "Key$User0"
msgstr "Utilizator0"
msgid "Key$User1"
msgstr "Utilizator1"

@ -476,6 +476,9 @@ msgstr "
msgid "Key$Commands"
msgstr "Команды"
msgid "Key$User0"
msgstr "Пользователь0"
msgid "Key$User1"
msgstr "Пользователь1"

@ -476,6 +476,9 @@ msgstr "Nastavenie"
msgid "Key$Commands"
msgstr "Príkazy"
msgid "Key$User0"
msgstr "U¾ívateµ0"
msgid "Key$User1"
msgstr "U¾ívateµ1"

@ -476,6 +476,9 @@ msgstr "Nastavitve"
msgid "Key$Commands"
msgstr "Ukazi"
msgid "Key$User0"
msgstr "Uporabnik0"
msgid "Key$User1"
msgstr "Uporabnik1"

@ -478,6 +478,9 @@ msgstr "Inst
msgid "Key$Commands"
msgstr "Kommandon"
msgid "Key$User0"
msgstr "Användare0"
msgid "Key$User1"
msgstr "Användare1"

@ -475,6 +475,9 @@ msgstr "Ayarlar"
msgid "Key$Commands"
msgstr "Komutlar"
msgid "Key$User0"
msgstr "Kullanıcı0"
msgid "Key$User1"
msgstr "Kullanıcı1"

@ -475,6 +475,9 @@ msgstr "Налаштування"
msgid "Key$Commands"
msgstr "Команди"
msgid "Key$User0"
msgstr "Користувач0"
msgid "Key$User1"
msgstr "Користувач1"

@ -478,6 +478,9 @@ msgstr "设置"
msgid "Key$Commands"
msgstr "命令"
msgid "Key$User0"
msgstr "用户0"
msgid "Key$User1"
msgstr "用户1"

4
vdr.c

@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
* $Id: vdr.c 2.18 2010/04/02 12:22:11 kls Exp $
* $Id: vdr.c 2.19 2010/04/05 10:06:16 kls Exp $
*/
#include <getopt.h>
@ -992,7 +992,7 @@ int main(int argc, char *argv[])
case kRecordings: DirectMainFunction(osRecordings); break;
case kSetup: DirectMainFunction(osSetup); break;
case kCommands: DirectMainFunction(osCommands); break;
case kUser1 ... kUser9: cRemote::PutMacro(key); key = kNone; break;
case kUser0 ... kUser9: cRemote::PutMacro(key); key = kNone; break;
case k_Plugin: {
const char *PluginName = cRemote::GetPlugin();
if (PluginName) {