vdr  2.0.6
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cSkinLCARSDisplayReplay Class Reference
Collaboration diagram for cSkinLCARSDisplayReplay:
[legend]

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

Constructor & Destructor Documentation

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

Definition at line 1778 of file skinlcars.c.

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

References DrawDate(), DrawTrack(), cOsd::Flush(), modeOnly, and 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 1836 of file skinlcars.c.

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

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

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

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

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

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

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

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

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

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 1802 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, TimeString(), cRecordingInfo::Title(), xp00, xp02, xp03, xp13, yp00, and yp01.

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

Sets the title of the recording.

Implements cSkinDisplayReplay.

Definition at line 1811 of file skinlcars.c.

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

Referenced by SetRecording().

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

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

Member Data Documentation

tColor cSkinLCARSDisplayReplay::frameColor
private

Definition at line 1693 of file skinlcars.c.

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

int cSkinLCARSDisplayReplay::lastCurrentWidth
private

Definition at line 1694 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetCurrent().

cString cSkinLCARSDisplayReplay::lastDate
private

Definition at line 1696 of file skinlcars.c.

Referenced by DrawDate().

int cSkinLCARSDisplayReplay::lastTotalWidth
private

Definition at line 1695 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetTotal().

tTrackId cSkinLCARSDisplayReplay::lastTrackId
private

Definition at line 1697 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawTrack().

int cSkinLCARSDisplayReplay::lineHeight
private
bool cSkinLCARSDisplayReplay::modeOnly
private

Definition at line 1691 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and Flush().

cOsd* cSkinLCARSDisplayReplay::osd
private
int cSkinLCARSDisplayReplay::xp00
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

int cSkinLCARSDisplayReplay::xp01
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetMode().

int cSkinLCARSDisplayReplay::xp02
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

int cSkinLCARSDisplayReplay::xp03
private
int cSkinLCARSDisplayReplay::xp04
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::xp05
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::xp06
private

Definition at line 1689 of file skinlcars.c.

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

int cSkinLCARSDisplayReplay::xp07
private

Definition at line 1689 of file skinlcars.c.

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

int cSkinLCARSDisplayReplay::xp08
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::xp09
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::xp10
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::xp11
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::xp12
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawDate().

int cSkinLCARSDisplayReplay::xp13
private
int cSkinLCARSDisplayReplay::xp14
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::xp15
private

Definition at line 1689 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::yp00
private

Definition at line 1690 of file skinlcars.c.

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

int cSkinLCARSDisplayReplay::yp01
private

Definition at line 1690 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

int cSkinLCARSDisplayReplay::yp02
private

Definition at line 1690 of file skinlcars.c.

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

int cSkinLCARSDisplayReplay::yp03
private

Definition at line 1690 of file skinlcars.c.

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

int cSkinLCARSDisplayReplay::yp04
private

Definition at line 1690 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawTrack().

int cSkinLCARSDisplayReplay::yp05
private

Definition at line 1690 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::yp06
private

Definition at line 1690 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::yp07
private

Definition at line 1690 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

int cSkinLCARSDisplayReplay::yp08
private

Definition at line 1690 of file skinlcars.c.

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

int cSkinLCARSDisplayReplay::yp09
private

Definition at line 1690 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetMessage().


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