summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/menu.c b/menu.c
new file mode 100644
index 0000000..167b9b9
--- /dev/null
+++ b/menu.c
@@ -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;
+}
+