Re: [experimental PATCH] Fix menu merging madness in Qt/Mac

2004-07-09 Thread Nirmal Govind
How does it work? It is easy: for 1/, we make sure that dummy menu entries are added at the beginning of each menu containing the About/Preferences/Quit entries. They are then 'stolen' by Qt/Mac and go to the LyX menu/ I suspect that the current code does not work in all cases, but we'll see this l

Re: [experimental PATCH] Fix menu merging madness in Qt/Mac

2004-07-09 Thread Georg Baum
Am Freitag, 9. Juli 2004 15:19 schrieb Jean-Marc Lasgouttes: > The big problem with this patch is that it does not build, and I do > not know why. After changing the two new #ifdef in lyx_gui.C to > #ifndef, compilation yields: > > g++ -DHAVE_CONFIG_H -I. -I../../../../lyx-devel/src/frontends/qt2

Re: [experimental PATCH] Fix menu merging madness in Qt/Mac

2004-07-09 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> moc is a preprocessor. It is used to generate a .C file, Angus> substituting all those nasty Q_FOO macros for c++ code. The c++ Angus> compiler gets to compile this generated .C file. Indeed. However, we have a rule like %_moc.C: $

Re: [experimental PATCH] Fix menu merging madness in Qt/Mac

2004-07-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> >> writes: > > Angus> This does indeed need to be passed through moc. Q_EXPORT and > Angus> Q_OBJECT are moc macros. > > Angus> lyx_gui.C is currently defined in Makefile.am: Makefile.am: > Angus> lyx_gui.C > >

Re: [experimental PATCH] Fix menu merging madness in Qt/Mac

2004-07-09 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> This does indeed need to be passed through moc. Q_EXPORT and Angus> Q_OBJECT are moc macros. Angus> lyx_gui.C is currently defined in Makefile.am: Makefile.am: Angus> lyx_gui.C Angus> You need to move it to the MOCFILES target of

Re: [experimental PATCH] Fix menu merging madness in Qt/Mac

2004-07-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > How come that QTranslator is an incomplete type although I did > include ? Do I need to use moc or another cryptic > tool? How do I do that? H. Looking at the header file in question: class Q_EXPORT QTranslator: public QObject { Q_OBJECT public: This doe

Re: [experimental PATCH] Fix menu merging madness in Qt/Mac

2004-07-09 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On Jul 8, 2004, at 9:55 AM, Jean-Marc Lasgouttes wrote: Bennett> However, "LyX > Preferences" is still greyed out, and once Bennett> again I can't find a way to access it from the menu. >> And is "LyX >About LyX" present (and do