mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
- Added scanning for EPG data for another 4 days on channels that support this (thanks to Oleg Assovski). - Removed '#define VFAT 1' from recording.c (was a leftover from testing). - Fixed the "Low disk space!" message (thanks to Sergei Haller). - Added the TPID to Hessen-3 in 'channels.conf' (thanks to Sergei Haller). - Fixed a crash when replaying with DEBUG_OSD=1 (thanks to Stefan Huelswitt). - Implemented the "First day" parameter for repeating timers. See FORMATS for information about the enhanced 'timers.conf' file format, and MANUAL for a description of the new item in the "Edit Timer" menu and the enhanced functionality of the "Blue" button in the "Timers" menu. - When deleting a recording that is currently still being recorded, the related timer will now automatically be terminated. If this is a repeating timer, it will receive a "First day" setting that skips the timer for this day. - Fixed closing all unused file descriptors when opening a pipe (thanks to Werner Fink). - Instant recordings now take the EPG data from the point in time at 5 minutes from the start time of the recording. In order for this to work the 'active' parameter of a timer now uses the second bit to indicate that this is an "instant" recording (see FORMATS for details). - Fixed the SVDRP GRAB command in case the video device can't be opened (thanks to Adrian Stabiszewski). - At startup the data written into 'epg.data' is now read into the EPG data structures. In order for this to work, the 'E' record has been extended to (optionally) contain the 'table ID' (see FORMATS for details). - The new SVDRP command PUTE can be used to put EPG data into the EPG list. See FORMATS for details about the required data format. - Taking the German umlauts 'as is' when compiled with VFAT. - The new Setup parameter RecordDolbyDigital can be used to generally turn off recording the Dolby Digital audio channels in case you want to save disk space or don't have the equipment to replay Dolby Digital audio. - Reading the 'setup.conf' file no longer terminates in case of an error, but rather attempts to read the rest of the file. - Removed DVD support from the core VDR source, since the current version from Andreas Schultz is already much further developed (DVD menu navigation) and the concept of "additional players" in VDR is going to change in version 1.1.0, where a new "plugin" interface shall allow the easy implementation of new players without having to patch the core VDR source. Until then, Andreas has agreed to provide his DVD support as a completely external patch. - The contents of the distribution archive now contains the directory name with the current version number, as in 'vdr-1.0.0pre1/...' in order to avoid inadvertently overwriting an existing VDR directory with a new version. - Added a missing error message in SVDRP command LSTC in case the given channel can't be found.
111 lines
3.1 KiB
C++
111 lines
3.1 KiB
C++
/*
|
|
* osd.h: Abstract On Screen Display layer
|
|
*
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
* how to reach the author.
|
|
*
|
|
* $Id: osd.h 1.26 2002/02/24 12:55:16 kls Exp $
|
|
*/
|
|
|
|
#ifndef __OSD_H
|
|
#define __OSD_H
|
|
|
|
#include "config.h"
|
|
#include "interface.h"
|
|
#include "tools.h"
|
|
|
|
#define MAXOSDITEMS (Setup.OSDheight - 4)
|
|
|
|
enum eOSState { osUnknown,
|
|
osMenu,
|
|
osContinue,
|
|
osSchedule,
|
|
osChannels,
|
|
osTimers,
|
|
osRecordings,
|
|
osSetup,
|
|
osCommands,
|
|
osRecord,
|
|
osReplay,
|
|
osStopRecord,
|
|
osStopReplay,
|
|
osCancelEdit,
|
|
osSwitchDvb,
|
|
osBack,
|
|
osEnd,
|
|
};
|
|
|
|
class cOsdItem : public cListObject {
|
|
private:
|
|
const char *text;
|
|
int offset;
|
|
eOSState state;
|
|
protected:
|
|
bool fresh;
|
|
bool userColor;
|
|
eDvbColor fgColor, bgColor;
|
|
public:
|
|
cOsdItem(eOSState State = osUnknown);
|
|
cOsdItem(const char *Text, eOSState State = osUnknown);
|
|
virtual ~cOsdItem();
|
|
bool HasUserColor(void) { return userColor; }
|
|
void SetText(const char *Text, bool Copy = true);
|
|
void SetColor(eDvbColor FgColor, eDvbColor BgColor = clrBackground);
|
|
const char *Text(void) { return text; }
|
|
virtual void Display(int Offset = -1, eDvbColor FgColor = clrWhite, eDvbColor BgColor = clrBackground);
|
|
virtual void Set(void) {}
|
|
virtual eOSState ProcessKey(eKeys Key);
|
|
};
|
|
|
|
class cOsdBase {
|
|
protected:
|
|
bool needsFastResponse;
|
|
public:
|
|
cOsdBase(bool FastResponse = false) { needsFastResponse = FastResponse; }
|
|
virtual ~cOsdBase() {}
|
|
int Width(void) { return Interface->Width(); }
|
|
int Height(void) { return Interface->Height(); }
|
|
bool NeedsFastResponse(void) { return needsFastResponse; }
|
|
virtual eOSState ProcessKey(eKeys Key) = 0;
|
|
};
|
|
|
|
class cOsdMenu : public cOsdBase, public cList<cOsdItem> {
|
|
private:
|
|
char *title;
|
|
int cols[cInterface::MaxCols];
|
|
int first, current, marked;
|
|
cOsdMenu *subMenu;
|
|
const char *helpRed, *helpGreen, *helpYellow, *helpBlue;
|
|
const char *status;
|
|
bool hasHotkeys;
|
|
protected:
|
|
bool visible;
|
|
virtual void Clear(void);
|
|
bool SpecialItem(int idx);
|
|
void SetCurrent(cOsdItem *Item);
|
|
void RefreshCurrent(void);
|
|
void DisplayCurrent(bool Current);
|
|
void CursorUp(void);
|
|
void CursorDown(void);
|
|
void PageUp(void);
|
|
void PageDown(void);
|
|
void Mark(void);
|
|
eOSState HotKey(eKeys Key);
|
|
eOSState AddSubMenu(cOsdMenu *SubMenu);
|
|
bool HasSubMenu(void) { return subMenu; }
|
|
void SetStatus(const char *s);
|
|
void SetTitle(const char *Title, bool ShowDate = true);
|
|
void SetHelp(const char *Red, const char *Green = NULL, const char *Yellow = NULL, const char *Blue = NULL);
|
|
virtual void Del(int Index);
|
|
public:
|
|
cOsdMenu(const char *Title, int c0 = 0, int c1 = 0, int c2 = 0, int c3 = 0, int c4 = 0);
|
|
virtual ~cOsdMenu();
|
|
void SetHasHotkeys(void) { hasHotkeys = true; }
|
|
int Current(void) { return current; }
|
|
void Add(cOsdItem *Item, bool Current = false);
|
|
void Display(void);
|
|
virtual eOSState ProcessKey(eKeys Key);
|
|
};
|
|
|
|
#endif //__OSD_H
|