Re: Specialized rendering (was Re: Feature request)
- From: Max Wahler <max mike-melone de>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: Specialized rendering (was Re: Feature request)
- Date: Tue, 18 Jan 2011 08:50:03 +0100
Hi Hans, hi Steffen,
thanks for your comments on Python and that I don't have to recompile,
that saves me a lot of time.
Yesterday evening, I figured out that I have to modify pydia-render.c
and it works! =) Is there any reason why higher level methods like the
rounded rectangle methods are not treated in that class? Otherwise I'd
like to make a patch and commit it to the repository. Maybe it's better
if someone takes a look at it before I do it ;-)
Another thing on the SVG renderer: You say that the Python renderer is
far more complete and less buggy than the C version, but it seems that
the generated code is rendered wrong in some viewers, for example in
Firefox. So is there any reason why I should not use the attributes for
rounding a rectangle and instead compose the rounded rectangles with
other shapes?
I don't know what my renderer will look like once I'm finished, but
maybe I commit it to GIT too. In any case I write an entry in our
company's blog where I explain how to integrate Dia with Concordion.
Regards,
Max
Am 17.01.11 21:54, schrieb Hans Breuer:
At 17.01.2011 15:44, Max Wahler wrote:
Ok, after ignoring the outdated SVN info on the homepage and instead
checking out from GIT and learning some Python basics, I have a few
questions:
1. Do I have to do a complete "make clean ;
'make clean' should almost never be needed
make" after I did some
changes to my Python plugin or is there any faster way?
'make' is not necessary, because Python is an interpreted language.
The lack of 'make install' lets me assume you are running the version
unistalled by "app/run_dia.sh", anyway - as Stffen said - restarting Dia
is enough to get the Python plug-in reloaded.
For an installed version you should place your plug-in into ~/.dia/python .
2. I like the output from the C renderer much more than then one of the
Python plugin because it's cleaner. The difference is, that rounded
rectangles are painted with an own method instead of plugging it
together from other shapes. I tried to implement the draw_rounded_rect
in my plugin, but it's ignored.
To get it called a change to plug-ins/python/pydia-render.c would be
necessary. You could take another optional method (with fallback) as
example, e.g. draw_polyline.
By the way, that meta info editing in the trunk version is very nice and
pretty easy to handle! The first part of my work is already done thanks
to this =)
Thanks ;)
Hans
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
_______________________________________________
dia-list mailing list
dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia
--
All those, who believe in telekinesis, raise my hand.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]