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>
|
||||
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)
|
||||
- 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
|
||||
again stops it. Pressing and holding down the key starts the function and
|
||||
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
|
||||
the page (this mode allows for faster scrolling
|
||||
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
|
||||
* 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"
|
||||
@ -303,7 +303,7 @@ cTimer::cTimer(bool Instant)
|
||||
*file = 0;
|
||||
summary = NULL;
|
||||
if (Instant && ch)
|
||||
snprintf(file, sizeof(file), "@%s", ch->name);
|
||||
snprintf(file, sizeof(file), "%s%s", Setup.MarkInstantRecord ? "@" : "", ch->name);
|
||||
}
|
||||
|
||||
cTimer::~cTimer()
|
||||
@ -596,6 +596,7 @@ cSetup::cSetup(void)
|
||||
PrimaryDVB = 1;
|
||||
ShowInfoOnChSwitch = 1;
|
||||
MenuScrollPage = 1;
|
||||
MarkInstantRecord = 1;
|
||||
}
|
||||
|
||||
bool cSetup::Parse(char *s)
|
||||
@ -607,6 +608,7 @@ bool cSetup::Parse(char *s)
|
||||
if (!strcasecmp(Name, "PrimaryDVB")) PrimaryDVB = atoi(Value);
|
||||
else if (!strcasecmp(Name, "ShowInfoOnChSwitch")) ShowInfoOnChSwitch = atoi(Value);
|
||||
else if (!strcasecmp(Name, "MenuScrollPage")) MenuScrollPage = atoi(Value);
|
||||
else if (!strcasecmp(Name, "MarkInstantRecord")) MarkInstantRecord = atoi(Value);
|
||||
else
|
||||
return false;
|
||||
return true;
|
||||
@ -651,6 +653,7 @@ bool cSetup::Save(const char *FileName)
|
||||
fprintf(f, "PrimaryDVB = %d\n", PrimaryDVB);
|
||||
fprintf(f, "ShowInfoOnChSwitch = %d\n", ShowInfoOnChSwitch);
|
||||
fprintf(f, "MenuScrollPage = %d\n", MenuScrollPage);
|
||||
fprintf(f, "MarkInstantRecord = %d\n", MarkInstantRecord);
|
||||
fclose(f);
|
||||
isyslog(LOG_INFO, "saved setup to %s", FileName);
|
||||
return true;
|
||||
|
3
config.h
3
config.h
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* 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
|
||||
@ -230,6 +230,7 @@ public:
|
||||
int PrimaryDVB;
|
||||
int ShowInfoOnChSwitch;
|
||||
int MenuScrollPage;
|
||||
int MarkInstantRecord;
|
||||
cSetup(void);
|
||||
bool Load(const char *FileName);
|
||||
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
|
||||
* 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"
|
||||
@ -1094,6 +1094,7 @@ cMenuSetup::cMenuSetup(void)
|
||||
Add(new cMenuEditIntItem( "PrimaryDVB", &data.PrimaryDVB, 1, cDvbApi::NumDvbApis));
|
||||
Add(new cMenuEditBoolItem("ShowInfoOnChSwitch", &data.ShowInfoOnChSwitch));
|
||||
Add(new cMenuEditBoolItem("MenuScrollPage", &data.MenuScrollPage));
|
||||
Add(new cMenuEditBoolItem("MarkInstantRecord", &data.MarkInstantRecord));
|
||||
}
|
||||
|
||||
eOSState cMenuSetup::ProcessKey(eKeys Key)
|
||||
|
Loading…
Reference in New Issue
Block a user