Textedit improvements

This commit is contained in:
Eduardo Bart
2013-01-25 09:44:15 -02:00
parent 95f79b45dc
commit 0a91fff82a
7 changed files with 36 additions and 5 deletions

View File

@@ -41,6 +41,7 @@ public:
void setCursorPos(int pos);
void setSelection(int start, int end);
void setCursorVisible(bool enable) { m_cursorVisible = enable; }
void setChangeCursorImage(bool enable) { m_changeCursorImage = enable; }
void setTextHidden(bool hidden);
void setValidCharacters(const std::string validCharacters) { m_validCharacters = validCharacters; }
void setShiftNavigation(bool enable) { m_shiftNavigation = enable; }
@@ -81,6 +82,7 @@ public:
Color getSelectionBackgroundColor() { return m_selectionBackgroundColor; }
bool hasSelection() { return m_selectionEnd - m_selectionStart > 0; }
bool isCursorVisible() { return m_cursorVisible; }
bool isChangingCursorImage() { return m_changeCursorImage; }
bool isTextHidden() { return m_textHidden; }
bool isShiftNavigation() { return m_shiftNavigation; }
bool isMultiline() { return m_multiline; }
@@ -118,6 +120,7 @@ private:
bool m_cursorInRange;
bool m_cursorVisible;
bool m_editable;
bool m_changeCursorImage;
std::string m_validCharacters;
uint m_maxLength;
bool m_updatesEnabled;