Changeset View
Changeset View
Standalone View
Standalone View
src/lib/definition.h
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 71 | public: | |||
---|---|---|---|---|---|
166 | * usually acts as word delimiter. However, using this function you can | 166 | * usually acts as word delimiter. However, using this function you can | ||
167 | * implement text selection in such a way that keyword lists are correctly | 167 | * implement text selection in such a way that keyword lists are correctly | ||
168 | * selected. | 168 | * selected. | ||
169 | * | 169 | * | ||
170 | * @note By default, the list of delimiters contains the following | 170 | * @note By default, the list of delimiters contains the following | ||
171 | * characters: \\t !%&()*+,-./:;<=>?[\\]^{|}~ | 171 | * characters: \\t !%&()*+,-./:;<=>?[\\]^{|}~ | ||
172 | * | 172 | * | ||
173 | * @since 5.50 | 173 | * @since 5.50 | ||
174 | * @see isWordWrapDelimiter() | ||||
174 | */ | 175 | */ | ||
175 | bool isWordDelimiter(QChar c) const; | 176 | bool isWordDelimiter(QChar c) const; | ||
176 | 177 | | |||
177 | /** | 178 | /** | ||
179 | * Returns whether it is safe to break a line at before the character @c. | ||||
180 | * This is useful when wrapping a line e.g. by applying static word wrap. | ||||
181 | * | ||||
182 | * As example, consider the LaTeX code | ||||
183 | * @code | ||||
184 | * \command1\command2 | ||||
185 | * @endcode | ||||
186 | * Applying static word wrap could lead to the following code: | ||||
187 | * @code | ||||
188 | * \command1\ | ||||
189 | * command2 | ||||
190 | * @endcode | ||||
191 | * command2 without a leading backslash is invalid in LaTeX. If '\\' is set | ||||
192 | * as word wrap delimiter, isWordWrapDelimiter('\\') then returns true, | ||||
193 | * meaning that it is safe to break the line before @c. The resulting code | ||||
194 | * then would be | ||||
195 | * @code | ||||
196 | * \command1 | ||||
197 | * \command2 | ||||
198 | * @endcode | ||||
199 | * | ||||
200 | * @note By default, the word wrap delimiters are equal to the word | ||||
201 | * delimiters in isWordDelimiter(). | ||||
202 | * | ||||
203 | * @since 5.50 | ||||
204 | * @see isWordDelimiter() | ||||
205 | */ | ||||
206 | bool isWordWrapDelimiter(QChar c) const; | ||||
207 | | ||||
208 | /** | ||||
178 | * Returns whether indentation-based folding is enabled. | 209 | * Returns whether indentation-based folding is enabled. | ||
179 | * An example for indentation-based folding is Python. | 210 | * An example for indentation-based folding is Python. | ||
180 | * When indentation-based folding is enabled, make sure to also check | 211 | * When indentation-based folding is enabled, make sure to also check | ||
181 | * foldingIgnoreList() for lines that should be treated as empty. | 212 | * foldingIgnoreList() for lines that should be treated as empty. | ||
182 | * | 213 | * | ||
183 | * @see foldingIgnoreList(), State::indentationBasedFoldingEnabled() | 214 | * @see foldingIgnoreList(), State::indentationBasedFoldingEnabled() | ||
184 | */ | 215 | */ | ||
185 | bool indentationBasedFoldingEnabled() const; | 216 | bool indentationBasedFoldingEnabled() const; | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |