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
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
> "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: $
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
>
>
> "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
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
> "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