From: Alan W. I. <ir...@be...> - 2009-09-28 18:33:34
|
On 2009-09-28 13:29-0400 Hazen Babcock wrote: >> Note, there is no resize currently used in extqt, but I tried something >> similar to the (now) existing resize and move for the qtwidgets case, and >> there were no build errors or valgrind errors when I ran >> examples/c++/qt_example. However, that example was completely oblivious to >> PLplot -geometry options (size or offset) so I didn't commit that change. >> After all, I am only doing this by rote with no sound fundamental knowledge >> about what I should be doing here. Thus, I am leaving it to the Qt4/C++ >> experts here to get the -geometry option to work for >> examples/c++/qt_example >> and extqt in general. >> >> Also, I leave it to the cairo experts here to get offsets to work for >> xcairo >> and extcairo. I hope it will be just as straightforward for them as it >> was for me for the -dev qtwidget case. > > I'm still puzzled as to why this behavior is desired for extcairo & > extqt. Both of these drivers use an externally supplied "context" to > render the plot. To me it doesn't seem like a good idea for them to be > able to move this context around on the screen and/or inside a window. I > believe this should be the job of the program that supplied the context > in the first place and that these drivers are doing the right thing by > ignoring the -geometry option. If we want qt_example to respect the > -geometry option then this should be done by the main qt window and not by > the extqt widget attempting to move & resize its parent window. I think that is a good argument which certainly simplifies our life. That just leaves xcairo to be made offset-aware from the above list. 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); PLplot scientific plotting software package (plplot.org); 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 __________________________ |