summaryrefslogtreecommitdiff
path: root/menuitems.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-12-26 15:49:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2020-12-26 15:49:01 +0100
commit2b3556b460665d9a4036b1623e7e7ff5ff6d37d8 (patch)
treebee99e68a196ba076440ad6516b5a0149996b6f2 /menuitems.h
parentd2e0087c4e13b2acbecc4bafb3cb2ab656c95339 (diff)
downloadvdr-2b3556b460665d9a4036b1623e7e7ff5ff6d37d8.tar.gz
vdr-2b3556b460665d9a4036b1623e7e7ff5ff6d37d8.tar.bz2
Implemented "Pattern Timers"2.5.1
Diffstat (limited to 'menuitems.h')
-rw-r--r--menuitems.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/menuitems.h b/menuitems.h
index 44f6fec5..f3e7c1e5 100644
--- a/menuitems.h
+++ b/menuitems.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menuitems.h 4.1 2015/09/06 10:38:37 kls Exp $
+ * $Id: menuitems.h 5.1 2020/12/26 15:49:01 kls Exp $
*/
#ifndef __MENUITEMS_H
@@ -111,6 +111,9 @@ private:
int length;
const char *allowed;
int pos, offset;
+ bool keepSpace;
+ const char **macros;
+ int macro, lastMacro;
bool insert, newchar, uppercase;
int lengthUtf8;
uint *valueUtf8;
@@ -127,6 +130,7 @@ private:
void Type(uint c);
void Insert(void);
void Delete(void);
+ void InsertMacro(void);
protected:
void EnterEditMode(void);
void LeaveEditMode(bool SaveValue = false);
@@ -134,6 +138,8 @@ protected:
public:
cMenuEditStrItem(const char *Name, char *Value, int Length, const char *Allowed = NULL);
~cMenuEditStrItem();
+ void SetKeepSpace(void) { keepSpace = true; }
+ void SetMacros(const char **Macros);
virtual eOSState ProcessKey(eKeys Key);
};