summaryrefslogtreecommitdiff
path: root/menu.h
blob: e251eeb1a43c2f9980612390e7d222d6f2ca8d02 (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
48
49
50
/*
 * menu.h: Main Menu
 *
 * See the main source file 'xineliboutput.c' for copyright information and
 * how to reach the author.
 *
 * $Id: menu.h,v 1.11 2012-03-19 11:29:14 phintuka Exp $
 *
 */

#ifndef __XINELIB_MENU_H
#define __XINELIB_MENU_H

#include <vdr/menuitems.h>

class cXinelibDevice;

class cMenuXinelib : public cMenuSetupPage
{
  private:
    cXinelibDevice *m_Dev;

    int compression;
    int autocrop;
    int overscan;
    int novideo;

    // Hotkeys
    enum { hkInit, hkSeen, hkNone } hotkey_state;

    virtual eOSState ProcessHotkey(eKeys Key);

    cOsdItem *audio_ctrl_compress;

    cOsdItem *ctrl_autocrop;
    cOsdItem *ctrl_overscan;
    cOsdItem *ctrl_novideo;

  protected:
    virtual void Store(void);

  public:
    cMenuXinelib(cXinelibDevice *Dev);
    virtual ~cMenuXinelib();
    virtual eOSState ProcessKey(eKeys Key);

    static cOsdMenu *CreateMenuBrowseFiles(cXinelibDevice *Dev, eMainMenuMode mode, bool Queue=true);
};

#endif //__XINELIB_SETUP_MENU_H