vdr-plugin-skindesigner/designer.h

64 lines
2.0 KiB
C
Raw Normal View History

2014-09-27 09:25:14 +02:00
#ifndef __SKINDESIGNER_H
#define __SKINDESIGNER_H
2015-05-30 16:43:59 +02:00
class cSkinDesigner;
2014-09-27 09:25:14 +02:00
#include "config.h"
2016-01-26 18:32:38 +01:00
#include "coreengine/viewdisplaychannel.h"
#include "coreengine/viewdisplaymenu.h"
#include "coreengine/viewdisplayreplay.h"
#include "coreengine/viewdisplayvolume.h"
#include "coreengine/viewdisplaytracks.h"
#include "coreengine/viewdisplaymessage.h"
#include "coreengine/viewdisplayplugin.h"
2014-09-27 09:25:14 +02:00
#include "displaychannel.h"
#include "displaymenu.h"
#include "displayreplay.h"
#include "displayvolume.h"
#include "displaytracks.h"
#include "displaymessage.h"
#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;
2016-01-26 18:32:38 +01:00
cViewChannel *channelView;
cViewMenu *menuView;
cViewMessage *messageView;
cViewReplay *replayView;
cViewVolume *volumeView;
cViewTracks *tracksView;
2014-11-15 09:47:22 +01:00
cSDDisplayMenu *currentMenu;
2016-01-26 18:32:38 +01:00
map<int, cViewPlugin* > pluginViews;
void Init(void);
2014-09-27 09:25:14 +02:00
void ReloadCaches(void);
2016-01-26 18:32:38 +01:00
void DeleteViews(void);
bool LoadViews(void);
void LoadPluginViews(void);
void CacheViews(void);
2014-09-27 09:25:14 +02:00
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);
void ActivateBackupSkin(void) { useBackupSkin = true; };
2014-09-27 09:25:14 +02:00
void Reload(void);
void ListAvailableFonts(void);
2016-01-26 18:32:38 +01:00
bool SetCustomIntToken(string option);
bool SetCustomStringToken(string option);
void ListCustomTokens(void);
2014-11-15 09:47:22 +01:00
cSDDisplayMenu *GetDisplayMenu(void) { return currentMenu; };
2016-01-26 18:32:38 +01:00
skindesignerapi::ISkinDisplayPlugin *GetDisplayPlugin(int plugId);
2014-09-27 09:25:14 +02:00
};
#endif //__SKINDESIGNER_H