~ubuntu-branches/ubuntu/karmic/vdr-plugin-xineliboutput/karmic

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
51
52
53
/*
 * 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.6 2007/01/04 08:42:47 phintuka Exp $
 *
 */

#ifndef __XINELIB_MENU_H
#define __XINELIB_MENU_H

#include <vdr/menuitems.h>

class cMenuXinelib : public cMenuSetupPage 
{
  private:
    int field_order;
    int compression;
    int headphone;
    int autocrop;
    int overscan;
    int novideo;

    // Hotkeys
    enum {hkInit, hkSeen, hkNone} hotkey_state;
    static time_t g_LastHotkeyTime;
    static eKeys  g_LastHotkey;
    virtual eOSState ProcessHotkey(eKeys Key);

#ifdef HAVE_XV_FIELD_ORDER
    cOsdItem *video_ctrl_interlace_order;
#endif
    cOsdItem *audio_ctrl_compress;

    cOsdItem *ctrl_autocrop;
    cOsdItem *ctrl_overscan;
    cOsdItem *ctrl_headphone;
    cOsdItem *ctrl_novideo;
 
  protected:
    virtual void Store(void);

  public:
    cMenuXinelib(void);
    virtual ~cMenuXinelib();
    virtual eOSState ProcessKey(eKeys Key);

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

#endif //__XINELIB_SETUP_MENU_H