Kate
spellingmenu.cpp
Go to the documentation of this file.
106 connect(m_addToDictionaryAction, SIGNAL(triggered()), this, SLOT(addCurrentWordToDictionary()));
185 const QString dictionary = m_view->doc()->dictionaryForMisspelledRange(*m_currentMisspelledRange);
186 m_currentSuggestions = KateGlobal::self()->spellCheckManager()->suggestions(misspelledWord, dictionary);
189 for(QStringList::iterator i = m_currentSuggestions.begin(); i != m_currentSuggestions.end() && counter < 10; ++i) {
202 KateGlobal::self()->spellCheckManager()->replaceCharactersEncodedIfNecessary(suggestion, doc, *m_currentMisspelledRange);
211 const QString dictionary = m_view->doc()->dictionaryForMisspelledRange(*m_currentMisspelledRange);
213 m_view->doc()->clearMisspellingForWord(misspelledWord); // WARNING: 'm_currentMisspelledRange' is deleted here!
222 const QString dictionary = m_view->doc()->dictionaryForMisspelledRange(*m_currentMisspelledRange);
224 m_view->doc()->clearMisspellingForWord(misspelledWord); // WARNING: 'm_currentMisspelledRange' is deleted here!
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
QString dictionaryForMisspelledRange(const KTextEditor::Range &range) const
Definition: katedocument.cpp:5177
void addCurrentWordToDictionary()
Definition: spellingmenu.cpp:205
KTextEditor::MovingRange * m_currentMisspelledRange
Definition: spellingmenu.h:68
void createActions(KActionCollection *ac)
Definition: spellingmenu.cpp:95
void rangeDeleted(KTextEditor::MovingRange *range)
Definition: spellingmenu.cpp:147
void clearMisspellingForWord(const QString &word)
Definition: katedocument.cpp:5187
QAction * addAction(const QString &name, QAction *action)
KAction * m_addToDictionaryAction
Definition: spellingmenu.h:66
KTextEditor::MovingRange * m_currentMouseMisspelledRange
Definition: spellingmenu.h:69
QSignalMapper * m_suggestionsSignalMapper
Definition: spellingmenu.h:73
void populateSuggestionsMenu()
Definition: spellingmenu.cpp:172
void addToDictionary(const QString &word, const QString &dictionary)
Definition: spellcheck.cpp:61
bool m_useMouseForMisspelledRange
Definition: spellingmenu.h:71
void caretEnteredMisspelledRange(KTextEditor::MovingRange *range)
Definition: spellingmenu.cpp:112
QStringList suggestions(const QString &word, const QString &dictionary)
Definition: spellcheck.cpp:47
KMenu * menu()
Definition: kateview.h:78
KTextEditor::MovingRange * m_currentCaretMisspelledRange
Definition: spellingmenu.h:70
Definition: katedocument.h:74
void mouseExitedMisspelledRange(KTextEditor::MovingRange *range)
Definition: spellingmenu.cpp:139
void ignoreWord(const QString &word, const QString &dictionary)
Definition: spellcheck.cpp:54
KActionMenu * m_spellingMenuAction
Definition: spellingmenu.h:65
void caretExitedMisspelledRange(KTextEditor::MovingRange *range)
Definition: spellingmenu.cpp:122
void setUseMouseForMisspelledRange(bool b)
This method has to be called before the menu is shown in response to a context menu event...
Definition: spellingmenu.cpp:161
void replaceWordBySuggestion(const QString &suggestion)
Definition: spellingmenu.cpp:199
virtual QString text(const KTextEditor::Range &range, bool blockwise=false) const
Definition: katedocument.cpp:337
void mouseEnteredMisspelledRange(KTextEditor::MovingRange *range)
Definition: spellingmenu.cpp:131
void replaceCharactersEncodedIfNecessary(const QString &newWord, KateDocument *doc, const KTextEditor::Range &replacementRange)
Definition: spellcheck.cpp:239
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.