Show only those spellers that are active.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32164 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-23 14:03:19 +00:00
parent 38a6848ecd
commit 626e17a55d
2 changed files with 28 additions and 10 deletions

View File

@ -277,7 +277,13 @@ void LyXRC::setDefaults()
backupdir_path.erase();
display_graphics = true;
// Spellchecker settings:
#if defined(USE_ASPELL)
spellchecker = "aspell";
#elif defined(USE_HUNSPELL)
spellchecker = "hunspell";
#else
spellchecker = "aspell";
#endif
spellchecker_accept_compound = false;
spellcheck_continuously = false;
use_kbmap = false;

View File

@ -1293,9 +1293,14 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
{
setupUi(this);
#if defined(USE_ASPELL)
spellcheckerCB->addItem("aspell");
#endif
#if defined(USE_HUNSPELL)
spellcheckerCB->addItem("hunspell");
#endif
if (theSpellChecker()) {
connect(spellcheckerCB, SIGNAL(currentIndexChanged(int)),
this, SIGNAL(changed()));
connect(altLanguageED, SIGNAL(textChanged(QString)),
@ -1306,6 +1311,13 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
this, SIGNAL(changed()));
connect(spellcheckContinuouslyCB, SIGNAL(clicked()),
this, SIGNAL(changed()));
} else {
spellcheckerCB->setEnabled(false);
altLanguageED->setEnabled(false);
escapeCharactersED->setEnabled(false);
compoundWordCB->setEnabled(false);
spellcheckContinuouslyCB->setEnabled(false);
}
}