Mac OS X is macOS these days

This commit is contained in:
Jean-Marc Lasgouttes 2024-10-23 14:14:04 +02:00
parent 19ef7a2dea
commit 438fed6b62
14 changed files with 27 additions and 27 deletions

2
NEWS
View File

@ -106,7 +106,7 @@ python 2.x and python 3.x.
One oft-requested enhancement was to restore a keyboard shortcut for opening One oft-requested enhancement was to restore a keyboard shortcut for opening
the 'settings' menu of graphics, reference, etc, insets. This is now Control- the 'settings' menu of graphics, reference, etc, insets. This is now Control-
Alt-i, on Windows and Linux, and Control-Option-i on OSX (assuming you are Alt-i, on Windows and Linux, and Control-Option-i on macOS (assuming you are
using the default keybindings). using the default keybindings).

View File

@ -102,7 +102,7 @@ struct AspellChecker::Private
return "data"; return "data";
} }
/// os package directory constants /// os package directory constants
/// macports on Mac OS X or /// macports on macOS or
/// aspell rpms on Linux /// aspell rpms on Linux
const string osPackageBase(void) const string osPackageBase(void)
{ {

View File

@ -733,7 +733,7 @@ bool Formats::edit(Buffer const & buffer, FileName const & filename,
return editLinkBackFile(filename.absFileName().c_str()); return editLinkBackFile(filename.absFileName().c_str());
#else #else
Alert::error(_("Cannot edit file"), Alert::error(_("Cannot edit file"),
_("LinkBack files can only be edited on Apple Mac OSX.")); _("LinkBack files can only be edited on macOS."));
return false; return false;
#endif // USE_MACOSX_PACKAGING #endif // USE_MACOSX_PACKAGING
} }

View File

@ -3203,7 +3203,7 @@ string const LyXRC::getDescription(LyXRCTags tag)
break; break;
case RC_MAC_LIKE_CURSOR_MOVEMENT: case RC_MAC_LIKE_CURSOR_MOVEMENT:
str = _("Use the Mac OS X conventions for cursor movement"); str = _("Use the macOS conventions for cursor movement");
break; break;
case RC_SHOW_MACRO_LABEL: case RC_SHOW_MACRO_LABEL:

View File

@ -72,7 +72,7 @@
using namespace std; using namespace std;
using namespace lyx::support; using namespace lyx::support;
// OSX clang and msvc < 2015 do not support C++11 thread_local // (old?) macOS clang and msvc < 2015 do not support C++11 thread_local
#if defined(__APPLE__) #if defined(__APPLE__)
#define THREAD_LOCAL_STATIC static __thread #define THREAD_LOCAL_STATIC static __thread
#elif defined(_MSC_VER) && (_MSC_VER < 1900) #elif defined(_MSC_VER) && (_MSC_VER < 1900)

View File

@ -1094,7 +1094,7 @@ struct GuiApplication::Private
Qt::ApplicationState last_state_; Qt::ApplicationState last_state_;
#if defined(Q_OS_MAC) && (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) #if defined(Q_OS_MAC) && (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
/// Linkback mime handler for MacOSX. /// Linkback mime handler for macOS.
QMacPasteboardMimeGraphics mac_pasteboard_mime_; QMacPasteboardMimeGraphics mac_pasteboard_mime_;
#endif #endif
@ -1172,7 +1172,7 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
if (platformName() == "xcb") { if (platformName() == "xcb") {
// doubleClickInterval() is 400 ms on X11 which is just too long. // doubleClickInterval() is 400 ms on X11 which is just too long.
// On Windows and Mac OS X, the operating system's value is used. // On Windows and macOS, the operating system's value is used.
// On Microsoft Windows, calling this function sets the double // On Microsoft Windows, calling this function sets the double
// click interval for all applications. So we don't! // click interval for all applications. So we don't!
QApplication::setDoubleClickInterval(300); QApplication::setDoubleClickInterval(300);
@ -2972,7 +2972,7 @@ bool GuiApplication::event(QEvent * e)
{ {
switch(e->type()) { switch(e->type()) {
case QEvent::FileOpen: { case QEvent::FileOpen: {
// Open a file; this happens only on Mac OS X for now. // Open a file; this happens only on macOS for now.
// //
// We do this asynchronously because on startup the batch // We do this asynchronously because on startup the batch
// commands are not executed here yet and the gui is not ready // commands are not executed here yet and the gui is not ready

View File

@ -541,11 +541,11 @@ bool GuiClipboard::isInternal() const
bool GuiClipboard::hasInternal() const bool GuiClipboard::hasInternal() const
{ {
// Windows and Mac OS X does not have the concept of ownership; // Windows and macOS does not have the concept of ownership;
// the clipboard is a fully global resource so all applications // the clipboard is a fully global resource so all applications
// are notified of changes. However, on Windows ownership is // are notified of changes. However, on Windows ownership is
// emulated by Qt through the OleIsCurrentClipboard() API, while // emulated by Qt through the OleIsCurrentClipboard() API, while
// on Mac OS X we deal with this issue by ourself. // on macOS we deal with this issue by ourself.
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
return true; return true;
#else #else

View File

@ -1523,7 +1523,7 @@ void GuiView::updateWindowTitle(GuiWorkArea * wa)
} }
title += from_ascii(" - LyX"); title += from_ascii(" - LyX");
setWindowTitle(toqstr(title)); setWindowTitle(toqstr(title));
// Sets the path for the window: this is used by OSX to // Sets the path for the window: this is used by macOS to
// allow a context click on the title bar showing a menu // allow a context click on the title bar showing a menu
// with the path up to the file // with the path up to the file
setWindowFilePath(toqstr(buf.absFileName())); setWindowFilePath(toqstr(buf.absFileName()));
@ -1788,7 +1788,7 @@ bool GuiView::event(QEvent * e)
} }
#else #else
// Pre 6.8: OS-dependent // Pre 6.8: OS-dependent
// 1. Mac OS X // 1. macOS
// Limit to Q_OS_MAC as this unnecessarily would also // Limit to Q_OS_MAC as this unnecessarily would also
// trigger on Linux with grave performance issues // trigger on Linux with grave performance issues
#ifdef Q_OS_MAC #ifdef Q_OS_MAC

View File

@ -92,7 +92,7 @@ namespace frontend {
namespace { namespace {
// MacOSX specific stuff is at the end. // macOS specific stuff is at the end.
class MenuDefinition; class MenuDefinition;
@ -2327,8 +2327,8 @@ struct Menus::Impl {
void expand(MenuDefinition const & frommenu, MenuDefinition & tomenu, void expand(MenuDefinition const & frommenu, MenuDefinition & tomenu,
BufferView const *) const; BufferView const *) const;
/// Initialize specific MACOS X menubar /// Initialize specific macOS menubar
void macxMenuBarInit(QMenuBar * qmb); void macMenuBarInit(QMenuBar * qmb);
/// Mac special menu. /// Mac special menu.
/** This defines a menu whose entries list the FuncRequests /** This defines a menu whose entries list the FuncRequests
@ -2378,9 +2378,9 @@ MenuDefinition Menus::Impl::mac_special_menu_;
that this menubar will be used also when one of LyX' dialogs has that this menubar will be used also when one of LyX' dialogs has
focus. (JMarc) focus. (JMarc)
*/ */
void Menus::Impl::macxMenuBarInit(QMenuBar * qmb) void Menus::Impl::macMenuBarInit(QMenuBar * qmb)
{ {
/* The qt/mac menu code has special code for specifying the role /* The macOS menu code has special code for specifying the role
of a menu entry. However, it does not work very well with our of a menu entry. However, it does not work very well with our
scheme of creating menus on demand, and therefore we need to scheme of creating menus on demand, and therefore we need to
put these entries in a special invisible menu. (JMarc) put these entries in a special invisible menu. (JMarc)
@ -2410,7 +2410,7 @@ void Menus::Impl::macxMenuBarInit(QMenuBar * qmb)
const size_t num_entries = sizeof(entries) / sizeof(entries[0]); const size_t num_entries = sizeof(entries) / sizeof(entries[0]);
const bool first_call = mac_special_menu_.empty(); const bool first_call = mac_special_menu_.empty();
LYXERR(Debug::GUI, "Creating Mac OS X special menu bar"); LYXERR(Debug::GUI, "Creating macOS special menu bar");
// the special menu for Menus. Fill it up only once. // the special menu for Menus. Fill it up only once.
if (first_call) { if (first_call) {
for (size_t i = 0 ; i < num_entries ; ++i) { for (size_t i = 0 ; i < num_entries ; ++i) {
@ -2726,13 +2726,13 @@ void Menus::fillMenuBar(QMenuBar * qmb, GuiView * view, bool initial)
// the first time a QMenuBar is created. Otherwise Qt will // the first time a QMenuBar is created. Otherwise Qt will
// create duplicate items in the application menu. It seems // create duplicate items in the application menu. It seems
// that Qt does not remove them when the QMenubar is cleared. // that Qt does not remove them when the QMenubar is cleared.
d->macxMenuBarInit(qmb); d->macMenuBarInit(qmb);
#endif #endif
} else { } else {
// Clear all menubar contents before filling it. // Clear all menubar contents before filling it.
qmb->clear(); qmb->clear();
#if (defined(Q_OS_MAC)) #if (defined(Q_OS_MAC))
d->macxMenuBarInit(qmb); d->macMenuBarInit(qmb);
#endif #endif
} }

View File

@ -98,7 +98,7 @@
<item row="3" column="0" colspan="3"> <item row="3" column="0" colspan="3">
<widget class="QCheckBox" name="dontswapCB"> <widget class="QCheckBox" name="dontswapCB">
<property name="toolTip"> <property name="toolTip">
<string>Mac OS X specific setting for use with emacs bindings. Takes effect next time LyX is launched.</string> <string>macOS specific setting for use with emacs bindings. Takes effect next time LyX is launched.</string>
</property> </property>
<property name="text"> <property name="text">
<string>Do not swap Apple and Control keys</string> <string>Do not swap Apple and Control keys</string>

View File

@ -10,7 +10,7 @@
* *
* A store of the paths to the various different directories used * A store of the paths to the various different directories used
* by LyX. These paths differ markedly from one OS to another, * by LyX. These paths differ markedly from one OS to another,
* following the local Windows, MacOS X or Posix conventions. * following the local Windows, macOS or Posix conventions.
*/ */
#ifndef PACKAGE_H #ifndef PACKAGE_H