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

Public Member Functions

 cSkinSTTNGDisplayReplay (bool ModeOnly)
 
virtual ~cSkinSTTNGDisplayReplay ()
 
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 x2
 
int x3
 
int x4
 
int x5
 
int x6
 
int x7
 
int y0
 
int y1
 
int y2
 
int y3
 
int y4
 
int y5
 
int y6
 
int y7
 
tColor frameColor
 
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 782 of file skinsttng.c.

Constructor & Destructor Documentation

cSkinSTTNGDisplayReplay::cSkinSTTNGDisplayReplay ( bool  ModeOnly)
cSkinSTTNGDisplayReplay::~cSkinSTTNGDisplayReplay ( )
virtual

Definition at line 864 of file skinsttng.c.

References cSkinSTTNGDisplayChannel::osd.

Member Function Documentation

void cSkinSTTNGDisplayReplay::Flush ( void  )
virtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 926 of file skinsttng.c.

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

void cSkinSTTNGDisplayReplay::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 894 of file skinsttng.c.

References cTheme::Color(), cOsd::DrawText(), cSkinSTTNGDisplayChannel::frameColor, cFont::GetFont(), cSkinSTTNGDisplayChannel::osd, cFont::Width(), cSkinSTTNGDisplayChannel::x3, and cSkinSTTNGDisplayChannel::y6.

void cSkinSTTNGDisplayReplay::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 909 of file skinsttng.c.

References cTheme::Color(), cOsd::DrawText(), cSkinSTTNGDisplayChannel::frameColor, cFont::GetFont(), cSkinSTTNGDisplayChannel::osd, taCenter, cSkinSTTNGDisplayChannel::x0, cSkinSTTNGDisplayChannel::x3, cSkinSTTNGDisplayChannel::x4, and cSkinSTTNGDisplayChannel::y6.

void cSkinSTTNGDisplayReplay::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 914 of file skinsttng.c.

References clrBackground, cTheme::Color(), cOsd::DrawRectangle(), cOsd::DrawText(), cFont::GetFont(), cSkinSTTNGDisplayChannel::osd, cOsd::RestoreRegion(), cOsd::SaveRegion(), taCenter, cSkinSTTNGDisplayChannel::x2, cSkinSTTNGDisplayChannel::x3, cSkinSTTNGDisplayChannel::x4, cSkinSTTNGDisplayChannel::y6, and cSkinSTTNGDisplayChannel::y7.

void cSkinSTTNGDisplayReplay::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 881 of file skinsttng.c.

References cTheme::Color(), constrain(), cOsd::DrawBitmap(), cSkinSTTNGDisplayChannel::frameColor, cBitmap::Height(), cSkinSTTNGDisplayChannel::osd, ReplaySymbols, cBitmap::Width(), cSkinSTTNGDisplayChannel::x0, cSkinSTTNGDisplayChannel::x1, cSkinSTTNGDisplayChannel::y3, and cSkinSTTNGDisplayChannel::y4.

void cSkinSTTNGDisplayReplay::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 888 of file skinsttng.c.

References cTheme::Color(), cOsd::DrawBitmap(), cSkinSTTNGDisplayChannel::osd, cSkinSTTNGDisplayChannel::x3, cSkinSTTNGDisplayChannel::x4, cSkinSTTNGDisplayChannel::y3, and cSkinSTTNGDisplayChannel::y4.

void cSkinSTTNGDisplayReplay::SetTitle ( const char *  Title)
virtual
void cSkinSTTNGDisplayReplay::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 902 of file skinsttng.c.

References cTheme::Color(), cOsd::DrawText(), cSkinSTTNGDisplayChannel::frameColor, cFont::GetFont(), cSkinSTTNGDisplayChannel::osd, TextSpacing, cFont::Width(), cSkinSTTNGDisplayChannel::x4, and cSkinSTTNGDisplayChannel::y6.

Member Data Documentation

tColor cSkinSTTNGDisplayReplay::frameColor
private

Definition at line 787 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::lastCurrentWidth
private

Definition at line 788 of file skinsttng.c.

cOsd* cSkinSTTNGDisplayReplay::osd
private

Definition at line 784 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::x0
private

Definition at line 785 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::x1
private

Definition at line 785 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::x2
private

Definition at line 785 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::x3
private

Definition at line 785 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::x4
private

Definition at line 785 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::x5
private

Definition at line 785 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::x6
private

Definition at line 785 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::x7
private

Definition at line 785 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::y0
private

Definition at line 786 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::y1
private

Definition at line 786 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::y2
private

Definition at line 786 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::y3
private

Definition at line 786 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::y4
private

Definition at line 786 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::y5
private

Definition at line 786 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::y6
private

Definition at line 786 of file skinsttng.c.

int cSkinSTTNGDisplayReplay::y7
private

Definition at line 786 of file skinsttng.c.


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