diff options
Diffstat (limited to 'client/widgets/lineedit.h')
-rw-r--r-- | client/widgets/lineedit.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/client/widgets/lineedit.h b/client/widgets/lineedit.h index 6ddb9af..5dbdc6b 100644 --- a/client/widgets/lineedit.h +++ b/client/widgets/lineedit.h @@ -31,6 +31,16 @@ #include "widget.h" +/*** + * Line Edit Widget + * @tag lineedit + * @extends widget + * @screenshot + * The lineedit tag is used to insert a lineedit into the macro. It is used to + * gather textual input from the user, who using the keyboard will be able to + * express him or herself in plaintext. + */ + class QLineEdit; class QEvent; class LineEdit : public Widget @@ -65,8 +75,26 @@ private: }; int lin_clear_suggestions(lua_State *L); + int lin_show_suggestions(lua_State *L); + +/*** + * @method isSuggested(value) + * This method makes a lookup in the suggestion list, searching for value. + * @param value A string containing the text to look for in the suggestion list. + * @return a boolean with the value true if the string was found, false + * if not. + */ int lin_is_suggested(lua_State *L); + +/*** + * @method addSuggestion(suggestion) + * Adds a suggestion to the suggestion list. The list is popped up each time + * a character is entered into the lineedit by the user, or it is explicitly + * opened by calling @ref showSuggestions(). + * @param suggestion A string containing the value to be added to the + * suggestion list. + */ int lin_add_suggestion(lua_State *L); #define LINEDT_METHS \ |