On Nov 29, 2006, at 8:45 AM, Jean-Marc Lasgouttes wrote:
I looked at the part about menus merging, and I am not very
optimistic. First, we have a commented out part of code that reads
/*#ifdef Q_WS_MACX
// These translations are meant to break Qt/Mac menu merging
// algorithm on some entries. It lists the menu names that
// should not be moved to the LyX menu
QTranslator aqua_trans(0);
aqua_trans.insert(QTranslatorMessage("QMenuBar", "Setting", 0,
"do_not_merge_me"));
aqua_trans.insert(QTranslatorMessage("QMenuBar", "Config", 0,
"do_not_merge_me"));
aqua_trans.insert(QTranslatorMessage("QMenuBar", "Options", 0,
"do_not_merge_me"));
aqua_trans.insert(QTranslatorMessage("QMenuBar", "Setup", 0,
"do_not_merge_me"));
qApp->installTranslator(&aqua_trans);
#endif
*/
This part tries to avoid that things like Document>Settings gets
merged to the LyX menu. The problem is that it is not possible anymore
to create translations like that. We may or may not be able to create
a proper Qt .qm file that provides this feature, I do not know for
sure.
You say that LyX>Preferences does not work. Are the entries removed
from the main menu?
The logic is very strange.
On starting LyX, File > Preferences is there but grayed out. At this
point, <Cmd>-, will open the Preferences dialog.
Now open a new document. File > Preferences is still grayed out, and
<Cmd>-, opens Preferences. But, in the Document menu, Settings is
absent the first time the menu is opened. The second time the
Document menu is opened, Settings is there, and now File >
Preferences is no longer grayed out; however, selecting File >
Preferences (either from the menu or keyboard) brings up the Document
Settings dialog.
However, File > Preferences behaves like this only after *both*
<Cmd>-, has been typed at least once *and* the Document menu has been
dropped down at least once. If LyX is started, a new document opened,
and the Document menu selected, LyX > Preferences will still be
grayed out, and the first time <Cmd>-, is typed, it brings up the
Preferences dialog. After that, LyX > Preferences is no longer grayed
out, and it brings up Document Settings.
I hope that makes sense.
Bennett