summaryrefslogtreecommitdiff
path: root/plugingui/lineedit.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-09-30 12:02:32 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-09-30 12:02:32 +0200
commit75f0e87c91c36dac4143ef0f61646a242571b905 (patch)
tree42ab1a8230c211a1f879d721b7f1a60f2dbca16b /plugingui/lineedit.h
parent34e995deca7545e43920e6105b3ce2ab2d6d5dae (diff)
parenta5873ae2b89d7ac8fc650a0f75778f8dad07a102 (diff)
Merge branch 'lineedit_follow_marker'
Lineedit showing last part of text. Visible text follows marker.
Diffstat (limited to 'plugingui/lineedit.h')
-rw-r--r--plugingui/lineedit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugingui/lineedit.h b/plugingui/lineedit.h
index 2c37522..f85e9bd 100644
--- a/plugingui/lineedit.h
+++ b/plugingui/lineedit.h
@@ -65,6 +65,15 @@ private:
std::string _text;
size_t pos;
+ std::string _visibletext;
+ size_t offsetpos;
+
+ enum state_t {
+ NOOP = 0,
+ WALK_LEFT = 1,
+ WALK_RIGHT = 2
+ };
+ state_t walkstate;
bool readonly;