mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
started plugin interface implementation
This commit is contained in:
parent
15ad84bccf
commit
c650dcacd8
1
Makefile
1
Makefile
@ -65,6 +65,7 @@ OBJS = $(PLUGIN).o \
|
|||||||
displayreplay.o \
|
displayreplay.o \
|
||||||
displaytracks.o \
|
displaytracks.o \
|
||||||
displayvolume.o \
|
displayvolume.o \
|
||||||
|
displayplugin.o \
|
||||||
libcore/pixmapcontainer.o \
|
libcore/pixmapcontainer.o \
|
||||||
libcore/fontmanager.o \
|
libcore/fontmanager.o \
|
||||||
libcore/imagecache.o \
|
libcore/imagecache.o \
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include "displayvolume.h"
|
#include "displayvolume.h"
|
||||||
#include "displaytracks.h"
|
#include "displaytracks.h"
|
||||||
#include "displaymessage.h"
|
#include "displaymessage.h"
|
||||||
|
#include "displayplugin.h"
|
||||||
#include <vdr/skinlcars.h>
|
#include <vdr/skinlcars.h>
|
||||||
|
|
||||||
class cSkinDesigner : public cSkin {
|
class cSkinDesigner : public cSkin {
|
||||||
|
@ -19,6 +19,7 @@ cSDDisplayMenu::cSDDisplayMenu(cTemplate *menuTemplate) {
|
|||||||
doOutput = false;
|
doOutput = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
esyslog("skindesigner: menu opened");
|
||||||
}
|
}
|
||||||
|
|
||||||
cSDDisplayMenu::~cSDDisplayMenu() {
|
cSDDisplayMenu::~cSDDisplayMenu() {
|
||||||
@ -26,6 +27,7 @@ cSDDisplayMenu::~cSDDisplayMenu() {
|
|||||||
delete rootView;
|
delete rootView;
|
||||||
if (textAreaFont)
|
if (textAreaFont)
|
||||||
delete textAreaFont;
|
delete textAreaFont;
|
||||||
|
esyslog("skindesigner: menu closed");
|
||||||
}
|
}
|
||||||
|
|
||||||
void cSDDisplayMenu::Scroll(bool Up, bool Page) {
|
void cSDDisplayMenu::Scroll(bool Up, bool Page) {
|
||||||
@ -184,6 +186,7 @@ bool cSDDisplayMenu::SetItemPlugin(map<string,string> *stringTokens, map<string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void cSDDisplayMenu::SetItem(const char *Text, int Index, bool Current, bool Selectable) {
|
void cSDDisplayMenu::SetItem(const char *Text, int Index, bool Current, bool Selectable) {
|
||||||
|
esyslog("skindesigner: Item %s %s", Text, Current ? " -- ACTIVE --" : "");
|
||||||
if (!doOutput)
|
if (!doOutput)
|
||||||
return;
|
return;
|
||||||
cDisplayMenuListView *list = rootView->GetListView();
|
cDisplayMenuListView *list = rootView->GetListView();
|
||||||
|
7
displayplugin.c
Normal file
7
displayplugin.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include "displayplugin.h"
|
||||||
|
|
||||||
|
cDisplayPlugin::cDisplayPlugin(cTemplate *menuTemplate) {
|
||||||
|
}
|
||||||
|
|
||||||
|
cDisplayPlugin::~cDisplayPlugin() {
|
||||||
|
}
|
13
displayplugin.h
Normal file
13
displayplugin.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef __DISPLAYPLUGIN_H
|
||||||
|
#define __DISPLAYPLUGIN_H
|
||||||
|
|
||||||
|
#include "libtemplate/template.h"
|
||||||
|
|
||||||
|
class cDisplayPlugin {
|
||||||
|
private:
|
||||||
|
public:
|
||||||
|
cDisplayPlugin(cTemplate *pluginTemplate);
|
||||||
|
virtual ~cDisplayPlugin();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif //__DISPLAYPLUGIN_H
|
@ -9,6 +9,7 @@ void SkinDesignerXMLErrorHandler (void * userData, xmlErrorPtr error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cXmlParser::cXmlParser(void) {
|
cXmlParser::cXmlParser(void) {
|
||||||
|
view = NULL;
|
||||||
doc = NULL;
|
doc = NULL;
|
||||||
root = NULL;
|
root = NULL;
|
||||||
ctxt = NULL;
|
ctxt = NULL;
|
||||||
|
29
services.h
29
services.h
@ -35,4 +35,33 @@ public:
|
|||||||
//out
|
//out
|
||||||
cSDDisplayMenu *displayMenu;
|
cSDDisplayMenu *displayMenu;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Data structure for service "RegisterStandalonePlugin"
|
||||||
|
/*
|
||||||
|
class RegisterStandalonePlugin {
|
||||||
|
public:
|
||||||
|
RegisterStandalonePlugin(void) {
|
||||||
|
name = "";
|
||||||
|
rootView = "";
|
||||||
|
};
|
||||||
|
void SetMenu(int key, string templateName) {
|
||||||
|
menus.insert(pair<int, string>(key, templateName));
|
||||||
|
}
|
||||||
|
// in
|
||||||
|
string name; //name of plugin
|
||||||
|
string rootView; //name of plugin
|
||||||
|
map< int, string > menus; //menus as key -> templatename hashmap
|
||||||
|
//out
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
// Data structure for service "GetDisplayPlugin"
|
||||||
|
class GetDisplayPlugin {
|
||||||
|
public:
|
||||||
|
GetDisplayPlugin(void) {
|
||||||
|
displayPlugin = NULL;
|
||||||
|
};
|
||||||
|
// in
|
||||||
|
//out
|
||||||
|
cDisplayPlugin *displayPlugin;
|
||||||
|
};
|
||||||
#endif //__SKINDESIGNERSERVICES_H
|
#endif //__SKINDESIGNERSERVICES_H
|
Loading…
x
Reference in New Issue
Block a user