vdr  2.7.6
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cSkinLCARSDisplayReplay Class Reference

Public Member Functions

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

Detailed Description

Definition at line 1788 of file skinlcars.c.

Constructor & Destructor Documentation

◆ cSkinLCARSDisplayReplay()

cSkinLCARSDisplayReplay::cSkinLCARSDisplayReplay ( bool  ModeOnly)

◆ ~cSkinLCARSDisplayReplay()

cSkinLCARSDisplayReplay::~cSkinLCARSDisplayReplay ( )
overridevirtual

Definition at line 1880 of file skinlcars.c.

References osd.

Member Function Documentation

◆ DrawDate()

void cSkinLCARSDisplayReplay::DrawDate ( void  )
private

◆ DrawTrack()

void cSkinLCARSDisplayReplay::DrawTrack ( void  )
private

◆ Flush()

void cSkinLCARSDisplayReplay::Flush ( void  )
overridevirtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 1969 of file skinlcars.c.

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

◆ SetCurrent()

void cSkinLCARSDisplayReplay::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 1938 of file skinlcars.c.

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

◆ SetJump()

void cSkinLCARSDisplayReplay::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 1954 of file skinlcars.c.

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

◆ SetMessage()

void cSkinLCARSDisplayReplay::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 1959 of file skinlcars.c.

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

◆ SetMode()

void cSkinLCARSDisplayReplay::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 1925 of file skinlcars.c.

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

◆ SetProgress()

void cSkinLCARSDisplayReplay::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 1932 of file skinlcars.c.

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

◆ SetRecording()

void cSkinLCARSDisplayReplay::SetRecording ( const cRecording Recording)
overridevirtual

Sets the recording that is currently being played.

The default implementation calls SetTitle() with the title of the Recording. A derived class can use any information provided by the given Recording and display it.

Reimplemented from cSkinDisplayReplay.

Definition at line 1904 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, Theme, TimeString(), cRecordingInfo::Title(), xp00, xp02, xp03, xp13, yp00, and yp01.

◆ SetTitle()

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

Sets the title of the recording.

Implements cSkinDisplayReplay.

Definition at line 1913 of file skinlcars.c.

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

Referenced by SetRecording().

◆ SetTotal()

void cSkinLCARSDisplayReplay::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 1946 of file skinlcars.c.

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

Member Data Documentation

◆ frameColor

tColor cSkinLCARSDisplayReplay::frameColor
private

Definition at line 1795 of file skinlcars.c.

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

◆ lastCurrentWidth

int cSkinLCARSDisplayReplay::lastCurrentWidth
private

Definition at line 1796 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetCurrent().

◆ lastDate

cString cSkinLCARSDisplayReplay::lastDate
private

Definition at line 1798 of file skinlcars.c.

Referenced by DrawDate().

◆ lastTotalWidth

int cSkinLCARSDisplayReplay::lastTotalWidth
private

Definition at line 1797 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetTotal().

◆ lastTrackId

tTrackId cSkinLCARSDisplayReplay::lastTrackId
private

Definition at line 1799 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawTrack().

◆ lineHeight

int cSkinLCARSDisplayReplay::lineHeight
private

◆ modeOnly

bool cSkinLCARSDisplayReplay::modeOnly
private

Definition at line 1793 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and Flush().

◆ osd

cOsd* cSkinLCARSDisplayReplay::osd
private

◆ xp00

int cSkinLCARSDisplayReplay::xp00
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

◆ xp01

int cSkinLCARSDisplayReplay::xp01
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetMode().

◆ xp02

int cSkinLCARSDisplayReplay::xp02
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

◆ xp03

int cSkinLCARSDisplayReplay::xp03
private

◆ xp04

int cSkinLCARSDisplayReplay::xp04
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp05

int cSkinLCARSDisplayReplay::xp05
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp06

int cSkinLCARSDisplayReplay::xp06
private

Definition at line 1791 of file skinlcars.c.

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

◆ xp07

int cSkinLCARSDisplayReplay::xp07
private

Definition at line 1791 of file skinlcars.c.

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

◆ xp08

int cSkinLCARSDisplayReplay::xp08
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp09

int cSkinLCARSDisplayReplay::xp09
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp10

int cSkinLCARSDisplayReplay::xp10
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp11

int cSkinLCARSDisplayReplay::xp11
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp12

int cSkinLCARSDisplayReplay::xp12
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawDate().

◆ xp13

int cSkinLCARSDisplayReplay::xp13
private

◆ xp14

int cSkinLCARSDisplayReplay::xp14
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ xp15

int cSkinLCARSDisplayReplay::xp15
private

Definition at line 1791 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ yp00

int cSkinLCARSDisplayReplay::yp00
private

Definition at line 1792 of file skinlcars.c.

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

◆ yp01

int cSkinLCARSDisplayReplay::yp01
private

Definition at line 1792 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetRecording().

◆ yp02

int cSkinLCARSDisplayReplay::yp02
private

Definition at line 1792 of file skinlcars.c.

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

◆ yp03

int cSkinLCARSDisplayReplay::yp03
private

Definition at line 1792 of file skinlcars.c.

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

◆ yp04

int cSkinLCARSDisplayReplay::yp04
private

Definition at line 1792 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and DrawTrack().

◆ yp05

int cSkinLCARSDisplayReplay::yp05
private

Definition at line 1792 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ yp06

int cSkinLCARSDisplayReplay::yp06
private

Definition at line 1792 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ yp07

int cSkinLCARSDisplayReplay::yp07
private

Definition at line 1792 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay().

◆ yp08

int cSkinLCARSDisplayReplay::yp08
private

Definition at line 1792 of file skinlcars.c.

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

◆ yp09

int cSkinLCARSDisplayReplay::yp09
private

Definition at line 1792 of file skinlcars.c.

Referenced by cSkinLCARSDisplayReplay(), and SetMessage().


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