Re: Security plugin and layer problems
- From: Hans Breuer <Hans Breuer org>
- To: dia-list gnome org
- Subject: Re: Security plugin and layer problems
- Date: Fri, 06 Feb 2004 13:53:52 +0100
At 08:51 03.02.04 -0600, Lars Clausen wrote:
From: "Luc Cessieux" <cessieux hotmail com>
How i can make a plug-in with Python?
The Dia TWiki has a bit of info on that, the rest I'll leave up to Hans and
the code examples that come with Dia.
The probably best description (beside the TWiki, the .py files in
dia/plug-ins/python and the respective c sources) is the ChangeLog.
At least I try to describe there what can be done with features
added. [Usual new features are added because I want to realize
something in Python rather tahn in C.]
But to the point. Implementing Objects in PyDia currently isn't
possible and isn't really planned and quite some amount of work.
There are three major task to make it possible :
- Wrapping the 'opposite' renderer API, i.e. object need to use
the renderer interface. There currently is only the possibility
to implement a renderer in Python (require to do export filters).
Also all complex parameters need to be convertable from Python
to C, bezier and the like.
- Implement the delegation to Object (see dia/lib/object.h) which
is done in Python. Probably even more from the class hierachy
need to be wrapped/interfaced as well (Element, OrthConn, ...)
- The rest, i.e. registration, serialization and everything I've
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃ¥rdgrim of Numenor
"I do not agree with a word that you say, but I
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the
Dia-list mailing list
Dia-list gnome org
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
] [Thread Prev