Changeset View
Changeset View
Standalone View
Standalone View
src/core/backgroundchecker_p.h
| Show All 17 Lines | |||||
| 18 | 18 | | |||
| 19 | class BackgroundCheckerPrivate : public QObject | 19 | class BackgroundCheckerPrivate : public QObject | ||
| 20 | { | 20 | { | ||
| 21 | Q_OBJECT | 21 | Q_OBJECT | ||
| 22 | public: | 22 | public: | ||
| 23 | BackgroundCheckerPrivate() : mainTokenizer(new SentenceTokenizer) | 23 | BackgroundCheckerPrivate() : mainTokenizer(new SentenceTokenizer) | ||
| 24 | , sentenceOffset(-1) | 24 | , sentenceOffset(-1) | ||
| 25 | { | 25 | { | ||
| 26 | autoDetectLanguageDisabled = false; | ||||
| 26 | } | 27 | } | ||
| 27 | 28 | | |||
| 28 | void start(); | 29 | void start(); | ||
| 29 | void continueChecking(); | 30 | void continueChecking(); | ||
| 30 | 31 | | |||
| 31 | LanguageFilter mainTokenizer; | 32 | LanguageFilter mainTokenizer; | ||
| 32 | WordTokenizer words; | 33 | WordTokenizer words; | ||
| 33 | QStringRef lastMisspelled; | 34 | QStringRef lastMisspelled; | ||
| 34 | Speller currentDict; | 35 | Speller currentDict; | ||
| 35 | int sentenceOffset; | 36 | int sentenceOffset; | ||
| 37 | bool autoDetectLanguageDisabled; | ||||
| 36 | 38 | | |||
| 37 | private Q_SLOTS: | 39 | private Q_SLOTS: | ||
| 38 | void checkNext(); | 40 | void checkNext(); | ||
| 39 | Q_SIGNALS: | 41 | Q_SIGNALS: | ||
| 40 | void misspelling(const QString &, int); | 42 | void misspelling(const QString &, int); | ||
| 41 | void done(); | 43 | void done(); | ||
| 42 | }; | 44 | }; | ||
| 43 | 45 | | |||
| 44 | #endif | 46 | #endif | ||