Re: Dia. working with layers
At 13.09.2011 14:02, Jürgen Keppler wrote: Hallo, i'm using Dia for UML-Diagrams. Now my question: Is it possible to place the same object at more then one layer? This is not supported with the current design. I need more general objects (classes) at different views. Putting these general objects on an extra layer seems to be your best option. 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
Re: two strings don't appear translated
At 13.09.2011 19:20, Cristian Secară wrote: Create a line, right click on it and go to Properties. These two buttons shows untranslated, inspite of the fact that they are translated in my .po file: Arrows<<< Line gaps<<< That was a bug now fixed on master: http://git.gnome.org/browse/dia/commit/?id=dcc369a6f4eec5d4cede54d54812ab167669addb 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
Extensions with python
Hello, I would like to make an extension to Dia with Python (so I can learn that language along the way). However, I need a bit more documentation. Which I am willing to write, if you give me a chance. I want to make a new diagram type. From the C code I have a rough idea of what I need to do (shouldn't be too difficult). But there are no Python examples I can use as a start. Pydiadoc.py gives the classes, attributes and methods, but not the parameters of the methods. I tried to follow the logic of pydiadoc, to see if I can continue along that line to get parameter information, but I don't know how Python can provide me more information. So, I turn here to the real experts. This is the deal: if someone gets me started on creating a new diagram type, then I write a tutorial and/or a contribution to the documentation of dia. Regards, Albert ___ 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
Re: dia - how to define "text attribute"
No, Dia does not have a facility like this. One time I experimented with a plug-in to do this. One major issue that immediately presented itself was that Dia expects test to fit in the same amount of area that the user typed it into. This meant that I had to use a mono-spaced font and type in placeholder characters to reserve space for some values. For your described purpose, You could define a page template with all the "fields" formatted correctly, then either create a plug-in to fill it in for you, or save it and use an external utility to fill in a copy and launch Dia when you want to create a new diagram. You could even run a utility after you edit the diagram that could insert sheet numbers and total sheet count into multiple instances of "sheet info" object. On Thu, Sep 15, 2011 at 8:00 AM, wrote: > > Date: Thu, 15 Sep 2011 10:09:04 + > From: Bigler St?phane > > When designing one DIA diagram on many sheets, I am wondering if it is > possible to define some "text attribute". ___ 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
Re: Extensions with python
On 18/09/2011 21:05, Albert Zuurbier wrote: > Hello, > > I would like to make an extension to Dia with Python (so I can learn > that language along the way). However, I need a bit more documentation. > Which I am willing to write, if you give me a chance. > > I want to make a new diagram type. From the C code I have a rough idea > of what I need to do (shouldn't be too difficult). But there are no > Python examples I can use as a start. Pydiadoc.py gives the classes, > attributes and methods, but not the parameters of the methods. I tried > to follow the logic of pydiadoc, to see if I can continue along that > line to get parameter information, but I don't know how Python can > provide me more information. So, I turn here to the real experts. > > This is the deal: if someone gets me started on creating a new diagram > type, then I write a tutorial and/or a contribution to the documentation > of dia. > > Regards, > Albert Hi ! Python documentation is available here: http://live.gnome.org/Dia/Python It's not possible to create a new dia object type with python (see the second link from the page above "how to use Python to create objects in a diagram"). Maybe the custom shape module will suit your needs, documentation is available here: http://dia-installer.de/doc/en/custom-shapes-chapter.html http://git.gnome.org/browse/dia/tree/doc/custom-shapes The diasvg_import.py script shows how to "instantiate" known diagrams/objects, it's an import filter. The export filter codegen.py is also interesting. You could use the python console of Dia and the python builtin "dir": >>> dia.active_display().diagram.data.layers[0].objects[0] >>> obj = dia.active_display().diagram.data.layers[0].objects[0] >>> dir(obj) ['bounding_box', 'connections', 'copy', 'destroy', 'distance_from', 'draw', 'get_object_menu', 'handles', 'move', 'move_handle', 'parent', 'properties'] >>> dir(obj.properties) ['get', 'has_key', 'keys'] >>> obj.properties.keys() ['obj_pos', 'obj_bb', 'meta', 'elem_corner', 'elem_width', ...] Pierre-Louis ___ 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