blob: ee9488f112b00081788cd5c1a6f5ef0820b7d7c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* player.h: A player for still pictures
*
* See the README file for copyright information and how to reach the author.
*
* $Id: player.h 1.1 2008/01/12 16:21:57 kls Exp $
*/
#ifndef _PLAYER_H
#define _PLAYER_H
#include <vdr/osd.h>
#include <vdr/player.h>
#include <vdr/tools.h>
#include "entry.h"
extern int SlideShowDelay;
cString HandleUnderscores(const char *s);
class cPicturePlayer;
class cPictureControl : public cControl {
private:
static int active;
static cString lastDisplayed;
cPictureEntry *pictures;
const cPictureEntry *pictureEntry;
cPicturePlayer *player;
cOsd *osd;
cString lastPath;
cTimeMs slideShowDelay;
bool slideShow;
bool alwaysDisplayCaption;
void NextPicture(int Direction);
void NextDirectory(int Direction);
void DisplayCaption(void);
virtual void Hide(void) {}
public:
cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow = false);
virtual ~cPictureControl();
virtual eOSState ProcessKey(eKeys Key);
static bool Active(void) { return active > 0; }
static const char *LastDisplayed(void);
};
#endif //_PLAYER_H
|