diff options
author | Klaus Schmidinger <Klaus (dot) Schmidinger (at) tvdr (dot) de> | 2012-12-08 12:38:00 +0100 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2012-12-26 17:18:12 +0100 |
commit | 5109addf9c03d62cc51779a10089b591cd759811 (patch) | |
tree | d06ec74376f81825f43e0822f438627da94fa5fd /skins.h | |
parent | beffcabc81cff46d620b1662d03e4da4dbd6b678 (diff) | |
download | vdr-patches-5109addf9c03d62cc51779a10089b591cd759811.tar.gz vdr-patches-5109addf9c03d62cc51779a10089b591cd759811.tar.bz2 |
Version 1.7.33
VDR developer version 1.7.33 is now available at
ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.33.tar.bz2
A 'diff' against the previous version is available at
ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.32-1.7.33.diff
MD5 checksums:
7c21451360ac7959d0d95e533d34451c vdr-1.7.33.tar.bz2
c79257198f8569bc02f43dc470ee3076 vdr-1.7.32-1.7.33.diff
WARNING:
========
This is a developer version. Even though I use it in my productive
environment. I strongly recommend that you only use it under controlled
conditions and for testing and debugging.
IMPORTANT:
==========
This version of VDR no longer sets LC_NUMERIC to "C" in order to make
sure any floating point numbers written to configuration files use a
proper decimal point. It rather explicitly converts such numbers using the
new functions atod() and dtoa().
IF YOU USE PLUGINS THAT STORE FLOATING POINT NUMBERS IN THEIR OWN CONFIGURATION
FILES, YOU SHOULD SET
export LC_NUMERIC=C
BEFORE RUNNING VDR, UNTIL THESE PLUGINS HAVE BEEN PROPERLY UPDATED.
From the HISTORY file:
- In order to be able to play TS recordings from other sources, in which there is
more than one PMT PID in the PAT, 'int cPatPmtParser::PatPmt(void)' has been changed
to 'bool cPatPmtParser::IsPatPmt(int Pid)'.
- Fixed learning remote control keys with the LCARS skin.
- Updated the Macedonian OSD texts (thanks to Dimitar Petrovski).
- Fixed getting only non-video packets in cCuttingThread::GetPendingPackets() (reported
by Sören Moch).
- Changed all occurrences of MPEG4 to H264 (pointed out by Sören Moch).
- Fixed getting the number of editing sequences in case the last sequence has no actual
end mark.
- The cutter now only increments the TS continuity counter for packets that have a
payload (pointed out by Sören Moch).
- Fixed adjusting the DTS values in the cutter, to compensate for dropped B-frames
(pointed out by Sören Moch).
- Fixed a typo in skins.h (thanks to Lars Hanisch).
- Simplified calculating the PTS offset in cPtsFixer::Fix() and fixed the overflow
handling of PCR values (thanks to Sören Moch).
- Fixed calling iconv_close() only with a valid iconv_t value (thanks to Juergen Lock).
- Fixed faulty opening of the Recordings menu when pressing the Play key during normal
live viewing mode in case there is a "last viewed" recording.
- Fixed some #include statements in plugins to use <vdr/...> instead of "vdr/..."
(thanks to Lars Hanisch).
- Fixed some spellings in osd.h and svdrp.c (thanks to Ville Skyttä).
- Fixed handling lowercase polarization characters in channel definitions if no DiSEqC
is used (reported by Mike Hay, actual bug pointed out by Stefan Huelswitt).
- Synchronizing system time to the transponder time is now done using adjtime() in order
to avoid discontinuities (suggested by Manuel Reimer). If the time difference is more
than 10 seconds, stime() is still used to do the initial sync.
- The '7' and '9' keys now jump to the very beginning or end, respectively, of the
recording, even if there is no mark set at that point (following a request from
Andre Weidemann).
- Now always setting the TDT EIT filter, because otherwise when turning on using the
transponder time in the Setup menu, it would only be used after the next restart
of VDR (thanks to Sundararaj Reel).
- The new functions cDevice::CanScaleVideo() and cDevice::ScaleVideo() can be used by
derived output devices to implement scaling the video to a given size and location
(based on a suggestion by Lucian Muresan).
- The SVDRP command HITK now discards any keys if the remote control is currently
turned off (thanks to Alexander Hans).
- The new remote control key "Play/Pause" can be used with remote controls that don't
have separate keys for "Play" and "Pause", but rather have a single key for both
functions (thanks to Stefan Hofmann for suggesting to implement support for such
remote controls).
- The new option "Setup/Replay/Pause on mark set" can be used to activate automatically
going into Pause mode if an editing mark is set during replay (suggested by Andre
Weidemann).
- When regenerating the index of a recording, the frame rate stored in the info file
is now automatically fixed if it differs from the value detected by the frame
detector.
- Fixed creating the edited version directory if a relative file name is given in
the call to 'vdr --edit' (the '/video' part was stripped from the given file name
even if it wasn't there).
- The new option "Setup/Replay/Progress display time" can be used to activate
automatically displaying the progress display whenever replay of a recording is
started (suggested by Stefan Blochberger).
- Changed reading and writing of floating point numbers into configuration files to
make it independent of the decimal point used in the current locale. All calls to
atof() have been replaced with the new function atod(), which makes sure the string
representation of a floating point number using a '.' as decimal point will be
handled correctly, even if the locale in use expects a ',' as the decimal point.
Plugins that read floating point numbers from their own configuration files will
also need to use atod() for this, or use a method of their own (this is not necessary
if values are stored in VDR's setup.conf file, because VDR takes care of this).
The reason for these changes is that floating point numbers presented to the user
shall be displayed in the way defined by the current locale (suggested by Stefan
Blochberger).
If you use plugins that store floating point values in configuration files of their
own and have not yet been adapted to this change, you should set
export LC_NUMERIC=C
before running VDR. Otherwise your plugin's configuration data may not be read or
written correctly.
- The new functions SetItemEvent(), SetItemTimer(), SetItemChannel() and
SetItemRecording() of the cSkinDisplayMenu class can be reimplemented by skin
plugins to display these items in a more elaborate way than just a simple line of
text.
Diffstat (limited to 'skins.h')
-rw-r--r-- | skins.h | 49 |
1 files changed, 40 insertions, 9 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skins.h 2.5 2012/05/12 11:10:30 kls Exp $ + * $Id: skins.h 2.7 2012/12/07 17:18:44 kls Exp $ */ #ifndef __SKINS_H @@ -17,6 +17,7 @@ #include "recording.h" #include "themes.h" #include "thread.h" +#include "timers.h" #include "tools.h" enum eMessageType { mtStatus = 0, mtInfo, mtWarning, mtError }; // will be used to calculate color offsets! @@ -49,7 +50,7 @@ public: class cSkinDisplayChannel : public cSkinDisplay { ///< This class is used to display the current channel, together with - ///< the present and following EPG even. How and to what extent this + ///< the present and following EPG event. How and to what extent this ///< is done is totally up to the derived class. public: virtual void SetChannel(const cChannel *Channel, int Number) = 0; @@ -152,13 +153,43 @@ public: ///< this function will be first called for the old current item ///< with Current set to false, and then for the new current item ///< with Current set to true. - /*TODO - virtual void SetItem(const cEvent *Event, int Index, bool Current, bool Selectable, bool NowNext???, bool Schedule???); - virtual void SetItem(const cTimer *Timer, int Index, bool Current, bool Selectable); - virtual void SetItem(const cChannel *Channel, int Index, bool Current, bool Selectable); - virtual void SetItem(const cRecording *Recording, int Index, bool Current, bool Selectable); - --> false: call SetItem(text) - */ + virtual bool SetItemEvent(const cEvent *Event, int Index, bool Current, bool Selectable, const cChannel *Channel, bool WithDate, int TimerMatch) { return false; } + ///< Sets the item at the given Index to Event. See SetItem() for more information. + ///< If a derived skin class implements this function, it can display an Event item + ///< in a more elaborate way than just a simple line of text. + ///< If Channel is not NULL, the channel's name and/or number shall be displayed. + ///< If WithDate is true, the date of the Event shall be displayed (in addition to the time). + ///< TimerMatch tells how much of this event will be recorded by a timer. + ///< If the skin displays the Event item in its own way, it shall return true. + ///< The default implementation does nothing and returns false, which results in + ///< a call to SetItem() with a proper text. + virtual bool SetItemTimer(const cTimer *Timer, int Index, bool Current, bool Selectable) { return false; } + ///< Sets the item at the given Index to Timer. See SetItem() for more information. + ///< If a derived skin class implements this function, it can display a Timer item + ///< in a more elaborate way than just a simple line of text. + ///< If the skin displays the Timer item in its own way, it shall return true. + ///< The default implementation does nothing and returns false, which results in + ///< a call to SetItem() with a proper text. + virtual bool SetItemChannel(const cChannel *Channel, int Index, bool Current, bool Selectable, bool WithProvider) { return false; } + ///< Sets the item at the given Index to Channel. See SetItem() for more information. + ///< If a derived skin class implements this function, it can display a Channel item + ///< in a more elaborate way than just a simple line of text. + ///< If WithProvider ist true, the provider shall be displayed in addition to the + ///< channel's name. + ///< If the skin displays the Channel item in its own way, it shall return true. + ///< The default implementation does nothing and returns false, which results in + ///< a call to SetItem() with a proper text. + virtual bool SetItemRecording(const cRecording *Recording, int Index, bool Current, bool Selectable, int Level, int Total, int New) { return false; } + ///< Sets the item at the given Index to Recording. See SetItem() for more information. + ///< If a derived skin class implements this function, it can display a Recording item + ///< in a more elaborate way than just a simple line of text. + ///< Level is the currently displayed level of the video directory, where 0 is the + ///< top level. A value of -1 means that the full path names of the recordings + ///< shall be displayed. If Total is greater than 0, this is a directory with the given + ///< total number of entries, and New contains the number of new (unwatched) recordings. + ///< If the skin displays the Recording item in its own way, it shall return true. + ///< The default implementation does nothing and returns false, which results in + ///< a call to SetItem() with a proper text. virtual void SetScrollbar(int Total, int Offset); ///< Sets the Total number of items in the currently displayed list, and the ///< Offset of the first item that is currently displayed (the skin knows how |