On Monday 26 March 2001 13:06, Angus Leeming wrote:
> Guys,
>
> find attached a patch to make the qt2 frontend compile on my box. I had to
> rename FormBase et al as Qt2Base to resolve a conflict when compiling. The
> original error message is at the bottom of the mail. See the problem?
>
> I also removed xforms from the Makefile include path.
>
> Finally, note also that I had to add the line
>
> #include <config.h>
>
> to moc_searchdlg.C to get it to compile. Don't know how you'd do this
> properly.
You need to add that in the designer (Edit/Form Properties/ as an additional
include file, then it will end up in the generated .h file and consequently
in the moc file generated from that. I did that (but don't understand why it
did compile with g++ on Linux).
I applied all the Qt2 stuff of your patch. Thanks again! The MVCed Copyright
dialog works now.
Kalle
>
> Angus
>
>
> -----------------------------------------------------------------
> Error message: justification for renaming FormBase et al as Qt2Base.
>
> cxx -std strict_ansi -nocleanup -DHAVE_CONFIG_H -I. -I. -I../../../src
> -I../../../src/ -I../../../src/frontends/ -I../../.. -I../../.. -I./qt2
> -I/usr/users/aleem/OTHERS_CODE/qt-2.2.1/include -I../../../boost
> -I../../../src/frontends/controllers -I../../../src/cheaders
> -I/usr/local/include -DQT_CLEAN_NAMESPACE -MD -c Dialogs.C -o Dialogs.o
> cxx: Warning: FormCharacter.h, line 39: "void FormCharacter::update(bool)"
> does not match "DialogBase::update" -- virtual function override
> intended? void update(bool switched = false);
> --------^
> cxx: Warning: FormParagraph.h, line 33: "void FormParagraph::update(bool)"
> does not match "DialogBase::update" -- virtual function override
> intended? void update(bool switched = false);
> -------------^
> cxx: Warning: FormPrint.h, line 39: "void FormPrint::update(bool)" does not
> match "DialogBase::update" -- virtual function override intended?
> void update(bool = false);
> -------------^
> cxx: Warning: FormSearch.h, line 43: "void FormSearch::update(bool)" does
> not match "DialogBase::update" -- virtual function override intended? void
> update(bool switched = false);
> --------^
> cxx: Error: ../xforms/FormBase.h, line 96: class "FormCopyrightDialogImpl"
> has no member "form"
> detected during:
> instantiation of "FL_FORM *FormDB<Dialog>::form() const [with
> Dialog=FormCopyrightDialogImpl]" at line 62 of
>
> "../../../src/frontends/controllers/ControlCopyright.h" implicit generation
> of "FormDB<Dialog>::~FormDB() [with Dialog=FormCopyrightDialogImpl]" at
> line 62 of "../../../src/frontends/controllers/ControlCopyright.h" implicit
> generation of "FormCB<Controller, Base>::~FormCB() [with
> Controller=ControlCopyright,
> Base=FormDB<FormCopyrightDialogImpl>]" at line 62 of
>
> "../../../src/frontends/controllers/ControlCopyright.h" implicit generation
> of "FormCopyright::~FormCopyright()" at line 62 of
>
> "../../../src/frontends/controllers/ControlCopyright.h" instantiation of
> "GUICopyright<GUIview,
> GUIbc>::GUICopyright(LyXView &, Dialogs &) [with
> GUIview=FormCopyright, GUIbc=qt2BC]"
> if (dialog_.get()) return dialog_->form;
> -------------------------------------------^
----------------------------------------
Content-Type: application/x-gzip; charset="iso-8859-1"; name="patch.diff.gz"
Content-Transfer-Encoding: base64
Content-Description:
----------------------------------------
--
Matthias Kalle Dalheimer
President & CEO/VD
Klarälvdalens Datakonsult AB
Fax +46-563-540028
Email [EMAIL PROTECTED]