17 #include "utils/Stopwatch.h" 18 #include "utils/StringValidation.h" 19 #include "utils/Variant.h" 30 INPUT_TYPE_READONLY = -1,
38 INPUT_TYPE_PASSWORD_MD5,
41 INPUT_TYPE_PASSWORD_NUMBER_VERIFY_NEW
46 const CLabelInfo& labelInfo,
const std::string &text);
52 bool OnAction(
const CAction &action)
override;
55 void SetLabel(
const std::string &text)
override;
56 void SetLabel2(
const std::string &text)
override;
59 std::string GetLabel2()
const override;
61 unsigned int GetCursorPosition()
const;
62 void SetCursorPosition(
unsigned int iPosition);
66 void SetTextChangeActions(
const CGUIAction& textChangeActions)
68 m_textChangeActions = textChangeActions;
73 virtual bool HasInvalidInput()
const {
return m_invalidInput; }
74 virtual void SetInputValidation(StringValidation::Validator inputValidator,
void *data = NULL);
77 void SetFocus(
bool focus)
override;
78 void ProcessText(
unsigned int currentTime)
override;
79 void RenderText()
override;
81 std::wstring GetDisplayedText()
const;
82 std::string GetDescriptionByIndex(
int index)
const override;
83 bool SetStyledText(
const std::wstring &text);
91 void ValidateCursor();
92 void UpdateText(
bool sendUpdate =
true);
93 void OnPasteClipboard();
94 void OnSMSCharacter(
unsigned int key);
95 void DefaultConstructor();
97 virtual bool ValidateInput(
const std::wstring &data)
const;
105 std::wstring m_text2;
111 unsigned int m_cursorPos;
112 unsigned int m_cursorBlink;
114 std::string m_inputHeading;
115 INPUT_TYPE m_inputType;
121 StringValidation::Validator m_inputValidator;
122 void *m_inputValidatorData;
124 unsigned int m_smsKeyIndex;
125 unsigned int m_smsLastKey;
Definition: Stopwatch.h:14
Definition: GUIEditControl.h:26
bool HasActionsMeetingCondition() const
Check if there is any action that meet its condition.
Definition: GUIAction.cpp:134
Definition: GUIInfoLabel.h:31
void RecalcRightLabelPosition()
Recalculate the text offset position for the right label by updating m_textOffset and validate the cu...
Definition: GUIEditControl.cpp:408
CRect m_clipRect
clipping rect for the second label
Definition: GUIEditControl.h:109
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
void SetInputType(INPUT_TYPE type, const CVariant &heading)
Definition: GUIEditControl.cpp:398
Definition: GUITexture.h:51
bool ClearMD5()
Clear out the current text input if it's an MD5 password.
Definition: GUIEditControl.cpp:653
Definition: GUIMessage.h:365
Definition: GUILabel.h:22
void OnClick() override
Definition: GUIEditControl.cpp:301
COLOR
allowed color categories for labels, as defined by the skin
Definition: GUILabel.h:74
Class containing vector of condition->(action/navigation route) and handling its execution.
Definition: GUIAction.h:21