diff options
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 33 |
1 files changed, 23 insertions, 10 deletions
@@ -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; } + |