Implemented audio track menu

This commit is contained in:
Klaus Schmidinger
2005-01-02 15:11:44 +01:00
parent 286af66cfb
commit 0b3a801ab4
27 changed files with 799 additions and 94 deletions

18
skins.h
View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: skins.h 1.4 2004/12/26 11:57:54 kls Exp $
* $Id: skins.h 1.5 2005/01/02 14:36:19 kls Exp $
*/
#ifndef __SKINS_H
@@ -66,8 +66,6 @@ public:
Red = Video options
Green = Info now
Yellow = Info next
Blue = Audio options
AudioOptions
VideoOptions
*/
};
@@ -223,6 +221,14 @@ public:
///< indicator shall be displayed.
};
class cSkinDisplayTracks : public cSkinDisplay {
///< This class implements the track display.
public:
virtual void SetTrack(int Index, const char * const *Tracks) = 0;
///< Sets the current track to the one given by Index, which
///< points into the Tracks array of strings.
};
class cSkinDisplayMessage : public cSkinDisplay {
///< This class implements a simple message display.
public:
@@ -275,6 +281,12 @@ public:
virtual cSkinDisplayVolume *DisplayVolume(void) = 0;
///< Creates and returns a new object for displaying the current volume.
///< The caller must delete the object after use.
virtual cSkinDisplayTracks *DisplayTracks(const char *Title, int NumTracks, const char * const *Tracks) = 0;
///< Creates and returns a new object for displaying the available tracks.
///< NumTracks indicates how many entries in Tracks are available.
///< Tracks will be valid throughout the entire lifetime of the returned
///< cSkinDisplayTrack object.
///< The caller must delete the object after use.
virtual cSkinDisplayMessage *DisplayMessage(void) = 0;
///< Creates and returns a new object for displaying a message.
///< The caller must delete the object after use.