How to consistently handle custom shapes line_width?

2008-07-22 Thread Hans Breuer
While creating my own custom shapes and improving the documentation of custom-shapes [1] I noticed that the "stroke-width" given by the shape file is not consistently handled. Only the very first line-width used during shape drawing was replaced by the one given in the shapes property. Further s

Re: Question about handles

2008-07-23 Thread Hans Breuer
is 0..n. Attached an example diagram and a PyDia script illustrating the issue. Hans Thank You. On Tue, Jul 22, 2008 at 10:34 PM, Hans Breuer <[EMAIL PROTECTED]> wrote: Am 22.07.2008 16:49, Andrew M. Botros schrieb: what does "handle->connected_to->connected" e

Re: How to consistently handle custom shapes line_width?

2008-07-23 Thread Hans Breuer
Am 24.07.2008 07:26, loli schrieb: On Tue, 22 Jul 2008 23:01:04 +0200, Hans Breuer wrote [...] Two questions: 1) For each possible shape there seems to be two different property dialogs: the one obtained by double clicking on the drawn shape in canvas and the one labeled "predeter

Re: How to consistently handle custom shapes line_width?

2008-07-26 Thread Hans Breuer
[ccing the list again] Am 25.07.2008 18:41, loli schrieb: On Thu, 24 Jul 2008 07:50:28 +0200, Hans Breuer wrote Am 24.07.2008 07:26, loli schrieb: On Tue, 22 Jul 2008 23:01:04 +0200, Hans Breuer wrote [...] [...] Yes, the initial "border_width" is indeed taken from the line width

Re: drop shadow

2008-07-26 Thread Hans Breuer
Am 26.07.2008 09:37, Lars Clausen schrieb: On Jul 26, 2008, at 1:27 AM, Abhijit Menon-Sen wrote: [...] I need drop shadows too, and although I'm not really familiar with Dia or GTK, I would like to at least try to implement them, if anyone has advice about how best to proceed. Take a look at

Re: Question about handles

2008-07-29 Thread Hans Breuer
Am 29.07.2008 00:51, Don Blaheta schrieb: I'm trying to understand handles and connection points too, and having some difficulty. Quoth Hans Breuer: Am 23.07.2008 10:41, Andrew M. Botros schrieb: One other thing, let me rephrase my question @ the very beginning, How can I know the ob

Re: [custom-shapes] ext_attribute feature, cannot understand.

2008-07-29 Thread Hans Breuer
Am 29.07.2008 18:41, Thomas Harding schrieb: Hello, I tried several solutions, but nothing seems work, except I can fill property in the properties dialogs, and changes are saved. Here is the last sample: [...] fill:none; stroke:fg; stroke-width:8; stroke-linecap:roun

Re: Question about handles

2008-08-01 Thread Hans Breuer
Am 31.07.2008 04:30, Sameer Sahasrabuddhe schrieb: On Tue, Jul 29, 2008 at 12:42 PM, Hans Breuer <[EMAIL PROTECTED]> wrote: No. There are handles on every object. They are represented by the little squares. Some of them are connectable (see lib/handle.h:HandleConnectType) and some of th

Re: Access to "javadoc"?

2008-08-01 Thread Hans Breuer
Am 30.07.2008 21:05, Don Blaheta schrieb: I've noticed that the code is fairly well-commented using a modified javadoc format; is there a particular program you have for compiling it into browsable html (as with javadoc)? Doxygen works for me. Unfortunately doxygen does not understand OO in C,

Re: Flushing position changes to the display

2008-08-03 Thread Hans Breuer
Am 03.08.2008 16:57, Fred Morcos schrieb: Now I did somediaobj->position.x = 5; To move an object you should use either obj->ops->move() or obj->ops->move_handle() This way the object can adapt it's internal state to the change. From lib/object.h : /*! \class _DiaObject \brief Base

Re: Dia Automatic Layouting

2008-08-04 Thread Hans Breuer
Am 04.08.2008 01:08, Fred Morcos schrieb: Dear All, Here [1] is a screencast of the work I've been doing. I would love to see this but it does not work for me neither on win32 (XP) nor on Linux(Ubuntu 8.04). Is this just me or may the files be broken? I will have a patch ready soon (still s

Re: Dia Automatic Layouting

2008-08-04 Thread Hans Breuer
Am 04.08.2008 22:32, Nick Moore schrieb: Both files work for me on Ubuntu 8.04. Sure you've got the Theora codec installed? I think so. But now I have updated to vlc 0.8.6i (win32) - including theora (alpha 3) according to their website - and can see the demos. I still dontcompletely understan

Re: Dia Automatic Layouting

