vdr-plugin-tvguide/setup.h

90 lines
2.4 KiB
C
Raw Normal View History

2013-01-17 13:16:44 +01:00
#ifndef __TVGUIDE_SETUP_H
#define __TVGUIDE_SETUP_H
2013-12-07 15:51:50 +01:00
#include <vdr/menuitems.h>
#include "config.h"
extern cTVGuideConfig config;
2019-07-11 11:28:11 +02:00
2013-01-17 13:16:44 +01:00
class cTvguideSetup : public cMenuSetupPage {
2013-05-26 11:38:05 +02:00
public:
cTvguideSetup(void);
virtual ~cTvguideSetup();
private:
cTVGuideConfig tmpConfig;
2013-05-26 11:38:05 +02:00
void Setup(void);
protected:
virtual eOSState ProcessKey(eKeys Key);
virtual void Store(void);
2013-01-17 13:16:44 +01:00
};
class cMenuSetupSubMenu : public cOsdMenu {
2013-05-26 11:38:05 +02:00
protected:
cTVGuideConfig *tmpConfig;
2013-05-26 11:38:05 +02:00
virtual eOSState ProcessKey(eKeys Key);
virtual void Set(void) = 0;
cOsdItem *InfoItem(const char *label, const char *value);
2013-12-21 11:25:03 +01:00
cString indent;
2013-05-26 11:38:05 +02:00
public:
cMenuSetupSubMenu(const char *Title, cTVGuideConfig *data);
2013-01-17 13:16:44 +01:00
};
class cMenuSetupGeneral : public cMenuSetupSubMenu {
2013-05-26 11:38:05 +02:00
protected:
2013-05-26 17:44:04 +02:00
virtual eOSState ProcessKey(eKeys Key);
2013-05-24 16:23:23 +02:00
cThemes themes;
2013-05-26 11:38:05 +02:00
const char * timeFormatItems[2];
2013-05-31 13:58:22 +02:00
const char * jumpMode[2];
const char * blueMode[3];
const char * numMode[2];
2013-05-26 17:44:04 +02:00
const char *useSubtitleRerunTexts[3];
2013-05-26 11:38:05 +02:00
void Set(void);
public:
cMenuSetupGeneral(cTVGuideConfig *data);
2013-01-17 13:16:44 +01:00
};
class cMenuSetupScreenLayout : public cMenuSetupSubMenu {
2013-05-26 11:38:05 +02:00
protected:
virtual eOSState ProcessKey(eKeys Key);
2013-05-24 16:23:23 +02:00
const char * displayModeItems[2];
2013-05-26 11:38:05 +02:00
const char * hideChannelLogosItems[2];
const char * logoExtensionItems[2];
void Set(void);
public:
cMenuSetupScreenLayout(cTVGuideConfig *data);
2013-01-17 13:16:44 +01:00
};
class cMenuSetupFont : public cMenuSetupSubMenu {
2013-05-26 11:38:05 +02:00
protected:
cStringList fontNames;
void Set(void);
public:
cMenuSetupFont(cTVGuideConfig *data);
2013-01-17 13:16:44 +01:00
};
class cMenuSetupFavorites : public cMenuSetupSubMenu {
protected:
char description1[256];
char description2[256];
char description3[256];
char description4[256];
const char * recFolderMode[3];
2020-02-17 14:15:44 +01:00
const char * addSubtitleMode[3];
2019-04-05 11:35:45 +02:00
const char * switchModeItems[3];
char fixedFolder[256];
void Set(void);
virtual eOSState ProcessKey(eKeys Key);
public:
cMenuSetupFavorites(cTVGuideConfig *data);
};
2013-12-21 11:25:03 +01:00
class cMenuSetupImageCache : public cMenuSetupSubMenu {
protected:
void Set(void);
public:
cMenuSetupImageCache(cTVGuideConfig *data);
2013-12-21 11:25:03 +01:00
};
2019-03-22 13:17:22 +01:00
#endif //__TVGUIDE_SETUP_H