alfredo's qspellcheck fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5938 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2003-01-13 09:17:12 +00:00
parent 055fe2604d
commit 2903fd3fc5
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-01-12 Alfredo Braunstein <abraunst@libero.it>
* QSpellcheckerDialog.C (spellcheck,update_contents): enable/disable
elements of the dialog.
2003-01-12 Lars Gullik Bjønnes <larsbj@gullik.net>
* ui/Makefile.am (EXTRA_DIST): dist ui files

View File

@ -52,6 +52,13 @@ void QSpellchecker::update_contents()
dialog_->replaceCO->clear();
dialog_->suggestionsLB->clear();
dialog_->spellcheckPR->setProgress(0);
dialog_->spellcheckPB->setEnabled(true);
dialog_->wordED->setEnabled(false);
dialog_->replaceCO->setEnabled(false);
dialog_->replacePB->setEnabled(false);
dialog_->ignorePB->setEnabled(false);
dialog_->replacePB_3->setEnabled(false);
dialog_->addPB->setEnabled(false);
}
@ -81,8 +88,14 @@ void QSpellchecker::replace()
void QSpellchecker::spellcheck()
{
controller().check();
dialog_->spellcheckPB->setEnabled(false);
dialog_->wordED->setEnabled(true);
dialog_->replaceCO->setEnabled(true);
dialog_->replacePB->setEnabled(true);
dialog_->ignorePB->setEnabled(true);
dialog_->replacePB_3->setEnabled(true);
dialog_->addPB->setEnabled(true);
controller().check();
}