vdr  2.2.0
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 1751 of file skinlcars.c.

Constructor & Destructor Documentation

cSkinLCARSDisplayReplay::cSkinLCARSDisplayReplay ( bool  ModeOnly)
cSkinLCARSDisplayReplay::~cSkinLCARSDisplayReplay ( )
virtual

Definition at line 1843 of file skinlcars.c.

References cSkinLCARSDisplayChannel::osd.

Member Function Documentation

void cSkinLCARSDisplayReplay::DrawDate ( void  )
private
void cSkinLCARSDisplayReplay::DrawTrack ( void  )
private
void cSkinLCARSDisplayReplay::Flush ( void  )
virtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 1932 of file skinlcars.c.

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

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

Sets the current position within the recording, as a user readable string if 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 1901 of file skinlcars.c.

References clrBackground, cTheme::Color(), cOsd::DrawText(), fontOsd, cFont::GetFont(), cSkinLCARSDisplayChannel::lineHeight, max(), cSkinLCARSDisplayChannel::osd, taLeft, and cFont::Width().

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 1917 of file skinlcars.c.

References cTheme::Color(), cOsd::DrawText(), fontOsd, cSkinLCARSDisplayChannel::frameColor, cFont::GetFont(), cSkinLCARSDisplayChannel::osd, and taCenter.

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 1922 of file skinlcars.c.

References cTheme::Color(), cOsd::DrawText(), cFont::GetFont(), cSkinLCARSDisplayChannel::osd, cOsd::RestoreRegion(), cOsd::SaveRegion(), and taCenter.

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 1888 of file skinlcars.c.

References cTheme::Color(), constrain(), cOsd::DrawBitmap(), cSkinLCARSDisplayChannel::frameColor, cBitmap::Height(), cSkinLCARSDisplayChannel::osd, and cBitmap::Width().

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 1895 of file skinlcars.c.

References cTheme::Color(), cOsd::DrawBitmap(), cSkinLCARSDisplayChannel::lineHeight, and cSkinLCARSDisplayChannel::osd.

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 1867 of file skinlcars.c.

References clrBackground, cTheme::Color(), cOsd::DrawText(), fontOsd, cSkinLCARSDisplayChannel::frameColor, cFont::GetFont(), cRecording::Info(), cSkinLCARSDisplayChannel::lineHeight, cSkinLCARSDisplayChannel::osd, ShortDateString(), cRecordingInfo::ShortText(), cRecording::Start(), taBorder, taBottom, taRight, taTop, TimeString(), and cRecordingInfo::Title().

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

Sets the title of the recording.

Implements cSkinDisplayReplay.

Definition at line 1876 of file skinlcars.c.

References clrBackground, cTheme::Color(), cOsd::DrawText(), fontOsd, cFont::GetFont(), and cSkinLCARSDisplayChannel::osd.

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

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

Implements cSkinDisplayReplay.

Definition at line 1909 of file skinlcars.c.

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

Member Data Documentation

tColor cSkinLCARSDisplayReplay::frameColor
private

Definition at line 1758 of file skinlcars.c.

int cSkinLCARSDisplayReplay::lastCurrentWidth
private

Definition at line 1759 of file skinlcars.c.

cString cSkinLCARSDisplayReplay::lastDate
private

Definition at line 1761 of file skinlcars.c.

int cSkinLCARSDisplayReplay::lastTotalWidth
private

Definition at line 1760 of file skinlcars.c.

tTrackId cSkinLCARSDisplayReplay::lastTrackId
private

Definition at line 1762 of file skinlcars.c.

int cSkinLCARSDisplayReplay::lineHeight
private

Definition at line 1757 of file skinlcars.c.

bool cSkinLCARSDisplayReplay::modeOnly
private

Definition at line 1756 of file skinlcars.c.

cOsd* cSkinLCARSDisplayReplay::osd
private

Definition at line 1753 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp00
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp01
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp02
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp03
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp04
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp05
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp06
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp07
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp08
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp09
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp10
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp11
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp12
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp13
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp14
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::xp15
private

Definition at line 1754 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp00
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp01
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp02
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp03
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp04
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp05
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp06
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp07
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp08
private

Definition at line 1755 of file skinlcars.c.

int cSkinLCARSDisplayReplay::yp09
private

Definition at line 1755 of file skinlcars.c.


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