summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-06-13 18:40:59 +0000
committerlordjaxom <lordjaxom>2004-06-13 18:40:59 +0000
commit3d738f9c8a5d48bb22b3330c036b6887b0f9d6c1 (patch)
tree218f9b266dbde63a76caa8548108e1dccec4afc7 /setup.c
parentc73c6b62067cef765a85dd2a19dcc7296b813b2c (diff)
downloadvdr-plugin-text2skin-3d738f9c8a5d48bb22b3330c036b6887b0f9d6c1.tar.gz
vdr-plugin-text2skin-3d738f9c8a5d48bb22b3330c036b6887b0f9d6c1.tar.bz2
- added parameter alpha for imagesv0.0.4
- added ReplayMode as Logo to display a replaylogo (normal, vcd, mp3, dvd, ...) - added some german and finnish (thx to Rolf Ahrenberg) translations - fixed VPSTime which was displayed although is was equal to the StartTime - fixed MenuItems which displayed non-Text items periodically - fixed calculation of the editable width in the main menu - fixed animation delay (specified in 1/100th, used 1/1000th) - flushing cache when entering a new display (now the cache basically holds all items necessary in one display) - removed "flush image cache" from setup menu - added "max. cache size" to setup menu
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/setup.c b/setup.c
index 11ecb89..45b4ee8 100644
--- a/setup.c
+++ b/setup.c
@@ -1,23 +1,36 @@
/*
- * $Id: setup.c,v 1.1 2004/06/07 19:09:20 lordjaxom Exp $
+ * $Id: setup.c,v 1.3 2004/06/12 21:16:18 lordjaxom Exp $
*/
#include "setup.h"
#include "bitmap.h"
+cText2SkinSetup Text2SkinSetup;
+
+// --- cText2SkinSetup --------------------------------------------------------
+
+cText2SkinSetup::cText2SkinSetup(void) {
+ MaxCacheFill = 25;
+}
+
+bool cText2SkinSetup::SetupParse(const char *Name, const char *Value) {
+ if (strcmp(Name, "MaxCacheFill") == 0) MaxCacheFill = atoi(Value);
+ else return false;
+ return true;
+}
+
+// --- cText2SkinSetupPage ----------------------------------------------------
+
cText2SkinSetupPage::cText2SkinSetupPage(void) {
- Add(new cOsdItem(tr("Flush image cache"), osUser1));
+ mData = Text2SkinSetup;
+ Add(new cMenuEditIntItem(tr("Max. image cache size"), &mData.MaxCacheFill));
}
cText2SkinSetupPage::~cText2SkinSetupPage() {
}
-eOSState cText2SkinSetupPage::ProcessKey(eKeys Key) {
- eOSState state = cMenuSetupPage::ProcessKey(Key);
- if (state == osUser1) {
- Skins.Message(mtInfo, tr("Flushing image cache..."));
- cText2SkinBitmap::FlushCache();
- return osContinue;
- }
- return state;
+void cText2SkinSetupPage::Store(void) {
+ SetupStore("MaxCacheFill", mData.MaxCacheFill);
+ Text2SkinSetup = mData;
}
+