Subject: Re: [Plplot-devel] [ plplot-Bugs-3604554 ] wxwidgets window

On 2013-02-25 16:46-0800 phil rosenberg wrote:

> Hi Alan
> Just wanted to let you know I've had a play with the wxWidget driver tonight. 
> All the basics are in place and it functions without segfaulting (at least on 
> windows), but there are a lot of memory leaks and some other bits to tidy up.
>  
> I wanted to check with you what the expected behaviour should be when a user 
> right clicks an interactive window? I don't have any other interactive 
> drivers installed to check against.  wxWidgets appeared to display the next 
> page in the current window, however, as far as I can tell this was only made 
> possible by orphaning the window and waiting for the next call to pleop() 
> which is exactly the bug that Fulvio initially reported. This is because at 
> the time of right clicking, the window has no way to know if another page is 
> going to be drawn. I think it would be cleaner from a coding point of view to 
> create another window for the additional page. This way if a user has set no 
> pause all their pages will be displayed one after the other in separate 
> windows. A final call to plend() or plend1() or pleop with pause reset would 
> then reenter the event loop and "activate" them all.
> How does this sound to you?
>  
> I'm assuming here that the standard behaviour or the interactive drivers is 
> to draw each new page when pleop() is called. The alternative would be to 
> store up the plots and wait until plend() is called then we can do whatever 
> we like as we know exactly how many pages are needed.

I just checked the behaviour with the xwin, tk, xcairo, unpatched
wxwidgets, and qtwidget devices for a multi-paged plot (x02c).  For
all of them, hitting the enter key advances to the next page or
cleanly exits the plot for the last page.  For all of them (except for
qtwidget, see aside below) right clicking has the same behaviour as
hitting the enter key.

Therefore, hitting the enter key or right clicking the mouse with the
current unpatched wxwidgets device driver with a multi-paged plot does
the right thing so please don't change that behaviour with your patch.

<aside> For qtwidget there appears to be a bug with right clicking on
the first page.  It does momentarily move the display to the second page, but 
then
it immediately exits.  I just now tried some quick experiments with
the bindings/qt_gui/plqt.cpp code, but could not find a fix for this
bug. So I am out of ideas, but I hope someone else with more knowledge
of Qt4 figures this out since our qt device driver has an excellent
reputation which we would like to continue to maintain.
</aside>

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to