|
vdr 2.6.1
|
#include <player.h>
Public Member Functions | |
| cPictureControl (cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow=false) | |
| virtual | ~cPictureControl () |
| virtual cString | GetHeader (void) |
| virtual eOSState | ProcessKey (eKeys Key) |
Public Member Functions inherited from cControl | |
| cControl (cPlayer *Player, bool Hidden=false) | |
| virtual | ~cControl () |
| virtual void | Hide (void)=0 |
| virtual cOsdObject * | GetInfo (void) |
| virtual const cRecording * | GetRecording (void) |
| virtual cString | GetHeader (void) |
| virtual void | ClearEditingMarks (void) |
| double | FramesPerSecond (void) const |
| bool | GetIndex (int &Current, int &Total, bool SnapToIFrame=false) const |
| bool | GetFrameNumber (int &Current, int &Total) const |
| bool | GetReplayMode (bool &Play, bool &Forward, int &Speed) const |
Public Member Functions inherited from cOsdObject | |
| cOsdObject (bool FastResponse=false) | |
| virtual | ~cOsdObject () |
| virtual bool | NeedsFastResponse (void) |
| bool | IsMenu (void) const |
| virtual void | Show (void) |
| virtual eOSState | ProcessKey (eKeys Key) |
Static Public Member Functions | |
| static bool | Active (void) |
| static const char * | LastDisplayed (void) |
Static Public Member Functions inherited from cControl | |
| static void | Launch (cControl *Control) |
| static void | Attach (void) |
| static void | Shutdown (void) |
| static cControl * | Control (bool Hidden=false) |
| static cControl * | Control (cMutexLock &MutexLock, bool Hidden=false) |
Private Member Functions | |
| void | NextPicture (int Direction) |
| void | NextDirectory (int Direction) |
| void | DisplayCaption (void) |
| virtual void | Hide (void) |
Private Attributes | |
| cPictureEntry * | pictures |
| const cPictureEntry * | pictureEntry |
| cPicturePlayer * | player |
| cOsd * | osd |
| cString | lastPath |
| cTimeMs | slideShowDelay |
| bool | slideShow |
| bool | alwaysDisplayCaption |
Static Private Attributes | |
| static int | active = 0 |
| static cString | lastDisplayed |
Additional Inherited Members | |
Protected Member Functions inherited from cOsdObject | |
| void | SetNeedsFastResponse (bool NeedsFastResponse) |
Protected Attributes inherited from cControl | |
| cPlayer * | player |
Definition at line 23 of file PLUGINS/src/pictures/player.h.
| cPictureControl::cPictureControl | ( | cPictureEntry * | Pictures, |
| const cPictureEntry * | PictureEntry, | ||
| bool | SlideShow = false |
||
| ) |
Definition at line 98 of file PLUGINS/src/pictures/player.c.
References active, alwaysDisplayCaption, cPictureEntry::IsDirectory(), lastPath, NextPicture(), osd, pictureEntry, pictures, cTimeMs::Set(), slideShow, SlideShowDelay, and slideShowDelay.
|
virtual |
|
inlinestatic |
Definition at line 44 of file PLUGINS/src/pictures/player.h.
References active.
Referenced by cPictureMenu::ProcessKey(), and cPictureMenu::Set().
|
private |
Definition at line 159 of file PLUGINS/src/pictures/player.c.
References alwaysDisplayCaption, cSetup::AntiAlias, cOsd::CanHandleAreas(), clrBlack, clrTransparent, clrWhite, DayDateTime(), DELETENULL(), cOsd::DrawRectangle(), DrawTextOutlined(), cOsd::Flush(), Font, fontOsd, cFont::GetFont(), HandleUnderscores(), cCursesFont::Height(), lastDisplayed, lastPath, cPictureEntry::Name(), cOsdProvider::NewOsd(), oeOk, osd, OSD_LEVEL_SUBTITLES, cOsd::OsdHeight(), cOsd::OsdLeft(), cOsd::OsdTop(), cOsd::OsdWidth(), cPictureEntry::Parent(), cPictureEntry::Path(), pictureEntry, pictures, cOsd::SetAreas(), Setup, cString::Truncate(), and cCursesFont::Width().
Referenced by NextDirectory(), NextPicture(), and ProcessKey().
|
virtual |
This can be used by players that don't play a cRecording, but rather do something completely different.
The resulting string may be used by skins as a last resort, in case they want to display the state of the current player. The return value is expected to be a short, single line string. The default implementation returns an empty string.
Reimplemented from cControl.
Definition at line 207 of file PLUGINS/src/pictures/player.c.
References tr.
|
inlineprivatevirtual |
Implements cControl.
Definition at line 38 of file PLUGINS/src/pictures/player.h.
|
static |
Definition at line 259 of file PLUGINS/src/pictures/player.c.
References lastDisplayed.
Referenced by cPictureMenu::CreatePictureMenu().
|
private |
Definition at line 133 of file PLUGINS/src/pictures/player.c.
References DisplayCaption(), cPictureEntry::Entries(), cList< T >::First(), cList< T >::Last(), cPictureEntry::NextPicture(), cPictureEntry::Parent(), cPictureEntry::Path(), pictureEntry, player, cPictureEntry::PrevPicture(), and cPicturePlayer::SetPicture().
Referenced by ProcessKey().
|
private |
Definition at line 120 of file PLUGINS/src/pictures/player.c.
References DisplayCaption(), cPictureEntry::NextPicture(), cPictureEntry::Path(), pictureEntry, player, cPictureEntry::PrevPicture(), and cPicturePlayer::SetPicture().
Referenced by cPictureControl(), and ProcessKey().
Reimplemented from cOsdObject.
Definition at line 212 of file PLUGINS/src/pictures/player.c.
References alwaysDisplayCaption, cRemote::CallPlugin(), DELETENULL(), DisplayCaption(), k_Repeat, kBack, kBlue, kDown, kGreen, kLeft, kNext, kOk, kPause, kPlay, kPrev, kRight, kStop, kUp, kYellow, NextDirectory(), NextPicture(), osContinue, osd, osEnd, cTimeMs::Set(), slideShow, SlideShowDelay, slideShowDelay, and cTimeMs::TimedOut().
|
staticprivate |
Definition at line 25 of file PLUGINS/src/pictures/player.h.
Referenced by Active(), cPictureControl(), and ~cPictureControl().
|
private |
Definition at line 34 of file PLUGINS/src/pictures/player.h.
Referenced by cPictureControl(), DisplayCaption(), and ProcessKey().
|
staticprivate |
Definition at line 26 of file PLUGINS/src/pictures/player.h.
Referenced by DisplayCaption(), and LastDisplayed().
|
private |
Definition at line 31 of file PLUGINS/src/pictures/player.h.
Referenced by cPictureControl(), and DisplayCaption().
|
private |
Definition at line 30 of file PLUGINS/src/pictures/player.h.
Referenced by cPictureControl(), DisplayCaption(), ProcessKey(), and ~cPictureControl().
|
private |
Definition at line 28 of file PLUGINS/src/pictures/player.h.
Referenced by cPictureControl(), DisplayCaption(), NextDirectory(), and NextPicture().
|
private |
Definition at line 27 of file PLUGINS/src/pictures/player.h.
Referenced by cPictureControl(), DisplayCaption(), and ~cPictureControl().
|
private |
Definition at line 29 of file PLUGINS/src/pictures/player.h.
Referenced by NextDirectory(), NextPicture(), and ~cPictureControl().
|
private |
Definition at line 33 of file PLUGINS/src/pictures/player.h.
Referenced by cPictureControl(), and ProcessKey().
|
private |
Definition at line 32 of file PLUGINS/src/pictures/player.h.
Referenced by cPictureControl(), and ProcessKey().