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"
|
|
|
|
|
2019-07-11 11:37:01 +02:00
|
|
|
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:
|
2019-07-11 11:37:01 +02:00
|
|
|
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:
|
2019-07-11 11:37:01 +02:00
|
|
|
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:
|
2019-07-11 11:37:01 +02:00
|
|
|
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];
|
2014-01-14 18:00:32 +01:00
|
|
|
const char * blueMode[3];
|
2013-12-23 09:12:19 +01:00
|
|
|
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:
|
2019-07-11 11:37:01 +02:00
|
|
|
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:
|
2019-07-11 11:37:01 +02:00
|
|
|
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:
|
2019-07-11 11:37:01 +02:00
|
|
|
cMenuSetupFont(cTVGuideConfig *data);
|
2013-01-17 13:16:44 +01:00
|
|
|
};
|
|
|
|
|
2014-01-19 13:52:05 +01:00
|
|
|
class cMenuSetupFavorites : public cMenuSetupSubMenu {
|
|
|
|
protected:
|
|
|
|
char description1[256];
|
|
|
|
char description2[256];
|
|
|
|
char description3[256];
|
|
|
|
char description4[256];
|
2014-02-06 17:38:55 +01:00
|
|
|
const char * recFolderMode[3];
|
2019-04-05 11:35:45 +02:00
|
|
|
const char * switchModeItems[3];
|
2014-02-06 17:38:55 +01:00
|
|
|
char fixedFolder[256];
|
2014-01-19 13:52:05 +01:00
|
|
|
void Set(void);
|
|
|
|
virtual eOSState ProcessKey(eKeys Key);
|
|
|
|
public:
|
2019-07-11 11:37:01 +02:00
|
|
|
cMenuSetupFavorites(cTVGuideConfig *data);
|
2014-01-19 13:52:05 +01:00
|
|
|
};
|
|
|
|
|
2013-12-21 11:25:03 +01:00
|
|
|
class cMenuSetupImageCache : public cMenuSetupSubMenu {
|
|
|
|
protected:
|
|
|
|
void Set(void);
|
|
|
|
public:
|
2019-07-11 11:37:01 +02:00
|
|
|
cMenuSetupImageCache(cTVGuideConfig *data);
|
2013-12-21 11:25:03 +01:00
|
|
|
};
|
|
|
|
|
2019-03-22 13:17:22 +01:00
|
|
|
#endif //__TVGUIDE_SETUP_H
|