equal
deleted
inserted
replaced
42 * |
42 * |
43 * Notes: |
43 * Notes: |
44 * <ul> |
44 * <ul> |
45 * <li>A Keyword can either be a command (if first word) or |
45 * <li>A Keyword can either be a command (if first word) or |
46 * a nickname (completed regardless of position in text).</li> |
46 * a nickname (completed regardless of position in text).</li> |
47 * <li>Public methods for accessing keywords are <b>thread-safe.</b></li> |
|
48 * </ul> |
47 * </ul> |
49 * |
48 * |
50 * @author sheepluva |
49 * @author sheepluva |
51 * @since 0.9.17 |
50 * @since 0.9.17 |
52 */ |
51 */ |
135 QString m_beforeMatch; ///< the string that was just matched |
134 QString m_beforeMatch; ///< the string that was just matched |
136 bool m_hasJustMatched; ///< whether this widget just did an auto-completion |
135 bool m_hasJustMatched; ///< whether this widget just did an auto-completion |
137 QString m_prefix; ///< prefix of the text replacement this widget just did |
136 QString m_prefix; ///< prefix of the text replacement this widget just did |
138 QString m_postfix; ///< postfix of the text replacement this widget just did |
137 QString m_postfix; ///< postfix of the text replacement this widget just did |
139 |
138 |
140 QMutex m_keywordMutex; ///< make keyword QStringList action thread-safe |
|
141 |
|
142 /** |
139 /** |
143 * @brief Autocompletes the contents based on the known commands and/or names. |
140 * @brief Autocompletes the contents based on the known commands and/or names. |
144 */ |
141 */ |
145 void autoComplete(); |
142 void autoComplete(); |
146 |
143 |