vdr 2.6.9
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cSkinLCARSDisplayReplay Class Reference

Public Member Functions

 cSkinLCARSDisplayReplay (bool ModeOnly)
 
virtual ~cSkinLCARSDisplayReplay ()
 
virtual void SetRecording (const cRecording *Recording)
 
virtual void SetTitle (const char *Title)
 
virtual void SetMode (bool Play, bool Forward, int Speed)
 
virtual void SetProgress (int Current, int Total)
 
virtual void SetCurrent (const char *Current)
 
virtual void SetTotal (const char *Total)
 
virtual void SetJump (const char *Jump)
 
virtual void SetMessage (eMessageType Type, const char *Text)
 
virtual void Flush (void)
 
- Public Member Functions inherited from cSkinDisplayReplay
 cSkinDisplayReplay (void)
 
virtual void SetMarks (const cMarks *Marks)
 
- Public Member Functions inherited from cSkinDisplay
 cSkinDisplay (void)
 
virtual ~cSkinDisplay ()
 
int EditableWidth (void)
 
void SetEditableWidth (int Width)
 
virtual void SetButtons (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL)
 

Private Member Functions

void DrawDate (void)
 
void DrawTrack (void)
 

Private Attributes

cOsdosd
 
int xp00
 
int xp01
 
int xp02
 
int xp03
 
int xp04
 
int xp05
 
int xp06
 
int xp07
 
int xp08
 
int xp09
 
int xp10
 
int xp11
 
int xp12
 
int xp13
 
int xp14
 
int xp15
 
int yp00
 
int yp01
 
int yp02
 
int yp03
 
int yp04
 
int yp05
 
int yp06
 
int yp07
 
int yp08
 
int yp09
 
bool modeOnly
 
int lineHeight
 
tColor frameColor
 
int lastCurrentWidth
 
int lastTotalWidth
 
cString lastDate
 
tTrackId lastTrackId
 

Additional Inherited Members

- Static Public Member Functions inherited from cSkinDisplay
static int AvgCharWidth (void)
 
static cSkinDisplayCurrent (void)
 
- Protected Attributes inherited from cSkinDisplayReplay
const cMarksmarks
 

Detailed Description

Definition at line 1785 of file skinlcars.c.

Constructor & Destructor Documentation

◆ cSkinLCARSDisplayReplay()

cSkinLCARSDisplayReplay::cSkinLCARSDisplayReplay ( bool ModeOnly)

◆ ~cSkinLCARSDisplayReplay()

cSkinLCARSDisplayReplay::~cSkinLCARSDisplayReplay ( )
virtual

Definition at line 1877 of file skinlcars.c.

References osd.

Member Function Documentation

◆ DrawDate()

void cSkinLCARSDisplayReplay::DrawDate ( void )
private

◆ DrawTrack()

void cSkinLCARSDisplayReplay::DrawTrack ( void )
private

◆ Flush()

void cSkinLCARSDisplayReplay::Flush ( void )
virtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 1966 of file skinlcars.c.

References DrawDate(), DrawTrack(), cOsd::Flush(), modeOnly, and osd.

◆ SetCurrent()

void cSkinLCARSDisplayReplay::SetCurrent ( const char * Current)
virtual

Sets the current position within the recording, as a user readable string in the form "h:mm:ss.ff".

The ".ff" part, indicating the frame number, is optional and the actual implementation needs to take care that it is erased from the display when a Current string with ".ff" is followed by one without it.

Implements cSkinDisplayReplay.

Definition at line 1935 of file skinlcars.c.

References clrBackground, cTheme::Color(), cSkinDisplay::Current(), cOsd::DrawText(), fontOsd, cFont::GetFont(), lastCurrentWidth, lineHeight, max(), osd, taLeft, Theme, cFont::Width(), xp03, and yp03.

◆ SetJump()

void cSkinLCARSDisplayReplay::SetJump ( const char * Jump)
virtual

Sets the prompt that allows the user to enter a jump point.

Jump is a string of the form "Jump: mm:ss". The actual implementation needs to be able to handle variations in the length of this string, which will occur when the user enters an actual value. If Jump is NULL, the jump prompt shall be removed from the display.

Implements cSkinDisplayReplay.

Definition at line 1951 of file skinlcars.c.

References cTheme::Color(), cOsd::DrawText(), fontOsd, frameColor, cFont::GetFont(), osd, taCenter, Theme, xp06, xp07, and yp08.

◆ SetMessage()

void cSkinLCARSDisplayReplay::SetMessage ( eMessageType Type,
const char * Text )
virtual

Sets a one line message Text, with the given Type.

Type can be used to determine, e.g., the colors for displaying the Text. If Text is NULL, any previously displayed message must be removed, and any previous contents overwritten by the message must be restored.

Implements cSkinDisplayReplay.

Definition at line 1956 of file skinlcars.c.

References cTheme::Color(), cOsd::DrawText(), cFont::GetFont(), osd, cOsd::RestoreRegion(), cOsd::SaveRegion(), taCenter, Theme, xp06, xp13, yp08, and yp09.

◆ SetMode()

void cSkinLCARSDisplayReplay::SetMode ( bool Play,
bool Forward,
int Speed )
virtual

Sets the current replay mode, which can be used to display some indicator, showing the user whether we are currently in normal play mode, fast forward etc.

Implements cSkinDisplayReplay.

Definition at line 1922 of file skinlcars.c.

References cTheme::Color(), constrain(), cOsd::DrawBitmap(), frameColor, cBitmap::Height(), osd, ReplaySymbols, Theme, cBitmap::Width(), xp01, yp02, and yp03.

