Re: PATCH(WIP): Printing Support And Save GQB/Explain as an image

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org
Cc: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>, Dave Page <dpage(at)pgadmin(dot)org>
Subject: Re: PATCH(WIP): Printing Support And Save GQB/Explain as an image
Date: 2009-11-19 07:55:56
Message-ID: 200911190855.56572.guillaume@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Le mardi 17 novembre 2009 à 13:35:05, Ashesh Vashi a écrit :
> Hi All,
>
> After a long time, I got some time to refine/correct the patch.
>
> Please find the WIP patch for "Printing Support in frmQuery
> (QueryBuilder/Graphical Query Builder(GQB)/Explain) & Save as an image".
>

It doesn't apply cleanly:

guillaume(at)laptop:~/freeprojects/svn.pgadmin.org/trunk/pgadmin3.asheh$ patch -
Np0 < /home/guillaume/*.patch
patching file pgadmin/ctl/explainPrintout.cpp
patching file pgadmin/ctl/queryPrintout.cpp
patching file pgadmin/ctl/module.mk
patching file pgadmin/ctl/explainCanvas.cpp
patching file pgadmin/pgAdmin3.cpp
patching file pgadmin/include/ctl/explainCanvas.h
patching file pgadmin/include/ctl/ctlSQLBox.h
patching file pgadmin/include/frm/menu.h
patching file pgadmin/include/frm/frmQuery.h
patching file pgadmin/include/utils/sysSettings.h
patching file pgadmin/include/gqb/gqbEvents.h
patching file pgadmin/include/gqb/gqbGraphSimple.h
patching file pgadmin/include/gqb/gqbViewController.h
patching file pgadmin/include/gqb/gqbGraphBehavior.h
patching file pgadmin/frm/frmQuery.cpp
patching file pgadmin/pgAdmin3.vcproj
Hunk #1 FAILED at 416.
Hunk #2 FAILED at 3960.
2 out of 2 hunks FAILED -- saving rejects to file pgadmin/pgAdmin3.vcproj.rej
patching file pgadmin/gqb/gqbView.cpp
patching file pgadmin/gqb/gqbGraphSimple.cpp
patching file pgadmin/gqb/module.mk
Hunk #1 FAILED at 20.
Hunk #2 FAILED at 28.
2 out of 2 hunks FAILED -- saving rejects to file pgadmin/gqb/module.mk.rej
patching file pgadmin/gqb/gqbController.cpp
patching file pgadmin/gqb/gqbPrintout.cpp
patching file xtra/wx-build/build-wxgtk

Anyways, I can compile it on Linux. But the compile doesn't end well:

frmQuery.o: In function `frmQuery::OnPrintPreview(wxCommandEvent&)':
/home/guillaume/freeprojects/svn.pgadmin.org/trunk/pgadmin3.asheh/pgadmin/./frm/frmQuery.cpp:2656:
undefined reference to `ctlSQLBox::PrintPreview()'
/home/guillaume/freeprojects/svn.pgadmin.org/trunk/pgadmin3.asheh/pgadmin/./frm/frmQuery.cpp:2658:
undefined reference to `gqbView::PrintPreview()'
/home/guillaume/freeprojects/svn.pgadmin.org/trunk/pgadmin3.asheh/pgadmin/./frm/frmQuery.cpp:2660:
undefined reference to `ExplainCanvas::PrintPreview()'
frmQuery.o: In function `frmQuery::OnPrint(wxCommandEvent&)':
/home/guillaume/freeprojects/svn.pgadmin.org/trunk/pgadmin3.asheh/pgadmin/./frm/frmQuery.cpp:2666:
undefined reference to `ctlSQLBox::Print()'
/home/guillaume/freeprojects/svn.pgadmin.org/trunk/pgadmin3.asheh/pgadmin/./frm/frmQuery.cpp:2668:
undefined reference to `gqbView::Print()'
/home/guillaume/freeprojects/svn.pgadmin.org/trunk/pgadmin3.asheh/pgadmin/./frm/frmQuery.cpp:2670:
undefined reference to `ExplainCanvas::Print()'
collect2: ld returned 1 exit status

There are probably a #include missing or something like this. Something really
obvious. I don't have time to work on this right now because I'll begin a
training course in a couple of minutes. I just wanted you to know about these
issues.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Guillaume Lelarge 2009-11-19 08:03:01 Re: Fwd: [Bug 484145] [NEW] Keyboard shortcuts for closing window / application inconsistent with GNOME
Previous Message Dave Page 2009-11-19 07:29:00 Database reconnect patch