From 17871b8811baa9478b2b3247e340aa21bb64e06e Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 30 May 2015 16:43:59 +0200 Subject: implemented Skin Repositories --- setup.h | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'setup.h') diff --git a/setup.h b/setup.h index 22c66d5..73cbee4 100644 --- a/setup.h +++ b/setup.h @@ -2,6 +2,13 @@ #define __SKINDESIGNER_SETUP_H #include "config.h" +#include "libskindesignerapi/skindesignerosdbase.h" + +enum eItemType { + itSkinSetup, + itNoSkinSetup, + itSkinRepo +}; // --- cSkinDesignerSetup ----------------------------------------------------------- @@ -23,13 +30,27 @@ private: virtual eOSState ProcessKey(eKeys Key); cOsdItem *InfoItem(const char *label); void PluginSetup(void); - void SkinSetup(void); void ImageCacheStatistics(void); + void SkinSetup(void); + void InstallSkins(void); public: cSkinDesignerSetup(void); virtual ~cSkinDesignerSetup(); }; +// --- 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; }; +}; + // --- cSkinSetupSubMenu ----------------------------------------------------------- class cSkinSetupSubMenu : public cOsdItem { @@ -55,4 +76,20 @@ public: virtual ~cSkindesignerSkinSetup(); }; +// --- 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); +}; + #endif //__SKINDESIGNER_SETUP_H \ No newline at end of file -- cgit v1.2.3