Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-08-28 18:12:27 +0000
committerStijn Buys <ingar@osirion.org>2011-08-28 18:12:27 +0000
commit25b84292bf3808d8fa4ab0797586d50009fcf978 (patch)
tree62fc528ca5e7c13b999ee243980460171bafe810 /src/ui/inputbox.h
parent57f96d26fd5311541e61a08542f71b9417963c5e (diff)
Moved ui::InputBox command completion into a seperate method instead of hardcoded to the tab key.
Diffstat (limited to 'src/ui/inputbox.h')
-rw-r--r--src/ui/inputbox.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/inputbox.h b/src/ui/inputbox.h
index d3e9d2c..5da9bc5 100644
--- a/src/ui/inputbox.h
+++ b/src/ui/inputbox.h
@@ -35,12 +35,15 @@ public:
void set_max(const size_t max);
/// return the text displayed by the label
- inline std::string const &text() const {
+ inline const std::string &text() const {
return input_text;
}
-
+
/// clear the text
void clear();
+
+ /// run command completion
+ void complete();
protected:
/// draw the widget