aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIEditControl.h
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-10-11 02:52:56 +0000
committerjmarshallnz <jmarshallnz@svn>2009-10-11 02:52:56 +0000
commitd45e35ea92664ac224243eeee321910d3194e2cd (patch)
tree6da8d71849742e5687a8a31d24309b83a701bbd1 /guilib/GUIEditControl.h
parent341c949ebe589dde813db77a28ab1a1d3fc54d03 (diff)
fixed: Edit controls didn't support SMS input. Ticket #7315
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23589 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIEditControl.h')
-rw-r--r--guilib/GUIEditControl.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/guilib/GUIEditControl.h b/guilib/GUIEditControl.h
index 8f8b75ad12..69a27048c9 100644
--- a/guilib/GUIEditControl.h
+++ b/guilib/GUIEditControl.h
@@ -30,6 +30,7 @@
*/
#include "GUIButtonControl.h"
+#include "utils/Stopwatch.h"
/*!
\ingroup controls
@@ -80,7 +81,9 @@ protected:
CStdStringW GetDisplayedText() const;
void RecalcLabelPosition();
void ValidateCursor();
- void OnTextChanged();
+ void UpdateText(bool sendUpdate = true);
+ void OnPasteClipboard();
+ void OnSMSCharacter(unsigned int key);
CStdStringW m_text2;
CStdString m_text;
@@ -96,5 +99,13 @@ protected:
INPUT_TYPE m_inputType;
std::vector<CGUIActionDescriptor> m_textChangeActions;
+
+
+ unsigned int m_smsKeyIndex;
+ unsigned int m_smsLastKey;
+ CStopWatch m_smsTimer;
+
+ static const char* smsLetters[10];
+ static const unsigned int smsDelay;
};
#endif