From 2b3556b460665d9a4036b1623e7e7ff5ff6d37d8 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 26 Dec 2020 15:49:01 +0100 Subject: Implemented "Pattern Timers" --- menuitems.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'menuitems.h') 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); }; -- cgit v1.2.3