vdr  2.2.0
Public Member Functions | Private Attributes | List of all members
cSkinClassicDisplayReplay Class Reference

Public Member Functions

 cSkinClassicDisplayReplay (bool ModeOnly)
 
virtual ~cSkinClassicDisplayReplay ()
 
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)
 
virtual void SetRecording (const cRecording *Recording)
 
- 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 Attributes

cOsdosd
 
int x0
 
int x1
 
int y0
 
int y1
 
int y2
 
int y3
 
int lastCurrentWidth
 

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 454 of file skinclassic.c.

Constructor & Destructor Documentation

cSkinClassicDisplayReplay::cSkinClassicDisplayReplay ( bool  ModeOnly)
cSkinClassicDisplayReplay::~cSkinClassicDisplayReplay ( )
virtual

Definition at line 495 of file skinclassic.c.

References cSkinClassicDisplayChannel::osd.

Member Function Documentation

void cSkinClassicDisplayReplay::Flush ( void  )
virtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 558 of file skinclassic.c.

References cOsd::Flush(), and cSkinClassicDisplayChannel::osd.

void cSkinClassicDisplayReplay::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 527 of file skinclassic.c.

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

void cSkinClassicDisplayReplay::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 542 of file skinclassic.c.

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

void cSkinClassicDisplayReplay::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 547 of file skinclassic.c.

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

void cSkinClassicDisplayReplay::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 505 of file skinclassic.c.

References Setup, cSetup::ShowReplayMode, and strn0cpy().

void cSkinClassicDisplayReplay::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 521 of file skinclassic.c.

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

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

Sets the title of the recording.

Implements cSkinDisplayReplay.

Definition at line 500 of file skinclassic.c.

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

void cSkinClassicDisplayReplay::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 535 of file skinclassic.c.

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

Member Data Documentation

int cSkinClassicDisplayReplay::lastCurrentWidth
private

Definition at line 459 of file skinclassic.c.

cOsd* cSkinClassicDisplayReplay::osd
private

Definition at line 456 of file skinclassic.c.

int cSkinClassicDisplayReplay::x0
private

Definition at line 457 of file skinclassic.c.

int cSkinClassicDisplayReplay::x1
private

Definition at line 457 of file skinclassic.c.

int cSkinClassicDisplayReplay::y0
private

Definition at line 458 of file skinclassic.c.

int cSkinClassicDisplayReplay::y1
private

Definition at line 458 of file skinclassic.c.

int cSkinClassicDisplayReplay::y2
private

Definition at line 458 of file skinclassic.c.

int cSkinClassicDisplayReplay::y3
private

Definition at line 458 of file skinclassic.c.


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