1 2005-10-13 Lars Clausen <lars@raeder.dk>
3 * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
6 * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
11 * objects/UML/class.[ch]:
13 * objects/UML/umlattribute.c:
14 * objects/UML/umloperation.c:
15 * objects/UML/class_dialog.c:
16 Rework of the UML class attribute/operation handling. Now doesn't
17 copy connection points into the dialog data, but only the "flat"
18 data. As part of debugging made sanity check functionality.
19 Currently still dies when deleting an attribute/operation that has
22 2005-10-09 Hans Breuer <hans@breuer.org>
24 * lib/properties.h : prefer american spelling of colo(u)r for
25 user visible strings - i.e. to be translated ones.
26 * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
28 * po/*.po : updated (by 'make distcheck')
30 2005-10-09 Hans Breuer <hans@breuer.org>
32 * app/display.c : allow !"toolbox on top" without restart.
33 (Chris Hellberg, bug #310702)
35 2005-10-09 Hans Breuer <hans@breuer.org>
37 * lib/arrows.c : patch from Radek Krahl fixing the blanking
38 of two arrowheads, bug #310157
40 2005-10-08 Hans Breuer <hans@breuer.org>
42 * plug-ins/python/group_props.py : show a descriptive text instead of an
43 empty table if there are no common properties to change. Fixes bug #314432
45 2005-10-08 Hans Breuer <hans@breuer.org>
47 * objects/UML/transition.c : inverted default direction of
48 the direction. Patch from Peter Allin, fixes bug #318049
49 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
51 2005-10-08 Hans Breuer <hans@breuer.org>
53 * app/Makefile.am objects/standard/Makefile.am : match the
54 referenced icons to the needed. Make 'make distcheck' pass
55 and thus fixes bug #312152
57 * objects/standard/textobj.c : no C++ comments please!
59 2005-10-08 Hans Breuer <hans@breuer.org>
61 * objects/standard/textobj.c : preserve the position set on create
62 [makes e.g. text positioning of diasvg_import.py work]
64 * plug-ins/python/diasvg_import.py : restrict what eval() can do
65 with strings from svg files. Fixes the arbitrary code execution from
68 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
69 magnetism. At least they are distinguishable from grid snapping.
70 * app/makefile.msc app/Makefile.am : use them
72 * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
73 I also can't reproduce bug #309044 anymore (on win32).
75 2005-10-01 Lars Clausen <lars@raeder.dk>
77 * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
79 * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
80 pass FILE * as gchar *.
82 * lib/debug.[ch] (dia_assert_true): Debugging aids.
84 2005-09-29 Lars Clausen <lars@raeder.dk>
86 * objects/UML/class.h: Enabling mainpoints for UML.
88 * objects/UML/class.c (umlclass_set_props): Make sure to always
89 realloc connection point list.
91 2005-09-26 Ahmad Riza H Nst <rizahnst@id.gnome.org>
93 * configure.in: Added "id" in ALL_LINGUAS line.
95 2005-09-14 Lars Clausen <lars@raeder.dk>
97 * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
98 loading. Fixes bug #315427.
100 2005-09-11 Hans Breuer <hans@breuer.org>
102 * objects/standard/arc.c objects/standard/textobj.c : fix
103 C99isms, Dia is supposed to compile with C89 like msvc
105 * app/makefile.msc : use the wrong center-point-magnetism
106 icons for the win32 build, too.
108 * plug-ins/python/pydia-error.c : dont crash on C escape
109 sequences in the error string
110 * plug-ins/python/pydia-render.c : dont free filename twice
112 * plug-ins/python/dot.py : start of an exporter to DOT language
113 which can be processed by www.graphviz.org tools
115 2005-09-05 Iñaki Larrañaga <dooteo@euskalgnu.org>
117 * configure.in: Added "doc/eu/Makefile" for Basque documentation.
119 2005-09-04 Iñaki Larrañaga <dooteo@euskalgnu.org>
121 * configure.in: Added "eu" to ALL_LINGUAS.
123 2005-09-04 Lars Clausen <lars@raeder.dk>
125 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
126 dimensions frame to make ext_attributes work again.
128 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
129 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
132 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
133 <dooms info ucl ac be>: Add vertical alignment for standard text
134 object. This should really be moved into lib/text.c and apply to
137 2005-09-03 Lars Clausen <lars@raeder.dk>
139 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
140 mainpoint when snap-to-objects is not on.
142 * app/Makefile.am (ICON_PNG_PAIRS):
143 Fake icons for snap-to-objects.
146 * app/menus.c (menus_get_image_menubar):
148 * app/interface.c (create_display_shell):
149 * app/create_object.c (create_object_button_release):
150 * app/disp_callbacks.c (ddisplay_drop_object):
151 * app/object_ops.[ch]:
152 * app/connectionpoint_ops.c (ddisplay_connect_selected):
153 * app/modify_tool.c (modify_button_release):
155 Togglable snap-to-objects, also doesn't snap when moving entire
156 object. This should be more reasonable in practical use, and can
157 be turned off when you want to place your arrows more precisely.
159 2005-08-06 Hans Breuer <hans@breuer.org>
161 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
162 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
163 becomes even more ugly when the user has choosen *not* to build
164 the diacairo plug-in. If noone can come up with a very convincing
165 reason why it has to be done this way I'll probably go back to
166 my original dont-build-at-all approach when this breaks the
169 2005-08-02 Lars Clausen <lars@raeder.dk>
171 * objects/standard/arc.c: Patch from Grégoire Dooms
172 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
173 implementation. "There is still a small bug when the non
174 connected end of the arc is very close to the border of the
175 connected object. I think this is due to rounding errors in the
176 code for SHIFT-move handle which is reused to trim the arc in
177 autogap. Also it is not yet possible to have a startgap and an
178 endgap from/to the same central CP."
180 2005-07-31 Hans Breuer <hans@breuer.org>
182 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
183 longer for distributions official packages - depend
184 on cairo 0.6.0 - fixes bug #307144
186 2005-07-20 Hans Breuer <hans@breuer.org>
188 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
189 which must match PropDescription, that is make it at least compile.
191 2005-07-19 Hans Breuer <hans@breuer.org>
193 * app/diagram.c(new_diagram) : what comes from g_object_new()
194 MUST NOT be g_free()'d
196 * lib/message.h : added dia_message_filename() here as well.
197 Mainly to not touch all files using. They *all* where using
198 lib/message.h already! Maybe the implemantation should be moved
199 to message.c as well cause the function has *nothing* to do
200 with dynamic filename resolving. It is a wrapper around
201 g_display_filename() mostly (only?) used for messages ...
202 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
204 2005-07-18 Lars Clausen <larsrc@raeder.dk>
206 * objects/EML/instantiation.c (instantiation_load):
207 * objects/EML/interaction-ortho.c (interaction_ortho_type)
208 * objects/ER/participation.c (participation_type):
209 * objects/FS/flow-ortho.c (orthflow_type):
210 * objects/GRAFCET/vector.c (arc_load):
211 * objects/standard/zigzagline.c (zigzagline_type):
212 * objects/UML/transition.c (transition_load):
213 * objects/UML/realizes.c (realizes_load):
214 * objects/UML/dependency.c (dependency_load):
215 * objects/UML/generalization.c (generalization_type):
216 * objects/UML/association.c (association_type):
217 * objects/UML/component_feature.c (compfeat_load):
218 Make autorouting deafult on except for old diagrams.
220 * plug-ins/cairo/diacairo.c (export_data):
221 * plug-ins/cgm/cgm.c (export_cgm):
222 * plug-ins/dxf/dxf-export.c (export_dxf):
223 * plug-ins/dxf/dxf-import.c:
224 * plug-ins/hpgl/hpgl.c (export_data):
225 * plug-ins/metapost/render_metapost.c:
226 * plug-ins/pixbuf/pixbuf.c:
227 * plug-ins/pstricks/render_pstricks.c:
228 * plug-ins/python/pydia-render.c:
229 * plug-ins/shape/shape-export.c:
230 * plug-ins/svg/render_svg.c:
231 * plug-ins/svg/svg-import.c:
233 * plug-ins/xfig/xfig-export.c:
234 * plug-ins/xfig/xfig-import.c:
235 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
236 UTF-8 in message boxes.
238 2005-07-18 Lars Clausen <lars@raeder.dk>
240 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
241 to have their dimensions specified in properties. Still needs to
242 have proper update when setting properties cause constraint changes.
244 * app/preferences.c (update_floating_toolbox): Allow
245 toolbox_on_top setting to happen at once.
251 * app/sheets_dialog_callbacks.c
257 * lib/object_defaults.c:
258 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
259 for displaying in messages - better than crashing! Mostly fixes
262 * objects/UML/class.c: Save normal_font_height under the same
263 name it gets loaded as. Fixes bug #310515.
266 * doc/en/usage-customization.xml
267 * doc/en/usage-objects-special.xml
268 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
271 2005-07-17 Lars Clausen <lars@raeder.dk>
273 * doc/en/usage-customization.xml:
274 * doc/en/usage-objects.xml:
275 * doc/en/authors.xml:
276 * doc/en/usage-objects-special.xml: Applied patch from
277 stigge@antcom.de (Roland Stigge): Diverse typos and
278 misencodings. Fixes bug #308315.
280 * objects/UML/class.c (umlclass_save): Patch from
281 i.pilcher@comcast.net: Save normal font height under correct name
282 to reload it. Fixes bug #310515.
284 2005-07-10 Hans Breuer <hans@breuer.org>
286 * app/connectionpoint_ops.c app/object_ops.c : make the
287 'whole object' connection point only center point again.
288 That is: it is visible and far less magnetic. Only the
289 line gap handling make it special. For me this probably
292 * lib/neworth_conn.c : apply the same as for bug #173031.
293 This OrthConn fork got broken as well. Fixes bug #309381
295 * app/makefile.msc objects/makefile.msc : adapt to icon changes
297 * app/interface.c app/diagram_tree.c : a char** is still not
298 a char* and the win32 build is configured to error on
301 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
303 2005-07-10 Hans Breuer <hans@breuer.org>
306 Take part in the toolbox icon redesign context! If you want to
307 make them really prettier, please keep the following in mind :
308 - the size *must* be 22x22 otherwise button reflow will get broken.
309 Or you need to change about 800 icons at once.
310 - one important part of Dia are control points, so maybe the icons
311 should reflect that. (IMO gathering random icons form other
313 - the icons should at least look consistent in their group
316 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
317 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
319 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
320 * objects/standard/pixmap/* : added arc.png beziergon.png
321 bezierline.png box.png ellipse.png image.png line.png polygon.png
322 polyline.png text.png zigzagline.png
323 * objects/standard/Makefile.am : use the new icon set including
326 * app/interface.c : remove the "will probably crash" debug spew
328 2005-07-09 Lars Clausen <lars@raeder.dk>
330 * objects/standard/pixmaps/*.png:
331 * objects/standard/Makefile.am:
332 * objects/standard/*.c:
334 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
335 new icons. [Slightly belated entry]
337 2005-07-03 Hans Breuer <hans@breuer.org>
339 * app/diagram_tree.c : dont leak display name
340 * app/app_procs.c : dont leak GOptionContext
341 * app/prop_widgets.c(frame_beginprop_get_widget) :
342 Gtk api still not eating strings ...
344 * objects/UML/class.c() : don't load properties once more
345 which are already loaded by StdProps. In case of strings
346 (data_string) it has even produced leaks.
348 * app/paginate_psprint.c app/diagram.[hc] : the last
349 of the related dialogs is gone and with it the
350 misconception of destroying widgets from
352 * app/display.c : ensure the diagram is still threre
353 when we remove the display from it's list
355 2005-07-01 Hans Breuer <hans@breuer.org>
357 * lib/widgets.c(dia_color_selector_more_callback): dont
360 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
361 option. Thus linestyles can be preserved on export - at
362 least on NT based systems.
364 * NEWS : clarify the wmf outside of windows issue
366 * app/modify_too.c : fix C99ism
368 * objects/standard/arc.c : debug spew optional at compile time
370 2005-06-26 Hans Breuer <hans@breuer.org>
372 [ Cyrille would call it: warningectomy :-]
374 * lib/font.c app/create_object.c : `...' might be used uninitialized
375 in this function. Yes they were.
376 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
377 uninitialized in this function. Yes it was with textedit_activate_object()
378 Also some static correctness.
379 * lib/diarenderer.c:678: warning: no previous prototype for
380 `calculate_min_radius'. Made static.
381 * lib/dia_svg.c : ptr is a gchar *
382 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
383 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
384 * app/app_procs.c : confirm warning and make dump_dependencies() static
385 * app/autosave.c : #if 0'd old stuff
386 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
388 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
389 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
390 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
391 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
392 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
393 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
394 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
395 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
396 removed unused variables and functions
397 * objects/UML/umlattribute.c objects/UML/umloperation.c
398 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
399 neither 'missing braces around initializer' nor 'initialization from
400 incompatible pointer type'
401 * objects/UML/class_dialog.c : more static
402 * app/interface.c : static and almost const correctness and some
403 less unitialized variables.
404 * app/diapsft2renderer.c : use (int) casts like the original
405 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
406 * app/render_gdk.c: stop assignment from incompatible pointer type,
407 make member functions match the prototype.
408 * app/render_libart.c : Dito. Also stop caching the copy_gc in
409 a static variable. Otherwise it finally leaks and also may cause
410 BadMatch with changing windows
411 => warning count down from about 250 to about 60, one or two hand full
414 2005-06-26 Hans Breuer <hans@breuer.org>
416 * lib/libdia.def : added dia_font_get_description, missing
419 * app/app_procs.c : use png_get_header_ver(NULL), that is:
420 prefer function call over exported variable to get the
421 runtime version of libpng
423 2005-06-19 Hans Breuer <hans@breuer.org>
425 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
426 as suggested by Roland Stigge, bug #308310
428 2005-06-19 Hans Breuer <hans@breuer.org>
430 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
433 2005-06-18 Hans Breuer <hans@breuer.org>
435 * NEWS : mention new file dialog
437 [plugged remaining leaks from bug #142669]
438 * lib/prop_attr.c(fontprop_free) : not only unref the font
439 but free the property itself, too.
440 * app/diagram_tree.c(create_diagram_children): remember the
441 original list start to not only free the last element
443 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
444 but not used. Here it meant a potentially huge leak.
446 2005-06-18 Hans Breuer <hans@breuer.org>
448 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
449 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
450 for others, too. ( Roland Stigge, bug #144527 )
452 2005-06-18 Hans Breuer <hans@breuer.org>
454 * plug-ins/wmf/Makefile.am : prevent installation. It
455 doesn't do anything useful on *NIX and even seems to be
456 linked wrong by gcc (or me;). Fixes bug #172830
458 2005-06-18 Hans Breuer <hans@breuer.org>
460 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
461 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
462 in function declarations. 'f();' for a function without parameters is
463 a C++ism. Though I can't get any of my compilers to warn about it.
464 Finally fixes bug #142663.
466 2005-06-18 Hans Breuer <hans@breuer.org>
468 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
469 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
470 in function declarations. 'f();' for a function without parameters is
471 a C++ism. Though I can't get any of my compilers to warn about it.
472 Finally fixes the rest of bug #142663.
474 2005-06-18 Hans Breuer <hans@breuer.org>
476 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
477 changes but doesn't hurt anyway. See bug #162034
478 * app/diapsft2renderer.c app/modify_tool.c
479 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
480 instead of messing with internals
481 * app/display.c : give interactive renderers more begin/end render.
482 It is guaranteed that the scale wont change between these.
484 2005-06-18 Hans Breuer <hans@breuer.org>
486 * app/app_procs.c : const correctness for stderr_message_internal
487 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
488 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
489 * app/disp_callbacks.c : don't dereference the to the function call
490 when the function pointer in meant to be checked against 0
491 * app/interface.c : warning fixes by using correct types
492 * app/modify_tool.c : describe_props() members returns const pointer
493 * app/render_libart.c : removed most of the render function again.
494 They happily live in lib/dialibartrenderer.c since almost 3 years
495 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
496 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
497 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
498 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
499 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
500 Both mentioned in bug #159814 and not warned by most other compilers.
501 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
502 trailing colon in the GtkTypeInfo initialization
503 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
504 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
505 between char and gint8
506 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
507 * plug-ins/wpg/wpg.c : consitently use guint8
508 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
509 redefinition warnings for python and xslt plug-ins
511 2005-06-18 Hans Breuer <hans@breuer.org>
513 * lib/diagramdata.c : really get rid of diagram_data_destroy
514 and new_diagram_data [ no previous prototype for `...' is either
515 a sign of missing static or of a function to vanish :-]
517 * lib/geometry.c : apparently the G_INLINE stuff was working only
518 with particular GLib version(s), glib-2.6.4 does not. Conditionally
519 reverting to the old mecanics.
521 2005-06-17 Hans Breuer <hans@breuer.org>
523 * plug-ins/python/pydia-*.c : include order tweaking to
524 get rid of redefinition warnings. Ensure to include <Python.h>
525 before any 'system' header, some dragged in by glib.h
526 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
527 pydia-properties.c(PyDiaProperties_Str)
528 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
529 use %p to format pointers
530 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
531 dont cast to float for %d
532 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
533 use correct pointer type
534 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
535 dont discard qualifier aka dont free const strings
536 * plug-ins/python/pydia-properties.c : casts to PyCFunction
537 * plug-ins/python/pydia-property.c : removed unused function,
538 make ensure_quarks() static
539 * plug-ins/python/pydia-render.c : removed unused vars, use
540 the correct signature for begin_render
541 (dia_py_renderer_finalize): pluged a leak
542 => except -fno-strict-aliasing there is no warning left in
545 2005-06-12 Hans Breuer <hans@breuer.org>
547 * app/filedlg.c : really fix the file extension mismatch on export dialog
548 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
550 2005-06-11 Hans Breuer <hans@breuer.org>
552 * configure.in config.h.win32.h : mark as +cvs (should have been
553 done directly after the 0.94 release)
554 * NEWS : attempt to summarize 2/3 year of development
557 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
560 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
561 app/run_dia.sh --credits > THANKS => Segmentation fault
562 * app/pixmaps/Makefile.am : added group.png and ungroup.png
563 * Makefile.am : work around scrollkeeper bug
564 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
566 * po/*.po : 'noise' produced by make dist
568 2005-06-10 Hans Breuer <hans@breuer.org>
570 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
571 * objects/custom/custom_object.c : ... and use it to avoid
572 complains about missing attribute "show_background". It is
573 safe to leave this uninitialized. Same for flip_* and "text",
574 the latter with comment cause it usually is *not* safe to do
575 it for the general case. Fixes remaining issues with bug #169006
576 which where caused by an incompatible change in the shape file.
578 * app/commands.c : use "gnome-open" instead of "netscape" as
579 fallback for $BROWSER not set. Still not optimal but better
580 to try some common desktop tool than an obsolete browser;)
581 Fixes bug #307142. Also some whitespace changes.
583 * app/interface.c(toolbox_delete): avoid random return value.
584 Patch from Stanislav Brabec, fixes bug #307143
586 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
587 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
588 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
590 2005-06-06 Lars Clausen <lars@raeder.dk>
595 Better support for text edit highlight.
597 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
598 the mainpoint extra visible.
600 2005-06-02 Lars Clausen <lars@raeder.dk>
602 * objects/UML/class_dialog.c:
603 * objects/UML/class.[ch]:
604 The final fixes for mainpoint on UML Class.
606 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
607 Ian Redfern, now in color and with mainpoints! Very pretty!
609 2005-06-02 Hans Breuer <hans@breuer.org>
611 * objects/UML/class_dialog.c : the memory managment with respect to
612 attribute/operation connections was/is a mess. But it should work again ;)
614 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
615 directly from the UML Specification - to show the power of Dia and
616 some weakness. Watch the bug reports following ;)
618 2005-06-01 Hans Breuer <hans@breuer.org>
620 * app/dia.def : export diagram_update_connections_object
621 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
622 Patch from Paolo Bernardi, together with the property setting closes bug #300572
624 2005-06-01 Hans Breuer <hans@breuer.org>
626 * plug-ins/python/pydia-property.c : complete refactoring of property
627 setting, now also supports setting of property arrays
628 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
629 Python namespacing conventions
630 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
631 complete UML Classes with attributes and operations
632 * plug-ins/python/otypes.py : now also show the properties of the objects
634 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
635 (pointers), they might be changed with attributes and opertions changing
637 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
638 were broken. Apparently noone used them before.
640 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
641 which only operate on the DiagramData to the latter file. To get on the DiagramData
642 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
643 but I don't know how to reflect that in the bindings. And for backward compatibility
644 there also is the 'data' member.]
646 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
647 objects/UML/umlparameter.c : describe enums with PropEnumData
649 * app/commands.c(view_show_all_callback) : if there is something selected show
650 that instead of all exisiting objects. If there is noting or all selcted it
651 "Show all" shows the old behaviour.
653 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
654 leaks and use less allocations caused by misguided API. Also some adaption to common
657 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
659 * app/makefile.msc : added new icons and build as console app while
660 not releaseing to the general public
662 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
663 and keep a refernce when storing the a font from style="" in s.font. This should
664 finally allow to have shapes with fully predefined text (and no 'random' crashes)
666 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
667 capable to interpret it's output
669 2005-05-31 Lars Clausen <lars@raeder.dk>
671 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
673 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
675 * configure.in: Added ne in ALL_LINGUAS
677 2005-05-24 Lars Clausen <lars@raeder.dk>
679 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
680 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
683 2005-05-23 Lars Clausen <lars@raeder.dk>
685 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
687 2005-05-21 Lars Clausen <lars@raeder.dk>
689 * lib/diaarrowchooser.c:
690 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
691 'infinite' line (three dots) arrowhead. Fix line length in arrow
692 preview. And fix typo. Fixes bug #303904.
694 2005-05-20 Hans Breuer <hans@breuer.org>
696 * lib/text.c : advice from valgrind and data_string() review:
697 neither g_free() memory on the stack
698 * objects/GRAFCET/boolequation.c : ... nor const strings
699 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
702 * app/diagram.c : a g_object_ref() following g_object_new() is almost
703 always wrong. Why would we need two refernces?
704 * app/app_procs.c : same here.If it crashes later on someone is dropping
705 refernces he does not own, and *that* needs to be fixed. This is reverting
706 "Remember to ref g_object_new'd object" (bug #170972) below, which
707 causes more harm (leaking, hiding bugs elsewhere) than good.
709 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
710 diagramdata_destroy() which was only a wrapper to g_object_unref()
712 * app/display.c(selection_changed) : don't g_strdup_printf() without
713 g_free() later /or/ a C++ comment of me mostly denotes an error
715 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
717 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
718 const gchar* entry it must not eat memory, added a lot of g_free() and
719 some const. Fixed a bunch - i.e. *all* - warnings.
720 * lib/widget.h : removed unused/deleted functions
722 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
723 avoid 'Invalid write of size 4', no luck yet
725 2005-05-19 Lars Clausen <lars@raeder.dk>
727 * objects/UML/class.c:
728 * objects/UML/class.h:
729 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
730 for uml class object. #ifdef'd out right now.
732 2005-05-18 Lars Clausen <lars@raeder.dk>
734 * objects/standard/line.c: Make line adjust its actual endpoints
735 for autogap -- looks and feels better.
737 * objects/standard/arc.c:
739 * app/modify_tool.c: Patch from Grégoire Dooms
740 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
741 shifted arc angle movement.
743 2005-05-16 Hans Breuer <hans@breuer.org>
745 * lib/widget.c : variable declarations need to be at the start of a block,
746 at least as we are not using C++ or C99
748 * plug-ins/python/pydia-property.c : implment the read part for Property
749 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
750 They are working quite well as can be seen with export-object.py
752 * plug-ins/python/codegen.py : prove it once more with the generation of C++
753 or Python code from an UML Diagram. Simply save as .py or .cxx ...
754 * plug-ins/python/Makefile.am : install it
756 2005-05-16 Lars Clausen <lars@raeder.dk>
758 * app/pixmaps/{un}group.png:
759 * app/Makefile.am (ICON_PNG_PAIRS):
760 * app/menus.c (display_menu_items):
761 New icons for grou/ungroup finally added, closing bug #105519.
763 * app/Makefile.am: Dependencies for pixmaps.
765 * app/pixmaps/connectable.png: An icon that actually makes sense
766 for switching connectability.
768 2005-05-15 Hans Breuer <hans@breuer.org>
770 * lib/group.c object/UML/classicon.c : fixed leftovers of
771 'Adding connectionpoint to _move_handle
773 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
774 is *ALWAYS* a memory leak. Plug some more.
777 In preparation to make UML operations/attributes/parameters setable by Python
778 UML class became more StdProp conformant. A nice experience to be the first
779 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
781 * objects/UML/umlattribute.c objects/UML/umloperation.c
782 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
783 split from objects/UML/uml.c and made StdProp aware
784 * objects/UML/class.c : finally make "attributes", "operations", "templates"
785 <template parameters> first class StdProps citizens.
786 (umlclass_load) : removed hand-written parsing for the above, it is all done
787 by object_load_props() now. The old write code is still in place, so be very
788 careful when changing something - at the moment load/save it is 100% compatible
790 * objects/UML/uml.c : now just type registration here, as it is supposed to be
791 * objects/UML/Makefile.am objects/makefile.msc : build the new files
793 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
795 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
796 (darray_prop_adjust_object_records) : don't loop forever
797 (whole file) : use the new (working) way to get on the second level offsets.
798 Also resolved some abbreviations, it is complicated enough without them ;)
799 * lib/proplist.c : even complete list contents may be optional
801 2005-05-15 Hans Breuer <hans@breuer.org>
803 * lib/bezier_conn.c(remove_handles) : don't try to remove
804 non-exisitng handles (patch from Radek Krahl, bug #302273)
806 2005-05-15 Hans Breuer <hans@breuer.org>
808 * plug-ins/metapost/render_metapost.c : locale independent output
809 (Radek Krahl, bug #301866)
811 2005-05-12 Lars Clausen <lars@raeder.dk>
813 * shapes/Cisco/*.{shape,png}:
814 * sheets/cisco*.sheet.in:
815 Updated with color icons from Ian Redfern, closing bug #303889.
816 Added automatic midpoints, not attempt at adjusting them.
818 2005-05-11 Lars Clausen <lars@raeder.dk>
820 * many shapes: Use mid of bounding box for midpoint, better than
821 mid of connection points generally.
823 2005-05-10 Lars Clausen <lars@raeder.dk>
825 * lib/widgets.c: Decided on one way for the ratio thing in arrow
826 size selector: Fixed ratio is on by default and keeps the sizes
827 at the given ratio, but doesn't clamp them to be the same. Fixes
830 * lib/font.c: Fix for bug #303695: Allow more than one entry of
831 each legacy name, thereby correctly encoding bold and italic of
832 the three main fonts. Also use | rather than || to combine slant
833 and weight, so matching works. Had to remove binary search for
834 new font name, but the list is short enough it's not a problem.
836 2005-05-09 Lars Clausen <lars@raeder.dk>
838 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
840 2005-05-08 Hans Breuer <hans@breuer.org>
842 * objects/UML/class.c : Reverted to have no center point.
843 At first it looked as if there was only the bug to not increase
844 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
845 potentially much more dynamic connection points (to the left
846 and right of every attribute/operation). Now simply adding one
847 between see static and dynamic will screw up any existing diagram
848 which makes use of the dynamic connection points. The would all
849 be connected with an off-by-one error. I have no idea how to
850 code around that. But breaking backward compatibility is no
851 option here. Does not completely fix bug #303301 ...
853 * lib/widget.c(dia_font_selector_set_font): actually set the options
854 menu state. So we are not any longer resetting the font style on Apply.
855 Use "UML - Class" dialog as stress text example.
857 * app/command.c : some people insist to close diagrams already
858 closed using tear-off menus. Maybe we should add a dialog
859 "Do you want to call Dr. Watson now?". If there is no diagram
860 to close anymore just do nothing, fixes bug #303221
861 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
862 Calling this with no display to close is a pathological case.
864 * app/diagram.[hc] : moved object.h and other DiaObject stuff
865 to the implementation in preparation of Big Things(tm)
867 * app/interface.c : less warnings and make it compile. strncmp()
868 does not take a char**, neither does gdk_pixbuf_new_from_inline().
870 * objects/makefile.msc plug-ins/makefile.msc : less output
872 2005-05-08 Lars Clausen <lars@raeder.dk>
874 * lib/orth_conn.c (orthconn_init): The right place to set the
875 default autorouting value. Fixes bug #303291.
877 * app/display.c (ddisplay_close): Patch from Radek Krahl
878 (ptasz3k@o2.pl): Fix crash when using from detached menu
881 2005-05-07 Lars Clausen <lars@raeder.dk>
883 * lib/orth_conn.c (orthconn_load): Autorouting should default to
884 off in diagrams that don't have it explicitly. All diagrams
885 should be explicit about it.
887 2005-05-06 Hans Breuer <hans@breuer.org>
889 * app/samples/Self/*.dia : some UML diagrams describing Dia's
890 inner working (or it's future;)
892 2005-04-26 Lars Clausen <lars@raeder.dk>
894 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
895 change to display of mainpoint to be easier to debug autogenerated
898 2005-04-23 Hans Breuer <hans@breuer.org>
900 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
901 plug-ins/python/pydia-properties.h : use lib/ prefix for
902 Dia internal headers with too common names (fixes bug #173061)
904 * app/display.c : stop special casing the first display of
905 a diagram. Every display now has it's own refernce. The initial
906 reference gets dropped when there is no display anymore. See
907 diagram_remove_ddisplay(). Fixes bug #300744.
909 * app/diapsft2renderer.c : locale independent output
910 (Radek Krahl, bug #300847)
911 * app/paginate_psprint.c : fixing use of setlocale() calls
912 (Radek Krahl, bug #300886)
913 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
914 (Radek Krahl, bug #300889)
916 * objects/UML/class.c : fix another crash with the line
917 wrapping code (Gabor Simon, bug #160865)
919 * plug-ins/cairo/diacairo.c : image rendering had an endianess
920 issue (or is this working around a libpixman bug?;)
922 2005-04-21 Lars Clausen <lars@raeder.dk>
924 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
926 * shapes/**/*.shape: All shapes now have midpoints.
928 2005-04-20 Lars Clausen <lars@raeder.dk>
930 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
931 (Radek Krahl): Make sure there's enough handles for the line.
934 * objects/UML/node.c (node_draw): Better drawing method avoids
935 garbage after moving. Fixes bug #301032.
937 2005-04-17 Hans Breuer <hans@breuer.org>
939 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
940 changes (whould compile with current cvs and 0.(3|4).0
942 2005-04-11 Lars Clausen <lars@raeder.dk>
944 * xmldocs.make (all): Fix to put installed docs in right place
947 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
950 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
951 (Leonardo Boshell): Use standard gnome help if called with Gnome.
953 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
954 locale issues for eps output. Fixes bug #173135.
956 2005-04-10 Hans Breuer <hans@breuer.org>
958 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
959 changes (somewhat broken)
961 * plug-ins/pstricks/render_pstricks.c : still C89 ...
962 * objects/custom/shape_info.c : ... but with prototypes
964 2005-04-07 Lars Clausen <lars@raeder.dk>
967 * plug-ins/svg/render_svg.c:
968 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
969 Make decimal separators be correct in save file formats
970 (non-localized). Fixes bugs #172529 and 172531.
972 2005-04-06 Lars Clausen <lars@raeder.dk>
974 * app/create_object.c (create_object_button_release):
975 * app/modify_tool.c (modify_button_release): Correct activations
978 2005-04-05 Simon Kågström <ska@bth.se>
980 * app/app_procs.c: the --show-layers option can now handle numeric
983 2005-04-05 Lars Clausen <lars@raeder.dk>
985 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
986 (Tom Kast): Avoid blockiness caused by bad updates.
988 2005-04-03 Lars Clausen <lars@raeder.dk>
991 * lib/beziershape.c: Main points. A crude solution, having the
992 center in the middle of the bb. Shows a bug in the distance_from
993 code for polyshape when a side is horizontal.
995 2005-04-02 Lars Clausen <lars@raeder.dk>
997 * plug-ins/pstricks/render_pstricks.c:
998 * plug-ins/xfig/xfig-export.c: Patch from Radek
999 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
1001 2005-04-02 Hans Breuer <hans@breuer.org>
1003 * lib/dia_image.c(dia_image_filename) : return the path
1004 again. (bug #172416, Radek Krahl)
1006 2005-04-01 Steve Murphy <murf@e-tools.com>
1008 * configure.in: Added "rw" to ALL_LINGUAS.
1010 2005-03-31 Lars Clausen <lars@raeder.dk>
1012 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
1014 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
1017 * objects/network/basestation.c: Main points.
1019 2005-03-27 Hans Breuer <hans@breuer.org>
1021 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
1022 * app/pixmaps.h : removed arrow.xpm
1023 * lib/Makefile.am : added diamarshal
1024 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
1025 => makes 'make dist' pass and produce a useable package
1027 * po/*.po : 'noise' profuced by make dist
1029 2005-03-24 Lars Clausen <lars@raeder.dk>
1031 * objects/flowchart/parallelogram.c (pgram_update_data):
1032 * objects/flowchart/ellipse.c (ellipse_update_data):
1033 * objects/flowchart/diamond.c (diamond_update_data):
1034 * objects/flowchart/box.c (box_update_data): Main points.
1036 * objects/custom/custom_object.c (custom_create):
1037 * objects/custom/shape_info.h:
1038 * shapes/Assorted/square.shape:
1039 * objects/custom/shape_info.c (load_shape_info):
1040 * doc/shape.dtd: Added main point support to shapes, and an
1041 example of how to use it.
1043 2005-03-21 Lars Clausen <lars@raeder.dk>
1045 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
1046 unnormalize from same point as you normalize, or else!
1048 2005-03-20 Lars Clausen <lars@raeder.dk>
1050 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
1051 Remember to ref g_object_new'd object.
1053 2005-03-19 Hans Breuer <hans@breuer.org>
1055 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
1056 have configurations, fixes bug #170962
1058 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
1059 or better not used any longer. Fixes bug #169142.
1061 * lib/element.c(element_update_connections_rectangle): don't initialize
1062 the eighth point twice but instead the nineth once
1064 * objects/standard/bezier.c : no C++ comments *please*
1066 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
1068 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
1069 * plug-ins/python/pydia-image.c : ... so, don't do it!
1071 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
1072 also named colors via pango_color_parse()
1074 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
1076 * lib/libdia.def : updated externals
1078 * app/object_ops.c : still not C99 everywhere
1080 2005-03-19 Hans Breuer <hans@breuer.org>
1082 * lib/autoroute.c : at least it should compile ;)
1084 2005-03-19 Lars Clausen <lars@raeder.dk>
1086 * lib/autoroute.c: Orthconns now do autogap.
1088 2005-03-17 Lars Clausen <lars@raeder.dk>
1090 * app/authors.h: Added Gregoire Dooms for gap stuff.
1092 * objects/standard/polyline.c: Patch from Grégoire Dooms
1093 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
1095 * objects/standard/bezier.c: Patch from Grégoire Dooms
1096 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
1100 * objects/UML/state_term.c:
1101 * objects/UML/large_package.c:
1102 * objects/UML/node.c:
1103 * objects/UML/object.c:
1104 * objects/UML/small_package.c:
1105 * objects/UML/state.c:
1106 * objects/UML/usecase.c:
1107 * objects/UML/note.c:
1108 * objects/UML/actor.c:
1109 * objects/UML/classicon.c:
1110 * objects/UML/component.c:
1111 * objects/Misc/analog_clock.c:
1112 * objects/Jackson/requirement.c:
1113 * objects/Istar/goal.c:
1114 * objects/Istar/actor.c:
1115 * objects/FS/function.c:
1116 * object/standard/box.c:
1117 * objects/ER/entity.c:
1118 * objects/ER/relationship.c:
1119 * objects/ER/attribute.c: Main points added. Distance_from fixed
1120 in attribute, broken in relationship, I* goal, Jackson
1121 requirement, analog_clock, all non-rectangular UML elements,
1124 * lib/element.[ch]: New method to help update connection points.
1126 * app/menus.c: Change Help/Manual to Help/Contents to follow
1129 * objects/standard/line.c:
1130 * lib/geometry.[ch]:
1131 * objects/standard/bezier.c: Patch from Grégoire Dooms
1132 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1133 bezier objects. Autogap nowchanged to be a function of the
1137 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1140 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1141 CP_FLAG_ANYPLACE connpoints.
1143 2005-03-16 Lars Clausen <lars@raeder.dk>
1145 * app/interface.c (create_tools): Removed debug printf.
1147 2005-03-15 Lars Clausen <lars@raeder.dk>
1149 * lib/widgets.[ch]: Constification.
1151 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1154 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1156 * lib/connectionpoint.h: Flags for connection points.
1158 * app/create_object.c (create_object_motion):
1159 * app/modify_tool.c (modify_motion): Minor refactoring.
1161 * app/object_ops.c (object_find_connectpoint_display): Extend with
1162 finding connpoints that cover entire objects.
1164 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1166 * objects/custom/custom_object.c (custom_setup_properties): Avoid
1169 2005-03-13 Hans Breuer <hans@breuer.org>
1171 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1173 2005-03-13 Hans Breuer <hans@breuer.org>
1175 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1176 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
1177 dia_svg_style_copy(), dia_svg_style_init()
1179 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1182 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1183 not wrapped in the style attribute
1185 * plug-ins/svg/svg-import.c : implement nested group handling and style
1186 'style inheritance'. Still no transformations, no <image/>, no <style/>
1189 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1190 the latter is for programmers.
1191 Also be more tolerant if the document root namespace is not 'svg'. If the svg
1192 namespace is defined in the file search for the top node including svg. This
1193 allows us to re-read the svg part of our own shape format.
1195 * lib/libdia.def : there is no give_focus_to_object
1196 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
1197 type as an expression
1199 * lib/geometry. c : use G_IMPLEMENT_INLINES
1200 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1202 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1203 gone when trying to remove the focus
1205 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1206 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1207 case of this plug-in, i.e. producing output files]
1209 2005-03-13 Lars Clausen <lars@raeder.dk>
1211 * lib/Makefile.am (BUILT_SOURCES):
1212 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1213 the building of the icons header files.
1214 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1216 2005-03-13 Hans Breuer <hans@breuer.org>
1218 * configure.in : require Cairo 0.3.0
1219 plug-ins/cairo/diacairo.c : changed to match ;-)
1221 * app/app_procs.c() : new function dump_dependencies()
1222 which gets called by: dia --version --verbose
1223 and may help to track version dependent problems in
1226 * lib/font.c : reverted to previous version cause using
1227 not implemented Pango API did not improve the issue.
1228 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1229 for more information.
1231 * lib/dialinechooser.c : a little shrinking of the
1232 initial size (to work around line wrappjing the right
1235 2005-03-11 Lars Clausen <lars@raeder.dk>
1237 * app/textedit.c: Concentrate start/end editing in single functions.
1239 2005-03-10 Lars Clausen <lars@raeder.dk>
1242 * lib/object.h: Added new object function to allow the object to
1243 be notified when its text is being edited.
1246 * app/modify_tool.c:
1249 * lib/focus.c: Remove sideeffects from focus objects, add getter
1252 2005-03-09 Lars Clausen <lars@raeder.dk>
1254 * lib/Makefile.am (dia-lib-icons.h):
1255 * app/Makefile.am: Minor cleanup.
1257 2005-03-06 Hans Breuer <hans@breuer.org>
1259 * app/app_procs.c : avoid "assignment within conditional expression"
1260 and handle -L for the GOption case as well.
1262 * lib/widget.c : strchr() does not return -1 on not found but NULL;
1263 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
1264 indirection from 'const int '
1266 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
1267 large_arc, thus produce correct arc output (like diasvg.py does;),
1270 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
1271 from objects/custom/shape_info.c to be shared with object/custom and
1272 plug-in/svg -> finally the C based svg-import reads pathes again.
1273 Added arc parsing while I was there, which fixes bug #169191
1274 * objects/custom/shape_info.c(parse_path) :
1275 * plug-ins/svg/svg-import : reuse above function
1276 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1277 But in general this does only support a small subset of what is
1280 2005-03-06 Lars Clausen <lars@raeder.dk>
1282 * objects/UML/association.c: Patch from Dave Klotzbach applied:
1283 Add visibility to association arrow. Fixes bug #157012.
1285 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1286 closing bug #161040.
1288 * app/layer_dialog.c (create_button_box): Use stock icons instead
1289 of homemade onces. Gets us rid of four more XPMs.
1291 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
1293 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
1294 This option permits command line control of which layers are visible.
1295 Useful when automatically exporting multiple versions of the same
1296 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
1297 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
1298 and made it static since its only used in that file.
1299 * app/authors.h: added myself
1300 * doc/en/dia.1: documented the switch
1301 * doc/en/usage-layers.xml: ditto
1303 2005-03-05 Alan Horkan <horkana@tcd.ie>
1305 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
1306 this restores how Dia behaved before the GTK2 port and seems to help
1307 allow the toolbox to be more easily resized. Bug #108891.
1309 2005-03-05 Lars Clausen <lars@raeder.dk>
1311 * Civil/civil_motor.shape:
1312 * Civil/civil_rotor.shape:
1314 * Logic/buffer.shape:
1315 * Logic/connector.shape:
1316 * Logic/inverter.shape:
1322 * shapes/Assorted/arrow-left-up.shape:
1323 * shapes/Assorted/heptagon.shape:
1324 * shapes/Assorted/star5.shape:
1325 * shapes/Assorted/trapezoid.shape:
1326 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
1327 defaults, see bug #169143.
1329 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
1332 * doc/en/Makefile.am: Finally figured out the right way to ask for
1333 the manpage xslt. Closes bug #144539.
1335 2005-03-01 Lars Clausen <lars@raeder.dk>
1337 * lib/Makefile.am (nodist_include_HEADERS):
1338 * app/Makefile.am: Correctly generate these files from PNGs with
1343 * lib/widgets.c: Refactor toggle button factory to allow inline
1346 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
1348 * app/makefile.msc (ICON_PNG_PAIRS):
1349 * app/dia-app-icons.h: Updated with more icons.
1352 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
1355 * app/interface.c (create_display_shell):
1356 * app/layer_dialog.c (dia_layer_widget_init):
1357 * lib/dia_image.c (dia_image_get_broken): Use inlined data
1360 * app/display.c (ddisplay_close): Removed unused includes.
1362 2005-03-01 Lars Clausen <lars@raeder.dk>
1364 * app/sheets.c (create_object_pixmap): Create a placeholder image
1365 for when the real image is missing. Better than crashing:)
1368 2005-02-25 Hans Breuer <hans@breuer.org>
1370 * app/app_procs.c : don't requets to open a default display with
1371 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
1373 2005-02-22 Lars Clausen <lars@raeder.dk>
1375 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
1378 2005-02-19 Lars Clausen <lars@raeder.dk>
1380 * app/menus.c (display_menu_items): Applied patch from bug #94019:
1381 Menu cleanup and addition of icons. Also a few additional stock
1384 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
1387 2005-02-14 Lars Clausen <lars@raeder.dk>
1389 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
1391 2005-02-13 Lars Clausen <lars@raeder.dk>
1393 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
1394 width. Seems to work. Once tested some more, needs old code
1397 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
1398 warning by escaping & properly.
1400 2005-02-06 Lars Clausen <lars@raeder.dk>
1402 * app/filedlg.c (file_export_callback): Set correct extension as
1403 soon every time the dialog is shown. Fixes bug #162535.
1405 * app/display.c (ddisplay_set_origo): Use more standard
1408 * app/modify_tool.c (modify_motion):
1409 * app/create_object.c (create_object_motion): Put coordinates of
1410 handle/object in status bar while moving. Fixes bug #163164.
1412 2005-02-03 Lars Clausen <lars@raeder.dk>
1414 * lib/.cvsignore: Added generated files diamarshal.[ch]
1416 2005-02-02 Lars Clausen <lars@raeder.dk>
1418 * configure.in: Add GLIB_GENMARSHAL def as suggested in
1419 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
1420 Now compiles on Linux.
1422 2005-02-01 Lars Clausen <lars@raeder.dk>
1424 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
1425 need to translate the empty string. Especially not after
1426 g_assert_not_reached(). Fixes bug #165966.
1428 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
1430 * objects/UML/activity.c : add fill- and line-colour properties
1431 [applied by Hans Breuer, fixes bug #163260]
1433 2004-01-28 Hans Breuer <hans@breuer.org>
1435 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
1436 update provided by Alan Horkan (fixes bug #159592)
1438 2004-01-28 Hans Breuer <hans@breuer.org>
1440 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
1441 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
1442 generalization, dependancies, parameterized classes ...
1443 * plug-ins/xslt/styleshetts.xml : refernce it
1444 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
1446 2004-01-28 Hans Breuer <hans@breuer.org>
1448 * objects/UML/transition.c : fill out the extra_spacing struct
1449 in the OrtConn member, in order to avoid artifacts when draggin
1450 the transition. (patch by Peter Allin, bug #144956)
1452 2004-01-15 Hans Breuer <hans@breuer.org>
1454 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
1455 to something differnt than 0. Apparently there are case where Dia misses
1456 to appropriately set it before requesting a dashed line (simple line with
1457 arrow as described in bug #151716)
1459 * lib/dia_dirs.c : special casing for drive letters which I broke with
1462 2005-01-13 Hans Breuer <hans@breuer.org>
1464 * app/interface.c(create_sheet_page) : remved dead long time code
1466 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
1467 it is availbale via header - which is the better style anyway
1469 2004-12-31 Hans Breuer <hans@breuer.org>
1471 * lib/dia_dirs.c(dia_get_canonical_path) : complete
1472 rewrite to handle something like /mnt/some/where/../else
1473 too. Workaround for bug #162637.
1474 * app/filedlg.c : call gtk_file_chooser_set_current_name()
1475 to workaround gtk_file_chooser_set_filename() not setting
1476 it if the file does not exist
1478 * sheets/Jackson.sheet.in app/menus.c : fixed typos
1479 (Frank Arnold, bug #161676)
1481 2004-12-31 Steffen Macke <sdteffen@gmail.com>
1483 * doc/pl/*.xml: Added XML prolog
1484 * makefile.msc: Added libxslt, fixed libxml, libart
1486 2004-10-29 Alexander Shopov <ash@contact.bg>
1488 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
1490 2004-12-29 Lars Clausen <lars@raeder.dk>
1492 * configure.in: Make gnomeprint be truly off by default (typo) and
1493 show optional compilation correctly.
1494 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
1496 2004-12-22 Hans Breuer <hans@breuer.org>
1498 * lib/widgets.c : destroy handlers can be called more than once,
1499 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
1501 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
1503 * app/display.c : temporary debug code showing the
1504 timing the rendering
1506 * app/dialibartrenderer.c(draw_string) : removed dead
1507 code loading and leaking font and face
1509 2004-12-15 Hans Breuer <hans@breuer.org>
1511 * app/display.c : actually use the selction-changed signal for something
1512 useful. Show selections representation on statusbar.
1513 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
1514 * app/diagram_tree.c : use new function (as in app/display.c) and only
1515 poke into property internals at one place
1516 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
1519 2004-12-12 Hans Breuer <hans@breuer.org>
1521 * lib/libdia.def app/dia.def : updated externals
1523 * objects/custom/custom_object.c : custom_destroy is called per object.
1524 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
1525 reference to it. Fixes e.g. bug #158288, #160550, ...
1527 * objects/UML/association.c(association_draw) : completed porting to
1528 draw_polyline_with_arrows()
1529 (association_update_data_end) : fixed typo in point compare
1530 (association_update_data) : for name placement take degenerated
1531 segements into account. Together this fixes bug #143891
1533 2004-12-11 Hans Breuer <hans@breuer.org>
1535 * lib/widgets.c(set_size_sensitivity) : revert inverted
1536 logic for arrorw size selections, fixes bug #160527
1538 2004-12-11 Hans Breuer <hans@breuer.org>
1540 * lib/widgets.c(dia_font_selector_set_font) : initialize
1541 the font style widget, too. Gets rid of empty font
1542 style and thus default broken font style, e.g. UML::class_name
1544 * lib/widgets.c(dia_color_selector_more_callback) : fill
1545 the color palette from dynamic menu entries and also
1546 preselect the current color to the last select entry
1548 * plug-ins/python/pydia-diagramdata.c : hold a reference
1549 to the underlying GObject
1551 * app/Makefile.am app/diagrid.h : new file containing the
1552 grid 'class' moved from DiagramData to Diagram.
1553 Also moved pagebreak_color and guides cause they are only
1554 used for visual appearance not 'data'.
1555 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
1556 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
1559 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
1560 lib/libdia.def : get rid of new_diagram_data()
1561 Diagram _is_ DiagramData (and does not have one any longer,
1562 just a compatibility pointer)
1564 * lib/diarenderer.h : a small doc improvement
1566 2004-12-11 Hans Breuer <hans@breuer.org>
1568 * objects/UML/class.c : line wrapping code buffer
1569 overrun fixed by Gabor Simon, bug #160865
1571 2004-12-11 Hans Breuer <hans@breuer.org>
1573 * plug-ins/python/pydia-diagram.c : hold a reference
1574 to the diagram in PyDiaDiagram, avoids bug #159080
1575 [another way to avoid is to detroy the dialog by
1576 clsoing it. But now there is still a diagram to
1577 apply the changes to, even if it's thrwon away just
1580 2004-12-10 Hans Breuer <hans@breuer.org>
1582 * **/*.c : fixed a bunch of warnings, not only for -ansi
1583 (still too many of them, but -ansi works)
1585 prop_geomtypes.h prop_geomtypes.c:306: warning: static
1586 declaration for `fontsizeprop_reset_widget' follows non-static
1587 dia_dirs.c:196: warning: return discards qualifiers from
1591 shape_info.c:121: warning: static declaration for `parse_path'
1595 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
1596 arrow.c:244: warning: unused variable `i'
1597 arrow.c:245: warning: unused variable `p'
1598 arrow.c:246: warning: unused variable `zzr'
1600 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
1601 finally removed c++ comments
1603 objects/Istar/goal.c : initialize connections::directions
1604 while I was there - helps autorouting
1606 * objects/KAOS/metaandorrel.c objects/Istar/link.c
1607 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
1608 (it would be quite simple to add image-from-memory support
1611 * pydia-*.h : warning: no newline at end of file
1613 * plug-ins/gprint/diagnomeprint.c : allow to unregister
1614 and follow new unique name naming convention
1615 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
1618 2004-12-07 Hans Breuer <hans@breuer.org>
1620 * objects/UML/message.c : better default for initial text placement
1621 a suggested in bug #154306, Henning Mersch
1622 * objects/UML/constraint.c : doing the same
1624 * app/filedlg.c : include persistence.h for persistence_get_integer
1625 * lib/libdia.def export it
1627 2004-12-05 Hans Breuer <hans@breuer.org>
1629 * app/grid.c : respect dynamic grid during snap-to, fixes
1630 bug #135124, Dmitriy Morozov. Added some additional magic
1631 to make the grid size more useable.
1633 2004-12-05 Hans Breuer <hans@breuer.org>
1635 * app/app_procs.c : make it compile for the HAVE_POPT and
1636 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
1638 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
1639 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
1640 when interactive. Fixes bug #119329
1642 * plug-ins/cairo/diacairo.c : adapt to new type naming
1643 scheme (introduced by accident;-) for pixbuf-*
1644 * app/app_procs.c : reflect both type name changes
1646 2004-12-04 Hans Breuer <hans@breuer.org>
1648 * objects/standard/image.c : fix the correct warning
1649 `image_file_name' might be used uninitialized
1651 * app/filedlg.c : near complete rewrite
1652 - removed 'related dialog', GtkOptionMenu, most global vars,
1653 also don't hide the dialog but let it go.
1654 - added: filter view by extension, hopefully working diagram
1655 referencing, GtkComboBox usage
1657 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
1658 of im/export filter entries. So the user interface reflects
1659 the dynamic nature of pixbuf loaders
1661 * lib/filter.[ch] : implement filter_unregister_*port
1662 lib/libdia.def : added new functions
1663 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
1664 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
1665 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
1666 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
1667 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
1668 use them in _plugin_unload () thus all these plug-ins
1669 can be loaded used and unloaded during Dia's runtime
1671 2004-12-04 Lars Clausen <lars@raeder.dk>
1673 * lib/diagramdata.h: Access methods for units defined per diagram.
1675 * lib/font.c (dia_font_new_from_style): More proper object creation.
1677 * lib/properties.h: Refactored the PROP_STD_* macros to allow
1680 * app/diagram.c (diagram_init): Force filename to be absolute
1681 path, easing the job for load/save.
1683 2004-12-03 Hans Breuer <hans@breuer.org>
1685 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
1686 added dia_font_set_height, dia_font_copy (note to self: don't try to
1687 maintain these from the *NIX side ;)
1689 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
1690 the new color selection anymore
1691 * objects/UML/class_dialog.c : with the above change it would have been more
1692 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
1693 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
1695 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
1696 (used in object vtable) and make its prototype match
1698 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
1699 correlate any of these strange crashing bug with it, but assume bad things to
1700 happen when one passes stack allocated stuff to gtk_type_unique()
1702 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
1703 not there. Fixes most of the warnings from bug #156996
1705 * lib/makefile.msc : rules to generate diamarshal.[ch]
1707 2004-11-29 Hans Breuer <hans@breuer.org>
1709 * app/disp_callbacks.c : reenable so-called preedit
1710 as described in bug #158859, Etsushi Kato
1711 Also fixed some compiler warnings while there.
1713 * objects/standard/image.c(get_directory) : make
1714 the documentation match the implementation.
1715 (image_save) : don't write a leading slash on
1718 * plug-ins/gprint/diagnomeprintrenderer.c :
1719 switched to gnome-print-pango usage
1721 * app/app_procs.c configure.in : although Dia
1722 is not threaded it appears as if we have to
1723 g_thread_init() to avoid crashing in some
1724 libraries which are thread enabled
1726 * lib/diamarshal.list lib/Makefile.am : start of
1727 using GSignal to clean up some object relations
1728 * lib/libdia.def : export marshallers
1729 * app/diagram.[ch] : emit signals when REMOVED,
1731 * app/display.c : added a connection to
1732 SELECTION_CHANGED to test the new signal stuff
1734 * app/diagram.c : fixed diagram_finalize while I
1737 2004-11-28 Hans Breuer <hans@breuer.org>
1739 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
1740 the text if conversion to current locale fails. [This is actually
1741 using code written four years ago;]
1742 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
1744 * objects/standard/image.c(image_load) : be more robust against
1745 filenames which seem to be absolute
1747 2004-11-27 Hans Breuer <hans@breuer.org>
1749 * app/filedlg.c(file_save_callback) : convert to
1750 filename encoding before passing to diagram_save()
1751 Fixes bug #158381, thanks to Robert Ögren
1753 2004-11-27 Hans Breuer <hans@breuer.org>
1755 * lib/dialibartrenderer.c : sometimes its good to read
1756 compiler warnings. Not only define renderer_finalize
1757 but actually *use* it. Should plug a potential huge
1760 * configure.in plug-ins/Makefile.am
1761 plug-ins/gprint/Makefile.am : build the experimental
1762 gnomeprint plug-in on *NIX, too.
1763 * plug-ins/gprint/diagnomeprint.c : don't include
1764 specific (private) backend headers but instead select
1765 the desired backend via config key setting
1767 * lib/diagdkrenderer.c : add 1 to size of filled arc
1768 to be rendered by gdk. Fixes bug #150896.
1770 * plug-ins/gprint/diagnomeprint.c
1771 plug-ins/gprint/diagnomeprintrenderer.c : added magic
1772 to better match page and dash sizes
1774 2004-11-27 Hans Breuer <hans@breuer.org>
1776 * plug-ins/shape/shape-export.c : it's g_strdup_printf
1778 2004-11-27 Hans Breuer <hans@breuer.org>
1780 * app/app_procs.c : mention eps-builtin aka. "using
1781 latin1", does not fix the eps-pango issues but #150571
1783 2004-11-27 Hans Breuer <hans@breuer.org>
1785 * sheets/Cybernetics.sheet.in : changed encoding to
1786 utf-8, patch from Takeshi AIHANA, fixes #149580
1788 2004-11-27 Hans Breuer <hans@breuer.org>
1790 * objects/custom/custom_object.c : many existing shapes
1791 rely on a square default size, revert to it although
1792 it originally was by a typo. Fixes bug #148527.
1794 2004-11-27 Hans Breuer <hans@breuer.org>
1796 * app/load_save.c(dia_cleanup_autosave)
1797 app/diagram.c : don't use dia->filename if already
1798 freed and dont use printf at all.
1800 * app/paginate_psprint.c : not only set the renderer::paper
1801 but also renderer::is_portrait. Should fix bug #142524
1803 2004-11-26 Hans Breuer <hans@breuer.org>
1805 * dia.desktop.in : added Bug Buddy headers (as seen
1806 in planner). Hopefully the automatically filling of
1807 bugs is more meaningful by this.
1809 * objects/custom/custom_util.c objects/standard/image.c
1810 lib/plug-ins.c : getting rid of deprecated g_dirname,
1811 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
1812 bytes inside a block of size 44 free'd
1814 * lib/persistence.c(persistence_load_list) : don't
1817 * lib/diaerror.[ch] : (new file) start of better error handling
1818 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
1819 added new files/funcs
1820 * lib/proplist.c lib/propinternals.h (prop_list_load) :
1821 allow to propagate error to caller. Also set PXP_NOTSET
1822 to avoid applying unset properties, fixes bug #155255
1823 * lib/propobject.c lib/prop_sdarray.c : still spewing
1824 g_warnings but now with context information
1826 * app/filedlg.c : more absolute filenames where required
1827 and strip them where we need the filename only
1828 Also explicit DONT choose gnome-vfs backend cause its
1829 threading appears to crash Dia - at least in GNOME build,
1832 2004-11-26 Hans Breuer <hans@breuer.org>
1834 * app/filedlg.c : don't use relative filenames for
1835 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
1837 (export_set_extension) : if we don't have a filename don't
1838 use it in strrchr() to avoid crashing
1840 2004-11-23 Hans Breuer <hans@breuer.org>
1842 * app/app_procs.c : fixed build for the GNOME case
1843 (let's rip out POPT and depend on glib-2.6, please ;-)
1845 2004-11-23 Hans Breuer <hans@breuer.org>
1847 * app/app_procs.c : fixed typo which broke the
1848 build for HAVE_POPT case
1850 2004-11-21 Hans Breuer <hans@breuer.org>
1852 * app/app_procs.c : some more #if-mess, but one day
1853 we should rely on GLib's 2.6 Option Parser alone
1855 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
1856 and height for RoundRect() - otherwise size depends on offset,
1857 shorten the unique name
1859 * plug-ins/python/diamodule.c : provide a unique name
1860 for python filters as well
1862 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
1863 by using the right colors (need black background cause we
1864 are tinitng it with the real color later)
1866 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
1867 instead of hardcoded slahes, improved portability
1869 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
1870 plug-in. Also added some more error reporting (e.g. no printer driver)
1872 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
1873 plug-ins/makefile.msc : resurrection of the gnome print renderer.
1874 Kinda works (alpha quality) for export but does not print yet.
1875 With bug #158972 resolved this does even work on win32 :-)
1877 2004-11-07 Hans Breuer <hans@breuer.org>
1879 * doc/diagram.dtd : <composite> can have <composite/>,
1880 <font/> has two 'optional' atributes 'style' and 'family',
1881 these are used to store new (since 0.91) font info.
1882 With this changes non of the issues in bug #147431 remains.
1884 * plug-ins/python/otypes.py : starting to implement an
1885 'create all known object' file as ne stress test source
1886 for the dtd and Dia in general.
1888 2004-11-06 Hans Breuer <hans@breuer.org>
1890 * app/diapsrenderer.c : don't convert to locale but to
1891 "LATIN1", fixes bug #146641
1893 2004-11-06 Hans Breuer <hans@breuer.org>
1895 * app/diagram_tree.c : still no C99 everwhere ...
1896 * lib/libdia.def : update externals
1897 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
1899 * app/app_procs.[hc] : declare, use ...
1900 app/winmain.c : ... and implement dia_redirect_console().
1901 Even though newer Gtk version don't popup a console window
1902 anymore redirecting the error messages to a file in $TEMP appears
1903 to be much more reasonable than just ignoring it. Fixes bug #150777
1904 based on a patch from Steffen Macke
1906 2004-11-06 Hans Breuer <hans@breuer.org>
1908 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
1909 RoundRect() for high level renderer api implementation thus
1910 fixing bug #138744 reported by Lars Clausen
1912 2004-11-06 Hans Breuer <hans@breuer.org>
1914 * app/prefernces.c : applied patch to make showing the diagram
1915 menubar the default (advanced users know how to switch it off)
1916 Fixes bug #150706, Steffen Macke
1918 2004-11-06 Hans Breuer <hans@breuer.org>
1920 * app/commands.c app/commands.h : added view_fullscreen_callback()
1922 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
1923 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
1924 ALso modified to allow handling of unmodified keys again (aren't
1925 there plenty of bug reports for this?
1927 2004-11-06 Hans Breuer <hans@breuer.org>
1929 * objects/UML/class_dialog.c : fixed casts for usage
1930 of dia_color_selector_set_color()
1932 * app/filedlg.c : pass a valid filenames to
1933 gtk_file_chooser_set_filename(), if we don't have a name
1934 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
1935 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
1936 assertion `local_full_path[0] == '/'' failed"
1938 2004-11-06 Lars Clausen <lars@raeder.dk>
1940 * app/properties.c (create_dialog):
1941 * app/diagram_tree_window.h:
1942 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
1943 * app/diagram_tree_menu_callbacks.c:
1944 * app/diagram_tree_window.c:
1945 * app/diagram_tree_menu.c:
1946 * app/diagram_tree.c: Changed to use persistence instead of
1947 strange hacks in preferences.
1949 * lib/persistence.h:
1950 * lib/persistence.c (persistent_list_get_glist): Don't deref null
1951 pointer. New function persistent_list_remove_all, and
1952 fixed persistent_list_remove to ... work!
1954 2004-11-05 Lars Clausen <lars@raeder.dk>
1956 * app/paginate_psprint.c (diagram_print_ps): Call
1957 diagram_print_destroy on destroy rather than delete_event. That
1958 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
1961 2004-11-02 Lars Clausen <lars@raeder.dk>
1963 * objects/UML/class.c (umlclass_load): Actually load the saved
1964 fonts and font sizes. Fixes bug #157016
1966 * configure.in: Require at least GTK+ 2.4.
1968 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
1969 finally, finally. Not quite bulletproof yet, and I need to figure
1970 out a minimum version of Gtk that doesn't spew warnings all over.
1972 * app/diagram.[ch]: diagram_set_filename with const filename.
1974 * app/sheets_dialog_callbacks.c
1975 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
1976 correctly recreated. Still something fishy with the sheet menu in
1977 the dialog after adding a new sheet. Probably the sheet name
1980 2004-11-01 Lars Clausen <lars@raeder.dk>
1982 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
1983 stmping. Now requires g_free here and there.
1985 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
1986 for remembering last sheet, better off as persistent string. Must
1987 hunt down other things like that.
1989 * app/interface.c (create_sheets): Now remembers last sheet
1990 selected again. Fixes bug #157036.
1992 2004-11-01 Hans Breuer <hans@breuer.org>
1994 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
1995 will never become NULL but only point to the next char
1996 which might indeed be \0]
1997 Use tex_escape_string() to avoid writing invalid tex,
2000 * **/* : a bunch of changes caused by trying 'make distcheck'
2001 which still fails, see Bug #144527
2003 2004-10-31 Lars Clausen <lars@raeder.dk>
2005 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
2006 floating point numbers being printed with commas. Fixes bug
2009 * app/interface.c (create_sheet_dropdown_menu): New function to
2010 create the sheet menu, and also allow recreation. Still buggy and
2011 slightly prone to magic.
2013 * objects/UML/class_dialog.c
2014 (attributes_list_selection_changed_callback): Don't try to update
2015 the widgets after they're destroyed. Fixes bug #156706 (I think).
2017 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
2018 adjustement. Fixes bug #154637
2020 * sheets/ER/Makefile.am (PIX):
2021 * sheets/GRAFCET/Makefile.am (PIX):
2022 * sheets/Jackson/Makefile.am (PIX):
2023 * sheets/Istar/Makefile.am (PIX):
2024 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
2025 XPM. Why these have their pictures in sheets rather than shapes I
2026 don't know. Fixes bug #152142.
2028 2004-10-31 Hans Breuer <hans@breuer.org>
2030 * plug-ins/pixbuf/pixbuf.c : when running non interactive
2031 Dia won't call color_init() as it assumes no display. If
2032 we have one as tested ourselve we can as well color_init()
2033 to avoid g_warnings() and produce the right collors.
2036 * app/app-procs.c : try to be a little more helpful
2037 and correct with regard to the command line options.
2038 Renamed --export-to-format to --export-filter and some
2039 other string changes
2041 2004-10-31 Hans Breuer <hans@breuer.org>
2043 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
2044 added GetDeviceCaps() dummy implementation to make
2045 'wmf' compile on Linux, too.
2047 2004-10-31 Hans Breuer <hans@breuer.org>
2049 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
2050 to finally fix the long lasting clipping issue, bug #85831
2051 Also fixed the line style issue for printing on XP and don't
2054 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
2056 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
2057 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
2059 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
2060 some info from the console (soon gone on windoze) to message_error()
2061 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
2062 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
2064 plug-ins/python/diasvg_import.py : re.compile() only once per expression
2065 and some more playing with scaling
2067 * plug-ins/python/makefile.msc : updated
2069 2004-10-30 Hans Breuer <hans@breuer.org>
2071 * shapes/Civil/civil_arrow_right.shape : removed
2072 <aspectratio type="fixed" /> thus allowing to change
2073 width and height independently, fixes #154897
2074 (Serge Robinson) by making it consistent with the
2077 2004-10-30 Hans Breuer <hans@breuer.org>
2079 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
2080 on arrow being NULL, fixes bug #143063
2082 2004-10-30 Hans Breuer <hans@breuer.org>
2084 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
2085 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
2086 removed use of chached variable DiagramData::selected_count
2087 * lib/diagramdata.h : renamed to selected_count_private
2088 (kept for binary compatibility and sanity checks)
2089 * lib/diagramdata.c : more checks on a screwed up selection list
2091 * app/diagram.c(diagram_group_selected) : don't screw up the
2092 DiagramData::selected list, was assignment of parent_list_affected(),
2093 * lib/diagramdata.c (data_select, data_unselect) : protect against
2094 multiple selections of the same object and removement of a not selected
2095 object (apparently caused by the recently added group undo stuff)
2096 together with the above this finally fixes bug #153525
2098 * app/Makefile.am : fix ./autogen.sh ->
2099 app/Makefile.am:171: blank line following trailing backslash
2101 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
2102 ddisplay_do_update_menu_sensitivity() here as well
2104 * configure.in : make the experimental state of the cairo plug-in
2107 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
2108 try to update anything if we can't find an active diagram
2109 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
2111 * configure.in : another attempt to fix bug #156116. If there is
2112 anyone with autotools knowledge reading this - help appreciated ;-)
2114 2004-10-30 Hans Breuer <hans@breuer.org>
2116 * objects/makefile.msc objects/UML/Makefile.am
2117 objects/UML/uml.c objects/UML/transition.c
2118 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
2119 Patch from Peter Allin adds statechart transitions to the UML sheet -
2120 bug #144956 - modified to not print("%s", NULL) which crashes on
2121 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2123 2004-10-30 Hans Breuer <hans@breuer.org>
2125 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
2126 match the website anymore, i.e. sould remain unchanged.
2127 See below and lib/dia_xml.h for the reasoning
2129 * lib/libdia.def : removed dia_color_selector_get_type
2131 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2132 (like broken PNG) and g_warning if appropriate
2134 * app/interface.c : #include "message.h"
2136 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2137 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2138 better to just move diaunitspinner to lib/ instead of polluting
2139 widgets.[hc] even more ;)
2140 * app/makefile.msc lib/libdia.def : updated
2142 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2143 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2145 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2146 do something useful when compiled
2148 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2149 Also some more #ifdefed backends usage.
2151 2004-10-10 Lars Clausen <lars@raeder.dk>
2153 * lib/widgets.c: Better labels for color selector menu.
2155 * app/dia-props.c (diagram_properties_respond):
2156 * app/preferences.c (prefs_get_value_from_widget): Don't assume
2157 that a dia color selector is of type DiaColorSelector:)
2159 * lib/widgets.[ch]: Color selector changed to dynamic menu.
2161 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2164 2004-10-09 Lars Clausen <lars@raeder.dk>
2166 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2167 arrow preview to avoid long arrow heads flipping.
2169 * lib/arrows.[ch]: Support for getting from name to arrow type,
2170 and for listing all arrow names.
2172 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2174 * lib/libdia.def: Added new global functions.
2176 * lib/persistence.[ch]: Two of the persistent_list functions to
2177 return whether the item was found in the list.
2179 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2180 the growing number of sheets.
2182 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2185 2004-10-05 Lars Clausen <lars@raeder.dk>
2187 * objects/UML/association.c: Patch from Harvey Thompson
2188 <harveyandsu@yahoo.com>: Better placement of association texts.
2190 2004-10-03 Lars Clausen <lars@raeder.dk>
2192 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2193 use the fonts in question. Can't set tooltips with the name since
2194 lib objects don't know the tool_tips thing, which is rather
2197 2004-09-19 Hans Breuer <hans@breuer.org>
2199 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2200 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2202 2004-09-19 Hans Breuer <hans@breuer.org>
2204 * dia.desktop.in : string changes as proposed in bug #151822
2206 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2207 appearts not to be needed on Linux and breaks the build
2208 on OSX. Fixes bug #152970
2210 2004-09-18 Lars Clausen <lars@raeder.dk>
2212 * app/commands.c (view_show_all_callback): Add a bit of border
2213 around Ctrl-E'd diagram, for easier select and better view of edges.
2215 2004-09-19 Hans Breuer <hans@breuer.org>
2217 * app/Makefile.am : trying to fix the fix from 2004-02-15
2218 Overwriting AM_LDFLAGS still gave a automake warning and it
2219 also appeard to break linking against gtklibs in a differnt
2220 prefix. Use dia_LDFLAGS instead.
2222 * plug-ins/svg/svg-import.c : initialize 'end' before usage
2223 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2225 * lib/diarenderer.c : don't try to draw lines which are so much
2226 degenerated that their point count became negative, fixes bug #148139
2228 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
2229 strings (NULL from g_strdup())
2231 2004-09-10 Steffen Macke <sdteffen@web.de>
2233 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2234 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2235 * app/create_object.c:
2236 * app/diaunitspinner.c:
2237 * app/disp_callbacks.c:
2239 * app/modify_tool.c:
2240 * lib/prop_geomtypes.c:
2241 * lib/prop_geomtypes.h: made compile with msvc
2243 2004-09-10 Lars Clausen <lars@raeder.dk>
2245 * lib/widgets.c: Insulate conversion from outside API by adding
2246 internal function to set value. Adjustment not appropriate for
2249 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2251 2004-09-07 Lars Clausen <lars@raeder.dk>
2253 * app/diapagelayout.c: Include from widgets.c rather than
2256 2004-09-03 Lars Clausen <lars@raeder.dk>
2258 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2259 as unit-based property testbed.
2261 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2262 and fontsize widgets.
2264 * app/Makefile.am (dia_core_files):
2265 * app/diaunitspinner.h:
2266 * app/diaunitspinner.c:
2268 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2269 lib/widgets.[ch], as it's used in the properties code now.
2271 2004-08-31 Steffen Macke <sdteffen@web.de>
2273 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2275 2004-08-30 Lars Clausen <lars@raeder.dk>
2278 * app/diagram.c (diagram_remove_all_selected): Remove debugging
2283 * app/disp_callbacks.c:
2285 * app/create_object.c:
2286 * app/textedit.[ch]:
2287 * app/modify_tool.c:
2290 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
2291 current input object, multiple inputs per object, and tabbing
2294 2004-08-28 Steffen Macke <sdteffen@web.de>
2296 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
2297 allow separate installer component "Translations"
2299 2004-08-27 Akagic Amila <bono@linux.org.ba>
2301 * configure.in: Added 'bs' to ALL_LINGUAS.
2303 2004-08-26 Steffen Macke <sdteffen@web.de>
2305 * app/makefile.msc: using /subsystem:windows again
2306 * makefile.msc: updated ALL_LINGUAS
2308 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
2310 * configure.in: Add «nb» to ALL_LINGUAS.
2312 2004-08-21 Steffen Macke <sdteffen@web.de>
2314 * plug-ins/dxf/dxf-export.c: Patch from
2315 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
2317 2004-08-17 Lars Clausen <lars@raeder.dk>
2320 * dia.spec (Release):
2326 2004-08-13 Ankit Patel <ankit@redhat.com>
2328 * configure.in: Added "gu" in ALL_LINGUAS.
2330 2004-08-07 Lars Clausen <lars@raeder.dk>
2336 * dia.spec (Release):
2337 * NEWS: New release 0.94-pre6
2339 2004-08-07 Lars Clausen <lars@raeder.dk>
2341 * app/highlight.c (highlight_reset_objects): Unhighlight inside
2345 * plug-ins/shape/shape-export.c: String capitalization fix from
2346 Alan Horkan <horkana@tcd.ie>
2348 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
2349 Class object menu kinda work, rather than blow up. Doesn't do a
2350 proper undoable change yet.
2352 2004-08-06 Lars Clausen <lars@raeder.dk>
2354 * app/filedlg.c (file_save_as_callback): Don't remove related
2355 dialogs from the NULL diagram.
2357 2004-08-02 Lars Clausen <lars@raeder.dk>
2362 * dia.spec (Release):
2363 * NEWS: Pre5 with leak fix.
2365 * lib/font.c (dia_font_build_layout): Don't try to save an
2366 allocation of LayoutCacheItem if it breaks layout cache hash.
2367 Also make hash function correct, remove explicit height entry
2368 (it's in pfd), and make sure things are correctly unreffed.
2369 Finally fixes #148141.
2371 * lib/text.c (text_set_attributes, text_set_font): Safely unref
2372 when changing font, and actually set the new font in
2374 (text_get_attributes): Ref copied font.
2376 2004-08-01 Lars Clausen <lars@raeder.dk>
2380 * dia.spec (Release):
2383 * doc/en/dia.xml: Prerelease 4.
2385 * lib/font.c (dia_font_build_layout): Better comparision and
2386 freeing of font cache.
2388 2004-07-31 Lars Clausen <lars@raeder.dk>
2390 * lib/font.c (dia_font_build_layout): Faster update to avoid
2393 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
2394 Correctly initialize export filter variable.
2396 2004-07-25 Lars Clausen <lars@raeder.dk>
2398 * dia.spec (Release):
2403 * doc/pl/dia.xml: Pre3 coming out.
2405 * lib/diarenderer.c (draw_polygon):
2406 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
2407 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
2408 rather than O (letter), and assert num_points > 1 rather than the
2411 * app/recent_files.c:
2414 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
2415 Make filenames conform to filesystem encoding.
2417 * RDP/.cvsignore: Added standard ignore.
2419 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
2420 last entry patch-panel, too.
2423 * shapes/Circuit/*.png:
2424 * shapes/Civil/*.png:
2425 * shapes/Contact/*.png:
2426 * shapes/Electric/*.png:
2428 * shapes/Pneumatic/*.png:
2430 * shapes/flowchart/*.png:
2431 * shapes/jigsaw/*.png:
2432 * shapes/network/*.png:
2433 * shapes/sybase/*.png:
2435 * dia_gnome_icon_large.png:
2436 * doc/pl/graphics/*.png: Set -kb for PNGs.
2438 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
2440 2004-07-22 Lars Clausen <lars@raeder.dk>
2446 * dia.spec (Release):
2447 * configure.in: Update to version 0.94-pre2.
2449 * app/load_save.c (diagram_data_write_doc): Use new namespace
2452 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
2453 hidden objects properties.
2455 * objects/standard/line.c: Remove halffinished line gap box from
2458 * app/paginate_psprint.c:
2459 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
2460 Immidi): Close export and print dialog with diagram as well.
2463 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
2464 borelli): Remove deprecated stuff (#137693)
2466 * app/dia-props.c (create_diagram_properties_dialog): Patch from
2467 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
2470 2004-07-21 Ray Strode <rstrode@redhat.com>
2472 * dia/dia.desktop.in: Add MimeType line to desktop file
2475 2004-07-18 Hans Breuer <hans@breuer.org>
2477 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
2478 sheets/UML/*.png : icons in png format
2479 Partial fixup of stuff broken with the following comment:
2480 "7 days : xpm->png, namespace fix, first rotation bits."
2482 * app/load_save.c(read_objects) : don't add objects to the layer.
2483 This function is called recursively and only the topmost objects
2484 belong in the layers object list. Fixes bug #145417 and is the
2485 the real fix for bug #142480
2487 * app/app_procs.c : make the --size hack even uglier, but work again
2489 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
2490 but g_free() what is returned by g_build_filename()
2492 * objects/custom/custom_object.c(custom_destroy) : handle all enum
2493 values in switch to get rid of the warning
2495 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
2496 of setlocale()/strtod()
2497 * lib/dia_svg.c : dito
2498 * lib/dia_xml.c : almost
2500 * plug-ins/python/group_props.py : use the string representation of
2501 value to ensure "unique values". If the strings would not be different
2502 the user cann't see the difference either
2504 2004-07-17 Lars Clausen <lars@raeder.dk>
2506 * lib/persistence.h: Have "void" in prototypes (#142663)
2508 * lib/widgets.c (dia_font_selector_init): Better string handling
2511 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
2513 * objects/standard/image.c (image_load): Use path of diagram
2514 rather than running directory as base for image file place.
2516 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
2519 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
2520 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
2522 * Re-added new sample diagrams binarily.
2524 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
2526 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
2527 Disabled keyboard accels when dragging an object.
2529 2004-07-14 Lars Clausen <lars@raeder.dk>
2531 * app/grid.c (snap_to_grid): Use diagrams grid setting to
2532 determine hex grid snap.
2534 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
2536 * app/interface.h: Avoid multiply defined symbols (#147396)
2538 2004-07-10 Lars Clausen <lars@raeder.dk>
2540 * app/sheets_dialog_callbacks.c (write_user_sheet):
2541 * lib/sheet.c (load_register_sheet): Don't introduce double
2542 slashes in namespace.
2544 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
2545 old diagrams, or XSLT will barf all over.
2547 * shapes/RDP/place.shape:
2548 * shapes/RDP/transition.shape:
2549 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
2550 shapes to use those.
2552 2004-07-07 Lars Clausen <lars@raeder.dk>
2555 * doc/{en,pl}/dia.xml:
2558 * NEWS: First prerelease of version 0.94. Now with release
2559 versions in a branch and main devel in the trunk.
2561 2004-07-05 Hans Breuer <hans@breuer.org>
2563 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
2564 -std=c89. Mostly //-comments and M_PI -> G_PI
2565 [Istar, Jackson, KAOS were removed from build cause they
2566 simply have *too* much C++ comments ;]
2567 * object/UML/association.c : use g_strdup() not plain strdup()
2568 * app/paginate_psprint.c : avoid storage size of `pipe_action'
2569 isn't known with more portable signal code
2571 * app/app_procs.c : don't call gtk_init() if just --version
2572 is requested (bug #144321, Vladimir Kondratiev)
2574 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
2575 DiaFont* if not NULL
2576 * objects/UML/class.c : moved fill_in_fontdata() to
2577 umlclass_load() to avoid such trouble, though unsure if
2578 this really is an improvement...
2580 * shapes/network/makefile.am : patch-panel added here too
2582 2004-07-04 Hans Breuer <hans@breuer.org>
2584 * sheets/network.sheet.in shapes/network/patch-panel.xpm
2585 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
2586 fixes bug #136629, James McDonald
2588 2004-07-04 Hans Breuer <hans@breuer.org>
2590 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
2591 lib/object_defaults.c : revert changing of Dia's XML namespace
2592 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
2593 about its purpose and relation to real world urls.
2595 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
2596 added comment about when to do so
2597 [Should have been long time ago and probably multiple times
2598 to avoid crashing on older plug-ins]
2599 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
2600 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
2602 * lib/object.c objects/UML/class.c : there are still compilers not
2603 supporting C99 and other GCCISMs like allocating dynamic sized arrays
2605 * objects/UML/class.h : there is a differnce between a list pointer
2606 and a list pointer pointer. We and GLib want the former.
2608 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
2609 if Gtk is initialized. Using gdk_display_get_default () avoids the
2610 app/* dependency and is also closer to the requirements of the
2613 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
2614 some #ifdefed support for Cairo backends not public available yet.
2616 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
2617 windoze platform supports them. This should fix bug #109818, at
2618 least for the majority running NT or above ...
2619 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
2621 * objects/makefile.msc : build Istar, Jackson and Kaos
2623 * objects/UML/class.c(umlclass_load) : don't wrap by default to
2624 keep old diagrams as they were - instead of this nice new effect ;-)
2625 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
2627 * objects/UML/class.c : mark for translation _("Wrap ...
2629 * objects/UML/class.c : more correct types, also some default properties
2630 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
2632 * objects/UML/activity.c : removed a leftover from the
2633 use-localization-for-font-substitution-hack
2635 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
2636 'cvs admin -kb *.png' PNG files should already be *added* as binary,
2637 otherwise they are not readable on line-end-converting-platforms
2639 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
2640 filter_get_by_name()
2642 * plug-ins/python/pydia-property.c : some more g_warnings for
2643 not implemented conversions
2645 * plug-ins/python/group_props.py : ensure unique property values
2646 at the right place. Now something like :
2647 - load an old UML class diagram
2648 - change one of the classes to wrap operations
2649 - select all classes (/Select/Same Type)
2650 - /Dialogs/Group Properties : check wrap_operations, select '1'
2651 - Ok, works like a charm :-)
2653 2004-07-04 Lars Clausen <lars@raeder.dk>
2655 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
2658 2004-07-03 Lars Clausen <lars@raeder.dk>
2660 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
2661 <LAV@VL3143.spb.edu>: Fixes console output problems and some
2662 interactiveness problems.
2664 2004-07-02 Lars Clausen <lars@reader.dk>
2666 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
2667 app isn't interactive.
2669 2004-07-01 Lars Clausen <lars@raeder.dk>
2671 * plug-ins/cairo/diacairo.c: Add init of last field of filter
2672 struct to remove crash.
2674 * sheets/Makefile.am (sheet_in_files):
2675 * shapes/Makefile.am:
2676 * sheets/ChemEng.sheet.in:
2677 * shapes/ChemEng/Makefile.am:
2679 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
2680 Chemical engineering shapes.
2682 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
2683 multiple arguments when using devel script.
2685 * app/display.c (new_display):
2687 * lib/diagramdata.c (new_diagram_data):
2688 * lib/diagramdata.h:
2689 * app/preferences.h:
2690 * app/preferences.c:
2693 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
2694 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
2697 * doc/pl/authors.xml:
2698 * doc/en/authors.xml:
2699 * lib/object_defaults.c (dia_object_defaults_save):
2700 * readme.win32 (BTW):
2701 * lib/persistence.c (persistence_save):
2702 * app/load_save.c (diagram_data_write_doc):
2703 * app/commands.c (help_about_callback):
2704 * README: Fix links to home page.
2707 * app/load_save.c (diagram_data_load):
2708 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
2709 loading, and guard against them when fonting.
2711 * lib/diarenderer.c (draw_rounded_polyline): Patch from
2712 anthonym@overture.com: Make limited rounding a corner-specific
2713 rendering-only thing.
2715 2004-06-30 Lars Clausen <lars@raeder.dk>
2717 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
2718 adjustment: If you can't fix it, at least don't change it.
2720 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
2721 code instead of individual code in here.
2723 2004-06-29 Lars Clausen <lars@raeder.dk>
2725 * objects/UML/association.c: Patch from Kiran
2726 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
2731 * lib/diarenderer.c (draw_rounded_polyline):
2732 * objects/standard/polyline.c (polyline_draw):
2733 * objects/standard/zigzagline.c (zigzagline_draw):
2734 Patch from anthonym@overture.com: Add rounded polylines.
2736 2004-06-27 Lars Clausen <lars@raeder.dk>
2738 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
2740 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
2741 free family list before taking out the pointer we need. Also set
2742 the entry_nr correctly so we get the menu set up right.
2744 2004-06-23 Lars Clausen <lars@raeder.dk>
2746 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
2747 images at the right place.
2749 * objects/Istar/actor.c
2750 * objects/Istar/goal.c
2751 * objects/Istar/istar.c
2752 * objects/Istar/istar.h
2753 * objects/Istar/link.c
2754 * objects/Istar/other.c
2755 * objects/Jackson/domain.c
2756 * objects/Jackson/jackson.c
2757 * objects/Jackson/jackson.h
2758 * objects/Jackson/phenomenon.c
2759 * objects/Jackson/requirement.c
2760 * objects/KAOS/goal.c
2761 * objects/KAOS/kaos.c
2762 * objects/KAOS/kaos.h
2763 * objects/KAOS/metaandorrel.c
2764 * objects/KAOS/metabinrel.c
2765 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
2766 <cp@cetic.be>: Fix instability issues caused by not returning NULL
2767 in *_move_handle and *_move. Also improved the headers with
2768 correct (c) information.
2770 2004-06-22 Lars Clausen <lars@raeder.dk>
2772 * objects/KAOS/goal.c:
2773 * objects/KAOS/other.c:
2774 * objects/Istar/actor.c:
2775 * objects/Istar/goal.c:
2776 * objects/Istar/other.c:
2777 * objects/Jackson/domain.c:
2778 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
2779 <cp@cetic.be>: Fix resize issues.
2781 * app/filedlg.c (file_dialog_hide): Patch from Kiran
2782 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
2783 related dialog. #129520.
2785 * app/dia-props.c (diagram_properties_show): Patch from Kiran
2786 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
2787 a child of its diagram. #129520.
2789 * objects/UML/association.c (association_load): Patch from Kiran
2790 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
2791 text placement. #118313.
2793 2004-06-17 Lars Clausen <lars@raeder.dk>
2795 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
2797 * Makefile.am: Make THANKS only be generated by maintainers.
2799 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
2802 * configure.in: Added three missing Makefiles.
2806 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
2807 diagram-related (save) dialog when closing diagram. To be
2808 extended to other dialogs.
2810 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
2812 * samples/Istar.dia:
2813 * samples/Jackson.dia:
2815 * sheets/Istar.sheet.in:
2816 * sheets/Jackson.sheet.in:
2817 * sheets/KAOS.sheet.in:
2822 * objects/Jackson/*:
2825 * objects/Makefile.am (SUBDIRS):
2826 * sheets/Makefile.am (SUBDIRS):
2827 * samples/Makefile.am: Additions from Christophe Ponsard
2828 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
2831 2004-06-12 Lars Clausen <lars@raeder.dk>
2834 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
2836 * lib/font.h: Toning down comments a bit:)
2838 * lib/font.c (dia_font_build_layout): Playing around with DPI
2840 * objects/UML/association.c (association_load): Avoid crashes on
2843 * objects/UML/association.c: Patch from kimmidi@novell.com:
2844 Improve placement of labels when vertical. Part fix of #118313
2846 * lib/object.c (dia_object_is_selected): Grouped objects are not
2847 selected, only the group itself. Thus, don't crash when grouping
2850 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
2851 on how to represent empty strings. Fixes #143639.
2853 * lib/object.c (dia_object_is_selected): Added comment answer.
2855 2004-06-12 Hans Breuer <hans@breuer.org>
2857 * lib/diagramdata.c lib/object.c : deal with grouped objects
2858 not knowing their parent_layer, i.e. avoid crashing in
2859 dia_object_is_selected() via group_draw() [ Triggered by
2860 playing with the Visio generated svg from bug #143455 ]
2862 * plug-ins/python/diasvg_import.py : started to implement
2863 transformation="translate(...)" and <style/> handling. Also
2864 use some other completely bogus values for em/ex scaling
2866 2004-06-08 Lars Clausen <lars@raeder.dk>
2868 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
2870 2004-06-07 Lars Clausen <lars@raeder.dk>
2872 * app/layer_dialog.c (layer_dialog_set_diagram):
2873 * app/display.c: Layer widget crash more properly dealt with in
2876 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
2877 widget deselect was called during destroy, but called
2878 ddisplay_flush, leading to a new display timeout after renderer
2881 * lib/widgets.c (dia_toggle_button_destroy):
2882 * app/recent_files.c (recent_file_menuitem_create):
2883 * lib/persistence.c (persistence_save_list):
2884 * app/commands.c (edit_delete_callback):
2885 * lib/object_defaults.c (dia_object_defaults_save):
2886 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
2889 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2892 * lib/diagramdata.c (new_layer): Initialize connectibility.
2894 * app/display.c (ddisplay_obj_render):
2895 * app/diagram.c (diagram_find_closest_connectionpoint): Take
2896 connectibility into account.
2898 * app/layer_dialog.h (struct _DiaLayerWidget):
2899 * app/layer_dialog.c:
2900 Connectible toggle updates, now works fairly well.
2902 * app/select.c (select_transitive_callback): Make sure we're only
2903 selecting in the same layer.
2905 2004-06-04 Lars Clausen <lars@raeder.dk>
2907 * app/pixmaps/Makefile.am: Also install connectable images.
2909 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
2910 layer toggles from layer itself. Also update diagram correctly
2911 for visibility. Still need updates for connectivity behaviour.
2913 2004-06-03 Hans Breuer <hans@breuer.org>
2915 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
2917 * lib/diagdkrenderer.c(set_linejoin) : actually set
2918 join_style not cap_style
2919 (set_dashes): with the correct number of dashes
2921 2004-06-03 Lars Clausen <lars@raeder.dk>
2923 * app/modify_tool.c (click_select_object):
2924 * lib/text.c (text_set_cursor):
2925 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
2927 2004-05-31 Hans Breuer <hans@breuer.org>
2929 * lib/object_defaults.c : don't 'failed to load external
2930 entity "NULL"' when the defaults file does not exist,
2931 bug #108764 [again: somehow this got lost]
2933 * app/paginate_gdiprint.cpp : don guess the WMF export
2934 filter used for printing but find it by unique name.
2935 Also update for export_func renaming
2936 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
2937 provide some unique names
2939 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
2940 app/select.c : fix bug #140789 by always checking if there
2941 still is an active diagram before accessing it
2943 * app/defaults.c app/properties.c : user visible string should
2944 not read DiaObject but stay as "Object defaults/properties"
2946 * app/app_procs.c : reduce the hack to pass --size to the
2947 export via user_data to the only filter supporting it. Other
2948 filters would crash on it or do worse ;(
2950 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
2952 2004-05-31 Lars Clausen <lars@raeder.dk>
2955 * lib/widgets.c: Use GtkType rather than guint for
2956 dia_size_selector_get_type.
2958 2004-05-29 Lars Clausen <lars@raeder.dk>
2960 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
2961 that it matches the screen output for selfoverlapping polygons and
2964 2004-05-28 Hans Breuer <hans@breuer.org>
2966 * app/load_save.c : ignore empty groups on load and don't
2967 write empty groups while saving
2968 * lib/group.h (group_update_data): there is no first object
2969 in empty groups and they probably don't need an update at
2970 all. Maybe the shold just not exist ?
2972 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
2973 text positioning as well as drawing of images with alpha
2975 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
2976 HAVE_WINDOWS_H or G_OS_WIN32 is defined
2978 2004-05-28 Lars Clausen <lars@raeder.dk>
2980 * app/pixmaps/Makefile.am (imagedir):
2981 * app/pixmaps/visible.png:
2982 * app/pixmaps/visible-empty.png: New images for the visibility
2983 button in the layer dialog.
2985 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
2986 more border around the button. Still some left when hovering the
2987 mouse or selecting, and the grey background is annoying.
2989 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
2990 visibility connector.
2992 2004-05-26 Lars Clausen <lars@raeder.dk>
2994 * configure.in (DB2MAN): Better check for db2man docbook place.
2995 Need something even better.
2997 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
2999 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3000 extraeneous borders.
3003 * dia_gnome_icon.png:
3004 * samples/render-test.dia: Rendering test from Hans.
3006 2004-05-24 Hans Breuer <hans@breuer.org>
3008 * lib/filter.h : renamed DiaExportFilter::export to
3009 _DiaExportFilter::export_func (should not use c++
3010 keywords (g++ specifc ?) in headers. Same for import
3011 out of pure symmetry reasons
3012 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
3013 app/diagram.c app/filedlg.c : reflect functions renaming
3015 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
3016 under *NIX, too. [If you want something done, do it yourself ;-]
3017 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
3018 with wmf.cpp's GDI usage
3019 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
3020 [For the moment it does not much more than compiling, i.e.
3021 the produced WMF files are invalid, if not created on windoze.]
3023 * configure.in : check for C++ to compile plug-in/wmf
3025 * objects/GRAFCET/boolequation.c : looks like fixing
3026 another leak (untested)
3028 2004-05-23 Hans Breuer <hans@breuer.org>
3030 * acinclude.m4 : another attempt to fix
3031 bug #142032 (still not sure it's the right one,
3032 but works for me(tm), which the other does not ;)
3034 * plug-ins/cairo/Makefile.am
3035 plug-ins/Makefile.am
3036 configure.in : support building the new cairo
3037 plug-in, if given --with-cairo and the cairo
3038 packages are found, see http://cairographics.org
3039 and also http://hans.breuer.org/dia/dia-cairo.htm
3041 * plug-ins/cairo/diacairo.c : make it compile
3042 with DEBUG_CAIRO defined, too.
3044 2004-05-23 Hans Breuer <hans@breuer.org>
3046 * plug-ins/cairo/Makefile.am : initial attempt
3048 * plug-ins/cairo/diacairo.c : a new exporter based on
3049 Cairo http://cairographics.org rendering api. Currently
3050 it just can export PNG and PS but one day it might get
3051 PDF and more almost for free. [It is not yet included
3052 in the *NIX build system due to lack of auto* magic.]
3054 * plug-ins/pixbuf/pixbuf.c : always register the export
3055 filter part. If the user does not want it it can be
3056 disabled by File/Plugins or explicit selected the other
3057 one in the Export Formats List
3059 2004-05-23 Hans Breuer <hans@breuer.org>
3061 * lib/dia_dirs.c : #include "message.h"
3062 lib/widgets.c : #include "persistence.h"
3063 lib/widgets.c(dia_font_selector_init) : still not C99
3064 lib/persitence.h : removed unimplemented prototype
3065 lib/persitence.c(persistence_load_list) : still not C99
3066 app/create_object.c : #include "highlight.h"
3067 app/layer_dialog.c : #include "widgets.h"
3068 app/modify_tool.c : prototype functions before usage
3069 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
3070 [otherwise one will have a hard time to make C++ compile ;]
3071 lib/dia_dirs.c : #include "message.h"
3072 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
3075 * plug-ins/xfig/xfig-import.c : dont initialize an int with
3078 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
3079 as documented, i.e. _not_ copying. Plugs a memory leak in
3080 lib/dialibartrenderer.c
3082 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
3083 to radius to more of a clue what it is representing
3085 * */makefile.msc lib/libdia.def : updated
3087 ChangeLog : fixed some date copy&paste bug
3089 2004-05-21 Lars Clausen <lars@raeder.dk>
3091 * NEWS: Release tag.
3093 * config.h.win32: Now 0.93+cvs
3095 * RELEASE-PROCESS: Update with new info about release branches.
3097 * Many files: Moved devel branch back into main trunk. Should
3098 have been done in the opposite way, with release in a branch.
3100 2004-05-20 Hans Breuer <hans@breuer.org>
3102 * acinclude.m4 : disable setting of PYTHON_PREFIX
3103 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
3104 as workaround for bug #142032 (the real fix would
3105 involve some auto* knowledge which I don't have
3108 * plug-ins/python/Makefile.am : more python
3109 plug-ins to be installed (especially svg import,
3110 but also 'simple scale' should be useable
3113 * plug-ins/python/scascale.py : update display
3114 after modifying selected objects
3116 * plug-ins/python/diasvg_import.py : initialize
3119 2004-05-18 Lars Clausen <lars@raeder.dk>
3121 * app/diagram_tree.c (select_node): Use
3122 diagram_remove_all_selected to kill selected list.
3124 * lib/font.c: Set language when using a different context.
3126 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3127 and removed ctype include (#142661).
3129 * lib/paper.c (get_default_paper): Changed isalnum to
3130 g_ascii_isalnum and removed ctype include. (#142661)
3132 * objects/custom/shape_info.c:
3134 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3136 2004-05-17 Hans Breuer <hans@breuer.org>
3138 * lib/object_defaults.c : don't 'failed to load external
3139 entity "NULL"' when the defaults file does not exist,
3142 * lib/widgets.c : fixed possible menu leak
3143 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3144 avoid finalization of floating references, bug #142307
3146 2004-05-15 Lars Clausen <lars@raeder.dk>
3148 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3149 fonts better (#138655)
3151 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3153 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3154 dist, xml, dbk and man. Also the sub-xml files. (#142098)
3156 * Makefile.am (CLEANFILES):
3157 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3158 translation-reports, they are generated automagically. THANKS
3159 file not considered locally generated, so is not locally
3162 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3164 * lib/diaarrowchooser.c:
3165 * lib/prop_attr.c: Fixing naming for arrowselector.
3167 * objects/UML/object.c (objet_type): Oops, little too aggressive
3168 with the DiaObject thing here:)
3170 * objects/custom/shape_info.c (parse_svg_node): Use
3171 g_ascii_isdigit instead of isdigit.
3173 * app/diaunitspinner.c (dia_unit_spinner_update):
3174 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3175 instead of isspace avoids char subscript issues (#142467).
3177 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3178 return value conflict.
3180 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3181 value conflict. Also improved signature. (#142466)
3183 * app/load_save.c (diagram_data_load): Don't overwrite the list in
3184 the layer, but instead free the returned list (#142480)
3186 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3187 for the grid widget.
3189 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3191 * configure.in (DB2MAN): Currently just check for two known
3192 positions for the docbook xsl. Don't know a generic way to find
3193 this info. Ought to add an option for it, but then it's really
3194 only required for maintainers, I think. Maybe.
3196 * app/display.c (update_snap_grid_status): Remove nasty image
3197 toggling code not require for grid toggle button anymore. (#142475)
3199 * app/interface.c (create_display_shell): Use
3200 dia_toggle_button_new_with_images to create grid toggle button.
3201 Much nicer. (#142475)
3203 * app/menus.c (menus_initialize_updatable_items): Free the string
3204 along with the GString. (#142475)
3206 * lib/intl.c (free_alias_table): Free hash table entries in a
3207 proper way, avoiding duplicate frees. (#142475)
3209 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3210 not put in the hash (avoid reading freed memory). (#142476)
3212 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3214 (dia_font_selector_get_family_from_name): Stop leaking
3217 2004-05-14 Lars Clausen <lars@raeder.dk>
3219 * Transfer of fixes from release branch. Not the prettiest way to
3220 do it, this should be done during release, not afterwards.
3222 Tomasz Kłoczko <kloczek@pld.org.pl>:
3224 * acinclude.m4: minor fixes (added missing [] quotation).
3226 Lars Clausen <lars@raeder.dk>:
3228 * app/interface.c (toolbox_delete):
3229 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3230 cancels quit due to modified diagrams.
3232 Samúel Jón Gunnarsson <sammi@techattack.nu>:
3234 * is.po: Added "is" to ALL_LINGUAS.
3236 Lars Clausen <lars@raeder.dk>:
3238 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3240 Hans Breuer <hans@breuer.org>:
3242 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
3243 burden should be shared and not be win32 only ;) [this time
3244 build was broken by adding GtkType to widget.h]
3246 * objects/standard/box.c objects/standard/ellipse.c :
3247 for code clarification compare (obj->aspect != FREE_ASPECT)
3248 and not (obj->aspect); no binary effect.
3250 * app/paginate_psprint.c : don't leak printcmd
3252 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3253 standard C requires variables to be declared at the beginning of
3254 a block, also there is no fabsf() with msvc
3256 * app/win32print.[ch] : make win32_printer_close() return an
3257 error code, it's used as pclose replacement
3259 Lars Clausen <lars@raeder.dk>:
3261 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3263 2004-05-06 Lars Clausen <lars@raeder.dk>
3265 * lib/widgets.[ch]: Utility function to make a widget with two
3266 images (selected and non-selected).
3268 * lib/diagramdata.h: Renamed selectable to connectable.
3269 Selectable will come later.
3272 * app/pixmaps/Makefile.am (imagedir):
3273 * app/pixmaps/connectable.png:
3274 * app/pixmaps/connectable-empty.png: New images for the
3275 selectability widget. Proper installation, too.
3277 * app/layer_dialog.[ch]: Adding new button showing connectability
3278 status. Much cleaner way of doing the button, but some problems
3279 with the item getting selected
3281 * lib/widgets.h: Reminder of how to install images for use by
3282 dia_get_image_from_file.
3284 2004-05-05 Lars Clausen <lars@raeder.dk>
3286 * objects/network/Makefile.am:
3287 * objects/network/pixmaps/radiocell.xpm:
3288 * objects/network/pixmaps/basestation.xpm:
3289 * objects/network/network.c:
3290 * objects/network/basestation.c:
3291 * objects/network/radiocell.c:
3292 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
3295 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
3296 Backslash arrow head.
3298 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
3299 Notify takes care. Should maybe use that more.
3301 * lib/diagramdata.[ch]:
3302 * app/filedlg.c (file_export_ok_callback):
3303 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
3305 * app/dia-props.c (diagram_properties_respond):
3306 * app/diagram.c (diagram_set_modified):
3308 * app/disp_callbacks.c:
3310 * app/load_save.c (diagram_save):
3311 Better handling of undo and modified status -- only diagram
3312 properties and page setup explicitly set modified status, all
3313 other important changes should be done through the undo stack
3316 2004-05-04 Lars Clausen <lars@raeder.dk>
3318 * app/app_procs.c (app_init): Consistently open a new diagram if
3319 none specified, with standard name Diagram1.dia.
3321 * app/layer_dialog.c:
3322 * app/diagram.c (diagram_finalize):
3323 * app/commands.c (dialogs_layers_callback):
3324 * app/filedlg.c (file_export_ok_callback):
3325 * app/app_procs.c (app_exit):
3326 * app/display.c (display_set_active):
3327 * app/interface.c (dia_dnd_file_drag_data_received):
3328 * app/recent_files.c:
3329 Undone attempt at unifying the multi-diagram windows (like
3330 layers). It broke the layers and didn't make much sense for the
3331 diagram properties dialog anyway.
3335 * lib/diagramdata.c:
3337 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
3338 many subclasses have to be fixed. Fixed remaining
3339 Object/ObjectType renaming issues.
3341 2004-05-02 Lars Clausen <lars@raeder.dk>
3343 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
3344 having to make all the children objects conform to
3345 GObject style at once? Warning! Does not compile right now.
3347 * many, many files: Rename Object to DiaObject in preparation for
3348 making it a GObject.
3350 * app/diagram.[ch]: Turn diagram into a real GObject.
3353 * app/filedlg.c: Correctly ref and unref diagram.
3355 * lib/diagramdata.h: Starting to turn it into a GObject as well.
3357 2004-05-02 Lars Clausen <lars@raeder.dk>
3359 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
3362 * app/dia-props.c: Undo the attempt at making it really
3363 multi-diagram, now going for a one-diagram dialog.
3365 2004-04-30 Lars Clausen <lars@raeder.dk>
3367 * app/undo.c: Undoing broken undo stuff for diagram properties and
3368 page setup. Shouldn't be mixed into undo at all.
3370 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
3371 function to avoid in particular the grid crawling.
3373 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
3374 to allow aligning dashes, so they don't crawl.
3376 2004-04-28 Lars Clausen <lars@raeder.dk>
3378 * app/Makefile.am: New files diacanvas.[ch]
3380 * app/interface.c (create_display_shell): Use new diacanvas that
3381 allows placing widgets on canvas, for text edit.
3384 Early work towards rotation. No implementation yet.
3386 * app/layer_dialog.c (undo_layer):
3387 * objects/network/bus.c (bus_create_change):
3388 * objects/standard/box.c (aspect_create_change):
3389 * objects/standard/ellipse.c (aspect_create_change):
3390 Use g_new0 for change struct.
3392 * app/undo.c (diagram_change_apply_or_revert):
3393 Support for undo of diagram properties and page setup.
3395 * app/disp_callbacks.c (ddisplay_canvas_events):
3397 * lib/diagramdata.h:
3398 * app/modify_tool.c (click_select_object):
3399 * lib/text.c (text_register_editable):
3400 Starting work on new text editing model. Guarded by #ifdef so
3403 2004-04-07 Lars Clausen <lars@raeder.dk>
3405 * app/recent_files.c (open_recent_file_callback):
3406 * app/interface.c (origin_button_press):
3407 * app/filedlg.c (file_open_ok_callback):
3410 * app/commands.c (dialogs_layers_callback): Using new
3411 diagram_set_current() function to ensure auxilliary windows are
3414 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
3415 menu now borken. *sniff*
3417 * app/dia-props.c: Diagram properties window attempted
3418 persistentified. Trying to make more like layer dialog (since it
3419 already changes when the diagram changes), but some things still
3422 2004-04-06 Lars Clausen <lars@raeder.dk>
3424 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
3425 * lib/attributes.c (attributes_set_default_line_style):
3426 * app/interface.c (create_lineprops_area):
3427 Make line style persistent as well. Added function to directly
3428 set the style and dashlength of a dialinechooser.
3430 2004-04-03 Lars Clausen <lars@raeder.dk>
3432 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
3433 Copy the ellipse extra handle correctly.
3435 * objects/standard/box.c (box_move_handle): Move definitions
3436 according to bug #138925.
3438 2004-04-02 Lars Clausen <lars@raeder.dk>
3440 * app/recent_files.c: Use absolute name for recent files list.
3442 * lib/attributes.c: Set start and end arrow types, correctly.
3444 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
3447 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
3449 * app/interface.c (create_lineprops_area): Set persistently stored
3452 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
3455 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
3456 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
3458 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
3459 with what xfig does. Text now converted from latin-1 to utf-8
3460 (latin-1, since that's what xfig seems to use. Would like to see
3461 examples of non-latin-1 figs). String case problems fixed.
3463 2004-04-01 Lars Clausen <lars@raeder.dk>
3466 * app/interface.c: Default arrows now stored persistently, too.
3468 * lib/arrows.[ch]: New function to get arrow type from name.
3470 * app/color_area.c (color_area_create):
3472 * app/linewidth_area.c: Also persistent colors and line width.
3473 That was easy. Arrows and line style will take a bit more work,
3476 2004-04-01 Lars Clausen <lars@raeder.dk>
3478 * app/preferences.c: All preferences are now
3479 handled by persistence, old prefs load and store code is gone.
3481 * lib/persistence.[ch]: Added string and color persistents. This is
3482 a different string from the one used in the printer dialog, that
3483 one has a GtkEntry attached -- may want to make that one an
3484 encapsulation of this one or something.
3486 2004-03-31 Lars Clausen <lars@raeder.dk>
3488 * app/app_procs.c: Do persistence before prefs. Prefs are to be
3491 * lib/persistence.[ch]:
3492 * app/preferences.c: Adding persistence for integers, reals,
3493 booleans. Fixed stupid list bug. Test persistence for prefs.
3495 2004-03-30 Lars Clausen <lars@raeder.dk>
3497 * app/recent_files.c:
3498 Debugging of deallocation.
3501 Font menu now uses persistence. Ordering needs fixing, or it must
3505 * lib/Makefile.am (libdia_la_SOURCES):
3506 * app/Makefile.am (dia_core_files):
3507 * app/persistence.[ch]:
3508 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
3509 number of fixes, including multiple entries now being read
3510 properly. Still some oddity about the persistent list having the
3511 role as first entry (which makes the font menu crash after a few
3514 2004-03-26 Lars Clausen <lars@raeder.dk>
3516 * app/persistence.c:
3517 * app/recent_files.[ch]: Redoing the recent-files list using
3518 persistence, reducing code by about 50%. Still a problem when
3519 selecting an item from the menu -- possibly it doesn't like the
3520 menu being destroyed while in the callback?
3522 2004-03-25 Lars Clausen <lars@raeder.dk>
3524 * app/persistence.c (persistence_load_string): Missing semicolon?!?
3526 2004-03-24 Lars Clausen <lars@raeder.dk>
3530 * app/persistence.[ch]:
3531 * app/paginate_psprint.c (diagram_print_ps): New type of data can
3532 be stored persistently: Strings. Only the printer command/file
3533 go in here now, but things like creator, organization, diagram
3534 comments etc could also be handled this way.
3536 * objects/standard/beziergon.c (beziergon_draw): Avoid control
3537 lines when the object is not selected.
3539 2004-03-23 Lars Clausen <lars@raeder.dk>
3541 * lib/connectionpoint.h:
3542 * app/load_save.c: Allow connection points to have names, and
3543 handle that in load/store.
3545 * lib/dialibartrenderer.c: Better highlighting for text.
3547 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
3548 * lib/diagdkrenderer.c: Better highlighting for all, using same
3549 principles as libart highlighter.
3551 2004-03-22 Lars Clausen <lars@raeder.dk>
3553 * lib/dialibartrenderer.[ch]:
3554 * lib/diagdkrenderer.c:
3560 * app/modify_tool.c:
3561 * app/create_object.c:
3562 * app/highlight.[ch]:
3563 Added simple object highlighting. In GDK rendering, highlights
3564 the bbox, in libart highlights the outline of the object (except
3567 2004-03-22 Lars Clausen <lars@raeder.dk>
3569 * RELEASE-PROCESS: Added info on how to do a branch for
3570 development during release process.
3572 2004-03-20 Lars Clausen <lars@raeder.dk>
3574 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3576 2004-03-19 Lars Clausen <lars@raeder.dk>
3578 * xmldocs.make: Fixed apparent uninstall error.
3581 * doc/en/dia-manual.xml:
3582 * doc/pl/dia-manual.xml:
3585 * NEWS: Version 0.93-pre1.
3587 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
3588 borelli): Remove some deprecated stuff.
3590 2004-03-18 Lars Clausen <lars@raeder.dk>
3592 * Makefile.am: Try better uninstall thing for scrollkeeper.
3594 * objects/ER/entity.c:
3595 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
3596 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
3597 1, 1 exactly, as well as associative ER entities.
3599 2004-03-17 Lars Clausen <lars@raeder.dk>
3601 * Makefile.am: Make distcheck not complain about scrollkeeper
3602 problems (as per advice from James Henstridge).
3604 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
3605 standard installation.
3607 * objects/standard/ellipse.c: Better strings for object menu.
3609 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
3610 of dialogs (shame on you, glade!)
3612 * objects/custom/custom_object.c (custom_setup_properties):
3613 Removed debugging output
3615 * app/paginate_psprint.c (diagram_print_ps): Slightly more
3616 readable printer error messages.
3620 * doc/en/Makefile.am:
3621 * doc/pl/Makefile.am:
3622 New more standard way to install the XML-based manuals.
3624 2004-03-15 Lars Clausen <lars@raeder.dk>
3626 * objects/standard/box.c (box_move_handle): More intuitive fixed
3629 * objects/standard/ellipse.c:
3630 * objects/standard/box.c:
3633 * app/layer_dialog.[ch]:
3634 Patch from Steve Langasek <vorlon@debian.org>:
3635 Fixes startup crash on Alpha (bug #137169)
3637 * objects/standard/box.c: Aspect fixing like ellipses.
3639 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
3641 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
3642 pixmaps, now can uninstall properly.
3644 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
3645 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
3647 Added object menu access.
3649 2004-03-07 Hans Breuer <hans@breuer.org>
3651 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
3652 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
3653 would not use deprecated apis, but it's much simpler this way)
3655 * lib/makefile.msc : build the above new widgets and render_pixmap
3656 * lib/libdia.def app/dia.def app/makefile.msc : updated
3658 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
3659 what I saw, i.e. how big is an empty array supposed to be ? ;-).
3660 Previously it gave :
3661 disp_callbacks.c(188) : error C2059: syntax error : '}'
3662 disp_callbacks.c(191) : warning C4034: sizeof returns 0
3664 * app/interface.c : #include "dialinechooser.h"
3666 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
3667 [one more reason not to use it here : it's quite slow compared to
3668 the native win32 font renderer ;]
3670 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
3671 a GtkDialog*, removed unneeded cast
3673 * app/render_eps.c : avoid assignment warning for void* user_data
3676 2004-03-06 Steffen Macke sdteffen@web.de>
3678 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
3681 2004-03-06 Lars Clausen <lars@raeder.dk>
3683 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
3686 * lib/font.c: Simple cleanup system for layout cache removes any
3687 layout that hasn't been used for 10 minutes, but only during idle
3690 2004-03-05 Lars Clausen <lars@raeder.dk>
3692 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
3693 (lluis padro) (#130887): Extended Electric shapes with vertical
3696 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
3697 start with "Create a" or "A", always capitalize first word).
3699 * objects/standard/ellipse.c: Patch from Grégoire Dooms
3700 <dooms@info.ucl.ac.be>: Add extra connection point in center of
3701 ellipse. Additionally added a handle in the center, and resize is
3702 now around the center.
3705 * sheets/Makefile.am (SUBDIRS):
3706 * sheets/IsometricMap.sheet.in:
3707 * shapes/Map/Isometric/*
3708 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
3710 2004-03-04 Lars Clausen <lars@raeder.dk>
3713 * lib/pixmaps/Makefile.am:
3715 Better installation handling of pixmaps.
3717 * lib/diagdkrenderer.c:
3718 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
3719 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
3722 2004-03-03 Lars Clausen <lars@raeder.dk>
3724 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
3725 * lib/diagdkrenderer.c:
3726 * lib/diasvgrenderer.c:
3727 * lib/dialibartrenderer.c:
3728 * lib/diainteractiverenderer.c:
3729 * lib/prop_text.c (multistringprop_handle_key):
3731 * lib/dia_image.c (dia_image_rgba_data):
3733 * lib/diagramdata.c (layer_set_object_list):
3736 Getting rid of compile warnings.
3738 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
3739 images. Also remove unused decls.
3741 2004-03-02 Lars Clausen <lars@raeder.dk>
3744 * lib/widgets.c (dia_size_selector_init): Add images to the size
3745 selector chain widget. Also new function to load installed images
3746 from files (better than from included XPM, IMHO).
3748 2004-03-02 Lars Clausen <lars@raeder.dk>
3751 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
3755 * lib/widgets.c (dia_size_selector_init): Work
3756 on getting proper icon onto the size selector. Need simple image
3757 load mechanism in utils.
3761 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
3762 strings, handle utf8 strlen properly. Bug #135930.
3764 2004-03-01 Lars Clausen <lars@raeder.dk>
3766 * shapes/Cybernetics/*:
3767 * sheets/Cybernetics.sheet.in:
3768 * sheets/Makefile.am:
3769 * shapes/Makefile.am:
3770 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
3771 Roggendorf): Cybernetic shapes (#95553).
3773 2004-03-01 Lars Clausen <lars@raeder.dk>
3775 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
3777 * lib/diatypes.h: New type DiaSizeSelector.
3779 * lib/widgets.[ch]: New size selector widgets that selects two
3780 values (width and height, nominally) optionally linked to keep
3783 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
3785 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
3786 in front of file. Bug #128600.
3790 * app/lineprops_area.[ch]:
3792 * lib/dialinechooser.[ch]:
3793 * lib/widgets.c (dia_line_style_selector_init): use line preview
3794 instead of text labels. This involve moving away line_chooser to lib
3797 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
3800 * app/Makefile.am (dia_core_files):
3801 * app/interface.c (create_lineprops_area):
3802 * app/render_pixmap.[ch]:
3804 * lib/diaarrowchooser.[ch]:
3807 * lib/propdialogs.c:
3808 * lib/render_pixmap.[ch]:
3809 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
3810 of text labels. This involve moving away arrow_chooser to lib from
3813 2004-02-29 Lars Clausen <lars@raeder.dk>
3815 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
3816 being updated half-way through destruction. To be removed when
3817 the lists are replaced by something better.
3819 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
3820 Accelerators for class dialog. Bug #130995.
3821 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
3824 * app/preferences.c:
3826 * objects/GRAFCET/step.c:
3827 * objects/Misc/analog_clock.c:
3828 * objects/chronogram/chronoline.c:
3829 * objects/chronogram/chronoref.c:
3830 Change to american spelling (color, not colour) to ease
3831 translators job. Note that a number of translations may need an
3832 update now. Bug #120466.
3834 2004-02-29 Lars Clausen <lars@raeder.dk>
3836 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
3837 Better arrow handling for missing arrows.
3839 * plug-ins/metapost/render_metapost.[ch]: Patch from
3840 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
3841 size. See bug #135363.
3843 * app/app_procs.c (app_init): If non-interactive, or if
3844 --log-to-stderr used, send all messages to stderr. This should
3845 mean that old diaconv == dia --export-to-format=FOO BAR
3847 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
3849 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
3851 2004-02-28 Lars Clausen <lars@raeder.dk>
3853 * lib/text.c (text_key_event): Patch from Kouhei Sutou
3854 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
3856 2004-02-27 Lars Clausen <lars@raeder.dk>
3858 * KNOWN_BUGS: Added info on most commonly reported bugs, with
3861 * app/disp_callbacks.c (popup_object_menu): Unified properties
3862 entry, fixes bug #105080.
3864 * app/diagram.c (diagram_update_menu_sensitivity):
3865 * app/menus.h (struct _UpdatableMenuItems):
3866 * app/menus.c (menus_initialize_updatable_items): Menu items
3867 changed around, align menus flattened, properties entry ghosted,
3868 dialogs menu removed, more shortcuts added. Closing bugs #94018,
3870 Also taking out Gnome menus for now. They don't allow shortcuts,
3871 so what are they good for?
3873 2004-02-27 Lars Clausen <lars@raeder.dk>
3875 * app/menus.c (display_menu_items):
3876 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
3879 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
3881 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
3883 2004-02-23 Lars Clausen <lars@raeder.dk>
3885 * app/app_procs.c (app_init): Comments for translators.
3887 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
3889 * app/preferences.c (prefs_create_dialog): Change packing policy
3890 for widget to expand.
3892 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
3893 running with a debugger.
3895 2004-02-19 Lars Clausen <lars@raeder.dk>
3897 * app/undo.[ch]: Adding last-saved information to undo to allow a
3898 diagram with all changes since last save undo to be marked as
3899 nonmodified. Still needs integration with actual undo
3903 * app/diagram_tree.c (diagram_tree_update):
3905 * app/display.c (update_modified_status):
3906 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
3907 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
3910 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
3911 vs. EPSI, comment out EPSI until preview is in there.
3914 * lib/diarenderer.c: Removing debugging printfs.
3916 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
3919 * objects/standard/arc.c (arc_update_handles): Check to avoid
3920 crash when start and end points are the same.
3922 2004-02-19 Lars Clausen <lars@raeder.dk>
3924 * objects/standard/bezier.c:
3925 * objects/standard/line.c (line_load):
3926 * objects/standard/polyline.c (polyline_load):
3927 * objects/standard/zigzagline.c (zigzagline_load):
3928 * objects/standard/arc.c (arc_load):
3929 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
3930 instead of hardcoding.
3932 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
3934 * app/disp_callbacks.c (popup_object_menu): append a menu item to
3937 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
3939 * app/app_procs.c: declare rc properly with the proper #ifdef
3941 2004-02-17 Lars Clausen <lars@raeder.dk>
3943 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
3944 objects (which seemingly FIG itself breaks, or else there is no
3947 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
3949 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
3950 width renderable in xfig. Helps on bug #133637, but does not
3951 quite fix it -- something about depth is wrong.
3953 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
3954 Extern definitions for Mac compilation.
3956 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
3957 (jdassen@debian.org): Include fix.
3959 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
3960 sure the initial diagram size is correct.
3962 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
3964 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
3965 CPPFLAGS, as per automake warning.
3966 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
3967 LDFLAGS, as per automake warning.
3968 (run_dia.sh): More robust creation, and more easily moved.
3970 * app/undo.c (group_objects_revert): Don't double-free the objects
3971 list. (#129221) Call object_add_updates on grouped objects.
3972 (ungroup_objects_revert): Call object_add_updates on grouped objects.
3974 * lib/diagramdata.c: Internal
3977 * lib/polyshape.c (polyshape_update_data): Correctly calculate
3978 directions for polyshape corners (thanks, Valgrind!)
3981 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
3983 * lib/arrows.h: Default arrow size defined. After all are using
3984 this, may lower to 0.4 or so.
3986 * app/lineprops_area.[ch]: New function to set the arrow type for an
3989 * app/interface.c (create_lineprops_area): Set default line to
3990 have an arrow (fairly likely to be what's wanted, plus it shows
3991 the user where arrows are set).
3993 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
3995 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
3997 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
3998 Dotted lines should use dot_length, not dash_length.
4000 2004-02-06 Hans Breuer <hans@breuer.org>
4002 * app/interface.c : don't use gtk_drawing_area_size() to avoid
4003 the defaut size being also the minimum size. Instead use
4004 gtk_window_set_default_size() on the display shell. Fixes #130982.
4006 [fixing #131210, but umlauts in the 'main' filename still not really
4007 supported on systems where filesystem encoding != utf8
4008 (Problems with recent file menu and window title)]
4009 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
4010 to deal with possible differnces in filename encodings, see
4011 g_filename_<to|from>_utf8()
4012 * objects/standard/image.c : use them.
4014 * lib/widgets.c : handle possible encoding difference here, too.
4015 Also get rid of most warnings by using const and GTK casts where
4016 appropriate; one wrong cast (probably causing a crash) was found/fixed
4017 by this - the remaining give a hint on finally leaking FontSelectorEntry.
4019 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
4020 dia_file_selector_<get|set>_file to behave like the respective Gtk
4021 functions do : encoding- and const-wise ;-)
4023 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
4025 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
4027 2004-01-19 Hans Breuer <hans@breuer.org>
4029 * app/app_procs.c app/diaconv :
4030 only call bind_textdomain_codeset when available, what's good
4031 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
4032 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
4034 2004-01-19 Steffen Macke <sdteffen@web.de>
4036 * makefile.msc: updated for new GAIM-like installer build; sync'ed
4037 ALL_LINGUAS with configure.in
4039 2004-01-18 Hans Breuer <hans@breuer.org>
4041 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
4042 by not passing NULL to g_print()
4044 * app/interface.c (create_toolbox) : actually use
4045 persitence_register_window() to restore toolbox window size
4047 * app/makefile.msc lib/makefile.msc : allow to deselect
4048 building with Freetype by command line to nmake like :
4049 nmake -f makefile.msc "NOFT2=1"
4051 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
4052 far as possible with Dia's limited line style
4053 * plug-ins/python/pydia-property.c : allow to get and set
4054 Linestyle, style and dash(length)
4056 * lib/object.h : removed typedef for ObjectId not use anywhere
4058 2004-01-17 Hans Breuer <hans@breuer.org>
4060 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
4061 doc/shape.dtd doc/custom-shapes :
4062 support for images in custom shapes, also removed some long-time
4065 * doc/en/*.xml : fixed crippled line ends which get created
4066 when windoze line ends are checkin from the unix side
4068 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
4070 * configure.in: Added "sq" to ALL_LINGUAS.
4072 2004-01-11 Hans Breuer <hans@breuer.org>
4074 [more less leaks ;-]
4076 * objects/SADT/annotation.c : use text_destroy() not g_free()
4078 * objects/chronogram/chronoline.c : neither leak chronoline::events
4079 nor chronoline::name
4081 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
4083 2004-01-11 Hans Breuer <hans@breuer.org>
4085 * lib/properties.h :
4086 * objects/custom/custom_object.c : more properties optional
4087 to be backward compatible for older diagrams not having them
4088 set. (Try to load samples/all_objects.dia)
4090 [less memory leaks thanks valgrind ;-]
4092 * app/recent_files.c (recent_file_history_write) :
4093 g_free(history_filename);
4094 (recent_file_menu_item) : use g_path_get_basename()
4095 which already strdups, free result of g_strescape()
4097 * app/filedlg.c (create_export_menu) : return of
4098 filter_get_export_filter_label() must be g_free()'d
4099 (create_open_menu) : same for import
4101 * app/export_png.c (export_png_ok) : destroy info ptr
4102 with png_destroy_write_struct()
4104 * app/app_procs.c (app_init) : g_free(export_format_string);
4106 * lib/font.c (dia_font_finalize) : finalize parent_class, too
4107 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
4108 refing it a second time, g_type_create_from_instance() is enough
4110 * lib/object_defaults.c (_obj_store) : don't mess with names
4111 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
4113 2004-01-11 Steffen Macke <sdteffen@web.de>
4115 * app/diapsftrenderer.c: including ftoutln.h
4116 * app/makefile.msc: updated for freetype build
4117 * lib/libdia.def: added dia_font_get_context()
4118 * lib/dialibartrenderer.c (draw_string): added cast
4120 2004-01-10 Hans Breuer <hans@breuer.org>
4122 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4123 transformed coordinates, fixes bug 130804
4125 2004-01-10 Hans Breuer <hans@breuer.org>
4127 * app/filedlg.c app/app_procs.c : don't try to destroy
4128 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4129 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4130 returns. Fixes 'has no handler' bugs like #121019
4132 2004-01-10 Hans Breuer <hans@breuer.org>
4134 * objects/UML/class.c objects/UML/class_dialog.c :
4135 handle umlclass->name being empty to avoid, i.e. fix #127968
4137 [plugging memleaks, thanks valgrind :-]
4139 * lib/dia_xml.c (data_string) : don't leak return value
4140 of xmlNodeListGetString()
4142 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4143 before returning, maybe alloca() would be the better
4144 choice but anyway ;)
4146 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4148 * lib/font.c (dia_font_build_layout) : don't leak result
4151 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4152 (this is the one which got me started using valgrind, see #130816)
4154 2004-01-07 Sanlig Badral <badral@openmn.org>
4156 * configure.in: Added "mn" to ALL_LINGUAS.
4158 2004-01-04 Hans Breuer <hans@breuer.org>
4160 * lib/diagdkrenderer.c : replace rendering of really small (height
4161 less than 2 pixels) with a simple dashed line, you wont notice the
4162 differnce beside it being much faster. This allows ...
4163 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4164 * app/navigation.c : ... and lets you see an read rendered text even
4165 in the nice navigation popup.
4167 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
4168 (draw_string) : don't leak temporary image
4170 2004-01-04 Hans Breuer <hans@breuer.org>
4172 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4173 * app/interface.c : use dia-app-icons.h to give Dia window icons
4175 * lib/dia_image.c lib/color.c : _never_ call functions implemented
4176 in app/ from lib/. It is not portable and broken from design
4177 * app/app_procs.c : call color_init() and dia_image_init() conditional,
4178 i.e. only if running interactive.
4180 * lib/font.h : #include <time.h>
4182 * lib/libdia.def : updated externals
4184 * objects/UML/actor.c
4185 objects/UML/association.c (todo)
4186 objects/UML/branch.c
4187 objects/UML/class.[hc] objects/UML/class_dialog.c
4188 objects/UML/classicon.c
4189 objects/UML/component.c
4190 objects/UML/constraint.c
4191 objects/UML/dependency.c
4192 objects/UML/generalization.c
4193 objects/UML/implements.c
4194 objects/UML/large_package.c
4195 objects/UML/lifeline.c
4196 objects/UML/message.c
4198 objects/UML/object.c
4199 objects/UML/realizes.c
4200 objects/UML/small_package.c
4202 objects/UML/usecase.c
4204 : ported coloring of most UML objects (bug #97517, orginal
4205 work Mathias Hasselmann)
4207 * lib/properties.h : add _OPTIONAL variants for
4208 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4209 i.e. default colored - UML diagrams without complaining
4210 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4211 not set properties with the help of PXP_NOTSET. Otherwise
4212 optional attributes would lead to wrong initialization.
4214 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4215 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4216 Same for most other selectors which probably should be rewritten
4217 to the combo box with tree model from Gtk+ 2.4
4219 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
4221 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4222 being the Right Thing(tm) to use on Solaris.
4224 * objects/standard/bezier.c (bezierline_draw): Don't draw
4225 guidelines if not selected.
4227 * lib/object.[ch] (dia_object_is_selected): Function to check whether
4228 a given object is selected. O(n), where n is # selected objects.
4231 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
4233 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4234 Fonts dialog is closed without pressing Ok (bug #128646).
4236 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
4238 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4241 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
4243 * INSTALL: Updated list of requirements (bug #129653)
4245 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4246 Pionchon <luc@handhelds.org>.
4248 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4250 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4251 empty or NULL strings (bug #130097).
4253 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
4255 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4256 Added checks against color_black.
4258 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4260 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4261 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
4264 * objects/UML/component_feature.c: Patch from W. Borgert
4265 <debacle@debian.org>: Add handle to component feature text.
4267 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4269 * lib/font.c: Caching PangoLayout for better rendering speed.
4271 2003-12-30 Lars Clausen <lars@raeder.dk>
4273 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4274 get absolute file name from relative.
4275 * app/recent_files.c (recent_file_history_add): Use absolute
4276 filenames for recent files menu so that files can be found when
4277 Dia is invoked from other places.
4279 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4280 Actually load different diagrams if such are requested on command
4283 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4284 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4286 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
4287 remove text rendering. May be turned into greeking at some later
4291 * app/Makefile.am (dia_core_files):
4292 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
4293 Adds navigation window a la Gimp, though without text being
4296 2003-12-27 Luc Pionchon <luc@handhelds.org>
4298 * app/navigation.h: (new file)
4299 * app/navigation.c: (new file) creates a navigation window with a
4300 thumbnail view of the whole diagram.
4301 * app/Makefile.am (dia_core_files): added new files.
4303 * app/interface.c (create_display_shell): added a button between
4304 the scrollbars to popup a navigation window.
4306 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
4308 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
4309 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
4310 not want text rendering.
4312 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
4314 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
4316 * objects/custom/shape_info.[ch]: Cleanup.
4318 * objects/custom/custom_object.[ch]: Changed to use new props
4323 * lib/prop_inttypes.c:
4324 * lib/prop_geomtypes.c: Added *prop_get_data_size.
4326 * lib/libdia.def: Added object_load_props.
4328 * configure.in: Better FT2 version test, from bug #129225.
4330 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
4332 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
4333 Lehmann <holger.lehmann@catworkx.de>.
4335 * plug-ins/xslt/Makefile.am:
4336 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
4337 and OWL XSLT sheets.
4339 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
4341 * lib/diagdkrenderer.c: Add implementation so text is still
4342 rendered. May be improved later.
4348 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
4349 Allow running without a $DISPLAY!
4351 * lib/color.c: Remove warnings for non-interactive run.
4356 * app/app_procs.[ch]:
4357 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
4358 to specify size for PNG output.
4360 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
4361 render a little smaller, so as to fit the big ones.
4363 * lib/arrows.[ch]: New arrow type from W. Borgert
4364 <debacle@debian.org>: Filled Dot and Triangle.
4366 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
4368 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
4371 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
4373 * acinclude.m4: Better Python configure code patch (can't find
4374 author, author please speak up!)
4376 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
4378 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
4381 2003-11-30 Hans Breuer <hans@breuer.org>
4383 * plug-ins/python/diasvg.py : initialize self.dash_length
4384 in constructor to avoid crashing if the renderer user
4385 does not set it before first usage.
4387 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
4389 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
4393 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
4394 development and stable versions.
4396 * lib/text.c (text_draw): Use new renderer function to draw the
4399 * lib/diarenderer.h:
4400 * lib/diarenderer.c: New renderer function "draw_text" with
4401 default implementation. This function should eventually be the
4402 main interface, as it will be able to handle width and caching of
4403 rendering internally. All users of draw_string should convert to
4404 use Text objects and call either renderer->draw_text or text_draw,
4405 the latter if the text can be edited in-place (as should be the
4408 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
4410 * shapes/Circuit/hresistor.shape: First example of extra
4413 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
4415 * plug-ins/shape/shape-export.c:
4416 * lib/diasvgrenderer.h:
4417 * lib/diasvgrenderer.c:
4418 * plug-ins/svg/render_svg.c (new_svg_renderer):
4419 Actually store the font size, using DiaRenderer's font fields.
4421 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
4423 * objects/custom/shape_info.[ch]:
4424 * objects/custom/custom_object.[ch]:
4425 Support for extra attributes in custom objects.
4427 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
4429 * app/diagram.c (diagram_update_menu_sensitivity): More
4430 intelligent checks for menu sensitivity. Might be slow on huge
4431 diagrams, but I think other things outweigh it by a lot.
4433 * app/menus.[ch]: Make "Bring Forwards"
4434 and "Send Backwards" updateable.
4436 2003-11-22 Steffen Macke <sdteffen@web.de>
4438 * shapes/Assorted/arrow-turn-up.shape:
4439 * shapes/Assorted/arrow-turn-up.png:
4440 * sheets/Assorted/Makefile.am:
4441 * sheets/Assorted.sheet.in: Added new arrow
4443 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
4451 * app/diagram_tree.c
4452 * app/diagram_tree_menu.c
4453 * app/diagram_tree_window.c
4454 * app/diapagelayout.c
4455 * app/diaunitspinner.c
4459 * app/layer_dialog.c
4460 * app/lineprops_area.c
4461 * app/linewidth_area.c
4464 * app/paginate_psprint.c
4466 * app/plugin-manager.c
4469 * app/recent_files.c
4471 * app/sheets_dialog.c
4472 * app/sheets_dialog_callbacks.c
4473 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
4474 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
4476 * TODO: Updated, note on EPS transparency.
4478 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
4480 * objects/UML/class.c (umlclass_draw): Allow classes with no name
4483 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
4486 * doc/en/dia-manual.xml:
4489 * NEWS: Another Brown Bag release for parenting problems,
4490 including a crash bug fix.
4492 * app/connectionpoint_ops.c (diagram_update_connections_object):
4493 Also update connections when moving children. This can cause
4494 move_handle to be called twice, so it must be idempotent.
4496 * app/load_save.c: Loading and saving of children totally redone.
4497 Now doesn't violate assumption that all objects in a layer are
4498 placed in order in XML file.
4500 * objects/UML/branch.c (branch_create): Don't lie about being
4503 * objects/UML/node.c (node_create):
4504 * objects/UML/large_package.c (largepackage_create): Drag with
4505 lower right-hand handle at creation like all other objects.
4507 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
4509 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
4510 parenting drop to behave like a move inside, i.e. constrain place
4511 instead of trying to resize. 'Cause, resizing cannot be done for
4512 all objects (e.g. UML Class). Also simplified the algorithm a lot
4515 * app/load_save.c: Saving and loading of connection points for
4516 children added. Prototypes for static functions added.
4518 * lib/dynamic_obj.c: Removed debugging output.
4520 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
4522 * doc/en/dia-manual.xml:
4523 * doc/pl/dia-manual.sgml:
4527 * NEWS: Brown Bag release 0.92.1
4529 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
4531 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
4533 * app/app_procs.c (app_init): Rearrangement for translators.
4535 2003-10-24 Steffen Macke <sdteffen@web.de>
4537 * lib/text.c(text_key_event): enforcing the inserted text length now,
4540 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
4542 * MAINTAINERS: Change Debian maintainer to be the default address.
4544 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
4545 args to match prototype, thus removing crashbug #125159.
4547 * RELEASE-PROCESS: Note to self.
4549 2003-10-22 Steffen Macke <sdteffen@web.de>
4551 * doc/en/dia-manual.xml: removed superfluous external references
4553 2003-10-21 Steffen Macke <sdteffen@web.de>
4555 * lib/libdia.def: added filter_get_by_name
4556 * app/render_eps.c: moved extensions definition outside #ifdef
4558 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
4562 Removed old Dia manual, put new one in doc/en/. Translations
4563 should go in doc/??/.
4565 * doc/en/dia-manual.xml:
4566 * doc/pl/dia-manual.sgml:
4567 * dia.spec (Release):
4570 * NEWS: 0.92 is here!
4574 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
4575 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
4578 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
4580 * doc/en/usage-objects-selecting.xml: Commented out empty note.
4582 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
4584 * doc/pl/dia-manual.sgml:
4585 * doc/en/dia-manual.xml:
4589 * dia.spec (Release): Pre7.
4591 * app/diapsrenderer.c (draw_string): Convert string to print based
4592 on current locale. If conversion fails, fall back to UTF-8 (which
4593 is almost certain to be messy).
4595 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
4597 * doc/pl/dia-manual.sgml:
4598 * dia.spec (Release):
4602 * doc/en/dia-manual.xml: Pre6.
4604 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
4605 TeX chars in strings -- must be possible to use TeX text in there.
4606 Also avoids infinite loop bug (#124464) Will get option for this
4609 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
4611 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
4613 * doc/en/dia-manual.xml:
4614 * doc/pl/dia-manual.sgml:
4615 * dia.spec (Release):
4620 * app/authors.h: Removed duplicate of M. C. Nelson.
4622 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
4624 * app/export_png.c: Unique name for libart PNG export: png-libart.
4626 * app/render_eps.c: Unique names for the two eps export methods:
4627 eps-builtin, eps-pango.
4629 * lib/filter.h: Binary compatibility change:
4630 Added unique name to export filters. Can be NULL.
4631 * lib/filter.c (filter_get_by_name): Finding a filter by
4634 * app/app_procs.h: Changed prototype for do_convert.
4635 * app/app_procs.c (app_init): Support for non-extension file
4636 format selection for export. Also allow extension to differ from
4637 that specified by the filters. A bit of refactoring, too.
4639 2003-09-28 Steffen Macke <sdteffen@web.de>
4641 * makefile.msc: added target po to update the translations
4643 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
4646 * dia.spec (Release):
4648 * doc/pl/dia-manual.sgml:
4649 * doc/en/dia-manual.xml:
4650 Pre4 is given a short try.
4652 * configure.in: Give all necessary libs to PNG test.
4654 * lib/font.c: Added legacy entries for sans, serif and monospace.
4656 * app/app_procs.c (internal_plugin_init):
4659 Added PS fonts output for Unix.
4661 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
4662 factor to make PS fonts stay in boxes.
4664 2003-08-03 Hans Breuer <hans@breuer.org>
4666 * config.h.win32 : close the version string
4668 * lib/libdia.def : with color_white, color_black being static
4669 on win32 they can not be exported anymore either
4671 * lib/dialibartrenderer.c : text rendering is back on win32,
4672 only by Gdk though; almost a year seems to be enough to
4673 wait for my patch at bug #94791 to be accepted ...
4675 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
4677 * shapes/network/{digitizing_board.png,plotter.png,
4678 laptop.png,telephone.png}: 22x22 icons.
4680 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
4682 * doc/pl/dia-manual.sgml:
4683 * doc/en/dia-manual.xml:
4684 * dia.spec (Release):
4688 pre3 improves font rendering speed.
4690 * app/app_procs.c (app_init): Don't do pango init here, it's done
4691 on demand in font.c now.
4693 * lib/font.c: Load pango context on demand rather than during
4694 init/all the time strikes a better balance between working font
4695 size and speed. Still need to cache width calculations.
4697 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
4699 * lib/dia_xml.c: Enable pretty printing. Should have been added
4702 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
4704 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
4705 adjustment a bit for half diamond and open round.
4707 * RELEASE-PROCESS: Added note about notifying translators and
4710 * doc/pl/dia-manual.sgml:
4711 * doc/en/dia-manual.xml:
4712 * dia.spec (Release):
4716 Update to 0.92-pre2.
4718 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
4720 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
4721 calculation for half diamond and open round.
4724 * objects/UML/component_feature.c:
4725 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
4726 arrows instead of specific little hacks. Much nicer, but damn
4727 there's a lot of arrows.
4729 * lib/dialibartrenderer.c (begin_render):
4730 * app/render_libart.c (begin_render): Use correct DPI for screen
4731 (well, actually the default DPI of 75 for now).
4733 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
4735 * lib/diagdkrenderer.c (draw_string): Some reformatting.
4737 * app/app_procs.c (app_init): Note on what should be done for the
4738 pango context now, only it doesn't work:(
4740 * lib/font.c (dia_font_new): Make sure to load fonts that are
4741 used, using a reasonable pango_context. Also a comment on the
4744 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
4746 * doc/pl/graphics/*.png:
4747 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
4748 loop (bug #121817). PL translator may want to change the
4749 home_network png to be in Polish. If the docs get translated into
4750 more languages, we'll want to find out how to share these things.
4752 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
4754 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
4755 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
4758 * app/filedlg.c (file_save_as_callback): Put filename setting
4759 together. (Preparation for allowing default save dir.)
4761 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
4762 correctly this time:)
4764 * app/dia-props.c (diagram_properties_show):
4765 * app/properties.c (properties_show): Make sure the
4766 dialogs are transient for the correct diagram.
4768 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
4770 * configure.in: Make sure -lz -lm is passed into second png test
4771 as well (stupid AC_LINK_IFELSE can't take it as an argument).
4773 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
4774 comment-filled files readable. Once we have a 'generic data'
4775 system, we can put comments in there.
4777 2003-09-06 Steffen Macke <sdteffen@web.de>
4779 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
4780 g_string_sized_new() instead of g_string_new() to make it compile
4781 * app/Makefile.am: including dia.ico and dia.rc in the tarball
4782 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
4783 for non-solid linestyles - otherwise custom linestyles have to be used.
4785 2003-09-02 Steffen Macke <sdteffen@web.de>
4787 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
4790 2003-09-02 Christian Neumair <chris@gnome-de.org>
4792 * sheets/Pneumatic.sheet.in: Slight unification fix.
4794 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
4798 * dia.spec (Release):
4799 * doc/en/dia-manual.xml:
4800 * doc/pl/dia-manual.sgml:
4801 * NEWS: Update to 0.92-pre1.
4803 * app/properties.c (properties_key_event): Removing Esc/Enter
4804 handling for now, interferes to much with regular dialog usage.
4806 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
4807 Function to escape special TeX characters. Not in use yet, as
4808 PSTricks output by default is TeX strings. Should get a save-time
4811 2008-09-01 Steffen Macke <sdteffen@web.de>
4813 * lib/paper.h: explanatory comment on width and height
4815 2003-08-30 Steffen Macke <sdteffen@web.de>
4818 * lib/color.h: made color_white, color_black static on win32
4820 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
4822 * configure.in (PNG_LIBS): Something in the png tests added an
4823 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
4825 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
4827 * configure.in: Quote correctly for temporarily adding freetype
4830 * app/preferences.c (prefs_save): Remove debugging g_print.
4832 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
4834 * objects/flowchart/parallelogram.c (pgram_update_data):
4835 Directions for connections, better system for placing
4838 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
4840 * lib/diagramdata.c (layer_find_closest_object_except): Look all
4841 the way through the object list, so the foremost object is selected.
4843 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
4844 included for diagramdata.c.
4846 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
4847 newline in multistringprop not close the dialog. Failed so far.
4849 2003-08-25 Steffen Macke <sdteffen@web.de>
4851 * app/commands.c: using CHM instead of HTML on win32 if available
4852 * lib/diagramdata.h: including dynamic_obj.h
4854 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
4856 * app/properties.c (properties_key_event): Make Enter = Ok for
4857 properties dialogs. Still some problems with this and Esc for
4858 Cancel, for instances escaping out of a menu closes the dialog.
4860 * objects/UML/association.c (association_get_properties):
4861 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
4864 * app/diapsft2renderer.c (draw_string): Use
4865 dia_font_scaled_build_layout to ensure similarity of text.
4867 * lib/diagramdata.c: Remove obj from dynobj list when removing
4868 from layer to avoid nasty race conditions.
4870 * app/undo.c (group_objects_revert): Make sure to unparent and
4871 remove from dynobj list when changing layers objects.
4873 2003-08-23 Steffen Macke <sdteffen@web.de>
4875 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
4876 StretchBlt(); fixes #92249
4878 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
4880 * app/filedlg.c (file_save_as_callback):
4881 * app/preferences.h:
4882 * app/preferences.c (prefs_data):
4883 * lib/diagramdata.h:
4884 * lib/diagramdata.c (new_diagram_data):
4885 * app/load_save.c (diagram_data_load):
4886 Let the document remember whether it was compressed. The user can
4887 still override this in the Save As... dialog, and that will still
4888 be remembered as the default for new diagrams.
4890 2003-08-23 Steffen Macke <sdteffen@web.de>
4892 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
4894 2003-08-22 Steffen Macke <sdteffen@web.de>
4896 * plug-ins/xslt/dia-uml.xsl:
4897 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
4898 table containing a list of components grouped by stereotype
4900 2003-08-21 Steffen Macke <sdteffen@web.de>
4902 * lib/makefile.msc: added connectionpoint.obj
4903 * lib/libdia.def: added connpoint_update, find_slope_directions
4904 * app/disp_callbacks.c: including scroll_tool.h
4905 * obj/makefile.msc: added component_feature.obj
4906 * app/paginate_gdiprint.c: fixed loop initialization in
4907 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
4910 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
4912 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
4915 * lib/diagramdata.h: Colors added to prefs.
4916 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
4917 New field for pagebreak color, which should
4918 behave the same as grid color and be settable for a diagram.
4920 * app/diagram.c (diagram_init): Update diagram pagebreak color
4923 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
4926 * app/preferences.[ch]: Default diagram colors now #defines, so
4927 loading can use it. Also, colors are now in NewDiagramData, so
4928 are passed nicely into new diagrams directly from prefs. Yum.
4930 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
4931 Support for loading and saving grid and pagebreak colors with the
4932 diagram. I'm inclined to make all the three Colors in diagram
4933 Color*s instead, so we can tell if they're specified for the
4934 diagram or merely the default setting. There'd be no way for the
4935 user to tell if the color of a diagram is default, though, unless
4936 we add a 'reset to default' button to prefs.
4938 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
4939 pagebreak color. Unsensitizing grid size when dynamic.
4941 * objects/UML/component.c: Patch from Krzysztof Foltman
4942 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
4943 third. Makes the left side connections actually be on the line
4946 2003-08-20 Steffen Macke <sdteffen@web.de>
4948 * lib/libdia.def: added layer_find_closest_object_except
4949 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
4951 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
4955 * app/scroll_tool.c:
4957 * app/disp_callbacks.c:
4958 * app/create_object.h:
4959 * app/create_object.c: Patch from Krzysztof Foltman
4960 <kfoltman@onet.pl>: Middle button can scroll transiently when
4961 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
4965 * sheets/UML.sheet.in:
4966 * sheets/UML/receptacle.xpm:
4967 * sheets/UML/Makefile.am:
4968 * sheets/UML/eventsource.xpm:
4969 * sheets/UML/eventsink.xpm:
4970 * objects/UML/pixmaps/facet.xpm:
4971 * objects/UML/uml.c (dia_plugin_init):
4972 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
4973 * objects/UML/component_feature.c:
4974 Patch from W. Borgert <debacle@debian.org>: Add event sources and
4977 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
4979 * lib/object.h: Turning some comments into doxygen style.
4981 * lib/object_defaults.c (dia_object_defaults_load)
4982 (dia_object_default_get, dia_object_default_create):
4983 Fixing up existing documentation.
4985 * lib/object.h: Doxygen style documentation begun.
4987 * app/create_object.c:
4989 * app/connectionpoint_ops.c:
4990 * app/disp_callbacks.c:
4991 * app/modify_tool.c:
4993 * objects/network/wanlink.c (wanlink_move_handle):
4994 * objects/network/bus.c (bus_move_handle):
4996 * objects/flowchart/parallelogram.c (pgram_move_handle):
4997 * objects/flowchart/ellipse.c (ellipse_move_handle):
4998 * objects/flowchart/diamond.c (diamond_move_handle):
4999 * objects/flowchart/box.c (box_move_handle):
5001 * objects/custom/custom_object.c (custom_move_handle):
5003 * objects/chronogram/chronoref.c (chronoref_move_handle):
5004 * objects/chronogram/chronoline.c (chronoline_move_handle):
5006 * objects/SADT/box.c (sadtbox_move_handle):
5007 * objects/SADT/arrow.c (sadtarrow_move_handle):
5008 * objects/SADT/annotation.c (annotation_move_handle):
5010 * objects/Misc/analog_clock.c (analog_clock_move_handle):
5012 * objects/GRAFCET/vergent.c (vergent_move_handle):
5013 * objects/GRAFCET/vector.c (arc_move_handle):
5014 * objects/GRAFCET/transition.c (transition_move_handle):
5015 * objects/GRAFCET/step.c (step_move_handle):
5016 * objects/GRAFCET/condition.c (condition_move_handle):
5017 * objects/GRAFCET/action.c (action_move_handle):
5019 * objects/FS/function.c:
5020 * objects/FS/flow.c:
5021 * objects/FS/flow-ortho.c (orthflow_move_handle):
5022 * objects/FS/flow-poly.c (flow_move_handle):
5024 * objects/UML/usecase.c (usecase_move_handle):
5025 * objects/UML/state_term.c (state_move_handle):
5026 * objects/UML/state.c (state_move_handle):
5027 * objects/UML/small_package.c (smallpackage_move_handle):
5028 * objects/UML/realizes.c (realizes_move_handle):
5029 * objects/UML/object.c (objet_move_handle):
5030 * objects/UML/note.c (note_move_handle):
5031 * objects/UML/node.c (node_move_handle):
5032 * objects/UML/message.c (message_move_handle):
5033 * objects/UML/lifeline.c (lifeline_move_handle):
5034 * objects/UML/large_package.c (largepackage_move_handle):
5035 * objects/UML/implements.c (implements_move_handle):
5036 * objects/UML/generalization.c (generalization_move_handle):
5037 * objects/UML/fork.c (fork_move_handle):
5038 * objects/UML/dependency.c (dependency_move_handle):
5039 * objects/UML/constraint.c (constraint_move_handle):
5040 * objects/UML/compprop.c (compprop_move_handle):
5041 * objects/UML/component.c (component_move_handle):
5042 * objects/UML/branch.c (branch_move_handle):
5043 * objects/UML/association.c (association_move_handle):
5044 * objects/UML/actor.c (actor_move_handle):
5045 * objects/UML/activity.c (state_move_handle):
5046 * objects/UML/class.c (umlclass_move_handle):
5048 * objects/standard/ellipse.c (ellipse_move_handle):
5049 * objects/standard/zigzagline.c (zigzagline_move_handle):
5050 * objects/standard/textobj.c (textobj_move_handle):
5051 * objects/standard/polyline.c (polyline_move_handle):
5052 * objects/standard/polygon.c (polygon_move_handle):
5053 * objects/standard/line.c (line_move_handle):
5054 * objects/standard/image.c (image_move_handle):
5055 * objects/standard/bezier.c (bezierline_move_handle):
5056 * objects/standard/arc.c (arc_move_handle):
5057 * objects/standard/beziergon.c (beziergon_move_handle):
5058 * objects/standard/box.c (box_move_handle):
5060 * objects/ER/relationship.c (relationship_move_handle):
5061 * objects/ER/participation.c (participation_move_handle):
5062 * objects/ER/entity.c (entity_move_handle):
5063 * objects/ER/attribute.c (attribute_move_handle):
5065 * lib/polyshape.c (polyshape_move_handle):
5067 * lib/orth_conn.c (orthconn_move_handle):
5069 * lib/neworth_conn.c (neworthconn_move_handle):
5070 * lib/neworth_conn.h:
5071 * lib/element.c (element_move_handle):
5073 * lib/connection.c (connection_move_handle):
5075 * lib/beziershape.c (beziershape_move_handle):
5076 * lib/beziershape.h:
5077 * lib/bezier_conn.c (bezierconn_move_handle):
5078 * lib/bezier_conn.h:
5079 *BINARY COMPATIBILITY CHANGE*
5080 Update prototype for *_move_handle() to include connectionpoint,
5081 and also pass on modifiers. Pass in connectionpoint where
5084 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
5085 file connectionpoint.c.
5087 2003-08-17 Danilo Šegan <dsegan@gmx.net>
5089 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
5091 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
5093 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
5095 * lib/beziershape.c (beziershape_update_data): Autoroute
5096 directions for beziershapes!
5098 * lib/connectionpoint.c (find_slope_directions):
5099 * lib/connectionpoint.h: Function for finding the available
5100 directions on a slope.
5102 * lib/polyshape.c: Reasonable directions for
5105 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
5107 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
5108 * objects/GRAFCET/vergent.c (vergent_update_data):
5109 * objects/GRAFCET/transition.c (transition_update_data):
5110 * objects/GRAFCET/action.c (action_update_data):
5111 * objects/GRAFCET/step.c (step_update_data):
5112 * objects/FS/function.c (function_update_data):
5113 * lib/connpoint_line.c (connpointline_putonaline):
5114 * objects/ER/attribute.c (attribute_update_data):
5115 * objects/ER/entity.c (entity_update_data):
5116 * objects/ER/relationship.c (relationship_update_data):
5117 * objects/chronogram/chronoline.c (chronoline_update_data): Set
5118 directions for connection points.
5120 * objects/UML/component.c (component_create): Set to allow
5123 * app/create_object.c (create_object_button_press):
5124 * app/diagram.[ch] (diagram_find_clicked_object_except):
5125 * lib/diagramdata.[ch] (layer_find_closest_object_except):
5126 Avoid parenting to objects you're connecting to (otherwise you
5127 couldn't make a connection out of a parenting object). To do
5128 this, added functions to find the nearest object except a given
5131 * app/render_libart.c: Rearrange libart include to avoid multiple
5132 include program (and put libart includes inside #ifdef!)
5134 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
5136 * lib/dialibartrenderer.c: Don't include art_config.h if others
5137 also do, as it isn't #ifdef'd.
5139 * objects/flowchart/ellipse.c (ellipse_update_data): Add
5140 directions for connection points.
5142 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
5144 * objects/flowchart/box.c (box_update_data): Add directions, use
5146 (box_load): Use g_malloc0.
5148 * lib/Makefile.am (libdia_la_SOURCES):
5149 * lib/connectionpoint.c (connpoint_update):
5150 Function to call to update a connection point info in _update_data().
5152 * lib/connectionpoint.h: Convenience DIR_ macros.
5154 * app/preferences.c (prefs_data): Make pretty formatted XML the
5157 * lib/dialibartrenderer.c:
5158 * app/render_libart.c: Make sure art_config.h is included, cause
5159 some libart headers are broken.
5161 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5162 after test. Add freetype-config cflags to cflags variable.
5164 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
5166 * app/authors.h: Credits for Krzysztof.
5168 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5169 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
5170 than the description) is visible in the title of the properties
5171 dialog. That ought to be a short description (translatable),
5172 though we still want long descriptions for the tooltips. Hmmm...
5174 * configure.in: Updated to use AC_LINK_IFELSE instead of
5175 AC_TRY_COMPILE, also force to link to check libs on Solaris.
5177 * objects/ER/entity.c (entity_load):
5178 * objects/ER/attribute.c (attribute_load):
5179 * lib/attributes.c (attributes_set_default_font):
5180 Check if font is non-null before unreffing.
5182 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
5184 * app/diagram.c (diagram_ungroup_selected)
5185 (diagram_group_selected): Use the undo apply to make sure grouping
5186 and ungrouping is done in consistent manners. This removes a fair
5187 amount of duplicated code from diagram.c.
5189 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
5190 (group_objects_revert, group_objects_apply): Working undo/redo for
5191 diagram tree updates. The initial actions still don't quite work.
5193 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
5195 * app/create_object.c (create_object_button_press):
5197 * app/diagram.c: Undo support for parenting. Uses apply/revert in
5198 undo only for manipulating the parent/child relationships. Things
5199 like removing an object doesn't use the undo functions for
5200 parenting, so any updates to come (like to diagramtree) should be
5203 2003-08-03 Hans Breuer <hans@breuer.org>
5205 * app/create_object.c : minor formating and g_new0 for
5208 * lib/bezier_conn.[hc] lib/beziershape.[hc]
5209 lib/prop_geomtypes.c (prop_geomtypes_register)
5210 objects/standard/bezier.c objects/standard/beziergon.c :
5211 ability to set bezpoints via StdProp api
5213 * plug-ins/python/pydia-property.c : convert list of tuples
5216 * plug-ins/python/diasvg_import.py : use it to
5217 implement part of path parsing. Also minor improvements
5218 like inheritance of group attributes to members,
5219 whitespace, title and style:text/css ignoring ;-)
5221 2003-08-02 Hans Breuer <hans@breuer.org>
5223 * lib/connections.c (connection_move_handle): return
5224 something to make it compile
5225 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
5226 must return a value -> dito
5227 [Is there a warnings-as-errors switch we could use with gcc
5228 to avoid such in future ?]
5230 * plug-ins/python/pydia-object.h : define *_Check macros
5231 * plug-ins/python/diamodule.c : provide dia.group_create()
5232 * plug-ins/python/pydia-diagramdata.c : add
5233 DiaDiagramData.add_layer()
5234 * plug-ins/python/pydia-property.c : allow to set color by
5237 * plug-ins/python/diasvg_import.py : based on the above
5238 implement a) group support, b) rgb(1,2,3) color handling,
5239 and somewhat fishy data:image/png;base64 support (create
5240 temporary files from inline image data)
5241 d) dump the import errors as text into an 'Error' layer
5243 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5244 stray " in draw_rect and corrected error message formating
5246 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5247 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
5250 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
5252 * app/magnify.c (create_magnify_tool): allocate with g_new0()
5254 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
5255 preferences values (see bug 118570). Also group items into a GtkFrame.
5257 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
5262 * app/commands.c (objects_unparent_children_callback):
5264 * app/diagram.c (diagram_unparent_selected,
5265 (diagram_update_menu_sensitivity):
5266 Added unparenting of single children.
5268 * lib/bezier_conn.c:
5269 * lib/bezier_conn.h:
5270 * lib/beziershape.c:
5271 * lib/beziershape.h:
5277 * lib/neworth_conn.c:
5278 * lib/neworth_conn.h:
5285 * objects/EML/instantiation.c:
5286 * objects/EML/interaction-ortho.c:
5287 * objects/EML/interaction.c:
5288 * objects/EML/process.c:
5289 * objects/ER/attribute.c:
5290 * objects/ER/entity.c:
5291 * objects/ER/participation.c:
5292 * objects/ER/relationship.c:
5293 * objects/FS/flow-ortho.c:
5294 * objects/FS/flow-poly.c:
5295 * objects/FS/flow.c:
5296 * objects/FS/function.c:
5297 * objects/GRAFCET/action.c:
5298 * objects/GRAFCET/condition.c:
5299 * objects/GRAFCET/step.c:
5300 * objects/GRAFCET/transition.c:
5301 * objects/GRAFCET/vector.c:
5302 * objects/GRAFCET/vergent.c:
5303 * objects/Misc/analog_clock.c:
5304 * objects/SADT/annotation.c:
5305 * objects/SADT/arrow.c:
5306 * objects/SADT/box.c:
5307 * objects/UML/activity.c:
5308 * objects/UML/actor.c:
5309 * objects/UML/association.c:
5310 * objects/UML/branch.c:
5311 * objects/UML/class.c:
5312 * objects/UML/classicon.c:
5313 * objects/UML/component.c:
5314 * objects/UML/constraint.c:
5315 * objects/UML/dependency.c:
5316 * objects/UML/fork.c:
5317 * objects/UML/generalization.c:
5318 * objects/UML/implements.c:
5319 * objects/UML/large_package.c:
5320 * objects/UML/lifeline.c:
5321 * objects/UML/message.c:
5322 * objects/UML/node.c:
5323 * objects/UML/note.c:
5324 * objects/UML/object.c:
5325 * objects/UML/realizes.c:
5326 * objects/UML/small_package.c:
5327 * objects/UML/state.c:
5328 * objects/UML/state_term.c:
5329 * objects/UML/usecase.c:
5330 * objects/chronogram/chronoline.c:
5331 * objects/chronogram/chronoref.c:
5332 * objects/custom/custom_object.c:
5333 * objects/flowchart/box.c:
5334 * objects/flowchart/diamond.c:
5335 * objects/flowchart/ellipse.c:
5336 * objects/flowchart/parallelogram.c:
5337 * objects/network/bus.c:
5338 * objects/network/wanlink.c:
5339 * objects/standard/arc.c:
5340 * objects/standard/bezier.c:
5341 * objects/standard/beziergon.c:
5342 * objects/standard/box.c:
5343 * objects/standard/ellipse.c:
5344 * objects/standard/image.c:
5345 * objects/standard/line.c:
5346 * objects/standard/polygon.c:
5347 * objects/standard/polyline.c:
5348 * objects/standard/textobj.c:
5349 * objects/standard/zigzagline.c:
5350 Binary compatibility update: Added return value for foo_move() and
5351 foo_move_handle(). Orthconn derivatives also returns change from
5352 orthconn_move_handle().
5354 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
5355 doesn't support it yet.
5357 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
5358 Add returning ObjectChange from object moves. Needs to handle
5359 multiple object moves.
5361 * app/modify_tool.c (modify_motion, modify_release): Add
5362 ObjectChange from move & move_handle to undo stack.
5364 * objects/EML/instantiation.c (instantiation_move): Removing
5365 duplicate move & update.
5367 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
5369 * plug-ins/xfig/xfig-export.c: Added support for arrow head
5370 export. Many arrow types not supported by XFig, replacing those
5371 with standard arrows. Not sure whether it'd be better to render
5372 them as a group of lines instead. You'd lose the arrow-ness for
5373 further editing, but preserve the actual shape of it. Also added
5374 support for dash length.
5376 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
5378 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
5379 description for version 3.2, for reference.
5381 * plug-ins/xfig/xfig-import.c: Added import of arrows.
5383 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
5384 Align Vertical Adjacent call _v rather than _h.
5386 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
5388 * app/scroll_tool.c (create_scroll_tool):
5389 * app/modify_tool.c (create_modify_tool): use g_new0() to
5392 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
5394 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
5396 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
5398 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
5400 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
5402 * configure.in: Added Belarusian to ALL_LINGUAS.
5404 2003-07-19 Hans Breuer <hans@breuer.org>
5407 Make the xslt plug-in work on win32, too. It appears
5408 to require a quite recent version of libxml and libxslt,
5409 otherwise windoze pathes aren't translated correctly
5410 during file processing
5413 * plug-ins/xslt/xslt.h : #include <glib.h> before
5416 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
5417 the 'script' file finding similar to how it is done
5418 with the python scripts (no need for hardcoded pathes,
5419 removed the 'plugin' part from the path)
5421 * plug-ins/xslt/stylesheets.xml : added again. It does
5422 not have any path but only the pure filename again
5424 * plug-ins/xslt/stylesheets.xml.in : removed
5426 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
5427 rule to process stylesheets.xml.in
5429 * plug-ins/makefile.msc : added xslt
5431 2003-07-19 Hans Breuer <hans@breuer.org>
5433 Finally Dia learned to remember the recent selected sheet
5435 * app/preferences.[hc] : added prefs.recent_sheet
5436 * app/interface.c : restore and remember the sheet-option-menu
5437 history, but only if the respective number is stiil available.
5438 This additional adds robustness against running Dia without
5439 any sheet (e.g. installation problems)
5440 * app/app_procs.c : call prefs_safe() in app_exit() to remember
5441 changes which are not done by the prefernces dialog
5443 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
5444 removed every call (especially the conditional ones) to prefs_safe().
5445 Before prefs_safe() was called _many_ times during Dia startup
5447 2003-07-18 Hans Breuer <hans@breuer.org>
5449 * app/makefile.msc lib/makefile.msc lib/libdia.def :
5452 * lib/color.c : use gtk_widget_get_default_visual();
5453 as suggested in #114536
5455 * app/interface.c app/disp_callbacks.c :
5456 moved round_up () to the latter file where it is used
5458 * app/linewidth_area.c : #include "interface.h" for
5459 interface_get_toolbox_shell()
5461 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
5463 * plug-ins/pixbuf/.cvsignore
5464 * shapes/Cisco/.cvsignore:
5467 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
5469 * app/dia-props.c (diagram_properties_retrieve): Use
5470 diagram_get_name() to add the diagram name to the diagram
5474 * app/diagram.c (diagram_get_name): New function to get a
5475 reasonable diagram name.
5477 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5478 info. Still need to be able to set dynamic grid. Also ought to
5479 follow Gnome style and have instant apply.
5481 * app/preferences.h:
5482 * app/preferences.c (prefs_data): Remove option to use stippled
5483 grid, add option for major line offset. Default to 5 minor lines
5485 Add option for dynamically sized grid.
5487 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5489 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
5490 stippled/solid to display minor/major grid lines. Line drawing in
5491 separate functions away from calculating line distance.
5493 * app/grid.h: Split page break drawing out of grid_draw.
5495 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
5496 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
5497 when menu item is selected.
5499 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
5501 * configure.in: Removed -Winline flag to make way for important
5504 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
5505 non-compressed. Should fix bug #117381, also look prettier.
5508 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
5509 Set up desktop info more properly.
5511 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
5528 Autorouting directions patch from Krzysztof Foltman
5531 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
5532 GNOME parent menu items.
5534 * app/authors.h: Added Vadim to contributors list.
5536 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
5538 * app/commands.[ch]:
5539 * app/create_object.c:
5540 * app/disp_callbacks.[ch]:
5551 * objects/UML/large_package.c: Patch from Vadim Berezniker
5552 <vadim@berezniker.com>:
5553 Objects may "parent" other objects, i.e. contain them within
5554 themselves, restrain them and move them along. Some more stuff is
5555 needed, such as selection and individual unparenting. This adds
5556 parenting to UML - Large Package rather than Box.
5558 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
5560 * app/linewidth_area.c: Patch from Krzysztof Foltman
5561 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
5562 conform more, at least:).
5564 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
5565 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
5566 arcs. Implemented images (though there is some pixelization and
5567 banding in the output). Changed output file format to be a little
5570 * app/app_procs.c (app_exit): Added message for double exit, which
5571 shouldn't happen any more. Also preventing strange g_object_unref
5572 messages by having a printf after gtk_main_quit. This is really
5575 * app/interface.c (toolbox_delete): Avoid double app_exit call by
5576 removing handler for destroy when delete is called.
5578 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
5581 * app/display.c (ddisplay_scroll_to_object,
5582 ddisplay_scroll_center_point): New function for easy scrolling to
5585 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
5587 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
5588 $(srcdir) on stylesheets.xml.
5590 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
5591 diagram menus (since they're at the top by default now). Also
5592 move the Properties... menu item from Dialogs to Objects. Dialogs
5593 menu should disappear at some point.
5595 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
5596 ./configure from ./autogen.sh, as configure may need to be run
5597 from a different directory. (Also more standard this way.)
5599 * app/app_procs.c (app_init):
5600 * app/Makefile.am (INCLUDES): Gnome standardization patch from
5603 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
5605 * objects/flowchart/parallelogram.c (pgram_update_data):
5606 Left/right alignment for parallelograms. Doesn't use all
5607 available space, but then pgrams also ignore their shear value.
5608 This thing needs a loving hand.
5610 2003-07-01 Hans Breuer <hans@breuer.org>
5612 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
5613 * lib/proplist.c : don't complain if optional attr is missing
5614 * lib/orth_conn.h : make "orth_autoroute" optional to
5615 stop complaining with older files.
5617 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
5619 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
5621 2003-06-05 Andrew Halper <ashalper@cox.net>
5623 * app/diagram_tree.c : add scrolling of drawing area
5624 to desired object on "Locate". Patch modified to use new ddisplay
5625 function ddisplay_scroll_to_object().
5627 2003-06-11 Lars Clausen <lars@raeder.dk>
5629 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5630 info. Before next version, the grid dialog (view dialog, really)
5631 must be redone to allow a) instant apply, b) apply to all
5632 diagrams, and c) setting colour, dynamic, major lines.
5634 * app/preferences.h:
5635 * app/preferences.c (prefs_data): Remove option to use stippled
5636 grid, add option for major line offset. Default to 5 minor lines
5638 Add option for dynamically sized grid.
5640 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5642 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
5643 stippled/solid to display minor/major grid lines. Line drawing in
5644 separate function away from calculating line distance.
5646 * app/grid.h: Split page break drawing out of grid_draw.
5648 2003-05-15 Hans Breuer <hans@breuer.org>
5650 * plug-ins/python/diasvg.py : add xlink definition,
5651 also avoid to put spaces into attribute values. At least
5652 Sodipodi doesn't like them in width/height attributes
5654 * plug-ins/python/diasvg_import.py : add simple scaling.
5655 Some (more) handling for <svg>, <desc>, <circle>
5657 * plug-ins/python/scascale.py : (new file) which does
5658 some experimental scaling via StdProp api
5660 * plug-ins/python/pydia-cpoint.c
5661 plug-ins/python/pydia-handle.c : return PyDiaPoint for
5662 obj.pos not simple tuples. PyDiaPoint has a tuple interface
5663 so this may even be api compatible ...
5665 2003-05-11 Hans Breuer <hans@breuer.org>
5667 * app/line_area.c : add window position persitence
5669 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
5670 'poly_points' via StdProp api
5671 * lib/neworth_conn.h : don't rely on OrthConn and
5672 NewOrtConn having the same struct offsets
5674 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
5675 to help separating 'useful' properies - in terms of
5678 * objects/custom/custom_object.c
5680 add the missing prop_desc_list_calculate_quarks to
5681 all the *_describe_props()
5683 * objects/standard/beziergon.c objects/standard/bezier.c :
5684 explicit initializtion of default_user_data
5685 * objects/standard/polygon.c objects/standard/polyline.c :
5686 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
5688 * plug-ins/python/diamodule.c : implement dia.register_import
5690 * plug-ins/python/makefile.msc : need to link with Pango
5691 for pango_color_parse()
5693 * plug-ins/python/pydia-property.c : add a bunch of type
5694 conversions to PyDiaProperty_ApllyToObject()
5696 * plug-ins/python/diasvg_import.py : (new file) which currently
5697 is mainly a stress test for PyDia but for some files already
5698 produces better results than svg-import.c
5700 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
5702 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
5703 type-less operations.
5705 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
5707 * configure.in(ALL_LINGUAS): Added "ms".
5709 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
5711 * plug-ins/xslt/xslt.c (xslt_ok):
5712 * plug-ins/shape/shape-export.c (new_shape_renderer):
5713 * plug-ins/svg/render_svg.c (new_svg_renderer):
5714 * plug-ins/hpgl/hpgl.c (export_data):
5715 * plug-ins/dxf/dxf-export.c (export_dxf):
5716 * plug-ins/metapost/render_metapost.c (export_metapost):
5717 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
5718 * plug-ins/xfig/xfig-export.c (export_fig):
5719 * plug-ins/wpg/wpg.c (export_data):
5720 * plug-ins/cgm/cgm.c (export_cgm):
5721 * app/render_eps.c (export_eps):
5722 * app/export_png.c (export_png_ok):
5723 * app/load_save.c (diagram_data_save): Adding and standardizing
5724 output file error messages to include fopen error message.
5726 2003-05-01 Steffen Macke <sdteffen@web.de>
5728 * app/persistence.c: do not use unistd.h for MSVC build
5730 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
5732 * sheets/Assorted.sheet.in
5733 * sheets/Circuit.sheet.in
5734 * sheets/Contact.sheet.in
5735 * sheets/EML.sheet.in
5736 * sheets/ER.sheet.in
5737 * sheets/Electric.sheet.in
5738 * sheets/FS.sheet.in
5739 * sheets/Flowchart.sheet.in
5740 * sheets/GRAFCET.sheet.in
5741 * sheets/Logic.sheet.in
5742 * sheets/MSE.sheet.in
5743 * sheets/Misc.sheet.in
5744 * sheets/Pneumatic.sheet.in
5745 * sheets/SADT.sheet.in
5746 * sheets/SDL.sheet.in
5747 * sheets/UML.sheet.in
5748 * sheets/chronogram.sheet.in
5749 * sheets/ciscohub.sheet.in
5750 * sheets/ciscomisc.sheet.in
5751 * sheets/cisconetwork.sheet.in
5752 * sheets/ciscorouter.sheet.in
5753 * sheets/civil.sheet.in
5754 * sheets/network.sheet.in
5755 * sheets/sybase.sheet.in:
5756 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
5757 standardizes shape descriptions to use no articles, no 'create
5760 * app/interface.c (tool_data): Standard objects follow same
5763 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
5765 * app/color_area.c (color_area_edit): More informative title on
5766 color selection dialog.
5768 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
5769 sensitivity when dropping object in. Also reset tool to pointer.
5771 * objects/flowchart/diamond.c (diamond_update_data):
5772 * objects/flowchart/parallelogram.c (pgram_update_data): Added
5773 left and right alignment options.
5775 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
5777 * objects/flowchart/box.c: Added left and right alignment options.
5779 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
5781 * app/persistence.c (persistence_load): Test existence of
5782 persistence file before trying to open it.
5784 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
5786 * app/properties.c: Escape now closes properties dialogs.
5788 2003-04-25 Hans Breuer <hans@breuer.org>
5790 * app/config.h.win32 : bump version to 0.91+cvs
5792 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
5794 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
5796 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
5799 * app/presistence.c : need to #include "dia_xml_libxml.h"
5802 * app/layer_dialog.c : make delayed creation work by protecting
5803 all non static layer_dialog_*() with :
5804 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
5805 create_layer_dialog();
5806 * app/app_procs.c : removed /* create_layer_dialog(); */
5808 * objects/uml/association.c : give it a minimal StdProp
5809 implementation to fix bug #108896
5810 * lib/object_defaults.c : don't try to copy props if there
5811 is no obj->ops->describe_props
5813 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
5815 * objects/standard/image.c (image_create):
5816 * objects/standard/ellipse.c (ellipse_create):
5817 * objects/standard/box.c (box_create):
5818 * objects/flowchart/ellipse.c (ellipse_create):
5819 * objects/flowchart/diamond.c (diamond_create):
5820 * objects/flowchart/box.c (box_create):
5821 * objects/custom/custom_object.c (custom_create):
5822 * objects/ER/relationship.c (relationship_create):
5823 * objects/ER/entity.c (entity_create):
5824 * objects/ER/attribute.c (attribute_create): Initialize
5825 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
5827 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
5831 * plug-ins/Makefile.am:
5832 * plug-ins/xslt/Makefile.am:
5833 * plug-ins/xslt/xslt.c (dia_plugin_init):
5834 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
5835 automake-style if to only include xslt dir when needed. Works
5836 with automake 1.4 and up, at least.
5838 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
5840 * lib/diasvgrenderer.c (draw_string):
5841 * lib/dia_svg.c (dia_svg_parse_style): Use
5842 text-anchor:(start|middle|end).
5844 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
5845 polygon rather than polyline & avoid missing line pieces.
5846 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
5847 black-filled things.
5849 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
5851 * app/persistence.c (persistence_load): Check that persistence
5852 file exists before trying to read it.
5853 (persistence_update_window): Removed printf.
5855 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
5857 * lib/autoroute.c: Take badness into the layouters again, as some
5858 of them know they can do things that are pretty but would be
5859 counted as ugly by the default calculation.
5861 * objects/UML/large_package.c: Shrink package name box when no
5862 stereotype is present.
5864 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
5865 * lib/orth_conn.c: Added object menu item for autorouting.
5867 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
5868 Autorouting, plus set initial dragging handle to be the end, not
5870 (orthflow_draw): Flipped arrow place to be at the end, as
5871 originally intended (got lost in arrow update).
5873 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
5874 * objects/UML/dependency.c (dependency_get_object_menu):
5875 * objects/UML/association.c (association_get_object_menu):
5876 * objects/UML/realizes.c (realizes_get_object_menu):
5877 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
5878 * objects/GRAFCET/vector.c (arc_get_object_menu):
5879 * objects/ER/participation.c (participation_get_object_menu):
5880 * objects/EML/instantiation.c (instantiation_get_object_menu):
5881 * objects/UML/generalization.c (generalization_get_object_menu):
5882 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
5883 Autorouting setup (currently disabled for SADT/arrow).
5885 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
5887 * lib/autoroute.c: Removed printfs.
5890 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
5891 non-connected orthconns too.
5893 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
5896 * lib/orth_conn.c: Function to set autorouting on/off, use
5897 autorouting in move_handle (turns off when a middle handle is
5898 moved), added to standard orthconn props.
5900 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
5901 Stopped signal emission for check menu items being set to on/off.
5903 * objects/standard/zigzagline.c: Added autorouting object menu item.
5905 * lib/autoroute.c: Added last cases of autoroute layout, fixed
5906 floating point comparison bug, cleaned up layouters, tweaked
5907 badness to allow kinks.
5909 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
5911 * lib/connectionpoint.h: Changed DIR_* macros to go around the
5914 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
5916 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
5917 old cruft, added call to autoroute (currently cannot be turned
5918 off). Need to check what undo thinks about this.
5919 * lib/autoroute.[ch]: Fairly working simple layout.
5921 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
5922 * lib/autoroute.[ch]: Start of proper autorouting functionality.
5924 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5926 * lib/prop_widgets.c: Show labels on ListProp.
5928 2003-04-11 Steffen Macke <sdteffen@web.de>
5930 * doc/en/dia-manual.xml: removed reference of non-existing authors
5932 * doc/en/usage-objects-selecting: commented out misleading section
5935 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5937 * app/app_procs.c (app_init): Layer window now opened at startup
5940 * lib/prop_widgets.c: Show labels on ListProp.
5942 2003-04-09 Steffen Macke <sdteffen@web.de>
5944 * doc/en/*.sgml: removed files
5945 * doc/en/*.xml: added files
5946 * doc/en/Makefile.am: switched to XML DocBook
5948 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
5950 * plug-ins/xslt/xslt.c (dia_plugin_init):
5951 * configure.in: Added --with-xslt-prefix to allow other XSLT
5952 placements than /usr/lib.
5954 2003-04-09 Steffen Macke <sdteffen@web.de>
5956 * lib/makefile.mingw: updated to include latest files, including
5958 * lib/geometry.h: don't define isinf and finite for mingw gcc build
5960 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
5962 * app/persistence.h:
5963 * app/persistence.c (persistence_register_window_create):
5964 * app/app_procs.c (app_init):
5965 Register window function that doesn't create the window unless it
5966 should be open. Other windows should move to this, so startup
5967 speed can be reduced.
5969 * app/persistence.h: Removed call prototype for update_window, now
5971 * app/persistence.c (persistence_register_window): A number of
5972 fixes. Doesn't forget position when window is closed. Now
5973 actually loads prefs.
5975 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
5978 * app/preferences.c (prefs_data):
5979 * app/diagram_tree_window.h:
5980 * app/diagram_tree_window.c: Added persistence registering.
5981 Removed prefs items storing size and openness.
5983 * app/sheets_dialog.c (create_sheets_main_dialog): Added
5984 persistence registering.
5986 * app/Makefile.am (dia_core_files): Added persistence files.
5989 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
5990 that dirs are present.
5992 * app/app_procs.c (app_init): Loads persistent values on startup.
5993 (app_exit): Saves persistent values on exit.
5995 * app/layer_dialog.c (create_layer_dialog): Registers the layer
5996 window for persistence.
5998 * app/persistence.[ch]: New files handling various kinds of
6001 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
6003 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
6004 head spacing calculations. Added half-circle arrow from Matthieu
6005 Sozeau <mattam@netcourrier.com>
6007 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
6009 * app/app_procs.c (app_init): Moved layer dialog init to allow
6010 tooltips to be initialized.
6012 * app/interface.c (create_display_shell): More tooltips.
6014 * app/linewidth_area.c (linewidth_area_create)
6015 (linewidth_area_events):
6016 * app/color_area.c (color_area_events, color_area_create):
6017 Made tooltips work by embedding drawing_area in event_box.
6019 * app/interface.c (create_display_shell,
6020 (create_lineprops_area, create_color_area): Added a few tooltips.
6022 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
6024 * app/pixmaps/off-grid.xpm:
6025 * app/pixmaps/on-grid.xpm:
6026 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
6029 * app/commands.c (view_snap_to_grid_callback):
6030 * app/display.c (ddisplay_set_snap_to_grid)
6031 (update_snap_grid_status):
6032 * app/interface.c (create_display_shell, grid_toggle_snap):
6033 Added snap-to-grid status button.
6035 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
6037 * app/app_procs.c (app_init): Create a new diagram if a file on
6038 the command line isn't found.
6040 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
6042 * lib/dialibartrenderer.c (draw_string): Correct color handling
6045 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
6048 * doc/en/dia-manual.sgml:
6049 * doc/pl/dia-manual.sgml:
6051 * dia.spec (Release):
6052 Version 0.91 is here!
6054 2003-02-10 Steffen Macke <sdteffen@web.de>
6056 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
6057 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
6058 non-ANSI characters, closes #107980
6060 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
6064 * dia.spec (Release):
6065 * doc/en/dia-manual.sgml: Upping to pre6.
6067 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
6069 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
6070 #107511: Make arrow selector for correct arrow type.
6072 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
6074 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
6077 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
6079 * doc/en/dia-manual.sgml:
6082 * dia.spec (Release): Upping to pre5.
6084 * configure.in: Add freetype-config derived libs to the
6085 AC_CHECK_LIB statement for freetype.
6087 2003-02-28 Hans Breuer <hans@breuer.org>
6089 [fix for bug #107203]
6091 * lib/diarenderer.c : add warning 'implementation'
6092 for fill_rect to avoid crashing with a renderer
6093 which does not implement this required function.
6095 * plug-ins/dxf/dxf-export.c : provide - still empty -
6096 'implementations' for fill_rect and fill_polygon
6097 to suppress the above warnings. Now it works like
6100 2003-02-28 Steffen Macke <sdteffen@web.de>
6102 * samples/all_objects.dia: New sheet containing all dia shapes
6103 and objects; one layer per sheet
6105 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
6107 * lib/prop_text.c (multistringprop_get_widget,
6108 multistringprop_reset_widget, multistringprop_set_from_widget):
6109 Now uses GtkTextView instead of deprecated stuff, and also works:)
6111 * configure.in: Slightly more informative error message for isinf.
6113 * dia.spec (Requires): Require libxml2 rather than libxml.
6115 2003-02-28 Steffen Macke <sdteffen@web.de>
6117 * shapes/Circuit/hjumper.png:
6118 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
6121 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
6123 * doc/en/dia-manual.sgml:
6125 * dia.spec (Release):
6126 * NEWS: New prerelease 0.91pre4, two important fixes.
6128 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
6130 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6133 * app/commands.c (help_manual_callback): More correct URL for help
6134 page (include file://, was broken on Dillo without it).
6136 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
6138 * app/disp_callbacks.c: Set modifed when text is changed.
6140 * app/modify_tool.c (modify_button_release): Allow undo for moving
6143 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6146 * doc/en/dia-manual.sgml:
6148 * configure.in: New prerelease with important bugfix.
6149 * shapes/network/digitizing_board.png:
6150 * shapes/network/plotter.png: Re-adding with -kb.
6152 2003-02-17 Abel Cheung <maddog@linux.org.hk>
6154 * app/app_procs.c (app_init): Add comment for translators.
6156 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6158 * lib/filter.c (filter_register_import, filter_register_export):
6159 Don't accept filters with NULL description.
6161 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6162 (as we assume the description is available in other places).
6164 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
6166 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
6167 * app/display.c (ddisplay_resize_canvas): Use
6168 ddisplay_add_update_all().
6169 (ddisplay_add_update_all): Free display and update lists when
6170 doing update_all, as they'll be regenerated immediately to cover
6171 all visible area. Fixes bug #106165, crash when resizing. This
6172 appears to be the original AA crash bug, believed long extinct.
6174 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
6176 * app/commands.c (help_manual_callback): Use file: protocol for
6179 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6181 * plug-ins/xslt/stylesheets: Removed old-style config file.
6183 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6185 * plug-ins/xslt/Makefile.am:
6186 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6187 handling (no more DIA_PLUGIN_PATH).
6189 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
6191 * plug-ins/svg/render_svg.c:
6192 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6194 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
6196 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
6197 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
6198 side of the triangle is longer than the hypotenuse. Rounding
6201 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
6205 * doc/en/dia-manual.sgml: Update for pre2.
6207 * app/menus.c (display_menu_items): Fixed wrongly place separators.
6209 * objects/flowchart/box.c (box_update_data): Applied patch from
6210 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6213 * app/paginate_psprint.c (print_page): Set paper name, so it
6214 convinces ps printers to use to right size.
6216 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
6218 * app/properties.c (properties_show): Hide the dialog if the
6219 object is NULL (get rid of 'no properties' randomly popping up).
6221 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
6223 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6224 for diagrams not starting at origo.
6226 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
6228 * dia.spec (BuildRequires): Use libxml2-devel.
6230 * plug-ins/pixbuf/Makefile.am: Added to CVS.
6232 * RELEASE-PROCESS: Note on RPM version numbers.
6234 * app/interface.c (create_display_shell): Don't set as toolbar
6235 under Unix, either. Especially not the diagram shell. It removes
6236 it from the taskbar and makes it unresizable, always-on-top with
6237 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
6238 appropriate thing, UTILITY, is not good either, you lose resizing
6239 and minimizing/maximizing under OpenBox.
6241 * app/menus.c (display_menu_items): Set delete item to use Delete.
6243 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
6245 * dia.spec (BuildRequires, Requires): Updated for Gtk2
6248 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6249 display flush when getting focus in, or we may get an update after
6250 the diagram has been destroyed in some cases. Fixes bug #105221.
6252 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6254 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6256 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6257 - gnome-compiled Dia will now read files specified on the command line.
6259 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6261 * INSTALL (REQUIREMENTS): Updated requirements section.
6263 * configure.in: Better finite() check from Mårten Svantesson
6264 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
6267 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6269 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6271 * app/app_procs.c (debug_break): Added some code to avoid
6272 over-eager optimizations removing the call. Surely there's a
6273 nicer way, but I'm not sure how.
6275 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6276 that set text to black.
6278 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
6280 * NEWS: Mention of Twiki as doc source for Python.
6282 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6283 libart/libpng is not available. Later when we have a way of
6284 letting the user pick options in the file select dialog we shall
6285 allow the choice when applicable.
6287 2003-02-02 Steffen Macke <sdteffen@web.de>
6289 * doc/en/usage-loadsave.sgml:
6290 * doc/en/usage-objects.sgml: patch from
6291 James K. Lowden <jklowden@schemamania.org> to fix
6294 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
6296 * plug-ins/Makefile.am (SUBDIRS):
6297 * plug-ins/pixbuf/pixbuf.c:
6298 * plug-ins/pixbuf/Makefile.am:
6300 Added pixbuf plugin to Makefile.am, but for import only. PNG
6301 export handled by libart, which is better. JPG export is
6302 discouraged. BMP is not much used on Unix. Next release will
6303 integrate libart to allow all outputs.
6305 2003-02-01 Hans Breuer <hans@breuer.org>
6307 * app/preferences.c :
6309 the last two dialogs with 'old' button order finally
6310 are converted to gtk2, no GnomeDialog in all of Dia
6313 2003-02-01 Hans Breuer <hans@breuer.org>
6315 * app/filedlg.c : don't try to use a button as
6316 'overwrite-file-dialog'-parent, use the FileSelDialog
6319 * plug-ins/pixbuf/pixbuf.c : make it work with
6320 system-visual-depth < 24. Remove 'bmp' from output
6321 format extensions, it just was wishful thinking.
6323 * plug-ins/python/Makefile.am : added the four new python
6324 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
6326 2003-02-01 Hans Breuer <hans@breuer.org>
6328 * NEWS : updated content beside dependencies
6330 2003-02-01 Hans Breuer <hans@breuer.org>
6332 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
6333 to make it useable across DLL boundaries
6334 * app/lineprops_area.c : same code to access arrow_types
6337 * objects/UML/class.c : the non empty string is e.g.
6338 comment != NULL && comment[0] != '\0'
6339 * objects/UML/uml.c : same here, don't bother with
6340 empty operation stereotypes
6342 2003-02-01 Steffen Macke <sdteffen@web.de>
6344 * app/lineprops_area.c: latest changes do not work on
6345 windows, using old code without tooltips
6346 * makefile.msc: fixed copying of wmf.dll
6347 * plug-ins/makefile.msc:
6349 * lib/makefile.msc: now linking libintl
6350 * config.h.win32: enabling native language support
6352 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6354 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
6355 -ldl and -lglib. May or may not work on windows...awaiting verdict.
6357 2003-01-31 Daniel Yacob <locales@geez.org>
6359 * configure.in: Added am (Amharic) to ALL_LINGUAS.
6361 2003-01-31 Steffen Macke <sdteffen@web.de>
6363 * objects/UML/class.c (umlclass_calculate_data): fixed crash
6364 when comments were visible, no class comment available and
6367 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6369 * RELEASE-PROCESS: Updated to fit new install-module syntax.
6370 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
6373 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
6379 Prerelease version changes, version 0.91-pre1.
6381 * app/sheets_dialog_callbacks.h:
6382 * app/sheets_dialog_callbacks.c:
6383 * app/sheets_dialog.c (create_sheets_main_dialog):
6384 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
6385 to handle destruction of main dialog cleanly, but it's a mess.
6387 * configure.in: Downgraded ieeefp test to make it not produce
6390 * lib/widgets.c (dia_arrow_selector_set_arrow):
6391 (dia_line_style_selector_set_linestyle): Select menu dot
6394 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
6395 adjustment for diamondheads.
6397 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
6399 * app/properties.c (create_dialog): Destroy properties dialog and
6402 * app/sheets_dialog_callbacks.c
6403 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
6404 if the old one is destroyed.
6406 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
6408 * app/export_png.c (export_png_ok): Added info on resolution.
6409 Should (next release) improve export dialog to allow setting
6410 resolution instead of pixels.
6412 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
6413 to generate arrowheads as well as tooltips.
6415 * lib/arrows.c: Added hollow diamond to menudesc list.
6418 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
6419 unify with rendered menu.
6421 * lib/diarenderer.c (draw_line_with_arrows)
6422 (draw_polyline_with_arrows, draw_arc_with_arrows)
6423 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
6424 without changing renderer API. Thanks to David Scherba for
6425 providing inspiration.
6427 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
6429 * app/interface.c (create_display_shell):
6430 * app/display.h: Patching from Hubert Figuiere
6431 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
6434 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
6436 * app/defaults.c (defaults_show): Fixed defaults closing bug.
6437 Thanks to Hans for pointing it out.
6439 2003-01-25 Hans Breuer <hans@breuer.org>
6441 * app/commands.c : don't warn about crashing libart renderer
6442 on win32. It simply doesn't render text anymore :-(
6444 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
6446 * objects/UML/class.c : don't access umlclass->properties_dialog
6447 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
6448 which sets the former to NULL by destroy_properties_dialog() callback.
6450 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
6452 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
6454 * plug-ins/python/pydia-image.c : add image.uri member
6455 not only useful for SVG rendering
6457 * plug-ins/python/diasvg.py : (new file) a more advanced
6458 example. A full blown SVG Renderer, currently only
6459 registered for .svgz
6461 * plug-ins/python/export-object.py : write text props
6463 * plug-ins/python/debug_objects.py : write prop.type and
6466 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
6468 * objects/UML/association.c (association_update_data): Better
6469 bounding box for assoc with arrows.
6471 * lib/properties.h: New flag for properties with multiple values
6474 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
6475 arrow updating in dialog. Was broken due to changes from destroy
6478 * app/commands.c (view_aa_callback): AA warning only for Windows
6479 -- I trust the Unix side well enough.
6481 * app/render_libart.c (get_text_width):
6482 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
6483 font height can be taken from parent instance.
6485 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
6486 (get_text_width): Proper cursor positioning for libart renderer.
6487 Ought to have a DiaInteractiveRenderer that these two can inherit
6488 from, that knows about transform.
6490 2003-01-25 Steffen Macke <sdteffen@web.de>
6492 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
6493 plug-in still not working on win32
6495 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
6497 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
6498 gdk_window_get_pointer to avoid destroy crash. Simpler than I
6501 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
6503 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
6504 bail out on gtk options.
6506 * lib/message.c (gtk_message_internal): Better handling of destroy
6509 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
6511 * app/color_area.c (color_area_edit):
6512 * lib/widgets.c (dia_file_selector_browse_pressed)
6513 (dia_color_selector_pressed):
6514 * app/plugin-manager.c (get_plugin_manager):
6515 * app/filedlg.c (file_open_callback, file_save_as_callback)
6516 (file_export_callback):
6517 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
6518 handling of destroy event.
6520 2003-01-22 Alan Horkan <horkana@tcd.ie>
6522 * app/commands.c (file_new_callback): Changed Untitled to Diagram
6525 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
6527 * app/preferences.c (prefs_create_dialog):
6528 * app/linewidth_area.c (linewidth_create_dialog):
6529 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
6530 * app/layer_dialog.c (create_layer_dialog)
6531 (layer_dialog_edit_layer): Correct handling of destroy signal.
6533 * app/diapsft2renderer.c (set_font): Adjust silly random factor
6534 for change in font.c
6536 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
6538 * lib/font.c (dia_font_build_layout): Let's all use the same weird
6541 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
6542 * app/layer_dialog.c (create_layer_dialog)
6543 (layer_dialog_edit_layer):
6544 * app/filedlg.c (file_open_callback, file_save_as_callback)
6545 (file_export_callback):
6546 * app/dia-props.c (create_diagram_properties_dialog):
6547 * app/defaults.c (defaults_dialog_destroyed):
6548 * app/color_area.c (color_area_edit): Dialog destroy event handling.
6550 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
6552 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
6553 defaults dialog destroyed.
6555 2003-01-19 Steffen Macke <sdteffen@web.de>
6557 * objects/makefile.msc: added bondgraph
6558 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
6559 to compile pixbuf.dll
6560 * makefile.msc: copying all objects and dlls now
6562 2003-01-19 Hans Breuer <hans@breuer.org>
6564 * app/diagram.[hc] : provide dia_open_diagrams(), make
6565 open_diagrams variable static
6566 * app/dia.def : export it (to be used by PyDia)
6567 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
6568 app/display.c app/dynamic_refresh.c app/layer_dialog.c
6569 app/load_save.c : make use of dia_open_diagrams()
6571 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
6572 on win32. It removes the diagram window from the taskbar and
6573 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
6575 * app/menus.c : add '...' to menu entries where a dialog
6577 * app/recent_files.c app/dia_embedd.c : reflect the above in
6578 menus_get_item_from_path() calls
6580 * lib/libdia.def : add dia_image_rgba_data
6582 * lib/properties.h lib/prop_text.[hc] : add new property
6584 * objects/UML/class.[hc] object/UML/class_dialog.c : use
6585 StringList for attributes_strings and operations_strings to
6586 make this calculated data accessible via the Property API
6588 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
6589 provide dia.new() to create a new diagram, dia.registered_types()
6590 to get on Dia's type registry, dia.message() for simple dialogs
6592 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
6593 to create a new display from a diagram. Let diagram.extents and
6594 diagram.bg_color return the same types as in diagramdata.*
6596 * plug-ins/python/pydia-geometry.c : add a read-only
6597 'sequence interface' to DiaPoint and DiaRectangle
6599 * plug-ins/python/pydia-property.c : allow to get on StringList
6602 * plug-ins/python/pydia-render.c : fix typo to make it compile
6604 * plug-ins/python/python-startup.py : removed 'import pygtk'
6605 again. This file does not need any gtk UI, and some python
6606 plug-ins don't do either
6608 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
6609 it should actually work as intended again
6611 * plug-ins/python/group_props.py : (new file) a prototype for
6612 one the most requested features: Change properties of selected
6613 objects in one step. Requires pygtk.
6615 * plug-ins/python/select_by.py : (new file) select objects by
6616 common properties. Requires pygtk.
6618 [Start of 'PyDia Self Documentation Series']
6620 * plug-ins/python/pydiadoc.py : (new file) generates a new
6621 diagram which contains all objects of dir(dia)
6623 * plug-ins/python/otypes.py : (new file) generates a new diagram
6624 which contains all the currently registered object types sorted
6625 by their containing package
6627 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
6629 * configure.in: Added check for Pango >= 1.1.5, which appears to
6630 be enough to have text work.
6631 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
6632 do it. AC_SUBST should be idempotent, though.
6634 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
6636 * configure.in (HAVE_FREETYPE): Better test for freetype version
6638 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
6640 * lib/font.c: Renamed global_size_one to global_zoom_factor to
6641 avoid confusion, and added comment. Set scale factor in
6642 dia_font_build_layout to 1.0 for Unix side. This fixes at least
6643 my weird scaling problems. Fonts are now of the expectable size,
6644 i.e. the space between lines at size 1.0 is 1.0. If we want a
6645 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
6646 diagrams, though there will always be differences.
6648 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
6650 * plug-ins/python/python-startup.py:
6651 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
6653 * plug-ins/python/python.c (dia_plugin_init): Added warning
6654 message for missing startup file.
6656 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
6658 * lib/dia_image.c (dia_image_rgb_data):
6659 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
6660 involving EPS. Can't do transparency in EPS yet.
6663 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
6664 data as one chunk. Documentation for the RGB data getting funcs.
6665 (dia_image_rgb_data): Added comment.
6667 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
6670 2003-01-13 Steffen Macke <sdteffen@web.de>
6672 * lib/dia_image.c: dia_image_rgb_data() is working for
6673 non-alpha images now. Fixes #93762
6674 * Makefile.am: added makefile.msc to EXTRA_DIST
6676 2003-01-10 Steffen Macke <sdteffen@web.de>
6678 * app/paginate_psprint.c: Closing print dialog when file
6679 could not be written. Fixes #84746
6681 2003-01-04 Steffen Macke <sdteffen@web.de>
6683 * doc/custom-shapes: incomplete description of <svg:text>
6685 2003-01-03 Steffen Macke <sdteffen@web.de>
6687 * makefile.msc(new): new makefile to create file
6688 structure suitable for running dia win32 under
6689 $(TOP)/dia/build/win32
6691 2003-01-02 Steffen Macke <sdteffen@web.de>
6693 * lib/dia_svg.c: including stdlib.h
6694 * lib/makefile.msc: added gdk_pixbuf libs to linker
6695 * app/makefile.msc: added gdk_pixbuf libs, made libart
6696 libs compatible with gnuwin32 package
6698 2003-01-01 Hans Breuer <hans@breuer.org>
6700 * lib/font.c : more comment about global_size_one
6702 * app/menus.c : <control>[<shift>]A for plain gtk build too.
6704 * plug-ins/wmf/wmf.cpp : some type juggling to make
6707 2002-12-31 Steffen Macke <sdteffen@web.de>
6709 * app/makefile.msc: added hint on how to enable console output
6711 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
6713 * objects/standard/textobj.c (textobj_load): Get the handle type
6714 right, at least to be the same as when created.
6716 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
6718 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
6720 2002-12-08 Hans Breuer <hans@breuer.org>
6722 * app/commands.c : fixed bug #85315 'give diagram properties,
6723 instead of no object selected error' almost a one-liner
6725 * app/splash.c : don't make having the logo pixmap
6726 mandatory. Fixes bug #96068.
6728 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
6729 sequence by connecting to the "delete_event"
6730 * app/objects/uml/class_dialog.c : handle "destroy" for
6733 * lib/libdia.def : remove diaXmlNewChild again
6735 * app/paginate_gdiprint.cpp : reflect Dia's page setting
6736 portrait/landscape in the windoze print dialog
6738 * objects/makefile.msc : only UML needs to link against
6739 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
6741 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
6743 * objects/standard/ellipse.c (ellipse_distance_from):
6744 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
6745 correct distance function. Could be faster, but it's not really
6748 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
6750 * lib/font.c: Changed global_size_one to more correct 28.35.
6755 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
6758 2002-12-07 Hans Breuer <hans@breuer.org>
6760 * lib/widgets.c : g_file_get_contents() silently assumes
6761 a binary file. Reflect when creating the font_menu file
6762 to get rid of junk in font menus
6764 2002-12-06 Hans Breuer <hans@breuer.org>
6766 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
6767 removed 0xD 0xD 0xA line ends which get created by
6768 cvs if windoze line ends 0xD 0xA are checked in from
6769 *nix and checked out on win32.
6771 * app/preferences.c : changed toolbox_on_top default to
6772 false. It is currently not possible to change the behaviour
6773 at runtime, at least not on win32.
6775 * lib/dialibartrenderer.c : bug #94791 'rendering to
6776 bitmap without PangoFt2' got delayed to milestone future
6777 so wrap libart text rendering into PANGO_WIN32_FUTURE.
6778 It is not available without my Pango patch in bugzilla.
6780 * lib/font.c : added comment to global_size_one and adapt
6781 the arbitrary size scaling in dia_font_build_layout() for
6782 win32, too. This is needed to get an acceptable font size
6783 approximation for Dia 0.90 and earlier files.
6784 Also #include "message.h".
6786 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
6787 reflect movement of group.[hc]
6788 * lib/group.h : export group_type which gets used by app/*
6790 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
6791 to get the GtkTypeInfo definition
6793 * plug-ins/makefile.msc : dxf and xfig don't need to link
6794 against app/ anymore now that group is moved to lib/
6796 * plug-ins/python/pydia-render.c : remove massive leaking
6797 of self, i.e. PyDiaRenderer
6799 * plug-ins/python/makefile.msc : remove linking against
6802 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
6804 * objects/standard/line.c: Removed properties options for gaps,
6805 until release is done.
6807 * configure.in: Check for freetype version.
6809 * lib/text.c (text_insert_char): Fixed small buffer overflow for
6812 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
6814 * app/diapsft2renderer.h:
6815 * app/diapsft2renderer.c:
6816 * app/diapsrenderer.h:
6817 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
6819 * app/render_eps.c (export_eps, new_psprint_renderer): Using
6820 PS_FT2 renderer when available. Old render stuff killed. Yay!
6822 * lib/properties.h: Fixed bad frame end def.
6824 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
6826 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
6828 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
6830 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
6832 * lib/font.c: Now checking for the proper dia-style standard fonts.
6835 * app/Makefile.am: Moving group.[ch]
6837 * plug-ins/dxf/dxf-import.c:
6838 * plug-ins/xfig/xfig-import.c:
6839 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
6843 * lib/object.c (object_list_move_delta, object_copy_list):
6844 * lib/object.h: Moved some object-related functions from
6845 object_ops to object to assist moving group.c.
6847 * lib/diatypes.h: Added Group typedef.
6850 * lib/group.c: Moved from app to lib to a) resolve plug-ins
6851 references, and b) make groups more "real" objects.
6853 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
6855 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
6857 * lib/font.c (dia_font_init): Added check that the three standard
6860 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6863 * app/load_save.c: Linebreaks in dia files, no indentation.
6864 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
6867 * objects/standard/line.c: Small but important fixes to the line
6871 * lib/dia_xml.c (diaXmlNewChild):
6872 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
6873 XML prettyprinting wrapper.
6875 2002-12-03 Steffen Macke <sdteffen@web.de>
6877 * shapes/Cisco/Makefile.am:
6878 * shapes/Cisco/*.shape: finished conversion of Cisco icons
6881 2002-12-02 Steffen Macke <sdteffen@web.de>
6883 * doc/en/Makefile.am:
6884 * doc/en/usage-objects.sgml:
6885 * doc/en/graphics/line_icon.png: (new) added line icon
6887 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6889 * objects/standard/line.c: Binary search object edge line gap.
6891 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
6893 * configure.in: Added Cisco makefile, sorted Makefiles list.
6895 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
6897 * configure.in: Now checks for availability of PangoFT2 and
6898 FreeType, raising an error if not found.
6900 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
6903 2002-12-01 Steffen Macke <sdteffen@web.de>
6905 * doc/en/usage-loadsave.sgml: updated information on import
6908 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
6910 * app/commands.c (edit_copy_callback): Freeing copy_list.
6912 2002-11-28 Steffen Macke <sdteffen@web.de>
6914 * app/render_libart.c: art_config.h was included twice
6916 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
6918 * sheets/.cvsignore: More ignorance.
6920 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
6922 * lib/prop_widgets.h: Two (currently unused) settings for frame
6925 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
6926 (by default) foldable.
6928 * lib/propinternals.h:
6929 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
6930 widgets in a more controlled manner.
6932 * objects/standard/line.c (line_update_data): Line gap things
6933 inserted. Can do xeyes now:)
6935 2002-11-26 Christian Neumair <chris@gnome-de.org>
6937 * .cvsignore: Changed.
6938 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
6939 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
6942 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6944 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
6946 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
6947 passing to font hash.
6949 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
6950 utf-8 or locale-convertible before adding to dialog text. This
6951 probably needs done in a number of places where we get text from
6952 the environment and send it to GTK to display.
6954 * lib/widgets.c: Fixed case problems for font menu entries.
6956 * objects/SADT/annotation.c: Don't run the event test (but leave
6957 it here for inspiration).
6960 * lib/widgets.h: Allowing setting preview text for fonts.
6962 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6964 * objects/bondgraph/Makefile.am:
6965 * objects/bondgraph/bondgraph.c:
6967 * objects/Makefile.am: Added bond graph dir.
6969 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6971 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
6973 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
6975 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
6978 * app/diapsrenderer.c: Freetype rendering is back in force.
6980 * app/disp_callbacks.c: Added missing updates for pre-text-change.
6982 2002-11-25 David Hoover <jazzdaq@yahoo.com>
6984 * app/render_libart.c: Added missing #include line for libart.
6987 * lib/geometry.c: Added point_convex function. This computes
6988 points inside a line segment (0 <= alpha <= 1) or outside the
6989 line segment (alpha < 0 | alpha > 1).
6991 * objects/standard/line.c: Line now has additional code/attributes
6992 which permit the line to extend past the line anchors (gap < 0) or
6993 leave a gap without reaching the anchor (gap > 0). If no gap is
6994 specified, the default gap of 0 will result in identical line
6995 behavior as before. If the 'fractional' attributes are TRUE, the
6996 gap length is not fixed, but a percentage of the line length. I
6997 did not know how create the GTK widgets so the gap code currently
6998 cannot be used without adding XML attributes by hand.
7000 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
7002 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
7004 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
7006 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
7008 * lib/font.c: Debugging functionality in separate functions.
7010 * lib/widgets.c: Using fontsel with context.
7012 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
7014 * objects/custom/custom_object.c: Orientation handling for shapes,
7015 patch thanks to Martin Hans <opfinder@gmx.net>.
7017 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
7018 work on even better orientation handling.
7020 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
7021 casting NULL pointers. Should be unnecessary in an upcoming GTK
7024 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
7028 * lib/widgets.c: Now uses correct context to get font families.
7030 * lib/diagdkrenderer.c (get_text_width, draw_string):
7031 * lib/dialibartrenderer.c (draw_string):
7033 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
7034 (dia_font_build_layout): Unified the twiddle factors into a use of
7035 global_size_one. But I deeply distrust Pango for seeming to
7036 change size of fonts every time I turn my back.
7041 * app/menus.h: Updated some more methods to also be more specific
7045 * app/recent_files.c:
7046 Changed to return most specific type, to avoid run-time type errors.
7048 * app/menus.c (menus_get_item_from_path): Non-gnome version now
7049 gets menu_item rather than widget, which works better.
7051 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
7053 * app/display.c: (new_display):
7054 * app/menus.c: (menus_get_item_from_path):
7055 Relying on the tearoff to locate the input methods menu wasn't a
7056 good idea: tearoffs seem to be an endangered species nowadays.
7057 Anyway, the IM menu seems to be working now.
7059 * app/interface.c: hinted the window manager that the toolbox window
7060 is a toolbox window. Not that my (fairly default configuration)
7061 sawfish cares, but other NETWM compliant WMs may.
7068 * app/layer_dialog.c:
7069 * app/linewidth_area.c:
7071 * app/sheets_dialog.c:
7074 The GTK doc says to avoir gtk_window_set_wmclass() and
7075 gtk_window_set_policy(), and use gtk_window_set_role() and
7076 gtk_window_set_resizable(), respectively.
7078 * app/preferences.c: (prefs_create_dialog):
7079 * app/preferences.h:
7080 * app/display.c: (display_set_active):
7081 Added a preference to have the toolbox hover over diagram windows.
7083 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
7085 * lib/diagdkrenderer.c (get_text_width, draw_string):
7086 Freetype-based string drawing now works. Not very fast, though.
7087 I wish I could use the graphics card for this:( I'm doing three
7088 bitmap loops where I should be doing one. The size is not correct
7089 either, despite having get_text_width give the right thing.
7091 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
7093 * app/connectionpoint_ops.c (diagram_update_connections_object):
7094 Allows more than one connectionpoint on an object to be moved at a
7097 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
7099 * configure.in: Added cs to ALL_LINGUAS.
7101 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
7103 * app/paginate_psprint.c: Removed unnecessary decl of autosave
7106 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
7108 * app/export_png.c (export_png_ok): Saving more variables from the
7111 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
7113 * lib/dialibartrenderer.c (begin_render):
7114 (end_render): Correct pushing and popping of font contexts.
7115 (draw_string): Double zooming eliminated, strange twiddle factor
7116 introduced (grumble). Close to working now, but there are still
7117 strange differences from font to font. In particular, some fonts
7118 really mess with the cursor and extents.
7120 * app/render_eps.c (export_eps):
7121 * app/diapsrenderer.c (dia_ps_renderer_finalize):
7122 Fixed file closing confusion, no longer dependent on PS/EPS.
7124 * app/diagram.c (diagram_place_down_selected)
7125 (diagram_place_up_selected): Now implemented.
7127 * lib/font.c (dia_font_init):
7129 Redesigned the font init/context pushing code. Start of fix for
7130 font name differences.
7132 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
7134 * app/sheets_dialog_callbacks.c: Fix a typo.
7136 2002-10-15 Hans Breuer <hans@breuer.org>
7138 * app/diapsrenderer.[hc] : (new files, old content :-)
7139 simple base class for post script rendering. Does neither
7140 use Pango/FT2 nor does it handle non latin1 characters.
7141 The fancy stuff which nowadays appears to be needed should
7142 probably be done in derived class(es)
7144 * app/makefile.msc app/Makefile.am : added new files
7146 * app/paginate_psrint.c : re-enabled and used as test
7147 for the simple ps renderer above.
7149 * app/render_eps.[hc] : ripped out common ps code and
7150 moved to DiaPsRenderer. The rest of the file is mostly
7151 disabled. And I don't understand enough of it to
7154 * app/diaepsrenderer.h : short lived, removed.
7156 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
7158 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7159 as a plugin (thanks to Torben Nielsen).
7161 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
7163 * app/diaepsrenderer.h:
7165 * app/paginate_psprint.c:
7166 #ifdef'd out enough ps stuff to allow compile. Now we just need
7169 2002-10-12 Hans Breuer <hans@breuer.org>
7171 [last plug-in ported]
7173 * plug-ins/xfig/xfig-export.c : ported to new renderer api
7175 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7176 scale color values to [0..1.0] to properly reconstruct
7179 * plug-ins/xfig/xfig-common.c : some cleaning
7181 2002-10-12 Hans Breuer <hans@breuer.org>
7183 [decrease inter-plug-in-dependencies]
7185 * objects/custom/shape_info.[hc] : move parse_style()
7186 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7187 the related structs and constants.
7188 * objects/custom/custom_object.c : reflect namespace
7191 * lib/dia_svg.[hc] : new files
7192 * lib/makefile.msc lib/Makefile.am : add new files
7193 * lib/libdia.def : updated externals
7195 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7197 * plug-ins/svg/svg.c : enable svg import for win32 (and
7198 probably for other non ELF builds)
7200 * plug-ins/makefile.msc : enable svg import
7202 2002-10-11 Hans Breuer <hans@breuer.org>
7204 * plug-ins/metapost/render_metapost.[hc] : ported
7206 * plug-ins/pstricks/render_pstricks.[hc] : dito
7208 2002-10-11 Hans Breuer <hans@breuer.org>
7210 * plug-ins/cgm/cgm.c : ported, appears to work as before,
7211 but graphic apps available to me can't import the generated
7212 files (the could not with Dia-0.90 cgm as well) ...
7214 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7215 Removed all those function which did emulate 'complex'
7216 drawing ops with basic ones (e.g. rect by line) cause this
7217 stuff is already provided by the base class
7218 * plug-ins/dxf/dxf-import.c : removed render.h include
7220 * plug-ins/python/pydia-font.[hc]
7221 plug-ins/python/pydia-text.c : finally ported to new font api
7223 * plug-ins/python/pydia-layer.c : add extra parameter
7224 to layer_find_closest_connectionpoint()
7226 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7228 * plug-ins/python/python.c : added missing copyright notice
7230 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
7231 actually use the renderers set_font implementation
7233 * plug-ins/renderer.inc : unused now, removed
7234 * plug-ins/Makefile.am : reflect it
7236 2002-10-08 Hans Breuer <hans@breuer.org>
7238 * app/render_gdk.c : don't add the InteractiveRenderer
7239 interface multiple times (it's added to the type, not
7241 * app/render_libart.c : dito. It's currently added
7242 unconditional cause eport_png uses it, but claims
7243 to be non-interactive. Probably set_size should be moved
7244 to the DiaRenderer interface.
7246 * lib/dialibartrenderer.c : add implementations for
7247 get_<width|height>_pixels. Libart rendering works again.
7248 DiaLibartRenderer::draw_image : use dia_image_rowstride()
7251 * lib/diatransform.c(dia_transform_coords_double) :
7252 don't ROUND() the returned values
7254 * plug-ins/pixbuf/pixbuf.c : added import function. It
7255 simply creates a wrapping "Standard - Image" object.
7257 * plug-ins/shape/shape-export.c : use the more direct
7258 method to call base class methods
7260 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
7262 * lib/font.c (dia_font_init): Changed dia_font_init to return old
7263 pango context, to allow stacked contexts (for printing while
7272 * lib/connectionpoint.h
7275 * lib/diagdkrenderer.h
7277 * lib/dialibartrenderer.h
7280 * lib/diasvgrenderer.h
7281 * lib/diatransform.h
7288 * lib/neworth_conn.h
7303 Moved all externally visible struct typedefs into diatypes.h, as
7304 per Hans' suggestions.
7306 2002-10-07 Steffen Macke <sdteffen@web.de>
7308 * lib/Makefile.am: removed a '\' causing problems
7310 2002-10-07 Hans Breuer <hans@breuer.org>
7312 [Libart Renderer resurrected; almost it's compiling but
7313 almost instantly crashing :-]
7315 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
7316 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
7317 * lib/diatransform.[hc] : added dia_transform_coords_double()
7319 * app/display.c : the right parameters for new_renderer_libart()
7320 * app/export_png.c : ported, removed the blind Display hack
7322 * app/makefile.msc lib/makefile.msc
7323 lib/Makefile.am : updated
7325 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
7327 2002-10-06 Hans Breuer <hans@breuer.org>
7329 * plug-ins/pixbuf/pixbuf.c : (new file)
7330 there is a new export plug-in called 'Pixbuf' which uses
7331 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
7332 formats (currently only PNG and JPEG).
7334 2002-10-06 Hans Breuer <hans@breuer.org>
7337 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
7339 * lib/dia-enums.h lib/diatransform.[hc]
7340 lib/diarenderer.[hc] lib/diainteractiverenderer.c
7341 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
7344 * lib/makefile.msc lib/makefile.am : added new files
7346 * lib/plug-ins.c : g_module_error() returns a locale
7347 string, convert to utf8 before further usage
7349 * lib/render.h : #error out. Everything including this
7351 * lib/*.[hc] : ported to new renderer api
7353 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
7354 just to make the rest compile
7355 * app/render_eps.c : temporary disabled all of this
7356 * app/render_eps.h : removed RendererEPS
7358 * app/render_gdk.[hc] : a small wrapper around the new
7359 DiaGdkRenderer form lib/*
7361 * app/render_libart.h : removed RenderLibart definition
7362 * app/render_libart.c : not yet ported to new DiaRenderer
7363 but having an implementation to untie form FT2 dependency
7364 at least on win32. It is using new Pango api form bug #94791
7366 * app/render_pixmap.[hc] : a small wrapper around the new
7367 DiaGdkRenderer form lib/*
7369 * app/display.h : removed render_*.h includes
7370 * app/display.c : the only place where specific
7371 renderers need to be known
7373 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
7374 use new DiaInteractiveRenderer interface
7376 * app/*.c : ported to new renderer api
7377 * object/*/*.c : ported to new renderer api
7378 s/render.h/diarenderer.h/
7379 s/Renderer/DiaRenderer/
7380 s/renderer->ops/renderer_ops/
7381 add in every draw method:
7382 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
7384 * plug-ins/hpgl/hpgl.c :
7385 plug-ins/wmf/wmf.cpp
7386 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
7387 * plug-ins/shape/shape-export.c
7388 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
7389 (nice how small these files became :-)
7391 2002-09-28 Hans Breuer <hans@breuer.org>
7393 * */makefile.msc : updated
7395 * app/defaults.c : don't gdk_invalidate_rect(NULL)
7396 * app/disp_callbacks.c :
7397 can't cast GtkWindow to GdkWindow, use shell->window
7398 (ddisplay_unrealize) don't use already unrefed im_context
7400 can't cast from GtkMenu to GtkMenuItem
7401 (ddisp_destroy) : mark im_context as unrefed
7403 * lib/dia_xml (data_font) : prefer new font format over old one
7404 (data_add_font) : write the legacy name to allow file exchange
7405 with pre Pango versions of Dia, which would otherwise crash
7406 on missing font 'name' attribute.
7407 * lib/font.c (dia_font_get_legacy_name) : improved implementation
7408 to get a better match.
7410 * lib/libdia.def : updated
7412 * lib/messages.c : don't gdk_widget_show(NULL)
7414 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
7416 [make Dia compile, link _and_ work with mingw/gcc3.2]
7418 * config.h.win32 : #define LIBXML, this gets defined from libxml
7419 header but only for _MSC_VER. The mingw build did access an
7420 unitialized function pointer for xmlFree.
7422 * */makefile.mingw : updated (some plug-ins have build issues)
7424 * lib/handle.h lib/object.h : there appears to be no
7425 forward declaration of the form
7426 typedef enum _HandleId HandleId
7427 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
7428 use of enum `_HandleId' without previous declaration
7430 * app/paginate_gdiprint.cpp : added a hack to avoid g++
7431 naming conflict on 'export'
7433 * app/paginate_gdiprint.h : forward declare Diagram
7435 * objects/SADT/annotaion.c : use g_random_double()
7437 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
7439 * app/modify_tool.c: Made motion not happen until sufficiently
7440 large or past double-click interval, to avoid accidental moving
7441 when doubleclicking. Got the double-click time right, and fixed
7442 some issues with release. There are some corner cases that may
7443 exhibit strange behaviour, will look at those later. Nah, let's
7444 not care about those, they are rare and not dangerous.
7446 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
7448 * app/layer_dialog.c:
7450 * plug-ins/dxf/dxf-import.c:
7451 * plug-ins/python/pydia-diagram.c:
7452 * lib/diagramdata.c:
7453 * lib/diagramdata.h:
7454 Improved the consistency of the obj->parent_layer backlinks (esp.
7459 * lib/dynamic_obj.[ch] (NEW):
7462 * app/dynamic_refresh.[ch] (NEW):
7463 * objects/Misc/analog_clock.c:
7464 Added support for dynamic refresh (animated objects).
7466 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
7468 Patch from Owen Taylor <otaylor@redhat.com>:
7469 * doc/en/Makefile.am:
7470 * doc/en/dia-manual.sgml:
7471 * doc/en/usage-objects.sgml:
7472 * doc/en/usage-quickstart.sgml:
7473 * doc/pl/Makefile.am:
7474 * doc/pl/dia-manual.sgml:
7475 * doc/pl/usage-objects.sgml:
7476 * doc/pl/usage-quickstart.sgml:
7478 - Change the DTD declration from an outdated GNOME one to a
7481 - Remove close tags for <graphics> which aren't allowed for
7484 - A hacky fix for a problem where some versions of db2html don't
7485 create *.css files. (If *.css doesn't match anything, then you get
7486 the global explicitely.)
7490 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
7492 * objects/custom/custom_object.c:
7493 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
7494 were never properly prepared for use when reloading a shape with
7495 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
7496 reporting the problem and coming up with a fix! (Closes: #93974)
7498 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
7499 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
7502 * app/display.c: updated menu item paths Alan's patch had moved.
7504 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
7505 load the sheet-provided icon (libpng versions mismatch, grrr.).
7508 * objects/Makefile.am:
7509 * objects/Misc/Makefile.am (NEW):
7510 * objects/Misc/libmisc.c (NEW):
7511 * objects/Misc/analog_clock.c (NEW):
7512 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
7513 * sheets/Misc.sheet.in: just a little experiment...
7515 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
7517 * plug-ins/xlst/Makefile.am: found a way to silence automake while
7518 not forcing everyone to build using libxslt.
7522 * lib/object_defaults.c:
7525 * lib/properties.[ch]:
7527 * objects/standard/box.c:
7528 * objects/UML/state_term.c:
7530 * objects/FS/flow-ortho.c:
7534 * app/diagram_tree.c:
7536 * app/disp_callbacks.c:
7539 * app/lineprops_area.c:
7541 * app/preferences.c:
7544 * app/sheets_dialog_callbacks.c:
7545 * plug-ins/xslt/xslt.c:
7546 * plug-ins/metapost/render_metapost.c:
7547 * plug-ins/xfig/xfig-export.c:
7548 * plug-ins/shape/shape-export.c:
7550 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
7551 unused variables, mostly)
7554 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
7556 * app/Makefile.am: modified run_dia.sh so that we recover the
7557 ability to run a debugger despite libtool's hacks.
7559 * plug-ins/dxf/Makefile.am:
7561 "make distcheck" fixes.
7563 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
7565 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
7566 <mfranzoni@madd.it>: Check for the type being NULL.
7568 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
7570 * app/render_eps.c (set_font): Re-tweaked font size for printing.
7572 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
7574 Patch from Angus Ainslie <angusa@deltatee.com>:
7575 * plug-ins/dxf/dxf-import.c:
7576 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
7578 (plus a couple extra fixes by me, such as the removal of printf's,
7579 adapting for recent changes, and killed a couple warnings)
7581 * app/authors.h: a 60K patch isn't insignificant, is it?
7583 2002-09-09 Tor Lillqvist <tml@iki.fi>
7585 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
7586 as before) and -lfreetype (using AC_CHECK_LIB). At least on
7587 Solaris with Sun's compiler (Forte C), you need to link also the
7588 dia application with -lfreetype, even if it is implicitly linked
7589 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
7590 which is what they actually mean. Use FREETYPE_LIBS for
7593 Don't look for libsunmath if isinf() is not found in math.h (as on
7594 Solaris). The sunmath library is part of Forte C and not present
7595 on all machines. Besides, even if isinf was found in libsunmath,
7596 we didn't use it in the Makefile.am.
7598 Fix a couple of bashisms.
7600 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
7601 too, on Solaris with Forte C.
7603 Don't try to use the gcc flags with other compilers.
7604 DIA_CHECK_CFLAG gives a false indication that Forte C understands
7605 the gcc -f switches, but in fact they get interpreted meaning
7606 something completely different.
7608 Define the automake conditional HAVE_CGC.
7610 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
7612 Use -export-dynamic only with gcc.
7615 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
7616 PANGOFT2_CFLAGS rename.
7618 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
7620 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
7623 * lib/paper.c: Workaround for gccism: Can't use inline this way with
7626 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
7628 * lib/text.c(set_string): fixed a memory leak (char* ain't no
7629 std::auto_ptr<char> !).
7632 * app/interface.[ch]:
7633 * app/ddisp_callbacks.[ch]: Added some basic support for input
7634 methods (GtkIMContext-based)
7637 * app/Makefile.am: made libdia a shared object (per Tor
7638 Lillqvist's suggestion/request), to cope for platforms with a less
7639 than par dynamic library loader.
7641 * app/display.c: disabled the input method menu (I really don't
7642 see where and how to put them. Blame Frozen Bubble )
7644 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
7646 * objects/flowchart/box.c (box_update_data): Made resizing
7647 possible again (only set width & height when resized too small).
7649 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
7651 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
7654 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
7656 * app/authors.h: now showing Akira TAGOH's name in the native script.
7658 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
7660 * plug-ins/xslt/xslt.c: Removed glib warning for unset
7663 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
7665 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
7666 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
7669 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
7671 * objects/UML/class.c: Fixed showing of empty stereotypes and got
7672 the string placed correctly.
7674 2002-08-30 Hans Breuer <hans@breuer.org>
7676 * lib/font.c (dia_font_get_style) : don't shift already
7677 shifted DIA_FONT values.
7679 * lib/libdia.def : updated externals
7681 * app/disp_callbacks.c : on win32 GdkEventKey::string already
7682 is in UTF-8. (Longterm this probably should be handled on the
7685 * app/command.[hc] app/display.[hc] app/menus.c : add code to
7686 switch display renderers again. The libart renderer is very
7687 useful for win9x with it's limited GDI.
7689 * app/render_gdk.c : use g_warning instead of printf which gets
7690 nowhere on win32 (non console apps)
7692 * app/render_libart.c : make it compile without FREETYPE
7694 * objects/makefile.msc plug-ins/makefile.msc : added clean target
7696 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
7698 * app/render_eps.c (postscript_draw_contour): Debugging statement
7699 that allowed me to figure out font problems.
7701 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
7702 items for font styles.
7704 * objects/FS/flow-poly.c:
7705 * objects/FS/flow-ortho.c:
7706 * objects/FS/flow.c: Further conversion away from GTK dialogs.
7707 Can't set a default label right now:(
7709 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
7711 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
7712 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
7714 * Makefile.am: rules relating to AUTHORS and THANKS
7716 * AUTHORS: file content changed to more accurately
7717 reflect guideline requirements.
7718 * TODO: warning added about Gnome BTS.
7719 * KNOWN_BUGS: warning added about Gnome BTS.
7723 * AUTHORS: added full copyright info.
7724 * mkauthors-placeholder: (removed)
7726 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
7728 * app/paginate_psprint.c (print_page): Fixed text printing after
7729 tip from Dov Grobgeld.
7731 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
7733 * app/paginate_psprint.c (print_page): Fixed color of clip
7736 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
7738 * sheets/Makefile.am: enabled intltool-merge translation cache for
7742 * mkauthors-placeholder:
7743 * AUTHORS: revived that file (in a placeholder form) so that
7744 automake stops yelling.
7745 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
7748 Heh, by the way, thanks Christophe. I feel better now.
7750 2002-08-25 Christophe Merlet <christophe@merlet.net>
7752 * app/command.c: Removed invalid multibyte sequence in Chepelov.
7754 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
7756 * lib/dia_image.c (dia_image_rgb_data):
7757 Bugfixes in image data retrieval.
7759 * app/render_eps.c: Refactoring of new_*_renderer.
7761 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
7765 * lib/dia_image.c: Support for rowstride != width (odd width images)
7767 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
7769 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
7770 * plug-ins/xfig/xfig-import.c: Removed assertion.
7772 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
7774 * lib/paper.c: Removed app/preferences.h reference.
7776 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
7778 * plug-ins/svg/svg-import.c:
7779 * plug-ins/xfig/xfig-import.c:
7780 * lib/Makefile.am (libdia_a_SOURCES):
7781 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
7783 * objects/standard/create.h:
7784 * objects/standard/polygon.c (polygon_create):
7785 * objects/standard/polyline.c (polyline_create):
7786 * objects/standard/beziergon.c (beziergon_create):
7787 * objects/standard/bezier.c (bezierline_create):
7788 Moving create.h into lib.
7790 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
7792 * app/render_libart.[ch]: Work on PNG font export. Something's
7793 still fishy with the scaling, I don't get it.
7796 * app/interface.c: Replaced broken zoom combo with entry+menu.
7797 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
7799 * app/render_gdk.c (get_text_width): Checks for validity of text.
7800 Temporary help while debugging input -- should only activate on
7803 * objects/SADT/annotation.c:
7804 * objects/GRAFCET/transition.c:
7805 * objects/FS/function.c: Removal of gtk.h include.
7807 * objects/UML/state.c (state_load): Warnings about using State
7808 object for initial/final states.
7810 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
7812 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
7814 * app/render_eps.c: Text rendering that scales correctly. Too bad
7815 the standard fonts don't get selected right.
7817 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
7819 * lib/diagramdata.h:
7820 * lib/paper.c (get_paper_info):
7822 * plug-ins/xfig/xfig-import.c:
7823 Committed before testing. I am so embarrased. This compiles, now
7824 that the includes are in the right order.
7826 * app/diagram.c (diagram_init):
7827 * app/app_procs.c (do_convert):
7828 * app/preferences.h:
7829 * lib/diagramdata.h:
7830 * lib/diagramdata.c (new_diagram_data):
7832 * lib/paper.c (get_paper_info):
7833 Moved new_diagram part of prefs into lib/diagramdata.h. More
7834 could be done in new_diagram_data() now.
7836 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
7838 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
7840 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
7842 * configure.in: removed silly user-visible comment
7844 (actually, this is a dummy entry before I manually run nemo; for
7845 some dist-upgrade related reason, this morning's run aborted before
7846 the snapshots were created)
7848 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
7850 * objects/network/wanlink.c:
7851 * objects/network/bus.c:
7854 * objects/custom/custom_object.c:
7855 * objects/network/wanlink.c:
7856 * objects/flowchart/parallelogram.c:
7857 * objects/flowchart/ellipse.c:
7858 * objects/flowchart/diamond.c:
7859 * objects/flowchart/box.c:
7860 Removed GTK defaults stuff.
7862 * objects/UML/fork.c:
7863 * objects/UML/object.c:
7864 * objects/UML/lifeline.c:
7865 * objects/UML/branch.c:
7866 * objects/GRAFCET/transition.c:
7867 * objects/FS/function.c: Removed GTK include.
7869 * objects/FS/flow-ortho.c:
7870 * objects/FS/flow.c: Made the label behave again.
7871 Also removed GTK defaults stuff.
7873 2002-08-06 Hans Breuer <hans@breuer.org>
7875 * app/autosave.c : ported to GDir which is the improved
7876 cross platform replacement for <dirent.h>
7878 * app/makefile.msc : build autosave.obj
7880 * app/font.c : some (bad?) code calls
7881 dia_font_scaled_decent() not only with empty string but
7882 with NULL. Handle it gracefully.
7884 * lib/paper.c : don't depend on ../app. Although IMO
7885 this shouldn't be allowed on any platform it is only
7886 disabled for win32, where it simply doesn't work
7889 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
7891 * objects/fs/flow.c : conditionalize debug spew, disabled
7892 and 'ported' to use g_print. Simple printf won't work with
7893 standard win32 gui apps, may even crash them.
7895 * plug-ins/makefile.msc : DISABLED svg-import cause it
7896 depends on ../objects/custom. This not only break the
7897 build for all non ELF systems but IMO also isn't acceptable
7898 from a design point of view. See dia-list mail on subject.
7900 * plug-ins/python/makefile.msc :
7901 plug-ins/python/python.c : remove all references to dirent
7903 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
7905 * configure.in: added ro to ALL_LINGUAS
7909 * ../translation-graphs/transgraph.py: added support for fuzzy
7910 translations. Enlarged the graphs.
7912 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
7914 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
7915 key events according to locale. No clue if this works for
7918 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
7920 * lib/text.c: Various UTF8 related fixes, in particular in
7921 deleting. Text_insert_char is fine, far as I can tell.
7923 * app/interface.c (create_display_shell):
7924 * app/commands.c: Now uses gtk_clipboard functions, for they are
7925 much simpler. Also handles Win32 clipboard. Non-ascii chars
7926 don't seem to get handled correctly by text_insert_char in
7929 * app/commands.c (received_selection_handler): Got utf8 handling
7930 on paste, and individual char handling out of commands.c. Pasting
7931 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
7933 * lib/message.c (gtk_message_internal): Message dialog re-shown
7934 when new message appears. Maybe it should even move to top?
7938 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
7939 (again) and case-insensitive.
7941 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
7944 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
7946 * app/commands.c (edit_cut_text_callback):
7947 * lib/text.c (text_delete_all): Now functioning undo for text cut.
7949 * app/commands.c (edit_cut_text_callback): Now removes text.
7950 Undo is broken, though.
7952 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7954 * app/diagram.c (diagram_update_menu_sensitivity):
7955 Making cut_text active.
7958 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
7959 clipboard. Also removed AA callback.
7961 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7963 * objects/chronogram/chronoref.c:
7964 * objects/chronogram/chronoline.c:
7965 * objects/SADT/annotation.c:
7966 * objects/SADT/arrow.c:
7967 * objects/SADT/box.c:
7968 * objects/GRAFCET/vergent.c:
7969 * objects/GRAFCET/vector.c:
7970 * objects/GRAFCET/step.c:
7971 * objects/GRAFCET/condition.c:
7972 * objects/GRAFCET/action.c:
7973 * objects/ER/participation.c:
7974 * objects/ER/relationship.c:
7975 * objects/ER/entity.c:
7976 * objects/ER/attribute.c:
7977 Removing unnecessary GTK references.
7979 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
7981 * objects/standard/image.c:
7982 * objects/standard/textobj.c:
7983 * objects/standard/ellipse.c:
7984 * objects/standard/polygon.c:
7985 * objects/standard/beziergon.c:
7986 * objects/standard/box.c:
7987 Making default default properties.
7989 * objects/standard/image.c:
7990 * objects/standard/arc.c:
7991 * objects/standard/box.c:
7992 * objects/standard/zigzagline.c:
7993 * objects/standard/polyline.c:
7994 * objects/standard/line.c:
7995 * objects/standard/ellipse.c:
7996 * objects/standard/polygon.c:
7997 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
7999 * lib/object_defaults.c (dia_object_default_create):
8002 * lib/object.c (object_copy_using_properties):
8003 * lib/propdialogs.c:
8004 * lib/propinternals.h:
8005 * lib/propobject.c (object_create_props_dialog)
8006 (object_copy_props):
8007 Removing the standard (toolbox) properties from defaults dialogs.
8009 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
8011 * lib/font.c (dia_font_scaled_string_width)
8012 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
8014 * lib/text.c (text_calc_boundingbox): Take descent into account.
8016 * objects/standard/bezier.c (bezierline_draw):
8017 * lib/render.c (draw_bezier_with_arrows):
8018 Better arrow drawing for beziers. Doesn't change the mouse-click
8021 * lib/arrows.h: Some const-ness.
8023 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
8025 * lib/render.c (draw_arc_with_arrows):
8026 * objects/standard/arc.c (arc_draw): Better arrow drawing for
8027 arcs. Doesn't change the mouse-click area yet.
8029 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
8035 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
8037 * app/group.c (group_draw): Forgotten commit: Groups to draw as
8038 objects (using default routines).
8042 * lib/diagramdata.h:
8043 * lib/diagramdata.c (layer_find_closest_connectionpoint):
8044 * objects/standard/zigzagline.c (zigzagline_move_handle):
8045 * app/diagram.c (diagram_find_closest_connectionpoint):
8046 * plug-ins/python/pydia-diagram.c
8047 (PyDiaDiagram_FindClosestConnectionPoint):
8048 * app/object_ops.c (object_connect_display)
8049 (object_find_connectpoint_display)
8050 * app/create_object.c (create_object_button_press)
8051 (create_object_motion):
8052 * app/modify_tool.c (modify_motion):
8053 Adding object param to allow connectionpoint and handle coinciding.
8055 * objects/standard/zigzagline.c (zigzagline_check_orientation):
8056 Fixing minor problems.
8058 * objects/standard/ellipse.c (ellipse_update_data):
8059 Added direction hints.
8061 * lib/diagramdata.c:
8064 * lib/diagramdata.h:
8065 * objects/standard/zigzagline.c:
8066 First working example of zigzagline hints, currently only between
8069 2002-07-27 Steffen Macke <sdteffen@web.de>
8071 * plug-ins/svg/render_svg.c: added support for rounded
8072 rectangles (fixes #69053 if compile with
8074 * object/custom/shape_info.[c|h]: made parse_style and
8075 parse_path accessible for svg plug-in
8076 * plug-ins/svg/Makefile.am:
8077 * plug-ins/svg/svg.c:
8078 * plug-ins/svg/svg-import.c(new): added SVG import filter
8080 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
8082 * objects/standard/box.c:
8083 * objects/standard/zigzagline.c (zigzagline_move):
8084 More work on zigzagline hints.
8086 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
8087 * lib/connectionpoint.h:
8088 Hints for zigzaglines.
8090 * app/properties.c (properties_show):
8091 * app/defaults.c (defaults_show):
8093 * lib/propobject.c (object_create_props_dialog):
8095 * objects/FS/flow-poly.c:
8096 * objects/network/wanlink.c:
8097 * objects/network/bus.c:
8098 * objects/UML/class.h:
8099 * objects/UML/class_dialog.c:
8100 * objects/UML/association.c:
8101 Start of removing toolbox props from props dialogs.
8105 * app/lineprops_area.c (dia_arrow_chooser_new):
8106 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
8108 * app/create_object.c:
8109 * app/modify_tool.c:
8114 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8116 * app/preferences.c:
8118 * app/diapagelayout.c:
8119 New prefs selector kind PREF_CHOICE chooses between a list of
8120 strings. Used for picking default paper.
8122 * app/preferences.c (prefs_data):
8123 * lib/paper.c (get_paper_info): Added prefs setting for
8126 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8127 line segments at the ends (bug #86603).
8129 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8131 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8132 #60324: Now calls update_data after copy.
8134 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8135 Now doesn't steal selection from non-object tools.
8137 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
8139 * app/commands.c (help_manual_callback): Uses BROWSER environment
8140 variable when available.
8142 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
8144 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8145 object from the new sheet when changing.
8147 * app/app_procs.c (app_init): Uses more standard size icon, from
8148 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
8150 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
8152 * objects/UML/implements.c (implements_update_data):
8153 * objects/UML/realizes.c (realizes_update_data):
8154 * objects/UML/dependency.c (dependency_update_data):
8155 Test for null strings before calling on ascent.
8157 * objects/UML/realizes.c (realizes_draw):
8158 * objects/UML/message.c (message_draw):
8159 * objects/UML/generalization.c (generalization_draw):
8160 * objects/UML/dependency.c (dependency_draw)
8161 * objects/UML/constraint.c (constraint_draw):
8162 * objects/GRAFCET/condition.c (condition_draw):
8163 * objects/UML/association.c (association_draw):
8164 * objects/FS/flow-ortho.c (orthflow_draw):
8165 * objects/FS/flow.c (flow_draw): Change to use
8166 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
8169 * lib/arrows.c (calculate_arrow_point):
8172 * objects/standard/zigzagline.c:
8173 * objects/standard/polyline.c:
8174 * objects/standard/line.c: Work towards better arrow drawing.
8176 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
8178 * objects/UML/state.c: Starting phase-out of State object as
8179 initial/final state (which never worked right).
8181 * app/app_procs.c (app_init): --version command line option for
8184 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8186 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
8188 * app/render_eps.c: Removed debugging info.
8190 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8191 Kludge to make ascent and descent work for empty strings. Won't
8192 work when using non-ASCII fonts. Better would be to get a
8193 PangoFont and ask directly.
8195 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8198 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8201 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
8203 * plug-ins/xfig/xfig-export.c: First use of draw_object render
8204 function: All shapes are now groups in XFig export.
8206 * lib/diagramdata.c (normal_render):
8209 * app/display.c (ddisplay_obj_render):
8210 New render function for drawing objects, allows renderers to group
8211 or otherwise specially handle objects. We may want to reconsider
8212 calling it in app/display.c, as we 'know' the object draw function
8213 is the default one there.
8215 * lib/Makefile.am: Removed extra \ that broke stuff.
8217 * plug-ins/xfig/xfig-import.c:
8218 Spline import for xfig. Not perfect.
8220 * objects/standard/create.h:
8221 * objects/standard/bezier.c (bezierline_create):
8222 * lib/bezier_conn.c:
8223 * lib/beziershape.c (beziershape_set_points):
8224 * lib/bezier_conn.h:
8225 * lib/beziershape.h:
8226 Support for creating beziers non-interactively.
8228 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
8230 * plug-ins/xfig/xfig-import.c: Support for polygons and
8231 polylines. Special warning handling system removed.
8233 * lib/message.c (gtk_message_internal): Fixed bug involving
8234 closing message window and then getting repeated message.
8238 * configure.in (GETTEXT_PACKAGE):
8239 Update based on bug #88199. Hopefully this doesn't break too much
8242 * dia.desktop.in (_Comment): Changed after suggestion from
8243 calum.benson@ireland.sun.com (bug 88345)
8245 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8246 <loli@unsa.edu.ar> that makes user/system distinction better.
8248 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8250 * app/render_libart.c: Got the context right, removed crashes.
8260 Remove libart #defines from most places (still around for png export).
8262 * app/render_libart.h:
8263 * app/render_libart.c:
8264 * configure.in (HAVE_LIBART):
8265 Starting on update of libart stuff for png export (without X).
8267 * app/autosave.h (autosave_check_autosave):
8270 * app/Makefile.am (dia_core_files):
8272 * app/diagram.c (diagram_set_modified):
8274 * app/app_procs.c (app_init):
8275 Autosave support. No automatic restore yet.
8277 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8279 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8282 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
8284 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8286 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
8288 * Fix for 'make dist' etc. --- problem caused by
8289 previous AUTHORS patch.
8291 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
8293 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
8295 (set_font): NULL check.
8297 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
8299 * app/disp_callbacks.c:
8301 Addition to the object menus allows check menu items.
8303 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
8305 * HACKING: completely changed to bring up-to-date.
8306 * AUTHORS: file needs REMOVING from CVS as now
8307 dynamically generated.
8308 * app/authors.h: split into subcategories for original
8309 authors, maintainers, etc.
8310 * app/app_procs.c: --credits rewritten to support new
8312 * app/commands.c: no changes to about box code, comment
8314 * Makefile.am: added rule for AUTHORS. I'm still
8315 inexperienced with automake, it seems to work, but
8316 for AUTHORS-related bugs, look at this change first.
8318 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
8320 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
8321 work. Back to including xslt dir always.
8323 * objects/UML/uml.c:
8324 * objects/UML/class.h:
8325 * objects/UML/class_dialog.c:
8326 * objects/UML/class.c: Patch from
8327 <mattam@netcourrier.com>: Adds comment visibility switch, also
8330 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
8331 for state/fork/activity stuff.
8332 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
8333 * objects/UML/Makefile.am:
8334 * objects/UML/uml.c:
8335 * sheets/UML.sheet.in: Added new objects activity, fork,
8337 * objects/UML/pixmaps/state_term.xpm:
8338 * objects/UML/state_term.c: New, only initial/final states.
8339 * objects/UML/pixmaps/activity.xpm:
8340 * objects/UML/activity.c: New, activity state.
8341 * objects/UML/pixmaps/fork.xpm:
8342 * objects/UML/fork.c: New, fork/join bar.
8343 * objects/UML/pixmaps/state.xpm: state icon.
8347 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
8348 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
8351 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
8353 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
8356 * app/Makefile.am: Commented out the diaconv parts while it's not
8357 used anyway. To come back later.
8359 * configure.in (HAVE_FREETYPE):
8362 * app/render_eps.c: Support for printing with freetype, better
8363 encapsulated now. Renders the text nicely, but ignores font
8364 setting. Requires pangoft2 to get the font outline, but non-text
8365 objects can still be rendered without it.
8368 * app/commands.c (objects_place_up_callback)
8369 (objects_place_down_callback):
8371 * app/diagram.c (diagram_place_down_selected)
8372 (diagram_place_up_selected): Starting support for moving objects
8375 * app/menus.c: Removed character/numeral shortcuts.
8377 2002-07-06 Hans Breuer <hans@breuer.org>
8379 * makefile.am app/makefile.am lib/makefile.am
8380 objects/makefile.am plug-ins/makefile.am
8381 plug-ins/python/makefile.am :
8382 added required files for win32 build to EXTRA_DIST
8384 * app/paginate_psprint.c app/render_eps.c
8386 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
8387 on Pango as currently is on win32 => no PostScript
8390 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
8391 use '/* noop */;' for empty case labels; replace
8392 debug spew printf with g_print which is guaranteed
8393 to work on win32, too.
8395 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
8396 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
8397 in the pango_font_description_set_weight() api documentation
8398 Take care for them in dia_font_get_style() too.
8400 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
8401 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
8402 rename Obliquity to Slant which appears to be the usual name,
8403 also rename dia_font_get_style_string -> dia_font_get_slant_string
8405 * plug-ins/wmf/wmf.cpp : finally ported to new font api
8407 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
8409 * objects/uml/association.c class.c large_package.c message.c
8410 if g_free() is used g_strdup needs to be used.
8411 * objects/custom/shape_info.c
8412 objects/ER/attribute.c entity.c
8413 objects/standard/image.c
8414 app/sheets_dialog_callbacks.c : more strdup cleaning
8416 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8418 * app/render_eps.c: Non-crashing printing (made the right
8419 context). Font output still fscked up.
8421 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
8423 * app/authors.h: Added file --- now master
8424 location for contributors data.
8425 * app/app_procs.c: Added --credits option.
8426 * app/commands.c: Modified about box to use
8429 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8431 * app/render_eps.c: First stab at EPS rendering using the contour
8432 code from PAPS. Crashes.
8434 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
8436 * app/recent_files.c (recent_file_history_remove):
8437 Fixed call to g_list_delete_link discarding return value.
8439 * lib/widgets.c (dia_font_selector_set_styles):
8440 * lib/font.h (DiaFontWeight):
8441 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
8443 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
8445 Contribution from Alan Horkan <horkana@tcd.ie>:
8448 * sheets/Assorted.sheet:
8449 A set of 40 assorted geometric shapes.
8451 * sheets/Assorted.sheet.in:
8452 * sheets/Makefile.am
8453 * shapes/Assorted/Makefile.am:
8454 * shapes/Makefile.am:
8457 Done the integration job of Alan's shapes. (Translators: have fun!)
8459 * po/dia.pot: refreshed the main potfile.
8461 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
8463 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
8465 * objects/UML/class.[ch]:
8466 * objects/UML/class_dialog.c:
8467 changed the number of connection points from a hardcoded value of
8468 8 to a #defined constant
8470 (I changed the constant back from 20 to 8, until we better know
8471 how we'll handle more connection points on the UML class in the
8472 future -- but Tim's patch is a welcome clean-up).
8474 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
8476 * shapes/MSE/demultiplexer.xpm:
8477 * shapes/MSE/node_center.xpm:
8478 * shapes/MSE/multiplexer.xpm:
8479 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
8480 Horkan <horkana@tcd.ie>
8482 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
8484 * lib/widgets.c: Total rehash of font selector, with font dialog
8485 option, expanding list (not LRU yet), and stuff.
8487 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
8491 Added a set of new setter/getters, some of them more specially for
8494 * plug-ins/shape/shape-export.c: (new_shape_renderer),
8495 (destroy_shape_renderer), (set_font), (draw_string):
8496 * plug-ins/svg/render_svg.c: (new_svg_renderer),
8497 (destroy_svg_renderer), (set_font), (draw_string):
8499 Actually exported the font face, style, weight and size (sodipodi
8500 agrees with dia on how a small sample should look like (a sample
8501 0.90 would not even display anyways). Yay !)
8503 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8505 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
8507 (end of ChangeLog-less patch)
8509 * objects/custom/shape_info.c (parse_style): now understands the
8510 font-style and font-weight attributes as well. Does not use
8511 anymore dia_font_new_from_legacy_name().
8513 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
8515 * objects/standard/textobj.c: Now uses stdprops for defaults.
8517 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
8518 * lib/font.c (dia_font_get_style): Style now linear and conversion
8521 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
8524 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
8526 * plug-ins/dxf/dxf-import.c:
8527 using dia_font_new_from_style()
8529 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8531 * objects/UML/class.[ch]: Added a comment field to class
8532 * objects/UML/uml.[ch]: Added a comment field to attributes,
8533 operations and parameters.
8534 * objects/UML/class_dialog.c: Added code for the new comment
8536 * plug-ins/xslt/*.xsl: Added some code to handle comments.
8537 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
8538 Added a $directory parameter for stylesheets so the output is
8539 in the good place (not in the $PWD).
8543 * AUTHORS: added contributors, updated maintainers. Removed the
8544 specific areas of action.
8546 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
8547 from a patch by Xing Wang <quixon@gnuchina.org>:
8549 * app/commands.c: help_about_callback now supports
8550 new-style GNOME about box as well as old GTK style.
8551 code also tidied (Closes: #85726)
8555 * app/commands.c: fixed the copyright (it's not all FSF), and
8556 maintainers. Synced contributors list with AUTHORS.
8558 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
8560 * lib/message.c: More work on repeating messages, now with
8563 2002-06-24 Hans Breuer <hans@breuer.org>
8565 * lib/widget.c : some more bits in place, at least
8566 it does something useful instead of crashing. Much
8567 better - but not all ok :-)
8569 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
8571 * lib/message.c (gtk_message_internal): First stab at repeating
8574 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8577 * objects/GRAFCET/*.c:
8579 * objects/UML/association.c: (one instance forgotten)
8580 * objects/UML/large_package.c:
8581 * objects/standard/textobj.c:
8584 using dia_font_new_from_style()
8586 2002-06-23 Hans Breuer <hans@breuer.org>
8588 * lib/font.c : giving some love to
8589 dia_font_new_from_legacy_name() that is making
8590 import of old files as painless as possible and
8591 provide an almost exact match where possible.
8592 It does not yet fully work because it interfers
8593 with the Style to DiaStyle conversion which comes
8596 [Changing these files is only allowed with Dia-0.90]
8597 * broken-files/fonts-0.90.dia : including the
8598 common hard-coded fonts from Dia-0.90. It also
8599 has drawn bounding-boxes for win32 as they were calculated
8600 from the former version (they were all too big).
8601 * broken-files/fonts-0.90-full.dia : all hardcoded
8602 fonts including the asian versions. On my machine
8603 this gives _a lot_ complaining about missing fonts
8604 and a finally a broken file display. Anyone having
8607 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8609 * objects/chronogram/*.c:
8610 * objects/custom/custom_object.c:
8612 using dia_font_new_from_style()
8614 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
8616 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
8617 font selector (stability, insensitivity).
8619 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
8620 stretching scheme for tweaking, and made scaling scheme faster
8622 (dia_font_dia_style_to_pango): Oops, % != /.
8624 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8627 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
8629 * plug-ins/xslt : Added an XSLT plugin to export dia files using
8630 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
8631 It includes a small config file to tell it what stylesheets to use.
8635 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
8636 GTK2.0/HIG compliant (the labels could be slightly more verbose,
8637 perhaps). Added back a couple forgotten _(). Removed //-style
8640 2002-06-23 Hans Breuer <hans@breuer.org>
8643 (dia_plugin_get_name) : don't crash plugin_manager
8645 (dia_plugin_load) : reuse the description field to
8646 store the error string if loading fails.
8648 * lib/font.[hc] : starting to beautify the new
8649 font api: proper namespacing, adding convenience
8650 functions like dia_font_new_from_style(), ...
8652 * objects/uml/*.c : use the new convenience functions.
8654 [Next thing I plan to do is changing the other font
8655 functions to take DiaStyle and make Style and
8656 BASIC_*_FONT vanish. As well as giving some love to
8657 dia_font_new_from_legacy_name().
8658 If anyone want's to help on converting the other
8659 objects to the new api during that, I would highly
8662 2002-06-23 Hans Breuer <hans@breuer.org>
8664 * lib/font.c : made it compile and small indent fixes.
8665 Is there a code-has-no-effect-so-needs-not-be-valid
8668 * lib/widgets.c : use g_strcasecmp
8670 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
8674 * lib/widgets.c: Font names sorted, style selector widget
8675 reappeared. Doesn't select the old style yet.
8677 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
8679 * lib/font.c: one who expects a text's font to be changed shall
8680 actually request the attributes to apply to the whole range of the
8683 * lib/font.c: extents computation was wrong.
8685 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
8686 if a last NULL parameter is added...
8688 * lib/font.c: extents computation was completely wrong. This looks
8689 much better this time.
8691 * objects/UML/class.c: fixed the various strings positions.
8693 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
8694 macros to get the hardcoded base fonts.
8696 * objects/ER/relationship.c: wasn't converted to DiaFont*
8698 2002-06-22 Hans Breuer <hans@breuer.org>
8700 * lib/widget.c : dont use backend specific functions
8701 to get on the font_families. Including it would mean
8702 including <windows.h> which breaks due to namespace
8705 * lib/libdia.def : updated externals
8707 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
8709 * lib/font.c : added empty dia_font_init_instance function,
8710 reformatting of dia_fon_unref to allow to set breakpoint,
8711 dia_fon_build_layout() : dont crash on string==NULL
8713 * lib/text.c (text_set_attributes) : don't unref the wrong font
8715 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
8716 stores lowercased font names, but dia_font_get_family()
8719 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
8722 * app/render_gdk.c: Patch from Hans Breuer.
8724 * app/Makefile.am (dia_core_files): diaconv commented out for now.
8726 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
8728 * lib/all files touched yesterday: took into account some of Hans
8730 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
8732 * objects/chronogram/*:
8735 * objects/flowchart/*:
8737 * objects/GRAFCET/*:
8739 * objects/standard/textobj.?:
8741 converted to the new DiaFonts.
8744 * plug-ins/pstricks/*:
8748 Made minimalistic conversions so that they'd at least compile.
8751 * app/render_pixmap.c:
8752 Converted to the new DiaFonts.
8757 made the minimal changes so that it would at least build.
8759 *** At this point, the thing builds on my machine, but segfaults
8762 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
8764 * configure.in: removed the backend-specific pango pkg_modules
8765 (trivial to add back if needed, when actually needed)
8768 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
8769 renderer. The APIs will have completely changed when we get around
8770 to redo a renderer for it, anyways.
8772 * font.[ch]: rewrote everything from scratch, with a Pango
8773 implementation. Normally, only backend-neutral things should go in
8776 **WARNING**: new rules for managing DiaFont* pointers: these are
8777 reference-counted GObjects. One >must< diafont_ref() and
8778 diafont_unref() as appropriate. I wish I could overload operator=()...
8780 lib/plug-ins.h: bumped up the plug-in API.
8785 lib/object_defaults:
8786 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
8787 again tomorrow with GObject.
8789 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
8791 **** The rest of the tree should be updated as well ****
8793 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
8797 * app/render_pixmap.c:
8798 * app/render_pixmap.h:
8799 * app/render_libart.h:
8800 * app/render_libart.c:
8802 * lib/font.c: Removed freetype stuff (still around in
8803 lib/widgets.c 'cause we might want the font selector widget).
8805 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
8807 * shapes/network/laptop.(xml|shape):
8808 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
8809 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
8811 2002-06-17 Hans Breuer <hans@breuer.org>
8813 * lib/object_defaults.c : #include <libxml/tree.h> not
8814 <tree.h> pointed out by Xing Wang
8816 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
8818 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
8820 * app/color_area.c: Update to
8821 gtk_color_selection_*_current_color() fixed bad crash issues, plus
8822 updated color conversions.
8824 * sheets/ER/weakentity.xpm: Accepted patch from
8825 quixon@gnuchina.org to make icon match actual appearance.
8827 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
8828 quixon@gnuchina.org.
8830 2002-06-16 Hans Breuer <hans@breuer.org>
8832 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
8833 good tradition of information hiding. Add new function
8834 dia_plugin_get_symbol()
8835 * app/sheets.c app/sheets_dialog_callbacks.c : use it
8837 * app/sheets.c : stop complaining about object_get_type()
8838 returning NULL. This is a consequence of e.g. disabling
8839 plug-ins at runtime _and_ it was and is gracefully handled.
8840 Spitting out g_warning for it isn't appropriate.
8842 * lib/object.[ch] : removed dead code
8844 * app/plugin-mangager.c : almost complete rewrite for gtk2
8845 using GtkListStore/GtkTreeView
8847 * lib/libdia.def : updated externals
8849 * todo.gtk2 : updated, that is removed already done steps
8851 2002-06-15 Hans Breuer <hans@breuer.org>
8853 * objects/uml/class_dialog.c : clean some left-over
8854 utf8-mess, return 0 from "focus_out_event" handlers
8855 to avoid asserting in gtk (#78305). Reconstruct
8856 stereotype/NULL behaviour to avoid rendering empty
8857 stereotypes on classes and member functions
8859 [#56109 - Provide object defaults for StdProp objects,
8860 some remaining issues are discussed in bugzilla]
8862 * lib/object_defaults.c : (new file) manage default properties
8863 of dia objects. The serialization is done with standard
8864 object methods in a diagram compatible format.
8866 * lib/object.c : add object_registry_foreach() which allows
8867 to iterate over all registered object types
8869 * lib/object.h : added prototypes object_default*() and
8870 object_registry_foreach()
8872 * lib/makefile.am lib/makefile.msc : add new file to build
8874 * lib/libdia.def : export new functions
8876 * app/defaults.c : provide StdProp based defaults if the
8877 ObjectType doesn't implement it's own default functions
8879 * app/create_object.c : through dia_object_default_create()
8880 * app/disp_callbacks.c : same here
8882 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8884 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
8885 sensitivity for deleting segments.
8887 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
8889 * app/color_area.c: (color_area_events):
8890 * app/diagram.c: (diagram_destroy):
8891 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
8893 * app/load_save.c: (diagram_data_load):
8894 * app/menus.c: (menus_get_item_from_path):
8895 * app/preferences.c: (prefs_load):
8896 * app/render_gdk.c: (get_text_width):
8898 * lib/color.c: (color_convert):
8899 * lib/dia_dirs.c: (dia_config_filename):
8900 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
8901 * lib/intl.c: (intl_get_language_list):
8902 * lib/message.c: (message):
8904 * lib/paper.c: (get_default_paper):
8905 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
8906 * lib/widgets.c: (dia_file_selector_get_file):
8908 * objects/standard/image.c: (get_directory):
8912 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8914 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
8916 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
8918 * app/interface.c: sscanf now returns EOF on empty string, so
8919 handle no match for zoom factor better => correct zoom at start.
8921 * app/sheets.c (create_object_pixmap): Tried to display empty error.
8922 (sheets_optionmenu_create): Died when not finding specified
8923 sheet. Don't think it should.
8925 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
8926 (bug #84367) to place the text better.
8928 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
8930 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
8932 * app/commands.c: Removed unnecessary gnome include. Removed
8933 GNOME-Print support.
8935 * app/menus.h: Removed now unnecessary gnome include.
8937 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
8938 GNOME-specific stock buttons
8940 2002-06-09 Hans Breuer <hans@breuer.org>
8942 * app/app_procs.c : convert 'Modified diagrams exits'
8943 dialog to use GtkMessageDialog. That gives us:
8944 - icons without Gnome dependency
8945 - much less code, also cross platform
8946 - improved useability ?
8948 * app/color_area.c : the Color Selection Widget looked
8949 quite wrong (alpha problems). Fix it by merging in required
8950 changes stolen from The Gimp cvs
8951 * app/color_area.h : to get the right appearance the maskes
8952 needed to be taken into account
8953 * app/interface.c : adapt to color_area_create changes.
8954 Also remove some dead code and finally remove cvs autexpansion,
8955 I was bothered enough by irrelevant differences :-)
8957 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
8958 api, i.e stocks and response to make the GnomeDialog usage
8959 obsolete. Also fixed the issue with closing the 'parent'
8960 before closing the dialog
8962 * app/display.[ch] : removed some dead code and conversion
8963 to new GtkDialog api. Also trying to conform to new HIG
8964 standard http://developer.gnome.org/projects/gup/hig/
8966 2002-06-09 Hans Breuer <hans@breuer.org>
8968 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
8971 * lib/dia_image.c : gtk_widget_set_default_visual()
8972 remove. It does nothing with Gtk2.
8974 * lib/libdia.def : added ps_unicoder exports
8976 * lib/message.c : remove #GNOME use GtkMessageDialog.
8977 Yeah, Dia gets dialogs wit icons cross-platform.
8979 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
8980 to gtk_spin_button_get_value()
8982 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
8984 add #undef GTK_DISABLE_DEPRECATED to still use ...
8985 * lib/prop_text.c : ... GtkText
8986 * lib/prop_widgets.c : ... GtkList
8987 * lib/prop_dialogs.c : ... gtk_signal_connect and more
8988 * lib/widgets.c : ... (too much to list here)
8990 * lib/ps-utf8.c : #include <string.h>
8992 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
8995 * Makefile.am: Adapted for gtk2.
8996 Removed dependencies on libunicode, on iconv(), on langinfo().
8998 * acconfig.h: removed (now obsolete)
9000 * lib/charconv.[ch]: removed (superceded by glib)
9001 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
9003 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
9004 libunicode types for their glib counterparts. Fixed the include
9005 paths for libxml2. Removed all traces of libxml1 or non-UTF8
9006 support (there were remains in objects/uml).
9009 2002-06-08 Hans Breuer <hans@breuer.org>
9011 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
9012 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
9013 Also use g_strdup()'s handling of NULL by returning NULL
9014 again at all places I found (remove unnecessary if's)
9016 * todo.gtk2 : new file to keep notes about gtk2 porting,
9017 further issues and thoughts and some status information.
9018 Also sent to dia-list ('Dia goes Gtk2 ...').
9020 [make it compile with GTK+ 2.0]
9022 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
9023 removed definition of S_ISDIR, S_ISREG and getlogin
9025 * */makefile.msc : Use GTK2 and libxml2
9026 BEWARE: makefile.am, configure.in not yet ported !
9028 * app/app_procs.c app/diagram.c : remove
9029 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
9030 but set use gtk_menu_set_accel_path() on menu creation
9032 * app/color_area.c lib/widgets.c :
9033 make use of gtk_color_selection_set_has_palette ()
9035 * app/commands.c : gdk_pixbuf_new_from_file wants an
9036 extra argument. Convert from DIR to GDir usage.
9038 * app/diagram_tree.c(button_press_callback) : need to return
9039 FALSE in the signal handler to let gtk process it further.
9040 (get_object_name) : don't leak 'prop'
9042 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
9043 dia_page_layout_destroy() getting called more than once
9045 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
9048 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
9050 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
9051 IIRC this code will not compile unchanged when USE_XIM is defined ...
9053 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
9055 * app/interface.c : there is no widget->klass anymore in Gtk,
9056 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
9057 parameter. Some tweaking of GtkWrapBox usage to get four tools in
9059 switch off GTK's double buffering on Dia's canvas. Otherwise we would
9060 get triple buffering and flicker.
9061 Replace call to GTK private function _gtk_accel_group_attach()
9062 with public gtk_window_add_accel_group()
9064 * app/layer_dialog.c : adapt to GtkTypeInfo changes
9066 * app/load_save.c lib/plug-ins.c lib/sheet.c
9067 objects/custom/custom.c :
9068 simplified by using g_file_test()
9070 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
9071 to gtk_accel_map_<save|load>. Also added common stock-icons
9074 * app/preferences.c : use gtk_button_set_label() instead
9075 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
9077 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
9078 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
9081 * app/recent_files.c : removed GLIB_CHECK_VERSION
9084 plug-ins/metapost/render_metapost.c
9085 plug-ins/pstricks/render_pstricks.c
9086 plug-ins/svg/render_svg.c :
9087 replace getlogin() with g_get_user_name() which always
9090 * app/render_gdk.c : gdk_region_union_with_rect() modifies
9091 inplace now and returns nothing, also less #hell
9093 * app/render_libart.c : some initial #hell cleaning, SuckFont
9094 still needs to vanish
9096 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
9097 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
9099 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
9100 * app/sheets_dialog_callbacks.c : some #hell and adaptions
9101 needed to GtkWrapBox api changes
9104 * lib/charconv.[hc] : removed from build
9105 [changed appropriate]
9106 * lib/prop_inttypes.c lib/prop_text.c :
9108 * lib/text.c : ported from HEAD but keep original indent
9109 intact. Original was done by Akira TAGOH.
9111 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
9113 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
9115 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
9116 same on all platforms now!
9118 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
9120 * lib/message.c : remove "charconv.h"
9122 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9125 * lib/sheet.c : convert from DIR to GDir usage
9127 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9129 * lib/widgets.h : include gtk<label|colorseldialog>.h
9132 * objects/fs/flow.c :
9133 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9135 * objects/custom/custom.c : convert from DIR to GDir usage
9138 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9141 2002-05-03 Hans Breuer <hans@breuer.org>
9143 * lib/dia_xml.c : make the well formed utf8 check
9144 actually work for û (non 7-bit ascii encoding)
9145 and fixed the file re-writing if the check fails.
9146 Thanks to Vitaly Lipatov for noticing the misbehaviour.
9148 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9149 comment on last ressort font. Thanks to Maxim Sobolev.
9151 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
9153 * sheets/network.sheet.in: corrected a typo in plotter invocation.
9155 2002-06-03 Steffen Macke <sdteffen@web.de>
9157 * shapes/network/digitizing_board.png:
9158 * shapes/network/digitizing_board.shape:
9159 * shapes/network/plotter.png:
9160 * shapes/network/plotter.shape:
9161 * shapes/network/Makefile.am
9162 * sheets/network.sheet.in: added new plotter and digitizing
9165 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
9167 * lib/font.c: made a symptomatic fix to a segfault reported by
9168 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9169 won't prevent dia from terminating, but should give more
9170 user-friendly information about why did it terminate.
9172 Two patches from <robert.young@dsto.defence.gov.au>:
9174 * app/display.c: fix the size of the canvas area which gets
9175 redrawn. There was an off-by one error (Closes #83659)
9177 * app/display.c: make sure we redraw all screen only when we
9178 really have to (some update_areas were mistakenly ignored) (Closes
9181 * NEWS: added a new entry for the future. Put there a reminder to
9182 update the dependencies.
9184 * configure.in: put in notes about what will change shortly.
9185 upped the version to 0.90+cvs (did also in config.h.win32)
9186 upped the minimum version for intltools (now 0.21)
9188 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
9194 bumped up version number to 0.90. Yay!
9196 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
9198 * doc/pl/Makefile.am:
9199 * doc/en/Makefile.am: fixed a "make install" problem when db2html
9200 is not present (Reported by Andrew Ferrier
9201 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9202 problem which prevented me from ever seeing the problem in doc/en...
9204 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9206 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9207 way to read the font path from the XFS configuration files in
9208 order to enable FreeType (fixes #83098).
9210 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9217 bumped up version number to 0.90.RC3
9219 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
9221 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9222 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9223 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9224 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9225 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9226 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9227 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9228 Added Polish documentation.
9230 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
9232 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9233 format for the UML State object. Now there's a hack to reload
9234 older files, and get them converted on the fly.
9235 Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
9239 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9240 and adapter the proplist predicates. A LOAD_ONLY property is for
9241 when you have legacy to support but can't resist moving your
9242 fields around... (was needed to support the above state.c fix).
9244 If the in-core of your object changes and you need a LOAD_ONLY
9245 property for the old format, you must keep some spare room in your
9246 object's struct to accomodate for the potential old-style
9247 attributes. Then in foo_load(), after having called
9248 object_load_using_properties(), you must inspect the old-style
9249 fields and act accordingly. Don't ever change the on-disk formats...
9251 * objects/UML/object.c:
9252 * objects/UML/small_package.c: added a check against empty
9253 stereotypes still consuming space. Reported by Dolores Alia de
9254 Saravia <loli@unsa.edu.ar>. Thanks!
9256 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
9258 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
9259 using libtool on an AFS partition.
9261 * po/update_potfiles_in.sh: now simply calls the recent intltools
9262 features; they work better than hand-crafted half-ignorant
9263 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9266 * po/POTFILES.in: added back two files update_potfiles_in.sh
9267 didn't take into account. Now this file is not automatically
9269 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9270 (the usual suspects, in fact).
9272 * configure.in: improved the isinf() / isfinite() detection on
9273 Solaris (MÃ¥rten Svantesson)
9275 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
9277 * configure.in: one expression was replacing $CFLAGS, removing
9278 whatever was previously in.
9279 Added more checks for isinf() and finite() on Solaris.
9281 * lib/geometry.h: added a macro defintion for isinf() if not
9282 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9285 * app/commands.c: "cut" did not set the 'modified' bit (paste has
9286 been for a little while). Fixes #82994.
9288 * Makefile.am: added more stuff to distclean-local. This should make
9289 "make distcheck" pass! Thanks to the author of
9290 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
9291 ... I wonder who this Henstridge guy is ... ;-)
9292 Darn. Still doesn't pass. I give up for tonight.
9294 * po/update_potfiles_in.sh: updated to take care of sheet files,
9295 and to filter out the EML plug-in.
9296 * po/POTFILES.in: updated with all .c and all .sheet.in files
9298 * po/dia.pot, po/*.po: again updated all .po files with all
9299 strings (with the updated POTFILES). Now with the up-to-date
9300 POTFILES, just all languages have some fuzzy or untranslated
9301 strings (not that the 100% team was that large beforehand...)
9303 * po-checktrans: removed the comment about .po files not holding
9304 all translatable stuff, since now they do.
9306 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
9312 bumped up version number to 0.90.RC2
9314 2002-05-20 Hans Breuer <hans@breuer.org>
9316 * app/load_save.c : starting to increase
9317 Dias tolerance on incomplete/broken files. The
9318 corresponding bug is #56233. But the patch there does
9319 neither apply anymore nor does it really fix the problem
9320 but only delays it, e.g. even if it would be allowed
9321 to read a file without any layers, the later code can't
9323 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
9324 handle passing in NULL for the node gracefully.
9326 * shapes/network/printer.shape : added two more connection
9327 points - one at each side - to fix bug #60359
9329 * app/commands.c (edit_copy_callback) :
9330 add ddisplay_do_update_menu_sensitivity() to make
9331 sequence select-copy-paste work.
9333 2002-05-20 Hans Breuer <hans@breuer.org>
9335 * app/create_object.c (create_object_button_press) :
9336 added a call to ddisplay_do_update_menu_sensitivity()
9337 to make Ctrl^D etc work after object creation.
9340 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
9342 * objects/ER/entity.c:
9343 * objects/ER/attribute.c:
9344 * objects/ER/relationship.c: Patch to allow text size change from
9345 Celso Tetsuo Nagase Suzuki.
9347 2002-05-18 Steffen Macke <sdteffen@web.de>
9349 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
9351 * doc/en/graphics/greendots.png:
9352 * doc/en/home_network.png:
9353 * doc/en/line_props.png:
9355 * dia_gnome_icon.png:
9356 * dia_gnome_menu_icon.png:
9358 * shapes/network/telephone.png:
9359 * shapes/Logic/and.png:
9360 * shapes/Logic/buffer.png:
9361 * shapes/Logic/connector.png:
9362 * shapes/Logic/inverter.png:
9363 * shapes/Logic/nand.png:
9364 * shapes/Logic/nor.png:
9365 * shapes/Logic/not.png:
9366 * shapes/Logic/or.png:
9367 * shapes/logic/xor.png:
9368 * samples/ER-demo.dia:
9370 * samples/UML-demo.dia:
9371 * samples/chronograms.dia:
9372 * samples/grafcet.dia: re-added as binary files
9374 2002-05-17 Hans Breuer <hans@breuer.org>
9376 * lib/libdia.def : reflect removing of render_store.[ch]
9378 * */makefile.mingw : remove VERSION definition it's
9379 done in config.h.win32. Dia still doesn't work if
9380 build with mingw ...
9382 * RELEASE-PROCESS : removed */makefile.mingw
9384 * app/sheets_dialog_callbacks.c : if we use those
9385 ugly charconv_gtk_* functions lib/charconv.h needs to
9387 * lib/charconv.h : ... and needs to contain the
9388 necesseray prototypes _and_ #defines
9390 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
9391 is deprecated and does nothing but spit a warning. This broke
9392 the shape format writing. Fixed.
9393 Also with libxml2 pretty formatted xml isn't the default
9394 anymore, but needs to be enabled explicit: It is done now
9395 for shape files, which almost always needed to be edited by
9398 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
9399 from stderr - which is invalid on Dia/win32 - to g_print -
9400 which opens up a console window if necessary. This way
9401 a xml-deprecation-error shouldn't stay unnoticed next time
9403 2002-05-17 Steffen Macke <sdteffen@web.de>
9405 * shapes/Misc/folder.png:
9406 * shapes/Misc/file.png: re-added as binary files
9408 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9410 * lib/font.c: Fixed segfault for fonts without family_name.
9412 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
9414 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
9416 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
9417 Lars' request, minor cosmetic stuff (mostly _() of human-readable
9418 XML comments in .sheet files; one translator booby-trap disarmed).
9420 * lib/charconv.c: moved #hell inside the body of the new
9421 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
9424 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9426 * plug-ins/wpg/Makefile.am (INCLUDES):
9427 * plug-ins/shape/Makefile.am (INCLUDES):
9428 * plug-ins/svg/Makefile.am (INCLUDES):
9429 * plug-ins/pstricks/Makefile.am (INCLUDES):
9430 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
9431 and DEBUG_CFLAGS in some missing places.
9433 * MAINTAINERS: New file containing list of known package
9437 * lib/charconv.c: Charconv versions of some common gtk calls.
9439 * app/sheets_dialog_callbacks.c
9440 (on_sheets_new_dialog_button_ok_clicked),
9441 (on_sheets_dialog_button_edit_clicked),
9442 (on_sheets_dialog_button_remove_clicked),
9443 (on_sheets_edit_dialog_button_ok_clicked):
9444 * app/sheets.c (sheets_optionmenu_create),
9445 (sheets_optionmenu_create): Added utf8 translations.
9447 * app/sheets_dialog.c:
9449 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
9451 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
9453 * po/POTFILES.in: added app/sheets_dialog.c
9455 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
9457 * lib/charconv.c: (charconv_local8_to_utf8),
9458 (charconv_utf8_to_local8): tweaked the warnings to get more
9460 * lib/font.c: (font_get_suckfont): handled a potential case of
9461 uninitialised data being used (just paranoid)
9463 * objects/GRAFCET/boolequation.c: (opstring),
9464 (opblock_get_boundingbox), (opblock_draw),
9465 (boolequation_calc_boundingbox): some extra hoops needed now dia
9466 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
9467 symbols can't yet be used with their proper Unicode cells, since
9468 gtk will demand them in the Symbol font, expressed in the local
9471 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
9472 the fix just above).
9474 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
9476 * app/diagram_tree.c (get_object_name): Check that name property
9477 doesn't have null string.
9479 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
9481 * autogen.sh (DIE): Added conditional --force to gettextize.
9483 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
9486 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
9488 * RELEASE-PROCESS: added James' notes on how to properly make the
9491 * configure.in: removed macro nesting related to libpng.h, which
9492 was causing some problems on some systems (like mine, which made
9495 Made --enable-unicode, previously an option, the mandatory case.
9497 * app/Makefile.am: updated EXTRA_DIST
9500 * app/makefile.mingw:
9502 * doc/en/dia-manual.sgml:
9503 * plug-ins/makefile.mingw:
9504 * configure.in: bumped up the version number to 0.90.RC1
9506 * lib/render_objects.[ch]:
9507 * po/POTFILES.in: removed render_objects from the build.
9509 * plug-ins/Makefile.am:
9510 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
9511 so we keep its source in the tarball.
9513 * objects/network/*.c, Makefile.am:
9514 * objects/sybase/*.c, Makefile.am:
9515 * po/POTFILES.in: cleaned up the non-existent files from the po
9518 * plug-ins/Makefile.am: re-enabled metapost plug-in.
9520 2002-05-13 Steffen Macke <sdteffen@web.de>
9523 * app/command.c: added M. C. Nelson to the Authors
9524 * sheets/Circuit/Makefile.am: added firewall shape to build
9525 * sheets/network/Makefile.am: added telephone and microphone
9528 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
9530 * RELEASE-PROCESS: Added list of files that contain the release
9531 number or should otherwise be changed at each release.
9533 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
9535 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
9536 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
9538 2002-05-12 Hans Breuer <hans@breuer.org>
9540 * config.h.win32 : changed VERSION to 0.90.RC1
9542 * app/makefile.msc lib/makefile.msc : use renamed
9543 gdk-pixbuf version (same content but renamed because
9544 all the other gtk+ dlls are renamed) to avoid trouble
9545 mixing gtk versions (of which one would not
9548 * app/app_procs.c : removed recently unneeded
9549 inclusion of "sheets.h"
9551 * app/render_gdk.c : removed my own debug spew
9552 which should never made it to cvs
9554 * lib/render_object.[hc] : added
9555 #error "File not used anymore."
9557 * lib/libdia.def : updated externals
9559 * app/interface.c : dropped filenames need to be
9560 converted from uri with Gtk+2.0
9562 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
9564 * RELEASE-PROCESS (new): a draft document about how to release. To
9565 be discussed. (already with some input from Hans Breuer)
9567 2002-05-12 Steffen Macke <sdteffen@web.de>
9569 * sheets/Makefile.am: re-added Misc sheet to make process
9571 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
9573 * objects/FS/function.c: Added comments to humungous list of menu
9574 items, to aid translators.
9576 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9578 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9580 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9582 * app/interface.c (create_toolbox): Disallow shrinking beyond
9583 requested size. Fixes bug #59439, and confirms to GTK guidelines
9584 (see gtk_window_set_policy).
9585 (create_sheets): Removed now unnecessary set_usize call.
9587 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9589 * lib/beziershape.c (remove_handles): Fixing removal of last
9590 segment. Undo of removal still hokey.
9592 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
9594 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
9596 * lib/beziershape.c (beziershape_init): Removed early call to
9597 beziershape_update_data where points aren't set yet.
9598 (beziershape_add_segment): Use segment 0 instead of overflowing
9599 points array with segment+1.
9600 (beziershape_remove_segment): Proper offset for fixing
9602 (remove_handles): Proper offset.
9604 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
9606 * objects/GRAFCET/action.c (action_update_data): Init x value of
9607 click point for call to connpointlist_adjust_count.
9609 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
9611 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
9612 setting to where values are inited.
9614 * lib/polyshape.c (polyshape_init): Removed call to
9615 polyshape_update_data that tried to use uninitialized data.
9617 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9619 * app/sheets_dialog.c: Mass removal of //-style comments. The
9620 Irix compiler doesn't like them:( I do...
9622 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
9624 * app/render_libart.c (draw_string): Bail out when no GDK font is
9626 (set_font): Give error when font not found.
9627 (set_fillstyle): Intlized error msg.
9629 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
9630 modified when applied (and ok only does apply if apply is set
9631 sensitive). Fixes bug #75623.
9633 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
9635 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
9637 2002-05-05 Steffen Macke <sdteffen@web.de>
9639 * app/Makefile.am: added $(UNICODE_CFLAGS)
9641 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
9643 * app/commands.c (help_manual_callback): Check return value of
9646 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
9648 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
9651 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
9653 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
9655 * objects/UML/uml.c (uml_operation_read): Fix of UML default
9658 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9660 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
9661 Added button to toggle diagram compression.
9663 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9665 * lib/font.c: Support for loading extra kerning files, plus got
9666 rid of rounding errors. Bounding box mostly perfect for freetype
9668 (font_string_width): Fudge factor to get around nonlinearity of
9671 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
9673 * lib/font.c (font_string_width): YA font calculation scheme, with
9676 * objects/UML/class.c (umlclass_calculate_data): Uses the same
9677 font for drawing and calculating now.
9679 * configure.in: Added utime.h check.
9681 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
9682 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
9684 2002-04-26 Hans Breuer <hans@breuer.org>
9686 [ Instead of fixing about 70 occurances in 20 files
9687 where GTK_TALKS_UTF8_WE_DONT needed to be handled
9688 Dia on win32 from now on uses glib-2.0 and not
9689 only talks utf-8 with gtk-1.3 but also internally.
9690 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
9693 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
9694 #undef GTK_TALKS_UTF8_WE_DONT
9696 * */makefile.msc : changes to use glib-2.0 (still
9697 using gtk+1.3(win32-production)
9699 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
9700 adapt kevent->string handling, add <string.h>
9701 * app/render_gdk.c (get_text_width) : the length given
9702 is in chars, gdk_text_width() needs bytes
9704 * app/render_libart.c :
9705 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
9706 (could simplify the same way as done in render_gdk.c)
9708 * app/diagram_tree.c app/paginate_gdiprint.cpp
9710 * lib/prop_basic.c lib/prop_geomtypes.c
9711 lib/propdialgs.c lib/propobject.c :
9712 added <string.h> which is now removed from charconv.h
9714 * lib/charconv.h : optional use infrastructure from
9715 glib-2.0 -> only five direct function mapping left
9717 * lib/charconv.c : avoid to build this with glib-2.0
9719 * lib/font.c : no string conversion needed anymore
9720 when Dia and Gtk talk utf-8, also code adaptions
9721 for GLIB_CHECK_VERSION(2,0,0)
9723 * lib/libdia.def : removed charconv functions
9725 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
9726 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
9728 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
9729 removed GTK_TALKS_UTF8_WE_DONT
9731 * lib/text.c : finally(?) fixed cursor <place|move>ment
9732 for Umlauts. Also fixed char insertion, still wondering
9733 how this could ever work. Does realloc on Linux
9734 initialize the memory with zeros ?
9736 * objects/chronogram/chronoline_event.c
9737 objects/grafcet/boolequation.c :
9738 there is no uni_get_utf8 when building for glib-2.0.
9739 Replace with g_utf8_get_char() and g_utf8_next_char().
9741 * objects/uml/stereotype.c (bracketted_to_string) :
9742 simplify while adding code for glib-2.0 build
9744 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
9746 * app/diagram.h: Autosave field
9747 * app/diagram.c (diagram_set_modified): Sets autosave field.
9749 * objects/UML/usecase.c (usecase_update_data):
9750 * objects/flowchart/ellipse.c (ellipse_update_data):
9751 * objects/flowchart/parallelogram.c (pgram_update_data):
9752 * objects/flowchart/diamond.c (diamond_update_data):
9753 * objects/custom/custom_object.c (custom_update_data):
9754 * objects/UML/state.c (state_update_data):
9755 * objects/UML/small_package.c (smallpackage_update_data):
9756 * objects/UML/object.c (objet_update_data):
9757 * objects/UML/note.c (note_update_data):
9758 * objects/UML/node.c (node_update_data):
9759 * objects/UML/component.c (component_update_data):
9760 * objects/UML/classicon.c (classicon_update_data):
9761 * objects/UML/actor.c (actor_update_data):
9762 * objects/SADT/box.c (sadtbox_update_data):
9763 * objects/FS/function.c (function_update_data):
9764 All now update text boundaries from update_data.
9766 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
9769 2002-04-26 Hans Breuer <hans@breuer.org>
9771 * config.h.win32 : added VERSION definition here
9772 (and removed from makefile.msc's)
9774 * app/makefile.msc : added new files
9776 * app/app_procs.c (app_init): remove sheets_dialog_create()
9777 from start-up and ...
9779 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
9780 sheet_dialog here when it is really needed.
9781 #include "../lib/message.h", make sheets_dialog_create()
9782 return it's success or failing on (!custom_type_symbol).
9783 Although editing shapes is nice IMHO it isn't crucial enough
9784 to abort() Dia if it isn't possible.
9786 * app/sheet.h : adapt create_sheet_dialog() prototype
9788 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
9790 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
9791 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
9792 name space corrections for utime() and utim_buf #ifdef
9795 * lib/libdia.def : export new sheet functions
9797 * lib/makefile.msc : added new files
9799 * lib/render.c : don't put draw_bezier_with_arrows() in
9800 the DrawLineWithArrowsFunc slot
9802 * objects/custom/custom_object.c : #include <gmodule.h>
9803 and export 'custom_type' via G_MODULE_EXPORT
9805 * objects/uml/class_dialog.c : removed 'incompatible
9806 types' warnings. Some refactoring while making it fit
9807 on screen with 800x600 again.
9809 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
9811 * plug-ins/python/pydia-handle.h : extra parameter to
9812 PyDiaHandle_New to store the owner of the handle
9813 * plug-ins/python/pydia-handle.c : store handle owner
9814 on construction and use it in new method .connect()
9815 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
9816 adapt to changed prototype
9818 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
9820 * lib/text.c (text_calc_boundingbox): Will now return early if box
9823 * objects/flowchart/box.c (box_update_data): Now updates text
9824 width info from update_data.
9826 2002-04-23 Steffen Macke <sdteffen@web.de>
9828 * plug-ins/xfig/xfig-import.c: fixed text import
9830 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
9832 * app/export_png.c: Moved dialog functions to their own file.
9833 * app/dialogs.[ch]: New files with standard functions for creating
9834 small, transient dialogs (e.g. export options).
9835 * app/Makefile.am: Added dialogs.[ch]
9837 2002-04-19 Steffen Macke <sdteffen@web.de>
9839 * shapes/Misc/folder.*:
9840 * shapes/Misc/file.*:
9841 * shapes/Misc/Makefile.am:
9842 * shapes/Makefile.am:
9843 * sheets/Misc.sheet.in:
9844 * sheets/Makefile.am:
9845 * configure.in: added new Misc sheet containing filesystem shapes
9847 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
9849 * app/lineprops_area.c: Arrow selector in toolbox changed to use
9850 standard arrowdraw code. Line is thinner to make some arrowheads
9853 2002-04-18 Steffen Macke <sdteffen@web.de>
9855 * sheets/network.sheet.in:
9856 * shapes/network/telephone.shape:
9857 * shapes/network/Makefile.am: added telephone shape
9859 2002-04-16 Steffen Macke <sdteffen@web.de>
9861 * sheets/EML.sheet.in: commented out unavailable shapes
9863 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
9865 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
9866 variable assignment.
9868 2002-04-15 Steffen Macke <sdteffen@web.de>
9870 * plug-ins/dxf/dxf-import.c: text import works again
9871 * shapes/Pneumatic/Makefile.am: added compush shape
9872 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
9875 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
9877 * All these modifications are for the 'Sheets and Objects' dialog
9880 * app/pixmaps/line_break.xpm: new icon representing a line break.
9882 * app/pixmaps/n_a.xpm: new empty icon representing not available.
9884 * app/Makefile.am: added sheets_*.[ch] files to compile list.
9886 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
9888 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
9890 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
9892 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
9894 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
9896 * app/sheets_dialog_callbacks.h: [new file] support for " " "
9898 * app/interface.c: added 'interface_current_sheet_name' global to
9899 fill_sheet_wbox(); made fill_sheet_menu() non-static
9901 * app/interface.h: added extern declaration for aboves.
9903 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
9905 * app/sheets.h: [new file] declarations for backing store structures
9907 * lib/sheet.c: modification of new_sheet() parameters; introduction
9908 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
9909 changes to load_register_sheet().
9911 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
9912 added 'has_icon_on_sheet' flag to SheetObject structure; added
9913 'filename', 'scope', 'shadowing' fields to Sheet structure.
9915 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
9918 * lib/plug-isn.h: see above.
9920 * lib/object.c: added 'sheet.h' to include list; added several
9922 to detect objects which are not found on any sheet (for future use)
9923 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
9924 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
9926 * lib/object.h: added public declarations for above functions where
9929 * objects/custom/custom.c: made custom_object_load() non-static so we
9930 can load and interpret .shape files from the Sheets & Objects dialog
9932 * objects/custom/custom_object.c: made 'custom_type' non-static so
9933 we can differentiate between SVG shapes and other types.a
9935 2002-04-07 Hans Breuer <hans@breuer.org>
9937 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
9938 from 2002-01-22 to not destroy diagram->data->selected.
9939 Avoids to crash on Objects/Align/Vertical/Top
9941 * app/render_eps.c (draw_string) : un-const buffer
9942 It isn't at all const (g_malloc(), assignment, g_free()).
9943 Doesn't gcc catch such ?
9945 * lib/arrows.h : prototype calculate_arrow_point()
9947 * lib/font.c (font_get_suckfont) : no need to
9948 special case gdk_draw_string() with GTK_TALKS_UTF8,
9949 cause all the parameter differences are handled above
9951 * lib/libdia.def : updated externals
9953 * lib/makefile.msc : removed string_prerenderer, added render
9955 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
9956 is expected. [Sometimes it's good to read compiler warnings.]
9958 * objects/standard/image.c : simplified by use of g_strconcat()
9960 * plug-ins/python/makefile.msc : updated for Python 2.2
9962 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
9964 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
9965 directionality problem for zero-length line segments.
9967 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
9969 * app/diagram.c (diagram_ungroup_selected)
9970 (diagram_update_menu_sensitivity): Now allows ungrouping of
9971 several groups at once.
9973 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
9975 * lib/render.c, all renderers: Binary incompatibility, change to
9976 expandable renderops structure.
9978 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
9980 * objects/standard/Makefile.am:
9981 * objects/network/Makefile.am:
9982 * objects/UML/Makefile.am:
9983 * objects/ER/Makefile.am:
9984 * objects/FS/Makefile.am:
9985 * objects/flowchart/Makefile.am:
9986 * objects/custom/Makefile.am:
9987 * objects/GRAFCET/Makefile.am:
9988 * objects/chronogram/Makefile.am:
9989 * objects/SADT/Makefile.am:
9990 * plug-ins/cgm/Makefile.am:
9991 * plug-ins/pstricks/Makefile.am:
9992 * plug-ins/hpgl/Makefile.am:
9993 * plug-ins/wpg/Makefile.am:
9994 * plug-ins/svg/Makefile.am:
9995 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
9997 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
9999 * app/render_eps.c: Support for dumping TrueType fonts (taken from
10002 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
10004 * lib/render.c: New abstract super class for renderers.
10006 2002-03-07 Akira TAGOH <tagoh@redhat.com>
10008 * objects/ER/attribute.c (attribute_save): save a font property.
10009 (attribute_load): load a font property, and if can't load it, it's
10012 * objects/ER/entity.c (entity_save): save a font property.
10013 (entity_load): load a font property, and if can't load it, it's
10016 * objects/ER/relationship.c (relationship_save): save a font property.
10017 (relationship_load): load a font property, and if can't load it, it's
10020 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
10022 (umlclass_save): save the font and the font size properties.
10023 (umlclass_load): load the font and the font size properties.
10025 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
10027 * lib/string_prerenderer.[ch] (REMOVED):
10029 * lib/diagramdata.c:
10031 * app/render_eps.c: got rid of the string-specific string
10032 prerenderer, transitioned its functionality towards Lars'
10033 two-phase rendering
10035 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
10037 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
10038 may need to rerun aclocal.
10040 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
10042 * lib/font.c: First attempt at Unicodeness for Freetype.
10044 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10046 * lib/font.c (font_string_width): Fixed font_string_width for
10047 freetype. BB is now almost right.
10049 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
10051 * app/render_eps.h:
10052 * app/paginate_psprint.c (paginate_psprint):
10054 * app/render_eps.c: Support for dumping postscript fonts into
10055 postscript files with freetype. Fairly primitive, but works.
10056 Unicode version may have problems.
10058 2002-02-28 Akira TAGOH <tagoh@redhat.com>
10060 * objects/UML/class_dialog.c (class_read_from_dialog)
10061 (class_fill_in_dialog), (class_create_page): add the font selector and
10062 the font size selector.
10064 * objects/UML/class.c (umlclass_draw): uses each font_height.
10065 (umlclass_calculate_data): ditto.
10066 (fill_in_fontdata): add initial value of new font_height.
10067 (umlclass_copy): add new font_height.
10069 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
10071 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
10073 * lib/font.c: calculate font metrics properly and stop guessing at
10076 2002-02-28 Akira TAGOH <tagoh@redhat.com>
10078 * configure.in: changed gtk_advancement value to dia_talks_utf8.
10079 right now Dia is working with UTF-8 internally. it means Dia probably
10080 support most languages also including the languages which heretofore
10081 didn't work correctly.
10083 2002-02-26 Akira TAGOH <tagoh@redhat.com>
10085 * objects/FS/function.c: add related text properties.
10086 (function_get_props), (function_set_props): add handling attribute.
10088 * objects/FS/flow.c: add related text properties.
10089 (flow_get_props), (flow_set_props): add handling attribute.
10091 * objects/FS/flow-ortho.c: add related text properties.
10092 (orthflow_set_props), (orthflow_get_props): add handling attribute.
10094 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
10096 * objects/ER/entity.c: ditto.
10098 * objects/ER/attribute.c: ditto.
10100 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
10102 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
10104 * autogen.sh: add a check for missing intltoolize.
10106 2002-02-20 Akira TAGOH <tagoh@redhat.com>
10108 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
10109 charcode, it was registered the duplicate item to HashTable. fix.
10111 * app/render_gnomeprint.c (get_width_string): add new function.
10112 (draw_string): fix non-multibyte specific code.
10114 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
10116 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
10118 * lib/font.c: do not try to search paths that do not begin with
10119 '/', like X Font Server addresses.
10121 * objects/UML/message.c (message_draw): free mname when not
10122 message->text but CREATE or DESTROY.
10124 * objects/UML/uml.h:
10125 * objects/UML/uml.c:
10126 * objects/UML/class_dialog.c: added code to handle a stereotype
10127 attribute for operations.
10129 2002-02-19 Akira TAGOH <tagoh@redhat.com>
10131 * lib/Makefile.am: add LIBART_CFLAGS.
10133 2002-02-15 Hans Breuer <hans@breuer.org>
10135 * lib/font.c (font_get_suck_font): the black and white pixel values
10136 need to be taken from a 1 bit colormap rather than the default colormap.
10137 (fixed again, last time was 2000-05-26)
10139 Also handle the case where GTK_TALKS_UTF8 and expects all strings
10140 passed in to be in this encoding.
10142 * lib/libdia.def : export suck_font_free()
10144 * lib/text.c (text_draw) : avoid circular dependency to ../app
10145 at least for the !USE_XIM case, where it is unnecessary.
10147 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
10149 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10151 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10152 * sheets/Circuit.sheet.in: added new shape microphone
10153 * shapes/Circuit/speaker_de.shape: Added a connection point.
10155 2002-02-13 Akira TAGOH <tagoh@redhat.com>
10157 * app/render_libart.c (draw_string): fixed build issue for Win32.
10159 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10162 * configure.in: fixed testing gtk_advancement.
10164 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10166 2002-02-12 Akira TAGOH <tagoh@redhat.com>
10168 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10171 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
10173 * app/group.c (group_copy): Made new object properly initialized
10176 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
10178 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10180 2002-02-10 Akira TAGOH <tagoh@redhat.com>
10182 * lib/text.c (text_draw): fixed XIM transaction.
10184 * app/interface.c (create_display_shell): add signal for
10187 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10189 (set_input_dialog): remove.
10190 (ddisplay_canvas_events): remove XIM transaction. it can't transact
10191 correctly on this function.
10193 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10196 * app/export_png.c: Added checks for interactivity (maybe this
10197 should be a hook after all?).
10199 * app/filedlg.c (file_export_callback): Made export dialog add
10200 suffix when reopened.
10202 * app/export_png.c: Added dialog asking for export size.
10204 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10206 * lib/widgets.c: Fixed font reselection problem and first font
10209 * objects/UML/actor.c (actor_update_data): Changed to have
10210 connection points below text.
10212 2002-02-08 Akira TAGOH <tagoh@redhat.com>
10214 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10217 2002-02-07 Akira TAGOH <tagoh@redhat.com>
10219 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10220 strings which is given.
10221 (suck_font): remove. it's any longer needed.
10223 * app/render_libart.c (set_font): don't get suckfont.
10224 (draw_string): get suckfont only which is needed for now.
10226 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10228 * lib/text.c: Fixes for misunderstood width functions.
10230 2002-02-05 Hans Breuer <hans@breuer.org>
10232 * lib/dia_xml.c : use g_strconcat() instead of
10233 malloc, strcpy, strcat dance
10234 * app/properties.c : same here and plug memory leak
10235 (gtk functions don't eat strings)
10237 * objects/UML/message.c : there is no g_sprintf()
10238 use g_strdup_printf() instead ...
10240 2002-02-05 Akira TAGOH <tagoh@redhat.com>
10242 * lib/message.c (gtk_message_internal): doesn't need to convert to
10245 * app/render_libart.c (draw_string): fixed transaction for UTF-8
10247 (get_text_width): ditto.
10249 * app/Makefile.am (EXTRA_DIST):
10250 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10252 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10253 This function needs ifdef HAVE_FREETYPE because don't use it for
10256 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
10258 * NEWS: updated with the new dependencies.
10260 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10262 * objects/UML/class.h:
10263 * objects/UML/class.c:
10264 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10265 property using a GtkMenu. Options are Undefined, In, Out, In & Out
10267 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
10269 * app/render_libart.c: Slow but working libart freetype renderer,
10272 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10274 * app/render_gdk.c (draw_string): Fixed gc_function bug.
10276 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10278 * lib/font.c (freetype_render_string):
10280 * app/render_gdk.c:
10281 * app/render_gdk.h: Changed freetype_render_string to use
10282 callback. Rendering is broken.
10284 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
10286 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10288 * objects/UML/uml.h:
10289 * objects/UML/uml.c: added UMLInheritanceType and isQuery
10290 (constant) UML Operation attributes. UMLInheritanceType is either
10291 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
10293 * objects/UML/class.h:
10294 * objects/UML/class.c:
10295 * objetcs/UML/class_dialog.c: added code to handle new
10296 UMLOperation attributes via a GtkMenu and a checkbox.
10298 2002-02-03 Akira TAGOH <tagoh@redhat.com>
10300 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
10301 several client doesn't work with previous codes.
10303 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
10305 * lib/font.c (freetype_render_string): Kerning. Very few fonts
10308 2002-02-02 Akira TAGOH <tagoh@redhat.com>
10310 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
10311 when doing the operation like invert the objects after active view is
10312 destroyed. when changes focus, it needs to set active_display.
10314 * app/layer_dialog.c (dia_layer_update_from_layer):
10315 (layer_dialog_edit_layer): need to convert to locale encoding
10316 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10317 (edit_layer_ok_callback):
10318 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10320 * lib/diagramdata.c (new_diagram_data): ditto.
10322 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
10324 * lib/diagramdata.c (new_layer): use utfchar instead of char for
10327 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
10328 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
10329 it's needed for now. also this function needs prototype declaration.
10331 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
10333 * lib/widgets.c: Style now functional on font selector. Some leak
10334 possible, but doesn't show up under stress test.
10336 2002-01-31 Akira TAGOH <tagoh@redhat.com>
10338 * app/plugin-manager.c (clist_select_row): name and description needs to
10339 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10340 (get_plugin_manager): ditto.
10342 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
10344 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
10347 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
10348 when prop->string_data is NULL.
10350 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10353 * lib/widgets.h: New font selector separating font and style.
10354 Style not functional yet.
10356 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
10359 * app/render_gdk.c (draw_string): More freetype support, now
10360 renders text. Still broken is font selection and exporting.
10362 2002-01-30 Akira TAGOH <tagoh@redhat.com>
10364 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
10367 * objects/chronogram/chronoline.c (chronoline_create): ditto.
10369 * objects/UML/usecase.c (usecase_create): ditto.
10371 * objects/UML/state.c (state_create): ditto.
10373 * objects/UML/object.c (objet_create): ditto.
10375 * objects/UML/node.c (node_create): ditto.
10377 * objects/UML/message.c (message_create): ditto.
10379 * objects/UML/component.c (component_create): ditto.
10381 * objects/UML/classicon.c (classicon_create): ditto.
10383 * objects/UML/actor.c (actor_create): ditto.
10385 * objects/SADT/box.c (sadtbox_create): ditto.
10387 * objects/SADT/annotation.c (annotation_create): ditto.
10389 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
10391 * objects/GRAFCET/step.c (STEP_FONT):
10392 * (step_create): ditto.
10394 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
10396 * objects/GRAFCET/action.c (ACTION_FONT):
10397 (action_create): ditto.
10399 * objects/FS/function.c (function_create): ditto.
10401 * objects/FS/flow.c (flow_create):
10403 (flow_apply_defaults): ditto.
10405 * objects/FS/flow-poly.c (flow_create):
10407 (flow_apply_defaults): ditto.
10409 * objects/FS/flow-ortho.c (orthflow_create):
10411 (orthflow_apply_defaults): ditto.
10413 * objects/ER/relationship.c: use utfchar instead of char for structure.
10414 (relationship_create): name needs to convert to UTF-8.
10416 * objects/ER/attribute.c: use utfchar instead of char for structure.
10417 (attribute_create): name needs to convert to UTF-8.
10419 * objects/ER/entity.c: use utfchar instead of char for structure.
10420 (entity_create): name needs to convert to UTF-8.
10422 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
10423 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
10424 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
10425 items. if GTK_TALKS_UTF8 isn't defined.
10427 2002-01-29 Akira TAGOH <tagoh@redhat.com>
10429 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
10430 it was my careless mistake...
10432 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
10433 a font name, because there are strings which isn't shown by "Courier".
10434 We need to consider a way to feel free to choose a font at runtime.
10436 * lib/render_object.c (render_object_load): ditto.
10438 * lib/text.c (data_text): ditto.
10440 * objects/EML/instantiation.c (instantiation_create): ditto.
10442 * objects/EML/interaction-ortho.c (interaction_ortho_create):
10443 (interaction_ortho_load): ditto.
10445 * objects/EML/interaction.c (interaction_create):
10446 (interaction_load): ditto.
10448 * objects/EML/process.c (fill_in_fontdata): ditto.
10450 * objects/ER/attribute.c (attribute_create):
10451 (attribute_load): ditto.
10453 * objects/ER/entity.c (entity_create):
10454 (entity_load): ditto.
10456 * objects/ER/relationship.c (relationship_create):
10457 (relationship_load): ditto.
10459 * objects/UML/association.c (association_create):
10460 (association_load): ditto.
10462 * objects/UML/class.c (fill_in_fontdata): ditto.
10464 * objects/UML/constraint.c (constraint_create): ditto.
10466 * objects/UML/dependency.c (dependency_create): ditto.
10468 * objects/UML/generalization.c (generalization_create): ditto.
10470 * objects/UML/implements.c (implements_create): ditto.
10472 * objects/UML/large_package.c (largepackage_create): ditto.
10474 * objects/UML/note.c (note_create): ditto.
10476 * objects/UML/realizes.c (realizes_create): ditto.
10478 * objects/UML/small_package.c (smallpackage_create): ditto.
10480 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
10482 * objects/custom/custom_object.c (custom_create): ditto.
10484 * objects/network/antenna.c (render_to_store): ditto.
10486 * objects/network/computer.c (render_to_store): ditto.
10488 * objects/network/disc.c (render_to_store): ditto.
10490 * objects/network/flash.c (render_to_store): ditto.
10492 * objects/network/hub.c (render_to_store): ditto.
10494 * objects/network/modem.c (render_to_store): ditto.
10496 * objects/network/modularswitch.c (render_to_store): ditto.
10498 * objects/network/monitor.c (render_to_store): ditto.
10500 * objects/network/printer.c (render_to_store): ditto.
10502 * objects/network/rj45plug.c (render_to_store): ditto.
10504 * objects/network/scead-plug.c (render_to_store): ditto.
10506 * objects/standard/textobj.c (textobj_load): ditto.
10508 * objects/sybase/client.c (render_to_store): ditto.
10510 * objects/sybase/dataserver.c (render_to_store): ditto.
10512 * objects/sybase/ltm.c (render_to_store): ditto.
10514 * objects/sybase/repserver.c (render_to_store): ditto.
10516 * objects/sybase/rsm.c (render_to_store): ditto.
10518 * objects/sybase/stableq.c (render_to_store): ditto.
10520 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
10522 * objects/UML/uml.h (UML_STEREOTYPE_START):
10523 (UML_STEREOTYPE_END): changes default strings.
10525 2002-01-28 Akira TAGOH <tagoh@redhat.com>
10527 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
10528 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
10529 which is given to arguments isn't UTF-8. so don't need to convert it.
10530 if GTK+ handle UTF-8, also don't need to convert it.
10532 (bracketted_to_string): fixed transaction for UTF-8 support.
10533 also start/end bracket is not necessarily 1 character. so that when use
10534 strend(), it doesn't work correctly.
10535 (string_to_stereotype): use utfchar instead of char.
10536 (remove_stereotype_from_string): ditto.
10537 (stereotype_to_string): ditto.
10539 * objects/UML/stereotype.h: ditto.
10541 * objects/UML/message.c: use utfchar instead of char for structure.
10542 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
10544 * objects/UML/small_package.c: use utfchar instead of char for structure.
10546 * objects/UML/realizes.c: ditto.
10548 * objects/UML/object.c: ditto.
10550 * objects/UML/large_package.c: ditto.
10552 * objects/UML/implements.c: ditto.
10554 * objects/UML/generalization.c: ditto.
10556 * objects/UML/dependency.c: ditto.
10558 * objects/UML/constraint.c: ditto.
10560 * objects/UML/component.c: ditto.
10562 * objects/UML/class_dialog.c (attributes_get_current_values):
10563 (attributes_list_new_callback, attributes_fill_in_dialog):
10564 (parameters_set_values, parameters_get_values):
10565 (parameters_get_current_values, parameters_list_new_callback):
10566 (operations_set_values, operations_get_values):
10567 (operations_get_current_values, operations_list_new_callback):
10568 (operations_fill_in_dialog, templates_set_values):
10569 (templates_get_values, templates_get_current_values):
10570 (templates_list_new_callback, templates_fill_in_dialog):
10571 fixed transaction for UTF-8 support.
10573 2002-01-27 Akira TAGOH <tagoh@redhat.com>
10575 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
10577 * objects/UML/class_dialog.c (class_read_from_dialog):
10578 (class_fill_in_dialog):
10579 (attributes_get_values): ditto.
10581 * objects/UML/actor.c (actor_create): ditto.
10583 * objects/UML/class.c (umlclass_calculate_data): ditto.
10585 * objects/UML/association.c (association_apply_properties):
10586 (fill_in_dialog): ditto.
10588 * objects/UML/uml.c (uml_get_attribute_string):
10589 (uml_get_operation_string):
10590 (uml_get_parameter_string):
10591 (uml_get_formalparameter_string): use utfchar instead of char.
10593 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
10594 UML_STEREOTYPE_END.
10596 * objects/UML/class.h: use utfchar instead of char.
10598 * lib/dia_xml.c (data_add_string): ditto.
10600 * lib/text.c (text_insert_char): fixed characters# calculation
10601 when includes multibytes character in strings.
10603 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
10605 Patch from Richard Rowell <rwrowell@bellsouth.net>:
10607 * app/lineprops_area.c:
10610 * lib/widgets.c: added crow foot arrow and cross arrow
10612 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
10614 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
10616 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
10618 * po/update.pl (REMOVED):
10619 * po/update.sh (REMOVED):
10620 * xml-i18n-merge.in.kg (REMOVED):
10621 * xml-i18n-update.in.kg (REMOVED):
10622 * sheets/Makefile.am:
10625 * configure.in: converted from xml-i18n-tools to intltools
10627 This looks like it fixes the build bugs of the snapshot tarballs,
10628 and it supersedes #69611.
10630 2002-01-25 Akira TAGOH <tagoh@redhat.com>
10632 * lib/text.c (text_insert_char): fixed characters# calculation.
10633 it's not string length.
10635 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
10636 is defined, needs to convert a description to UTF-8.
10638 * app/render_gdk.c (get_text_width): fixed transaction for
10639 UTF-8 support. also should uses gdk_text_width_wc() instead
10640 of gdk_text_width().
10642 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
10643 is defined, needs to convert to locale encoding for display.
10644 Also use utfchar instead of char for argument.
10646 2002-01-24 Hans Breuer <hans@breuer.org>
10648 * app/commands.c(edit_paste_callback and more) :
10649 call diagram_modified(ddisp->diagram) to fix #68083
10650 (help_menu_callback) : plug a DIR leak
10652 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
10653 GTK_TALKS_UTF8_WE_DONT
10655 * app/render_gdk.c(get_text_with) : it's a bad idea to use
10656 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
10657 gdk_text_width(). The length value is still questionable ...
10659 * lib/charconv.c : use functions already available in early
10660 GLIB-1.3 days whiches API hasn't changed since, to avoid
10661 version problems with the win32 build
10663 * lib/font.c : finally fix #58045 and #68208
10665 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
10667 2002-01-24 Akira TAGOH <tagoh@redhat.com>
10669 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
10670 no strings, fixed transaction.
10672 * lib/charconv.h: fixed typo.
10674 * app/menus.c: fixed typo.
10676 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
10678 * objects/UML/object.c: attrib's type uses utfchar instead of char.
10680 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
10682 * lib/text.c (text_create_change): use unichar instead of char.
10684 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
10685 use utfchar instead of char.
10687 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
10690 * lib/charconv.c (charconv_utf8_get_char): add new function.
10692 2002-01-23 Akira TAGOH <tagoh@redhat.com>
10694 * lib/text.c (text_delete_forward, text_delete_backward,
10695 text_split_line): fixed transaction for UTF-8 support.
10697 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
10698 strlen[] has string length for UTF-8, so has to use alloclen[].
10702 * .cvsignore: add dia.pot.
10704 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
10706 * configure.in: Added "sk" to ALL_LINGUAS.
10708 2002-01-22 Akira TAGOH <tagoh@redhat.com>
10710 * lib/text.c (text_set_string, new_text, text_copy,
10711 text_get_string_copy, text_join_lines): use utfchar instead of gchar
10714 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
10717 * lib/charconv.c (charconv_utf8_strchr): add new function.
10719 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
10721 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
10723 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
10724 strings to the appropriate encoding.
10726 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
10728 * app/object_ops.c (object_list_align_[hv]): Leak fix.
10730 * lib/Makefile.am (INCLUDES): Added debug flags.
10732 * app/object_ops.c: Fixed ordering problem of align equi-distant &
10735 2002-01-21 Akira TAGOH <tagoh@redhat.com>
10737 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
10738 gdk_string_width().
10740 * objects/GRAFCET/boolequation.c: fixed invalid comment.
10742 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
10743 when defined UNICODE_WORK_IN_PROGRESS.
10745 * lib/dia_xml.c (data_add_string): fixed typo.
10747 2002-01-20 Akira TAGOH <tagoh@redhat.com>
10749 * configure.in: fixed test gtk_advancement.
10751 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
10753 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
10756 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
10758 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
10759 tool tips, preferences, and arbitrarily long ~/.dia/history
10761 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
10762 removed 'Open Recent'; added new separators for recent documents on
10765 * app/interface.[ch] (interface_get_toolbox_shell): new function
10767 * app/diagram.c: added new parameter to recent_file_history_add() call
10769 * app/preferences.[ch]: added new 'Recent documents list size'
10772 2002-01-18 Akira TAGOH <tagoh@redhat.com>
10774 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
10775 if it failed, should be used gdk_font_load ().
10777 * lib/font.c (font_data): added the font entries for CJK.
10779 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
10781 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
10783 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
10785 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
10787 Patch from Martin Cracauer <cracauer@cons.org>:
10789 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
10792 2002-01-01 Hans Breuer <hans@breuer.org>
10794 * app/command.c : optional use GDI printing on windoze
10796 * app/preferences.[hc] : add option 'prefer_psprint' to
10797 select the print engine to use (could be used for Dia/Gnome
10800 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
10801 wmf plug-in with the common win32 print api. Now printing
10802 should work almost as expected from a windows program :-)
10804 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
10805 to .edit_delete to avoid clashes with C++
10807 * app/makefile.msc : updated for GDI printing
10809 * plug-ins/wmf/wmf.cpp : some small modifications to support
10810 GDI printing. Also swap R and B channel in draw_image()
10812 * app/makefile.am : added windows only files to EXTRA_DIST
10814 * objects/uml/class.c(umlclass_set_props) : force recalculation
10815 when applying properties
10817 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
10818 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
10819 many incompatible changes (and would force a gtk update)
10821 * objects/makefile.msc : don't build C-Objects which are
10822 already available as 'pure shape'
10824 * plug-ins/makefile.msc : remove diaimport from build. It was
10825 only available via mailing-list and is broken since the
10829 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
10831 * app/preferences.[hc] : tweaked preferences.c to make
10832 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
10833 added some more DiagramTree prefererences and their own
10836 * app/diagram_tree.[hc] : allow to sort by object type or name
10837 and hide by type ...
10838 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
10839 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
10841 * app/diagram_tree_window.c : handle hidden types and window
10844 2001-12-20 Hans Breuer <hans@breuer.org>
10846 * plug-ins/python/Makefile.am : patch from Peter Moulder
10847 <pmoulder@csse.monash.edu.au> to make the python plug-in
10848 compile on *nix too.
10850 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
10852 Patch from Alan <horkana@tcd.ie>:
10854 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
10856 2001-11-20 Hans Breuer <hans@breuer.org>
10858 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
10860 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
10862 * app/diagram_tree.[hc] : Added new functions and types for
10863 sorting diagram and objects, and attaching the popup menus.
10865 * app/preferences.h: Added more diagram tree preferences, using a
10866 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
10867 height and width of the diagram tree window and the default sort
10868 orders for diagrams and objects.
10870 * app/preferences.c (prefs_data): Added new entries for the new
10871 diagram tree preferences.
10873 * app/preferences.c (prefs_tabs): New tab for diagram tree
10876 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
10877 * app/diagram_tree_window.c (diagram_tree_window_new):
10878 * app/interface.c (create_tree_window): The diagram tree window is
10879 initialised using the DiagramTreeConfig part of prefs.
10882 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
10884 * app/diagram_tree_menu.[hc]: New files. Functions to create the
10885 diagram tree popup menus.
10887 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
10888 the diagram tree popup menus.
10890 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
10893 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
10895 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
10896 double-clicking a diagram tree node raises the diagram window
10897 to the foreground (and, if a object node was clicked, selects the
10898 object in the diagram).
10900 * app/diagram_tree.c (select_tree_widget): selecting an object
10901 node with single click simply updates it (no raise).
10903 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
10904 These changes make the diagram tree lazy: it is not created unless
10905 the diagram tree window is requested.
10907 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
10908 function for creating the tree window.
10910 * app/interface.c (create_tree_window): call
10911 create_diagram_tree_window() instead of diagram_window().
10913 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
10914 (diagram_tree_update, diagram_tree_update_name)
10915 (diagram_tree_add_object, diagram_tree_add_objects)
10916 (diagram_tree_remove_object, diagram_tree_remove_objects)
10917 (diagram_tree_update_object): accept a NULL tree as a nominal
10918 argument (and do nothing in this case!), so that the diagram tree
10919 is not initialised if not used.
10921 * app/diagram_tree_window.c (diagram_tree): do not create the
10922 diagram tree until diagram_window() or diagtree_show_callback()
10925 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
10926 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
10928 * app/diagram_tree_window.[hc] : (new files) implementation of
10929 the diagram tree window, a container for a diagram tree. [Removed
10930 the horizontal scroll bar glitch by disableing it]
10932 * app/diagram_tree.[hc] : (new files) implementation of the
10933 diagram tree widget. [Don't rely on the layers GPtrArray to be
10934 NULL terminated, but use its ->len field]
10936 * app/Makefile.am (dia_core_files): added new files
10937 diagram_tree.[hc] and diagram_tree_window.[hc]
10939 * app/interface.[hc] : (create_tree_window): this function
10940 creates the new diagram tree window widget
10942 * app/undo.c (delete_objects_apply) (delete_objects_revert)
10943 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
10944 (ungroup_objects_apply) (ungroup_objects_revert):
10945 every time that an undoable command modifies a diagram
10946 adding/removing/(un)grouping objects, a diagram_tree_something() is
10947 invoked to keep the diagram tree window in sync
10949 * app/properties.c (properties_apply): call to
10950 diagram_object_modified(), which updates the diagram tree window
10951 when the properties of an object are modified
10953 * app/preferences.[hc] : new "show_diagram_tree" configuration option
10954 (whether the diagram tree window should be shown on dia startup)
10956 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
10958 * app/diagram.h (diagram_object_modified): callback notifying of a
10959 diagram object modification
10961 * app/diagram.c (diagram_load_into): added call to
10962 diagram_tree_add() to add newly loaded diagrams to the diagram
10964 (diagram_destroy): call to diagram_tree_remove() to remove a
10965 destroyed diagram from the diagram tree window
10966 (diagram_add_object): call to diagram_tree_add_object() to add an
10967 object to the diagram tree window
10968 (diagram_add_object_list): as above, but with an object list
10969 (diagram_selected_break_external): deletion of objects from the
10970 diagram is detected here, and diagram_tree_remove_object() is
10971 invoked to remove the object from the diagram tree window (it
10972 would be nice to have a diagram_remove_object() in the Diagram
10974 (diagram_set_filename): update the diagram tree window when a
10975 diagram's filename changes
10977 * app/commands.c (file_new_callback): added call to
10978 diagram_tree_add() to add newly created diagrams to the diagram
10981 * app/app_procs.c (app_init): added call to create_tree_window()
10983 * app/makefile.msc : updated
10985 2001-10-28 Hans Breuer <hans@breuer.org>
10987 * app/preferences.h (DiaPreferences):
10988 * app/preferences.c (prefs_data): new "show_diagram_tree"
10989 configuration option (whether the diagram tree window should be
10990 shown on dia startup)
10992 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
10993 entry (both for GNOME and gtk)
10995 * app/diagram.h (diagram_object_modified): callback notifying of a
10996 diagram object modification
10998 * app/diagram.c (diagram_load_into): added call to
10999 diagram_tree_add() to add newly loaded diagrams to the diagram
11001 (diagram_destroy): call to diagram_tree_remove() to remove a
11002 destroyed diagram from the diagram tree window
11003 (diagram_add_object): call to diagram_tree_add_object() to add an
11004 object to the diagram tree window
11005 (diagram_add_object_list): as above, but with an object list
11006 (diagram_selected_break_external): deletion of objects from the
11007 diagram is detected here, and diagram_tree_remove_object() is
11008 invoked to remove the object from the diagram tree window (it
11009 would be nice to have a diagram_remove_object() in the Diagram
11011 (diagram_set_filename): update the diagram tree window when a
11012 diagram's filename changes
11014 * app/commands.c (file_new_callback): added call to
11015 diagram_tree_add() to add newly created diagrams to the diagram
11018 * app/app_procs.c (app_init): added call to create_tree_window()
11020 2001-10-28 Hans Breuer <hans@breuer.org>
11022 * plug-ins/python/pydia-property.c : apparently I missed
11023 to commit this last time. Now it has some more SetAttr
11024 support (apply from property)
11026 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
11028 * plug-ins/python/pydia-text.[ch] : new files
11030 2001-10-14 Hans Breuer <hans@breuer.org>
11032 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
11033 strings. Use g_strdup() for these.
11035 libxml2 does not produce 'any extra indentation when saving a tree'
11036 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
11037 libxml(1). To get human readable XML some extra tweaking is required.
11038 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
11039 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
11040 * app/preferences.[ch] : initialize 'pretty_formated_xml'
11042 * lib/libdia.def : updated externals
11044 * lib/properties.h : add prototype for prop_list_from_single ()
11046 * plug-ins/makefile.msc : build metapost plug-in
11048 * plug-ins/metapost/render_metapost.c : msvc does not like
11049 switch labels without operation 'default: }'. Added a noop.
11051 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
11052 * plug-ins/python/diamodule.c : added PyDiaText
11053 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
11054 Although the python plug-in does not use libxml at all, the
11055 headers are required to use the lib/prop*.h headers
11057 * plug-ins/python/pydia-diagramdata.c : added wrappers for
11058 update_extents and get_sorted_selected (should I duplicate
11059 more functions from PyDiaDiagram or should they be moved?)
11061 * plug-ins/python/pydia-properties.c : allow to set (some) properties
11062 through the dictionary api
11063 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
11064 * plug-ins/python/pydia-property.c : implement it (currently only
11065 string properties can be set)
11067 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
11068 Quoting myself: 'Still not convinced that this is better than an
11069 integral property->type and some casting ...
11070 It is trading a straightforward 40 lines switch statement to
11071 this nice 'type safe' function mapping (about 125 lines)'
11072 (But now it works again, better than changing the News file :)
11074 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
11076 patch from <robert.young@dsto.defence.gov.au>:
11077 * objects/UML/component.c: remember to set font in UML component
11078 object (fixes #62132)
11080 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
11082 * plug-ins/metapost/metapost.c:
11083 * plug-ins/metapost/Makefile.am:
11084 * plug-ins/metapost/render_metapost.c:
11085 * plug-ins/metapost/render_metapost.h:
11086 Metapost renderer from Chris Sperandio
11088 2001-09-14 Hans Breuer <hans@breuer.org>
11090 * app/render_gdk.c : reflect the fact, that GTK already talks
11091 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
11094 * app/render_libart.c : trying to fix #58045 but it appears
11095 to be an Gdk/win32, too.
11097 * lib/charconv.c : handle utf8 conversion with the help of
11098 glib-1.3 even in the !HAVE_UNICODE case.
11100 * lib/dia_xml.c : reduce complaing about missing encoding, by
11101 detecting if the default (utf8) would break the file.
11103 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
11105 * lib/charconv.c: (get_local_charset): at least please try to not
11106 silently change the logic, while avoiding crashes.
11108 * lib/font.c: (suck_font): put a #error, we have a nasty something
11109 to fix there before we switch to Gtk 2.0.
11111 2001-09-09 Hans Breuer <hans@breuer.org>
11113 * **/makefile.mingw : Approach to compile Dia with mingw.
11114 Compiling mostly works but running does not (yet) ...
11117 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
11118 Apparently mingw needs it too.
11119 - enable 'normalization' of a null verctor. Otherwise the beziergon
11120 bounding box calculation would be broken at least with msvc. What's
11121 the mathematical correct result of 0.0/0.0 ?
11123 * lib/dia_xml.c : isinf() for mingw too.
11125 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
11128 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
11129 Please don't do it.
11131 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11133 * lib/libdia.def : updated externals. Apparently mingw needs
11134 them to produce the right mangling.
11136 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11139 2001-09-08 Wang Jian <lark@linux.net.cn>
11141 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11143 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
11145 * lib/dia_xml_libxml.h:
11146 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11147 libxml1's code, to rework the output file before it gets committed
11148 to disk. This is rubbish, and will be removed when libxml2
11149 switches from discouraged to mandatory.
11150 All in all, this fixes #60152.
11153 * lib/charconv.c: (charconv_unichar_to_utf8):
11154 made the type of the input parameter explicitly an unsigned long.
11156 * configure.in: Added a check for libz (we must now include it
11157 explicitly, for xmlDiaSaveFile).
11159 * app/load_save.c: (diagram_data_save):
11160 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11161 (dia_pluginrc_write):
11162 * plug-ins/shape/shape-export.c: (new_shape_renderer),
11163 (end_render), (draw_string):
11164 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11167 Made sure we always write UTF-8 XML files, and through
11170 * NEWS: documented that fact.
11172 2001-09-07 James Henstridge <james@daa.com.au>
11174 * configure.in (found_libxml): refactor the check for libxml a
11175 little so that it handles finding both libxml1 and 2 better.
11177 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
11179 * app/app_procs.c: removed a spurious } which caused a compilation
11180 error in the (!HAVE_GNOME && HAVE_POPT_H) case
11182 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11183 don't know what ANSI X3.4-1968 is. I didn't know until this day,
11184 but it's just plain old ASCII. Added a check to shield the poor
11187 Patches from <robert.young@dsto.defence.gov.au>:
11189 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11190 width and height of text before calculating bounds. Fixes #59928
11192 * app/preferences.c: Moved grid related items into Grid Tab.
11194 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
11196 * app/interface.c: (create_zoom_widget): connected one more signal
11197 to the Zoom selector combo's list. Fixes #59879.
11199 * app/app_procs.[ch]: (app_init) (do_convert)
11200 (build_output_file_name): brought back into the main executable
11201 the rare useful bits of the ill-fated diaconv. This means we have
11202 one new feature : --export-to-format (-t), which should make
11203 writing conversion scripts easier, and a crude implementation of
11204 -t and -e for the poptless argument parsing, which means the Win32
11205 port should be able to take advantage of it (that should make
11206 resolving #58197 possible).
11208 * app/diaconv.c: kept the poor duck compiling (but that's about
11211 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11212 I've got it right).
11214 * NEWS: updated about the new feature above, and documented the
11215 "missing encoding specification" complaint.
11217 2001-09-01 Abel Cheung <maddog@linux.org.hk>
11219 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11221 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
11223 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11226 2001-09-01 James Henstridge <james@daa.com.au>
11228 * */Makefile.am: various changes to include missing files, and fix
11229 sheets dir to handle building with builddir != srcdir.
11231 * autogen.sh: unconditionally pass the --enable-maintainer-mode
11232 and --enable-db2html flags so that builds from CVS work correctly.
11234 * configure.in: increment version number. Also add an
11235 --enable-db2html flag. Without the flag, db2html won't be run (if
11236 the flag is passed and db2html is not present, do nothing).
11238 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
11240 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11241 even compiled. It's really too bad there is no lint tool easily
11242 available (or a more cautious, pedandic, paranoid and verbose
11243 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11245 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11248 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11249 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11251 * app/menu.c: added ellipsis(...) to diagram properties menu item.
11252 * app/dia-props.c: diagram properties dialog contents did not
11253 represent current diagram settings.
11254 * app/dia-props.[ch]:
11255 * app/display.c: diagram properties contents now follows currently
11257 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11259 * AUTHORS: added Robert Young.
11261 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11263 * app/modify_tool.c: (modify_button_release): Patch from
11264 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11265 #59090: if selection dragging was released outside of the window,
11266 artifacts of the selection box remained.
11268 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
11270 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11272 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
11275 * sheets/Makefile.am: prepared the terrain for the Version of
11276 xml-i18n-tools Which Comes After 0.9 (and which will feature at
11277 last a sane behaviour with XML files). Some reasonible delay
11278 before enforcing that version *will* be given.
11280 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11282 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11283 becomes a nonexistent symbol.
11285 2001-08-18 Hans Breuer <hans@breuer.org>
11287 * app/app_procs.c : made it compile without ENABLE_NLS
11289 * app/diap_callbacks.c : strcmp isn't guaranteed to work
11292 * app/load_save.c :
11294 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
11296 xmlGetProp, ... -> xmlFree
11297 malloc, strdup -> free
11298 g_new, g_malloc, g_strdup - > g_free
11300 * app/win32print.c : some more error checking, still not
11303 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
11305 * lib/dia_xml.c : msvc still has no unistd.h
11308 * lib/sheets.c : temporary resolved libxml include brokeness
11310 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
11311 changes. Compiles again, but doesn't do anything useful anymore.
11312 (see THE_PROP_TYPE_IS_INTEGRAL)
11314 * **/makefile.msc : updated to use LIBXML2
11316 * lib/libdia.def : reflect api changes
11318 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
11320 * config.h.win32: added defines telling that gtk speaks UTF8.
11321 Hans, I believe this reflects what GTK on Win32 does.
11323 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
11325 * lib/prop_inttypes.c:
11327 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
11330 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
11331 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
11332 search for plug-ins is done.
11333 * app/Makefile.am: made app/run_dia.sh use the // capability. No
11334 need to update this anymore if we get a new plug-in library (or
11337 * lib/dia_xml.c: #include <unistd.h> was missing.
11339 * lib/properties.h:
11340 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
11341 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
11344 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
11346 * sheets/civil.sheet: removed duplicate "Danish" entries.
11351 * sheets/Makefile.am:
11353 * Makefile.am: applied the xml-i18n-tools README's instructions.
11355 * po/(da de fr hu nl nn no sl).po: merged the translations from
11356 the sheet files into the .po files. I hope I haven't mixed
11358 * sheets/*.sheet (REMOVED):
11359 * sheets/*.sheet.in (NEW): moved the sheet files sans
11360 translations into .sheet.in files.
11362 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
11363 because we don't yet want to force all translators to work using
11364 UTF-8 editors. We'll want to do that sometime (sooner rather than
11365 later). Okay, I sing a slightly different tune in po/ChangeLog...
11367 * dia.desktop (REMOVED):
11368 * dia.desktop.in (NEW): used also the x18t infrastructure for
11371 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
11372 "official" version of x18t with support for .sheet files is available.
11373 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
11374 "official" version of x18t which doesn't corrupt UTF-8 data in XML
11377 ** yes, we are now using xml-i18n-tools to manage the sheet
11378 translations. For the Win32 build, Nemo stores snapshots of
11379 translated strings next to the CVS snapshots. **
11381 * sheets/checktrans.py: suddenly, some sheets have lots of
11382 translations (objects which existed before sheets, mostly).
11383 Adapted the formatting.
11385 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
11387 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
11388 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
11389 <robert.young@dsto.defence.gov.au>, to fix #59090.
11391 * app/display.c: (ddisplay_scroll): While at it, added some
11392 margin, so that autoscrolling can happen within a margin outside
11393 the diagram's extents.
11397 * app/disp_callbacks.c: Robert "forced" me to go when I usually
11398 don't, namely the app/ directory. So while I was there, I
11399 scratched a long-time itch. If no object has focus, pressing the
11400 space bar will select back the tool which was selected before the
11401 current one (I find this especially useful with "reset after create" !)
11403 * lib/proplist.c: (prop_list_from_single): Renamed
11404 prop_list_singleton() to avoid confusion with the Singleton
11405 pattern (which it definitely is not).
11407 * lib/propobject.c: (object_prop_by_name_type),
11408 (object_prop_by_name): The "flags" parameter was not necessary.
11409 These don't return synthetic properties, but properties built from
11410 a real property description list; therefore, we don't call
11411 make_new_prop() but use the existing property descriptor, which
11412 has perfectly valid (and meaningful) flags.
11414 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
11415 new predicates better reflect the reason why properties exist when
11416 they're created by make_new_prop() or object_prop_by_name().
11418 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11419 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
11422 * lib/properties.h: reflects all the above changes.
11424 * objects/SADT/arrow.c:
11425 * objects/SADT/annotation.c:
11426 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
11429 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11431 * lib/properties.h:
11432 * lib/proplist.c: (prop_list_singleton):
11433 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11434 Added these, to simplify interactions of plug-ins with the StdProp
11439 * lib/dia_xml_libxml.h (NEW):
11444 * objects/custom/shape_info.c: A few prototypes were causing
11445 #include hell, because we generally attempt to not pull the whole
11446 libxml header set when we include dia_xml.h. Moved those
11447 prototypes away for the rare cases they're necessary.
11449 2001-08-15 Hans Breuer <hans@breuer.org>
11451 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
11454 * lib/makefile.msc : updated
11456 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
11457 use G_GNUC_FUNCTION instead.
11459 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
11461 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
11462 msvc instead of cleaning missing includes
11464 * plug-ins/wmf/wmf.cpp :
11465 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
11467 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11474 * objects/custom/shape_info.c:
11475 * plug-ins/shape/shape-export.c:
11476 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
11477 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
11478 removed xmlKeepBlanksDefault(0) in favour for proper
11479 xmlIsBlankNode() testing. Lots of other fixups to use the
11480 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
11481 make libxml1 output correct files.
11483 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
11484 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
11485 packages). If both devel packages are found, the build will stop
11486 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
11488 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
11489 allocate the first handle :-)
11491 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
11492 a cast and a sizeof.</gratuitous>
11494 * objects/custom/custom_object.c: (custom_copy): don't call
11495 text_get_attrbutes if the shape has no text...
11496 (custom_update_data): The info->resize_with_text code was a bit
11497 directive; basically, the shape's bounding box was forced to be
11498 proportional to the text's bounding box.... This fixes #57187.
11500 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
11501 default for info->aspect_ratio; unobfuscated a line about
11502 info->resize_with_text;
11504 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11506 * lib/properties.h: added comments next to the PROP_TYPEs to tell
11507 which C Property subclass to use.
11509 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
11510 cast-ridden form of setting properties in a list, in favour for
11511 the "local pointers" form. I'll take any better offer...
11513 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
11515 * lib/font.c: fprintf(...) --> fprintf(format...)
11517 * configure.in: added a disabled versioned test for glib.
11518 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
11519 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
11520 g_critical() with a simple g_error(). Proper fix is to implement
11523 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
11526 * lib/properties.h:
11527 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
11528 * lib/proplist.c: (find_prop_by_name_and_type):
11529 * lib/prop_basic.c: (make_new_prop), (initialize_property):
11530 * lib/propoffsets.c: (do_set_props_from_offsets),
11531 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
11532 Added a type_quark member to PropDescription, Property and
11533 PropOffset. Used it to implement a safety in
11534 do_[sg]et_props_from_offsets().
11536 * objects/flowchart/diamond.c: the diamond's text was not saved,
11537 and thus not even copied (c&p).
11538 * objects/standard/textobj.c: ditto.
11540 Most of the above changes thanks to Robert Young's testing. Thanks !
11542 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
11544 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
11547 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
11549 * lib/proplist.c (prop_list_from_descs): added a call to
11550 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
11551 too embarrassing to tell.
11553 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
11554 while loop to a for loop, for symmetry with
11555 prop_offset_list_calculate_quarks().
11557 * lib/geometry.h: new inline function, rectangle_equals.
11559 * lib/diagramdata.[ch]: refactored a bit the diagram extents
11560 computation logic, and changed it to always be the union of the
11561 visible layers' extents. This should close #58882 (Debian
11562 #107167), and fixes #55498.
11564 * app/display.c: made the initial visible box more coherent with
11565 the diagram being loaded's extents.
11567 * app/prop_attr.c: don't set the font (from offset) if font_data
11568 is NULL. Two brainos in colorprop_load() and fontprop_load().
11570 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
11572 * lib/properties.[ch]: split in a lot of pieces:
11574 * lib/prop_*.[ch] (NEW): all property types are now first-class
11575 objects, inheriting from the original abstract Property type.
11576 * lib/propdesc.c (NEW): property description handling routines
11577 * lib/propoffsets.c (NEW): property offset handling routines
11578 * lib/proplist.c (NEW): property list handling routines
11579 * lib/propobject.c (NEW): property list <-> object routines
11580 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
11582 * lib/propinternals.h: prototypes for stuff not usually needed by
11583 the outside of StdProps.
11584 * lib/Makefile.am: a lot of new files have been added...
11586 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
11587 BOTH INTERFACES AND RUN-TIME STABILITY.
11589 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
11591 * lib/object.h: removed the incestuous relationship with
11592 properties.h' contents. Now a Property list is a GPtrArray -->
11593 object interface change !
11595 * app/app_procs.c/app_init(): removed a disabled call to a
11596 non-existent routine. Added a call to stdprops_init().
11598 * objects/Makefile.am: disabled the construction of EML. I'm not
11599 touching these until a certain issue is solved (or this module
11602 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
11603 objects to the interface changes.
11605 * app/disp_callbacks.c: killed a warning.
11606 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
11609 The macros PROP_VALUE_* have disappeared. Adapted to using the new
11612 * plug-ins/dxf/dxf-import.c:
11613 * plug-ins/xfig/xfig-import.c:
11614 PROP_VALUE_* macros have been removed. Converted to the new API.
11616 * plug-ins/python/**/*: I gave up converting this; I can't
11617 compile --with-python (problems with object.h defined both by us
11618 and by Python). I'll gladly help whomever cares to fix it !
11619 (or, fix it myself if someone tells me how to compile it).
11621 * configure.in: added the UNICODE-related progress defines.
11624 * lib/geometry.h: On Solaris and perhaps other systems, finite()
11625 is defined in ieeefp.h rather than in math.h. Patch from Andrew
11626 Halper <ashalper@acm.org> with further modifications, isinf() is
11627 provided by -lsunmath (sunmath.h).
11629 * lib/font.c: conditionally disabled Lars' debugging messages.
11630 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
11632 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
11634 * lib/bezier_conn.h:
11635 * objects/standard/bezier.c (bezierline_create):
11636 * lib/bezier_conn.c (bezierconn_init):
11637 Preparations for use of userdata for bezier lines.
11639 * objects/standard/polygon.c:
11640 * objects/standard/create.h:
11643 * plug-ins/xfig/xfig-import.c:
11644 Use of user_data for polygon as well, including adding
11645 polyshape_set_points. Include file for non-interactive
11646 creation of standard objects, objects/standard/create.h
11648 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
11650 * app/render_gdk.c:
11651 * app/render_gdk.h:
11655 More preliminary freetype support. Not at all functional, crashes
11660 * objects/standard/polyline.c:
11661 Support for creating polyline objects with more than two points.
11662 This includes an extra function and a prototype change in the
11663 poly_conn lib object.
11665 * lib/object.c (object_copy): Fixed memory leak of handles and
11668 2001-08-08 Abel Cheung <maddog@linux.org.hk>
11670 * dia.desktop: added traditional Chinese strings
11672 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
11674 * NEWS: updated to reflect build-time dependencies.
11676 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
11677 around obj->ops->describe_props(obj). Quarks are none of an
11678 object's business in the general case...
11679 * lib/text.c: Added an apply_textattr_properties() function to
11680 factor out some common code related to applying a dialog's text
11681 attribute properties to a (Text *) which wasn't edited there.
11682 Ditto for textstr, for the string part of an objet.
11684 * objects/GRAFCET/action.c:
11685 * objects/SADT/annotation.c:
11686 * objects/SADT/box.c: used apply_textattr_properties().
11688 * objects/UML/actor.c:
11689 * objects/UML/branch.c:
11690 * objects/UML/component.c:
11691 * objects/UML/constraint.c:
11692 * objects/UML/small_package.c:
11693 * objects/UML/state.c:
11694 * objects/UML/usecase.c:
11695 * objects/UML/large_package.c:
11696 * objects/UML/note.c:
11697 * objects/UML/node.c:
11698 * objects/UML/message.c:
11699 * objects/UML/classicon.c:
11700 * objects/UML/object.c:
11701 * objects/UML/realizes.c:
11702 * objects/UML/dependency.c:
11703 * objects/UML/implements.c:
11704 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
11705 (most objects were already using StdProps to some extent ; this
11706 systematises usage and removes some dead wood).
11708 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
11709 * objects/UML/uml.[ch]: audited for UTF-8.
11711 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
11712 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
11713 private (ISO-8859-1) definition.
11715 * lib/charconv.c: Added a warning if we didn't run
11716 nl_langinfo(CODESET) but rely instead on a hardcoded default.
11718 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
11721 * app/disp_callbacks.c: added a way for an object to cause an
11722 already realised menu to be destroyed (for instance if it changes
11725 * objects/custom/custom_object.c: used the above to fix #55073.
11727 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
11729 * configure.in: Remove 2.50 prereq.
11731 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
11733 * po-checktrans.py: under some circumstances, there was one column
11734 more than what was supposed to be, thus breaking the formatting.
11736 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
11738 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
11740 * NEWS: updated with new stuff since 0.88
11742 * shapes/network/antenna.shape: the text was misplaced ; fixed.
11744 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
11745 firewall router (upon request from Cyril Lacoux
11746 <clacoux@easter-eggs.com>)
11748 * configure.in (didn't rename to configure.ac): autoconf 2.50
11749 constructs were used ; added an AC_PREREQ call to guard against
11752 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
11754 * lib/properties.c: minor clean-ups with the event delivery code.
11756 * EML/instantiation.c: brought this object back from stone and ice
11759 * app/diaconv.c(NEW): added a command-line conversion tool. Still
11760 lacks a man page and correctness. In fact, it doesn't work. Please
11761 see #58196 if you want to finish it.
11763 * lib/message.[ch]: redefined things a little so that a different
11764 message_internal routine could be passed.
11765 applications can use that to fit themselves to the display model.
11767 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
11769 * objects/SADT/box.c:
11770 * objects/GRAFCET/action.c: spelling in property descriptors (name
11772 * objects/SADT/annotation.c: ditto, plus a temporary test of the
11773 event delivery code (try to click on the "click me !" button !).
11776 * lib/properties.[ch]: improved (fixed) support for group event
11777 handlers. Fixed various things from yesterday's code to make it
11778 not too obviously crash.
11780 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
11782 * app/group.c: added delivery of events to the first member of the
11783 group which is able to process it.
11785 * lib/properties.c(prop_desc_lists_intersection): properties
11786 don't match if they don't have identical event handler.
11787 * lib/properties.h: simplified the PropEventHandler signature.
11789 Event delivery code is still untested so far, but should be
11792 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
11794 * lib/properties.[ch]: Added (untested !) property event handler
11795 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
11796 generating such events. This stuff compiles, and should lurk
11797 around silently as long as you don't declare property descriptors
11798 with events (AFAICT).
11799 In object_create_props_dialog() and friends:
11800 attached a single structure with lots of data instead of lots of
11801 little attachments of data to the dialog widget.
11803 * lib/object.h: fixed mild typedef breakage introduced by the above.
11805 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
11807 * lots of files: Changed Font to DiaFont
11808 * */Makefile.am: Added FREETYPE_LIBS
11809 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
11811 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
11813 * configure.in: Added "nn" to ALL_LINGUAS.
11815 2001-07-09 Alex Larsson <alexl@redhat.com>
11817 * app/disp_callbacks.c:
11818 Add gdk_im_ready() calls to XIM code.
11820 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
11822 * lib/properties.[ch]: splitted prop_get_widget() into
11823 prop_get_widget() (gives a widget but doesn't fill it) and
11824 prop_reset_widget() (fills an existing widget with a property's value).
11826 * lib/widgets.[ch]: const enforcement police work.
11828 * shapes/network/antenna.shape: added a connection point at top,
11829 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
11831 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
11833 * intl/*: tested with gettext-0.10.38
11834 * configure.in: moved a macro call around (AM_PROG_CC) to keep
11835 some of autogen.sh from complaining.
11836 * INSTALL: added a warning against gettext older than at least 0.10.36
11838 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
11840 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
11841 AM_ICONV (both provided by gettext)
11843 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
11845 * lib/charconv.c: corrected the degraded mode for when
11846 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
11848 * objects/chronoline/chronoline_events.c: UTF8 compliance.
11850 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
11852 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
11853 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
11854 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
11857 * objects/chronogram/chronoline.c:
11858 * objects/chronogram/chronoref.c: took advantage of the above to
11859 make nicer looking dialogs.
11861 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
11862 from libunicode's internals).
11863 * lib/message.c: convert strings to local encoding prior to
11864 display (UNICODE_WORK_IN_PROGRESS)
11865 * lib/properties.[ch]: convert strings to local encoding prior to
11866 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
11867 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
11868 * lib/stringprerenderer.[ch]: ditto
11870 (lib/text.c has been audited for UTF8, but the size of the changes
11871 make them inappropriate for commit before 0.89)
11873 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11875 * objects/boolequation.h (<save|load>_boolequation): made the
11876 prototypes for match the .c file.
11878 * samples/grafcet.dia: minor non-conformance with IEC-848
11879 fixed (in the transition from step 100 to step 101).
11881 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
11882 disallow editing of properties if the object is part of a group.
11884 * objects/chronogram/chronoline.c:
11885 * objects/SADT/annotation.c:
11886 * objects/SADT/box.c:
11887 * objects/GRAFCET/step.c:
11888 * objects/GRAFCET/transition.c:
11889 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
11891 2001-06-12 Hans Breuer <hans@breuer.org>
11893 * lib/libdia.def : removed lazyprop exports
11894 * lib/makefile.msc : removed lazyprop.obj
11896 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
11897 and avoid crashes by always creating a custom->text,
11898 when (custom->info->has_text)
11900 * objects/makefile.msc : removed sybase from build
11902 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
11903 ObjectNode is a pointer already, which is what we want
11904 instead of a pointer pointer.
11906 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
11907 and implemented working export for images
11909 * shapes/network/zip-disk.shape : added connection points
11911 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11913 * objects/SADT/box.c: removed lazyprops for standard props.
11914 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
11915 * objects/chronograms/chronoref.c: ditto
11919 * lib/connpoint_line.c:
11920 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
11921 * lib/properties.[ch]: new property types:
11922 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
11923 - PROP_TYPE_MULTISTRING: same as string, but renders as a
11924 multi-line entry box.
11925 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
11926 in a tabbed-notebook style (this is a bit complicated to use;
11927 see objects/chronograms/chronoline.c for an example).
11929 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
11931 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
11932 * objects/GRAFCET/step.c: ditto.
11933 * objects/GRAFCET/vector.c: ditto.
11934 * objects/SADT/annotation.c: ditto.
11935 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
11937 * lib/properties.[ch]: two more non-visible types
11938 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
11940 * lib/neworthconn.[ch]:
11941 * lib/orthconn.[ch]: added support for manipulation through
11942 standard properties.
11944 * configure.in: removed -fomit-frame-pointer, this seems to
11945 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
11948 * charconv.[ch]: more functions from unicode.h.
11949 get_local_charset() wasn't working properly, fixed now.
11950 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
11953 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
11954 * lib/lazyprops.[ch]: put a big fat warning in.
11956 * app/render_eps.c: one line mysteriously went away, causing a
11957 variable to be used uninitialised....
11959 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
11961 * app/app_procs.c: commented out the call to
11962 bind_textdomain_codeset(): it's premature.
11964 * lib/connpoint_line.c: a NULL point can be given to
11965 connpointline_adjust_count(), in case there's not really a clicked
11968 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
11969 #include order troubles. #included by lib/text.h, so there is no
11970 impact outside lib/.
11971 * lib/properties.[ch]: added support for CONNPOINT_LINE and
11972 (nonvisible) TEXT properties.
11974 * objects/GRAFCET/action.c:
11975 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
11978 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
11979 standard properties code). Grafted a dynamic number of connection
11980 points (heavily inspired from what Vergent does). This is the real
11983 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
11985 * lib/fonts.c: some hardening (mostly g_assert())
11986 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
11988 * app/app_procs.c (app_init): added a call to
11989 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
11990 (UNICODE_WORK_IN_PROGRESS).
11992 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
11994 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
11996 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
11997 (fixes #55863) : some clean-ups in the handling of connection
11998 points. Now the total number of connection points is just a
11999 #define (the proper solution is to retrofit the GRAFCET Vergent's
12000 dynamic behaviour wrt connection points).
12002 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
12004 * app/app_procs.c (app_init): added a call to unicode_init() (only
12005 if HAVE_UNICODE, of course).
12007 * lib/charconv.c: simplified the code which detects the local
12008 charset. No need to use <langinfo.h>, libunicode already takes the
12009 burden of figuring that out. Also, if local charset is utf8, no
12010 conversion will take place.
12011 Exposed a way to get the current charset (similar to
12012 unicode_get_charset() but actually working, hopefully).
12014 * lib/charconv.h: Added a partial non-UTF8 implementation of
12015 unicode.h if !HAVE_UNICODE (actually, all the time for the
12016 moment). The UTF8 implementation is just macros on libunicode (use
12017 the functions prefixed by uni_, as defined by charconv.h, not
12018 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
12019 From now on, all strings which don't *need* to be ASCII should be
12020 utfchar *, not gchar *. Just include charconv.h, let it sort out
12021 the details (such as: "is libunicode available and enabled?")
12023 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
12024 "API" instead of directly libunicode. Removed the now unnecessary
12025 speculative clustering of characters in encoding pages.
12027 * app/render_eps.c: made the local8->utf8 conversions dependent of
12028 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
12029 boundary will be when this WIP is done).
12031 * lib/dia_xml.c (data_point): fixed a format string typo.
12033 * po/POTFILES.in: added all C files from lib/
12035 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
12037 * app/disp_callbacks.c: make sure the objects' connected objects
12038 are updated when the objects' size changes after a keypress event
12041 * configure.in: added a big warning about the possible future
12042 non-optionality of --enable-unicode.
12044 * TODO: removed entries which look like done ; added a few ones
12045 (Bugzilla "enhancement" bugs may be a better way to keep track of
12048 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
12050 * objects/UML/message.c: got rid of #55564 and of message_copy()
12051 by using more standard properties (are the message_state_*()
12052 functions still necessary ?)
12054 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
12057 * objecs/custom/shape_info.c:
12058 * plug-ins/shape/shape-export.c:
12059 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
12060 use xmlChar instead of obsolete CHAR.
12062 2001-06-03 Hans Breuer <hans@breuer.org>
12064 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
12065 * app/commands.c : give the right number of parameters
12066 to diagram_update_menu_sensitivity ()
12068 * app/preferences.c : do proper initialization for DiaPrefsData:
12069 render_bounding_boxes. It would be a real surprise if 'hidden'
12070 properties would have ever worked before.
12071 Don't try to access the widgets of hidden property, it does not
12074 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
12075 it is defined in libdia, but initialized from dia app, which
12076 otherwise gave nice start-up crashes.
12078 * lib/diagramdata.c : initialize the color for rendering bounding
12079 boxes in the Dia range (0 .. 1.0)
12081 * lib/libdia.def : added *_bbox functions for export
12083 * lib/makefile.msc : added new sources
12085 * objects/custom/custom_object.c : use HAVE_UNISTD_H
12087 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
12090 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
12091 removes a translation of menus (in a place where there shouldn't
12092 have been), which gets rid of a waterfall of warnings if LANG!=C,
12093 and a fix to #55047.
12095 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
12097 * lib/charconv.c : added #include <errno.h>
12099 * app/dia_embedd.c : updated menus_get_item_from_path usage
12101 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
12103 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
12104 Added a special case for Symbol strings, so that they're not
12105 re-encoded using the LN encoding (we use the bare Adobe encoding
12108 * objects/custom/custom_object.c: Now that #52912 is fixed,
12109 I could remove the ugly hack I wrote to squash the shape bounding box
12110 problem shown by Ben A. Hetland a few months ago, and fix it
12111 properly this time.
12113 * lib/text.c: enlarged a little the bounding box to account for
12114 the cursor in rightmost position.
12116 * lib/diagramdata.c: draw bounding boxes only if the relevant
12117 variable is set (as before), but also only if the rendere is
12118 interactive (ie, don't bother rendering bounding boxes on
12120 Made the bounding box's line width a fixed value, 0.01
12122 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12123 and assymmetric control beziers. Implemented ellipse_bbox().
12125 * Makefile.am: incantations to get po/dia.pot build, as suggested
12126 by Hubert in #55075.
12128 * shapes/network/computer.shape: typo fixed.
12129 * shapes/network/antenna.shape: fixed #55074 (antenna is now
12130 properly translucent, except for its base where it makes sense. It
12131 doesn't look that ugly anymore if transparent mode is on).
12133 * configure.in: --enable-unicode is now the default. This
12134 still currently affects only printing.
12136 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12138 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
12139 The overshoot code is buggy, and the bounding boxes for polyshapes
12140 looks a bit cheezy. To be done ASAP.
12142 2001-05-26 James Henstridge <james@daa.com.au>
12144 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12145 This should clear up some of the build problems people have been
12148 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12150 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12153 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12154 box code (beginning with lines, polylines and polybeziers), into a
12155 more generic facility. While at it, a better shot at correctly
12156 computing the bounding box of a Bezieroid (should take care of
12157 #53424, #51233 and of course is part 1 of #52912).
12159 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12160 into a hidden preference (set render_bounding_boxes in diarc).
12161 * app/preferences.[ch]: Added support for hidden preferences.
12163 * lib/geometry.[ch]: sprinkled with "const" modifiers.
12165 * lib/bezier_conn.[ch]:
12166 * lib/beziershape.[ch]:
12167 * lib/connection.[ch]:
12168 * lib/element.[ch]:
12169 * lib/poly_conn.[ch]:
12170 * lib/orth_conn.[ch]:
12171 * lib/neworth_conn.[ch]:
12172 * lib/polyshape.[ch]: adapted to take advantage of
12173 boundingbox.[ch] instead of relying on private (duplicate) code.
12175 * object/FS/flow.c:
12176 * object/GRAFCET/action.c:
12177 * objects/GRAFCET/condition.c:
12178 * objects/GRAFCET/vergent.c:
12179 * objects/GRAFCET/vector.c:
12180 * objects/SADT/annotation.c:
12181 * objects/SADT/arrow.c:
12182 * objects/ER/participation.c:
12183 * objects/UML/constraint.c:
12184 * objects/UML/implements.c:
12185 * objects/UML/lifeline.c:
12186 * objects/UML/message.c:
12187 * objects/UML/realizes.c:
12188 * objects/UML/generalization.c:
12189 * objects/UML/association.c:
12190 * objects/UML/dependency.c:
12191 * objects/FS/flow-ortho.c:
12192 * objects/network/bus.c:
12193 * objects/standard/arc.c:
12194 * objects/standard/bezier.c:
12195 * objects/standard/beziergon.c:
12196 * objects/standard/line.c:
12197 * objects/standard/polygon.c:
12198 * objects/standard/zigzagline.c:
12200 * objects/standard/polyline.c: Some *BBExtras structures changed
12201 names while moving to boundingbox.[ch]. A trivial mass-renaming.
12203 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
12205 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12206 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12208 * app/display.c (ddisplay_update_scrollbars): from Patrick's
12209 suggestion, remove the extra scrollable area (it was only visible
12210 to the scrollbars). This is experimental.
12212 * objects/custom/custom_object.c: If a shape's icon file doesn't
12213 exist, warn and substitute a default icon, instead of crashing.
12216 * objects/network/network.c:
12217 * shapes/network/modularswitch.(shape|xpm) (NEW):
12218 * shapes/network/printer.(shape|xpm) (NEW):
12219 * shapes/network/genmonitor.(shape|xpm) (NEW):
12220 * shapes/network/computer.(shape|xpm) (NEW):
12221 * shapes/network/Makefile.am: four less objects, four more shapes.
12222 These were the last known RenderObjects. (phew !)
12226 * objects/sybase/Makefile.am:
12227 * objects/network/Makefile.am: Removed the older Renderobjects
12228 from the build, and their infrastructure (not yet deleted,
12231 * shapes/network/sceadplug.shape:
12232 * shapes/network/antenna.shape:
12233 * shapes/network/modem.shape:
12234 * shapes/network/hub.shape:
12235 * shapes/network/rj45plug.shape:
12236 * shapes/sybase/client.shape:
12237 * shapes/sybase/dataserver.shape:
12238 * shapes/sybase/ltm.shape:
12239 * shapes/sybase/repserver.shape:
12240 * shapes/sybase/rsm.shape:
12241 * shapes/sybase/stableq.shape: Minor corrections (line widths were
12242 ten times too narrow).
12244 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
12246 * objects/network/network.c:
12247 * shapes/network/sceadplug.(shape|xpm) (NEW):
12248 * shapes/network/antenna.(shape|xpm) (NEW):
12249 * shapes/network/modem.(shape|xpm) (NEW):
12250 * shapes/network/Makefile.am: four less objects, four more shapes.
12253 * lib/diagramdata.c:
12255 * lib/string_prerenderer.[ch] (NEW):
12256 Add a new renderer primitive, predraw_string() (does nothing, to be
12257 used as a hook to optimise the character encodings if needed).
12258 Added a string pre-renderer, which can be viewed as a filter
12259 renderer (to route draw_string() to predraw_string() and ignore
12260 the rest, in a first rendering pass)
12262 * app/render_eps.c: Took advantage of the above to make wholly
12263 optimised Postscript encoding page(s), even (especially) with
12264 non-latin1 code (HAVE_UNICODE must be true).
12266 (#53512 in fact is wholly resolved).
12268 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
12270 * lib/charconv.c: steps towards resolution of #53512 (inspired by
12271 Alexey Novodvorsky <aen@logic.ru>'s patch).
12273 * app/menus.c (dia_menu_signal_proxy): checked that the signal
12274 handler is not NULL before transferring control to it... (fixes #52836)
12276 * app/app_procs.c (app_init): removed non-constant initialiser
12279 * objects/custom/custom_object.c:
12280 * objects/custom/shape_info.[ch]:
12281 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
12282 <skh@mathstar.com>. This add support for a <svg:text> shape
12283 element, and some related style properties (font, font height,
12286 * doc/custom_shapes: a precision about the meaning of case in a
12287 SVG path (closes #52364)
12289 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
12290 fixed by <drk@sgi.com>)
12292 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
12294 * objects/network/network.c:
12295 * shapes/network/Makefile.am:
12296 * shapes/network/hub.(shape|xpm) (NEW):
12297 * shapes/network/flash.(shape|xpm) (NEW):
12298 * shapes/network/rj45plug.(shape|xpm) (NEW):
12299 More shapes, less renderobjects.
12301 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
12303 * plug-ins/svg/render_svg.c: typo made exported ellipses
12304 corrupted (zero Y pseudo-radius).
12306 * objects/network/network.c:
12307 * objects/network/disc.c:
12308 * shapes/network/disc.(shape|xpm): Converted the first
12309 Renderobject into a shape. Normally, old diagrams should reload
12310 without problems (please check this against your diagrams). More
12311 flexibility should be gained that way. I intend to hunt and
12312 eradicate all renderobjects as I can commit cycles to that.
12314 * objects/Makefile.am:
12317 * objects/sybase/sybase.c:
12318 * shapes/sybase/Makefile.am(NEW):
12319 * shapes/sybase/client.(xpm|shape) (NEW):
12320 * shapes/sybase/dataserver.(xpm|shape) (NEW):
12321 * shapes/sybase/ltm.(xpm|shape) (NEW):
12322 * shapes/sybase/repserver.(xpm|shape) (NEW):
12323 * shapes/sybase/rsm.(xpm|shape) (NEW):
12324 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
12325 renderobjects into shapes. The Sybase objects are now not compiled
12326 anymore, and ready to be nuked if nobody objects in the next few weeks.
12329 * app/diagram.[ch]:
12330 * app/disp_callbacks.c:
12331 * app/display.[ch]:
12332 * app/interface.[ch]:
12334 * app/modify_tool.c:
12335 * app/preferences.[ch]:
12336 * app/recent_files.c:
12337 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
12338 a menu bar reflecting the popup menu, to each display window. This
12339 is optional (changing the preference currently doesn't affect
12340 already opened windows; a few other rough edges to cut).
12342 * plug-ins/wpg/wpg.c:
12343 * plug-ins/xfig/xfig-import.c:
12344 * plug-ins/python/pydia-property.c:
12345 * plug-ins/python/pydia-properties.c:
12346 * plug-ins/python/pydia-geometry.c:
12347 * plug-ins/pstricks/render_pstricks.c:
12349 * objects/EML/dbox.c:
12350 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
12353 * lib/ps-utf8.c: improved the clustering of alphabetic character
12354 definitions in custom encodings pages.
12356 2001-05-02 Hans Breuer <hans@breuer.org>
12358 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
12359 of 'obj_bb' to PROP_TYPE_RECT
12361 * objects/custom/custom_object.c : take all quarks into account,
12362 not only 4 as copy&paste suggests
12364 * objects/uml/objects.c : completed the implementation of the
12365 property api to avoid reading of totally bogus data. Removed
12366 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
12367 there was too much but too less ...
12369 The above changes removed all known crashes (mentioned below)
12370 from the Property API. Property access is still incomplete though.
12372 * objects/flowchart/box.c :
12373 * objects/flowchart/diamond.c :
12374 * objects/flowchart/ellipse.c :
12375 * objects/flowchart/parallelogram.c :
12376 * objects/uml/classicon.c :
12377 * objects/uml/state.c : calculate number of quarks from quark array
12378 size instead of using hardcoded values for consistence and to avoid
12379 future bugs like the above
12381 * objects/eml/nlist.c : include <string.h> for strcmp()
12383 * lib/dia_xml.c : relax g_warning for values, which
12384 appear to be too small. There is nothing which prevents
12387 * plug-ins/python/pydia-geometry.c : changed stringifying of
12388 geometry objects accept BezPoint back to %f, which does not
12389 crash anymore, because all the data is intialized now and it
12390 simply is more readable than %e ...
12392 * plug-ins/python/python-startup.py : removed dependency
12393 to PyGtk, because it isn't required here and probably won't
12394 in i.e.: export filters.
12396 * plug-ins/python/gtkcons.py : create the gtkoutfile even
12397 if sys.stderr.fileno() isn't supported
12399 * app/makefile.msc : make version 0.88
12400 * plug-ins/makefile.msc : make version 0.88 an added new
12401 xfig files to build
12403 2001-05-11 James Henstridge <james@daa.com.au>
12405 * NEWS: remember to add news items this time.
12407 * dia.spec: update spec file for 0.88 release.
12409 * configure.in: up version number to 0.88
12411 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
12412 preventing any of the useful python scripts from being
12415 * sheets/Makefile.am (sheet-translation-report): fix bustage I
12416 introduced in my fixups for the 0.87 release :(
12418 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
12420 * plug-ins/xfig/xfig-import.c: Finally got groups working.
12422 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
12424 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
12425 group manipulation.
12427 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
12429 * lib/ps-utf8.[ch]:
12430 * lib/Makefile.am: fix makefile breakage which led to not
12431 including ps-utf8.[ch] in the released tarballs.
12433 2001-05-09 James Henstridge <james@daa.com.au>
12435 * Makefile.am (core-translation-report): dist scripts needed for
12436 this target, and change to $(srcdir) before running.
12438 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
12439 files aren't automatically included in the tarball by automake
12440 because they could be generated files.
12442 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
12444 * doc/en/Makefile.am (install-data-hook): fix up where graphics
12447 * configure.in: up version number to 0.87
12449 * plug-ins/python/*.py: no longer necessary to explicitly set
12450 sys.argv, as python.c does it for us now (like it should).
12452 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
12455 * plug-ins/python/python-startup.py: startup script that imports
12456 all modules in $(datadir)/dia/python and ~/.dia/python.
12458 * plug-ins/python/python.c (dia_plugin_init): change so that it
12459 only runs the $(datadir)/dia/python-startup.py script. Make sure
12460 that sys.argv and __main__.__file__ are set when calling the
12463 * plug-ins/python/Makefile.am: update makefile. Make it install
12464 gtkcons.py plugin. I haven't set any other plugins to install, as
12465 they look like they are mainly for debugging purposes.
12467 * configure.in: add tests to detect if python is available, so we
12468 can build the python plugin. Only run if --with-python passed to
12471 2001-05-08 James Henstridge <james@daa.com.au>
12473 * acinclude.m4: add macros for detecting python.
12475 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
12476 at GNOME_APP_UI_SUBTREE entries.
12477 (menus_add_path): function to add a menu item to the menubars.
12478 Uses a hash table to keep track of extra menu items it adds. Also
12479 notifies the item factory about the entries so that accels can be
12481 (menus_add_path): implement gtk only version.
12482 (menus_init): use menus_add_path() to add the menu.
12483 (plugin_callback): simplify.
12485 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
12487 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
12489 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
12491 * plug-ins/xfig/xfig-export.c:
12492 * plug-ins/xfig/xfig-common.c:
12493 * plug-ins/xfig/xfig-import.c:
12494 * plug-ins/xfig/xfig.c:
12495 * plug-ins/xfig/xfig.h:
12496 * app/Makefile.am: Added support for exporting to Fig format
12497 (except splits, which are less powerful in Fig). Some refactoring
12500 2001-05-02 Hans Breuer <hans@breuer.org>
12502 * plug-ins/python/debug_objects.py : added another
12503 test to get massive crashes from the Property API due
12504 to unintialized data.
12506 * app/menu.c : the callback_action wasn't incremented
12507 (should have checked my last optimization). Now more
12508 than one plug-in callback is supported again.
12510 * plug-ins/python/pydia-geometry.c : avoid crashes from
12511 glib, when trying to g_strdup_printf unintialized floats.
12513 * plug-ins/python/pydia-property.c : avoid crashes from
12514 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
12516 2001-05-01 Hans Breuer <hans@breuer.org>
12518 * objects/makefile.msc : added eml
12519 * objects/eml/instantiation.c : initialize 'inst' pointer
12520 before using, zero initialization for objects
12521 * objects/eml/interaction-ortho.c :
12522 * objects/eml/interaction.c : zero initialization for objects
12524 * app/menus.c : removed Gimp mru stuff which slipped in at
12525 2000-08-15, was never activated and will never be needed,
12526 because of Steffens recent file list patch added at 2001-01-05.
12528 * objects/eml/*.c : some more zero initialization of objects
12529 to avoid infinite (uninitialized) bounding boxes
12531 Implemented a callback api which allows plug-ins to register
12532 menu call backs. Dia for Gnome should compile, but will need
12533 some extra tweaking to make it work because I can't test it.
12535 * plug-ins/python/pydia-error.h :
12536 * plug-ins/python/pydia-render.c : moved Pxthon function return
12537 value handling from pydia-render.c to pydia-error.h, to make it
12539 * plug-ins/python/diamodule.c : implement callback function
12540 registration from and relaying to Python code
12542 * app/menus.c : register and use plug-in menu callbacks
12544 * lib/filter.[hc] : implement filter_register_callback() and
12545 filter_get_callbacks() for the above
12546 * lib/libdia.def : export them
12548 * plug-ins/python/debug_objects.py (new file):
12549 sample using the above
12551 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
12553 * plug-ins/shape/shape-export.c (new_shape_renderer):
12554 The name of a shape is now taken from the dir, to conform with
12557 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
12559 * app/properties.c (properties_show): Added title containing
12560 object type, plus (hopefully) fix of the ghost properties dialog.
12562 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
12564 * app/display.c: remove the display idle handler in case we
12565 destroy the ddisplay (caused crashes in ddd, probably random
12566 crashes elsewhere).
12570 * Makefile.am: hack around gettext-0.10.36's new "features".
12572 * lib/properties.[ch]: added new function object_copy_props().
12573 Added new property type PROP_TYPE_ENDPOINTS
12575 * lib/connection.h: added support for load/saving through the
12576 properties interface.
12578 * lib/object.[ch]: object_load/save/copy_using_properties()
12579 support functions (code factorisations).
12581 * objects/GRAFCET/boolequation.c: check against null values in
12582 boolequation_set_value() and boolequation_destroy().
12584 * objects/GRAFCET/transition.c: Converted from lazyprops to
12585 standard properties. 31% less (x86) code !
12587 * objects/GRAFCET/condition.c: also converted from lazyprops to
12588 standard properties. Also killed lots of code.
12590 2001-04-13 Hans Breuer <hans@breuer.org>
12592 * plug-ins/wmf/wmf.cpp : changed text conversion from
12593 g_utf8_utf16 to g_convert usage. The latter function is already
12594 available in tml's last "official" Gtk+ version (2000-12-26).
12595 This change allows to use recent Dia with either the official
12596 version or the latest cvs "gtk-1-3-win32-production"-branch.
12598 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
12600 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
12601 * app/disp_callbacks.c:
12602 - Allow submenus in DiaMenus.
12603 - Don't require DiaMenu.title to be non-null (so that
12604 submenus aren't required to have titles)
12606 * objects/FS/function.c:
12607 - object menu now has submenus, an almost complete list of
12608 standard-basis verbs, and a start on nouns.
12609 - box padding, dash length, and other visual attributes are
12610 scaled by the font size... eventually font height will be
12611 a function property.
12612 - draw functions with smaller font to make initial view hold
12613 a reasonable number of functions.
12615 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
12618 * sheets/chronogram.sheet:
12619 * sheets/jigsaw.sheet:
12620 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
12621 Wieers <dag@wieers.com>
12623 2001-04-13 Hans Breuer <hans@breuer.org>
12625 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
12626 to ensure that all the deinitialization is only done once. Fixes
12627 recent app exit crash on win32
12629 * lib/dia_xml.c : provide isinf() replacement for msc which does only
12632 * lib/libdia.def : updated
12634 * objects/makefile.msc : added wanlink.c
12636 * objects/network/wanlink.c : added M_PI_2 definition for poor
12637 platforms which don't have one
12639 * objects/standard/arc.c :
12640 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
12641 initialized which led to rather huge bounding boxes (try Ctrl^A on
12642 diagrams with Arcs or ZigZagLines).
12643 * objects/*/*.c : to avoid further bugs like the above changed all
12644 object initializations to g_malloc0 or g_new0
12647 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
12649 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
12650 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
12652 * objects/UML/class.c:
12653 * objects/UML/usecase.c:
12654 * objects/UML/large_package.c:
12655 * objects/UML/message.c:
12656 * objects/UML/object.c:
12657 * objects/UML/lifeline.c:
12658 * objects/FS/flow.c:
12659 * objects/FS/flow-ortho.c:
12660 * objects/FS/function.c:
12661 * objects/custom/custom_object.c:
12662 * objects/GRAFCET/vergent.c:
12663 * objects/chronogram/chronoref.c:
12664 * objects/SADT/box.c:
12665 * objects/SADT/annotation.c:
12666 * plug-ins/dxf/dxf-import.c:
12667 * plug-ins/xfig/xfig-import.c:
12668 * plug-ins/wpg/wpg.c:
12671 * app/display.c: /* certainly more WIP than dead code there */
12672 Unused variables, unused static function definitions, forgotten or
12673 incomplete prototypes added or fixed, lack of const or unwanted const,
12674 etc. (mostly clean-ups of leftovers of the pre-properties era).
12675 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
12676 please check these.
12678 * app/lineprops_area.c: More of the same. Missing prototypes
12679 added, and functions unused outside made static.
12681 * app/recent_files.c:
12682 * app/properties.c:
12683 * app/defaults.c: some variables are used only when doing a GNOME
12686 * app/magnify.c: missing #include <stdlib.h>.
12688 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
12690 These are a lot of clean-ups (by the way, this compiles and runs
12691 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
12692 for DEAD_CODE, and if it's yours, judge it.
12694 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
12696 * plug-ins/dxf-import.c: some progress with the arcs; still some
12697 clean-ups to do and line width scaling issues to figure out.
12699 * objects/standard/arc.c: start_point and end_point properties
12700 (duplicated from standard/line.c)
12702 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
12705 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
12707 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
12708 preliminary support for arcs (doesn't work). Circles and ellipses are
12709 now transparent. Coordinate and width scaling are now a common
12710 static constant (probably before morphing into a preference).
12712 * sheet/checktrans.py: improved error reporting. Made checktrans
12713 count lack of <name xml:lang="code"> as a lack of translation for
12714 language "code" (no, it's not a plot to bring down other
12715 language's scores !)
12717 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
12718 in the header, and have <name xml:lang="fr"> components.
12720 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
12722 * objects/custom/custom_object.c: temporary hack to fix the shape
12723 bounding box reported by Ben A. Hetland. Proper fix isn't .87
12724 material, see bugzilla #52912.
12726 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
12728 * objects/standard/image.c (get_directory): Now uses
12729 G_SEPARATOR_CHAR_S instead of "/"
12731 * sheets/network.sheet:
12732 * sheets/Logic.sheet:
12733 * sheets/Flowchart.sheet:
12734 * sheets/Electric.sheet:
12735 * sheets/Circuit.sheet:
12737 * sheets/Pneumatic.sheet:
12738 * sheets/SDL.sheet:
12739 * sheets/UML.sheet:
12740 * sheets/GRAFCET.sheet:
12741 * sheets/MSE.sheet:
12742 * sheets/chronogram.sheet:
12743 * sheets/civil.sheet:
12744 * sheets/network.sheet:
12745 Danish translations.
12747 * objects/standard/image.c (get_directory): Changed get_directory
12748 to use g_dirname to find the directory part.
12750 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
12753 * sheets/Electric.sheet:
12754 * sheets/Flowchart.sheet:
12755 * sheets/Logic.sheet:
12756 * sheets/network.sheet: More Dutch translations from Dag Wieers.
12758 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12760 * sheets/checktrans.py: now emits a warning when two descriptions
12761 for a single language code are found.
12764 * sheets/Makefile.am: -translation-reports now also depend on their
12767 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12769 * sheets/Circuit.sheet:
12770 * sheets/Contact.sheet:
12771 * sheets/Logic.sheet:
12772 * sheets/chronogram.sheet:
12773 * sheets/sybase.sheet:
12774 Dutch translations from Dag Wieers <dag@wieers.com>
12776 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12778 * po-checktrans.py: Now shows the detailed counts alongside the
12779 percentage of translations.
12781 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
12784 * po-checktrans (NEW):
12785 * po-checktrans.py (NEW): builds core-translation-report:
12786 percentages of core (gettext) translations done [Not placed into
12787 po/ where that should belong, because of integration fear^Wissues
12790 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
12791 sheets/sheet-translation-report probably ought to be copied on the
12792 user's /usr/share/doc/dia (or equivalent) directory.
12794 * sheets/Makefile.am: sheet-translation-report now a simple
12795 EXTRA_DIST; make install won't install it by default.
12797 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
12799 * app/preferences.c: changed the default grid colour to something
12802 * shapes/SDL/*.shape:
12803 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
12804 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
12805 DIA FILES (well, for files using SDL), see the mailing list
12806 archive "SDL (ab)using the global shape namespace" for a script to
12807 do this conversion.
12809 * sheets/SDL.sheet: translated into French
12810 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
12812 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
12814 * lib/dia_xml.c: made data_point() more paranoid
12816 * sheets/Makefile.am:
12817 * sheets/checktrans (NEW):
12818 * sheets/checktrans.py: Made checktrans handle more gracefully the
12819 absence of python and python-xml packages, and made the error
12820 message more helpful.
12822 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
12824 * lib/render_object.c (new_render_object): Made initial handles
12825 behave like on most other objects.
12827 * app/load_save.c (read_objects): Fixed premature free'ing ofr
12828 typestr causing garbage.
12830 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
12832 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
12833 accouting for handle ordering through copy and save. (#51479)
12835 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
12837 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
12839 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
12841 * sheets/Circuit.sheet
12843 * sheets/network.sheet: Updated German translations
12845 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12848 * app/lineprops_area.c: The return of the revenge of the arrow
12849 heads. Now all types covered by ISO 10303-201 should be covered.
12851 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12853 * sheets/Flowchart.sheet: translations in probably Hungarian were
12854 a victim of cut-n-paste from the German one. Fixed (hopefully).
12855 * sheet/UML.sheet: translation in probably Norwegian was a victim
12856 of cut-n-paste from the French one. Fixed (hopefully).
12857 * sheets/Logic.sheet: French translation not tagged with
12860 * sheets/checktrans.py:
12861 * sheets/Makefile.am: new file, sheet-translation-report, to be
12862 installed along the sheets, show how much of them has been
12863 translated into which language (I wish the result was prettier...)
12865 * po/README: most translators don't read this file, but anyway...
12867 * sheets/.cvsignore:
12868 * objects/network/.cvsignore: the usual negotiation with CVS.
12870 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12872 * sheets/*.sheet: French translations
12874 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
12876 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
12878 ** objects/network/network.c:
12879 ** objects/network/wanlink.c:
12880 ** objects/network/pixmaps/wanlink.c:
12881 ** sheets/network.sheet:
12882 ** objects/network/Makefile.am: a better object to use instead of
12883 the older WAN Connection.
12885 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
12887 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
12890 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
12891 Arc; kept the C file name (because CVS wouldn't like it), and
12892 still registering the older object name (but advertising the newer
12893 one in sheets/GRAFCET.sheet).
12895 2001-03-24 Hans Breuer <hans@breuer.org>
12897 * app/dia.def : some plug-ins (currently only python, xfig) are using
12898 functions from the dia executable. To get them working these functions
12899 need to be explicit exported on win32. IMO the much cleaner way would
12900 be to move these functions to libdia, but that would require some
12901 long term restructuring ...
12903 * lib/libdia.def : updated
12905 * plug-ins/makefile.msc : build xfig plug-in
12907 2001-03-24 Hans Breuer <hans@breuer.org>
12909 * app/diagram.c : g_strdup (dia->filename) because it will be
12912 * app/display.c : set ddisp->renderer to NULL after destruction.
12913 This may solve or help to identify erroneous access to it after
12916 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
12917 get 'umlauts' working
12919 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
12921 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
12922 were reversed... (look for the patch, and drink a beer to my
12925 2001-03-23 Hans Breuer <hans@breuer.org>
12927 * app/app_procs.c : don't g_error () if the config directory
12928 can't be created (at least not on windoze) because it's quite
12929 common that the user don't read or understand the FAQ ...
12931 * app/cursor.c : use ddisplay_active () instead of active_display
12934 * app/display.[hc] : made active_display var static and provide
12935 an accessor funtion ddisplay_active_diagram ()
12937 * app/dia-props.c : don't store the active_diagram, but ask
12938 for it everytime it needed.
12940 * lib/properties.h : #include "intl.h"
12942 * lib/makefile.msc : need to take care of inclusion order to
12943 avoid clashes with gtk+2.0's gdk-pixbuf
12945 * objects/makefile.msc : added uml/stereotype.c to build
12947 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
12949 * **/*.c: Added config.h to the remaining .c files, and changed
12950 all to be <config.h>.
12952 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
12957 * app/lineprops_area.c: added new arrow types with double
12960 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
12962 * shapes/Civil/civil_gas_bottle.xpm
12963 * shapes/Civil/civil_gas_bottle.shape
12964 * sheets/civil.sheet
12965 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
12968 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
12970 * objects/custom/shape_info.c (load_shape_info):
12971 * objects/custom/shape_info.h:
12972 * objects/custom/custom_object.c (custom_update_data):
12973 Better support for text outside the box -- new attributes 'resize'
12974 and 'align' for text entity. Align not fully supported yet.
12976 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
12978 2001-03-20 James Henstridge <james@daa.com.au>
12980 * app/interface.c (display_data_received_callback): comment out
12983 2001-03-19 James Henstridge <james@daa.com.au>
12985 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
12987 * objects/UML/realizes.c: similar here.
12989 * objects/UML/implements.c: similar here.
12991 * objects/UML/component.c: similar here.
12993 * objects/UML/generalization.c: same here.
12995 * objects/UML/dependency.c: allow NULL for ->name and
12996 ->stereotype. This fixes a number of problems in loading saved
12999 * lib/properties.c: various changes so that NULL string properties
13002 * objects/standard/line.c (line_update_data):
13003 line->extra.start_long and line->extra.end_long were not being
13004 initialised. This fixes potential problems with the bounding box
13005 of "Standard - Line" objects.
13007 2001-03-19 Hans Breuer <hans@breuer.org>
13009 * app/commands.c : added win32 specific code to display a html
13010 file. #include "text.h" for text_delete_all prototype.
13013 * app/dia.rc : (new) to give Dia win32 an icon
13015 * app/win32print.[ch] : new files to support direct postscript
13016 file printing on win32. Beware: it *requires* a ps-printer!
13018 * app/paginate_psprint.c : disable the signal code for win32 build
13019 and added small specific changes to support win32print.
13021 * app/makefile.msc : added win32print and linking shell32.lib
13023 * lib/libdia.def : updated
13025 2001-03-18 Kevin Breit <battery841@mediaone.net>
13027 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
13030 2001-03-17 James Henstridge <james@daa.com.au>
13032 * app/paginate_psprint.c (diagram_print_ps): add code that traps
13033 SIGPIPEs during printing. This gets rid of a number of crashes
13034 caused by printing (eg. typing an incorrect print command).
13036 * dia.spec (%install): gzip the manpage.
13038 * lib/beziershape.c (beziershape_save): fix off by one error in
13039 beziershape save code, which was adding an extra segment to the
13042 * app/menus.c: add a separator in the gnome version of the help
13045 * app/app_procs.c (app_init): add a --nosplash argument which
13046 disables the splash screen.
13048 * app/dia_embedd.c (main): don't leave the splash screen open for
13049 embeddable component.
13051 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
13052 didn't seem to be showing the splash screen like expected, so I
13053 have replaced it with some code that calls gtk_main() until the
13054 first exposure of the window.
13056 2001-03-16 James Henstridge <james@daa.com.au>
13058 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
13060 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
13063 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
13065 * app/Makefile.am (dia_core_files): remove splash.h from file
13066 list, as it doesn't exist.
13068 * doc/en/Makefile.am (uninstall-local): remove the docdir on
13071 * doc/Makefile.am (uninstall-local): target to remove the C
13074 * dia.spec (%files): include the documentation in the package.
13076 * app/menus.c (toolbox_menu_items): add menu item for manual,
13077 which calls help_manual_callback.
13079 * app/commands.c (help_manual_callback): find help file and load
13080 netscape to view it.
13082 * app/commands.h: add prototype for help_manual_callback()
13084 * doc/Makefile.am (helpdir): similar here.
13086 * doc/en/Makefile.am (helpdir): make the helpdir
13087 $(pkgdatadir)/help/en in the non gnome case.
13089 * configure.in (HAVE_GNOME): add conditional.
13091 * doc/en/Makefile.am: handle the graphics in a more general way,
13092 so it is easier for Kevin to add them to the build (just add them
13093 to the GRAPHICS var).
13095 * app/Makefile.am (embed_extra_print_files): make the case of
13096 building without gnome-print support but with bonobo support work.
13097 dia-embedd needs to be include the gnome-print
13099 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
13101 * samples/Makefile.am: included all samples in the distribution....
13103 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
13105 * configure.in: removed premature test for DPS. Added -*- m4 -*-
13106 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
13107 vanished, removed it from ALL_LINGUAS.
13109 * lib/charconv.[ch] (NEW): a very small wrapper around
13110 unicode_iconv to convert strings between utf8 and local charset
13111 (actually, ISO-8859-1, though one can do
13112 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
13114 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
13115 library to help build Postscript streams which use as many custom
13116 font encodings as necessary to correctly represent all characters
13117 used (testing from users with non-latin1 and/or more than 256
13118 characters in routine use *very* welcome).
13120 * app/Makefile.am, lib/Makefile.am: integrated these into the
13123 * shapes/Logic/.cvsignore (NEW): .cvsignore
13125 * app/render_eps.h: forwarded some changes Lars forgot to include.
13126 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13129 2001-03-08 Kevin Breit <battery841@mediaone.net>
13131 * doc/en/home_network.png: Added file.
13132 * doc/en/line_props.png: Added file.
13133 * doc/en/usage-objects.sgml: Added two graphics to file.
13134 * doc/en/usage-quickstart.sgml: Added one graphic to file.
13136 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
13138 * app/grid.h: Place comment around text after #endif.
13139 * lib/bezier_conn.c: #include <string.h>.
13140 * lib/beziershape.c: #include <string.h>.
13141 * lib/connpoint_line.h: Comment after #endif.
13142 * lib/dia_dirs.c: #include <string.h>.
13143 * lib/element.c: Same.
13144 * lib/lazyprops.c: #include <config.h> and "intl.h".
13145 * lib/lazyprops.h: Comment out text after #endif.
13146 * lib/neworth_conn.c: #include <string.h>
13147 * lib/orth_conn.c: Same here.
13148 * lib/poly_conn.c: Here too.
13149 * lib/polyshape.c: And here.
13150 * lib/properties.c: Remove #include "intl.h" from here and add
13151 an array of static strings to work around bug in gettext that
13152 makes it miss strings in a #define body.
13153 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13154 * objects/GRAFCET/boolequation.h: Same here.
13155 * objects/chronogram/chronoline_event.h: Add prototype for
13158 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13160 * objects/FS/function.c:
13161 * objects/FS/flow.c:
13162 * objects/FS/flow-ortho.c:
13163 Updated to use properties.
13165 2001-03-03 James Henstridge <james@daa.com.au>
13167 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13168 button labels when creating them.
13170 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13172 * objects/UML/actor.c
13173 * objects/UML/realizes.c
13174 * objects/UML/implements.c
13175 * objects/UML/generalization.c
13176 * objects/UML/dependency.c
13177 * objects/UML/constraint.c
13178 Updated to use properties.
13180 * objects/UML/stereotype.c
13181 * objects/UML/stereotype.h
13182 Generalized to any kind of bracketting.
13184 2001-02-28 James Henstridge <james@daa.com.au>
13186 * app/menus.c: add help entry to the help menu. Need to get this
13187 working for the non GNOME case as well (maybe put help under
13188 $(datadir)/dia/help for non GNOME?)
13190 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13192 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13193 this element so that we get a meaningful filename in the html
13196 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13199 * configure.in (DB2HTML): add a check for the db2html program, and
13200 set an automake conditional if it is found.
13202 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13203 and descend into doc/ directory while building.
13205 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13206 we need more complex rules for building the docs.
13208 2001-02-25 Hans Breuer <hans@breuer.org>
13210 * config.h.win32 : some cleanup
13212 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13213 are deprecated since glib-1.3.2. Sorry needing to use them
13214 contionally, but there is no glib-1.2 for win32
13216 * app/recent_files.c : use g_strescape (params) conditionally
13218 * lib/connection.c : include string.h for memcpy
13220 * lib/geometry.h : added some stuff for compatibility with
13221 msvc, which previously came from included config.h
13223 * lib/libdia.def : updated
13225 * objects/makefile.msc : updated
13227 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
13228 'extra' used without having been initialized
13230 * objects/network/bus.c(658) : initialize 'extra'
13232 * plug-ins/makefile.msc : updated
13234 * plug-ins/cgm/cgm.c :
13235 * plug-ins/pstricks/render_pstricks.c :
13236 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
13239 * plug-ins/python/python.c : use HAVE_DIRENT_H
13241 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13243 * lib/connection.c (connection_update_boundingbox):
13244 Made the BB shrink on right and lower sides, too.
13246 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
13248 * */*.c: #incude <config.h> at the top.
13249 * */*.h: Remove include of "config.h" since it should only
13250 be included in .c files and at the very top for things to
13252 * sheets/*.sheet: Updated Norwegian translations.
13254 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13256 * objects/UML/small_package.c:
13257 * objects/UML/class.c:
13258 * objects/UML/node.c:
13259 * objects/UML/usecase.c:
13260 * objects/UML/lifeline.c:
13261 * objects/UML/message.c:
13262 Various cleanup of properties in particular. Now much more use of
13263 standard properties.
13265 * lib/diagramdata.c (layer_render): Visualization of bounding
13266 boxes, for debugging purpoises.
13268 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
13271 * lib/connection.[ch]:
13272 * lib/poly_conn.[ch]:
13273 * lib/polyshape.[ch]:
13274 * lib/bezier_conn.[ch]:
13275 * lib/beziershape.[ch]:
13276 * lib/orth_conn.[ch]:
13277 * lib/neworth_conn.[ch]:
13278 * lib/element.[ch]: Changed a bit the _update_boundingbox()
13279 interface. Now the parent elements have an extra_spacing
13280 structure, which child objects just need to fill, to take care of
13281 most arrow & line width extra space needs.
13283 * objects/**/*.c: updated all objects to the new interface.
13284 While at it, killed all instances of (Object *) downcasts (phew !)
13286 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
13287 doesn't speak about.
13289 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13291 * sheets/Logic.sheet: New sheet for Logic symbols.
13293 2001-02-21 James Henstridge <james@daa.com.au>
13295 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
13296 widget by its path name. Walks the GnomeUIInfo heirachy rather
13297 than widget tree, compares untranslated label names and ignores
13298 underscores in the labels.
13299 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
13300 lookups are not dependent on the current locale, as with
13301 gnome_app_find_menu_pos.
13303 * acconfig.h: guard against multiple inclusion of config.h.
13305 * app/select.c (select_style_callback): simply set the selection
13306 style to the value of action.
13308 * app/menus.c (menus_init): simplify the item factory based menu
13309 code a bit. It looks like it was using some code cut and pasted
13310 from the gimp, which looked a bit unnecessary. Things work fine
13312 (selectmenu): set the action to the type of selection mode
13314 (display_menu_items): use the symbolic enumeration values for the
13317 * app/plugin-manager.c:
13318 * app/plugin-manager.h:
13322 * app/select.h: change prototypes.
13324 * app/commands.c: update all callback prototypes, and get rid of
13325 some #ifdef GNOME's.
13327 * app/commands.h: change function prototypes.
13329 * app/dia_embedd.c (save_fn):
13330 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
13332 * app/menus.c (menus_init): for gnome menus, use
13333 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
13334 structure that proxies the callbacks to have the same signature as
13335 GtkItemFactory type 1 callbacks.
13336 (menus_init): for GTK menus, change from callback type 2 to type
13338 (display_menu_items): add back tearoffs. I don't know who removed
13339 these for the gtk menu case.
13341 2001-02-20 Kevin Breit <battery841@mediaone.net>
13343 * doc/en/usage-objects-special.sgml: Fixed a few of the special
13344 object descriptions. More to come in the next few days.
13346 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
13348 * app/render_eps.c: Fixed for internationalized floating point
13351 * objects/UML/note.c: Fixed properties -- was missing
13352 Get/ApplyPropertiesFunc. Also improved update to recalculate text
13355 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
13357 * plug-ins/xfig/xfig-import.c:
13358 File added importing xfig files. Still very rough, but good
13359 enough to let others hack on it.
13361 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
13364 * app/linewidth_area.c:
13366 * lib/properties.c:
13368 * objects/ER/attribute.c:
13369 * objects/ER/entity.c:
13370 * objects/ER/relationship.c:
13371 * objects/custom/custom_object.c:
13372 * objects/flowchart/box.c:
13373 * objects/flowchart/diamond.c:
13374 * objects/flowchart/ellipse.c:
13375 * objects/flowchart/parallelogram.c:
13376 * objects/standard/box.c:
13377 * objects/standard/textobj.c: per Vlad Harchev's request, made
13378 page sizes of gtk_adjustments different than their step sizes.
13379 When sensible values of page size weren't found (overwhelming
13380 majority of cases), page sizes were set to 10.0 * respective step
13383 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
13385 * objects/network/hub.c:
13386 Patch from Hubert Figuiere applied, adding connection points.
13388 2001-02-02 James Henstridge <james@daa.com.au>
13390 * app/display.c (new_display): set update id to 0 here.
13391 (ddisplay_update_handler): rename from ddisplay_flush, and set
13392 update_id to 0 at end of processing.
13393 (ddisplay_flush): new implementation that simply sets an idle
13394 handler to perform the actual drawing.
13396 * app/display.h: add structure member to hold the redraw idle
13399 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
13401 * objects/standard/ellipse.c (ellipse_copy):
13402 * objects/standard/zigzagline.c (zigzagline_copy):
13403 Fix of copying provided by Martin Hawlisch.
13405 2001-01-23 Kevin Breit <battery841@mediaone.net>
13407 * doc/en/graphics/: added directory
13409 * doc/en/graphics/greendots.png: added file
13411 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
13414 2001-01-23 Kevin Breit <battery841@mediaone.net>
13416 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
13417 thanks to John Fleck!
13419 2001-01-21 Kevin Breit <battery841@mediaone.net>
13421 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
13423 2001-01-12 Michael Meeks <michael@helixcode.com>
13425 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
13426 so our POA gets setup properly.
13428 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
13429 things we g_malloc.
13431 * configure.in: Use bonobox_print.
13433 * app/dia_embedd.c (embeddable_factory): add print interface.
13434 (object_print): impl.
13436 2001-01-11 Michael Meeks <michael@helixcode.com>
13438 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
13439 (load_fn, save_fn): impl.
13440 (view_factory): hide modified status bar, & use activate fn.
13441 (refresh_view): force redraws of the views.
13442 (view_show_hide): split from
13443 (dia_view_activate): here.
13445 * app/diagram.c (diagram_load_into): split from diagram_load.
13446 (new_diagram): simplify bu splittin stuff into
13447 (diagram_init): here.
13449 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
13451 * shapes/jigsaw/*.shape: replaced #000000 with foreground
13452 and #ffffff with background
13454 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
13456 *configure.in: GTK+-build was broken due to missing
13459 2001-01-06 Michael Meeks <michael@helixcode.com>
13461 * app/dia_embedd.c (main): add running context support.
13462 (dia_embeddable_destroy): remove old running object counting.
13463 (embeddable_factory): ditto.
13464 (view_factory): comment out menu path hiding.
13466 * lib/sheet.c (load_register_sheet): use free to free
13467 stuff from libxml not g_free.
13469 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
13471 * configure.in: remove USE_OAF checks, check for a precice
13472 Bonobo version >= 0.31, revamp bits.
13474 * app/dia_embedd.c (init_server_factory): upd.
13475 (init_dia_factory): remove OAF conditionals, everything uses
13478 * app/GNOME_Dia.oafinfo: rename OAFIIDs
13480 * app/Makefile.am: remove ancient gnorba code.
13481 rename dia.oafinfo to GNOME_Dia.oafinfo
13483 2001-01-07 Hans Breuer <Hans@Breuer.Org>
13487 * readme.win32 : some more files required or useful to build
13490 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
13491 fill_bezier implementation, boundary drawing in fill mode, etc.
13492 Next one complaining gets the source, uncommented ...
13494 * shapes/network/router-symbol.xpm
13495 * shapes/network/switch-atm-symbol.xpm
13496 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
13497 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
13498 the files as XPMs. Maybe the X versions of these functions are more
13501 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
13503 * plug-ins/python/Makefile.am: added libart path
13505 * plug-ins/python/python.c: added dirent.h
13507 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
13509 2001-01-06 Hans Breuer <Hans@Breuer.Org>
13511 * objects/uml/actor.c
13512 * objects/uml/branch.c
13513 * objects/uml/class.c
13514 * objects/uml/classicon.c
13515 * objects/uml/component.c
13516 * objects/uml/large_package.c
13517 * objects/uml/node.c
13518 * objects/uml/note.c
13519 * objects/uml/object.c
13520 * objects/uml/small_package.c
13521 * objects/uml/state.c
13522 * objects/uml/usecase.c : started to implement the generic property
13523 interface for the uml objects. Would appreciate some help on how
13524 to implement properties which are list of properties themselves,
13525 e.g. member functions and their parameters of UMLClass.
13527 2001-01-06 Hans Breuer <Hans@Breuer.Org>
13529 * plug-ins/python/diamodule.c : finally ported to win32.
13530 Added new objects and implemented register_export function.
13532 * plug-ins/python/pydia-object.h
13533 * plug-ins/python/pydia-display.c
13534 * plug-ins/python/pydia-handle.c
13535 PyObject_HEAD_INIT needs some tweakink on win32. Done in
13536 pydia-object.h; others files simply using it.
13538 * plug-ins/python/pydia-layer.c : reflect
13539 layer_find_closest_connection(_)point renaming
13541 * plug-ins/python/pydia-object.c : add property properties.
13542 Also change bounding_box to DiaRectangle.
13544 * plug-ins/python/python.c : extended error reporting; use
13545 all *.py files from Dia's plug-in dir instead of hardcoded
13546 test.py. This sollution should be fine with Win32, but on
13547 Unix it may need some tweaking (dunno) ...
13549 * plug-ins/python/export-object.py
13550 * plug-ins/python/export-render.py : test and documentation
13551 implementations for export filter implementations in Python
13553 * plug-ins/python/pydia-color.[hc]
13554 * plug-ins/python/pydia-diagramdata.[hc]
13555 * plug-ins/python/pydia-error.[hc]
13556 * plug-ins/python/pydia-export.[hc]
13557 * plug-ins/python/pydia-font.[hc]
13558 * plug-ins/python/pydia-geometry.[hc]
13559 * plug-ins/python/pydia-image.[hc]
13560 * plug-ins/python/pydia-properties.[hc]
13561 * plug-ins/python/pydia-property.c
13562 * plug-ins/python/pydia-render.c : new objects in new files
13564 * plug-ins/python/makefile.am : added new files but can't test it
13566 * plug-ins/python/pydia.def
13567 * plug-ins/python/makefile.msc : for win32 build
13569 * plug-ins/cgm/cgm.c
13570 * plug-ins/dxf/dxf-import.c
13571 * plug-ins/dxf/dxf-export.c
13572 * plug-ins/hpgl/hpgl.c : reflect export API change
13574 * plug-ins/shape/shape-export.c : reflect export API change
13575 and check for libart (better the availibility of a png exporter)
13576 at run-time instead of compile-time.
13578 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
13580 * app/recent_files.h was missing from Hans's commit
13582 * plug-ins/shape/shape_export.c: shape export was broken
13583 due to interface changes
13585 2001-01-05 Hans Breuer <Hans@Breuer.Org>
13587 Applied Steffen's recent file list patch :
13588 * app/Makefile.am : added recent_files.[hc]
13589 * app/diagram.c : add files to recent file list
13590 * app/menus.c : add recent file menu
13591 * app/app_procs.c : changed initialization order to
13592 make recent file list work with command line processing.
13594 The Filter export()/import() functions have got an additional
13595 parameter to allow multiple filters via one C callback (required
13596 for Python bindings)
13598 * app/commands.[hc] : corrected the signature for gtk menu callback
13599 functions, which actually use the second or third parameter. This
13600 is the absolute minimum change to make these functions/menu entries
13601 work again. Using the other possible gtk menu callback signature
13602 would have required one more function to change. (see mailing list
13603 thread "Objects/Align/Equal Distance" for more information.
13605 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
13606 zoom-combo focus patch
13609 * app/interface.c : wrapped the Zoom Combo code into
13610 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
13611 improvement but cluttering the user interface. Also it wasn't
13612 compiling on Win32 anyway. The win32 version does define
13613 WITHOUT_ZOOM_COMBO to keep the old look.
13614 There are plans to use the statusbar to display size and placement
13615 of selected objects, whereas the Zoom Combo would need to get out
13616 of the way as well.
13618 Added "Save Changes?" to diagram close dialog. Hopefuly the
13619 Yes/No/Cancel option isn't too much windoze like. IHMO this is
13620 an useability improvement.
13625 * app/layer_dialog.c
13626 * app/paginate_psprint.c
13628 - reflect signature changing of filter->export function
13629 - replaced '/' with G_DIR_SEPARARTOR where appropriate
13631 * app/diaunitspinner.c
13632 * app/render_libart.c
13633 added misssing headers like <string.h>
13635 * app/object_ops.c : fixed copy&paste bug in dialog string
13637 * app/splash.c : gdk_widget_show_now () does not ensure actual
13638 drawing of the splash screen, at least not on win32. Reuse the
13639 previous implementation with gtk_main_iteration() again.
13641 * */makefile.msc : make use of the build module (available in
13642 gnome-cvs/build. Updated for other source changes
13644 * lib/filter.h : added an user_data pointer to <ex/im>port()
13645 function signature and Dia<Im/Ex>portFilter to allow different
13646 filters to reuse the same callback function
13648 * lib/font.c : #include <string.h>
13653 * lib/neworth_conn.c
13654 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
13656 * */*.def : export function definition files required by win32 build
13658 * objects/custom/custom.c : #include <string.h>
13660 * plug-ins/pstricks/render_pstricks.c
13661 * plug-ins/shape/shape_export.c
13662 * plug-ins/svg/render_svg.c
13663 reflect changes to filter export function signature
13665 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
13666 mostly work as expected
13667 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
13668 to build the wmf plug-in because on the one hand the GDI emulation
13669 isn't finished and on the other hand it isn't required when building
13670 for win32. Is there anybody out there, who wants to save WMF on non
13671 windoze platforms ?
13673 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
13674 offset into account.
13676 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
13678 * app/Makefile.am: added missing plug-ins to run_dia.sh
13680 * lib/paper.c: added paper sizes A0, A1, A2
13682 * objects/UML/class.c
13683 objects/UML/class.h
13684 objects/UML/class_dialog.c: added support for colored UML
13687 2000-12-30 Kevin Breit <battery841@mediaone.net>
13689 * doc/en/usage-customization.sgml: added more content
13691 2000-12-24 Kevin Breit <battery841@mediaone.net>
13693 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
13694 <remy.viard@laposte.net>
13696 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
13698 * added limiting lines to Civil Engineering sheet,
13699 fixed vertical pump icon
13701 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
13703 * updated/additional Civil Engineering shapes: better icons,
13704 shapes use foreground/background colors now and are filled
13706 2000-12-03 Kevin Breit <battery841@mediaone.net>
13708 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
13709 the selection <sect1>
13711 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
13713 * app/load_save.c (diagram_data_save): avoid using obsoleted
13714 libxml calls (only matters when compiling with libxml2)
13716 2000-11-25 James Henstridge <james@daa.com.au>
13718 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
13719 handle the tool drops on the canvas.
13721 * app/interface.c (display_data_received_callback): do the check
13722 to make sure that the drag is from a local toolbox here as well.
13724 * app/interface.c (create_tools): unref the pixmap/mask after
13725 creating the GtkPixmap.
13726 (tool_setup_drag_source): function to set up a drag source for
13727 create object tool buttons.
13728 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
13729 (fill_sheet_wbox): same here.
13730 (create_display_shell): set up the display canvas as a drag
13732 (display_drop_callback, display_data_received_callback): functions
13733 to handle drops of tool buttons.
13735 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
13736 does weird shit to the user_data pointer for a menu item. Object
13737 alignment should work again now.
13739 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
13740 NULL, and mark this function static.
13741 (app_splash_init): use gtk_widget_show_now() instead of the
13742 gtk_main_iteration loop.
13743 (app_splash_init): connecting gtk_widget_destroy to the destroy
13744 signal of a widget seems pretty useless.
13746 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
13748 * doc/en/dia-manual.sgml:
13749 Added sect1 for advanced object types. Starting development
13752 2000-11-18 Kevin Breit <battery841@mediaone.net>
13754 * doc/en/dia-manual.sgml:
13755 Stupid spelling fixes.
13757 2000-11-18 Kevin Breit <battery841@mediaone.net>
13759 * doc/en/dia-manual.sgml:
13760 Just some small changes I made. Props to Greg LeBlanc on the
13763 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
13766 (ddisplay_add_display_area): Clip input rectangle to
13767 the visible part of the display.
13768 (ddisplay_scroll): Optimization, don't scroll and
13769 redraw if moving to the same position as before.
13771 * app/render_libart.c (renderer_libart_copy_to_window):
13772 Removed sanity check. Now moved to ddisplay_add_display_area().
13775 Added return at end of file.
13777 2000-11-13 Kevin Breit <battery841@mypad.com>
13778 * doc/en/dia-manual.sgml
13779 Commited manual changes from Henry House <hajhouse@houseag.com>
13781 2000-10-21 Hans Breuer <Hans@Breuer.Org>
13782 * lib/beziershape.c :
13783 The previous code was accessing unowned memory due to IHMO
13784 wrong index calculation. Now it appears to be fixed.
13788 * plug-ins/makefile.msc
13789 * objects/makefile.msc
13790 * app/makefile.msc: (new files)
13791 Makefiles for Dia on Win32, Micro$oft VC only.
13793 * plug-ins/pstricks/render_pstricks.c
13794 * plug-ins/dxf/dxf-import.c
13795 * plug-ins/shape/shape-export.c
13796 * plug-ins/svg/render_svg.c
13799 * app/preferences.c
13803 * objects/custom/custom.c
13804 * objects/standard/image.c
13805 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
13806 where appropriate, add missing prototypes like <string.h>
13808 * plug-ins/wmf/wmf_gdi.cpp
13809 * plug-ins/wmf/wmf_gdi.h:
13810 start of wmf write functions for non Win32 platform. Not
13811 finished yet. The other way to get it working maybe to
13812 link the plug-in against wine libs.
13814 * plug-ins/wpg/wpg.c : add missing brace
13816 * app/load_save.c :
13817 Handling for unknown objects at load time. Previously Dia
13818 was crashing, if you try to load a file referencing objects
13819 whiches plug-ins aren't installed/available. Now it spits out
13820 a warning and ignores the unknown objects.
13823 toolbox DND support for files like The Gimp does it.
13827 Simple splash screen support and usage.
13830 Splash screen, portability fixes, dont' g_error if there is
13831 g_get_homedir return NULL. This may remove the one and only
13835 Make it compile without ENABLE_NLS
13837 * app/render_libart.c :
13838 Sanity check to avoid calling libart with wrong window coordinates.
13839 They come from the update handler. Direct Gdk is dealing nicely
13840 with coordinates out of range, libart does access un-owned memory
13841 in this case, mostly causing crashes.
13843 * app/winmain.c: (new file) Export the Win32 Gui version of the
13844 main function. This file is only required for Windoze.
13846 * app/splash.c: (new file) splash screen implementation
13850 * lib/diavar.h: (new file)
13851 moved special variable export code to diavar.h, because it is
13852 needed in color.h and font.h
13855 M$VC cann't export inlined functions. Quick hack to let it
13856 link again. Probably the glib mechanics should be used here?
13858 * objects/UML/lifeline.c : initialize var before usage
13860 * objects/GRAFCET/step.c : removed unused var
13862 2000-10-14 James Henstridge <james@daa.com.au>
13864 * app/render_gnomeprint.c (draw_image): change code so images
13865 don't get flipped when printing.
13867 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
13868 sure that the return value of
13869 gnome_print_context_new_with_paper_size is not NULL.
13871 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
13872 into a series of bezier segments.
13873 (fill_arc): similar code to handle filled arc segments.
13875 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
13882 * app/disp_callbacks.c
13884 * app/linewidth_area.c
13885 * app/paginate_psprint.c
13886 * app/preferences.c
13890 * app/neworth_conn.c
13892 * objects/standard/box.c: various small changes to get rid of
13893 annoying warnings (eg faulty prototypes and unused variables)
13895 * app/disp_callbacks.c
13898 * app/magnify.h: update magnify tool icon when pressing/releasing
13899 shift. I will try to make something more general so that similar
13900 things can be used by other tools.
13902 * shapes/SDL/inout.shape
13903 * shapes/SDL/return.shape: fixed some typos
13905 2000-10-09 James Henstridge <james@daa.com.au>
13907 * objects/custom/shape_info.c (parse_path): apply patch from
13908 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
13911 2000-10-08 James Henstridge <james@daa.com.au>
13913 * objects/standard/image.c (image_set_props): if the file could not
13914 be loaded, show the broken image icon.
13916 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
13918 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
13920 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
13921 object icon when loading from a file. This allows you to have PNG
13922 icon files for shapes.
13924 2000-10-07 James Henstridge <james@daa.com.au>
13926 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
13928 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
13929 GDK_IMLIB_CFLAGS reference.
13931 * app/commands.c (help_about_callback): remove imlib code.
13933 * lib/dia_image.c: only include the pixbuf version of the image
13936 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
13938 * configure.in (CPPFLAGS): remove the check for imlib, as we now
13939 require gdk-pixbuf.
13941 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
13942 conditionally define \setfont as well.
13944 2000-10-05 James Henstridge <james@daa.com.au>
13946 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
13947 preamble so that we define \setlinejoinmode and \setlinecaps
13948 commands conditionally on them being undefined. This way, the
13949 pstricks output files should work without modification, and will
13950 support the commands when they are implemented in pstricks.
13952 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
13954 * dia.desktop: added hungarian translations to dia.desktop
13956 2000-10-04 James Henstridge <james@daa.com.au>
13958 * sheets/UML.sheet: fix typo.
13960 * objects/custom/shape_info.c: use strtod instead of g_strtod.
13961 (parse_path): actually call setlocale around strtod calls.
13963 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
13964 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
13965 the g_strtod wrapper.
13967 * shapes/SDL/: add SDL shapes from Rubens Ramos
13968 <rubens_ramos@yahoo.com>
13970 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
13972 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
13974 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
13975 W. Michael Petullo <mike@flyn.org>.
13977 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
13978 from the 0.86 tarball) and jigsaw.sheet.
13980 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
13982 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
13984 * shapes/network/: add network-additional shapes here.
13986 * sheets/network.sheet: add the network-additional shapes from
13987 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
13990 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
13992 * configure.in: Updated ALL_LINGUAS
13994 * po/nl.po: Removed newline from translation
13996 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
13998 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
13999 logo filename generation.
14001 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
14002 Avoiding "//dia_logo.png".
14004 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
14006 * app/filedlg.c: add include <sys/types.h> to
14007 remove warning. (OS/2)
14009 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
14011 * objects/chronogram/chronoline_event.c (reparse_clevent):
14012 the __checksum routine was simply bogus. Redone it in a slightly
14013 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
14015 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
14017 * app/create_object.c (create_object_button_press):
14018 * app/modify_tool.c (click_select_object):
14019 * lib/object.h: select renamed to selectf to prevent
14020 compiler problems with function select(). OS/2 version.
14022 2000-09-08 Karsten Weiss <knweiss@gmx.de>
14024 * po/de.po: Updated.
14026 2000-09-07 Karsten Weiss <knweiss@gmx.de>
14028 * dia.desktop: Added German translation
14029 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
14031 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
14033 * configure.in (ALL_LINGUAS): added "es"
14035 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14040 * app/scroll_tool.c:
14041 Standardized cursor function get_cursor(). Magnify now has
14042 looking-glass cursor with + and -.
14044 * app/create_object.c (create_object_button_press):
14045 Newly created connections now snap to connection points even when
14048 2000-08-17 Daniel Egger <egger@suse.de>
14050 * app/menus.c: #ifdef'ed some code for the none GNOME
14052 * app/dia_embedd.c: Changed obvious hackery. Can anyone
14053 please have a look at the GNOME UI menu creation? The
14054 gnome-app-helper code is ages old and plainly broken!
14056 2000-08-15 Daniel Egger <egger@suse.de>
14063 * app/select.c: First big patch to get the menus
14064 working again in the international version. Copied
14065 some code written by Sven and me from GIMP and
14066 thus implemented automatic tearoffmenu creation and
14067 proper translation. I also removed that pseudo
14068 radiomenu hack and cleaned up several translation
14069 hacks which have never really worked. All in all
14070 this is part I of the big menu patch. Enjoy and tell
14071 me if you detect any problems.
14073 2000-08-14 Daniel Egger <egger@suse.de>
14075 * sheets/UML.sheet: Changed one German translation as
14076 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
14078 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
14080 * app/diapagelayout.c:
14081 * lib/diagramdata.c:
14082 * lib/diagramdata.h:
14085 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
14086 selecting paper size for a new diagram. TODO: Use libpaper if
14087 available and use gnome_paper-stuff if using GNOME.
14089 * sheets/Electric.sheet: fixed typo.
14091 2000-08-08 James Henstridge <james@daa.com.au>
14093 * po/README: added a readme file to tell translators to translate
14094 the .sheet files as well.
14096 * app/commands.c (help_about_callback): fix small bug where we tried
14097 to gdk_bitmap_unref() the mask for the about box image, even though
14098 it was NULL. Now check for a NULL mask.
14100 2000-08-07 Daniel Egger <egger@suse.de>
14102 * sheets/*.sheet: Added translations for the name
14103 in the toolbar tab. Brushed up some descriptions
14104 and some translations a bit.
14106 2000-08-06 James Henstridge <james@daa.com.au>
14108 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
14109 identifier and dtd url for SVG output.
14110 (new_svg_renderer): fix the output of the viewBox output. The
14111 second two numbers are the width and height -- not the right
14112 and bottom sides of the box.
14114 * shapes/*/*.shape: update svg namespace URI.
14116 * objects/custom/shape_info.c (load_shape_info): change the
14117 namespace URI for custom shapes yet again to match the Candidate
14118 Recommedation. It looks like this one will probably be the final
14121 * app/display.c (new_display): remove the code that sets ic and
14122 ic_attr members to NULL, as one of the previous function calls
14123 causes the display to be realised. This means that the ic gets
14124 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14127 2000-08-06 James Henstridge <james@daa.com.au>
14129 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14131 * NEWS: fixed date in NEWS file, as I will release today.
14133 * README: updated the README a little. Added note that Dia is now
14136 * dia.spec: fix up spec file.
14138 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14140 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14141 get heaps of warnings when you turn off debugging.
14142 Also made a few other warning fixes.
14144 2000-08-02 James Henstridge <james@daa.com.au>
14146 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14148 * configure.in: update version number.
14150 2000-08-01 James Henstridge <james@daa.com.au>
14152 * app/commands.c (help_about_callback): add Hans to about dialog.
14154 * doc/shape.dtd: dtd for shape file format.
14156 * doc/custom-shapes: update doc file about creating custom shapes.
14158 * shapes/*/*.shape: change namespace URI for the SVG portion to the
14159 one for the latest draft.
14161 * shapes/*/*.shape: fix up rect definitions.
14163 * objects/custom/shape_info.c (load_shape_info): recognise newer
14164 namespace tag for SVG.
14165 (parse_svg_node): the rect element should take attributes x, y, width
14166 and height -- not x1,y1,x2,y2.
14168 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14169 output to use the newest draft DTD.
14171 * plug-ins/svg/svg.c: initialisation code for plugin.
14173 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14175 * plug-ins/svg/Makefile.am: makefile for svg plugin.
14177 * app/app_procs.c (internal_plugin_init): don't register the svg
14178 export filter here.
14180 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14182 2000-07-31 James Henstridge <james@daa.com.au>
14184 * objects/standard/textobj.c (textobj_get_defaults):
14185 * objects/standard/polygon.c (polygon_get_defaults):
14186 * objects/standard/image.c (image_get_defaults):
14187 * objects/standard/ellipse.c (ellipse_get_defaults):
14188 * objects/standard/box.c (box_get_defaults):
14189 * objects/standard/beziergon.c (beziergon_get_defaults):
14190 * objects/flowchart/parallelogram.c (pgram_get_defaults):
14191 * objects/flowchart/ellipse.c (ellipse_get_defaults):
14192 * objects/flowchart/diamond.c (diamond_get_defaults):
14193 * objects/flowchart/box.c (box_get_defaults):
14194 * objects/custom/custom_object.c (custom_get_defaults):
14195 * objects/FS/flow.c (flow_get_defaults):
14196 * objects/FS/flow-poly.c (flow_get_defaults):
14197 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14200 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14201 widgets for various object types.
14202 (create_dialog): ref and sink the no_defaults_dialog.
14204 * app/preferences.c (prefs_create_dialog): change
14205 gtk_container_border_width call to gtk_container_set_border_width.
14207 2000-07-29 James Henstridge <james@daa.com.au>
14209 * app/commands.c (view_aa_callback): show a warning dialog if
14212 * app/interface.c (fill_sheet_menu): don't add a menu item for
14215 2000-07-26 James Henstridge <james@daa.com.au>
14217 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14219 * app/menus.c: remove edit grid menu item.
14221 * app/commands.[ch] (view_edit_grid_callback): removed.
14223 * app/display.c (new_display): don't initialise removed Grid members.
14225 * app/grid.c: remove unused functions.
14227 * app/grid.h: remove dialog related stuff from Grid structure.
14228 Remove prototypes for dialog functions.
14230 * app/menus.c: add to menus
14232 * app/commands.[ch] (view_diagram_properties_callback): new command
14233 for showing the diagram properties dialog.
14235 * app/dia-props.[ch]: a new diagram properties dialog. To replace
14236 the edit grid dialog.
14238 2000-07-25 James Henstridge <james@daa.com.au>
14240 * app/grid.c (grid_x_update):
14241 (grid_y_update): as the grid setting is stored with the diagram,
14242 update all displays when a change is made.
14244 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14246 * app/create_object.c (create_object_button_press):
14247 (create_object_motion): use new snap_to_grid signature.
14249 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14250 and handle invisible grid lines.
14251 (snap_to_grid): use new grid settings. Also changed signature to
14252 take a DDisplay rather than Grid pointer.
14253 (grid_show_dialog): get the defaults from the correct place.
14255 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14257 * app/diagram.c (new_diagram): set the grid size defaults from the
14260 * app/load_save.c (diagram_data_save): save grid and guide info to
14262 (diagram_data_load): add guide and grid load support.
14264 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14267 * lib/diagramdata.h: add members to DiagramData for grid and guide
14270 * configure.in (BONOBO_LIBS): update configure scripts
14272 * app/dia.oafinfo: oafinfo file for dia embeddables.
14274 * app/dia_embedd.c: add OAF support.
14276 2000-07-24 James Henstridge <james@daa.com.au>
14278 * plug-ins/wpg/Makefile.am:
14279 * plug-ins/pstricks/Makefile.am:
14280 * plug-ins/hpgl/Makefile.am:
14281 * plug-ins/dxf/Makefile.am: same here.
14283 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
14284 the required libraries, and the link line was causing libtool not
14285 to build a shared library on some systems :(
14287 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
14288 be checking x, not n.
14290 2000-07-23 James Henstridge <james@daa.com.au>
14292 * app/preferences.c (prefs_data): set the "reset tools after
14293 create" preference to true by default. That seems to be what most
14296 * app/interface.c (create_sheets): instead of a notebook, use an
14297 option menu that updates the sheet tools. The notebook tabs were
14298 getting a bit unwieldly, so the option menu should fix that. This
14299 also reduces the number of widgets in the tools radio button
14300 group, which should make the UI a little more responsive.
14302 2000-07-19 Fatih Demir <kabalak@gmx.net>
14304 * configure.in: Added tr to ALL_LINGUAS.
14305 [ Yeah, we're now having a Turkish translation,
14308 * dia.desktop: Added the Turkish entries.
14310 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
14312 * doc/diagram.dtd: changed string-element so it conforms to the
14315 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
14317 * configure.in: added chinese.
14318 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
14326 objects/custom/shape_info.c:
14327 shapes/Circuit/npn.shape:
14328 shapes/Circuit/pnp.shape:
14329 sheets/*.sheet: dia now works with libxml2.
14330 Libxml2 is a bit more picky when parsing xml and reported errors on all
14331 sheet files because they use non ascii characters (added
14332 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
14333 I commented out these.
14335 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
14337 * configure.in (ALL_LINGUAS): added Italian
14339 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
14341 * configure.in (ALL_LINGUAS): added Korean
14343 2000-06-25 James Henstridge <james@daa.com.au>
14345 * objects/flowchart/parallelogram.c (pgram_create): use default font
14346 and add properties interface support.
14348 * objects/flowchart/ellipse.c (ellipse_create): use default font and
14349 add properties interface support.
14351 * objects/flowchart/diamond.c (diamond_create): use default font and
14352 add properties interface code.
14354 * objects/flowchart/box.c (box_create): use default font.
14356 * objects/custom/custom_object.c (custom_create): use default font
14359 * objects/standard/textobj.c (textobj_create): update to use default
14362 * lib/attributes.c: add implementations.
14364 * lib/attributes.h (attributes_[gs]et_default_font): add function
14365 prototypes for setting/getting a default font.
14367 2000-06-24 James Henstridge <james@daa.com.au>
14369 * app/paginate_gnomeprint.h: updated prototype.
14371 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
14372 diagram page settings.
14374 * objects/standard/beziergon.c (beziergon_copy): same here.
14376 * objects/standard/polygon.c (polygon_copy): copy the fill colour
14380 * app/tool.h (tool_options_dialog_show):
14381 * app/scroll_tool.h (free_scroll_tool):
14382 * app/render_svg.h:
14383 * app/render_libart.h (renderer_libart_copy_to_window):
14384 * app/render_gdk.h (renderer_gdk_copy_to_window):
14385 * app/properties.h (properties_hide_if_shown):
14386 * app/preferences.h (prefs_load):
14387 * app/object_ops.h:
14388 * app/modify_tool.h (free_modify_tool):
14389 * app/magnify.h (free_magnify_tool):
14390 * app/linewidth_area.h (linewidth_area_create):
14391 * app/layer_dialog.h:
14392 * app/handle_ops.h (handle_is_clicked):
14394 * app/grid.h (grid_destroy_dialog):
14395 * app/defaults.h (defaults_show):
14396 * app/cut_n_paste.h (cnp_exist_stored_objects):
14397 * app/create_object.h (free_create_object_tool):
14398 * app/connectionpoint_ops.h (diagram_unconnect_selected):
14400 * app/color_area.h (color_area_create):
14401 * app/app_procs.h (app_is_embedded): remove extern keyword from
14402 function prototypes.
14405 * lib/sheet.h (load_all_sheets):
14406 * lib/render_store.h:
14407 * lib/render_object.h (render_object_load):
14408 * lib/polyshape.h (polyshape_closest_segment):
14409 * lib/poly_conn.h (polyconn_closest_segment):
14412 * lib/objchange.h (new_object_state_change):
14413 * lib/neworth_conn.h (neworthconn_add_segment):
14414 * lib/message.h (message_error):
14417 * lib/font.h (font_descent):
14418 * lib/focus.h (remove_focus):
14420 * lib/diagramdata.h:
14421 * lib/dia_xml.h (data_add_composite):
14423 * lib/connpoint_line.h:
14424 * lib/connection.h (connection_move_handle):
14426 * lib/attributes.h (attributes_set_default_line_style):
14427 * lib/arrows.h (arrow_draw): remove extern keyword from function
14428 definitions. It is not required for functions.
14430 * plug-ins/dxf/Makefile.am (INCLUDES):
14431 * plug-ins/pstricks/Makefile.am (INCLUDES):
14432 * plug-ins/cgm/Makefile.am (INCLUDES):
14433 * objects/SADT/Makefile.am (INCLUDES):
14434 * objects/chronogram/Makefile.am (INCLUDES):
14435 * objects/GRAFCET/Makefile.am (INCLUDES):
14436 * objects/flowchart/Makefile.am (INCLUDES):
14437 * objects/sybase/Makefile.am (INCLUDES):
14438 * objects/FS/Makefile.am (INCLUDES):
14439 * objects/standard/Makefile.am (INCLUDES):
14440 * objects/network/Makefile.am (INCLUDES):
14441 * objects/UML/Makefile.am (INCLUDES): same here.
14443 * objects/ER/Makefile.am: changed inclusion of some macros to
14446 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
14447 handle the plug in extension, rather than have all the #ifdef's in
14450 * plug-ins/Makefile.am: add renderer.inc to dist.
14452 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
14454 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
14456 * lib/plug-ins.c: Handle OS/2 dll's too.
14458 2000-06-07 James Henstridge <james@daa.com.au>
14460 * app/plugin-manager.c (get_plugin_manager): set some table
14461 packing options to make it look a little nicer.
14463 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
14464 makefiles for these plug-ins.
14466 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
14468 * configure.in: added hpgl and wpg directories to build. Added
14469 note about whether gnome-print support was enabled, and noted that
14470 it is not recommended.
14472 2000-06-06 James Henstridge <james@daa.com.au>
14474 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
14475 a little work, but I am checking them in so I don't lose them.
14477 2000-06-01 James Henstridge <james@daa.com.au>
14479 * objects/standard/arc.c: added extra properties.
14481 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
14482 was using the wrong index into the handles array. This gets corner
14483 type changing working correctly.
14485 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
14486 to properties code (no editing or loading yet though). Also added
14487 support for point array manipulation through the offsets interfaces.
14489 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
14491 * app/interface.c (origin_button_press): changes so the origin
14492 button doesn't grab the pointer when we pop up the menu.
14494 * app/commands.c (help_about_callback): fix small memory leak in
14497 * app/menus.c (menus_init): fixed breakage I introduced in the non
14498 gnome menus when I was doing the menu changes. The tearoffs work
14499 really nicely in plain gtk mode as well.
14501 * objects/standard/beziergon.c (beziergon_create): changed the
14502 returned handles to match the handle numbering changes. Now
14503 segment addition and removal works correctly with undo!
14505 * lib/beziershape.c: various changes to the code. Changed the
14506 numbering of handles, and fixed the segment removal code.
14508 2000-05-31 James Henstridge <james@daa.com.au>
14510 * objects/standard/beziergon.c: remove connection point handling.
14511 There is still a bit of work to be done to get adding and removing
14512 of segments working correctly.
14514 * lib/beziershape.c: add connection point handling to beziershape.
14515 I set it for two connection points per segment.
14517 2000-05-30 James Henstridge <james@daa.com.au>
14519 * objects/standard/polygon.c: don't do connectionpoint handling.
14521 * lib/polyshape.c: changed to handle connection points internally.
14522 Also, don't worry about connections to handles on polyshape, as
14523 all handles are non connectable.
14525 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
14527 * configure.in: Added finnish
14529 2000-05-30 James Henstridge <james@daa.com.au>
14531 * sheets/*.sheet: translation updates to the .sheet files.
14533 * po/fr.po: updated po file from Christophe Merlet.
14535 * menus.h: removed prototypes for functions which have been removed.
14537 2000-05-29 James Henstridge <james@daa.com.au>
14539 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
14540 item in the option menu when changing selected diagram.
14542 * app/dia_embedd.c (view_factory): fix up function to work with new
14545 * app/disp_callbacks.c (ddisplay_realize): remove call to
14546 display_set_active from here.
14547 (ddisplay_canvas_events): move call here. This gets rid of all the
14548 warnings, as the renderer has been fully set up correctly at this
14551 * app/menus.c (menus_init): add the tearoff item to the start of the
14554 * app/app_procs.c (create_user_dirs): we don't need to create the
14555 menus directory anymore.
14557 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
14558 necessary to update the menu state here, as it was done when the
14559 active display was set.
14561 * app/display.c (display_set_active): update the menu state when
14562 changing active displays.
14564 * app/interface.c (origin_button_press): set the display as active
14565 when a click is made on the menu button.
14567 * app/menus.c (menus_init): set up a quit function to save the accels
14569 Add tearoff items for the non GNOME menus, add accelerators for
14570 several GNOME menus.
14572 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
14573 menus_get_image_menu().
14575 * app/menus.c (menus_get_item_from_path): use display_menus here
14576 rather than ddisp->popup.
14578 * app/display.h: remove the popup member in the DDisplay structure.
14580 * app/interface.c: remove option of not using wrap box.
14581 (create_toolbox): change to always use menus_get_toolbox_menubar
14582 even when using gnome menus.
14583 (create_display_shell): use menus_get_image_menu to load accelerators
14584 only -- not the actual popup menu.
14586 * app/menus.c (menus_init): new function to create the menus.
14587 (menus_get_toolbox_menubar): use this function whether gnome is
14588 in use or not. Changed to use menus_init.
14589 (menus_get_image_menu): same here. Also, now this function always
14590 returns the same menu, rather than a new one each time.
14591 (menus_init): read a menurc file to load accelerators here.
14593 2000-05-28 James Henstridge <james@daa.com.au>
14595 * app/display.c (ddisplay_really_destroy): unset active display if
14596 active display is destroyed.
14597 (ddisplay_active): simplify function to return active_display as set
14598 by display_set_active. This allows using a pinned menu with any
14599 display -- not just the one it was popped up from.
14600 (display_set_active): notify the layer dialog of change of diagrams
14601 when active diagram changes.
14603 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
14604 on button and key presses.
14605 (ddisplay_realize): set active display on realize.
14607 * app/display.c (display_set_active): simple implementation of this
14610 * app/display.h (display_set_active): add prototype for setting
14611 the active display.
14613 * app/interface.c (create_display_shell): don't give focus to the
14616 * app/menus.c: fix up menus for Beziergon.
14618 * app/interface.c (create_display_shell): make the widget in the
14619 top left corner a button that can be used to pop up the right click
14620 menu, like in gimp and sketch.
14622 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
14625 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
14626 add code to set corner types for beziergon.
14628 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
14630 (beziershape_move_handle): use the previous corner type for right
14633 * app/interface.c (tool_data): add beziergon to toolbox.
14635 * objects/standard/standard.c (dia_plugin_init): initialise the new
14636 Beziergon object type.
14638 * objects/standard/beziergon.c: an object based on BezierShape.
14640 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
14642 * lib/beziershape.[ch]: new files implementing a bezier shape.
14644 2000-05-26 James Henstridge <james@daa.com.au>
14646 * lib/text.c (text_key_event): handle multibyte inserts.
14647 (text_key_event): also add home and end keybindings.
14649 * app/interface.c (create_display_shell): connect handlers for
14650 focus_in_event, focus_out_event, realize and unrealize signals.
14652 * app/display.[ch] (new_display): initialise input context members.
14654 * app/disp_callbacks.[ch]: added XIM support here.
14656 * lib/font.c (suck_font): the black and white pixel values should be
14657 taken from a 1 bit colormap rather than the default colormap.
14659 Hans Breuer's Windows patches ...
14661 * lib/font.c: use Courier New for fixed width font on windows
14664 * lib/dia_image.h: change to "struct _DiaImage".
14666 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
14668 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
14669 mouse button for object menu. This will make two button mouse owners
14672 2000-05-25 James Henstridge <james@daa.com.au>
14674 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
14676 * app/app_procs.c (app_init): add extra NULL argument to call of
14679 * app/load_save.h: remove prototype.
14681 * app/load_save.c: remove diagram_data function here.
14683 * app/diagram.h: added prototype.
14685 * app/diagram.c (diagram_load): new function here, which uses import
14688 * plug-ins/dxf/dxf.c: register the import filter as well.
14690 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
14691 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
14693 * objects/standard/line.c: add start_point and end_point properties
14694 to standard line object.
14696 2000-05-21 James Henstridge <james@daa.com.au>
14698 * app/paginate_psprint.c: added missing include of locale.h.
14700 * objects/custom/custom_object.c (custom_draw): use fabs rather than
14701 abs for scaling factors.
14702 (custom_distance_from): same here.
14704 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
14706 2000-05-18 James Henstridge <james@daa.com.au>
14708 * po/POTFILES.in: updated POTFILES.in.
14710 * dia.spec: incremented version number in spec file.
14712 * NEWS: added (lots of) news items for the 0.85 release.
14714 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
14717 * configure.in: updated version number here.
14719 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
14721 2000-05-17 James Henstridge <james@daa.com.au>
14723 * app/app_procs.c (internal_plugin_init): register the native import
14726 * app/load_save.c (diagram_data_load, diagram_load): split this
14727 function into two -- one that does all the work on the DiagramData
14728 structure, and the other that provides compatibility with the old
14730 (dia_import_filter): use diagram_data_load to define an import
14733 * app/diagram.h (new_diagram): added const to prototype.
14735 * app/filedlg.c (file_open_callback): change to use new import filter
14738 * lib/filter.c: added import filter management functions.
14740 * lib/filter.h: added prototypes for import filter interface.
14742 * app/commands.c (help_about_callback): updated about dialog to
14743 contain a few more names.
14745 2000-05-16 James Henstridge <james@daa.com.au>
14747 * configure.in (Configuration): added a status message to the end of
14748 the configure script to give the user some idea of what was
14751 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
14753 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
14756 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
14759 * configure.in (AM_PATH_LIBART): use the check function provided
14760 with libart rather than our own code. It is more reliable, and
14761 it only requires that people who build out of CVS have libart.m4
14762 installed (not necessarily all of libart).
14763 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
14765 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
14767 * dia.desktop: Added Swedish translation.
14769 2000-05-09 James Henstridge <james@daa.com.au>
14771 * lib/dia_xml.c: you can't free a const pointer, so remove const
14772 from variable definitions.
14774 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
14775 initialised correctly.
14777 * app/render_svg.c (export_svg): set locale to C.
14779 * app/paginate_psprint.c (paginate_psprint): set locale to C.
14781 * app/render_eps.c (export_eps): set locale to C for EPS export.
14783 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
14784 (data_add_point): same here.
14785 (data_add_rectangle): same here.
14786 (data_real): use g_strtod to convert strings to real numbers, so that
14787 locales are taken into account.
14788 (data_point): same here.
14789 (data_rectangle): same here.
14791 * AUTHORS: added Henk and Jacek to authors file.
14793 Daniel Egger's code cleanups.
14795 * app/select.c (select_invert_callback): remove unused variable.
14797 * app/plugin-manager.c (get_plugin_manager): fix typo.
14799 * app/load_save.c (read_connections, write_objects):
14800 (write_connections): made some functions static.
14802 * app/interface.c (toolbox_delete, toolbox_destroy): made some
14805 * app/filedlg.c (file_export_callback): remove unused variable.
14807 * app/app_procs.c: various warning fixes.
14809 Integrating Jacek Pliszka's pstricks export filter.
14811 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
14813 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
14814 renderer (with a few small modifications by me).
14816 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
14818 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
14820 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
14823 * sheets/Makefile.am:
14824 * shapes/Makefile.am:
14825 * shapes/Civil/Makefile.am:
14826 * sheets/civil.sheet:
14828 Added civil/hydraulic/structural engineering objects from
14829 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
14831 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
14833 * objects/FS/flow-poly.c:
14834 * objects/FS/flow.c:
14835 Fix division by zero in point_normalize().
14836 Patch by David Thompson <dcthomp@mail.utexas.edu>
14838 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
14841 * lib/bezier_conn.c:
14842 * lib/connpoint_line.c:
14843 Added checks for zero-length lines before calls to point_normalize.
14845 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14847 * app/preferences.c (prefs_data): Changed
14848 reversed_dragging_intersects to not make the dialog ridiculously
14851 2000-04-22 James Henstridge <james@daa.com.au>
14853 Hans's win32 patches:
14855 * app/export_png.c: include message.h
14856 * app/interface.c: include dia_dirs.h
14857 * app/linewidth_area.c: check for rint
14858 * app/main.c: include interface.h
14859 * app/paginate_psprint.c: remove unused variable.
14860 * app/preferences.c: include message.h
14861 * app/render_svg.c: include stdlib.h
14862 * app/select.c: include object_ops.h
14863 * lib/dia_dirs.c: miscelaneous fixes for win32.
14864 * lib/dia_image.c: include string.h
14865 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
14866 * lib/properties.c: include stdlib.h
14867 * lib/properties.h: define extra data for standard properties as
14868 static variables on win32 (to get around dynamic linker problems).
14869 * objects/standard/polygon.c: polygon_create_change missing return
14872 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
14874 * configure.in (ALL_LINGUAS): added Catalan
14876 2000-04-18 James Henstridge <james@daa.com.au>
14878 * objects/standard/bezier.c (bezierline_get_object_menu): add a
14879 separator to the object menu between the add/remove segment items
14880 and the corner type items.
14881 (bezierline_get_object_menu): add code to disable the menu item for
14882 the current corner type. Really just a cosmetic change.
14884 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
14885 a NULL for the label or with no associated callback.
14887 * objects/standard/bezier.c (bezierline_menu_items): use the
14888 enumeration values rather than numeric values for the corner types.
14890 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
14891 structure, and add code to handle it. Also, don't save the corner
14892 types inline in the bez_points node. The way it is conditionally
14893 including the element just feels like it will break.
14895 * lib/geometry.h (BezPoint): removed the corner_type stuff from
14896 BezPoint. The corner type stuff is a user interface level idea rather
14897 than something required by the renderer, so should be taken care of
14898 at the object level.
14900 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14902 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
14903 checks. Weren't able to reproduce original bug, tough.
14905 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
14907 * sheets/Electric.sheet:
14908 * sheets/Contact.sheet:
14909 * sheets/Pneumatic.sheet:
14910 * sheets/Circuit.sheet: sprayed some <br/>'s around.
14911 (added a few French translations in the last file)
14913 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14916 * lib/bezier_conn.h:
14917 * objects/standard/bezier.c:
14918 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
14919 bezier points. Only one minor problem known: Menus are active
14920 for endpoints minor handles.
14921 11:28: Save and load now works, too.
14922 (bezierconn_closest_major_handle): 12:03: New function to get the
14923 non-control point handle associated with the nearest control
14925 Also fixed the menu activation problem, and made remove_segment
14926 not remove the endpoint.
14928 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14930 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
14933 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
14935 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
14936 <sys/stat.h>. OS/2 patch.
14938 2000-04-15 James Henstridge <james@daa.com.au>
14940 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
14941 Thompson's patch that adds undo support to the function structure
14944 2000-04-14 James Henstridge <james@daa.com.au>
14946 * objects/custom/custom_object.c (custom_distance_from): new
14947 implementation of distance algorithm that actually takes the
14948 display list into account when calculating the distance. Much nicer
14949 than a simple bounding box.
14951 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
14953 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
14955 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14957 * objects/standard/polygon.c: Start of polygons own changes (for
14958 connectionpoints). Need to do seperate changes in polyshape, too,
14959 rather than reuse the bezier changes.
14961 2000-04-13 James Henstridge <james@daa.com.au>
14963 * lib/dia_image.c (dia_image_draw): use the new enumeration values
14964 from after the gdk-pixbuf cleanup.
14966 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
14967 on for loop. Last set of coefficients were not beeing calculated,
14968 which caused a bit of breakage.
14970 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
14971 functions in geometry.c for calculating the closest segment.
14972 (bezierconn_distance_from): use distance_bez_line_point to calculate
14975 * lib/geometry.c (distance_bez_line_point): new function to calculate
14976 the distance from an open bezier line to a point.
14977 (distance_bez_shape_point): new function to calculate the distance
14978 from a closed bezier shape.
14979 (distance_ellipse_point): new function to calculate the distance from
14980 a filled ellipse to a point.
14982 * lib/geometry.h (BezPoint): moved this structure here from render.h
14984 2000-04-12 James Henstridge <james@daa.com.au>
14986 * lib/geometry.c (distance_bez_seg_point): new function to calculate
14987 the distance from a bezier segment.
14989 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
14990 to calculate the distance from the object.
14992 * lib/geometry.c (distance_polygon_point): function for calculating
14993 the distance from a polygon to a point.
14995 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
14998 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
14999 breaks can be inserted in the tool box.
15001 * doc/sheet.dtd: updated the DTD
15002 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
15004 2000-04-12 James Henstridge <james@daa.com.au>
15006 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
15007 macro if the dialog is a GtkDialog :(
15009 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15011 * objects/standard/polygon.c: Connectionpoints now properly
15012 managed in a GList. As far as I can tell, this will not dieturb
15013 the order (but I have the nagging doubt...)
15015 * lib/polyshape.c: No longer knows about connectionpoints.
15017 2000-04-11 James Henstridge <james@daa.com.au>
15019 * app/Makefile.am: fix makefile for bonobo build.
15021 * configure.in: fix checks for bonobo.
15023 * app/menus.c: added entries for the plugin manager.
15025 * app/Makefile.am (dia_core_files): added plugin manager to files
15028 * app/plugin-manager.[ch]: the plugin manager dialog.
15030 * app/display.c (display_update_menu_state): set the antialiased
15031 menu entry to the correct value.
15033 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
15035 * objects/custom/custom_object.c: not all renderers like ellipses with
15036 negative dimensions. This could cause ellipses to disappear when using
15037 the flip_h and flip_v functions.
15039 * samples/grafcet.dia: fixed speling and correctness.
15041 2000-04-11 James Henstridge <james@daa.com.au>
15043 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
15044 exposed the dia_plugin_load and dia_plugin_unload functions.
15046 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
15047 already created PluginInfo structure.
15049 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
15052 * lib/sheet.c: fix up call to dia_config_filename.
15054 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
15055 file. This would save information such as which plugins not to
15056 load during startup.
15058 2000-04-09 James Henstridge <james@daa.com.au>
15060 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
15062 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
15064 * lib/plug-ins.c (dia_register_plugins):
15065 Don't free the value returned from g_getenv.
15067 2000-04-09 Anders Carlsson <andersca@gnu.org>
15069 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
15071 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
15073 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
15074 right to left, select objects that intersect the rubberbanding rectangle
15075 instead of selecting objects that are in the rectangle.
15077 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
15079 * lib/diagramdata.h: Likewise.
15082 2000-04-09 James Henstridge <james@daa.com.au>
15084 * lib/plug-ins.[ch]: add copyright messages to files.
15086 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
15089 * objects/sybase/sybase.c (dia_plugin_init):
15090 * objects/network/network.c (dia_plugin_init):
15091 * objects/flowchart/flowchart.c (dia_plugin_init):
15092 * objects/custom/custom.c (dia_plugin_init):
15093 * objects/chronogram/chronogram.c (dia_plugin_init):
15094 * objects/UML/uml.c (dia_plugin_init):
15095 * objects/SADT/sadt.c (dia_plugin_init):
15096 * objects/GRAFCET/grafcet.c (dia_plugin_init):
15097 * objects/FS/fs.c (dia_plugin_init):
15098 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
15101 * objects/standard/standard.c (dia_plugin_init): change over to new
15104 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
15105 the version checker for plugins.
15107 * app/app_procs.c: remove plugin loading code from here, and use
15108 code from plug-ins.[ch]. Also move registration of internal
15109 objects/filters to a `builtin' plugin.
15111 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
15113 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
15115 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
15116 defined variable in EXTRA_DIST.
15118 * app/preferences.h: removed dia_config_filename from header.
15120 * app/preferences.c: removed dia_config_filename function.
15122 * lib/dia_dirs.c (dia_config_filename): moved function over to this
15123 file. Also changed implementation slightly so that it should work
15124 on the win32 port correctly (and use NT home directories).
15126 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15127 it should have been.
15129 * lib/plug-ins.[ch]: new plugin loading code.
15131 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15133 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15135 * lib/polyshape.c: Fix closest segment finding, exposes deeper
15136 bugs in adding corners to 'wraparound' segment.
15138 * objects/standard/polygon.c: Added connection points (fixed so
15139 far), set menu sensitivity.
15141 * lib/polyshape.c: Changed to box-style handles, fixed for start
15142 and ends not being special, added initial connections,
15144 * lib/dummy_dep.h: Added polyshape (gotcha!)
15146 * objects/standard/pixmaps/ellipse.xpm:
15147 * objects/standard/pixmaps/box.xpm:
15148 Filled element pixmaps with white.
15151 * objects/standard/polygon.c:
15153 * objects/standard/standard.c:
15154 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
15155 * lib/Makefile.am (libdia_a_SOURCES):
15157 * app/interface.c (tool_data):
15158 Added Standard/Polygon object and PolyShape lib object. Still
15159 needs inside grab and connection points.
15161 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15164 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15167 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15168 if (argv) outside ifdefs.
15170 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15172 * objects/standard/image.c (image_set_props):
15173 Aspect ratio is back in town.
15175 * app/Makefile.am (dia_LDADD):
15178 Check for gdk_pixbuf (by default disabled, for now)
15180 * app/render_eps.c (draw_image):
15181 * app/render_libart.c (draw_image):
15182 * app/render_gnomeprint.c (draw_image):
15183 Support for alpha mask in rendering. Color postscript, too.
15187 Support for gdk_pixbuf and proper masking for exports.
15189 2000-04-01 Kjartan Maraas <kmaraas@online.no>
15191 * sheets/*.sheets: Updated Norwegian translations.
15193 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15195 * lib/text.c (text_insert_char):
15196 * lib/render_store.c (add_data):
15197 Made realloc double the alloced space rather than add
15198 a fixed amount, to reduce memory stress.
15200 * app/select.c: Added new select method 'Transitive'
15201 that select every reachable (by connections) object.
15203 2000-03-27 Kjartan Maraas <kmaraas@online.no>
15205 * dia.desktop: Added Norwegian translation.
15207 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15209 * app/render_eps.c:
15210 * app/render_svg.c:
15211 Don't dereference NULL pointer if the renderer
15212 couldn't open the file. Fix by Lars Clausen.
15213 Bug reported by Martin Chisholm <b1mt@unb.ca>
15215 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15219 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15221 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15223 * app/dia.gnorba (location_info):
15224 Changed to correct executable name.
15226 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15229 Don't do any argument parsing or initialization
15232 * app/dia_embedd.c:
15233 Call init_server_factroy before app_init.
15234 Call app_init with argv==NULL
15235 Now we don't get any critical error on startup.
15238 Add Electric and Pneumatic to makefile list.
15240 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
15242 * shapes/Electric/*:
15243 * sheets/Electric.sheet:
15244 Add some Electric circuit shapes.
15246 * shapes/Pneumatic/*:
15247 * sheets/Pneumatic.sheet:
15248 Add some Pneumatic & Hydraulic circuit shapes
15249 (both sheets are still incomplete, though feature enough
15250 things for basic circuits).
15252 * shapes/Contact/l_*.(xpm|shape):
15253 * sheets/Contact.sheet
15254 * shapes/Contact/Makefile.am
15255 made the older electric circuit shapes in Contact obsolete (disabled
15256 them in the sheet, made that sheet Ladder only). Fixed the makefile
15257 for forgotten items.
15259 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
15262 Add support for Dia bonobo component.
15263 Currently a bit raw, so it's commented out.
15265 * app/dia_embedd.c:
15267 New files for embedding dia.
15268 The menu disabling hack is a bit gross. Esp. for GNOME.
15271 Add new function app_is_embedded();
15274 Don't destroy diagram when last display is destroyed if embedded.
15277 Change initialization of display so it works with embedding.
15280 Clarify comment about display destruction.
15282 * app/interface.[ch]:
15283 Added top_level_window argument to create_display_shell.
15284 Don't open a top-level window if embedding.
15285 Don't quit app if trying to close toolbox window when embedding.
15286 Add toolbox_show() and toolbox_hide().
15289 Added app_is_embedded() function (just returns false).
15290 Added toolbox_show() call in main().
15293 Added code for getting toolbox menus. This is used to
15294 hide some menu items when running embedded.
15297 Include sheet.h to remove warning.
15299 * objects/UML/association.c:
15300 Clarify association direction text.
15302 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
15305 Fixed man page so whatis parsing works.
15307 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
15309 * app/render_libart.c (new_libart_renderer):
15310 Fix from segg <segg@infonet.ca> to compile without libart.
15311 I forgot to change the stub for new_libart_renderer when doing
15312 the interactive renderer stuff for libart.
15314 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
15316 * dia.desktop: Added Irish translation.
15318 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
15320 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
15322 * app/load_save.c (fchmod): OS/2 defines only.
15324 2000-03-07 James Henstridge <james@daa.com.au>
15326 * lib/properties.c (prop_get_widget): set the position in the option
15329 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
15332 * app/export_png.c:
15333 * app/render_libart.[ch]:
15334 Don't export png:s with an interactive libart renderer.
15336 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
15338 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
15340 2000-03-02 James Henstridge <james@daa.com.au>
15342 * dia.spec (%build): unset LINGUAS before running configure. This
15343 ensures that all translations get included in the RPM.
15345 * lib/properties.c (object_create_props_dialog): put in a check for
15346 a NULL return from the describe_props() object method.
15347 (prop_desc_lists_union): make sure that the returned array is not
15349 (prop_desc_lists_intersection): same here.
15351 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
15353 * objects/ER/Makefile.am:
15354 * objects/FS/Makefile.am:
15355 * objects/UML/Makefile.am:
15356 Don't link object libs with gtk.
15358 2000-02-29 James Henstridge <james@daa.com.au>
15360 * app/preferences.c (prefs_save): check to see if the file could
15361 be opened before writing the prefs.
15363 * app/disp_callbacks.c (popup_object_menu): pass the button event
15364 to gtk_menu_popup. This allows you to click and release to open
15366 (ddisplay_canvas_events): same here.
15367 (create_object_menu): set the object type menu item in the object
15368 menu to be insensitive.
15370 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
15371 as we are now requiring a new version of libxml.
15373 * dia.spec: updated version number. Added requirement for
15376 * configure.in: incremented version number to 0.84.
15377 Added check for libxml >= 1.8.5. This will prevent some of the
15378 problems people have had with broken libxml versions.
15380 * NEWS: added news items.
15382 * app/interface.c (create_color_area): removed call to realize parent
15383 widget. Segg <segg@infonet.ca> reported that it caused a warning,
15384 but I haven't seen it on my copy of dia.
15386 2000-02-28 James Henstridge <james@daa.com.au>
15388 * app/export_png.c: added copyright notice, and made the band height
15391 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
15393 * lib/font.c (suck_font):
15394 Fixed off-by one bug in font pixmap height.
15395 Fixes the problem with garbage at the bottom of some text in aa mode
15396 and in png exported files.
15398 2000-02-27 James Henstridge <james@daa.com.au>
15400 * app/app_procs.c: add the png export filter if it was compiled in.
15402 * app/export_png.c (export_png): new PNG export filter. This requires
15403 the libart renderer to work as it needs a renderer that renders to a
15406 * configure.in: add check for libpng.
15408 * lib/message.c (message_internal): use a GNOME dialog here as well.
15410 * app/display.c (ddisplay_close): use a GNOME dialog here.
15412 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
15413 when exporting to EPS. This is because some people said the EPS
15414 output was too large
15416 2000-02-26 James Henstridge <james@daa.com.au>
15418 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
15421 * app/app_procs.c (app_exit): use a GNOME dialog here.
15423 * app/preferences.c (prefs_create_dialog): if GNOME support is
15424 enabled, show a GNOME dialog.
15426 * app/grid.c (grid_draw): use preferences when drawing page break
15429 * app/preferences.c: add page break preferences to dialog.
15431 * app/preferences.h: added page break preferences.
15433 2000-02-25 James Henstridge <james@daa.com.au>
15435 * sheets/UML.sheet: added new objects.
15437 * objects/UML/uml.c: link in the two new objects.
15439 * objects/UML/node.c:
15440 * objects/UML/branch.c: new UML objects from Stfan Seefeld
15441 <seefelds@magellan.umontreal.ca>.
15443 2000-02-24 James Henstridge <james@daa.com.au>
15445 * objects/custom/custom_object.c: converted to use the properties
15446 interface. In the future, it would be nice to add support for
15447 defining custom properties for custom objects, but that can wait.
15449 2000-02-22 James Henstridge <james@daa.com.au>
15451 * sheets/Circuit.sheet: added new circuit shapes to sheet.
15453 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
15454 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
15455 and adds a few new features.
15457 2000-02-21 Daniel Egger <egger@suse.de>
15459 * sheets/*.sheets: Added German translations and made some
15460 corrections to the others.
15462 2000-02-21 James Henstridge <james@daa.com.au>
15464 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
15466 * shapes/Circuit/...: added new shapes from Erik Janssens.
15468 2000-02-20 James Henstridge <james@daa.com.au>
15470 * app/interface.c (create_color_area): realize the parent window
15473 * objects/standard/image.c: properties patch for standard image
15474 object, from Lars Clausen.
15476 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
15478 * lib/properties.h (PropType): added file property type.
15480 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
15483 * app/interface.c: use wrap box for toolbox.
15485 * app/Makefile.am: added new files.
15487 * app/gtk*wrapbox.[ch]: added wrap box widget.
15489 2000-02-19 James Henstridge <james@daa.com.au>
15491 * sheets/network.sheet: added extra shapes to networks sheet.
15493 * configure.in (AC_OUTPUT): added shapes/network/Makefile
15495 * shapes/network/*: added shapes that were posted to the list a while
15498 * shapes/Makefile.am (SUBDIRS): added network subdirectory
15500 * app/menus.c (toolbox_menu_items): don't right justify help menu for
15501 gtk+ version of menus.
15503 * app/properties.c (create_dialog): use a GnomeDialog if we happen
15506 2000-02-18 James Henstridge <james@daa.com.au>
15508 * objects/flowchart/box.c: set extra data for corner radius and text
15509 padding properties.
15511 * objects/standard/box.c: set extra data for corner radius property.
15513 * lib/properties.h: set extra data in some standard properties.
15515 * lib/properties.c (prop_get_widget): look at the extra data for
15516 int, real and enum property types. They now use GtkSpinButton and
15517 GtkOptionMenu respectively.
15519 * lib/properties.h: extra data members for creating property setting
15522 2000-02-17 James Henstridge <james@daa.com.au>
15524 * objects/flowchart/box.c: reverted load/save functions back to
15525 previous implementations. Made box use standard property names.
15527 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
15529 * app/grid.c: add more digits to the grid edit dialog. This patch
15530 was also from Lars Clausen.
15532 * objects/standard/zigzagline.c:
15533 * objects/standard/textobj.c:
15534 * objects/standard/polyline.c:
15535 * objects/standard/line.c:
15536 * objects/standard/ellipse.c:
15537 * objects/standard/box.c:
15538 * objects/standard/bezier.c:
15539 * objects/standard/arc.c: patches to add properties code to standard
15540 objects. Based on patches from Lars Clausen. I have also removed
15541 some dead code from the files.
15543 * lib/properties.h (PROP_STD_*): define a number of standard
15544 properties. Where appropriate, objects should include these
15545 properties in their PropDescription list. This way, the intersection
15546 of properties of two different shapes will be greater.
15548 2000-02-14 James Henstridge <james@daa.com.au>
15550 * objects/flowchart/box.c (box_load, box_save): use property save
15551 routines. Make sure that any props not handled by object_load_props
15552 are loaded before calling object_load_props, or we get errors because
15553 update_data is called.
15555 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
15556 error that could cause properties to be loaded incorrectly.
15557 (object_set_props_from_offsets): similar here.
15559 * lib/properties.[ch] (prop_{load,save}): functions for loading
15560 or saving a property in Dia's XML file format.
15561 (object_{load,save}_props): load or save some properties of an
15562 object. These functions should help simplify the load/save methods
15563 of objects that implement the properties interface.
15565 2000-02-13 James Henstridge <james@daa.com.au>
15567 * objects/flowchart/box.c: use offset code to simplify property
15570 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
15572 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
15574 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
15576 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
15578 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
15581 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
15584 Add the custom object to DIA_LIB_PATH in run_dia.sh
15586 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
15588 * sheets/Circuit.sheet:
15589 * shapes/l_sout* (NEW):
15590 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
15591 variants of simple, inverted, set and reset outputs.
15592 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
15593 probably a split of Contact and Ladder sheets. And then a major
15594 revamping of the Contact sheet.
15596 2000-02-10 James Henstridge <james@daa.com.au>
15598 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
15600 * app/app_procs.c (register_all_objects): don't explicitely
15601 register the custom objects library -- let it be loaded by the
15602 normal plugin loading methods.
15604 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
15606 * objects/custom/Makefile.am: build libcustom_objects as a shared
15609 * objects/custom/shape_info.[ch]: don't read the description field
15610 of custom shapes. It makes more sense to have these in the sheet
15611 file to localise the parts of dia that translators have to deal
15614 * objects/custom/custom_object.c (custom_object_new): do not
15615 create the sheet object for the new custom shape -- this is
15616 handled by the custom sheet code.
15618 * objects/custom/custom.c: change over to being a normal plug-in
15619 rather than being linked with the main dia executable.
15621 2000-02-09 James Henstridge <james@daa.com.au>
15623 * sheets/Circuit.sheet:
15624 * sheets/Flowchart.sheet:
15625 * sheets/Contact.sheet: fixed up sheets.
15627 * objects/custom/custom_object.c (custom_object_new): set the
15628 extra ObjectType fields.
15630 * lib/sheet.c: use extra ObjectType fields when creating sheet
15631 objects. Give a warning if <shape> tags are found in a sheet
15632 file. Now the custom sheet code does not know about custom
15633 shapes -- they look like any other object type.
15635 * lib/object.h (ObjectType): added extra members
15637 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
15639 * app/linewidth_area.c:
15640 Added code to set arbitrary line width.
15641 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
15643 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
15645 * app/linewidth_area.c:
15647 Add support for font-sucking.
15648 Implementation borrowed from gnome-canvas.
15650 * app/render_libart.[ch]:
15651 Implement text rendering.
15653 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
15655 * app/properties.c (create_dialog):
15656 ref and sink no_properties_dialog.
15658 2000-02-07 James Henstridge <james@daa.com.au>
15660 * app/group.c (group_describe_props): new function. Return the
15661 intersection of the properties of the contained objects that
15662 implement the describe_props interface.
15663 (group_get_props): implement by iterating through contained objects
15664 and calling their get_props method until all properties have been
15665 set. Maybe this should go through all objects all the time??
15666 (group_set_props): implement by calling set_props method on all
15668 (group_ops): use standard props dialog creation routines.
15670 * lib/properties.c (prop_desc_lists_intersection): fix implementation
15671 of intersection -- I was using i++ instead of i-- in a for loop :(
15673 * objects/custom/custom.c (custom_register_objects): fix usage
15674 of dia_get_data_directory again.
15676 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
15677 actually read the sheets.
15679 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
15681 Win32 port by Hans Breuer <Hans@Breuer.org>
15684 Remove DATADIR and LIBDIR defines.
15687 Add dia_dirs.c and dia_dirs.h
15688 Added DATADIR and LIBDIR defines.
15690 * lib/dia_dirs.[ch]:
15691 New files for handling special directories.
15696 * objects/custom/custom.c:
15697 Fix warnings. Use directory functions.
15700 Add prototype for diagram_redraw_all.
15702 * app/diaunitspinner.c:
15705 * app/preferences.c:
15709 Win32 doesn't have mkstemp and fchmod.
15711 * app/paginate_psprint.c:
15712 Win32 calls popen _popen and pclose _pclose.
15715 Win32 calls finite _finite.
15718 Win32 needs to dllexport the color vars.
15720 * objects/GRAFCET/step.c:
15721 * objects/chronogram/chronoref.c:
15722 snprintf -> g_snprintf
15724 2000-02-05 James Henstridge <james@daa.com.au>
15726 * lib/properties.c: more fixes so that it doesn't crash when using
15727 properties. The undo/redo stuff also works!!
15729 * objects/flowchart/box.c (box_{describe, get, set}_props): test
15730 object where I have implemented the new properties interface
15731 complete with automatic properties dialog generation.
15733 * lib/properties.c (object_apply_props): fixed stupid error when
15734 creating the old_props array. Also, it no longer frees the props
15735 array -- you will have to do that yourself.
15737 2000-02-04 James Henstridge <james@daa.com.au>
15739 * app/properties.c (properties_apply): pass object_part to
15742 * lib/object.h (ApplyPropertiesFunc): added widget argument.
15744 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
15745 created this way as well.
15747 * objects/*/*.c: ref and sink the properties dialog window for each
15748 widget. It can't rely on ref count being incremented by
15749 properties_show anymore.
15751 * app/properties.c (properties_show): don't ref the widget before
15752 removing it, or its ref count will increase each time you open the
15753 properties dialog. Don't unparent the widget, as container_remove
15756 * lib/object.h: fixed up prototypes for new object methods.
15758 * lib/properties.[ch]: added functions for automatically creating
15759 a properties dialog from the output of describe_props, get_props and
15761 (object_apply_props): apply properties and return an ObjectChange
15762 structure that can be used for undo.
15764 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
15766 * objects/GRAFCET/transition.c: minor leak plugged.
15768 * sheets/GRAFCET.sheet:
15769 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
15770 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
15772 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
15773 new ones (for condition.c).
15774 * objects/GRAFCET/action.c: added connection points for the conditions.
15775 * samples/grafcet.dia: updated the sample to improve conformance to
15776 IEC 848 and take advantage of dia's new features.
15778 * lib/geometry.h: (point_get_normed) fixed a typo.
15780 2000-02-02 James Henstridge <james@daa.com.au>
15782 * lib/object.h: added object functions describe_props, get_props and
15783 set_props. Do type definitions so that object.h doesn't need to
15784 include properties.h, since properties.h includes object.h.
15786 * lib/properties.[ch]: more hacking.
15788 * po/de.po: updated po file.
15790 2000-01-30 James Henstridge <james@daa.com.au>
15792 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
15793 check to see if the C compiler accepts the flag beforehand.
15795 * lib/properties.[ch]: start of properties code.
15797 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
15799 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
15801 * sheets/GRAFCET.sheet:
15802 * sheets/GRAFCET/etapemc.xpm: (NEW)
15803 * sheets/GRAFCET/etapesp.xpm: (NEW)
15804 * objects/GRAFCET/step.c: Added the macro and
15805 sub-program call step types.
15807 * objects/GRAFCET/receptivity.[ch]: renamed to
15808 objects/GRAFCET/boolequation.[ch].
15809 * objects/GRAFCET/transition.c: changed (Receptivity *) to
15812 * lib/connpoint_line.[ch]:
15813 * objects/chronogram/chronoline.c:
15814 * objects/chronogram/chronoref.c:
15815 * objects/GRAFCET/vergent.c:
15816 * objects/standard/line.c:
15817 * objects/SADT/box.c: Minor CPL interface changes, factored out the
15818 point count adjustment code into the CPL object.
15820 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
15822 * app/render_libart.c:
15823 Added support for images and bezier curves.
15824 Only text/fonts missing now.
15826 * app/render_gdk.c:
15827 Removed old erronous comment.
15829 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
15831 * objects/chronogram/chronoline_event.c: removed references to
15832 lround(). Please don't insist, I'm already red of shame.
15834 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
15836 * app/render_libart.[ch]:
15838 Non-finished libart renderer.
15841 Added HAVE_LIBART flag
15847 Call gdk_rbg_init().
15849 * app/connectionpoint_ops.c:
15850 * app/disp_callbacks.c:
15852 * app/handle_ops.c:
15854 * app/modify_tool.c:
15855 Change ddisp->renderer type from RendererGdk * to Renderer *
15856 Draw zoom and select rects in ddisp->canvas->window instead
15857 of ddisp->renderer->renderer->pixmap.
15859 * app/display.[ch]:
15860 Add aa_renderer to DDisplay, and support for it.
15861 New function ddisplay_set_renderer() for changing renderer.
15862 Add ddisplay_transform_coords_double() function, used by aa renderer.
15863 Change ddisp->renderer type from RendererGdk * to Renderer *
15866 Add antialias to menu.
15868 * app/commands.[ch]:
15869 add view_aa_callback function
15870 Change ddisp->renderer type from RendererGdk * to Renderer *
15872 * lib/geometry.[ch]:
15873 Added IntRectangle and int_rectangle_union.
15875 2000-01-28 James Henstridge <james@daa.com.au>
15877 * app/commands.h: removed prototypes.
15879 * app/commands.c: removed the functions that have been moved to
15882 * app/filedlg.h: added new prototypes.
15884 * app/filedlg.c (file_open_callback): move open dialog to this
15885 file. This implementation should remember the current directory
15886 between file loads.
15887 (file_save_as_callback): moved this dialog as well.
15888 (file_save_callback): moved this function here.
15890 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
15891 align page boundaries to the origin.
15893 * app/diagram.c (diagram_update_extents): redraw the diagram if the
15894 scaling factor changes while updating the extents. This is so the
15895 page breaks get redrawn correctly.
15897 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
15900 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
15901 For normal mode, use (0,0) as the origin. For `fit to' mode, use
15902 the corner of the bounding box.
15904 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
15905 into page setup dialog.
15906 (pagesetup_apply): apply new `fit to' attributes to the diagram.
15908 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
15909 (diagram_data_save): save `fit to' data.
15911 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
15912 (data_update_extents): when in `fit to' mode, update scale factor
15913 when we update the extents.
15915 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
15918 * .../.cvsignore: added some cvsignore files to quieten cvs.
15920 * app/pagesetup.c (pagesetup_changed): added code to change the
15921 scaling/fit to values as you change the options in the page setup
15922 dialog. I haven't added code so that the fit to options are saved
15925 * app/diapagelayout.[ch]: changed the scaling portion of the widget
15926 to make it easier to set a `fit to' style scaling factor.
15928 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
15929 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
15930 but connpoint_line-based, so that there's a connection point at the
15931 middle of each segment. Currently only the SADT arrow uses this.
15933 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
15935 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
15936 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
15937 saving and editing of properties (and default properties).
15938 See the new objects (GRAFCET, SADT, chonograms) for examples.
15939 For already too hairy stuff, see objects/chronogram/chronoline.c.
15941 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
15942 evenly spaced connection points, which the user can add or remove at
15943 will. An object can own several connection point lines. See the SADT
15944 Box, or the GRAFCET vergents for examples.
15946 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
15947 quiet about unused stuff.
15949 * objects/GRAFCET (NEW):
15950 * samples/grafcet.dia (NEW):
15951 Added support for GRAFCET charts.
15953 * objects/chronogram (NEW):
15954 * samples/chronograms.dia (NEW):
15955 Added support for chronograms (feature requested by Ronald L. Chichest;
15956 I found I'd use it often, too).
15958 * objects/standard/line.c: Replace the middle connectionpoint by
15959 a whole connection point line, which defaults to one point (hint,
15960 hint). New Line object menu to take advantage of this.
15961 "Bothwards" compatibility is preserved (although you may loose
15962 connections if you load a newer file in a older dia).
15964 * app/lineprops_area.c:
15966 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
15967 (feature requested by Benjamin Kahn).
15968 Merged in Steffen Macke's slashed arrow head type.
15970 * app/Makefile.am (app/run_dia.sh actually):
15971 Added $DEBUGGER in front of dia's invocation, so that
15972 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
15973 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
15974 "EFENCE=-lefence" to link with Electric Fence.
15976 * configure.in: Made gcc do more aggressive optimisations on i386, and
15979 2000-01-24 James Henstridge <james@daa.com.au>
15981 * lib/geometry.[ch]: added inline versions of functions. Used
15982 glib's G_INLINE_FUNC stuff, so it should still work on systems
15983 without inline funcs.
15985 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
15986 it outputs the correct element id for the ellipse objects.
15988 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
15990 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
15991 object_add_handle_at. Message typo fixed.
15993 * lib/sheet.c (load_register_sheet):
15994 potential bug fixed (warning hunt).
15996 * objects/custom/custom.c (custom_object_load): disabled an assertion
15997 which made dia abort upon failure to load a shape file. Fixed a
16000 * objects/custom/shape_info.c (load_shape_info): Made the custom
16001 shape load code ignore XML comments between <?xml ...?> and the
16002 root object (mostly useful to put the emacs magic comments).
16004 * app/load_save.c: Made dia do backup copies of files when saving,
16005 and complain in case of failure.
16007 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16009 * AUTHORS: fixed my address (ISP thought it was a great idea to change
16014 * shapes/Contact/*:
16015 * sheets/Contact.sheet:
16016 * sheets/Makefile.am:
16017 Added support for Contact and LADDER charts.
16019 * dia.desktop: Added a French translation.
16021 2000-01-23 James Henstridge <james@daa.com.au>
16023 * app/commands.c (help_about_callback): don't die if can't load
16026 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
16027 out NaN's when performing bezier curve subdivision.
16029 * objects/custom/custom_object.c: initialise memory of Custom structs
16032 * app/render_svg.c (draw_image): added image support to the XML
16033 output filter. The image is just referenced, rather than being
16034 included inline, so if you copy the SVG file somewhere else, you
16035 may need to move the images or fix up the links.
16037 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
16038 so the text is not just displayed in black all the time.
16040 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
16042 * configure.in: fixed libpopt test so we wont try to build with
16045 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
16047 * configure.in: Added "uk" to ALL_LINGUAS.
16049 1999-12-24 James Henstridge <james@daa.com.au>
16051 * po/ru.po: updated russian translation from Valek Filippov.
16053 * app/render_svg.c (new_svg_renderer): make output use 19991203
16054 version of SVG DTD. Use viewBox to set the extents of the view.
16056 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
16057 ftp.gnome.org as the download.
16059 * TODO (TODO): weeded out completed todo items and added a few extra.
16061 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
16063 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
16064 be good to get rid of the object/shape distinction and separate
16065 the custom shape code out from the main application.
16067 * objects/custom/README, diagram.dtd: moved to new doc directory.
16068 Renamed the custom shapes README to custom-shapes. Also updated
16069 custom shape docs a bit and removed the section on sheet files, as
16070 that has changed a bit.
16072 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
16073 of the image data is larger than the maximum cell array. I should
16074 add code to break scan lines down further in this case, but for now
16075 an error message is better than an infinite loop.
16077 * app/filedlg.c (file_export_ok_callback): show a dialog if we
16078 couldn't determine the export filter to use.
16080 * app/commands.c (help_about_callback): fixed up about box logo
16081 expose bug. Now just use a GtkPixmap widget rather than a
16082 GtkDrawingArea and calling gdk_imlib_paste_image.
16084 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
16085 because automake does not always get things right.
16087 * configure.in: updated version number to 0.83.
16089 * app/preferences.c (prefs_save):
16090 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
16091 for fopen. Text is the default file mode anyway.
16093 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
16094 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
16095 * app/load_save.c (write_objects, write_connections):
16096 * app/filedlg.c (file_export_ok_callback):
16097 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
16098 * lib/dia_xml.c (data_add_point, data_add_rectangle):
16099 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
16100 snprintf to calls to g_snprintf.
16102 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
16103 as the picture name.
16105 1999-12-23 James Henstridge <james@daa.com.au>
16107 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
16108 negative numbers. This fixes the upside down text problem I was
16110 (draw_image): implemented the image code. It will try to split the
16111 image data up into bands if it is too big to fit into a single
16112 cgm cell array element. It will have problems if you try to insert
16113 an image wider than about 10,000 pixels though.
16115 * Makefile.am: use gnomedatadir for the files that need to be
16116 installed in gnome's datadir. This is mainly to help people doing
16117 packages for weird setups.
16119 1999-12-22 James Henstridge <james@daa.com.au>
16121 * plug-ins/cgm/cgm.c: added support for text. Now only images and
16122 beziers are left to do. The text seems to be the wrong way up
16123 still. This is probably a problem with character orientation
16124 element, but I have used what the settings given in the standard.
16125 Other than this, the CGMs dia produces are readable (and displayable)
16126 by ralcgm and corel draw.
16127 (draw_string): subtract from the X coord rather than the Y coord for
16128 center and right aligned text.
16130 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
16131 the size of a real number, and changed name of write_double to
16132 write_real. Consider changing to fixed real encoding. Also, now
16133 all element headers are correct. Once the real number encoding is
16134 fixed, only text, beziers and images are left to do.
16136 1999-12-21 James Henstridge <james@daa.com.au>
16138 * Makefile.am (SUBDIRS): recurse into plug-ins.
16140 * configure.in: add plug-ins directory makefiles to list.
16142 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
16143 not done yet. Also, the output files are not quite correct.
16145 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16146 font. It doesn't work if you do.
16148 1999-12-20 James Henstridge <james@daa.com.au>
16150 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16151 export the files. Instead, use filter_guess_export_filter to
16152 guess the correct format to save in and use the appropriate filter.
16153 It defaults to postscript for compatibility.
16155 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16158 * app/commands.[ch]: removed export to eps functions.
16160 * app/menus.c: removed export to eps menu items.
16162 * app/app_procs.c: register new export filters.
16164 * app/load_save.[ch]: define dia native export filter.
16166 * app/render_eps.[ch]: define eps export filter.
16168 * lib/filter.h: added diafilename argument to the DiaExportFunc
16169 prototype. This is useful for putting the source of the diagram
16170 into the output file for instance.
16172 * app/app_procs.c (app_init): register the SVG export filter. Have
16173 to get EPS code converted to this API, and maybe also allow saving in
16174 DIA's native format from the export dialog. In fact, it is now
16175 possible to load an export filter from a shared library and it will
16176 integrate into the interface correctly.
16178 * app/menus.c: removed references to the SVG renderer.
16180 * app/commands.[ch]: removed svg stuff.
16182 * app/diagram.[ch]: removed diagram_export_to_svg function.
16184 * app/render_svg.[ch]: added a DiaExportFilter structure for this
16187 * app/filedlg.[ch]: code for the new export diagram dialog. Will
16188 probably move the open/save dialogs to this file as well.
16190 1999-12-19 James Henstridge <james@daa.com.au>
16192 * lib/filter.[ch]: start of interface for generalised handling of
16193 filters. I have only done code for export filters so far. I still
16194 need to do the gui for this, and convert the current SVG and EPS
16195 filters to the new API.
16197 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
16198 weren't setting the last handle correctly. It was actually assigning
16199 to the wrong position in the handles array, so the last handle was
16200 left as NULL, which caused the segfault.
16202 * objects/standard/image.c (image_copy): modified routine so that
16203 it just adds a reference to the DiaImage structure in the new image
16204 object. This seems to have cleared up the problems with copying
16207 * dia.spec: spec file additions from John Gotts.
16209 1999-12-12 James Henstridge <james@daa.com.au>
16211 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
16212 has not been released yet though.
16214 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16217 The following based on a patch from Lars Clausen:
16219 * objects/standard/bezier.c (bezierline_move_handle): when performing
16220 the initial drag of the bezierline, move the control points to keep
16223 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16224 make the new control points a bit closer to the major point.
16226 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16227 as the reason for the move.
16228 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16231 * lib/handle.h: new handle move reasons.
16233 1999-12-09 James Henstridge <james@daa.com.au>
16235 * dia.spec: include the new files in RPMs.
16237 * Makefile.am: install these new files.
16239 * dia.keys.in: file describing actions and icon for dia diagrams for
16240 use in the gnome file manager.
16242 * dia.mime: a file defining the application/x-dia-diagram mime type.
16244 * dia-diagram.png: an icon for dia diagrams.
16246 1999-12-08 James Henstridge <james@daa.com.au>
16248 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16250 * plug-ins/python/pydia-display.[ch]: wrapper for display.
16252 * objects/standard/ellipse.c: applied Lars's patch to optionally not
16253 draw the background of the ellipse.
16255 * app/load_save.c (read_connections): do some sanity checking on the
16256 handle and connection point numbers before performing the object
16259 * lib/bezier_conn.c (bezierconn_load): give the correct number of
16260 handles when loading a BezierConn.
16262 1999-12-07 Kjartan Maraas <kmaraas@online.no>
16264 * sheets/*.sheet: Finished Norwegian translations.
16266 1999-12-07 James Henstridge <james@daa.com.au>
16268 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16269 (PyDia_GetObjectType): find object type function.
16271 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16272 method for diagrams.
16274 * plug-ins/python/pydia-object.c: added methods for DiaObject and
16277 * AUTHORS: added Lars and Cyrille to the authors file.
16279 * objects/standard/bezier.c (bezierline_add_segment_callback): place
16280 new point correctly.
16282 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16284 * lib/bezier_conn.c: applied Lars's patch for placement of the new
16285 point when adding a segment to a BezierConn.
16287 1999-12-06 James Henstridge <james@daa.com.au>
16289 * plug-ins/python/test.py: test script for the python plug-in.
16291 * plug-ins/python/python.c: this file contains the plug-in startup
16292 code for the python plugin. Right now, it just initialises the
16293 dia module and executes a script.
16295 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
16297 * objects/standard/bezier.c (bezierline_draw): draw control lines for
16298 bezier curve if we are using an interactive renderer (ie. only if
16299 displaying to the screen).
16301 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
16302 to draw control lines on to a bezier curve. Based on implementation
16305 * objects/standard/bezier.c (bezierline_delete_segment_callback):
16306 calculate segment number using closest_segment rather than
16307 closest_handle. Sometimes the closest handle is part of a different
16309 (bezierline_draw): use correct size for start arrow.
16311 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
16312 * lib/geometry.c (distance_line_point): added notes to documentation
16314 * app/object_ops.c (object_list_align_v):
16315 (object_list_align_h): fix of by one error when calculating free space
16316 for equal distance alignment.
16317 * app/menus.c (objects_align_h, objects_align_v): include align
16318 adjacent menu items in the gnome version of the menus.
16319 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
16320 align adjacent menu items correctly.
16323 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
16326 * objects/standard/bezier.c: converted bezierline to use BezierConn.
16327 Still a few bugs. It crashes on deleting line segments.
16329 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
16331 1999-12-05 James Henstridge <james@daa.com.au>
16333 * lib/bezier_conn.[ch]: start of BezierConn object
16335 * app/interface.c: add bezierline to toolbox.
16337 * objects/standard/standard.c: initialise bezierline.
16339 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
16340 made a few modifications to get it working nicely. It still needs
16341 a bit of work though. Maybe create a BezierConn object in lib.
16343 1999-12-02 James Henstridge <james@daa.com.au>
16345 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
16347 * plug-ins/python/Makefile.am: tried building everything. It is
16348 building as a library at the moment. I will have to convert it
16349 to a libtool library and add some initialisation code.
16351 * plug-ins/python/diamodule.c: start of the dia module, using the
16352 other object wrappers. Not complete.
16354 1999-12-01 James Henstridge <james@daa.com.au>
16356 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
16357 the handles and connections attributes.
16359 * plug-ins/python/pydia-layer.c: added functions that use
16362 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
16364 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
16366 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
16367 I am currently wrapping the basic elements in the diagram in python
16368 objects -- nothing to see or play with yet.
16370 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
16374 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
16376 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
16380 Added russian translation from Valek Filippov <frob@df.ru>
16382 1999-11-24 James Henstridge <james@daa.com.au>
16385 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
16386 discussed with Alex. Also added extra makefiles so that make install
16389 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
16391 * app/preferences.[ch]:
16393 Added snap to grid preference.
16394 Patch from Michael Leslie <mles@springboardwireless.com>
16396 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16402 * objects/custom/shape_info.c:
16403 All strings returned by libxml must be freed with free, not
16404 g_free, or there will be problems if you use memory debugging
16407 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16409 * app/create_object.[ch]:
16412 * app/commands.[ch]:
16414 * app/interface.[ch]:
16415 Reverted the tool menu patch. It has some 'issues'.
16416 I liked it though, so it'll probably return.
16418 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16420 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
16421 <bruce@cybersight.com> for some purify runs and analysis.
16422 Also a great thank you to Owen Taylor for creating MemProf, a
16423 free memory leak detector that was used to find and verify a
16424 lot of these fixes.
16427 * app/paginate_psprint.c:
16428 * app/render_eps.[ch]:
16429 * app/render_svg.[ch]:
16433 Don't add a reference to ddisp->shell. Why was this done in
16440 Free all strings returned from xmlGetProp
16442 * app/modify_tool.c:
16445 * objects/custom/custom.c:
16446 Use closedir() after opendir().
16448 * objects/custom/shape_info.c:
16449 User g_free() instead of "if (tmp) free(tmp)".
16452 Add newline at end of file.
16455 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
16457 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
16458 Adds tool menu and keyboard shortcuts.
16460 * app/create_object.[ch]:
16461 Use tool_set() instead of tool_reset().
16462 create_create_object_tool() takes extra type argument
16468 Moved tool_data here, export it.
16469 Add separate tool type for all create objects tools.
16470 new functions tool_set().
16473 New callback tool_set_callback.
16476 Moved some pixmaps to interface.c.
16479 Remove tool_data array (moved to tool.c).
16480 Use the tool_data from tool.c.
16481 Remove modify_tool_button global var.
16483 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
16485 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
16488 Interprets command-line arguments as files to open even when
16489 HAVE_POPT is not defined.
16492 Shift-clicking when zooming zooms out, like the Gimp.
16495 Has hotkeys for zoom-100% and snap-to-grid.
16497 1999-11-17 James Henstridge <james@daa.com.au>
16499 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
16500 that it is not jumpy.
16502 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
16504 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
16505 scrolling by pressing the shift key when using the scroll tool.
16507 * sheets/Makefile.am: fixed makefile so that install actually works
16508 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
16510 (SHEETS): install Circuit.sheet
16512 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
16513 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16515 * sheets/Circuit.sheet:
16518 * sheets/Flowchart.sheet:
16519 * sheets/UML.sheet:
16520 * sheets/network.sheet:
16521 * sheets/sybase.sheet:
16524 * sheets/Circuit.sheet:
16525 added some missing French translations
16528 killed the temporary sheet namespace
16530 * objects/custom/custom.c:
16531 obsolete comment cleaned up
16533 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
16537 Added portugese translation from Pedro Morais
16538 <pmmm@rnl.ist.utl.pt>
16540 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
16542 Changed all sheets to be specified in xml.
16543 All sheet objects removed from the C code.
16544 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16549 Updated version to 0.81cvs.
16552 Update run_dia.sh with sheet-dir.
16555 Load all sheets on startup.
16556 Create sheet directory first time.
16557 Don't call custom_register_sheets().
16560 Add sheetdir define
16563 Remove custom_register_sheets().
16566 Add sheet loading code.
16568 * sheet/Circuit.sheet:
16571 * sheet/Flowchart.sheet:
16573 * sheet/network.sheet:
16574 * sheet/sybase.sheet:
16577 * sheet/ER/weakentity.xpm:
16578 * sheet/UML/aggregation.xpm
16579 * sheet/UML/umlclass_template.xpm
16580 Added sheet pixmaps.
16581 These are moved from their old places.
16583 * sheet/.cvsignore:
16587 Removed sheet objects and sheet registration.
16589 * objects/ER/Makefile.am:
16590 * objects/ER/pixmaps/weakentity.xpm:
16591 * objects/UML/Makefile.am:
16592 * objects/UML/pixmaps/aggregation.xpm:
16593 * objects/UML/pixmaps/umlclass_template.xpm:
16594 Removed alternative pixmaps. (Moved to sheet).
16596 * objects/custom/Makefile.am:
16597 * objects/custom/load_sheet.[ch]:
16598 Removed old sheet loading code.
16600 * objects/custom/custom.c:
16601 Load all shapes instead of sheets.
16602 Removed custom_register_sheets().
16604 * objects/custom/custom_object.c:
16607 * objects/custom/shape_info.[ch]:
16608 Added shape_info_getbyname().
16610 * objects/flowchart/Makefile.am:
16611 * objects/flowchart/collate.shape
16612 * objects/flowchart/delay.shape
16613 * objects/flowchart/display.shape
16614 * objects/flowchart/document.shape
16615 * objects/flowchart/extract.shape
16616 * objects/flowchart/flowchart.c
16617 * objects/flowchart/intstorage.shape
16618 * objects/flowchart/magdisk.shape
16619 * objects/flowchart/magdrum.shape
16620 * objects/flowchart/magtape.shape
16621 * objects/flowchart/manualinput.shape
16622 * objects/flowchart/manualop.shape
16623 * objects/flowchart/merge.shape
16624 * objects/flowchart/offlinestore.shape
16625 * objects/flowchart/offpageconn.shape
16626 * objects/flowchart/or.shape
16627 * objects/flowchart/predefdproc.shape
16628 * objects/flowchart/preparation.shape
16629 * objects/flowchart/punchedcard.shape
16630 * objects/flowchart/punchedtape.shape
16631 * objects/flowchart/sort.shape
16632 * objects/flowchart/sumjunction.shape
16633 * objects/flowchart/terminal.shape
16634 * objects/flowchart/transaction.shape
16635 * objects/flowchart/transmittape.shape
16636 * objects/flowchart/pixmaps/collate.xpm
16637 * objects/flowchart/pixmaps/delay.xpm
16638 * objects/flowchart/pixmaps/display.xpm
16639 * objects/flowchart/pixmaps/document.xpm
16640 * objects/flowchart/pixmaps/extract.xpm
16641 * objects/flowchart/pixmaps/intstorage.xpm
16642 * objects/flowchart/pixmaps/magdisk.xpm
16643 * objects/flowchart/pixmaps/magdrum.xpm
16644 * objects/flowchart/pixmaps/magtape.xpm
16645 * objects/flowchart/pixmaps/manualinput.xpm
16646 * objects/flowchart/pixmaps/manualop.xpm
16647 * objects/flowchart/pixmaps/merge.xpm
16648 * objects/flowchart/pixmaps/offlinestore.xpm
16649 * objects/flowchart/pixmaps/offpageconn.xpm
16650 * objects/flowchart/pixmaps/or.xpm
16651 * objects/flowchart/pixmaps/predefdproc.xpm
16652 * objects/flowchart/pixmaps/preparation.xpm
16653 * objects/flowchart/pixmaps/punchedcard.xpm
16654 * objects/flowchart/pixmaps/punchedtape.xpm
16655 * objects/flowchart/pixmaps/sort.xpm
16656 * objects/flowchart/pixmaps/sumjunction.xpm
16657 * objects/flowchart/pixmaps/terminal.xpm
16658 * objects/flowchart/pixmaps/transaction.xpm
16659 * objects/flowchart/pixmaps/transmittape.xpm
16660 Moved shapes and their pixmaps to shapes/flowchart
16662 * shapes/Circuit/Makefile.am:
16663 * shapes/Circuit/index.sheet:
16664 Removed index.sheet.
16666 * shapes/Makefile.am:
16667 * shapes/flowchart/Makefile.am:
16668 * shapes/flowchart/*.shape:
16669 * shapes/flowchart/*.xpm:
16670 Added flowchart shapes. (Moved from objects/flowchart)
16673 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
16675 * app/app_procs.c: Fixed popt stuff.
16677 1999-11-01 James Henstridge <james@daa.com.au>
16679 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
16682 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
16686 Update version to 0.81.
16689 Update with news for 0.81.
16691 * shapes/Circuit/*:
16692 * shapes/Circuit_eu/*:
16693 Moved european circuit objects to Circuit sheet.
16695 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
16697 * lib/diagramdata.[ch]:
16698 Added layer_set_object_list() function.
16701 Added support for undo of reordered objects.
16702 Fix the undo of delete to keep the right order on undo.
16705 changed loop to object_add_updates_list() calls.
16706 Added undo support to bring to front/back.
16708 * app/disp_callbacks.c:
16709 * app/paginate_psprint.c:
16712 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
16714 This plugs some leaks. Thanks to
16715 Bruce Mitchener <bruce@cybersight.com> for running
16716 Dia through purify for me.
16719 Free displays and diagrams on exit.
16721 * app/modify_tool.c:
16722 Free gc when freeing tool.
16724 * lib/diagramdata.c:
16728 Free update and display lists when destroying display.
16730 * lib/diagramdata.c:
16731 Don't leak layer name.
16733 * objects/custom/load_sheet.c:
16734 * objects/custom/shape_info.c:
16735 Free loaded xml documents.
16737 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
16740 * app/object_ops.[ch]:
16741 Add undo handling to alignment ops.
16742 Based partially on patch by Dan Cohn <dan@internap.com>.
16744 * objects/standard/image.c (image_move_handle):
16745 Don't divide by zero for small images.
16746 Patch by Dan Cohn <dan@internap.com>.
16748 * objects/UML/class.c (umlclass_destroy):
16749 * objects/custom/custom_object.c (custom_destroy):
16750 Don't free connectionpoints before calling element_destroy
16751 which unconnects them.
16753 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
16755 * objects/custom/custom_object.c:
16756 Load and save padding too. Fixes strange load crashes.
16758 * app/group.c (group_destroy):
16759 Don't unconnect already freed connectionpoints when
16760 destroying group. Probably fixes bug reported by
16761 Elliot Lee <sopwith@redhat.com>.
16763 * app/render_gdk.c:
16764 Don't crash on zero-size (broken) bezier curves.
16765 Different sort of fix. This should work on closed bezier curves
16768 * objects/standard/textobj.c:
16769 Activate default properties dialog for Text objects.
16771 * app/render_eps.c:
16773 * app/preferences.c:
16774 * app/render_svg.c:
16775 fopen files in binary or text mode.
16777 1999-10-26 Alexander Larsson <alex@cendio.se>
16779 * app/render_gdk.c (bezier_add_lines):
16780 Don't crash on zero-size (broken) bezier curves.
16781 Fixes a crashing bug.
16783 1999-10-25 James Henstridge <james@daa.com.au>
16785 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
16786 before it is installed.
16788 * objects/flowchart/flowchart.c: use relative paths to find shapes.
16790 * objects/custom/custom.c (custom_object_load): take file names
16791 relative to $(pkgdatadir)/shape-internal, and check an environment
16792 variable for an alternative directory.
16794 * app/...: added copyright messages to the top of my new code.
16796 * app/paginate_psprint.c: some general clean ups. Also, give an error
16797 dialog if we can't open the command or output file for writing.
16799 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
16800 function so it would set orientation to landscape correctly.
16802 * app/paginate_psprint.c: use the paper settings that come with
16803 the diagram. Also implemented landscape printing.
16805 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
16808 * app/commands.[ch] (file_pagesetup_callback): added callback for
16809 the page setup dialog.
16811 * app/menus.c: added page setup menu item.
16813 * app/pagesetup.[ch]: implementation of the page setup dialog.
16815 * app/diapagelayout.[ch]: added accessors for the scaling factor.
16817 * app/load_save.c (diagram_load): load paper information from save
16819 (diagram_save): save the paper info.
16821 * lib/diagramdata.c (new_diagram_data): initialise paper info section
16822 of DiagramData structure.
16823 (diagram_data_destroy): free the paper name.
16825 * lib/diagramdata.h: added a paper member to the DiagramData structure
16826 that holds the page layout info for a diagram.
16828 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
16830 * objects/flowchart/box.c:
16831 * objects/flowchart/ellipse.c:
16832 * objects/flowchart/diamond.c:
16833 * objects/flowchart/parallelogram.c:
16834 Load and save padding too. Fixes strange load crashes.
16836 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
16838 * app/app_procs.c (name_is_lib):
16839 .dll, .sl and .so.0.0.0 are also libraries.
16841 1999-10-20 James Henstridge <james@daa.com.au>
16843 * configure.in: added extra makefile.
16845 * shapes/Circuit_eu/*: a new set of european circuit shapes from
16846 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
16847 (added fuses to makefile, fill the area of some of the components).
16849 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
16853 Add GDK_IMLIB_CFLAGS to includes.
16854 Changed --export-dynamic to -export-dynamic
16857 * objects/UML/message.c:
16858 Removed c++ comment.
16860 * lib/render_store.[ch]:
16861 Don't use empty structure. That is not Ansi C.
16863 1999-10-19 James Henstridge <james@daa.com.au>
16865 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
16866 the margin entries, as they allow interpretation of units.
16867 (paper_size_change): display the current page dimensions.
16869 * app/diaunitspinner.[ch]: a widget derived from the standard
16870 GtkSpinButton that tries to take units into account. So if you enter
16871 "1in" into the entry, it will convert it to 2.54cm.
16873 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
16876 Removed include of dlfcn.h
16878 1999-10-18 James Henstridge <james@daa.com.au>
16880 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
16881 bound on margin widths. It is set to the paper width/height.
16883 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
16884 routine for the diamond. This bug was found and fixed by Daniel Wang
16885 <danwang@CS.Princeton.EDU>
16887 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
16889 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
16890 remove warning (OS/2 version).
16892 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
16895 Put a pointer to objects/custom/README.
16897 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
16900 Updated version to 0.80
16903 Updated version to 0.80cvs
16905 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
16907 * Released Dia 0.80
16908 Tag called DIA_0_80
16910 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
16914 * objects/UML/Makefile.am
16915 * objects/ER/Makefile.am
16916 * objects/network/Makefile.am
16917 * objects/standard/Makefile.am
16918 * objects/FS/Makefile.am
16919 * objects/sybase/Makefile.am
16920 * objects/flowchart/Makefile.am
16921 * objects/custom/Makefile.am
16922 Added -I$(top_srcdir)/intl which is needed for
16923 --with-included-gettext.
16929 Updated swedish translation.
16931 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16934 Updated version number to 0.80.
16940 Updated. Moved bugs to KNOWN_BUGS.
16943 Updated with 0.80 release notes.
16945 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16948 For backwards compatibility, make sure handle 0 and 1 are the
16949 first and last handle. Fixes compatibility with 0.41, breaks
16950 compatibility with cvs version.
16951 Fixed bug in undo/redo of adding deleting endpoint segments
16952 when the endpoint was connected.
16953 Start OrthConn objects with three segments.
16955 1999-10-16 James Henstridge <james@daa.com.au>
16957 * objects/custom/custom_object.c (custom_update_data): changed
16958 resizing behaviour a bit so that shapes don't grow huge when you try
16959 to resize them to smaller than the size required by the text box.
16960 Also, now shapes will not grow with fixed aspect ratio when you enter
16961 text into them unless the shape has the fixed aspect ratio flag set.
16963 1999-10-15 James Henstridge <james@daa.com.au>
16965 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16967 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16969 * objects/flowchart/magdrum.shape:
16970 * objects/flowchart/offlinestore.shape:
16971 * objects/flowchart/punchedtape.shape:
16972 * objects/flowchart/transmittape.shape:
16973 * objects/flowchart/punchedcard.shape: new shapes.
16975 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16977 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16979 * objects/flowchart/collate.shape:
16980 * objects/flowchart/delay.shape:
16981 * objects/flowchart/extract.shape:
16982 * objects/flowchart/intstorage.shape:
16983 * objects/flowchart/magdisk.shape:
16984 * objects/flowchart/magtape.shape:
16985 * objects/flowchart/merge.shape:
16986 * objects/flowchart/or.shape:
16987 * objects/flowchart/sort.shape:
16988 * objects/flowchart/sumjunction.shape: new shapes.
16990 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
16994 Entering an erronous command as print command
16997 * app/paginate_psprint.c:
16998 Save all print dialog values for next time.
17001 Remove custom lib from DIA_LIB_PATH.
17003 1999-10-14 James Henstridge <james@daa.com.au>
17005 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17007 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17009 * objects/flowchart/offpageconn.shape:
17010 * objects/flowchart/manualop.shape:
17011 * objects/flowchart/preparation.shape:
17012 * objects/flowchart/manualinput.shape:
17013 * objects/flowchart/predefdproc.shape:
17014 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
17016 1999-10-13 James Henstridge <james@daa.com.au>
17018 * app/diapagelayout.[ch]: added accessors to paper information. The
17019 widget should be just about complete now.
17021 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
17022 It actually does something now.
17024 1999-10-12 James Henstridge <james@daa.com.au>
17026 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
17027 for the page layout widget.
17029 * app/diapagelayout.[ch]: start of page layout widget. Not actually
17030 built yet as it is not complete.
17032 * objects/flowchart/flowchart.c: added new shapes to sheet.
17034 * objects/flowchart/display.shape:
17035 * objects/flowchart/transaction.shape: new shapes.
17037 * AUTHORS: added my name to the spec file.
17039 * dia.spec: include the dia desktop entry to the spec file.
17041 * Makefile.am: install the dia.desktop file.
17043 * dia.desktop: added a gnome desktop entry so you can start dia
17044 from the gnome panel menu.
17046 1999-10-11 James Henstridge <james@daa.com.au>
17048 * objects/custom/custom_object.c:
17049 * objects/custom/shape_info.c: warning fixes.
17051 * objects/flowchart/document.shape: a shape file for the `document'
17054 * lib/custom.h: new header with the custom shape prototypes.
17056 * app/app_procs.c: register custom objects as well.
17057 (register_objects_in): close shared libraries if they don't load
17058 correctly, and call g_module_make_resident on libraries that load
17061 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
17063 * objects/custom/custom.c: removed get_version, added custom_ prefix
17064 to register_objects and register_sheets.
17066 * objects/custom/Makefile.am: converted to a normal library.
17068 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
17070 * app/lineprops_area.c:
17071 * app/render_svg.c:
17073 * objects/custom/shape_info.c:
17074 * objects/flowchart/box.c:
17075 * objects/flowchart/diamond.c:
17076 * objects/flowchart/ellipse.c:
17077 * objects/flowchart/parallelogram.c:
17078 * objects/network/flash.c:
17079 * objects/network/scead-plug.c:
17080 * objects/sybase/client.c:
17081 Removed -Wall warnings.
17083 * objects/network/bus.c:
17084 Removed unused functions.
17086 * objects/FS/flow-ortho.c:
17087 * objects/FS/flow-poly.c:
17088 * objects/FS/flow.c:
17089 * objects/FS/function.c:
17091 Implemented "non-implemented" undo for FS objects.
17092 Now at least it won't crash.
17094 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
17096 * objects/network/bus.c:
17098 Handles are now added and removed using the object menu.
17099 Default to 6 handles instead of 10.
17100 Changed name from "Standard - Bus" to "Network - Bus". Kept old
17101 name for backwards compatibility.
17103 * objects/network/network.c:
17104 Changed name from "Standard - Bus" to "Network - Bus". Kept old
17105 name for backwards compatibility.
17107 * app/properties.[ch]:
17109 Update properties in properties dialog if the shown object
17110 is part of and ObjectChange (undo or redo).
17113 Remove old known bugs list.
17115 * objects/UML/class_dialog.c:
17116 Removed debug printf's.
17118 1999-10-10 James Henstridge <james@daa.com.au>
17120 * objects/custom/custom.c (custom_object_load): new function that
17121 provides a nice entry point to the custom shape code for when it
17122 gets used by other libraries.
17124 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
17125 speeds builds up a bit.
17127 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17128 (SUBDIRS): do not descend into pixmaps subdirs.
17130 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17131 This speeds up build process.
17133 * objects/custom/custom.c (sheets): made variable static.
17135 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17138 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17140 * objects/custom/custom.c: look in ~/.shapes instead of
17141 ~/.dia_shapes as the per-user shapes directory.
17143 * app/preferences.c (prefs_save): save config to ~/.diarc.
17144 (prefs_load): load configuration from ~/.diarc. If the file
17145 does not exist, fallback on the old ~/.diarc location.
17147 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17149 (register_all_objects): look for user specific objects in
17150 ~/.objects rather than ~/.dia_libs.
17152 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
17156 * objects/flowchart/box.c
17157 * objects/flowchart/ellipse.c
17158 * objects/flowchart/flowchart.c
17159 Use gmodule for dynamic linking. As gmodule is using
17160 RTLD_GLOBAL i had to change flowchart box and ellipse
17161 so the typenames doesn't conflict with the standard
17166 Use button box to make dialogs look better.
17168 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
17170 * objects/UML/class_dialog.c:
17171 * objects/UML/class.h:
17172 Implemented undo for "UML - Class" objects.
17173 Not 100% tested yet.
17175 * objects/UML/classicon.c:
17176 * objects/UML/constraint.c:
17177 * objects/UML/dependency.c:
17178 * objects/UML/generalization.c:
17179 * objects/UML/implements.c:
17180 * objects/UML/large_package.c:
17181 * objects/UML/lifeline.c:
17182 * objects/UML/message.c:
17183 * objects/UML/object.c:
17184 * objects/UML/realizes.c:
17185 * objects/UML/state.c:
17186 * objects/UML/usecase.c:
17189 * lib/connectionpoint.h:
17192 1999-10-09 James Henstridge <james@daa.com.au>
17194 * objects/custom/*.[ch]: added copyright notices to custom object
17197 * shapes/Circuit/hdiode.shape:
17198 * shapes/Circuit/hzener.shape:
17199 * shapes/Circuit/opamp.shape:
17200 * shapes/Circuit/vdiode.shape:
17201 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17202 shapes look nice after the custom shape code changes.
17204 * objects/custom/README: updated docs to cover changes to drawing
17207 * objects/custom/custom_object.c (custom_draw): honour the line
17208 properties when drawing the shape.
17210 * objects/custom/shape_info.[ch]: added support for setting line
17211 properties for individual drawing elements in a custom shape. You
17212 can set the dash style, dash length, cap style and join style.
17214 1999-10-07 James Henstridge <james@daa.com.au>
17216 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17217 for foreground and background.
17219 * objects/custom/custom_object.c (custom_draw): use the new style
17220 information when drawing the object.
17222 * objects/custom/shape_info.[ch]: store all shape style info in the
17223 GraphicStyle structure. This makes adding support for extra CSS
17224 attributes easier -- we don't have to keep adding extra arguments to
17225 a lot of functions.
17227 1999-10-05 James Henstridge <james@daa.com.au>
17229 * lib/intl.c (unalias_lang): merged in changes from the i18n code
17230 swiped from gnome-libs.
17232 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
17234 * objects/standard/image.c (get_directory):
17235 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17237 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17239 * lib/poly_conn.c (polyconn_destroy):
17240 Fix bug. Access of freed memory.
17241 Rememeber, you can't free the handles of an object
17242 before calling object_destroy(), as it unconnects the handles
17243 therefore referencing them.
17245 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17248 undo_clear() didn't set stack->depth to zero.
17249 This made other undo functions crash after this had been called
17253 Slightly modified by Chris Love <clove@exactis.com>
17255 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17257 * objects/UML/class.h:
17258 * objects/UML/class_dialog.c:
17259 Retrun NULL ObjectChange on class property change.
17260 This means no crashes, but "UML - Class" doesn't support undo yet.
17262 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17267 * objects/UML/classicon.c:
17268 * objects/UML/dependency.c:
17269 * objects/UML/generalization.c:
17270 * objects/UML/implements.c:
17271 * objects/UML/large_package.c:
17272 * objects/UML/lifeline.c:
17273 * objects/UML/message.c:
17274 * objects/UML/object.c:
17275 * objects/UML/realizes.c:
17276 * objects/UML/state.c:
17277 * objects/UML/usecase.c:
17278 Update to new undo (w. get/set_state).
17279 Add object menu to add/delete segments.
17281 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
17284 Add equal distance alignment.
17286 * app/object_ops.c:
17287 Add equal distance alignment.
17288 Fix bug in adjacent alignment.
17290 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
17292 * objects/UML/constraint.c:
17293 Update to new undo (w. get/set_state).
17295 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
17297 * app/paginate_psprint.c:
17298 Save (parts, more todo) of the info in the print dialog to the
17299 next time it's opened.
17300 Patch from Yo Ric Dude <ricdude@toad.net>
17302 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
17305 Updated version string to 0.41cvs.
17307 * objects/UML/assocition.c:
17308 Update to new undo (w. get/set_state).
17309 Add object menu to add/delete segments.
17312 Added function debug_break() and called it after all
17313 objects and sheets are loaded. Place a breakpoint here if you
17314 want to debug objects. All symbols should be loaded.
17316 1999-09-12 James Henstridge <james@daa.com.au>
17318 * app/menus.c (display_menu_items): added print menu item.
17319 (filemenu): always add print menu item -- even if gnome-print is
17322 * app/commands.h, app/commands.c (file_print_callback): the print
17323 menu item is now available for both gnome-print and non gnome-print
17326 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
17327 print with the non gnome-print driver.
17329 1999-09-11 James Henstridge <james@daa.com.au>
17331 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
17332 printer dialog code out of commands.c.
17334 * app/paginate_psprint.c: new file containing the pagination code for
17337 * app/render_eps.c: made a few modifications so as well as producing
17338 EPS files, this renderer can be set up to do postscript printing.
17339 This basically entailed adding an extra function to create a RenderEPS
17340 renderer which did not bother setting the viewport for the document.
17341 That was left for the pagination code.
17343 1999-09-10 James Henstridge <james@daa.com.au>
17345 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
17346 gnome-print does not support elliptic arcs at the moment, approximate
17347 the ellipse with eight bezier curves. This gives a pretty good
17348 match to a true ellipse.
17350 1999-09-09 James Henstridge <james@daa.com.au>
17352 * app/commands.c (file_gnome_print_callback): added support for
17353 scaling the diagram. Also fixed a few other bugs.
17355 * app/paginate_gnomeprint.c (print_page): added ability to scale
17356 document. Fixed up test to see if the page has no objects on it.
17357 This should prevent some blank pages being printed. Non square
17358 objects such as lines could still cause problems.
17360 1999-09-08 James Henstridge <james@daa.com.au>
17362 * app/commands.c (file_gnome_print_callback): changed from using the
17363 standard printer selection dialog to one that also has a paper size
17366 * commands.[ch]: added callbacks for the print menu item. Currently
17367 it only does A4 output. I will make it configurable soon.
17369 * app/menus.c: add a print diagram menu item if gnome-print support
17372 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
17373 bit higher level than the gnome-print renderer. It splits the
17374 diagram into page size chunks and then renders them. For each
17375 page, it only renders the objects whose bounding box intersects
17376 the page, and it sets the clip mask so that the diagram does not
17377 overlap the margins.
17379 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
17380 that uses gnome-print as its back end.
17382 * configure.in: added a check for gnome-print. It is disabled by
17383 default because the code is not really working correctly yet.
17385 * app/menus.c: the delete object menu item was missing from the
17386 GnomeUIInfo style menus.
17388 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
17391 Added japanese to ALL_LINGUAS.
17392 Fix for Linux on Alpha.
17394 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
17396 * app/create_object.c (create_object_button_press):
17397 Always initialize tool->obj. Otherwise we store a null
17398 in the undo Change.
17401 Set linestyle before drawing cursor.
17402 Fix undo of backwards delete.
17404 1999-09-05 James Henstridge <james@daa.com.au>
17406 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
17408 * app/render_svg.c (draw_image): some fixes so that the appropriate
17409 style attributes are set. Before it was setting line styles on
17410 fill_* functions. Now it only does this for the draw_* variants.
17412 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
17413 variable so that custom shapes can be loaded.
17415 * shapes/: new directory for custom shapes. The Circuit sheet has
17418 1999-09-02 James Henstridge <james@daa.com.au>
17420 * TODO: removed a few todo items that have been implemented.
17422 * app/interface.c (create_sheets): enabled the popup page menu to the
17423 notebook. This can make it easier to select different sheets.
17425 * object/custom/Circuit/: added diode, zener diode, ground point and
17426 operational amplifier shapes.
17428 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
17429 if you want the output.
17431 * objects/custom/shape_info.c (parse_path): same here.
17433 * objects/custom/load_sheet.c (load_with_readdir): don't print so
17434 much debugging output. To get the previous level of output, define
17437 * objects/custom/shape_info.c (parse_svg_node): polygons were being
17438 recorded as polylines in the ShapeInfo structure.
17440 * objects/custom/README: some notes on writing new custom shapes.
17442 1999-09-01 James Henstridge <james@daa.com.au>
17444 * objects/custom/Circuit/hinductor.*:
17445 * objects/custom/Circuit/vinductor.*: added inductor shapes that
17446 also test out the bezier curve and SVG path support.
17448 * objects/custom/custom_object.c (custom_draw): added support for
17449 drawing bezier paths and filled shapes.
17451 * objects/custom/shape_info.c (parse_path): new function to parse
17452 SVG path elements. It does not do quadratic beziers or elliptic
17453 arcs though. Only moves, lines and cubic beziers.
17454 (*): added support for paths.
17456 1999-08-31 James Henstridge <james@daa.com.au>
17458 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
17460 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
17463 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
17466 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
17469 * lib/render_store.[ch]: use newer bezier functions.
17471 * lib/render.h: changed the bezier drawing functions to use an array
17472 of BezPoint structures instead of normal Point structures to allow
17473 lineto's mixed in with the curveto's.
17475 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
17477 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
17478 xpm images for different shapes to Makefile.
17480 * objects/custom/custom_object.c (custom_object_new): set the icon
17481 for the sheet button if there is one. Otherwise fall back on the
17482 default custom object icon.
17484 * objects/custom/shape_info.c (load_shape_info): read the sheet
17485 icon name from the shape file.
17487 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
17488 check the pixmap_file field for the name of a pixmap file to load
17491 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
17492 at the end of the structure, and it isn't used if the pixmap field
17493 is non NULL, so it should not break binary compatibility.
17495 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
17496 added support for the use of an index.sheet file so you can specify
17497 the ordering of the shapes in the sheet, and also internationalise
17498 the sheet name and actually be able to give a description. The old
17499 readdir based sheet loading code acts as a fallback if an index.sheet
17500 file can not be found.
17502 * objects/custom/custom_util.[ch]: new file containing useful routines
17503 needed by the custom object code. Currently only contains a simple
17504 routine for resolving relative paths.
17506 * objects/custom/custom_object.c (custom_draw): fixed problem with
17507 drawing rectangles if the shape has been flipped.
17509 1999-08-30 James Henstridge <james@daa.com.au>
17511 * objects/custom/custom_object.c (custom_get_object_menu): allow
17512 flipping of custom shapes. This uses the miggle click object
17515 * objects/custom/Circuit/npn.shape: fix aspect ratio.
17517 * objects/custom/custom_object.c (custom_update_data): honour the
17518 aspect ratio constraints.
17520 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
17521 tag parsing, so you can specify a free, fixed or a range for aspect
17522 ratios for the shape.
17524 1999-08-29 James Henstridge <james@daa.com.au>
17526 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
17527 up shape namespace tag.
17529 * objects/custom/shape_info.c (load_shape_info): check xml:lang
17530 attribute on <description> elements to support i18n for custom
17531 shape descriptions.
17532 Also changed the shape namespace for custom shapes to something
17533 a little more sensible.
17535 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
17537 * lib/intl.c: new file containing some functions for i18n stuff.
17539 * app/layer_dialog.c (create_button_box): fixed a warning.
17541 * objects/custom/custom_object.c: use current line style. Save dash
17544 * objects/flowchart/diamond.c: use current line style. Save dash
17547 * objects/flowchart/parallelogram.c: use current line style. Save
17550 * objects/flowchart/ellipse.c: use current line style. Save dash
17553 * objects/flowchart/box.c: use current line style. Save dash length.
17555 * objects/standard/ellipse.c: make ellipse use current line style.
17557 * objects/standard/box.c: use the line style set in the toolbox for
17558 new boxes, and remember the dash length.
17560 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
17563 1999-08-24 James Henstridge <james@daa.com.au>
17565 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
17566 to try to stop ellipse to get infinite width/height when we resize,
17567 while trying to keep the text inside the ellipse.
17569 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
17570 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
17571 resizing behaviour, so that you can't push objects round the screen
17572 with the resize handles.
17574 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
17575 get the OK buttons in the dialogs to take default clicks.
17577 * objects/custom/custom_object.c: added code so that resizing the
17578 shape does not end up pushing it round the screen.
17580 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
17582 * app/display.[ch]:
17583 Generate rectangle with the union of the damaged regions.
17584 This is used to optimize the grid paint and the object rendering.
17585 display_render_pixmap passes this info to grid_draw() and data_render().
17588 grid_draw doesn't draw grid lines outside of damaged rectangle.
17589 Sets dashlength when drawing non-solid grid.
17591 * lib/diagramdata.[ch]:
17592 data_render() and layer_render() takes an optional damaged rectangle
17593 argument. No objects not intersecting this are drawn.
17597 Call data_render with NULL update rectangle.
17599 1999-08-23 James Henstridge <james@daa.com.au>
17601 * objects/custom/custom_object.c (custom_update_data): if the aspect
17602 ratio is fixed, make sure the shape is not distorted.
17604 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
17605 a <fixaspectratio/> tag is given in the shape file.
17607 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
17608 added support for stroke-width, stroke and fill CSS attributes
17609 specified in style attributes of the SVG elements. The line width
17610 is relative to the user specified line width. The stroke and fill
17611 attributes can only be used to swap the foreground/background
17614 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
17615 sensitivity on the dash length selector when this function is called.
17617 * objects/standard/arc.c: same. Also handle dash length.
17618 * objects/standard/zigzagline.c: same.
17619 * objects/standard/polyline.c: same. Also handle dash length.
17620 * objects/standard/line.c: use default arrow/line styles.
17622 * app/interface.c: added callbacks to set the default attributes.
17624 * lib/attributes.c: added implementations of these functions.
17626 * lib/attributes.h: added extra prototypes for the new line properties
17627 area in the toolbox.
17629 * app/interface.c (create_lineprops_area): added line properties
17630 area to bottom of toolbox.
17632 * app/lineprops_area.h: a header exporting a few routines of the
17633 line properties area widgets.
17635 * app/lineprops_area.c: new file containing a selector for arrows
17636 and line styles to go in the main toolbox.
17638 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
17641 Update Gtk+ 1.0.5 comment to 1.2.0.
17650 Make sure we don't propagate -ldl and -lpopt to all LIBS
17651 by adding new var APP_LIBS that only app/dia links with.
17654 Update run_dia.sh to load custom and flowchart objects.
17656 * objects/ER/Makefile.am:
17657 * objects/FS/Makefile.am:
17658 * objects/UML/Makefile.am:
17659 * objects/network/Makefile.am:
17660 * objects/standard/Makefile.am:
17661 * objects/sybase/Makefile.am:
17662 Don't build versioned libs.
17664 1999-08-22 James Henstridge <james@daa.com.au>
17666 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
17669 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
17670 should actually work a bit now.
17672 * objects/custom/Circuit/*: a test sheet for the custom shape code.
17673 It is a small collection of circuit elements.
17675 * objects/custom/shape_info.c: fixed up loading of polylines and
17676 polygons. Before it was removing negative signs :(
17678 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
17679 placeholder was here before. I still need to work out how to set
17680 icons for individual custom shapes.
17682 * objects/custom/custom.c: added code to load the shapes into sheets
17683 properly. The shape files should be arranged into directories, and
17684 each directory represents a different sheet in the toolbox. This
17685 will make it very easy to distribute a collection of dia shapes as
17686 a tarball. I still need to work out internationalisation, and maybe
17687 also shape ordering in the sheet.
17689 * objects/custom/custom_object.c: fixed up dialogs for these objects.
17690 (custom_create): fix for objects without text areas.
17692 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
17693 and saving of custom object works correctly now.
17695 1999-08-21 James Henstridge <james@daa.com.au>
17697 * objects/flowchart/ellipse.c:
17698 * objects/flowchart/diamond.c:
17699 * objects/flowchart/parallelogram.c:
17700 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
17701 copying or loading these object types. Not all the connection
17702 points would be initialised correctly.
17704 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
17707 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
17708 build a versioned library. It will only ever be dlopen'd, so this
17711 * objects/custom/custom_object.c (custom_distance_from): allow
17712 selecting the object by clicking on the text. This fixes problems
17713 where the text box is outside the graphic.
17715 * objects/custom/shape_info.c (load_shape_info): fixed up reading
17716 of connections points. It should be possible to add connections
17717 to custom objects now.
17719 * objects/custom/custom_object.c (custom_update_data): fixed resizing
17720 due to changes to text.
17722 * configure.in: added extra makefiles.
17724 * objects/custom/shape_info.[ch]:
17725 * objects/custom/custom_object.c:
17726 * objects/custom/custom.c: the starts of custom shape support in dia.
17727 This is not built by default at the moment, since it is not quite
17728 complete. When it is, it will let you create more shapes for dia
17729 without writing a line of C. Its implementation includes buzzwords
17730 such as XML and SVG, so it must be good :)
17732 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
17734 * app/app_procs.c (app_exit): Use button labels "Quit" and
17735 "Cancel" instead of "Yes" and "No".
17736 Set default action to "Cancel" instead of "Quit".
17738 1999-08-19 James Henstridge <james@daa.com.au>
17740 * objects/flowchart/flowchart.c: added ellipse object.
17742 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
17744 1999-08-18 James Henstridge <james@daa.com.au>d
17746 * app/color_area.c (color_area_edit): small fix to prevent dia from
17747 segfaulting when you try to change the default foreground/background.
17749 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
17751 * app/diagram.[ch] (diagram_redraw_all):
17752 Added function that redraws all diagrams.
17754 * app/preferences.c (prefs_apply):
17755 Call diagram_redraw_all when prefs are changed.
17757 * app/render_svg.c:
17758 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
17759 older libxml's, and the old version works good enought here.
17761 1999-08-17 James Henstridge <james@daa.com.au>
17763 * lib/widgets.c: changed handlers that were connected to the GtkButton
17764 "pressed" signal to connect to the "clicked" signal. This removes the
17765 problem where dialogs are inactive until you click a mouse button
17766 after using a colour selector.
17768 * configure.in: added extra makefiles to AC_OUTPUT list.
17770 * objects/Makefile.am (SUBDIRS): added flowchart module
17772 * objects/flowchart/*: a collection of shapes for use in flowcharts.
17774 * app/color_area.c (color_area_events): similar here.
17776 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
17777 event is recieved with event->width == 0, which causes a warning if we
17778 try to create a pixmap of that width.
17780 * app/preferences.c, app/preferences.h, app/grid.c: added code to
17781 allow you to configure the colour of the grid, and also lets you
17782 set the grid to use dotted lines instead of solid ones.
17784 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
17785 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
17787 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
17788 export filter. It is not quite complete, but for most shapes it
17789 works as expected. Fonts still need a bit of work.
17791 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
17793 * configure.in: Added "en_GB" to ALL_LINGUAS.
17795 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
17798 Added Undo and Redo to GNOME menus.
17800 * objects/ER/attribute.c:
17801 * objects/ER/entity.c:
17802 * objects/ER/participation.c:
17803 * objects/ER/relationship.c:
17804 Added get/set_state functions.
17806 * objects/ER/participation.c:
17807 Added add/delete segment.
17810 Updated Swedish translation.
17812 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17814 * app/preferences.[hc]:
17815 Added undo_depth pref.
17818 Never grow stack larger than pref.undo_depth.
17819 undo_depth == 0 means unlimited.
17820 Converted printfs to conditionally compiled DEBUG_PRINTFs.
17822 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17827 * lib/render_object.c:
17828 * objects/ER/attribute.c:
17829 * objects/ER/entity.c:
17830 * objects/ER/participation.c:
17831 * objects/ER/relationship.c:
17832 * objects/FS/flow-ortho.c:
17833 * objects/FS/flow-poly.c:
17834 * objects/FS/flow.c:
17835 * objects/FS/function.c:
17836 * objects/UML/actor.c:
17837 * objects/UML/association.c:
17838 * objects/UML/class.c:
17839 * objects/UML/classicon.c:
17840 * objects/UML/component.c:
17841 * objects/UML/constraint.c:
17842 * objects/UML/dependency.c:
17843 * objects/UML/generalization.c:
17844 * objects/UML/implements.c:
17845 * objects/UML/large_package.c:
17846 * objects/UML/lifeline.c:
17847 * objects/UML/message.c:
17848 * objects/UML/note.c:
17849 * objects/UML/object.c:
17850 * objects/UML/realizes.c:
17851 * objects/UML/small_package.c:
17852 * objects/UML/state.c:
17853 * objects/UML/usecase.c:
17854 * objects/network/bus.c:
17855 * objects/standard/arc.c:
17856 * objects/standard/box.c:
17857 * objects/standard/ellipse.c:
17858 * objects/standard/image.c:
17859 * objects/standard/line.c:
17860 * objects/standard/polyline.c:
17861 * objects/standard/textobj.c:
17862 * objects/standard/zigzagline.c:
17863 Removed all traces of is_empty(). It doesn't work in an
17866 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17871 Undoable grouping and ungrouping.
17873 * app/layer_dialog.c:
17874 * lib/diagramdata.[ch]:
17875 Undoable layer ops.
17877 * app/modify_tool.c:
17878 Undoable unconnect on handle move.
17880 * lib/orth_conn.[ch]:
17881 Working undoable add/remove segment.
17882 Removed endpoint_handles from OrthConn, renamed
17883 midpoint_handles to handles and put the endpoint
17886 * objects/standard/zigzagline.c:
17887 * objects/ER/participation.c:
17888 * objects/UML/association.c:
17889 * objects/UML/dependency.c:
17890 * objects/UML/generalization.c:
17891 * objects/UML/realizes.c:
17892 Update for the changes in OrthConn
17894 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
17896 * configure.in: Added "de" to ALL_LINGUAS.
17898 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
17910 Don't have the <Display> etc part of the menu strings
17911 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17914 Don't have the <Display> etc part of the menu strings
17915 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17916 Don't remove is_empty() objects, that don't work with undo.
17918 * lib/objchange.[ch]:
17920 Definition of ObjectChange. This is essentially an Change
17921 exported to the object libs. It encapsulates a change made
17922 to an objects internals. It can be applied, reverted and freed.
17923 There are also utility functions for doing ObjectChanges that
17924 only get/set the whole state of an object to store the change.
17925 This cannot be used when the object change deletes or adds a
17926 object which has references from other objects, eg. Handles which
17927 might be connected.
17930 Added objchange.c and objchange.h.
17933 Return NULL when loading fails.
17936 Menu callbacks return an ObjectChange.
17939 Reference objchange.o
17942 Key events return ObjectChange if they modify the object.
17946 Added object_add_handle_at() function.
17947 Apply properties returns an ObjectChange.
17948 Remove ObjectState and the get/set state functions, these
17949 don't always work. Use the new ObjectChange instead.
17952 Added object_add_handle_at() function implementation.
17954 * lib/orth_conn.[ch]:
17955 Use ObjectChange. Not finished yet.
17956 Removed get/set/free state functions
17958 * lib/poly_conn.[ch]:
17960 Don't remove segments that are small.
17961 Removed get/set/free state functions
17965 Added functions to get/set all text attributes.
17967 * objects/standard/arc.c:
17968 * objects/standard/box.c:
17969 * objects/standard/ellipse.c:
17970 * objects/standard/image.c:
17971 * objects/standard/line.c:
17972 * objects/standard/polyline.c:
17973 * objects/standard/textobj.c:
17974 * objects/standard/zigzagline.c:
17976 fixed bug in image_set_state.
17977 zigzagline.c not finished yet.
17979 * app/disp_callbacks.c:
17980 Use ObjectChange that are returned from menu callbacks and
17981 key_events for undo.
17983 * app/properties.c:
17984 Use ObjectChange that are returned from properties apply
17989 New undo type: ObjectChangeChange. This wraps a change to the
17990 internals of an object (and ObjectChange) in code that does
17991 app specific stuff (object_add_updates etc.)
17993 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
17995 * lib/orth_conn.[ch]:
17996 Added code for add/delete segment.
17998 * objects/standard/zigzagline.c:
17999 Use the new orth_conn code.
18002 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18004 * objects/FS/Makefile.am
18005 Removed fs.h from sources.
18011 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
18013 * app/disp_callbacks.c (ddisplay_canvas_events):
18014 Fix for bug. Every other arrow-key press got lost.
18015 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
18018 change automake.sh to autogen.sh
18020 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
18023 Don't remove 'empty' objects.
18024 This violent destruction of objects won't work
18025 with the new undo framework.
18027 * app/disp_callbacks.c:
18028 Save undo info for object menu calls and key_events.
18030 * app/properties.c:
18031 Save undo info on properties apply.
18033 * lib/dia_image.[ch]:
18034 Add refcounting for images.
18036 * app/render_eps.c:
18037 * app/render_gdk.c:
18039 DiaImage * -> DiaImage
18042 Add undo functions for object state changes.
18046 change of semntics for focus->key_event.
18047 Now returns TRUE if the object recieving the event
18053 * lib/orth_conn.[ch]:
18054 Don't automatically create and delete segments when
18055 handles are moved. This is incompatible with undo.
18056 Added state get, set and free functions.
18058 * lib/orth_conn.[ch]:
18059 Added state get, set and free functions.
18061 * objects/UML/object.c:
18062 * objects/UML/uml.c:
18063 Fixed typo "UML - Objet" -> "UML - Object".
18064 Saved old for backwards compatibility.
18066 * objects/standard/arc.c:
18067 * objects/standard/box.c:
18068 * objects/standard/ellipse.c:
18069 * objects/standard/image.c:
18070 * objects/standard/line.c:
18071 * objects/standard/polyline.c:
18072 * objects/standard/textobj.c:
18073 * objects/standard/zigzagline.c:
18074 Added get/set state functions.
18075 Textobj has a redo crash-bug.
18076 Zigzagline needs object menus to add segments.
18079 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
18081 * app/render_eps.c (set_dashlength):
18082 Don't generate eps files with zero dash-length.
18084 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
18087 * app/create_object.c:
18089 Finished undo for create and paste.
18092 Started properties undo.
18094 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
18097 Added resizeable groups.
18100 Removed unused variable.
18104 Undo/redo for cut/delete done.
18106 * app/create_object.c:
18107 * app/modify_tool.c:
18108 * lib/diagramdata.[ch]:
18109 * app/diagram.[ch]:
18110 renamed diagram_add_selected -> diagram_select
18111 renamed diagram_remove_selected -> diagram_unselect
18113 * app/properties.[ch]:
18114 Added properties_hide_if_shown() function.
18116 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
18122 * app/commands.[ch]
18123 * app/modify_tool.[ch]
18124 * app/object_ops.[ch]
18125 * app/connectionpoint_ops.c
18127 Use undo functions.
18128 WARNING: Not finished. Will break.
18129 Finished: move object, move handle.
18132 Added diagram_selected_break_external() function.
18133 It removes all connections between selected objects
18135 Add undo stack to Diagram.
18137 * lib/diagramdata.[ch]
18138 Added layer_remove_objects() function
18140 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
18142 * objects/FS/Makefile.am
18143 * objects/sybase/Makefile.am
18144 Now uses GNOME_CFLAGS.
18147 Now compiles with GNOME even if popt.h isn't available.
18149 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
18152 * objects/Makefile.am
18154 First version of sybase objects from
18155 Brian Bruns <camber@umcc.ais.org>
18157 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18160 Added fr to ALL_LINGUAS
18162 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
18166 Popt-code is activated if popt is available.
18168 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
18170 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18172 * lib/orth_conn.[ch]:
18173 Added orthconn_get_middle_handle()
18176 Added text_set_cursor_at_end()
18179 Added first version of functions structure diagrams.
18181 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
18183 * app/modify_tool.c:
18184 Include math.h to remove warning.
18186 * app/commands.c (dialogs_properties_callback):
18187 Bring up correct properties dialog when selected
18189 From Dan Cohn <dan@internap.com>
18191 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
18193 Patch from Lars R. Clausen
18195 * app/modify_tool.c:
18196 Changed abs to fabs.
18198 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
18204 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18206 Patches from Dan Cohn <dan@internap.com>
18208 * app/commands.[ch]:
18209 * app/display.[ch]:
18211 * app/preferences.[ch]:
18212 Implements ability to turn on/off connection points in
18213 current drawing and in global prefs.
18215 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18217 * lib/widgets.c (dia_line_style_selector_init):
18220 * lib/diagramdata.c (layer_update_extents):
18221 Fixed uninitialized variable error.
18223 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
18226 Made some changes to the gdk_imlib visual+colormap setup.
18228 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18230 * objects/UML/usecase.c:
18231 * objects/UML/lifeline.c
18234 * objects/UML/object.c:
18235 * objects/UML/message.c:
18236 Changed font from Courier to Helvetica.
18240 Added dash lenth to the LineStyle widget.
18242 * objects/standard/ellipse.c :
18243 * objects/standard/zigzagline.c:
18244 * objects/standard/line.c:
18245 Added dash lenght property.
18247 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18249 * app/render_eps.c:
18250 First shot at latin1 encoded eps files.
18251 Works, but the eps files get a bit large.
18253 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18255 * objects/UML/class.[ch]:
18256 * objects/UML/uml.[ch]:
18257 Reverted the line wrap changes.
18258 Some day this might return, but it has to be selectable and
18259 default to off for loaded objects, otherwise it breaks file
18260 format compatibility.
18261 There was also some complains about how it looked, so a making it
18262 selectable is good for this too.
18264 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
18266 * objects/UML/class.[ch]:
18267 Some indentation cleanup.
18268 Added wrap_lines variable to class.
18269 I'll fix the line break stuff tomorrow.
18271 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18274 Added ref to poly_conn.o.
18276 * objects/standard/polyline.c (polyline_draw):
18277 * objects/standard/zigzagline.c (zigzagline_draw):
18278 * objects/standard/arc.c (arc_draw):
18279 * objects/standard/line.c (line_draw):
18280 Draw lines before arrows. This makes hollow arrows not
18283 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18285 Changes from Kim Peasley <kpeasley@ior.com>
18287 * objects/UML/class.c:
18288 Break lines with long operations so classes won't be
18291 * objects/UML/uml.[ch]:
18292 Helperfunctions for the above.
18294 * objects/UML/objects.c:
18295 Fix bug that duplicated the text in the attributes
18296 textwidget each time the object was selected.
18298 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
18300 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
18302 * app/modify_tool.c:
18303 * app/modify_tool.h:
18304 Control-drag is restricted to vertical/horizontal movement
18307 ModifierKeys argument added to object_move_handle
18309 * app/connectionpoint_ops.c:
18310 * app/create_object.c:
18311 * app/object_ops.c:
18312 * objects/ER/attribute.c:
18313 * objects/ER/entity.c:
18314 * objects/ER/participation.c:
18315 * objects/ER/relationship.c:
18316 * objects/UML/actor.c:
18317 * objects/UML/association.c:
18318 * objects/UML/class.c:
18319 * objects/UML/classicon.c:
18320 * objects/UML/component.c:
18321 * objects/UML/constraint.c:
18322 * objects/UML/dependency.c:
18323 * objects/UML/generalization.c:
18324 * objects/UML/implements.c:
18325 * objects/UML/large_package.c:
18326 * objects/UML/lifeline.c:
18327 * objects/UML/message.c:
18328 * objects/UML/note.c:
18329 * objects/UML/object.c:
18330 * objects/UML/realizes.c:
18331 * objects/UML/small_package.c:
18332 * objects/UML/state.c:
18333 * objects/UML/usecase.c:
18334 * objects/network/bus.c:
18335 * objects/standard/arc.c:
18336 * objects/standard/box.c:
18337 * objects/standard/ellipse.c:
18338 * objects/standard/image.c:
18339 * objects/standard/line.c:
18340 * objects/standard/polyline.c:
18341 * objects/standard/textobj.c:
18342 * objects/standard/zigzagline.c:
18343 Changed calls to move_handle to pass the new argument.
18347 Default line width, color etc #define'd
18350 Updates of danish menus
18352 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18355 * dia_gnome_icon.png
18356 * dia_gnome_menu_icon.png
18358 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
18361 About dialog shows dia_logo.png. Removed the GNOME about dialog.
18364 Distribute the icons and install logo in pkgdatadir.
18367 Added DATADIR-define.
18369 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18370 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
18373 Updated version number, made setup quiet, can build from cvs,
18374 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
18377 * objects/ER/Makefile.am
18378 * objects/UML/Makefile.am
18379 * objects/network/Makefile.am
18380 * objects/standard/Makefile.am
18381 now builds better with gnome
18383 * objects/UML/class_dialog.c
18384 Fixed typo -> po files must be updated too!!
18386 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18389 Added reference so that widgets.o gets linked to the app.
18391 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18393 * objects/UML/classicon.c:
18396 * objects/UML/actor.c:
18397 Changed position of 'snap-to-grid' so connection points are
18400 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18402 * objects/UML/classicon.c:
18403 Changed position of 'snap-to-grid'.
18404 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18406 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18408 * objects/network/antenna.c
18409 * objects/network/flash.c
18410 * objects/network/hub.c
18411 * objects/network/modem.c
18412 * objects/network/modularswitch.c
18413 * objects/network/rj45plug.c
18414 * objects/network/scead-plug.c
18415 * objects/network/network.c
18416 * objects/network/Makefile.am
18417 * objects/network/pixmaps/antenna.xpm
18418 * objects/network/pixmaps/flash.xpm
18419 * objects/network/pixmaps/hub.xpm
18420 * objects/network/pixmaps/modem.xpm
18421 * objects/network/pixmaps/modularswitch.xpm
18422 * objects/network/pixmaps/rj45plug.xpm
18423 * objects/network/pixmaps/sceadplug.xpm
18424 * objects/network/pixmaps/Makefile.am
18425 Lots of new network objects from
18426 Roland Steinbach <roland@support-system.com>.
18428 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18430 * objects/UML/classicon.c:
18431 Fixed connection positions, saved type as int (it has 3 states),
18432 and other small fixes.
18434 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
18436 * app/preferences.c:
18438 Added preference compress_save. It lets dia save uncompressed
18441 * objects/UML/class.c:
18442 Fixed bug with size calculation on methods that had class scope.
18444 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18446 * objects/UML/usecase.c:
18447 Added collaboration mode
18448 Fixed connection points with text > ellipse bug and other
18451 * objects/UML/state.c:
18452 Fixed bug of bad position of text after being either end
18453 or begin, moved and returned to text
18455 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
18457 * app/preferences.c: Add prototype declaration for prefs_apply.
18459 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
18461 * app/preferences.c:
18463 Apply don't hide window.
18465 * app/properties.c:
18468 * objects/UML/object.c:
18469 * objdcts/UML/state.c:
18470 Some data was not copied on copy.
18473 Ben Hochstedler <benh@eeyore.moneng.mei.com>
18475 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
18478 Changed link order between X and libxml.
18479 Some people had problems with an old libz in their
18482 1999-04-09 Kjartan Maraas <kmaraas@online.no>
18484 * po/no.po: updated translation.
18486 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
18488 * lib/message.c (message_error):
18491 * app/commands.[ch]:
18492 * app/diagram.[ch]:
18493 Added begining of xfig importing
18495 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18497 * objects/UML/pixmaps/state.xpm:
18498 * objects/UML/state.c:
18499 New UML object state machine.
18501 * objects/UML/uml.c:
18502 * objects/UML/Makefile.am:
18503 * objects/UML/pixmaps/Makefile.am:
18504 Added the state object.
18506 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
18508 * objects/UML/usecase.c:
18509 Added dialog to allow move text outside the ellipse.
18511 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18513 * Released Dia 0.41
18514 Tag called DIA_0_41
18519 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18522 Updated version number to 0.41
18527 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
18530 Changed errormessage for --export-to-ps. Removed call to
18531 g_log_set_always_fatal().
18534 * app/disp_callbacks.c
18536 (i18n) Removed gettext from some debugmessages.
18539 Small fix in GNOME-menus. Added warning that will help track
18540 problems with translations.
18543 (i18n) Updated swedish translation.
18545 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
18550 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
18556 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
18559 (i18n) Updated the danish translation.
18560 From Lars R. Clausen.
18562 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
18565 (i18n) The popup menu is translated now.
18568 (i18n) Updated swedish translation.
18570 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18572 * Released Dia 0.40
18573 Tag called DIA_0_40
18576 Updated for new release
18578 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18580 * objects/network/bus.c:
18581 Added initialization of properties dialog to NULL.
18583 * app/commands.c (edit_cut_callback):
18584 Update menu sensitivity when cut object.
18586 * app/modify_tool.c (click_select_object):
18587 * app/modify_tool.c (modify_button_release):
18588 Call diagram_update_menu_sensitivity() when
18589 selecting objects to update stuff that depends
18590 on selected/not selected.
18592 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18595 Change order of subdir so that libintl.a builds.
18596 Now passed make distcheck.
18598 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18600 * lib/font.c (init_x11_font):
18603 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18605 * objects/UML/pixmaps/classicon.xpm:
18606 * objects/UML/classicon.c:
18607 * objects/UML/uml.c:
18608 Added the class stereotype icon objects.
18611 Changed default ps extension from .ps to .eps.
18613 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18616 Added diamenu.h and intl.h
18621 * objects/UML/pixmaps/Makefile.am:
18624 * objects/standard/pixmaps/Makefile.am:
18627 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18630 Use a scalable font before fixed when real font not found.
18635 * objects/standard/image.c:
18636 Better handling of loading/saving of images.
18639 Added some text about cvs, fonts and rewrote some parts.
18642 Updated with new stuff.
18645 Bump up version number to 0.40.
18647 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18650 Moved diagram_add_ddisplay() call into new_display().
18651 Fixed new_display to not use uninitialized variables
18652 causing loaded files to show up as black (or garbage).
18656 Removed unneeded calls to diagram_add_ddisplay().
18658 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18660 * objects/UML/lifeline.c:
18662 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18664 * objects/UML/message.c:
18665 Fixed bug loading messages with null-text.
18666 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18668 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
18671 Updated swedish translation.
18674 (GNOME) Removed help-browser from help menu. Fixed typo.
18677 (GNOME) Accelerators in diagrams should work now.
18679 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
18684 * app/disp_callbacks.c
18688 * app/preferences.c
18690 * lib/diagramdata.c
18696 * objects/network/*.c
18697 * objects/standard/*.c
18698 * po/update_pofiles_in.sh
18700 More i18n. All strings (expect rare debug messages) can be
18701 translated now. Moved intl.h from app to lib. Updated
18702 update_pofiles_in.sh to check all .c-files.
18704 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
18706 * app/disp_callbacks.c (ddisplay_canvas_events):
18707 Don't drop keys while num-lock, scroll-lock etc is on.
18709 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18711 * app/render_eps.c (draw_image):
18712 Fixed exporting of images.
18713 Still not perfect, but not outright buggy.
18715 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18719 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
18722 Added $* to the dia call in run_dia.sh
18724 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18727 Added color_equals() call.
18729 * objects/standard/arc.c:
18730 * objects/standard/line.c:
18731 Don't save unneccesary data.
18733 * objects/standard/box.c:
18734 * objects/standard/ellipse.c:
18735 * objects/standard/image.c:
18736 * objects/standard/polyline.c:
18737 * objects/standard/zigzagline.c:
18738 Share properties dialog.
18739 Don't save unneccesary data.
18741 1999-03-22 Seth Alves <alves@hungry.com>
18746 small changes so that gnome menus aren't broken
18748 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18751 Added danish translation from lrclause@cs.uiuc.edu.
18756 * po/update_pofiles_in.sh:
18757 Added script that updates POFILES.in.
18758 This should probably be run automatically from somewhere.
18760 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
18762 * app/diagram.[ch]:
18763 Added function diagram_update_menu_sensitivity() which
18764 sets the sensitivity of some menu items. This function
18765 is called at each diagram state change (from diagram_modified()).
18766 This is needed because otherwise the keyboard accelerators
18767 don't work correctly.
18769 * app/display.[ch]:
18770 Changed display_set_menu_sensitivity() to display_update_menu_state().
18771 Moved lots of code to diagram_update_menu_sensitivity() in
18772 diagram.c. Optimized to only look up menu-items from path:s once.
18774 * app/disp_callbacks.c:
18776 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
18777 Need to set GDK_FOCUS_CHANGE_MASK.
18779 * app/create_object.c:
18780 Call diagram_modified when an object has been created and
18781 selected so that the menu sensitivity is updated.
18784 removed menus_set_sensitive() and menus_set_state(). Exported
18785 renamed function menus_get_item_from_path().
18787 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
18789 * app/disp_callbacks.c:
18790 Show (empty) object menus on object that has none.
18791 Show title on object menus.
18794 Set zoom factor correctly when opening new displays.
18795 Better setting of scrollbars.
18799 Some reformating cleanup.
18802 Added title to object menus.
18805 Added object menu method (NULL-valued) to all objects.
18807 * objects/standard/polyline.c:
18808 Added title to object menu.
18810 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
18812 * app/preferences.[ch]:
18813 New files. Implements the preferences dialog and
18814 loading/saving of ~/.diarc.
18817 Added preferences.[ch].
18820 Load preferences on startup.
18822 * app/commands.[ch]:
18823 Added file_preferences_callback to show the preferences dialog.
18825 * app/create_object.c:
18826 Update extents when creating object.
18827 Use the reset_tools_after_create preferences setting.
18830 Use preferences when creating new display.
18833 Add preferences to menu.
18836 * app/layer_dialog.c:
18837 * app/properties.c:
18838 Don't allow shrinking of dialog.
18839 Add i18n of some strings.
18841 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
18843 Norwegian translation added.
18845 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
18847 * objects/standard/line.c:
18848 * objects/standard/arc.c:
18849 * objects/standard/polyline.c:
18850 * objects/standard/zigzagline.c:
18851 Loading of arrow data fixed.
18853 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
18856 Update extents when saving and exporting to postscript.
18857 Fixes a bug with postscript bounding-box being wrong.
18860 Changed border width from 5 to 2.
18863 Move grouped objects by the move-point of the first object.
18864 Fixes bug that made all objects in the group be off-grid
18865 when moving the group, even though all objects was on-grid.
18867 * app/layer_dialog.c:
18868 Update extents when changing layer.
18870 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18872 * objects/UML/uml.c:
18873 * objects/UML/component.c:
18874 * objects/UML/pixmaps/component.xpm:
18875 Added the UML component object
18877 1999-03-04 Seth Alves <alves@hungry.com>
18879 * objects/UML/generalization.c (generalization_create): avoid
18880 math on uninitialized genlz->text_width (NaN causes sigfpe)
18882 * objects/UML/realizes.c (realizes_create): same
18884 * objects/UML/dependency.c (dependency_create): same
18886 1999-03-01 Seth Alves <alves@hungry.com>
18888 * app/display.c (ddisplay_active): don't fly a warning panel
18889 if ddisplay_active is called when no views are open.
18891 * app/commands.c (set_default_file_selection_directory): set
18892 file selector's default directory if there is already
18895 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18898 New info about imlib requirements.
18901 Added lib/pixmaps/Makefile to created makefiles.
18905 Change from obsoleted to newer gtk calls.
18908 Pass filename of the diagram when loading and saving.
18909 This creates better oportunities to handle filename saving.
18912 Pass filenames to load and save methods.
18914 * lib/dia_image.[ch]:
18915 Added dia_image_get_broken() call that returns a image which
18916 is used for 'broken' images.
18918 * lib/pixmaps/.cvsignore:
18919 * lib/pixmaps/Makefile.am:
18920 * lib/pixmaps/broken.xpm:
18921 New files for the broken image bitmap.
18924 Fixed bug with double destroyed filedialog.
18927 Updated load and save prototypes to use the new filename argument.
18930 Render broken image instead of line when got no image.
18931 Use the new filename in load and save to save (if possible)
18932 relative pathnames and to better try to find loaded images.
18934 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18937 Some updates to the todo file.
18941 Place over/place over => sent to back/bring to front.
18942 Added some keyboard shortcuts to menus.
18944 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18947 Changed string saving/loading to a new method. This should
18948 be much better att handling &,<,> and whitespaces.
18949 Loading strings of the old kind is still supported for backwards
18952 * samples/ER-demo.dia:
18953 * samples/UML-demo.dia:
18954 Updated to use the new strings.
18957 statusbar modified update fix.
18959 1999-02-27 Seth Alves <alves@hungry.com>
18961 * app/app_procs.c (app_init): added a --export-to-ps option
18962 which will cause dia to load a dia file and save it as ps
18963 and then exit. this is a little bogus, because it still
18964 pops up a window. this option only shows up if --enable-gnome
18967 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
18968 menu when built with --enable-gnome
18970 * app/interface.c (create_display_shell): build status bar
18971 even if --enable-gnome is used
18973 * app/menus.c: menu fixes for --enable-gnome
18975 * app/commands.c (file_open_dialog_ok_callback): fixed up
18976 menus when --enable-gnome is used
18977 (file_export_to_eps_callback): set a default file name
18978 when dialog is created
18980 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
18982 * objects/UML/association.c (association_create):
18983 Fixed usage of not initialized variable.
18984 Pointed out by Seth Alves <alves@hungry.com>.
18986 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
18989 Fixed detection of gnome-xml.
18990 From Valtteri Vuorikoski <vuori@k.notcom.org>.
18993 Fixed error detection on dlsym calls.
18994 From Valtteri Vuorikoski <vuori@k.notcom.org>.
18996 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
18998 * objects/UML/message.c (fill_in_dialog):
19001 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19003 * objects/standard/zigzagline.c:
19004 * objects/standard/polyline.c:
19005 * objects/standard/line.c:
19006 * objects/standard/arc.c:
19010 Support for sizeable arrows.
19012 * objects/standard/box.c:
19013 * objects/standard/ellipse.c:
19014 * objects/standard/image.c:
19015 Changed creation handle to lower-right.
19016 Transparent box/ellipse.
19018 * objects/standard/image.c:
19019 Better layout of properties boxes.
19021 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19023 * objects/UML/message.c (fill_in_dialog):
19024 Fixed dialog fill in. Common dialog for all messages.
19026 * objects/UML/object.c:
19027 Added multiple instance. Dialog related bugs fixed.
19028 Common dialog for all instances. Completed copy and destroy.
19030 * objects/UML/lifeline.c (lifeline_load):
19031 Conn initialization bug fixed and few bad loading prevention flags.
19032 Common dialog for all lifeline objects.
19034 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19036 * lib/dia_image.[ch]:
19037 More work on the DiaImage abstraction.
19040 * app/render_eps.c:
19041 * app/render_gdk.c:
19042 * objects/standard/image.c:
19043 Use the new DiaImage calls.
19045 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19049 Reversed the meaning of align horizontal/vertical.
19051 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19053 * app/load_save.c (diagram_load):
19054 Statusbar update fix.
19056 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19058 * app/interface.c (create_display_shell):
19059 Fixed status bar size.
19061 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19063 * lib/dia_image.[ch]:
19064 Added extern declaration for dia_image_release.
19065 Removed dia_image_draw, as it's not neseccary.
19067 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19069 * app/object_ops.c:
19071 Added equal distance alignment both vertical and horizontal.
19073 * objects/UML/object.c:
19074 Added a couple of attributes to load/read that were missing.
19076 * objects/UML/lifeline.c:
19077 Better handling of handles. Fixed another bug I forgot to add
19080 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
19082 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19084 * lib/dia_image.[ch]:
19086 New files. DiaImage wraps the GdkImlibImage.
19089 * app/render_eps.c:
19090 * app/render_gdk.c:
19091 * lib/render_store.[ch]:
19092 * objects/standard/image.c:
19093 Use the new DiaImagetype.
19096 Removed unused variable to eliminate warning.
19098 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
19100 * objects/standard/box.c:
19101 Added rounded corners on the box object.
19103 * lib/widgets.[ch]:
19104 Updated the DiaFileSelector widget.
19106 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19108 * objects/UML/object.c (objet_draw):
19109 Completed underlining of all object name lines.
19111 * objects/UML/message.c (fill_in_dialog):
19112 Fixed a bug that filled incorrectly the message's dialog.
19114 * objects/UML/lifeline.c (lifeline_load):
19115 Some cleanning and fixed a couple of bugs that caused
19116 crashes after reading diagrams with lifelines.
19119 Added flags to prevent crash with void strings
19121 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19122 * app/display.[ch]:
19123 Added statusbar to the display widget. Currently shows the zoom
19124 factor and modified flag of the viewed diagram. The statusbar is
19125 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19126 This caused the following additions:
19128 * app/diagram.[ch]:
19129 Added function diagram_set_modified. Calls
19130 ddisplay_update_statusbar for all displays showing the modified diagram.
19131 Changed diagram_modified to call diagram_set_modified.
19134 Added the creation of the statusbar.
19137 diagram_save now calls diagram_set_modified instead of setting
19138 dia->modified. Needed to force call to display_update_statusbar
19141 Changed the way view_show_all works. Now calls ddisplay_zoom
19142 instead of directly setting the zoom_factor, so the zoom factor is
19143 correctly shown in the statusbar.
19146 Fixed rubberband zoom to use ddisplay_zoom().
19148 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
19151 Rudimentary GNOME session management.
19153 * app/disp_callbacks.c
19157 GNOME menus. Problems:
19158 Callbacks doesn't get user_data.
19159 Weird warnings when creating popup menus.
19160 menus_set_sensitive(), menus_set_state() doesn't work.
19162 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19165 Add AM_PATH_GDK_IMLIB() call.
19168 Add gdk_imlib to linking flags.
19172 Print library-loading error messages on stdout too.
19175 Add standard image to toolbox.
19177 * app/render_eps.c:
19178 Set a more reasonable dot length. Fixed
19179 missing initialization of dot length.
19180 Added draw_image methods.
19182 * app/render_gdk.c (new_gdk_renderer):
19183 Dot a bit wider. Looks good in normal mode now.
19185 * objects/standard/image.c:
19186 * objects/standard/pixmaps/image.xpm:
19187 New files. Standard object for images.
19189 * app/render_eps.c (set_linestyle):
19190 * app/render_gdk.c (set_linestyle):
19191 * lib/widgets.c (dia_line_style_selector_init):
19193 New line style DOTTED.
19196 * lib/render_store.c:
19197 Change DrawImage call to use gdk_imlib.
19199 * lib/widgets.[ch]:
19200 Added widgets for selecting files.
19201 Added dotted to the linestyle selector.
19203 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19205 * objects/network/printer.c:
19206 * objects/network/network.c:
19207 * objects/network/pixmaps/printer.xpm:
19208 * objects/network/.cvsignore:
19209 * objects/network/Makefile.am:
19210 * objects/network/pixmaps/Makefile.am:
19211 New printer object in network.
19212 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19215 Added known XML bug.
19217 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19221 Reverted back from #include <gnome-xml/tree.h> to
19222 #include <tree.h> as this is fixed by the xml-config program.
19223 The former way broke for some people.
19224 Reported by blizzard@redhat.com.
19226 * objects/UML/lifeline.c:
19227 * objects/UML/message.c:
19228 * objects/UML/object.c:
19229 Removed some warnings.
19231 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19233 * objects/UML/lifeline.c:
19234 Fixed connection points over the life line when the focus of
19235 control is not drawn.
19237 * objects/UML/message.c:
19238 Now a recursive message can be freely resized using the handles.
19240 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19242 * objects/UML/lifeline.c:
19243 Added connection points.
19244 Added properties dialog with the option to draw/hide focus of control
19245 box and destruction mark.
19247 * objects/UML/object.c:
19248 Added properties dialog and stereotype, explicit state and attributes.
19249 It's also possible to mark the object as active.
19251 * objects/UML/pixmaps/object.xpm:
19254 * objects/UML/message.c:
19255 Added "recursive" message type (was not necessary to use OrthConn).
19257 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
19259 * objects/standard/arc.c:
19260 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19262 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
19264 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19268 Update xml includes to gnome-xml/*.h.
19270 * objects/standard/arc.c:
19271 Only one property dialog per type.
19272 Fix arrows directions.
19274 * objects/standard/box.c:
19275 * objects/standard/ellipse.c:
19276 * objects/standard/textobj.c
19277 Added default properties dialog.
19280 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19282 * objects/UML/Makefile.am:
19283 * objects/UML/uml.c:
19284 * objects/UML/lifeline.c:
19285 * objects/UML/object.c:
19286 * objects/UML/message.c:
19287 * objects/UML/pixmaps/lifeline.xpm:
19288 * objects/UML/pixmaps/object.xpm:
19289 * objects/UML/pixmaps/message.xpm:
19290 Added 3 new UML objects for dynamic modeling. To avoid internal
19291 conflicts, the name "objet" is used for object "object".
19294 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
19297 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
19299 * app/display.[ch]:
19300 * app/modify_tool.c:
19301 Added autoscrolling while doing rubber-band select.
19302 This patch from Matthias Köster
19303 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
19306 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
19308 * app/defaults.[ch]:
19309 New files, deals with default properties dialog.
19312 New file. Contains definitions for the new object menu.
19314 * lib/poly_conn.[ch]:
19315 New file. Base class for poly-line like objects.
19317 * objects/standard/polyline.c:
19318 * objects/standard/pixmaps/polyline.xpm:
19319 New files. Polyline object.
19322 Fixed bug with infinite loop when registering sheets.
19325 Removed unneccesary stuff.
19327 * app/disp_callbacks.c:
19328 Support for object menus.
19331 Added polyline to toolbox.
19332 Added call to tool_options_dialog_show() when double clicking on
19336 New function tool_options_dialog_show() for tool properties.
19342 Added ObjectType methods for handling object default dialogs.
19343 Added Object method for handling object_menu.
19344 Added unused methods to ObjectTypeOps for future binary
19347 * lib/widgets.[ch]:
19348 Added DiaArrowTypeSelector widget.
19350 * objects/standard/arc.c:
19351 * objects/standard/zigzagline.c:
19352 Added support for default properties.
19354 * objects/standard/line.c:
19355 Added support for default properties.
19356 Just use one properties dialog for all line objects. NOTE: This
19357 seems to have a bug. We're working on it.
19359 * standard/standard.c:
19360 Add the polyline object.
19362 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
19364 * app/modify_tool.c:
19365 Commented out buggy transitive select function. It wasn't really
19366 meant to go into cvs.
19369 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
19381 Swedish translation. Not completed.
19385 Added possibility to enable GNOME specific code with configure.
19388 Added possibility to set debug level with configure.
19391 Added about dialog.
19397 Added some GNOME specific code. Not ready for use.
19399 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
19402 Added text about needing gtk 1.1.13 and gnome-xml.
19405 Described changes since last version (0.20).
19407 Released version 0.30, tagged DIA_0_30.
19409 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
19411 * app/magnify.c (magnify_button_release):
19412 Fixed a problem when zooming in on a very small box would
19413 not release the grabbed pointer-focus.
19415 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19417 * app/load_save.c (diagram_load):
19418 Be somewhat more robust when loading files that
19421 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19425 * objects/UML/uml.c:
19426 * objects/network/network.c:
19427 * objects/standard/standard.c:
19428 Added versioning of object libraries.
19430 * app/create_object.c:
19431 Don't change tool when an object is created.
19433 * objects/network/network.c:
19438 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
19441 Updated gtk requirement to Gtk+ 1.1.13.
19444 Always add one screenful of scrolling space on
19445 each side of a diagram window.
19447 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
19450 Tell automake to auto-install missing files.
19453 Renamed deprecated Gtk+ function.
19455 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
19459 * samples/Makefile.am:
19460 * samples/ER-demo.dia:
19461 * samples/UML-demo.dia:
19462 Added samples directory.
19463 Added samples for ER and UML.
19466 * app/disp_callbacks.c:
19468 Zoom is done by sqrt(2) instead of 2.
19469 Lots of more zoom options in the menu.
19471 * objects/ER/relationship.c:
19472 Relationships have 8 connectionpoints instead of 4.
19474 * objects/UML/class.c:
19475 UML class name font a bit smaller.
19476 Fixed stupid bug in the copy operation.
19479 Displays are opened at 500x400 instead of 256x256.
19482 Fixup of internal error message.
19484 * app/color_area.c:
19486 * app/modify_tool.c:
19488 Removed debug printf's.
19491 Added new known bug.
19493 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
19497 Fixed so accelerator groups work in all windows.
19498 Updated to new gtk function names.
19504 Updated to new gtk function names.
19505 Set sensitivity of the align menu items.
19507 * objects/ER/pixmaps/Makefile.am:
19508 * objects/UML/pixmaps/Makefile.am:
19509 * objects/network/pixmaps/Makefile.am:
19510 Fix so that make dist works.
19513 * app/color_area.c:
19517 * app/layer_dialog.c:
19519 * app/object_ops.c:
19520 * app/properties.c:
19521 * lib/diagramdata.[ch]:
19523 * lib/objects/ER/attribute.c:
19524 * lib/objects/ER/entity.c:
19525 * lib/objects/ER/participation.c:
19526 * lib/objects/ER/relationship.c:
19527 * lib/objects/ER/.c:
19528 * objects/UML/actor.c:
19529 * objects/UML/association.c:
19530 * objects/UML/class_dialog.c:
19531 * objects/UML/dependency.c:
19532 * objects/UML/generalization.c:
19533 * objects/UML/large_package.c:
19534 * objects/UML/realizes.c:
19537 Updated to new gtk function names.
19540 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
19546 Fixed loading of diagrams specified as arguments.
19548 * objects/ER/attribute.c:
19549 * objects/ER/entity.c:
19551 * objects/ER/participation.c:
19552 * objects/ER/relationship.c:
19553 Updated the ER objects.
19556 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
19560 * objects/Makefile.am:
19561 * objects/ER/attribute.c:
19562 * objects/ER/entity.c:
19564 * objects/ER/participation.c:
19565 * objects/ER/relationship.c:
19566 * objects/ER/pixmaps/Makefile.am:
19567 * objects/ER/pixmaps/attribute.xpm:
19568 * objects/ER/pixmaps/entity.xpm:
19569 * objects/ER/pixmaps/participation.xpm:
19570 * objects/ER/pixmaps/relationship.xpm:
19571 * objects/ER/pixmaps/weakentity.xpm:
19572 First commit of entity relationship objects.
19573 These were done by hallon@lysator.liu.se.
19574 There are still stuff to do on these.
19576 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
19581 * app/diagram.[ch]:
19582 Change diagram_remove_all_selected to take new argument
19583 delete_empty. Empty objects are deleted only if it is TRUE.
19584 Removed call to close_eps_renderer. This is now done in end_render
19585 in the eps renderer.
19587 * app/create_object.c:
19588 * app/layer_dialog.c:
19589 Update calls to diagram_remove_all_selected.
19592 Update calls to diagram_remove_all_selected.
19593 Some code reformating.
19594 Changed order of adding updates i align_h and align_v.
19596 * app/modify_tool.c:
19597 Update calls to diagram_remove_all_selected.
19598 Added pointer grab when doing rubber-band selection, this fixes
19599 the bug when draging the box over to another window.
19601 * app/connectionpoint_ops.[ch]:
19602 diagram_update_connections_object changed to take an argument
19603 update_nonmoved. This lets connections that has not moved, but
19604 the stuff they're connected to has been moved work.
19605 Update calls to the new diagram_update_connections_object.
19607 * app/properties.c:
19608 Update calls to the new diagram_update_connections_object.
19609 Update extents when properties are applied.
19611 * app/disp_callbacks.c:
19612 Added support for zooming with the '+' and '-' keys.
19615 Removed old keyboard shortcuts for zoom.
19618 Added calls begin_render and end_render to renderer.
19619 These can be used for setup and cleanup.
19621 * lib/diagramdata.c:
19622 Added calls to begin_render and end_render in data_render.
19624 * app/render_gdk.c:
19625 Added begin_render and end_render.
19627 * app/render_eps.[ch]:
19628 Added begin_render and end_render.
19629 Moved close_eps_renderer code to end_render.
19630 Various fixes to the generated eps code. This fixes importing
19631 generated eps into LYX.
19633 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
19639 Menus for alignment updated.
19641 * app/object_ops.[ch]:
19642 Functions for object alignment updated.
19644 * app/commands.[ch]:
19645 Object alignment callbacks updated.
19646 New diagrams are called Untitled-<nr>.
19648 * app/layer_dialog.c:
19649 Active layer selected when showing layers from new
19653 Compress xml files when saving.
19654 Use xml namespace 'dia'.
19657 Minor comment update.
19659 * objects/UML/class_dialog.c:
19660 Cleanup of the gkt_list_item moving code.
19661 Fixed bug with update of operation when moving parameters.
19663 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
19665 * app/layer_dialog.[ch]:
19666 Fixed the rest of the layers dialog.
19669 Added call to redo layer dialogs diagram list when changing
19672 * lib/diagramdata.[ch]:
19673 Added data_raise_layer and data_lower_layer functions for
19674 raising/lowering layers. Added data_add_layer_at for adding a
19675 layer at a specified index.
19677 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
19679 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
19682 Added support for reading diagrams from the command line.
19684 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
19686 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
19688 * app/commands.[ch]:
19689 Added objects_align_callback().
19692 Added align objects to menu.
19694 * app/object_ops.[ch]:
19695 Add object_list_align().
19697 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
19698 * app/layer_dialog.[ch]:
19699 New files. Handles the layers dialog. Needs a bugfix for glib to
19700 work. Sent patch to gtk-list.
19702 * app/pixmaps/new.xpm:
19703 * app/pixmaps/eye.xbm:
19704 * app/pixmaps/lower.xpm:
19705 * app/pixmaps/raise.xpm:
19706 * app/pixmaps/delete.xpm:
19707 New files. Images for the layer dialog buttons.
19709 * lib/diagramdata.h
19710 * lib/diagramdata.c
19711 New files for the DiagramData and Layer structures and functions.
19714 Added call to create_layer_dialog() on startup.
19716 * app/commands.[ch]:
19717 New callbacks for showing the properties and layout dialog.
19718 Changes for the new DiagramData structure.
19720 * app/connectionpoint_ops.c:
19721 * app/cut_n_paste.c:
19722 * app/diagram.[ch]:
19723 * app/display.[ch]:
19725 * app/modify_tool.c:
19726 * app/object_ops.[ch]:
19727 * app/render_eps.c:
19729 Changes for the new DiagramData structure.
19732 * app/properties.c:
19733 Set correct wmclasses.
19736 Fix load and save of layers.
19739 Update DTD for layers.
19742 New menus for dialogs.
19748 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
19751 Removed the gtk 1.1.5 stuff.
19754 Updated gtk check to version 1.1.5.
19755 Updated version from 0.20 to 0.30
19757 * app/commands.[ch]:
19758 Updated some callbacks to be of type GtkItemFactoryCallback1.
19759 Not all are done yet, but it works anyway.
19762 Removed Gtk 1.0.0 GtkAcceleratorTable references.
19766 Update to Gtk 1.1.x functions.
19767 Use ItemFactory instead of MenuFactory.
19769 * app/render_gdk.c:
19770 Removed Gtk 1.0.0 references.
19772 * objects/UML/class_dialog.c:
19773 Scrolled window updates for Gtk 1.1.5.
19776 Removed ugly fix for gnome-xml bug. Make sure you get the
19777 newest version of gnome-xml from CVS.
19779 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
19782 Removed the xml load/save line.
19788 Removed building of files.c
19791 * lib/connection.c:
19795 * lib/render_object.c:
19796 * objects/UML/actor.c:
19797 * objects/UML/association.c:
19798 * objects/UML/class.c:
19799 * objects/UML/constraint.c:
19800 * objects/UML/dependency.c:
19801 * objects/UML/generalization.c:
19802 * objects/UML/implements.c:
19803 * objects/UML/large_package.c:
19804 * objects/UML/note.c:
19805 * objects/UML/realizes.c:
19806 * objects/UML/small_package.c:
19807 * objects/UML/uml.c:
19808 * objects/UML/usecase.c:
19809 * objects/network/bus.c:
19810 * objects/standard/arc.c:
19811 * objects/standard/box.c:
19812 * objects/standard/ellipse.c:
19813 * objects/standard/line.c:
19814 * objects/standard/textobj.c:
19815 * objects/standard/zigzagline.c:
19816 Removed all includes of files.h
19819 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
19822 Made the val property of string be implied.
19823 This makes it possible to save strings that
19824 are NULL. Just leave out val.
19826 * objects/lib/dia_xml.c:
19827 Fixed string so that it is possible to save strings
19828 that are NULL. Also made an ugly workaround of a
19829 bug in gnome-xml which removes empty properties.
19831 * objects/lib/orth_conn.c:
19832 Fixed a bug in saving. Forgot to step through the
19835 * objects/UML/association.c:
19836 * objects/UML/class.c:
19837 * objects/UML/constraint.c:
19838 * objects/UML/dependency.c:
19839 * objects/UML/generalization.c:
19840 * objects/UML/implements.c:
19841 * objects/UML/large_package.c:
19842 * objects/UML/note.c:
19843 * objects/UML/small_package.c:
19844 * objects/UML/realizes.c:
19845 * objects/UML/usecase.c:
19846 * objects/UML/actor.c:
19847 Fixed UML objects to save as xml.
19848 The last two were done by asierra@servidor.unam.mx (asierra-981204)
19850 * objects/UML/uml.[ch]:
19851 Updated *_write() and *_read() functions to use xml.
19853 * objects/network/bus.c:
19854 * objects/network/computer.c:
19855 * objects/network/disc.c:
19856 * objects/network/monitor.c:
19857 Updated network diagrams to use xml.
19859 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
19862 New file. DTD that describes the xml file format
19865 * lib/dia_xml.[ch]:
19866 New files. Support for saving object to xml files.
19871 Added check for and usage of gnome-xml library.
19874 Major chages. Now saves/loads diagrams as xml.
19877 * lib/element.[ch]:
19878 * lib/connection.[ch]:
19879 * lib/orth_conn.[ch]:
19880 * lib/render_object.[ch]:
19882 Updated object support load/save functions for xml:
19884 * object/standard/arc.c:
19885 * object/standard/box.c:
19886 * object/standard/ellipse.c:
19887 * object/standard/line.c:
19888 * object/standard/textobj.c:
19889 * object/standard/zigzagline.c:
19890 Updated all standard objects to use xml.
19893 Only the standard objects are converted right now, don't
19894 save or load uml or network diagrams yet. Also, since this
19895 is new code it is deemed a bit unstable.
19900 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
19902 * objects/UML/class.c:
19903 Changed classname font to Helvetica.
19904 Added more space above the classname
19906 * objects/UML/usecase.c:
19907 Correct placements of connectionpoints on ellipse.
19908 Better algorithm for deciding aspect ration on
19911 These changes were made by Alejandro Aguilar Sierra
19912 <asierra@servidor.unam.mx>. (asierra-981201)
19914 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19916 * objects/UML/actor.c:
19917 Changed the extents and alignment of the element
19920 * objects/UML/.cvsignore:
19921 Added usecase.lo and actor.lo.
19923 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19925 * objects/UML/actor.c:
19926 * objects/UML/usecase.c:
19927 * objects/UML/pixmaps/actor.xpm:
19928 * objects/UML/pixmaps/case.xpm:
19929 New files. Implements usecase and actor UML objects.
19930 These objects are done by Alejandro Aguilar Sierra
19931 <asierra@servidor.unam.mx>.
19933 * objects/UML/Makefile.am:
19934 * objects/UML/pixmaps/Makefile.am:
19935 Added usecase and actor to makefile.
19938 Added Alejandro and Jerome to autors list.
19940 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
19942 * objects/UML/class.c (umlclass_load):
19943 Fixed typo. Reported by Jerome.Abela@solsoft.fr
19945 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
19947 * app/properties.c:
19948 Update connections when doing apply in the properties window.
19950 * objects/UML/uml.[ch]:
19951 * objects/UML/class.[ch]:
19952 * objects/UML/class_dialog.c:
19953 Added connection points on both sides of attributes and
19954 operations in UML classes.
19955 Based on idea from Jerome.Abela@solsoft.fr
19957 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
19960 Some new documentation about handles and connectionpoints.
19963 Added functions object_add_connectionpoint and
19964 object_remove_connectionpoint for handling a dynamic
19965 number of connectionpoints.
19967 * objects/UML/class.c:
19968 Only reserve space for stereotype when it is shown.
19970 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
19972 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
19974 * app/connectionpoint_ops.c:
19976 * app/disp_callbacks.c:
19977 * app/display.[ch]:
19979 * app/handle_ops.c:
19981 * app/modify_tool.c:
19982 * app/render_gdk.[ch]:
19984 Huge cleanup of internal rendering system.
19985 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
19986 This gives a few new methods for Interactive Renderers for setting
19987 clipping regions and drawing pixel based lines and rects.
19988 Updated the rest of the code to use the new stuff.
19990 * app/render_eps.c:
19994 * objects/standard/zigzagline.c
19995 Fixed unused variable warnings.
19998 Fixedbug with stringwidth where width==0.
20003 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
20005 * lib/widgets.[ch]:
20006 Added suppot for setting the font of a
20007 DiaFontSelector widget.
20008 Also fixed some typos in the header.
20011 Added a comment about the GetPRoperties method call.
20012 You have to make sure to update widget state when
20013 this method is called. (Not all objects do this yet,
20019 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
20022 Fixed problem with height of ascent and descent for fonts.
20023 It didn't use the whole height (==ascent+descent) when calculatine
20024 ascent_ratio and descent_ratio.
20026 * objects/standard/textobj.c:
20027 * objects/standard/box.c:
20028 * objects/standard/ellipse.c:
20029 * objects/standard/line.c:
20030 * objects/standard/arc.c:
20031 Updated and added property dialogs for these objects.
20032 Also added line width/color/style to those objects
20033 that didn't have it.
20034 This change breaks fileformat compatibility for these objects.
20036 * objects/standard/zigzagline.c:
20037 Changed zigzagline to be based on OrthConn, much nicer.
20038 Also added line style and color to properties.
20039 This change breaks fileformat compatibility for zigzagline.
20042 Fixed bug in message(). Forgot a pair of '&'.
20044 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
20046 * lib/widgets.[ch]:
20047 Added DiaColorSelector widget.
20048 This is a colored button that pops up a color selection
20049 dialog when pressed.
20051 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
20053 * lib/widgets.[ch]:
20055 New files, added widgets for selecting fonts, alignment
20056 and line-style. Will be used later.
20058 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
20062 * objects/UML/Makefile.am:
20063 * objects/network/Makefile.am:
20064 * objects/standard/Makefile.am:
20065 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
20066 in all Makefile.am.
20068 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
20070 * app/handle_ops.c (handle_draw):
20071 connected HANDLE_MINOR_CONTROL also becomes red.
20073 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
20076 removed -ldl from linking. This is added if needed by configure.
20079 Open dlls with RTLD_LAZY if it is defined.
20080 Some cleanups: char *error -> const char *error
20081 Added fprintf()'s to where we exited because of errors.
20084 Include <sys/types.h>
20086 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
20091 Detect dlopen better.
20092 Detect wether dlopen needs an underscore in the identifier.
20093 This code was mostly borrowed from guile.
20097 * objects/standard/standard.c:
20098 * objects/network/network.c:
20099 * objects/UML/uml.c:
20101 Changed the way sheets reference objects to use just the
20102 name. Changed module loading to a two stage model:
20103 First register_objects() is called for all modules.
20104 Then register_sheets() is called. This means that
20105 sheets can safely include objects from other modules.
20108 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
20110 * objects/network/bus.c:
20111 * objects/network/network.c:
20112 * objects/network/Makefile.am:
20113 New file bus.c. Added new object: Ethernet bus.
20115 * objects/standard/box.c:
20116 Added call to gtk_spin_button_set_numeric for linewidth spinner
20117 in property dialog.
20119 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
20121 * app/connectionpoint_ops.c:
20122 * app/create_object.c:
20124 * app/handle_ops.c:
20125 * app/modify_tool.c:
20126 * lib/connection.c:
20131 * loads of objects:
20132 Changed handle->connectable to handle->connect_type.
20133 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20134 that their connections don't break when moving objects.
20137 Always select the last handle in an object that has
20138 the closest distance.
20140 * lib/geometry.[ch]:
20141 Added rectangle_add_point function.
20144 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
20146 * app/properties.[ch]: New files. Handles the new properties
20149 * app/modify_tool.c: Changed to use new properties dialog.
20151 * app/object_ops.[ch]: Removed object_changed_callback, as it's
20152 not needed anymore. This is now handled differently in
20156 Changed the properties ops for objects. Removed typedefs
20157 ChangedObjectTime and ObjectChangedFunc needed for the old way.
20158 Added object_return_null function.
20161 * lib/render_object.c:
20163 Changed objects to use the new properties dialog.
20166 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
20168 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20171 * autogen.sh: New file. Copied from gtk and added a call to
20172 libtoolize. Anyone knows why this isn't done in gtk?
20174 * Removed autogenerated files.
20176 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
20178 * Added call setlocale(LC_NUMERIC, "C") so that formating of
20179 floating-point numbers in postscript output will be correct.
20180 * Did some cleanup of generated postscript files.