Changeset View
Changeset View
Standalone View
Standalone View
src/core/backgroundchecker.h
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 44 | public: | |||
|---|---|---|---|---|---|
| 67 | /** | 67 | /** | ||
| 68 | * This method is used to add a word to the session of the | 68 | * This method is used to add a word to the session of the | ||
| 69 | * speller currently set in BackgroundChecker. | 69 | * speller currently set in BackgroundChecker. | ||
| 70 | * | 70 | * | ||
| 71 | * @since 5.55 | 71 | * @since 5.55 | ||
| 72 | */ | 72 | */ | ||
| 73 | bool addWordToSession(const QString &word); | 73 | bool addWordToSession(const QString &word); | ||
| 74 | 74 | | |||
| 75 | /** | ||||
| 76 | * Returns whether the automatic language detection is disabled, | ||||
| 77 | * overriding the Sonnet settings. | ||||
| 78 | * | ||||
| 79 | * @return true if the automatic language detection is disabled | ||||
| 80 | * @since 5.71 | ||||
| 81 | */ | ||||
| 82 | bool autoDetectLanguageDisabled() const; | ||||
| 83 | | ||||
| 84 | /** | ||||
| 85 | * Sets whether to disable the automatic language detection. | ||||
| 86 | * | ||||
| 87 | * @param autoDetectDisabled if true, the language will not be | ||||
| 88 | * detected automatically by the spell checker, even if the option | ||||
| 89 | * is enabled in the Sonnet settings. | ||||
| 90 | * @since 5.71 | ||||
| 91 | */ | ||||
| 92 | void setAutoDetectLanguageDisabled(bool autoDetectDisabled); | ||||
| 93 | | ||||
| 75 | public Q_SLOTS: | 94 | public Q_SLOTS: | ||
| 76 | virtual void start(); | 95 | virtual void start(); | ||
| 77 | virtual void stop(); | 96 | virtual void stop(); | ||
| 78 | void replace(int start, const QString &oldText, const QString &newText); | 97 | void replace(int start, const QString &oldText, const QString &newText); | ||
| 79 | void changeLanguage(const QString &lang); | 98 | void changeLanguage(const QString &lang); | ||
| 80 | 99 | | |||
| 81 | /** | 100 | /** | ||
| 82 | * After emitting misspelling signal the background | 101 | * After emitting misspelling signal the background | ||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||