1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02: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

View File

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

View File

@ -6425,3 +6425,4 @@ Video Disk Recorder Revision History
- Fixed cFrameDetector::Analyze() in case part of the data has been processed and - 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). 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 a note about not deleting cDeviceHook objects to device.h.
- Added user defined key kUser0 (suggested by Ulf Kiener).

3
keys.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: 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" #include "keys.h"
@ -56,6 +56,7 @@ static tKey keyTable[] = { // "Up" and "Down" must be the first two keys!
{ kRecordings, trNOOP("Key$Recordings") }, { kRecordings, trNOOP("Key$Recordings") },
{ kSetup, trNOOP("Key$Setup") }, { kSetup, trNOOP("Key$Setup") },
{ kCommands, trNOOP("Key$Commands") }, { kCommands, trNOOP("Key$Commands") },
{ kUser0, trNOOP("Key$User0") },
{ kUser1, trNOOP("Key$User1") }, { kUser1, trNOOP("Key$User1") },
{ kUser2, trNOOP("Key$User2") }, { kUser2, trNOOP("Key$User2") },
{ kUser3, trNOOP("Key$User3") }, { kUser3, trNOOP("Key$User3") },

4
keys.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: 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 #ifndef __KEYS_H
@ -50,7 +50,7 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
kRecordings, kRecordings,
kSetup, kSetup,
kCommands, kCommands,
kUser1, kUser2, kUser3, kUser4, kUser5, kUser6, kUser7, kUser8, kUser9, kUser0, kUser1, kUser2, kUser3, kUser4, kUser5, kUser6, kUser7, kUser8, kUser9,
kNone, kNone,
kKbd, kKbd,
// The following codes are used internally: // The following codes are used internally:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

4
vdr.c
View File

@ -22,7 +22,7 @@
* *
* The project's page is at http://www.tvdr.de * 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> #include <getopt.h>
@ -992,7 +992,7 @@ int main(int argc, char *argv[])
case kRecordings: DirectMainFunction(osRecordings); break; case kRecordings: DirectMainFunction(osRecordings); break;
case kSetup: DirectMainFunction(osSetup); break; case kSetup: DirectMainFunction(osSetup); break;
case kCommands: DirectMainFunction(osCommands); 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: { case k_Plugin: {
const char *PluginName = cRemote::GetPlugin(); const char *PluginName = cRemote::GetPlugin();
if (PluginName) { if (PluginName) {