summaryrefslogtreecommitdiff
path: root/menu-commands.h
blob: 1db04ca4777c98c429cffd288a3b264c717d16d7 (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
/*
 * Image plugin to VDR (C++)
 *
 * (C) 2004-2008 Andreas Brachold    <anbr at users.berlios.de>
 *
 * This code is distributed under the terms and conditions of the
 * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
 *
 */

#ifndef __MENU_COMMANDS_H
#define __MENU_COMMANDS_H

#include "image.h"
#include "commands.h"
#include <vdr/menuitems.h>
#include <vdr/interface.h>

class cImageMenuCommands
: public cOsdMenu 
{
  cImageCommands *m_pCmds;
  char *m_szFileName;
  bool m_bImageChanged;
  char *m_szTitle;
protected:
  eOSState Execute(void);
public:
  cImageMenuCommands(const char *szTitle, cImageCommands *Cmds, const char *szFileName);
  virtual ~cImageMenuCommands();
  virtual eOSState ProcessKey(eKeys Key);
  bool HasImageChanged() const { return m_bImageChanged; } 
};
  

class cImageMenuResult : public cOsdMenu 
{
	const char *m_szText;
protected:
	virtual void Display(void);
public:
    cImageMenuResult(const char *Title, const char *Text);
    virtual eOSState ProcessKey(eKeys Key);
};


#endif //__MENU_COMMANDS_H