2014-09-27 09:25:14 +02:00
|
|
|
#ifndef __SKINDESIGNER_SETUP_H
|
|
|
|
#define __SKINDESIGNER_SETUP_H
|
|
|
|
|
|
|
|
#include "config.h"
|
2015-05-30 16:43:59 +02:00
|
|
|
#include "libskindesignerapi/skindesignerosdbase.h"
|
|
|
|
|
|
|
|
enum eItemType {
|
|
|
|
itSkinSetup,
|
|
|
|
itNoSkinSetup,
|
|
|
|
itSkinRepo
|
|
|
|
};
|
2014-09-27 09:25:14 +02:00
|
|
|
|
2015-01-20 09:29:16 +01:00
|
|
|
// --- cSkinDesignerSetup -----------------------------------------------------------
|
|
|
|
|
2014-09-27 09:25:14 +02:00
|
|
|
class cSkinDesignerSetup : public cMenuSetupPage {
|
2015-01-20 09:29:16 +01:00
|
|
|
private:
|
|
|
|
int numLogosPerSizeInitial;
|
|
|
|
int limitLogoCache;
|
|
|
|
int numLogosMax;
|
|
|
|
int debugImageLoading;
|
|
|
|
int rerunAmount;
|
|
|
|
int rerunDistance;
|
|
|
|
int rerunMaxChannel;
|
|
|
|
int blockFlush;
|
2015-05-10 12:55:23 +02:00
|
|
|
int framesPerSecond;
|
2015-01-20 09:29:16 +01:00
|
|
|
const char *menuDisplayStyle[2];
|
|
|
|
|
|
|
|
void Setup(void);
|
|
|
|
virtual void Store(void);
|
|
|
|
virtual eOSState ProcessKey(eKeys Key);
|
|
|
|
cOsdItem *InfoItem(const char *label);
|
|
|
|
void PluginSetup(void);
|
|
|
|
void ImageCacheStatistics(void);
|
2015-05-30 16:43:59 +02:00
|
|
|
void SkinSetup(void);
|
|
|
|
void InstallSkins(void);
|
2015-01-20 09:29:16 +01:00
|
|
|
public:
|
|
|
|
cSkinDesignerSetup(void);
|
|
|
|
virtual ~cSkinDesignerSetup();
|
|
|
|
};
|
|
|
|
|
2015-05-30 16:43:59 +02:00
|
|
|
// --- cSkinMenuItem -----------------------------------------------------------
|
|
|
|
|
|
|
|
class cSkinMenuItem : public cOsdItem {
|
|
|
|
private:
|
|
|
|
string skinName;
|
|
|
|
eItemType type;
|
|
|
|
public:
|
|
|
|
cSkinMenuItem(string skinName, string displayText, eItemType type);
|
|
|
|
virtual ~cSkinMenuItem() {};
|
|
|
|
string GetSkinName(void) { return skinName; };
|
|
|
|
eItemType Type(void) { return type; };
|
|
|
|
};
|
|
|
|
|
2015-01-31 11:46:06 +01:00
|
|
|
// --- cSkinSetupSubMenu -----------------------------------------------------------
|
|
|
|
|
|
|
|
class cSkinSetupSubMenu : public cOsdItem {
|
|
|
|
private:
|
|
|
|
string name;
|
|
|
|
public:
|
|
|
|
cSkinSetupSubMenu(string name, string displayText);
|
|
|
|
virtual ~cSkinSetupSubMenu() {};
|
|
|
|
string GetName(void) { return name; };
|
|
|
|
};
|
|
|
|
|
2015-01-20 09:29:16 +01:00
|
|
|
// --- cSkindesignerSkinSetup -----------------------------------------------------------
|
|
|
|
|
|
|
|
class cSkindesignerSkinSetup : public cOsdMenu {
|
|
|
|
private:
|
|
|
|
string skin;
|
2015-01-31 11:46:06 +01:00
|
|
|
string name;
|
2015-01-20 09:29:16 +01:00
|
|
|
protected:
|
|
|
|
virtual eOSState ProcessKey(eKeys Key);
|
|
|
|
void Set(void);
|
|
|
|
public:
|
2015-01-31 11:46:06 +01:00
|
|
|
cSkindesignerSkinSetup(string skin, string menu);
|
2015-01-20 09:29:16 +01:00
|
|
|
virtual ~cSkindesignerSkinSetup();
|
2014-09-27 09:25:14 +02:00
|
|
|
};
|
2015-01-20 09:29:16 +01:00
|
|
|
|
2015-05-30 16:43:59 +02:00
|
|
|
// --- cSkindesignerSkinPreview -----------------------------------------------------------
|
|
|
|
|
|
|
|
class cSkindesignerSkinPreview : public skindesignerapi::cSkindesignerOsdMenu {
|
|
|
|
private:
|
|
|
|
string skinName;
|
|
|
|
protected:
|
|
|
|
virtual eOSState ProcessKey(eKeys Key);
|
|
|
|
void Set(void);
|
|
|
|
bool InstallSkin(void);
|
|
|
|
string CheckFontInstalled(string fontName);
|
|
|
|
public:
|
|
|
|
cSkindesignerSkinPreview(string skin);
|
|
|
|
virtual ~cSkindesignerSkinPreview();
|
|
|
|
void Display(void);
|
|
|
|
};
|
|
|
|
|
2014-09-27 09:25:14 +02:00
|
|
|
#endif //__SKINDESIGNER_SETUP_H
|