"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/latexeditorview.cpp" between
texstudio-2.12.20.tar.gz and texstudio-2.12.22.tar.gz

About: TeXstudio is an integrated environment for writing LaTeX documents (as easy and comfortable as possible).

latexeditorview.cpp  (texstudio-2.12.20):latexeditorview.cpp  (texstudio-2.12.22)
skipping to change at line 1369 skipping to change at line 1369
if (!defaultInputBinding) return; if (!defaultInputBinding) return;
defaultInputBinding->baseActions = baseActions; defaultInputBinding->baseActions = baseActions;
} }
void LatexEditorView::setSpellerManager(SpellerManager *manager) void LatexEditorView::setSpellerManager(SpellerManager *manager)
{ {
spellerManager = manager; spellerManager = manager;
connect(spellerManager, SIGNAL(defaultSpellerChanged()), this, SLOT(reloa dSpeller())); connect(spellerManager, SIGNAL(defaultSpellerChanged()), this, SLOT(reloa dSpeller()));
} }
bool LatexEditorView::setSpeller(const QString &name) /*!
* \brief Set new spelling language
* No change if old and new are identical
* The speller engine is forwarded to the syntax checker where the actual online
checking is done.
* \param name of the desired language
* \return success of operation
*/
bool LatexEditorView::setSpeller(const QString &name, bool updateComment)
{ {
if (!spellerManager) return false; if (!spellerManager) return false;
useDefaultSpeller = (name == "<default>"); useDefaultSpeller = (name == "<default>");
SpellerUtility *su; SpellerUtility *su;
if (spellerManager->hasSpeller(name)) { if (spellerManager->hasSpeller(name)) {
su = spellerManager->getSpeller(name); su = spellerManager->getSpeller(name);
if (!su) return false; if (!su) return false;
} else { } else {
skipping to change at line 1395 skipping to change at line 1402
if (speller) { if (speller) {
disconnect(speller, SIGNAL(aboutToDelete()), this, SLOT(reloadSpe ller())); disconnect(speller, SIGNAL(aboutToDelete()), this, SLOT(reloadSpe ller()));
disconnect(speller, SIGNAL(ignoredWordAdded(QString)), this, SLOT (spellRemoveMarkers(QString))); disconnect(speller, SIGNAL(ignoredWordAdded(QString)), this, SLOT (spellRemoveMarkers(QString)));
} }
speller = su; speller = su;
connect(speller, SIGNAL(aboutToDelete()), this, SLOT(reloadSpeller())); connect(speller, SIGNAL(aboutToDelete()), this, SLOT(reloadSpeller()));
connect(speller, SIGNAL(ignoredWordAdded(QString)), this, SLOT(spellRemov eMarkers(QString))); connect(speller, SIGNAL(ignoredWordAdded(QString)), this, SLOT(spellRemov eMarkers(QString)));
emit spellerChanged(name); emit spellerChanged(name);
if (document) { if (document && updateComment) {
document->updateMagicComment("spellcheck", speller->name()); document->updateMagicComment("spellcheck", speller->name());
} }
// force new highlighting // force new highlighting
documentContentChanged(0, editor->document()->lines()); documentContentChanged(0, editor->document()->lines());
return true; return true;
} }
void LatexEditorView::reloadSpeller() void LatexEditorView::reloadSpeller()
{ {
if (useDefaultSpeller) { if (useDefaultSpeller) {
 End of changes. 2 change blocks. 
3 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)