Changeset View
Changeset View
Standalone View
Standalone View
plugins/textediting/spellcheck/SpellCheckMenu.h
Show All 24 Lines | |||||
25 | #include <QPair> | 25 | #include <QPair> | ||
26 | 26 | | |||
27 | #include <sonnet/speller.h> | 27 | #include <sonnet/speller.h> | ||
28 | 28 | | |||
29 | class KActionMenu; | 29 | class KActionMenu; | ||
30 | class QAction; | 30 | class QAction; | ||
31 | class QAction; | 31 | class QAction; | ||
32 | class QMenu; | 32 | class QMenu; | ||
33 | class QSignalMapper; | | |||
34 | class SpellCheck; | 33 | class SpellCheck; | ||
35 | 34 | | |||
36 | class SpellCheckMenu : public QObject | 35 | class SpellCheckMenu : public QObject | ||
37 | { | 36 | { | ||
38 | Q_OBJECT | 37 | Q_OBJECT | ||
39 | public: | 38 | public: | ||
40 | explicit SpellCheckMenu(const Sonnet::Speller &speller, SpellCheck *spellCheck); | 39 | explicit SpellCheckMenu(const Sonnet::Speller &speller, SpellCheck *spellCheck); | ||
41 | ~SpellCheckMenu() override; | 40 | ~SpellCheckMenu() override; | ||
Show All 16 Lines | |||||
58 | private: | 57 | private: | ||
59 | SpellCheck *m_spellCheck; | 58 | SpellCheck *m_spellCheck; | ||
60 | Sonnet::Speller m_speller; | 59 | Sonnet::Speller m_speller; | ||
61 | KActionMenu *m_suggestionsMenuAction; | 60 | KActionMenu *m_suggestionsMenuAction; | ||
62 | QAction *m_ignoreWordAction; | 61 | QAction *m_ignoreWordAction; | ||
63 | QAction *m_addToDictionaryAction; | 62 | QAction *m_addToDictionaryAction; | ||
64 | QMenu *m_suggestionsMenu; | 63 | QMenu *m_suggestionsMenu; | ||
65 | int m_lengthMisspelled; | 64 | int m_lengthMisspelled; | ||
66 | QSignalMapper *m_suggestionsSignalMapper; | | |||
67 | int m_currentMisspelledPosition; | 65 | int m_currentMisspelledPosition; | ||
68 | QString m_currentMisspelled; | 66 | QString m_currentMisspelled; | ||
69 | QStringList m_suggestions; | 67 | QStringList m_suggestions; | ||
70 | }; | 68 | }; | ||
71 | 69 | | |||
72 | #endif // SPELLCHECKMENU_H | 70 | #endif // SPELLCHECKMENU_H |