// 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.
{
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
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)),