diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2010-05-04 21:03:19 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2010-05-04 21:03:19 +0200 |
commit | 8a4168bd0d2e468604755398f18be1fba9046aa0 (patch) | |
tree | 56558e0517e3b63483a2813146563eaf0371c666 /skinconfig.h | |
parent | 75ebec3efc4879fc8bee8a3ecfe71809d9fccefd (diff) | |
download | vdr-plugin-graphlcd-8a4168bd0d2e468604755398f18be1fba9046aa0.tar.gz vdr-plugin-graphlcd-8a4168bd0d2e468604755398f18be1fba9046aa0.tar.bz2 |
initial git upload, based on graphlcd-0.2.0-pre2
Diffstat (limited to 'skinconfig.h')
-rw-r--r-- | skinconfig.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/skinconfig.h b/skinconfig.h new file mode 100644 index 0000000..26ccb7c --- /dev/null +++ b/skinconfig.h @@ -0,0 +1,44 @@ +/* + * GraphLCD plugin for the Video Disk Recorder + * + * skinconfig.h - skin config class that implements all the callbacks + * + * This file is released under the GNU General Public License. Refer + * to the COPYING file distributed with this package. + * + * (c) 2004 Andreas Regel <andreas.regel AT powarman.de> + */ + +#ifndef _GRAPHLCD_SKINCONFIG_H_ +#define _GRAPHLCD_SKINCONFIG_H_ + +#include "alias.h" + +class cGraphLCDSkinConfig : public GLCD::cSkinConfig +{ +private: + const cGraphLCDDisplay * mDisplay; + std::string mConfigPath; + std::string mSkinPath; + std::string mSkinName; + cGraphLCDState * mState; + cChannelAliasList mAliasList; + std::vector <int> mTabs; + +public: + cGraphLCDSkinConfig(const cGraphLCDDisplay * Display, const std::string & CfgPath, const std::string & SkinsPath, const std::string & SkinName, cGraphLCDState * State); + virtual ~cGraphLCDSkinConfig(); + void SetMenuClear(); + + virtual std::string SkinPath(void); + virtual std::string FontPath(void); + virtual std::string CharSet(void); + virtual std::string Translate(const std::string & Text); + virtual GLCD::cType GetToken(const GLCD::tSkinToken & Token); + virtual int GetTokenId(const std::string & Name); + virtual int GetTabPosition(int Index, int MaxWidth, const GLCD::cFont & Font); + + const std::string & SkinName(void) const { return mSkinName; } +}; + +#endif |