Changeset View
Changeset View
Standalone View
Standalone View
src/ui/highlighter.h
| Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 25 | public: | |||
|---|---|---|---|---|---|
| 86 | * many errors. | 86 | * many errors. | ||
| 87 | * | 87 | * | ||
| 88 | * @param automatic if true, spell checking will be disabled if there's | 88 | * @param automatic if true, spell checking will be disabled if there's | ||
| 89 | * a significant amount of errors. | 89 | * a significant amount of errors. | ||
| 90 | */ | 90 | */ | ||
| 91 | void setAutomatic(bool automatic); | 91 | void setAutomatic(bool automatic); | ||
| 92 | 92 | | |||
| 93 | /** | 93 | /** | ||
| 94 | * Returns whether the automatic language detection is disabled, | ||||
| 95 | * overriding the Sonnet settings. | ||||
| 96 | * | ||||
| 97 | * @return true if the automatic language detection is disabled | ||||
| 98 | * @since 5.71 | ||||
| 99 | */ | ||||
| 100 | bool autoDetectLanguageDisabled() const; | ||||
| 101 | | ||||
| 102 | /** | ||||
| 103 | * Sets whether to disable the automatic language detection. | ||||
| 104 | * | ||||
| 105 | * @param autoDetectDisabled if true, the language will not be | ||||
| 106 | * detected automatically by the spell checker, even if the option | ||||
| 107 | * is enabled in the Sonnet settings. | ||||
| 108 | * @since 5.71 | ||||
| 109 | */ | ||||
| 110 | void setAutoDetectLanguageDisabled(bool autoDetectDisabled); | ||||
| 111 | | ||||
| 112 | /** | ||||
| 94 | * Adds the given word permanently to the dictionary. It will never | 113 | * Adds the given word permanently to the dictionary. It will never | ||
| 95 | * be marked as misspelled again, even after restarting the application. | 114 | * be marked as misspelled again, even after restarting the application. | ||
| 96 | * | 115 | * | ||
| 97 | * @param word the word which will be added to the dictionary | 116 | * @param word the word which will be added to the dictionary | ||
| 98 | * @since 4.1 | 117 | * @since 4.1 | ||
| 99 | */ | 118 | */ | ||
| 100 | void addWordToDictionary(const QString &word); | 119 | void addWordToDictionary(const QString &word); | ||
| 101 | 120 | | |||
| ▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines | |||||