mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
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:
parent
38a6848ecd
commit
626e17a55d
@ -277,7 +277,13 @@ void LyXRC::setDefaults()
|
|||||||
backupdir_path.erase();
|
backupdir_path.erase();
|
||||||
display_graphics = true;
|
display_graphics = true;
|
||||||
// Spellchecker settings:
|
// Spellchecker settings:
|
||||||
|
#if defined(USE_ASPELL)
|
||||||
spellchecker = "aspell";
|
spellchecker = "aspell";
|
||||||
|
#elif defined(USE_HUNSPELL)
|
||||||
|
spellchecker = "hunspell";
|
||||||
|
#else
|
||||||
|
spellchecker = "aspell";
|
||||||
|
#endif
|
||||||
spellchecker_accept_compound = false;
|
spellchecker_accept_compound = false;
|
||||||
spellcheck_continuously = false;
|
spellcheck_continuously = false;
|
||||||
use_kbmap = false;
|
use_kbmap = false;
|
||||||
|
@ -1293,9 +1293,14 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
|
|||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
|
#if defined(USE_ASPELL)
|
||||||
spellcheckerCB->addItem("aspell");
|
spellcheckerCB->addItem("aspell");
|
||||||
|
#endif
|
||||||
|
#if defined(USE_HUNSPELL)
|
||||||
spellcheckerCB->addItem("hunspell");
|
spellcheckerCB->addItem("hunspell");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (theSpellChecker()) {
|
||||||
connect(spellcheckerCB, SIGNAL(currentIndexChanged(int)),
|
connect(spellcheckerCB, SIGNAL(currentIndexChanged(int)),
|
||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
connect(altLanguageED, SIGNAL(textChanged(QString)),
|
connect(altLanguageED, SIGNAL(textChanged(QString)),
|
||||||
@ -1306,6 +1311,13 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
|
|||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
connect(spellcheckContinuouslyCB, SIGNAL(clicked()),
|
connect(spellcheckContinuouslyCB, SIGNAL(clicked()),
|
||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
|
} else {
|
||||||
|
spellcheckerCB->setEnabled(false);
|
||||||
|
altLanguageED->setEnabled(false);
|
||||||
|
escapeCharactersED->setEnabled(false);
|
||||||
|
compoundWordCB->setEnabled(false);
|
||||||
|
spellcheckContinuouslyCB->setEnabled(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user