vdr 2.7.6
cSkinCursesDisplayReplay Class Reference

Public Member Functions

 cSkinCursesDisplayReplay (bool ModeOnly)
 
virtual ~cSkinCursesDisplayReplay () override
 
virtual void SetTitle (const char *Title) override
 
virtual void SetMode (bool Play, bool Forward, int Speed) override
 
virtual void SetProgress (int Current, int Total) override
 
virtual void SetCurrent (const char *Current) override
 
virtual void SetTotal (const char *Total) override
 
virtual void SetJump (const char *Jump) override
 
virtual void SetMessage (eMessageType Type, const char *Text) override
 
virtual void Flush (void) override
 
- Public Member Functions inherited from cSkinDisplayReplay
 cSkinDisplayReplay (void)
 
virtual void SetMarks (const cMarks *Marks)
 
virtual void SetErrors (const cErrors *Errors)
 
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
 
bool message
 

Additional Inherited Members

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

Detailed Description

Definition at line 504 of file skincurses.c.

Constructor & Destructor Documentation

◆ cSkinCursesDisplayReplay()

cSkinCursesDisplayReplay::cSkinCursesDisplayReplay ( bool ModeOnly)

Definition at line 521 of file skincurses.c.

References clrBackground, clrTransparent, message, osd, ScOsdHeight, and ScOsdWidth.

◆ ~cSkinCursesDisplayReplay()

cSkinCursesDisplayReplay::~cSkinCursesDisplayReplay ( )
overridevirtual

Definition at line 528 of file skincurses.c.

References osd.

Member Function Documentation

◆ Flush()

void cSkinCursesDisplayReplay::Flush ( void )
overridevirtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 589 of file skincurses.c.

References osd.

◆ SetCurrent()

void cSkinCursesDisplayReplay::SetCurrent ( const char * Current)
overridevirtual

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 561 of file skincurses.c.

References clrBackground, clrWhite, cSkinDisplay::Current(), Font, osd, and Utf8StrLen().

◆ SetJump()

void cSkinCursesDisplayReplay::SetJump ( const char * Jump)
overridevirtual

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 571 of file skincurses.c.

References clrBackground, clrWhite, Font, osd, ScOsdWidth, and taCenter.

Referenced by SetMode().

◆ SetMessage()

void cSkinCursesDisplayReplay::SetMessage ( eMessageType Type,
const char * Text )
overridevirtual

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 576 of file skincurses.c.

References clrMessage, Font, message, osd, ScOsdWidth, and taCenter.

◆ SetMode()

void cSkinCursesDisplayReplay::SetMode ( bool Play,
bool Forward,
int Speed )
overridevirtual

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 538 of file skincurses.c.

References SetJump(), Setup, and strn0cpy().

◆ SetProgress()

void cSkinCursesDisplayReplay::SetProgress ( int Current,
int Total )
overridevirtual

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 554 of file skincurses.c.

References clrGreen, clrWhite, cSkinDisplay::Current(), osd, and ScOsdWidth.

◆ SetTitle()

void cSkinCursesDisplayReplay::SetTitle ( const char * Title)
overridevirtual

Sets the title of the recording.

Implements cSkinDisplayReplay.

Definition at line 533 of file skincurses.c.

References clrBackground, clrWhite, Font, osd, and ScOsdWidth.

◆ SetTotal()

void cSkinCursesDisplayReplay::SetTotal ( const char * Total)
overridevirtual

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

Implements cSkinDisplayReplay.

Definition at line 566 of file skincurses.c.

References clrBackground, clrWhite, Font, osd, ScOsdWidth, and Utf8StrLen().

Member Data Documentation

◆ message

bool cSkinCursesDisplayReplay::message
private

Definition at line 507 of file skincurses.c.

Referenced by cSkinCursesDisplayReplay(), and SetMessage().

◆ osd

cOsd* cSkinCursesDisplayReplay::osd
private

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