◆ SetProgress()

void cSkinLCARSDisplayReplay::SetProgress ( int Current,
int Total )
virtual

This function will be called whenever the position in or the total length of the recording has changed.

A cProgressBar shall then be used to display a progress indicator.

Implements cSkinDisplayReplay.

Definition at line 1929 of file skinlcars.c.

References cTheme::Color(), cSkinDisplay::Current(), cOsd::DrawBitmap(), lineHeight, cSkinDisplayReplay::marks, osd, Theme, xp03, xp13, and yp02.

◆ SetRecording()

void cSkinLCARSDisplayReplay::SetRecording ( const cRecording * Recording)
virtual

Sets the recording that is currently being played.

The default implementation calls SetTitle() with the title and short text of the Recording. A derived class can use any information provided by the given Recording and display it.

Reimplemented from cSkinDisplayReplay.

Definition at line 1901 of file skinlcars.c.

References clrBackground, cTheme::Color(), cOsd::DrawText(), fontOsd, frameColor, cFont::GetFont(), cRecording::Info(), lineHeight, osd, SetTitle(), ShortDateString(), cRecordingInfo::ShortText(), cRecording::Start(), taBorder, taBottom, taRight, taTop, Theme, TimeString(), cRecordingInfo::Title(), xp00, xp02, xp03, xp13, yp00, and yp01.

◆ SetTitle()

void cSkinLCARSDisplayReplay::SetTitle ( const char * Title)
virtual

Sets the title of the recording.

Implements cSkinDisplayReplay.

Definition at line 1910 of file skinlcars.c.

References clrBackground, cTheme::Color(), cOsd::DrawText(), fontOsd, cFont::GetFont(), osd, Theme, xp03, xp13, and yp00.

Referenced by SetRecording().

◆ SetTotal()

void cSkinLCARSDisplayReplay::SetTotal ( const char * Total)
virtual

Sets the total length of the recording, as a user readable string in the form "h:mm:ss".

Implements cSkinDisplayReplay.

Definition at line 1943 of file skinlcars.c.

References clrBackground, cTheme::Color(), cOsd::DrawText(), fontOsd, cFont::GetFont(), lastTotalWidth, lineHeight, max(), osd, taRight, Theme, cFont::Width(), xp13, and yp03.

Member Data Documentation

◆ frameColor

tColor cSkinLCARSDisplayReplay::frameColor
private

Definition at line 1792 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), SetJump(), SetMode(), and SetRecording().

◆ lastCurrentWidth

int cSkinLCARSDisplayReplay::lastCurrentWidth
private

Definition at line 1793 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetCurrent().

◆ lastDate

cString cSkinLCARSDisplayReplay::lastDate
private

Definition at line 1795 of file skinlcars.c.

Referenced by DrawDate().

◆ lastTotalWidth

int cSkinLCARSDisplayReplay::lastTotalWidth
private

Definition at line 1794 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetTotal().

◆ lastTrackId

tTrackId cSkinLCARSDisplayReplay::lastTrackId
private

Definition at line 1796 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawTrack().

◆ lineHeight

int cSkinLCARSDisplayReplay::lineHeight
private

◆ modeOnly

bool cSkinLCARSDisplayReplay::modeOnly
private

Definition at line 1790 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and Flush().

◆ osd

cOsd* cSkinLCARSDisplayReplay::osd
private

◆ xp00

int cSkinLCARSDisplayReplay::xp00
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

◆ xp01

int cSkinLCARSDisplayReplay::xp01
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetMode().

◆ xp02

int cSkinLCARSDisplayReplay::xp02
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

◆ xp03

int cSkinLCARSDisplayReplay::xp03
private

◆ xp04

int cSkinLCARSDisplayReplay::xp04
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp05

int cSkinLCARSDisplayReplay::xp05
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp06

int cSkinLCARSDisplayReplay::xp06
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), SetJump(), and SetMessage().

◆ xp07

int cSkinLCARSDisplayReplay::xp07
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), DrawTrack(), and SetJump().

◆ xp08

int cSkinLCARSDisplayReplay::xp08
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp09

int cSkinLCARSDisplayReplay::xp09
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp10

int cSkinLCARSDisplayReplay::xp10
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp11

int cSkinLCARSDisplayReplay::xp11
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp12

int cSkinLCARSDisplayReplay::xp12
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawDate().

◆ xp13

int cSkinLCARSDisplayReplay::xp13
private

◆ xp14

int cSkinLCARSDisplayReplay::xp14
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp15

int cSkinLCARSDisplayReplay::xp15
private

Definition at line 1788 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ yp00

int cSkinLCARSDisplayReplay::yp00
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), SetRecording(), and SetTitle().

◆ yp01

int cSkinLCARSDisplayReplay::yp01
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

◆ yp02

int cSkinLCARSDisplayReplay::yp02
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), SetMode(), and SetProgress().

◆ yp03

int cSkinLCARSDisplayReplay::yp03
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), SetCurrent(), SetMode(), and SetTotal().

◆ yp04

int cSkinLCARSDisplayReplay::yp04
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawTrack().

◆ yp05

int cSkinLCARSDisplayReplay::yp05
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ yp06

int cSkinLCARSDisplayReplay::yp06
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ yp07

int cSkinLCARSDisplayReplay::yp07
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ yp08

int cSkinLCARSDisplayReplay::yp08
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), DrawDate(), SetJump(), and SetMessage().

◆ yp09

int cSkinLCARSDisplayReplay::yp09
private

Definition at line 1789 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetMessage().


The documentation for this class was generated from the following file: