Hi Stefan
On 08/04/12 22:12, schnumbl _ wrote:
The best integration with Veusz would work in both directions:
- Add Ikwed-Equations as labels to Veusz plots
- Use Veusz plots in the equation editor/calculation notepad to visualize
calculation results
What do you think is the best strategy to achieve this?
Should the equation editor be developed as Veusz-Plugin and extend
Veusz some day to be a general math tool like MathCad?
Thanks for letting us know. I hope your project succeeds.
I would keep the application modular enough that any integration could
be improved or modified. Keep any integration code separated from the
editor as much as possible. That way it could run as a separate
application or as part of veusz. You could play with the editor
separately and bring it in later.
I suspect that the current plugin system isn't powerful enough to make a
proper or usable interface with veusz. It doesn't allow asynchronous
communication or change the user interface. It might be interesting to
improve the plugin system to allow changes the UI, though it gets hard
to generalise this.
A tools plugin would probably be a starting point to manipulate the
document using an external program. It probably requires some real code
to link veusz and your app. DBus integration might be easy, though would
be limited to Unix.
Or would it be better if Ikwed is developed as independent application?
I suppose it depends on how closely you'd like it to integrate. Making
it a Qt-based widget/window would allow it to be integrated later fairly
easily at a later stage, if you wanted.
What requirements should a stand alone application fullfill
to be easily integrated in Veusz to add labels?
DBus could modify the document directly, or you could use a tools plugin
to read or update the state of the remote program. Otherwise, you'll
need to add some code to veusz to listen to commands from the external
app and send data back to it. Sockets or pipes are a reasonable way to
communicate. You could look at the embed.py/embed_remote.py scripts for
inspiration.
The alternative is putting your code directly into veusz. If you app can
draw equations nicely, this would allow veusz to directly use it for
rendering. As I said, we can always do that later.
At the time of writing this, I see that Veusz is hosted at gna.org.
Should I change from sourgeforge to gna?
I don't think that is necessary. We're only using gna for the web page
and mailing list. We use github for the source.
Please ask if you'd like some help with the veusz codebase...
Jeremy
_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss