10#include <vdr/remote.h>
19 const char *p = strchr(s,
'_');
22 char buf[strlen(p) + 1];
36 virtual void Activate(
bool On)
override;
63 int f = open(FileName, O_RDONLY);
69 int NewSize =
size * 3 / 2;
78 lseek(f, 0, SEEK_SET);
140 if (pe && Direction < 0)
152 for (
int dx = -1; dx <= 1; dx++) {
153 for (
int dy = -1; dy <= 1; dy++) {
166 const char *p = strrchr(Path,
'/');
167 const char *q = strrchr(
lastPath,
'/');
171 if (lp != lq || strncmp(
lastPath, Path, lp)) {
182 int h = 2 *
Font->Height();
185 tArea Areas[] = { { 0, 0, w - 1, h - 1, 8 } };
186 if (
Setup.AntiAlias &&
osd->CanHandleAreas(Areas,
sizeof(Areas) /
sizeof(
tArea)) ==
oeOk)
187 osd->SetAreas(Areas,
sizeof(Areas) /
sizeof(
tArea));
189 tArea Areas[] = { { 0, 0, w - 1, h - 1, 4 } };
190 osd->SetAreas(Areas,
sizeof(Areas) /
sizeof(
tArea));
199 if (stat(Path, &sb) == 0) {
211 return tr(
"Pictures");
static void DrawTextOutlined(cOsd *Osd, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font)
cString HandleUnderscores(const char *s)
cString HandleUnderscores(const char *s)
void SetPlayer(cPlayer *Player)
cControl(cPlayer *Player, bool Hidden=false)
static const cFont * GetFont(eDvbFont Font)
Gets the given Font, which was previously set by a call to SetFont().
const T * First(void) const
Returns the first element in this list, or NULL if the list is empty.
static cOsd * NewOsd(int Left, int Top, uint Level=OSD_LEVEL_DEFAULT)
Returns a pointer to a newly created cOsd object, which will be located at the given coordinates.
The cOsd class is the interface to the "On Screen Display".
static int OsdHeight(void)
static int OsdWidth(void)
virtual void DrawText(int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width=0, int Height=0, int Alignment=taDefault)
Draws the given string at coordinates (x, y) with the given foreground and background color and font.
virtual cString GetHeader(void) override
This can be used by players that don't play a cRecording, but rather do something completely differen...
static const char * LastDisplayed(void)
virtual eOSState ProcessKey(eKeys Key) override
void NextDirectory(int Direction)
static cString lastDisplayed
void DisplayCaption(void)
bool alwaysDisplayCaption
virtual ~cPictureControl() override
cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow=false)
void NextPicture(int Direction)
const cPictureEntry * pictureEntry
const cPictureEntry * Parent(void) const
const cList< cPictureEntry > * Entries(void) const
virtual void Activate(bool On) override
void SetPicture(const char *FileName)
void DeviceStillPicture(const uchar *Data, int Length)
cPlayer(ePlayMode PlayMode=pmAudioVideo)
static bool CallPlugin(const char *Plugin)
Initiates calling the given plugin's main menu function.
cString & Truncate(int Index)
Truncate the string at the given Index (if Index is < 0 it is counted from the end of the string).
#define OSD_LEVEL_SUBTITLES
static const cCursesFont Font