mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Implemented MarkInstantRecord setup option
This commit is contained in:
parent
19f9f9cfce
commit
a1a52fe11f
@ -34,3 +34,6 @@ Martin Hammerschmid <martin@hammerschmid.com>
|
|||||||
|
|
||||||
Bastian Guse <bastian@nocopy.de>
|
Bastian Guse <bastian@nocopy.de>
|
||||||
for writing the FORMATS entry for timers.conf
|
for writing the FORMATS entry for timers.conf
|
||||||
|
|
||||||
|
Matthias Schniedermeyer <ms@citd.de>
|
||||||
|
for implementing the 'MarkInstantRecord' setup option.
|
||||||
|
8
FORMATS
8
FORMATS
@ -55,3 +55,11 @@ Video Disk Recorder File Formats
|
|||||||
- Name of timer (will be used to name the recording)
|
- Name of timer (will be used to name the recording)
|
||||||
- Summary
|
- Summary
|
||||||
|
|
||||||
|
* setup.conf
|
||||||
|
|
||||||
|
This file contains the basic configuration options for VDR.
|
||||||
|
|
||||||
|
Each line contains one option in the format "Name = Value".
|
||||||
|
|
||||||
|
See the MANUAL file for a description of the available options.
|
||||||
|
|
||||||
|
2
HISTORY
2
HISTORY
@ -231,3 +231,5 @@ Video Disk Recorder Revision History
|
|||||||
Pressing the key shortly and releasing it starts the function, and pressing it
|
Pressing the key shortly and releasing it starts the function, and pressing it
|
||||||
again stops it. Pressing and holding down the key starts the function and
|
again stops it. Pressing and holding down the key starts the function and
|
||||||
releasing the key stops it.
|
releasing the key stops it.
|
||||||
|
- The '@' character that marks an "instant recording" can now be turned off
|
||||||
|
in the "Setup" menu (thanks to Matthias Schniedermeyer).
|
||||||
|
8
MANUAL
8
MANUAL
@ -201,3 +201,11 @@ Video Disk Recorder User's Manual
|
|||||||
1 = dto., but the cursor remains at the bottom (top) of
|
1 = dto., but the cursor remains at the bottom (top) of
|
||||||
the page (this mode allows for faster scrolling
|
the page (this mode allows for faster scrolling
|
||||||
through long lists).
|
through long lists).
|
||||||
|
|
||||||
|
MarkInstantRecord = 1 Defines whether an "instant recording" (started by
|
||||||
|
pressing the "Red" button in the main menu) will be
|
||||||
|
marked with a '@' character to make it distinguishable
|
||||||
|
from timer recordings in the "Recordings" menu.
|
||||||
|
0 = instant recordings will not be marked
|
||||||
|
1 = instant recordings will be marked.
|
||||||
|
|
||||||
|
7
config.c
7
config.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: config.c 1.24 2000/10/08 12:19:21 kls Exp $
|
* $Id: config.c 1.25 2000/10/08 12:41:59 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -303,7 +303,7 @@ cTimer::cTimer(bool Instant)
|
|||||||
*file = 0;
|
*file = 0;
|
||||||
summary = NULL;
|
summary = NULL;
|
||||||
if (Instant && ch)
|
if (Instant && ch)
|
||||||
snprintf(file, sizeof(file), "@%s", ch->name);
|
snprintf(file, sizeof(file), "%s%s", Setup.MarkInstantRecord ? "@" : "", ch->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
cTimer::~cTimer()
|
cTimer::~cTimer()
|
||||||
@ -596,6 +596,7 @@ cSetup::cSetup(void)
|
|||||||
PrimaryDVB = 1;
|
PrimaryDVB = 1;
|
||||||
ShowInfoOnChSwitch = 1;
|
ShowInfoOnChSwitch = 1;
|
||||||
MenuScrollPage = 1;
|
MenuScrollPage = 1;
|
||||||
|
MarkInstantRecord = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cSetup::Parse(char *s)
|
bool cSetup::Parse(char *s)
|
||||||
@ -607,6 +608,7 @@ bool cSetup::Parse(char *s)
|
|||||||
if (!strcasecmp(Name, "PrimaryDVB")) PrimaryDVB = atoi(Value);
|
if (!strcasecmp(Name, "PrimaryDVB")) PrimaryDVB = atoi(Value);
|
||||||
else if (!strcasecmp(Name, "ShowInfoOnChSwitch")) ShowInfoOnChSwitch = atoi(Value);
|
else if (!strcasecmp(Name, "ShowInfoOnChSwitch")) ShowInfoOnChSwitch = atoi(Value);
|
||||||
else if (!strcasecmp(Name, "MenuScrollPage")) MenuScrollPage = atoi(Value);
|
else if (!strcasecmp(Name, "MenuScrollPage")) MenuScrollPage = atoi(Value);
|
||||||
|
else if (!strcasecmp(Name, "MarkInstantRecord")) MarkInstantRecord = atoi(Value);
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
@ -651,6 +653,7 @@ bool cSetup::Save(const char *FileName)
|
|||||||
fprintf(f, "PrimaryDVB = %d\n", PrimaryDVB);
|
fprintf(f, "PrimaryDVB = %d\n", PrimaryDVB);
|
||||||
fprintf(f, "ShowInfoOnChSwitch = %d\n", ShowInfoOnChSwitch);
|
fprintf(f, "ShowInfoOnChSwitch = %d\n", ShowInfoOnChSwitch);
|
||||||
fprintf(f, "MenuScrollPage = %d\n", MenuScrollPage);
|
fprintf(f, "MenuScrollPage = %d\n", MenuScrollPage);
|
||||||
|
fprintf(f, "MarkInstantRecord = %d\n", MarkInstantRecord);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
isyslog(LOG_INFO, "saved setup to %s", FileName);
|
isyslog(LOG_INFO, "saved setup to %s", FileName);
|
||||||
return true;
|
return true;
|
||||||
|
3
config.h
3
config.h
@ -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: config.h 1.24 2000/10/08 10:38:17 kls Exp $
|
* $Id: config.h 1.25 2000/10/08 12:39:00 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
@ -230,6 +230,7 @@ public:
|
|||||||
int PrimaryDVB;
|
int PrimaryDVB;
|
||||||
int ShowInfoOnChSwitch;
|
int ShowInfoOnChSwitch;
|
||||||
int MenuScrollPage;
|
int MenuScrollPage;
|
||||||
|
int MarkInstantRecord;
|
||||||
cSetup(void);
|
cSetup(void);
|
||||||
bool Load(const char *FileName);
|
bool Load(const char *FileName);
|
||||||
bool Save(const char *FileName = NULL);
|
bool Save(const char *FileName = NULL);
|
||||||
|
3
menu.c
3
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.32 2000/10/08 12:20:03 kls Exp $
|
* $Id: menu.c 1.33 2000/10/08 12:44:00 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -1094,6 +1094,7 @@ cMenuSetup::cMenuSetup(void)
|
|||||||
Add(new cMenuEditIntItem( "PrimaryDVB", &data.PrimaryDVB, 1, cDvbApi::NumDvbApis));
|
Add(new cMenuEditIntItem( "PrimaryDVB", &data.PrimaryDVB, 1, cDvbApi::NumDvbApis));
|
||||||
Add(new cMenuEditBoolItem("ShowInfoOnChSwitch", &data.ShowInfoOnChSwitch));
|
Add(new cMenuEditBoolItem("ShowInfoOnChSwitch", &data.ShowInfoOnChSwitch));
|
||||||
Add(new cMenuEditBoolItem("MenuScrollPage", &data.MenuScrollPage));
|
Add(new cMenuEditBoolItem("MenuScrollPage", &data.MenuScrollPage));
|
||||||
|
Add(new cMenuEditBoolItem("MarkInstantRecord", &data.MarkInstantRecord));
|
||||||
}
|
}
|
||||||
|
|
||||||
eOSState cMenuSetup::ProcessKey(eKeys Key)
|
eOSState cMenuSetup::ProcessKey(eKeys Key)
|
||||||
|
Loading…
Reference in New Issue
Block a user