vdr  1.7.27
menu.h
Go to the documentation of this file.
00001 /*
00002  * menu.h: A menu for still pictures
00003  *
00004  * See the README file for copyright information and how to reach the author.
00005  *
00006  * $Id: menu.h 2.0 2008/01/12 11:22:52 kls Exp $
00007  */
00008 
00009 #ifndef _MENU_H
00010 #define _MENU_H
00011 
00012 #include <vdr/osdbase.h>
00013 #include <vdr/tools.h>
00014 #include "entry.h"
00015 
00016 extern char PictureDirectory[PATH_MAX];
00017 
00018 class cPictureMenu : public cOsdMenu {
00019 private:
00020   static cPictureEntry *pictures;
00021   const cPictureEntry *pictureEntry;
00022   void Set(const char *Path);
00023   eOSState SelectItem(const char *Path = NULL, bool SlideShow = false);
00024 public:
00025   cPictureMenu(const cPictureEntry *PictureEntry, const char *Path = NULL);
00026   ~cPictureMenu();
00027   virtual eOSState ProcessKey(eKeys Key);
00028   static cPictureMenu *CreatePictureMenu(void);
00029   };
00030 
00031 #endif //_MENU_H