summaryrefslogtreecommitdiff
path: root/skinconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'skinconfig.h')
-rw-r--r--skinconfig.h44
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