]> git.lyx.org Git - features.git/commitdiff
provide native spell checker for Mac OS X
authorStephan Witt <switt@lyx.org>
Thu, 8 Jul 2010 07:56:29 +0000 (07:56 +0000)
committerStephan Witt <switt@lyx.org>
Thu, 8 Jul 2010 07:56:29 +0000 (07:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34812 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiPrefs.cpp

index 7a2036171627eeabb2133a719b45776bea26f36a..fecf5791bc4a97d9c84c66f619c5e7b321e89f47 100644 (file)
@@ -782,6 +782,7 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
        // FIXME: Do we need a lyxrc setting for this on Mac? This behaviour
        // seems to be the default case for applications like LyX.
        setQuitOnLastWindowClosed(false);
+       // setAttribute(Qt::AA_MacDontSwapCtrlAndMeta);
 
        // This allows to translate the strings that appear in the LyX menu.
        /// A translator suitable for the entries in the LyX menu.
index d8f1504b4fa5b1feeaf3ebd7eb59c3e23fc69246..8ee71f911bb7f142dd960ad9c2ddcbaf57dea9d4 100644 (file)
@@ -1335,6 +1335,13 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
 {
        setupUi(this);
 
+// FIXME: this check should test the target platform (darwin)
+#ifdef USE_MACOSX_PACKAGING
+       spellcheckerCB->addItem(qt_("native"), QString("native"));
+#define CONNECT_APPLESPELL
+#else
+#undef CONNECT_APPLESPELL
+#endif
 #if defined(USE_ASPELL)
        spellcheckerCB->addItem(qt_("aspell"), QString("aspell"));
 #endif
@@ -1345,7 +1352,7 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
        spellcheckerCB->addItem(qt_("hunspell"), QString("hunspell"));
 #endif
 
-       #if defined(USE_ASPELL) || defined(USE_ENCHANT) || defined(USE_HUNSPELL)
+       #if defined(CONNECT_APPLESPELL) || defined(USE_ASPELL) || defined(USE_ENCHANT) || defined(USE_HUNSPELL)
                connect(spellcheckerCB, SIGNAL(currentIndexChanged(int)),
                        this, SIGNAL(changed()));
                connect(altLanguageED, SIGNAL(textChanged(QString)),