vdr
2.2.0
|
Public Member Functions | |
cSkinClassicDisplayMenu (void) | |
virtual | ~cSkinClassicDisplayMenu () |
virtual void | Scroll (bool Up, bool Page) |
virtual int | MaxItems (void) |
virtual void | Clear (void) |
virtual void | SetTitle (const char *Title) |
virtual void | SetButtons (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL) |
virtual void | SetMessage (eMessageType Type, const char *Text) |
virtual void | SetItem (const char *Text, int Index, bool Current, bool Selectable) |
virtual void | SetScrollbar (int Total, int Offset) |
virtual void | SetEvent (const cEvent *Event) |
virtual void | SetRecording (const cRecording *Recording) |
virtual void | SetText (const char *Text, bool FixedFont) |
virtual int | GetTextAreaWidth (void) const |
virtual const cFont * | GetTextAreaFont (bool FixedFont) const |
virtual void | Flush (void) |
![]() | |
cSkinDisplayMenu (void) | |
eMenuCategory | MenuCategory (void) const |
virtual void | SetMenuCategory (eMenuCategory MenuCategory) |
virtual void | SetTabs (int Tab1, int Tab2=0, int Tab3=0, int Tab4=0, int Tab5=0) |
virtual void | SetMenuSortMode (eMenuSortMode MenuSortMode) |
virtual bool | SetItemEvent (const cEvent *Event, int Index, bool Current, bool Selectable, const cChannel *Channel, bool WithDate, eTimerMatch TimerMatch) |
virtual bool | SetItemTimer (const cTimer *Timer, int Index, bool Current, bool Selectable) |
virtual bool | SetItemChannel (const cChannel *Channel, int Index, bool Current, bool Selectable, bool WithProvider) |
virtual bool | SetItemRecording (const cRecording *Recording, int Index, bool Current, bool Selectable, int Level, int Total, int New) |
![]() | |
cSkinDisplay (void) | |
virtual | ~cSkinDisplay () |
int | EditableWidth (void) |
void | SetEditableWidth (int Width) |
Private Member Functions | |
void | DrawTitle (void) |
void | DrawScrollbar (int Total, int Offset, int Shown, int Top, int Height, bool CanScrollUp, bool CanScrollDown) |
void | SetTextScrollbar (void) |
Private Attributes | |
cOsd * | osd |
int | x0 |
int | x1 |
int | x2 |
int | x3 |
int | y0 |
int | y1 |
int | y2 |
int | y3 |
int | y4 |
int | y5 |
int | lineHeight |
int | dateWidth |
cString | title |
cString | lastDate |
int | lastDiskUsageState |
Additional Inherited Members | |
![]() | |
enum | { MaxTabs = 6 } |
![]() | |
static int | AvgCharWidth (void) |
static cSkinDisplay * | Current (void) |
![]() | |
int | Tab (int n) |
const char * | GetTabbedText (const char *s, int Tab) |
![]() | |
cTextScroller | textScroller |
Definition at line 167 of file skinclassic.c.
cSkinClassicDisplayMenu::cSkinClassicDisplayMenu | ( | void | ) |
Definition at line 199 of file skinclassic.c.
References cSetup::AntiAlias, cOsd::CanHandleAreas(), clrBackground, cTheme::Color(), cOsd::DrawRectangle(), fontOsd, cFont::GetFont(), cFont::Height(), cSkinClassicDisplayChannel::lineHeight, cOsdProvider::NewOsd(), oeOk, cSkinClassicDisplayChannel::osd, cOsd::OsdHeight(), cOsd::OsdLeft(), cOsd::OsdTop(), cOsd::OsdWidth(), ScrollWidth, cOsd::SetAreas(), Setup, and TextSpacing.
|
virtual |
Definition at line 234 of file skinclassic.c.
References cSkinClassicDisplayChannel::osd.
|
virtual |
Clears the entire central area of the menu.
Implements cSkinDisplayMenu.
Definition at line 272 of file skinclassic.c.
References clrBackground, cTheme::Color(), cOsd::DrawRectangle(), and cSkinClassicDisplayChannel::osd.
|
private |
Definition at line 239 of file skinclassic.c.
References cTheme::Color(), cOsd::DrawRectangle(), max(), min(), cSkinClassicDisplayChannel::osd, and ScrollWidth.
|
private |
Definition at line 278 of file skinclassic.c.
References cTheme::Color(), cOsd::DrawText(), fontOsd, cFont::GetFont(), mcMain, mcRecording, cSkinClassicDisplayChannel::osd, cString::sprintf(), and cVideoDiskUsage::String().
|
virtual |
Actually draws the OSD display to the output device.
Reimplemented from cSkinDisplay.
Definition at line 437 of file skinclassic.c.
References cTheme::Color(), DayDateTime(), cOsd::DrawText(), cOsd::Flush(), fontOsd, cFont::GetFont(), cVideoDiskUsage::HasChanged(), cSkinClassicDisplayChannel::lastDate, max(), cSkinClassicDisplayChannel::osd, TextFrame, and cFont::Width().
|
virtual |
Returns a pointer to the font which is used to display text with SetText().
The parameter FixedFont has the same meaning as in SetText(). The default implementation returns NULL. Therefore a caller of this method must be prepared to receive NULL if the plugin doesn't implement this method. The returned pointer is valid a long as the instance of cSkinDisplayMenu exists.
Reimplemented from cSkinDisplayMenu.
Definition at line 432 of file skinclassic.c.
References fontFix, fontOsd, and cFont::GetFont().
|
virtual |
Returns the width in pixel of the area which is used to display text with SetText().
The width of the area is the width of the central area minus the width of any possibly displayed scroll-bar or other decoration. The default implementation returns 0. Therefore a caller of this method must be prepared to receive 0 if the plugin doesn't implement this method.
Reimplemented from cSkinDisplayMenu.
Definition at line 427 of file skinclassic.c.
|
virtual |
Returns the maximum number of items the menu can display.
Implements cSkinDisplayMenu.
Definition at line 267 of file skinclassic.c.
References cSkinClassicDisplayChannel::lineHeight.
|
virtual |
If this menu contains a text area that can be scrolled, this function will be called to actually scroll the text.
Up indicates whether the text shall be scrolled up or down, and Page is true if it shall be scrolled by a full page, rather than a single line. An object of the cTextScroller class can be used to implement the scrolling text area.
Reimplemented from cSkinDisplayMenu.
Definition at line 261 of file skinclassic.c.
References cSkinDisplayMenu::Scroll().
|
virtual |
Sets the color buttons to the given strings.
If any of the values is NULL, any previous text must be removed from the related button.
Implements cSkinDisplayMenu.
Definition at line 291 of file skinclassic.c.
References clrBackground, cTheme::Color(), cSetup::ColorKey0, cSetup::ColorKey1, cSetup::ColorKey2, cSetup::ColorKey3, cOsd::DrawText(), fontOsd, cFont::GetFont(), cSkinClassicDisplayChannel::osd, Setup, and taCenter.
|
virtual |
Sets the Event that shall be displayed, using the entire central area of the menu.
The Event's 'description' shall be displayed using a cTextScroller, and the Scroll() function will be called to drive scrolling that text if necessary.
Implements cSkinDisplayMenu.
Definition at line 348 of file skinclassic.c.
References clrBackground, cTheme::Color(), cEvent::Description(), cOsd::DrawText(), fontOsd, cEvent::GetDateString(), cEvent::GetEndTimeString(), cFont::GetFont(), cEvent::GetParentalRatingString(), cEvent::GetTimeString(), cEvent::GetVpsString(), cFont::Height(), cTextScroller::Height(), isempty(), cSkinClassicDisplayChannel::osd, cEvent::ParentalRating(), cTextScroller::Set(), cEvent::ShortText(), cString::sprintf(), cEvent::StartTime(), cEvent::Title(), and cEvent::Vps().
|
virtual |
Sets the item at the given Index to Text.
Index is between 0 and the value returned by MaxItems(), minus one. Text may contain tab characters ('\t'), which shall be used to separate the text into several columns, according to the values set by a prior call to SetTabs(). If Current is true, this item shall be drawn in a way indicating to the user that it is the currently selected one. Selectable can be used to display items differently that can't be selected by the user. Whenever the current status is moved from one item to another, this function will be first called for the old current item with Current set to false, and then for the new current item with Current set to true.
Implements cSkinDisplayMenu.
Definition at line 318 of file skinclassic.c.
References clrBackground, cTheme::Color(), cOsd::DrawText(), fontOsd, cFont::GetFont(), cSkinClassicDisplayChannel::lineHeight, cSkinClassicDisplayChannel::osd, and cSkinDisplay::SetEditableWidth().
|
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 cSkinDisplayMenu.
Definition at line 309 of file skinclassic.c.
References clrBackground, cTheme::Color(), cOsd::DrawRectangle(), cOsd::DrawText(), fontOsd, cFont::GetFont(), cSkinClassicDisplayChannel::osd, and taCenter.
|
virtual |
Sets the Recording that shall be displayed, using the entire central area of the menu.
The Recording's 'description' shall be displayed using a cTextScroller, and the Scroll() function will be called to drive scrolling that text if necessary.
Implements cSkinDisplayMenu.
Definition at line 386 of file skinclassic.c.
References cRecordingInfo::ChannelName(), clrBackground, cTheme::Color(), DateString(), cRecordingInfo::Description(), cOsd::DrawText(), fontOsd, cRecordingInfo::GetEvent(), cFont::GetFont(), cEvent::GetParentalRatingString(), cFont::Height(), cTextScroller::Height(), cRecording::Info(), isempty(), cRecording::Name(), cSkinClassicDisplayChannel::osd, cEvent::ParentalRating(), cTextScroller::Set(), cRecordingInfo::ShortText(), cString::sprintf(), cRecording::Start(), TimeString(), and cRecordingInfo::Title().
|
virtual |
Sets the Total number of items in the currently displayed list, and the Offset of the first item that is currently displayed (the skin knows how many items it can display at once, see MaxItems()).
This can be used to display a scrollbar.
Reimplemented from cSkinDisplayMenu.
Definition at line 343 of file skinclassic.c.
References cSkinClassicDisplayChannel::lineHeight.
|
virtual |
Sets the Text that shall be displayed, using the entire central area of the menu.
The Text shall be displayed using a cTextScroller, and the Scroll() function will be called to drive scrolling that text if necessary.
Implements cSkinDisplayMenu.
Definition at line 421 of file skinclassic.c.
References clrBackground, cTheme::Color(), and cSkinClassicDisplayChannel::osd.
|
private |
Definition at line 255 of file skinclassic.c.
|
virtual |
Sets the title of this menu to Title.
Implements cSkinDisplayMenu.
Definition at line 285 of file skinclassic.c.
|
private |
Definition at line 173 of file skinclassic.c.
|
private |
Definition at line 175 of file skinclassic.c.
|
private |
Definition at line 176 of file skinclassic.c.
|
private |
Definition at line 172 of file skinclassic.c.
|
private |
Definition at line 169 of file skinclassic.c.
|
private |
Definition at line 174 of file skinclassic.c.
|
private |
Definition at line 170 of file skinclassic.c.
|
private |
Definition at line 170 of file skinclassic.c.
|
private |
Definition at line 170 of file skinclassic.c.
|
private |
Definition at line 170 of file skinclassic.c.
|
private |
Definition at line 171 of file skinclassic.c.
|
private |
Definition at line 171 of file skinclassic.c.
|
private |
Definition at line 171 of file skinclassic.c.
|
private |
Definition at line 171 of file skinclassic.c.
|
private |
Definition at line 171 of file skinclassic.c.
|
private |
Definition at line 171 of file skinclassic.c.