mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Implemented kChanPrev
This commit is contained in:
parent
4611af4339
commit
50b77a6d4b
@ -1478,6 +1478,7 @@ Darren Salt <linux@youmustbejoking.demon.co.uk>
|
||||
for fixing format string handling
|
||||
for suggesting to add NULL checks to some strdup() calls in menuitems.c
|
||||
for reporting a missing "Key$" in skincurses.c
|
||||
for a patch that was used to implement kChanPrev
|
||||
|
||||
Sean Carlos <seanc@libero.it>
|
||||
for translating OSD texts to the Italian language
|
||||
|
1
HISTORY
1
HISTORY
@ -4536,3 +4536,4 @@ Video Disk Recorder Revision History
|
||||
plugins' Makefiles. Thanks to Marco Schlüßler for pointing out this problem.
|
||||
- Implemented kNext and kPrev keys (based on a patch from Peter Juszack).
|
||||
See MANUAL for details.
|
||||
- Implemented kChanPrev (from a patch from Darren Salt).
|
||||
|
1
MANUAL
1
MANUAL
@ -50,6 +50,7 @@ Version 1.3
|
||||
|
||||
Channel+ channel up
|
||||
Channel- channel down
|
||||
PrevChannel previous channel
|
||||
|
||||
Power shutdown
|
||||
|
||||
|
24
i18n.c
24
i18n.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: i18n.c 1.259 2006/04/15 13:39:35 kls Exp $
|
||||
* $Id: i18n.c 1.260 2006/04/15 13:53:23 kls Exp $
|
||||
*
|
||||
* Translations provided by:
|
||||
*
|
||||
@ -5399,6 +5399,28 @@ const tI18nPhrase Phrases[] = {
|
||||
"Kanal-",
|
||||
"Kanál-",
|
||||
},
|
||||
{ "Key$PrevChannel",
|
||||
"Vorheriger Kanal",
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
"",// TODO
|
||||
},
|
||||
{ "Key$Volume+",
|
||||
"Lautstärke+",
|
||||
"Glasnost+",
|
||||
|
3
keys.c
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.12 2006/04/15 13:35:07 kls Exp $
|
||||
* $Id: keys.c 1.13 2006/04/15 13:50:43 kls Exp $
|
||||
*/
|
||||
|
||||
#include "keys.h"
|
||||
@ -44,6 +44,7 @@ static tKey keyTable[] = { // "Up" and "Down" must be the first two keys!
|
||||
{ kPower, "Power" },
|
||||
{ kChanUp, "Channel+" },
|
||||
{ kChanDn, "Channel-" },
|
||||
{ kChanPrev, "PrevChannel"},
|
||||
{ kVolUp, "Volume+" },
|
||||
{ kVolDn, "Volume-" },
|
||||
{ kMute, "Mute" },
|
||||
|
3
keys.h
3
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.8 2006/04/15 13:34:08 kls Exp $
|
||||
* $Id: keys.h 1.9 2006/04/15 13:56:03 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __KEYS_H
|
||||
@ -38,6 +38,7 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
|
||||
kPower,
|
||||
kChanUp,
|
||||
kChanDn,
|
||||
kChanPrev,
|
||||
kVolUp,
|
||||
kVolDn,
|
||||
kMute,
|
||||
|
3
vdr.c
3
vdr.c
@ -22,7 +22,7 @@
|
||||
*
|
||||
* The project's page is at http://www.cadsoft.de/vdr
|
||||
*
|
||||
* $Id: vdr.c 1.259 2006/04/15 13:35:40 kls Exp $
|
||||
* $Id: vdr.c 1.260 2006/04/15 13:51:52 kls Exp $
|
||||
*/
|
||||
|
||||
#include <getopt.h>
|
||||
@ -1053,6 +1053,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
switch (key) {
|
||||
// Toggle channels:
|
||||
case kChanPrev:
|
||||
case k0: {
|
||||
if (PreviousChannel[PreviousChannelIndex ^ 1] == LastChannel || LastChannel != PreviousChannel[0] && LastChannel != PreviousChannel[1])
|
||||
PreviousChannelIndex ^= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user