|
From: Mojca M. <moj...@gm...> - 2012-01-07 14:06:23
|
2012/1/7 Jérôme Lodewyck:
> Hi,
>
> here is an update patch. It implement the idea mentioned in previous mails
> of an auxiliary program started by exec after the fork. On my Linux system,
> with this patch, the Qt terminal works as well as before.
>
> Le Vendredi 6 Janvier 2012 15:14:47 vous avez écrit :
>> It has its flaws, but I can finally see it plot a graph.
>>
>> So, here's a list of problems:
>>
>> 1.) Your headers don't compile
>
> That should be fixed in the new patch
Thank you for the patch. I will test it now. (Where should the image
from setWindowIcon(QIcon(":/images/gnuplot")); come from?)
> As for the additional window, I have no clue... Is there a way in OS X to find
> out the pid of a window, to check whether it is open by gunplot or gnuplot_qt
> ? Could you send the output of "ps auxwww" (or rather the lines that contain
> "gnuplot") ?
>From the old patch:
mojca 27697 0,0 0,4 2538428 20716 s024 S+ 2:51pm
0:00.43 gnuplot_qt
mojca 27696 0,0 0,4 2533056 21648 s024 S+ 2:51pm
0:00.36 ./inst/bin/gnuplot
If I close the window with the plot (and one "window" remains):
mojca 27697 0,0 0,0 0 0 s024 Z+ 2:51pm
0:00.00 (gnuplot_qt)
mojca 27696 0,0 0,4 2532008 21648 s024 S+ 2:51pm
0:00.37 ./inst/bin/gnuplot
It looks to me as if one non-functional "window" belongs to gnuplot
(when you fork and so on) and the working one belongs to gnuplot_qt.
Let me be clear: there are two windows/programs displayed in dock. The
real window cannot be seen if I try to "apple-tab" to it and it is not
responding to anything.
>> 3.) Print! WOW! I was really happy about that. However:
>> > Jan 6 15:11:53 smurfette.local gnuplot_qt[23619] <Error>:
>> > kCGErrorIllegalArgument: _CGSFindSharedWindow: WID -1
>> Jan 6 15:11:53 smurfette.local gnuplot_qt[23619] <Error>:
>> kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch
>> errors as they are logged.
>> Jan 6 15:11:53 smurfette.local gnuplot_qt[23619] <Error>:
>> kCGErrorIllegalArgument:
>> CGSSetWindowShadowAndRimParametersWithStretch: Invalid window
>> 0xffffffff
>
> Is the "print" window displayed or not ?
Print dialog box listing printers etc.? No, it isn't.
>> (Export to PDF create A4 instead of what's on screen, but that's not
>> related to your patch.)
>
> Yes, I have scratched my head about this one, but did not find any solution.
I can also take a look, but that is a much lower priority.
Mojca
|