summaryrefslogtreecommitdiff
path: root/PLUGINS/src/pictures/menu.h
blob: eb85cb33c8a19df2111f6009364fb928ab0856a8 (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
/*
 * menu.h: A menu for still pictures
 *
 * See the README file for copyright information and how to reach the author.
 *
 * $Id: menu.h 1.1 2008/01/13 11:32:52 kls Exp $
 */

#ifndef _MENU_H
#define _MENU_H

#include <vdr/osdbase.h>
#include <vdr/tools.h>
#include "entry.h"

extern char PictureDirectory[PATH_MAX];

class cPictureMenu : public cOsdMenu {
private:
  static cPictureEntry *pictures;
  const cPictureEntry *pictureEntry;
  void Set(const char *Path);
  eOSState SelectItem(const char *Path = NULL, bool SlideShow = false);
public:
  cPictureMenu(const cPictureEntry *PictureEntry, const char *Path = NULL);
  ~cPictureMenu();
  virtual eOSState ProcessKey(eKeys Key);
  static cPictureMenu *CreatePictureMenu(void);
  };

#endif //_MENU_H