2014-09-27 09:25:14 +02:00
|
|
|
#ifndef __SKINDESIGNER_H
|
|
|
|
#define __SKINDESIGNER_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "libtemplate/template.h"
|
|
|
|
#include "libtemplate/xmlparser.h"
|
|
|
|
#include "displaychannel.h"
|
|
|
|
#include "displaymenu.h"
|
|
|
|
#include "displayreplay.h"
|
|
|
|
#include "displayvolume.h"
|
|
|
|
#include "displaytracks.h"
|
|
|
|
#include "displaymessage.h"
|
2015-01-27 17:30:24 +01:00
|
|
|
#include "displayplugin.h"
|
2014-09-27 09:25:14 +02:00
|
|
|
#include <vdr/skinlcars.h>
|
|
|
|
|
|
|
|
class cSkinDesigner : public cSkin {
|
|
|
|
private:
|
2014-10-03 15:54:23 +02:00
|
|
|
bool init;
|
|
|
|
string skin;
|
2014-09-27 09:25:14 +02:00
|
|
|
cSkinLCARS *backupSkin;
|
|
|
|
bool useBackupSkin;
|
|
|
|
cGlobals *globals;
|
|
|
|
cTemplate *channelTemplate;
|
|
|
|
cTemplate *menuTemplate;
|
|
|
|
cTemplate *messageTemplate;
|
|
|
|
cTemplate *replayTemplate;
|
|
|
|
cTemplate *volumeTemplate;
|
|
|
|
cTemplate *audiotracksTemplate;
|
2015-02-12 18:50:58 +01:00
|
|
|
map< string, map <int, cTemplate*> > pluginTemplates;
|
2014-11-15 09:47:22 +01:00
|
|
|
cSDDisplayMenu *currentMenu;
|
2014-10-18 10:05:32 +02:00
|
|
|
void Init(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
void ReloadCaches(void);
|
2014-10-18 10:05:32 +02:00
|
|
|
void DeleteTemplates(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
bool LoadTemplates(void);
|
|
|
|
void CacheTemplates(void);
|
|
|
|
public:
|
2014-10-03 15:54:23 +02:00
|
|
|
cSkinDesigner(string skin);
|
2014-09-27 09:25:14 +02:00
|
|
|
virtual ~cSkinDesigner(void);
|
|
|
|
virtual const char *Description(void);
|
|
|
|
virtual cSkinDisplayChannel *DisplayChannel(bool WithInfo);
|
|
|
|
virtual cSkinDisplayMenu *DisplayMenu(void);
|
|
|
|
virtual cSkinDisplayReplay *DisplayReplay(bool ModeOnly);
|
|
|
|
virtual cSkinDisplayVolume *DisplayVolume(void);
|
|
|
|
virtual cSkinDisplayTracks *DisplayTracks(const char *Title, int NumTracks, const char * const *Tracks);
|
|
|
|
virtual cSkinDisplayMessage *DisplayMessage(void);
|
2015-03-12 17:28:35 +01:00
|
|
|
virtual cSkinDisplayPlugin *DisplayPlugin(string pluginName, int viewID, int subViewID);
|
2014-10-03 15:54:23 +02:00
|
|
|
void ActivateBackupSkin(void) { useBackupSkin = true; };
|
2014-09-27 09:25:14 +02:00
|
|
|
void Reload(void);
|
|
|
|
void ListAvailableFonts(void);
|
2014-10-11 16:31:39 +02:00
|
|
|
bool SetCustomToken(string option);
|
|
|
|
void ListCustomTokens(void);
|
2014-11-15 09:47:22 +01:00
|
|
|
cSDDisplayMenu *GetDisplayMenu(void) { return currentMenu; };
|
2014-09-27 09:25:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__SKINDESIGNER_H
|