vdr
1.7.27
|
Public Member Functions | |
cSkinSTTNGDisplayChannel (bool WithInfo) | |
virtual | ~cSkinSTTNGDisplayChannel () |
virtual void | SetChannel (const cChannel *Channel, int Number) |
virtual void | SetEvents (const cEvent *Present, const cEvent *Following) |
virtual void | SetMessage (eMessageType Type, const char *Text) |
virtual void | Flush (void) |
Private Attributes | |
cOsd * | osd |
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 |
bool | withInfo |
int | lineHeight |
tColor | frameColor |
bool | message |
const cEvent * | present |
cString | lastDate |
int | lastSeen |
int | lastDeviceNumber |
int | lastSignalStrength |
int | lastSignalQuality |
time_t | lastSignalDisplay |
tTrackId | lastTrackId |
Static Private Attributes | |
static cBitmap | bmTeletext |
static cBitmap | bmRadio |
static cBitmap | bmAudio |
static cBitmap | bmDolbyDigital |
static cBitmap | bmEncrypted |
static cBitmap | bmRecording |
Definition at line 127 of file skinsttng.c.
cSkinSTTNGDisplayChannel::cSkinSTTNGDisplayChannel | ( | bool | WithInfo | ) |
Definition at line 161 of file skinsttng.c.
References cSetup::AntiAlias, cOsd::CanHandleAreas(), cSetup::ChannelInfoPos, clrBackground, clrTransparent, cTheme::Color(), cOsd::DrawEllipse(), cOsd::DrawRectangle(), fontOsd, frameColor, Gap, cFont::GetFont(), cFont::Height(), lastDeviceNumber, lastSeen, lastSignalDisplay, lastSignalQuality, lastSignalStrength, lastTrackId, lineHeight, message, cOsdProvider::NewOsd(), oeOk, osd, cOsd::OsdHeight(), cOsd::OsdLeft(), cOsd::OsdTop(), cOsd::OsdWidth(), present, Roundness, cOsd::SetAreas(), Setup, TextFrame, cFont::Width(), withInfo, x0, x1, x2, x3, x4, x5, x6, x7, y0, y1, y2, y3, y4, y5, y6, and y7.
cSkinSTTNGDisplayChannel::~cSkinSTTNGDisplayChannel | ( | ) | [virtual] |
Definition at line 258 of file skinsttng.c.
References osd.
void cSkinSTTNGDisplayChannel::Flush | ( | void | ) | [virtual] |
Actually draws the OSD display to the output device.
Reimplemented from cSkinDisplay.
Definition at line 327 of file skinsttng.c.
References cDevice::ActualDevice(), cTheme::Color(), DayDateTime(), tTrackId::description, cDevice::DeviceNumber(), cOsd::DrawRectangle(), cOsd::DrawText(), cEvent::Duration(), cOsd::Flush(), frameColor, Gap, cDevice::GetCurrentAudioTrack(), cFont::GetFont(), cDevice::GetTrack(), cFont::Height(), lastDate, lastDeviceNumber, lastSeen, lastSignalDisplay, lastSignalQuality, lastSignalStrength, lastTrackId, message, min(), osd, present, cDevice::PrimaryDevice(), ScrollWidth, cDevice::SignalQuality(), cDevice::SignalStrength(), cString::sprintf(), cEvent::StartTime(), strn0cpy(), TextFrame, cFont::Width(), withInfo, x1, x3, x4, y3, y4, y6, and y7.
void cSkinSTTNGDisplayChannel::SetChannel | ( | const cChannel * | Channel, |
int | Number | ||
) | [virtual] |
< This class is used to display the current channel, together with the present and following EPG even.
How and to what extent this is done is totally up to the derived class. Sets the current channel to Channel. If Number is not 0, the user is in the process of entering a channel number, which must be displayed accordingly.
Implements cSkinDisplayChannel.
Definition at line 263 of file skinsttng.c.
References cRecordControls::Active(), cChannel::Apid(), bmAudio, bmDolbyDigital, bmEncrypted, bmRadio, bmRecording, bmTeletext, cChannel::Ca(), ChannelString(), cTheme::Color(), cChannel::Dpid(), cOsd::DrawBitmap(), cOsd::DrawRectangle(), cOsd::DrawText(), fontOsd, frameColor, cFont::GetFont(), cChannel::GroupSep(), cBitmap::Height(), lastSignalDisplay, osd, SymbolSpacing, TextFrame, cChannel::Tpid(), cChannel::Vpid(), cBitmap::Width(), x3, x4, y0, and y1.
void cSkinSTTNGDisplayChannel::SetEvents | ( | const cEvent * | Present, |
const cEvent * | Following | ||
) | [virtual] |
Sets the Present and Following EPG events.
If either of these is not available, NULL will be given.
Implements cSkinDisplayChannel.
Definition at line 290 of file skinsttng.c.
References clrBackground, cTheme::Color(), cOsd::DrawRectangle(), cOsd::DrawText(), fontOsd, frameColor, cFont::GetFont(), cEvent::GetTimeString(), lastSeen, lineHeight, osd, present, cEvent::ShortText(), TextFrame, cEvent::Title(), withInfo, x0, x1, x3, x4, x7, y3, and y4.
void cSkinSTTNGDisplayChannel::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 cSkinDisplayChannel.
Definition at line 309 of file skinsttng.c.
References clrBackground, cTheme::Color(), cOsd::DrawRectangle(), cOsd::DrawText(), fontOsd, cFont::GetFont(), message, osd, cOsd::RestoreRegion(), cOsd::SaveRegion(), taCenter, withInfo, x2, x3, x4, y0, y1, y6, and y7.
cBitmap cSkinSTTNGDisplayChannel::bmAudio [static, private] |
Definition at line 144 of file skinsttng.c.
Referenced by SetChannel().
cBitmap cSkinSTTNGDisplayChannel::bmDolbyDigital [static, private] |
Definition at line 144 of file skinsttng.c.
Referenced by SetChannel().
cBitmap cSkinSTTNGDisplayChannel::bmEncrypted [static, private] |
Definition at line 144 of file skinsttng.c.
Referenced by SetChannel().
cBitmap cSkinSTTNGDisplayChannel::bmRadio [static, private] |
Definition at line 144 of file skinsttng.c.
Referenced by SetChannel().
cBitmap cSkinSTTNGDisplayChannel::bmRecording [static, private] |
Definition at line 144 of file skinsttng.c.
Referenced by SetChannel().
cBitmap cSkinSTTNGDisplayChannel::bmTeletext [static, private] |
Definition at line 144 of file skinsttng.c.
Referenced by SetChannel().
tColor cSkinSTTNGDisplayChannel::frameColor [private] |
Definition at line 134 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), SetChannel(), and SetEvents().
cString cSkinSTTNGDisplayChannel::lastDate [private] |
Definition at line 137 of file skinsttng.c.
Referenced by Flush().
int cSkinSTTNGDisplayChannel::lastDeviceNumber [private] |
Definition at line 139 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), and Flush().
int cSkinSTTNGDisplayChannel::lastSeen [private] |
Definition at line 138 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetEvents().
time_t cSkinSTTNGDisplayChannel::lastSignalDisplay [private] |
Definition at line 142 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetChannel().
int cSkinSTTNGDisplayChannel::lastSignalQuality [private] |
Definition at line 141 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), and Flush().
int cSkinSTTNGDisplayChannel::lastSignalStrength [private] |
Definition at line 140 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), and Flush().
Definition at line 143 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), and Flush().
int cSkinSTTNGDisplayChannel::lineHeight [private] |
Definition at line 133 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), and SetEvents().
bool cSkinSTTNGDisplayChannel::message [private] |
Definition at line 135 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetMessage().
cOsd* cSkinSTTNGDisplayChannel::osd [private] |
Definition at line 129 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), SetChannel(), SetEvents(), SetMessage(), and ~cSkinSTTNGDisplayChannel().
const cEvent* cSkinSTTNGDisplayChannel::present [private] |
Definition at line 136 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetEvents().
bool cSkinSTTNGDisplayChannel::withInfo [private] |
Definition at line 132 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), SetEvents(), and SetMessage().
int cSkinSTTNGDisplayChannel::x0 [private] |
Definition at line 130 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), and SetEvents().
int cSkinSTTNGDisplayChannel::x1 [private] |
Definition at line 130 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetEvents().
int cSkinSTTNGDisplayChannel::x2 [private] |
Definition at line 130 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), and SetMessage().
int cSkinSTTNGDisplayChannel::x3 [private] |
Definition at line 130 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), SetChannel(), SetEvents(), and SetMessage().
int cSkinSTTNGDisplayChannel::x4 [private] |
Definition at line 130 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), SetChannel(), SetEvents(), and SetMessage().
int cSkinSTTNGDisplayChannel::x5 [private] |
Definition at line 130 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel().
int cSkinSTTNGDisplayChannel::x6 [private] |
Definition at line 130 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel().
int cSkinSTTNGDisplayChannel::x7 [private] |
Definition at line 130 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), and SetEvents().
int cSkinSTTNGDisplayChannel::y0 [private] |
Definition at line 131 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), SetChannel(), and SetMessage().
int cSkinSTTNGDisplayChannel::y1 [private] |
Definition at line 131 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), SetChannel(), and SetMessage().
int cSkinSTTNGDisplayChannel::y2 [private] |
Definition at line 131 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel().
int cSkinSTTNGDisplayChannel::y3 [private] |
Definition at line 131 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetEvents().
int cSkinSTTNGDisplayChannel::y4 [private] |
Definition at line 131 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetEvents().
int cSkinSTTNGDisplayChannel::y5 [private] |
Definition at line 131 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel().
int cSkinSTTNGDisplayChannel::y6 [private] |
Definition at line 131 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetMessage().
int cSkinSTTNGDisplayChannel::y7 [private] |
Definition at line 131 of file skinsttng.c.
Referenced by cSkinSTTNGDisplayChannel(), Flush(), and SetMessage().