mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
implemented Skin Repositories
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
NAME = skindesignerapi
|
||||
LIBNAME = lib$(NAME)
|
||||
MAJOR = 0
|
||||
MINOR = 0.1
|
||||
MINOR = 0.2
|
||||
VERSION = $(MAJOR).$(MINOR)
|
||||
|
||||
SONAME = $(LIBNAME).so.$(MAJOR)
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user