#6917 move forward after adding a word to personal dictionary or the list of ignored words

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35525 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-09-28 15:09:06 +00:00
parent d18995cd79
commit 1a681aaf24
2 changed files with 12 additions and 3 deletions

View File

@ -157,6 +157,13 @@ void GuiSpellchecker::updateView()
}
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 @@ void GuiSpellchecker::on_ignoreAllPB_clicked()
/// replace all occurrences of word
if (d->word_.lang() && !d->word_.word().empty())
theSpellChecker()->accept(d->word_);
forward();
check();
}
@ -182,14 +190,14 @@ void GuiSpellchecker::on_addPB_clicked()
{
/// 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();
}

View File

@ -58,8 +58,9 @@ private:
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();