summaryrefslogtreecommitdiff
path: root/setup.h
blob: cfc5c07b9ec640cbac6568ce6c490d2bf5d22d9a (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef __TVGUIDE_SETUP_H
#define __TVGUIDE_SETUP_H

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

extern cTVGuideConfig config;

class cTvguideSetup : public cMenuSetupPage {
    public:
        cTvguideSetup(void);
        virtual ~cTvguideSetup();       
    private:
        cTVGuideConfig tmpConfig;
        void Setup(void);
    protected:
        virtual eOSState ProcessKey(eKeys Key);
        virtual void Store(void);

};

class cMenuSetupSubMenu : public cOsdMenu {
    protected:
        cTVGuideConfig *tmpConfig;
        virtual eOSState ProcessKey(eKeys Key);
        virtual void Set(void) = 0;
        cOsdItem *InfoItem(const char *label, const char *value);
        cString indent;
    public:
        cMenuSetupSubMenu(const char *Title, cTVGuideConfig *data);
};

class cMenuSetupGeneral : public cMenuSetupSubMenu {
    protected:
        virtual eOSState ProcessKey(eKeys Key);
        cThemes themes;
        const char * timeFormatItems[2];
        const char * jumpMode[2];
        const char * blueMode[3];
        const char * numMode[2];
        const char *useSubtitleRerunTexts[3];
        void Set(void);
    public:
        cMenuSetupGeneral(cTVGuideConfig *data);
};

class cMenuSetupScreenLayout : public cMenuSetupSubMenu {
    protected:
        virtual eOSState ProcessKey(eKeys Key);
        const char * displayModeItems[2];
        const char * hideChannelLogosItems[2];
        const char * logoExtensionItems[2];
        void Set(void);
    public:
        cMenuSetupScreenLayout(cTVGuideConfig *data);
};

class cMenuSetupFont : public cMenuSetupSubMenu {
    protected:
        cStringList fontNames;
        void Set(void);
    public:
        cMenuSetupFont(cTVGuideConfig *data);
};

class cMenuSetupFavorites : public cMenuSetupSubMenu {
    protected:
        char description1[256];
        char description2[256];
        char description3[256];
        char description4[256];
        const char * recFolderMode[3];
        const char * addSubtitleMode[3];
        const char * switchModeItems[3];
        char fixedFolder[256];
        void Set(void);
        virtual eOSState ProcessKey(eKeys Key);
    public:
        cMenuSetupFavorites(cTVGuideConfig *data);
};

class cMenuSetupImageCache : public cMenuSetupSubMenu {
    protected:
        void Set(void);
    public:
        cMenuSetupImageCache(cTVGuideConfig *data);
};

#endif //__TVGUIDE_SETUP_H