summaryrefslogtreecommitdiff
path: root/setup-itypes.h
blob: e0c9f1d464b26642f8dede4a3645b63971ce0d18 (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
#ifndef __SETUP_EXTENSIONS_DVDSWITCH_H
#define __SETUP_EXTENSIONS_DVDSWITCH_H

#include <vdr/menuitems.h>
#include "imagelist.h"

class cMenuSetupDSITypes : public cOsdMenu
{
  private:
    cSetupLine *SetupLine;
    cImageList &ImageList;
    bool Select;
    int *RetIndex;
    char *Buffer;
 
    void Set(void);
  public:
    cMenuSetupDSITypes(cImageList &ImageList, bool select = false, int* retindex = NULL, char *buffer = NULL);
    void SetHelp(void);
  protected:
    virtual eOSState ProcessKey(eKeys Key);
};

class cMenuSetupDSITypesItem : public cOsdMenu
{
  private:
    cImageListItem *Item;
    char LongName[50];
    char ShortName[20];
    int FileType;
    const char *FileTypes[2];
    char Extension[20];
    int HideExtension;
    cImageList &ImageList; 

    void Set(void);
  public:
    cMenuSetupDSITypesItem(cImageList &ImageList, int itemindex);
    virtual eOSState ProcessKey(eKeys Key);
};

#endif // __SETUP_EXTENSIONS_DVDSWITCH_H