Re: Support for callbacks...
- From: Herman Bruyninckx <Herman Bruyninckx mech kuleuven ac be>
- To: dia-list gnome org
- Subject: Re: Support for callbacks...
- Date: Wed, 16 Jul 2003 09:54:06 +0200 (CEST)
On Wed, 16 Jul 2003, Lars Clausen wrote:
On Tue, 15 Jul 2003, Herman Bruyninckx wrote:
What is the status of callbacks in the Dia roadmap?
I mean, is it (or will it be) possible to let some dia actions call a
user-defined function?
For example, a callback on each (dis)connection event on the canvas
gives a lot of possibilities to add user-specific functionality to
Dia. (E.g., to check whether it has a meaning in the users'
application context to connect two given objects together.)
That's funny, I was just thinking about that in the shower this morning. A
callback function would allow both elements and connectors to decide
whether they will allow the connection, and if they do, make any changes
that are needed.
Unless, by 'user-defined function', you mean that the user can add a bit of
scripting to an object to be evaluated upon connection. Given the above,
that could be added using the Python plugin, or any other plugin that
anyone cares to add.
Indeed! That's exactly what I was looking for: a small extension of
the Dia code could make tremendous changes in what a user can do with
the program. My hope was to embed Dia as a "graphical editor" inside a
robot simulation program... Most of the work would happen outside of
Dia (via a Python plugin).
Herman
--
K.U.Leuven, Mechanical Engineering, Robotics Research Group
<http://people.mech.kuleuven.ac.be/~bruyninc> Tel: +32 16 322480
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]