diff options
author | lordjaxom <lordjaxom> | 2004-12-08 18:48:39 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-12-08 18:48:39 +0000 |
commit | 5382d18d05d358bb1c313c642395e835aa44a6a0 (patch) | |
tree | 2b5ef58620b3640c5b21e8eafe92ee4b266b1d30 /menu.c | |
parent | eb2f2c9600e8f69788232582191b141002bcd522 (diff) | |
download | vdr-plugin-text2skin-5382d18d05d358bb1c313c642395e835aa44a6a0.tar.gz vdr-plugin-text2skin-5382d18d05d358bb1c313c642395e835aa44a6a0.tar.bz2 |
1.0-pre1v1.0-pre1
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -0,0 +1,34 @@ +/* + * $Id: menu.c,v 1.1.1.1 2004/11/19 16:45:31 lordjaxom Exp $ + */ + +#include "menu.h" +#include "bitmap.h" + +// --- cText2SkinSetupPage ---------------------------------------------------- + +cText2SkinSetupPage::cText2SkinSetupPage(void) { + mData = Text2SkinSetup; + Add(new cOsdItem(tr("Flush image cache"), osUser1)); + Add(new cMenuEditIntItem(tr("Max. image cache size"), &mData.MaxCacheFill)); +} + +cText2SkinSetupPage::~cText2SkinSetupPage() { +} + +void cText2SkinSetupPage::Store(void) { + SetupStore("MaxCacheFill", mData.MaxCacheFill); + Text2SkinSetup = mData; +} + +eOSState cText2SkinSetupPage::ProcessKey(eKeys Key) { + eOSState state = cMenuSetupPage::ProcessKey(Key); + if (state == osUser1) { + Skins.Message(mtInfo, tr("Flushing image cache...")); + cText2SkinBitmap::FlushCache(); + Skins.Message(mtInfo, NULL); + return osContinue; + } + return state; +} + |