Re: [Plplot-devel] plplot_pyqt4 status

2009-07-05 Thread Alan W. Irwin
To Hazen and Geoff: (Geoff should be interested in the last paragraph.) On 2009-07-05 12:23-0400 Hazen Babcock wrote: > Alan W. Irwin wrote: >> Now that you have gotten pyqt4 to work correctly with PLplot, I am looking >> forward to you extending the present example and/or adding additional pyqt

Re: [Plplot-devel] plplot_pyqt4 status

2009-07-05 Thread Hazen Babcock
Alan W. Irwin wrote: > Now that you have gotten pyqt4 to work correctly with PLplot, I am looking > forward to you extending the present example and/or adding additional pyqt4 > examples to demonstrate the pyqt4 PLplot possibilities that have now opened > up. I've expanded the present example to m

Re: [Plplot-devel] plplot_pyqt4 status

2009-07-02 Thread Alan W. Irwin
On 2009-07-02 13:14-0400 Hazen Babcock wrote: > Alban Rochel wrote: >> Hello all, >> >> Actually, this is one of the few days I am in contact, so: >> - I must have misunderstood something about dynamic casts because I >> believed that QtPLDriver* widget=(QtPLDriver*)(pls->dev) would have >> create

Re: [Plplot-devel] plplot_pyqt4 status

2009-07-02 Thread Hazen Babcock
Alban Rochel wrote: > Hello all, > > Actually, this is one of the few days I am in contact, so: > - I must have misunderstood something about dynamic casts because I > believed that QtPLDriver* widget=(QtPLDriver*)(pls->dev) would have > created a "pure" QtPLDriver* object, and thus the member fun

Re: [Plplot-devel] plplot_pyqt4 status

2009-07-01 Thread Alan W. Irwin
On 2009-07-01 08:58+0100 Alban Rochel wrote: > Hello all, > > Actually, this is one of the few days I am in contact, so: > - I must have misunderstood something about dynamic casts because I > believed that QtPLDriver* widget=(QtPLDriver*)(pls->dev) would have > created a "pure" QtPLDriver* object

Re: [Plplot-devel] plplot_pyqt4 status

2009-07-01 Thread Alban Rochel
Alan W. Irwin wrote: > On 2009-07-01 02:17+0300 Dmitri Gribenko wrote: > > Thanks Terrence and Dmitri for your ideas about how to solve this issue. > > I believe Alban will not be able to comment in a timely manner because he is > probably out of e-mail contact right now. Given that situation, I

Re: [Plplot-devel] plplot_pyqt4 status

2009-06-30 Thread Alan W. Irwin
On 2009-07-01 02:17+0300 Dmitri Gribenko wrote: > On Wed, Jul 1, 2009 at 1:35 AM, trc wrote: >> You cannot use dynamic_cast to convert the void pointer  pls->dev to a >> QtPLWidget pointer. >> >> The purpose of dynamic_cast is to do a safe (runtime checked) cast >> from a base class to a derived

Re: [Plplot-devel] plplot_pyqt4 status

2009-06-30 Thread Dmitri Gribenko
On Wed, Jul 1, 2009 at 1:35 AM, trc wrote: > You cannot use dynamic_cast to convert the void pointer  pls->dev to a > QtPLWidget pointer. > > The purpose of dynamic_cast is to do a safe (runtime checked) cast > from a base class to a derived class or vice-versa. As QtPLWidget is > not derived from

Re: [Plplot-devel] plplot_pyqt4 status

2009-06-30 Thread trc
Alan W. Irwin wrote: > On 2009-06-28 20:49-0400 Hazen Babcock wrote: > >> Hazen Babcock wrote: >>> Poking around a little more... >>> >>> In the function plD_line_qt we are not getting past this statement: >>> >>> #if defined(PLD_qtwidget) || defined(PLD_extqt) >>> if(widget==NULL) widget=dyn

Re: [Plplot-devel] plplot_pyqt4 status

2009-06-30 Thread Alan W. Irwin
On 2009-06-28 20:49-0400 Hazen Babcock wrote: > Hazen Babcock wrote: >> >> Poking around a little more... >> >> In the function plD_line_qt we are not getting past this statement: >> >> #if defined(PLD_qtwidget) || defined(PLD_extqt) >> if(widget==NULL) widget=dynamic_cast((QWidget *) pls->de

Re: [Plplot-devel] plplot_pyqt4 status

2009-06-28 Thread Hazen Babcock
Hazen Babcock wrote: > > Poking around a little more... > > In the function plD_line_qt we are not getting past this statement: > > #if defined(PLD_qtwidget) || defined(PLD_extqt) > if(widget==NULL) widget=dynamic_cast((QWidget *) pls->dev); > #endif > if(widget==NULL) return; > > S

Re: [Plplot-devel] plplot_pyqt4 status

2009-06-24 Thread Hazen Babcock
Hazen Babcock wrote: > Hazen Babcock wrote: >> Alan W. Irwin wrote: >>> * I modified pyqt4_test.py a bit so that it would look for the plplot and >>>plplot_pyqt4 extension modules in the correct place. The result was a >>> GUI >>>with nothing plotted but no error messages. I then modifie

Re: [Plplot-devel] plplot_pyqt4 status

2009-06-24 Thread Hazen Babcock
Hazen Babcock wrote: > Alan W. Irwin wrote: >> * I modified pyqt4_test.py a bit so that it would look for the plplot and >>plplot_pyqt4 extension modules in the correct place. The result was a GUI >>with nothing plotted but no error messages. I then modified pyqt4_test.py >>some more

Re: [Plplot-devel] plplot_pyqt4 status

2009-06-23 Thread Hazen Babcock
Alan W. Irwin wrote: > > * I modified pyqt4_test.py a bit so that it would look for the plplot and >plplot_pyqt4 extension modules in the correct place. The result was a GUI >with nothing plotted but no error messages. I then modified pyqt4_test.py >some more to put in some actual pl

[Plplot-devel] plplot_pyqt4 status

2009-06-22 Thread Alan W. Irwin
Hi Hazen: As of revision 10066 I have completed all planned build system changes involving the plplot_pyqt4 extension module and the pyqt4_test.py example that uses that. This work has involved a number of changes: * I wasn't having much luck trying to fool CMake into interpreting qt.so as a