Am 27.09.2010 um 18:35 schrieb Stephan Witt:
> Am 27.09.2010 um 17:48 schrieb Jürgen Spitzmüller:
>
>> OTOH if the spell checkers fail to check such cases properly, there's
>> probably
>> not much more we can do.
>
> Ok, that I'd say too, after thinking again.
> But somehow we should solve the problem with being locked at "Ignore all".
That would be the attached patch. Is this acceptable?
Stephan
Index: src/frontends/qt4/GuiSpellchecker.cpp
===================================================================
--- src/frontends/qt4/GuiSpellchecker.cpp (Revision 35523)
+++ src/frontends/qt4/GuiSpellchecker.cpp (Arbeitskopie)
@@ -157,6 +157,13 @@
}
+void GuiSpellchecker::forward()
+{
+ dispatch(FuncRequest(LFUN_ESCAPE));
+ dispatch(FuncRequest(LFUN_CHAR_FORWARD));
+}
+
+
void GuiSpellchecker::on_languageCO_activated(int index)
{
string const lang =
@@ -174,6 +181,7 @@
/// replace all occurrences of word
if (d->word_.lang() && !d->word_.word().empty())
theSpellChecker()->accept(d->word_);
+ forward();
check();
}
@@ -182,14 +190,14 @@
{
/// insert word in personal dictionary
theSpellChecker()->insert(d->word_);
+ forward();
check();
}
void GuiSpellchecker::on_ignorePB_clicked()
{
- dispatch(FuncRequest(LFUN_ESCAPE));
- dispatch(FuncRequest(LFUN_CHAR_FORWARD));
+ forward();
check();
}
Index: src/frontends/qt4/GuiSpellchecker.h
===================================================================
--- src/frontends/qt4/GuiSpellchecker.h (Revision 35523)
+++ src/frontends/qt4/GuiSpellchecker.h (Arbeitskopie)
@@ -58,8 +58,9 @@
bool needBufferOpen() const { return true; }
///}
+ /// move to next position after current word
+ void forward();
/// check text until next misspelled/unknown word
- /// returns true when finished
void check();
/// show count of checked words at normal exit
void showSummary();