2008-08-04 Thread Hans Breuer
Am 04.08.2008 23:05, Fred Morcos schrieb: On Mon, Aug 4, 2008 at 10:19 PM, Hans Breuer <[EMAIL PROTECTED]> wrote: Am 04.08.2008 01:08, Fred Morcos schrieb: [...] The other problem is that I can't figure out a way for the "Undo" feature to revert "all" of the c

Re: Dia Automatic Layouting

2008-08-05 Thread Hans Breuer
Am 05.08.2008 15:43, Roby, Clyde G schrieb: This is something that we're really excited about. So we'd like to see what you've done. This [1] can show things more clearly. [1] http://katoob.googlecode.com/files/dia-coolness-2.ogv Is there Windows software or Linux software to display this?

Re: Dia to SVG through XSL?

2008-08-07 Thread Hans Breuer
Am 07.08.2008 16:22, Grey schrieb: I've taken a look around and haven't found anything yet, so does anyone here have an XSL to transform Dia's XML output to SVG? I poked around and it appears to currently be done in C in Dia which to me is just... silly... Feel free to develop all the shape rend

Autolayout plug-in (was: Re: Dia Automatic Layouting)

2008-08-09 Thread Hans Breuer
.-- Dilbert /* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 Alexander Larsson * * autolayout-register.c - registeration of auto-layout algoritms as plug-in * Copyright (c) 2008 Hans Breuer <[EMAIL PROTECTED]> * * This program is free software; you

Re: Avoiding connection conflicts/cross-overs in UML diagrams

2008-08-09 Thread Hans Breuer
On Mon, Jul 14, 2008 at 5:13 PM, David Laban <[EMAIL PROTECTED]> wrote: Hello I want to make dia automatically lay out connections on UML diagrams so that they avoid hitting other objects and crossing over each other as much as possible. My uncle pointed out that MS visio does a pretty good job

Re: Autolayout plug-in

2008-08-15 Thread Hans Breuer
At 13.08.2008 19:21, Fred Morcos wrote: 2008/8/9 Hans Breuer <[EMAIL PROTECTED]>: [...] Thanks for the patch. I have played with it a bit but am still not able to completely wrap my head around it. Here is what I think I have understood: [...] * There is no state outside of the d

Re: Nested groups as faux layering

2008-08-17 Thread Hans Breuer
At 15.08.2008 15:19, Michael Ross wrote: Greetings, I had this idle thought while driving to work this morning... I tend to be nesting more and more groups in Dia - grouping groups of groups, etc. I use it as a quick sort of layering. I wonder if there is a limitation of which I should be awa

Redefining shortcuts (was: Re: Nested groups as faux layering)

2008-08-17 Thread Hans Breuer
At 17.08.2008 18:28, Michael Ross wrote: On Sun, Aug 17, 2008 at 11:44 AM, Hans Breuer <[EMAIL PROTECTED]> wrote: Still on 0.95-pre7 (can't stand the newer keystroke shortcuts) The ChangeLog does not show such a change, could you elaborate a bit more what change keeps you on a

Re: problems with new shapes

2008-08-23 Thread Hans Breuer
At 17.08.2008 01:54, Rob Savoye wrote: [...] Today I was trying to add a few new symbols to my sheet only to discover it doesn't seem to work anymore. To create a new shape, I draw save as a .dia, then export as a .shape. Then I go in and add the "New" shape file. When I do this, the png is z

Re: Autolayout plug-in

2008-08-29 Thread Hans Breuer
At 26.08.2008 21:44, Fred Morcos wrote: I worked on a suggestion by Andrew Boktor where the force on each pair of nodes (repulsion and attraction) is calculated only once instead of twice. Adding the force to one node and subtracting it from the other. Sorry, I'm not sure if I can follow. If I un

Re: Pan by holding down scroll button already works (Was: Zoom patch)

2008-09-02 Thread Hans Breuer
At 02.09.2008 11:48, Christian Ridderström wrote: On Mon, 1 Sep 2008, Sameer Sahasrabuddhe wrote: But about the second, here's what Gnome has to say about the middle button/wheel, from the same link: "Your application uses the middle button to paste the current PRIMARY (usually the last-hi

Re: API

2008-09-23 Thread Hans Breuer
At 23.09.2008 18:41, Michael Hennebry wrote: I gather that dia has an API, Yes. See the sources: http://svn.gnome.org/viewvc/dia/trunk/ that is a mechanism for producing diagrams from a user-written program, Sorry, I don't follow your conclusion. Dia *is* a program to produce diagrams. It can

Re: API

2008-09-23 Thread Hans Breuer
At 23.09.2008 22:09, Michael Hennebry wrote: On Tue, 23 Sep 2008, Hans Breuer wrote: At 23.09.2008 18:41, Michael Hennebry wrote: I gather that dia has an API, Yes. See the sources: http://svn.gnome.org/viewvc/dia/trunk/ that is a mechanism for producing diagrams from a user-written program

Re: Problem editing with dia svn trunk

2008-09-24 Thread Hans Breuer
At 24.09.2008 00:48, Pablo Gra\~na wrote: Hi there. I downloaded dia from svn, built and installed. I add, for example a new object to the diagram and set some text. After that, the only way to change the text is pressing F2 and then editing. The previous version allowed editing with a mouse

Re: add line width to uml small package

2008-09-24 Thread Hans Breuer
At 24.09.2008 00:50, Pablo Gra\~na wrote: Hi I am attaching a patch to make the line width configurable in the uml small package. Is this ok? Do you think this is worth commiting in the repo? If that is the case, I will continue with the rest of the UML objects. The current version of you

Re: add line width to uml small package

2008-09-28 Thread Hans Breuer
At 26.09.2008 03:45, Pablo Gra\~na wrote: Here is a new patch with more UML objects with the configurable line width: note Looks like there is missing a note->line_width = attributes_get_default_linewidth(); in note_create() large_package class same here object class.h class_dialog useca

Re: add line width to uml small package

2008-09-28 Thread Hans Breuer
At 28.09.2008 14:34, Pablo Gra\~na wrote: Thanks for the review. Strange ... the ...->line_with = attributes_get_default_linewith() are there, at least in my sources ... The patch includes: The patch fragment for note: @@ -305,13 +307,14 @@ elem->corner = *startpoint; + note->line_width

Re: add line width to uml objects

2008-10-12 Thread Hans Breuer
At 29.09.2008 06:35, Pablo Gra\~na wrote: I finally have the uml objects line width configurable. I attached the patch. Please, let me know what do you think and if it can make it to the sources. Sorry for the late answer. Patch looked fine, I've just commited it to SVN: 2008-10-12

Re: Autolayout plug-in

2008-10-12 Thread Hans Breuer
At 08.10.2008 16:50, Fred Morcos wrote: Sorry for the very late reply, I have been finalizing my thesis and moving back to my country. I would like to restart the discussion about automatic layout, gearing things towards inclusion into Dia as an offered feature. You would prefer it as a plugin (

Re: dia - shapes with two and more textboxes

2008-10-12 Thread Hans Breuer
At 12.10.2008 18:31, M. Niedermair wrote: Hi, i want to create a shape with two or more textboxes. If i try ... [...] i get only the last textbox (x1="70" y1="12" x2="95" y2="18"). Yes, as documented in doc/custom-shapes How can i solve the problem? Patching objects/custom/* would be a star

Re: Autolayout plug-in

2008-10-12 Thread Hans Breuer
At 12.10.2008 19:07, Fred Morcos wrote: On Sun, Oct 12, 2008 at 6:55 PM, Hans Breuer <[EMAIL PROTECTED]> wrote: At 08.10.2008 16:50, Fred Morcos wrote: Sorry for the very late reply, I have been finalizing my thesis and moving back to my country. I would like to restart the discussion

Re: using Dia for exporting diagrams as pdf.

2008-10-15 Thread Hans Breuer
At 15.10.2008 17:29, niket tandon wrote: Hi all: For creating diagrams, Dia [ http://www.gnome. org/projects/ dia/ ] works wonderfully, except when trying to export a diagram as pdf. Thesize of the pdf diagram comes up really small. People use this feature when including diagrams(as pdf) in La

Re: Dia find & replace?

2008-10-17 Thread Hans Breuer
At 11.10.2008 04:12, Johann Tienhaara wrote: Hi Dia folks. I sent this patch for "find & replace" to Hans a few days ago. I know he's a very busy guy, but I am a little worried that I may have been spam-filtered! :) Not only quite busy but recently also cursed by the worst email provider i

Re: add line width to uml objects

2008-10-17 Thread Hans Breuer
At 15.10.2008 03:41, Pablo Gra\~na wrote: NICE!!! Thanks a lot. I gave the other objects a chance (the 'lines'), but it wasn't that easy. There are a couple of things that can't be done with UML 'lines' For arrow sizes and line style I think there should be no extra options. The former could

Re: Wishlist

2008-10-30 Thread Hans Breuer
At 28.10.2008 20:03, Marianne Arendal Hernov wrote: One thing I�m missing is an info box in the corner of printouts showing: Date, revision, project name. Dia's file can be saved as plain XML (uncompressed). Many version controls have dedicated keywords to maintain the requested information i

Re: cleaning up the "line_width" string constant

2008-11-22 Thread Hans Breuer
At 19.11.2008 07:50, Sameer Sahasrabuddhe wrote: Hi, Attaching a patch that converts "line_width" to PROP_STDNAME_LINE_WIDTH etc. I had started converting such constants to macros a long time ago, this fixes some newly introduced usage of "line_width". Thanks, applied. On a related note, I w

Re: the UML ClassDialog v/s the generic Dia properties dialog

2008-11-22 Thread Hans Breuer
At 19.11.2008 17:04, Sameer Sahasrabuddhe wrote: Hi, It seems the UMLClass is the only DiaObject that has its own special dialog. The confusion here is that the UMLClassDialog deals with the /content/ of the UML Class, and not its "properties" that are relevant in the context of Dia. Take a look

Re: Bug 60331 � Object properties should h andle multiple objects

2008-11-22 Thread Hans Breuer
At 21.11.2008 10:11, Sameer Sahasrabuddhe wrote: On 11/20/08, Lars Ræder Clausen <[EMAIL PROTECTED]> wrote: Yeah. Basically newgroup helps a lot of things, including the bug mentioned here. My dilemma is whether to wait for newgroup to finish, or just take what I need. I tried out newgroup. F

Re: Bug 60331 � Object properties should h andle multiple objects

2008-11-27 Thread Hans Breuer
At 23.11.2008 05:25, Sameer Sahasrabuddhe wrote: On 11/22/08, Hans Breuer <[EMAIL PROTECTED]> wrote: I tried out newgroup. From the look of it, it has nothing to do with the multiple selection bug! As far as I could see, the newgroup is a very special beast that keeps track of objects

Re: changing colour of custom shapes

2008-11-27 Thread Hans Breuer
At 27.11.2008 16:35, waldbauernbub wrote: Dear Dia-Users! I am trying to create a dia-sheet with symbols used in power-engineering (power station, cooling and heating cycles) which I intend to make available to other users once it's finished. I am experiencing problems with the shapes which

Re: the UML ClassDialog v/s the generic Dia properties dialog

2008-11-27 Thread Hans Breuer
At 26.11.2008 05:27, Sameer Sahasrabuddhe wrote: On 11/22/08, Hans Breuer <[EMAIL PROTECTED]> wrote: when a UML Class is double-clicked. Of all the things available on the dialog, only three things are relevant to Dia, the diagram app: Text Color Foreground Color Background Color A

Re: Bug 60331 � Object properties should h andle multiple objects

2008-11-30 Thread Hans Breuer
At 28.11.2008 07:02, Sameer Sahasrabuddhe wrote: On 11/28/08, Hans Breuer <[EMAIL PROTECTED]> wrote: Why do you want to change this on the object interface level? Wouldn't a dedicated "multiple selected objects" properties dialog give you a better solution? Ok. Rather

Re: warning: implicit declaration of function �fin ite�

2008-11-30 Thread Hans Breuer
At 30.11.2008 12:18, Sameer Sahasrabuddhe wrote: [...] I am no expert at portable code, and this much investigation has itself been instructive. What is the best way to remove the warning? a) A portable way to check whether a float is finite, is made available by the C99 in the form of the "isfi

Re: handling properties of multiple objects

2008-12-03 Thread Hans Breuer
At 03.12.2008 19:33, Sameer Sahasrabuddhe wrote: On 12/3/08, Sameer Sahasrabuddhe <[EMAIL PROTECTED]> wrote: Now here's a new way to track object copies, that tackles both these issues: instead of keeping a copy of the object in the dialog, we extend the property description itself, to carry a c

Re: Additional ext_attributes

2008-12-04 Thread Hans Breuer
At 03.12.2008 20:35, Meik Wusterhausen wrote: Hi, I would like to add some more ext_attributes which make it possible to build xml information dialogues similar to the uml-shape preferences. If you are talking of something like the UML-Class you'll be out of luck for three reasons: - most UML

Re: Suggestion : Add a Find & Replace function

2008-12-18 Thread Hans Breuer
At 09.12.2008 21:27, Patrice Leblond wrote: We are looking for a software to do our Grafcets, we are looking more too Visio right now but if you had a Find & Replace function, we would seriously consider you software. It's simple too use and there is alot of symbols included. You did a good j

Re: rotate text

2008-12-18 Thread Hans Breuer
At 18.12.2008 08:32, phairoj p. wrote: I want rotate text Dia can do? http://bugzilla.gnome.org/show_bug.cgi?id=100886 Hans "at" Breuer "dot" Org --- Tell me what you need, and I'll tell you how to get along without it.-- Dilbert ___

Re: feature request: horizontal/vertical lines

2008-12-18 Thread Hans Breuer
At 13.12.2008 14:12, Casper Hillerup Lyhne wrote: Hi. I have been using Dia quite a bit to draw UML diagrams and such. There is a problem though. When i am done connecting all the objects with lines i always find myself zooming to ridiculous levels to align the objects so that the lines betwe

Re: PGF export

2008-12-18 Thread Hans Breuer
- In draw_string(), I would like to modify the aligment but it do nothing, I don't know why every text is exported with anchor=WEST Probably because you are using old sources. This issue should be gone by: 2007-10-13 Hans Breuer * lib/diarenderer.[ch] lib/textline.[ch] lib/libdia.def

Re: compile errors ...

2008-12-19 Thread Hans Breuer
At 19.12.2008 20:40, Sameer Sahasrabuddhe wrote: Hello, Attaching a patch that fixes compile errors (not warnings) that I encountered with a recent update. Also attached another patch with some small cleanups. Thanks, apparently I was fooled by some msextension: 2008-12-19 Hans Breuer

Re: segfault when creating new objects

2008-12-19 Thread Hans Breuer
patch would partially revert revision 3876 (for the above mentioned case): 2008-01-10 Hans Breuer * app/create_object.c(create_object_button_release) : don't crash on tool->obj being NULL, just do nothing than. I actually encountered this because of another problem with the DATAD

Re: the location of "sheets" passed to Dia

2008-12-19 Thread Hans Breuer
At 19.12.2008 20:56, Sameer Sahasrabuddhe wrote: Hello, When I tried to create a SISSI object, Dia crashed after showing a small blank dialog, that never managed to render itself. Fixed that in a patch elsewhere, so now here's what the dialog says: Couldn't open: '/home/sameerds/Dia/trunk/s

Re: the location of "sheets" passed to Dia

2008-12-20 Thread Hans Breuer
At 20.12.2008 09:15, Sameer Sahasrabuddhe wrote: On Sat, Dec 20, 2008 at 3:41 AM, Hans Breuer wrote: lib/sheet.c(load_all_sheets) has sheet_path = getenv("DIA_SHEET_PATH"); OK. So the location of sheets is taken from one of two places: 1) If the environment variable is set,

Re: Dia to tex text alignment problem.

2009-01-05 Thread Hans Breuer
centered. How can i solve that? Updating to a version including: 2007-10-13 Hans Breuer * lib/diarenderer.[ch] lib/textline.[ch] lib/libdia.def : instead of throwing away the alignment information in DiaRenderer::draw_text pass it through DiaRenderer::draw_text_line so it is still

Re: Dia to tex text alignment problem.

2009-01-06 Thread Hans Breuer
At 06.01.2009 10:47, alessandro wrote: You are telling me that the only solution is to download the SVN version of DIA? Yes, kind of. You can also try to build an SVN snapshot from http://www.raeder.dk/~larsrc/Dia/snapshots/ Hans Breuer wrote: At 04.01.2009 16:56, alessandro wrote: Hi

Re: segfault when creating new objects

2009-01-06 Thread Hans Breuer
(somehow this answer stayed in my Drafts folder) At 20.12.2008 09:07, Sameer Sahasrabuddhe wrote: New patch attached. On Sat, Dec 20, 2008 at 3:13 AM, Hans Breuer wrote: Sorry, I don't see how adding g_return_if_fail() should ensure anything. Ok. My mistake. What I want is a wa

Re: Windows on strange positions on multimonitor setup

2009-01-08 Thread Hans Breuer
Michel van de Wetering wrote: Hi, I just installed Dia for the first time on Vista x64. When I started Dia the tools like window with the title "Dia v0.96.1" was mostly off the screen of my second monitor. The Diagram1.dia window was on the expected place on my -primary monitor. When using th

Re: dia future

2009-01-08 Thread Hans Breuer
Jan Hovorka wrote: Hello, working with dia is funny for me but there are many bugs and things that need to be done. Last release was almost 2 years ago. Do you project dead? Or can I look forward to next releases:)? Just asking google for Dia 0.97 would have given you this link: http://mail

Re: dia future

2009-01-08 Thread Hans Breuer
Sameer Sahasrabuddhe wrote: [...] 1) When do we make the next release? And what will it take? Fixing enough bugs to make it worthwhile is the minimum requirement. My goal is to have only about 50 bugs open when doing rc1. Especially no critical bugs must be open. (The one I'm working on is the

Re: dia future

2009-01-09 Thread Hans Breuer
At 09.01.2009 05:11, Octavio Alvarez wrote: On Fri, 2009-01-09 at 00:26 +0100, Hans Breuer wrote: Sameer Sahasrabuddhe wrote: [...] 1) When do we make the next release? And what will it take? Fixing enough bugs to make it worthwhile is the minimum requirement. My goal is to have only about 50

Re: dia future

2009-01-09 Thread Hans Breuer
At 09.01.2009 09:53, Lars Ræder Clausen wrote: On Fri, 2009-01-09 at 00:26 +0100, Hans Breuer wrote: Sameer Sahasrabuddhe wrote: [...] 1) When do we make the next release? And what will it take? Fixing enough bugs to make it worthwhile is the minimum requirement. My goal is to have only about

Re: dia future

2009-01-13 Thread Hans Breuer
At 13.01.2009 03:47, Sameer Sahasrabuddhe wrote: On Mon, Jan 12, 2009 at 11:13 PM, Steffen Macke wrote: [...] I guess the discussion will still continue. And keep Hans from fixing bugs :-) Yeah, but maybe I simply stop in participating in the discussion. One request for Hans: can you spend

Re: Hotkey for Send Backwards/Bring Forwards

2009-01-13 Thread Hans Breuer
At 13.01.2009 13:06, Lars Ræder Clausen wrote: On Tue, 2009-01-13 at 09:16 +0100, GÃŒnter Dannoritzer wrote: [...] Works for me... Is there another setting I need to do in order to keep the changes in menurc permanent? I don't think so -- I'm having it work fine on a fresh Ubuntu 8.10 with

Re: Building from SVN

2009-01-13 Thread Hans Breuer
At 13.01.2009 04:34, Young, Robert wrote: I've been trying to build the latest dia from SVN on Open Suse 10.1 The INSTALL file doesn't exactly reflect the current requirements, and I've found the following problems along the way: Intltool >= 0.35 is required see configure.in ;) Objects/stand

Re: "CISCO - Pad" vs. "CISCO - Pad X.28"

2009-01-14 Thread Hans Breuer
At 14.01.2009 19:29, Steffen Macke wrote: Hi, Looking at samples/all_objects.dia, I realized that "CISCO - Pad" is not there any more. It was renamed to "CISCO - Pad X.28" in 2005. http://bugzilla.gnome.org/show_bug.cgi?id=303889 also known as Coloured Cisco shapes Has anybody used this shap

Re: Loading dia module in python

2009-01-21 Thread Hans Breuer
At 21.01.2009 13:52, Philip Cavaco wrote: > [...] I would like to load a .dia image in python outside of the Dia python console. You could write a plug-in for Dia in Python - see http://projects.gnome.org/dia/python.html but currently a script using import dia will only work inside of Dia. T

Re: Aligning text along an ARC

2009-02-05 Thread Hans Breuer
At 05.02.2009 18:52, Michael Ross wrote: Nope. WYSIWYG You can make text using the Text function and there are no secrets to be found. You might want to look at other programs that can do that make a screen dump and import the arced text as an image. I have done that in CAD systems, but not w

Re: add attributes?

2009-02-05 Thread Hans Breuer
urn on/off visibility on each one sounds nice too. But I would be perfectly happy if they didn't show up on the diagram, so visible can come later. 2009-02-01 Hans Breuer * lib/object.[ch] lib/dia_xml.[ch] lib/prop_dict.[ch] lib/properties.[ch] lib/propinternals.h lib/Makefile.am li

Re: Adding Menu items.

2009-02-09 Thread Hans Breuer
At 08.02.2009 04:49, Scott M. Ober wrote: Hi, I got tired of not having a 'Size' option as well as an 'Align' option for objects. I've implemented all the code, but, I just can't seem to figure out the menuing system. Interesting. How do you handle non-resizable objects like UML Class ?

Re: Running Python script

2009-02-14 Thread Hans Breuer
What am I missing? Some look in ChangeLog or a recent enough version: 2008-04-05 Hans Breuer * app/menus.c(ensure_menu_path) : allow plug-ins to create a menu path again. Does not yet work fopr the integrated ui, see bug #526146 Hans Hans "at" Breuer "dot"

dia-0.97-pre2 - get it while it is hot;)

2009-02-15 Thread Hans Breuer
After almost two years of spare-time development Dia 0.97 is on the horizon. The prerelease can be got at http://download.gnome.org/sources/dia/0.97/ now! Please help making Dia 0.97 not only the latest but also the greatest Dia release ever by helping to shake out the remaining bugs. Some high

Re: dia-0.97-pre2 - get it while it is hot;)

2009-02-15 Thread Hans Breuer
At 16.02.2009 06:34, Patrice Vetsel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Many links (1/2/4) are wrong ? There was an update missing, the links are working now. Thanks, Hans [1] http://projects.gnome.org/dia/render-test.pdf [2] http://projects.gnome.org/dia/dia-0-

Re: dia-0.97-pre2 - get it while it is hot;)

2009-02-15 Thread Hans Breuer
At 16.02.2009 07:07, Octavio Alvarez wrote: [...] I have found two issues so far: 1. [At least] using the new integrated UI, clicking File > Preferences, [[ OK ]], File > Preferences = crash. Need to look more closely, at first glance the second innvocation of File/Preferences works for me (a

Re: About DIA and Eclipse

2009-02-28 Thread Hans Breuer
At 12.02.2009 13:10, ëÏÎÓÔÁÎÔÉÎ óÍÉÒÎÏ× wrote: Hello dia masters! I like Dia. I want have DIA as plug-in for Eclipse and generate Java code. What do you think about this? I'm neither using Eclipse nor Java, but if I would my first approach would be something like http://www.eclipse.org/

Re: UML Code Generator for Pascal

2009-02-28 Thread Hans Breuer
At 21.02.2009 13:54, Johann Glaser wrote: Hi! Am Samstag, den 21.02.2009, 11:00 +0100 schrieb Slavko: it is good idea for me. have you tested it with Lazarus code? Yes, I did. I implemented the export code so that I don't have to type all the classes, fields and methods by hand. There are a

Re: Edit Text and Tools Question

2009-02-28 Thread Hans Breuer
At 18.02.2009 20:29, Mark Dexter wrote: Thanks again. Perhaps I will wait a little before trying to write the detailed documentation for this. It seems like there might be some changes before .97 is released. To me it looks like everything is working as intended. Of course there is room for im

Re: Changing/Setting end_arrow from python Again

2009-03-05 Thread Hans Breuer
At 04.03.2009 13:02, Philip Cavaco wrote: Hello I need to set the end_arrow type of a 'Standard - Arc' object from a python script. How do I create the Arrow instance required? Even if there would be a way to create the Arrow instance that still would not alow to apply as property because ...

Re: Changing/Setting end_arrow from python Again

2009-03-05 Thread Hans Breuer
At 05.03.2009 11:34, Philip Cavaco wrote: Hello If this is not implemented, I am willing to add the functionality. Could someone give me some direction as to what files should be changed? The question which slows me down a bit is how to represent the Arrow to be set in Python. The most easy wa

Re: Changing/Setting end_arrow from python Again

2009-03-08 Thread Hans Breuer
dth and length values for a given type though. I am not sure where this information is. Actually looking into the code should help. See: lib/arrows.h But now it is not any longer necessary cause I just commited: 2009-03-08 Hans Breuer * plug-ins/python/pydia-property.c : implement Py

Re: UML Code Generator for Pascal

2009-03-08 Thread Hans Breuer
) ... This is bad programming style and tedious to work with. Since my Python knowledge is still virtually zero, I'm not going to play with this any further. Cool, insulting and ignorance almost in the same sentence. Please find attached a patch for my current version of the Pascal code gen

Anyone using Dia AADL plug-in here?

2009-03-13 Thread Hans Breuer
Given how easy it was to crash Dia by drawing an AADL diagram I'm wondering if anyone is using Dia AADL. If no one is found this may result in introducing a new configure flag for unstable and unmaintained plug-ins, e.g. configure --enable-unstable with the default of *not* installing th

Re: Python plug-in -- UML: how to access the association end?

2009-03-13 Thread Hans Breuer
At 13.03.2009 18:01, georges Louis wrote: Hi, Does anyone know how to access, from a Python plug-in, the "association end" in a UML diagram ? More precisely, I would need the multiplicity and the role name. Just search the Dia file of your diagram for the string "UML - Association". It will

Re: Python plug-in -- UML: how to access the association end?

2009-03-14 Thread Hans Breuer
At 14.03.2009 00:02, georges Louis wrote: Thanks for your answer. But I still don't get what I am looking for. I installed "export-object.py" and ran it on my UML diagram : it does not export the multiplicities and roles of UML associations. So you must be using some (soon to be) obsolete v

Re: Changing objects layer through Python

2009-03-15 Thread Hans Breuer
At 15.03.2009 11:31, Philip Cavaco wrote: Hello Is it currently possible to bring objects up in front of all other objects through the python interface. Just from reading the (pydia-layer.c and layer.c) code I assume the following to work: n = len(layer.objects) layer.remove_

Re: Changing objects layer through Python

2009-03-15 Thread Hans Breuer
At 15.03.2009 16:42, Philip Cavaco wrote: That did the trick. Now I am stuck on a way to update the image with all changes I made. The script completely connects all "Standard - Ellipse" within the currently selection. The connections do not appear unless I manually move each Ellipse in the diagr

Re: Python plug-in -- UML: how to access the association end?

2009-03-15 Thread Hans Breuer
At 15.03.2009 17:53, georges Louis wrote: Hans, Thanks a lot, I installed 0.97pre2, and indeed, it works now. [...] I think it would be better if:- - the property now (mis)spelled "multipicity_a" would read "multiplicity_a", Sorry, typos in property names must stay forever to not break back

Re: Dia for windows stability?

2009-03-23 Thread Hans Breuer
At 23.03.2009 14:48, avijit ghosh wrote: [...] http://dia-installer.de/index_en.html (both the .94 version and the 0.96 version) seems to be extremely buggy for some reason under Windows XP Pro SP2. Its buggy to the point that its not really usable. I have tried this both natively and under vmw

Re: Dia XML format, Graphviz, Instaviz etc.

2009-03-25 Thread Hans Breuer
At 23.03.2009 23:15, Glen Low wrote: Lars, All On 24/03/2009, at 1:06 AM, dia-list-requ...@gnome.org wrote: Hi All I'm the author of the iPhone graph sketching program http:// instaviz.com and sometime contributor to AT&T Graphviz project (CPL- licensed). I'm currently working on a Visio VDX

Re: ISA Logical Diagrams

2009-03-25 Thread Hans Breuer
At 25.03.2009 17:59, Leo Kogan wrote: Hello, I would like to help develop DIA for supporting ISA Logical Diagrams. I'm not sure about the copy right of ISA's symbols. I'm not sure were I should start. First think would be to find a good example to make us (or at least me) understand what kind o

Re: C++ reverse-engineering for UML class diagrams?

2009-03-25 Thread Hans Breuer
At 18.03.2009 20:15, Shawn Rutledge wrote: Are there any scripts or tools to do this yet? > Nothing read for prime time. I have experimented with parsing doygen's XML output, see: http://svn.gnome.org/viewvc/dia/trunk/plug-ins/python/doxrev.py?view=markup and with gccxml, see: http://svn.gno

Re: dia python plugin, how to store temporary information during export

2009-03-27 Thread Hans Breuer
At 26.03.2009 21:42, Sebastian Setzer wrote: Hi, is there some way to store information in the dia objects during export with a python plugin? Depends on what version of Dia you are using. With 0.97-pre there is generic object metainfo. Just use: obj.properties["meta"] = {'mykey' : 'm

Re: Dia XML format, Graphviz, Instaviz etc.

2009-03-27 Thread Hans Breuer
At 27.03.2009 11:55, Lars Ræder Clausen wrote: On Tue, 2009-03-24 at 07:15 +0900, Glen Low wrote: [...] Does Dia not have bezier splines? It does, but they use a different model than graphviz does, and my experience has been that the conversion is suboptimal. Huh? From my experience they are

Re: Dia ChangeLog report for 2009-03-27 04:00:00 UTC (Fri 27 Mar)

2009-03-27 Thread Hans Breuer
/ChangeLog 2009-03-27 05:00:09.529464448 +0100 @@ -1,3 +1,10 @@ +2009-03-25 Hans Breuer + + * plug-ins/diapsrenderer.c : dont't throw away alignment information + an don't scale text arbitrary, we can't predict the Latin-1 font size + exactly enough. Fiyes bug #575186.

PS/PDF rendering problems (was Re: Dia ChangeLog report for 2009-03-27 04:00:00 UTC (Fri 27 Mar))

2009-03-29 Thread Hans Breuer
At 27.03.2009 12:51, Lars Ræder Clausen wrote: On Fri, 2009-03-27 at 12:32 +0100, Hans Breuer wrote: At 27.03.2009 12:06, Lars RÊder Clausen wrote: On Fri, 2009-03-27 at 05:13 +0100, Dia ChangeLog Daemon wrote: Snapshots available at http://www.raeder.dk/~larsrc/Dia/snapshots *** Recent

Re: How-to set resolution for png export?

2009-04-02 Thread Hans Breuer
At 02.04.2009 18:19, Michael Ross wrote: I use Dia in conjunction with Inkscape and Gimp to produce the various forms of output I need. I will make a screen dump and import that in to which ever program is most appropriate. Of course this limits me to only what I can get on screen, but that is

Re: How-to set resolution for png export?

2009-04-02 Thread Hans Breuer
At 02.04.2009 18:51, Lars Clausen wrote: On Apr 2, 2009, at 6:31 PM, Richard Moll wrote: [...] In the help I found the command line syntax, which unfortunately doesn't work either: C:\...>dia --export=test.png --size=600x --filter=png test.dia Notice: User Interface type settings change will

Re: german translation of UML state diagram transition

2009-04-04 Thread Hans Breuer
At 30.03.2009 22:46, Sebastian Setzer wrote: Hi, the translation should be "Übergang" instead of "Übersetzung". IMHO the latin term Transition should not have been translated at all. But it already was for other occurrences, now fixed for this one as well. And the translation of receptacle sh

Re: UML state cluster

2009-04-04 Thread Hans Breuer
At 31.03.2009 21:50, Sebastian Setzer wrote: Hi, appended to this mail is a patch for state clusters. They are like states but you can resize them. They are intended as borders which you can use to group states. You can think of a transition starting at a state cluster as equivalent to lots of tr

<    1   2   3   4   5   6   7   8   >