implemented Skin Repositories

This commit is contained in:
louis
2015-05-30 16:43:59 +02:00
parent 0936766c7b
commit 17871b8811
1263 changed files with 1430 additions and 70780 deletions

View File

@@ -3,7 +3,7 @@
NAME = skindesignerapi
LIBNAME = lib$(NAME)
MAJOR = 0
MINOR = 0.1
MINOR = 0.2
VERSION = $(MAJOR).$(MINOR)
SONAME = $(LIBNAME).so.$(MAJOR)

View File

@@ -75,6 +75,10 @@ void skindesignerapi::cSkindesignerOsdItem::AddLoopToken(string loopName, map<st
**********************************************************************/
skindesignerapi::cSkindesignerOsdMenu::cSkindesignerOsdMenu(const char *Title, int c0, int c1, int c2, int c3, int c4) : cOsdMenu(Title, c0, c1, c2, c3, c4) {
init = true;
firstCallCleared = false;
secondCall = false;
firstMenu = -1;
firstType = mtList;
displayText = false;
sdDisplayMenu = NULL;
pluginName = "";
@@ -87,6 +91,10 @@ skindesignerapi::cSkindesignerOsdMenu::~cSkindesignerOsdMenu() {
}
void skindesignerapi::cSkindesignerOsdMenu::SetPluginMenu(int menu, eMenuType type) {
if (firstCallCleared) {
firstMenu = menu;
firstType = type;
}
if (type == mtList)
displayText = false;
else if (type == mtText)
@@ -155,6 +163,15 @@ void skindesignerapi::cSkindesignerOsdMenu::TextKeyDown(void) {
}
void skindesignerapi::cSkindesignerOsdMenu::Display(void) {
if (firstCallCleared) {
firstCallCleared = false;
secondCall = true;
return;
}
if (secondCall) {
SetSkinDesignerDisplayMenu();
SetPluginMenu(firstMenu, firstType);
}
if (displayText) {
if (sdDisplayMenu) {
sdDisplayMenu->SetTitle(Title());

View File

@@ -61,6 +61,10 @@ public:
class cSkindesignerOsdMenu : public cOsdMenu {
private:
bool init;
bool firstCallCleared;
bool secondCall;
int firstMenu;
eMenuType firstType;
bool displayText;
string pluginName;
ISDDisplayMenu *sdDisplayMenu;
@@ -70,6 +74,7 @@ private:
map < string, vector< map< string, string > > > loopTokens;
bool SetSkinDesignerDisplayMenu(void);
protected:
void FirstCallCleared(void) { firstCallCleared = true; };
void ClearTokens(void);
void SetPluginName(string name) {pluginName = name; };
void SetPluginMenu(int menu, eMenuType type);