vdr-plugin-skindesigner/designer.h

56 lines
1.8 KiB
C
Raw Normal View History

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"
#include "displayplugin.h"
2014-09-27 09:25:14 +02:00
#include <vdr/skinlcars.h>
class cSkinDesigner : public cSkin {
private:
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;
void Init(void);
2014-09-27 09:25:14 +02:00
void ReloadCaches(void);
void DeleteTemplates(void);
2014-09-27 09:25:14 +02:00
bool LoadTemplates(void);
void CacheTemplates(void);
public:
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);
void ActivateBackupSkin(void) { useBackupSkin = true; };
2014-09-27 09:25:14 +02:00
void Reload(void);
void ListAvailableFonts(void);
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