the application I am writing uses OGL to create various shapes connected
with lines. Everything works fine, but I am now wondering how to properly
save the thing. The wxWindows docs mention the methods wxDiagram::SaveFile
and LoadFile but these do not seem implemented in wxPython (nor it is clear
to what they would save and how). So I wrote a few routines to save the
shapes and their attributes in XML format, but the question is now the
following: the graphs handled by my app can be relatively complex, so it is
very useful to use multiple control points for wxLineShapes (and possibly
make them splines). But is it possible to save and restore the position of
the line control points of a (splined) wxLineShape? If not (I couldn't find
how), is there any other possibility?
Thanks,
Davide
···
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
the application I am writing uses OGL to create various shapes connected
with lines. Everything works fine, but I am now wondering how to properly
save the thing. The wxWindows docs mention the methods wxDiagram::SaveFile
and LoadFile but these do not seem implemented in wxPython (nor it is clear
to what they would save and how).
They use some very old components of the library that have been
deprecated for a long time. With 2.4 they now have bee turned off by
default, so I had to disable the wxDiagram::[Load|Save]File methods too.
So I wrote a few routines to save the
shapes and their attributes in XML format, but the question is now the
following: the graphs handled by my app can be relatively complex, so it is
very useful to use multiple control points for wxLineShapes (and possibly
make them splines). But is it possible to save and restore the position of
the line control points of a (splined) wxLineShape? If not (I couldn't find
how), is there any other possibility?
Unfortunatly I don't know and don't have time to dive into the code
right now. Has anybody else tried this?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!