1 2005-01-12 Lars Clausen <lars@raeder.dk>
3 * objects/UML/umlattribute.c:
4 * objects/UML/class_dialog.c: Better way of handling
5 connectionpoints: Don't copy them, just reference them. Finally
6 fixes bug #314153 (not quite the pi bug:)
8 * app/menus.c (display_menu_items):
9 * app/filedlg.c (file_open_response_callback):
10 * app/display.[ch] (copy_display):
11 * app/commands.[ch] (view_clone_view_callback):
12 Added functionality to clone display. Preparation for storing
13 display info in diagram files (not happening this version, though).
15 * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
16 users pointing at dia-installer.
18 2006-01-08 Hans Breuer <hans@breuer.org>
20 * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
21 (Narcelio Filho, #326075)
23 * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
24 plug-ins should not depend on app/* and it even breaks 'make distcheck'.
25 * objects/AADL/Makefile.am : added edit_port_declaration.h
26 * app/Makefile.am : added diaconv.c to EXTRA_DIST
27 => 'make distcheck' passes again.
29 * configure.in : use some more of gcc's useful warnings
31 * lib/geometry.h : removed unused functions just producing warnings
32 [sometimes it's good to read compiler warnings]
33 * plug-ins/cairo/diacairo.c : somehow a function call got lost
34 (left-hand operand of comma expression has no effect)
\r * plug-ins/metapost/render_metapost.c : dia_message_filename()
\r wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
\r from incompatible pointer type)
\r
36 2006-01-07 Hans Breuer <hans@breuer.org>
38 * objects/custom/shape_info.c(parse_path) : handle the case of
39 invalid path data more gracefully, i.e. show a warning instead
41 * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
43 * configure.in sheets/Makefile.am shapes/Gane_and_Sarson
44 shapes/Makefile.am : added Gane & Sarson shapes
47 * objects/makefile.msc : building AADL on win32
49 2006-01-06 Hans Breuer <hans@breuer.org>
51 * objects/AADL/aadl.h : avoid redefinition warnings by #undef
52 min, #undef max before local definitions
53 * objects/AADL/aadl.h : more prototypes
54 * objects/AADL/aadltext.c : for C89 declarations must be at the
55 beginning of a block. And Dia *must* be compileable with C89.
57 * objects/AADL/** objects/Makefile.am sheets/Makefile.am
58 configure.in : AADL plug-in from Pierre Duquesne. See
59 http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
61 * sheets/AADL.sheet.in : from the above patch but modified
62 to become translatable like the other sheet files. That is: the
63 french translation got temporary removed cause it does not belong here.
65 * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
67 * app/app_procs.c app/diaconv.c : get rid of run-on sentences
68 (Adam Weinberger, bug #325567)
70 * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
71 and change some other to use <control><alt>. They collide with GTK's
72 Unicode input feature. Fixes bug #320495. For rationale see:
73 http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
75 * app/display.c : pay attention to g_warnings() [should always run
76 with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
77 actually is a menu bar.
79 * lib/diarenderer.c : the righthand calculation accidentially broke
80 some arcs direction. Should be fixed again.
82 2006-01-02 Hans Breuer <hans@breuer.org>
84 * app/display.c(new_display) : also append the Input Methods menu to
85 the diagram menubar. Fixes bug #308576.
87 * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
88 freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
90 * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to
91 their localized name (with g_utf8_collate). Thus not relying on the
92 capabilities of the C libraries strcmp(). Fixes bug #160101.
94 * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
95 point and width from the (arrow-)corrected new points. Otherwise a
96 whole new wrong arc may emerge. Fixes bug #312641.
98 2006-01-01 Hans Breuer <hans@breuer.org>
100 * objects/custom/custom_object.c(cutom_update_data) : depending
101 on the handle moving let one scale (x or y) take precedence.
102 (bug #308515, Eric Deplagne)
104 * objects/UML/class.c : only perform the attributes check with
105 attributes visible to ged rid of false warnings
106 * objects/UML/class_dialog.c : need to setup Connection::object
107 after uml_attribute_new() and uml_operation_new(), again less
108 warnings but bug #314153 still not fixed.
112 * plug-ins/python/diasvg.py : more correct svg by also writing
113 xmlns="http://www.w3.org/200/svg"
115 * plug-ins/python/dot.py : skip unconnected connection lines
116 * plug-ins/python/Makefile.am : added dot.py
118 * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
121 2005-12-31 Hans Breuer <hans@breuer.org>
123 * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the
124 caching of UMLClass::attributes_strings, operations_strings,
126 It was broken by the recent code restructuring in bug #303744 and
127 - if necessary at all - nowadays it should be done on the
128 UMLAttribute, UMLOperation, UMLFormalParameter level anyway.
129 A small, much needed simplification of the code.
131 2005-12-30 Hans Breuer <hans@breuer.org>
133 * objects/UML/class.c : Patch from Dave Klotzbach
134 fixes crash bug #325151
136 * app/app_procs.c : add command line parameter --nonew to allow
137 avoiding the empty start-up diagram
138 Also give a hint on where the object-libs were missing.
139 Finally work around a misbehaviour upstreamm :
140 g_option_context_parse() returning FALSE but not setting error.
142 * app/commands.c app/app_diagram_tree.c app/interface.c :
143 Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
144 http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
146 * lib/widgets.c : image file selection finally ported to the new
147 gtk file chooser. Fixes bug #309383
149 2005-12-28 Hans Breuer <hans@breuer.org>
151 * app/commands.c(file_new_callback) : convert to filename encoding before
152 passing to new_diagram(), fixes bug #322400
154 * app/interface.c(create_display_shell) : don't clip width on screen
155 height - now commited. Also lazy creation of tooltips.
157 * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
159 2005-12-27 Hans Breuer <hans@breuer.org>
161 * app/diapsft2renderer.c(draw_bezier_outline) : only call
162 FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
163 Prefers no text output over crashing for bug #144212
165 * app/interface.c : removed superfluous call to dia_canvas_set_size().
166 Suggested by Roland Stigge, fixes bug #148149.
168 * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
169 DXF. It is not supported at all. Fixes bug #322101
171 * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
172 define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
175 2005-12-27 Hans Breuer <hans@breuer.org>
177 * app/navigation.c : protect on_da_button_release_event() against being
178 called twice. Also only popdown the navigation window after the first
179 draw (reusing nav->is_first_expose). Fixes bug #151696
181 * app/interface.c(create_display_shell): don't clip width on screen height,
184 * lib/plug-ins.c : fixed typo in comment
186 * lib/libdia.def : updated externals
187 * lib/makefile.msc : build debug.obj
189 * plug-ins/makefile.msc : building pgf in the right alphabetical order
190 * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
192 2005-12-08 Lars Clausen <lars@raeder.dk>
195 * plug-ins/pgf/pgf.c:
196 * plug-ins/pgf/render_pgf.[ch]:
197 * plug-ins/pgf/Makefile.am:
198 * plug-ins/Makefile.msc:
199 * plug-ins/Makefile.am (SUBDIRS):
200 * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
201 support for PGF output for including in (La)TeX documents that
202 allows PDF generation.
204 * samples/render-test.dia: Added samples of text in different
205 sizes, standard fonts and styles with size markers.
207 2005-12-04 Lars Clausen <lars@raeder.dk>
209 * lib/Makefile.am (gen_sources): Mark marshal files as generated.
210 (BUILT_SOURCES): Added marshal files.
212 2005-12-03 Lars Clausen <lars@raeder.dk>
214 * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
215 about $(srcdir) and confusing everybody.
220 * lib/diamarshal.list:
221 * plug-ins/python/pydia-diagram.c:
222 * plug-ins/python/pydia-diagramdata.c:
223 * plug-ins/python/python-startup.py: Patch from David Johansson
224 <david.lgj@gmail.com>: Add signals emitted when objects are
227 2005-11-13 Lars Clausen <lars@raeder.dk>
229 * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
230 (small) buffer overflow by using g_strdup_printf instead of sprintf.
232 2005-11-09 Lars Clausen <lars@raeder.dk>
235 * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
236 when reaching the statement is a bug. Using g_critical and exit() for
237 fatally wrong inputs.
240 * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
241 Klotzbach): Fixes template rendering and converts home-brew inline
242 doc format to javadoc. Doesn't yet fix bug #320934, but turns it
245 2005-11-07 Lars Clausen <lars@raeder.dk>
247 * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
248 box' since several objects have problems of using bounding box in
249 different ways (see bug #300055). For now, enclosing box ==
250 bounding box, but over time objects will learn to expand the
251 bounding box to include things only rendered interactively.
253 * app/modify_tool.c (modify_motion): Make sure highlight is reset
254 when moving between overlapping objects.
256 * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
257 diagram after toggling to make red X's come and go.
259 * lib/font.c: #ifdef'd out layout cache for bug #307320. Define
260 it if you need faster rendering and aren't afraid of crashbugs:)
262 * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
263 (dave Klotzbach): Fixes null pointer problems in free function.
265 * objects/UML/class.c
266 * objects/UML/class.h
267 * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
268 (dave Klotzbach): Make UML comments conform to UML 1.0 standard
269 and allow multi-line comments. Ugly as hell, but standard. Time
270 for a 'Strict UML' option? Fixes bug #303744.
272 * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
273 entry, exit and do descriptions to a state object. Fixes bug #65434.
275 2005-11-03 Lars Clausen <lars@raeder.dk>
284 * lib/connectionpoint.c:
289 * lib/diaarrowchooser.c:
291 * lib/diagdkrenderer.c:
297 Added documentation java-doc style. Also a few trivial cleanups.
299 2005-10-13 Lars Clausen <lars@raeder.dk>
301 * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
304 * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
309 * objects/UML/class.[ch]:
311 * objects/UML/umlattribute.c:
312 * objects/UML/umloperation.c:
313 * objects/UML/class_dialog.c:
314 Rework of the UML class attribute/operation handling. Now doesn't
315 copy connection points into the dialog data, but only the "flat"
316 data. As part of debugging made sanity check functionality.
317 Currently still dies when deleting an attribute/operation that has
320 2005-10-09 Hans Breuer <hans@breuer.org>
322 * lib/properties.h : prefer american spelling of colo(u)r for
323 user visible strings - i.e. to be translated ones.
324 * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
326 * po/*.po : updated (by 'make distcheck')
328 2005-10-09 Hans Breuer <hans@breuer.org>
330 * app/display.c : allow !"toolbox on top" without restart.
331 (Chris Hellberg, bug #310702)
333 2005-10-09 Hans Breuer <hans@breuer.org>
335 * lib/arrows.c : patch from Radek Krahl fixing the blanking
336 of two arrowheads, bug #310157
338 2005-10-08 Hans Breuer <hans@breuer.org>
340 * plug-ins/python/group_props.py : show a descriptive text instead of an
341 empty table if there are no common properties to change. Fixes bug #314432
343 2005-10-08 Hans Breuer <hans@breuer.org>
345 * objects/UML/transition.c : inverted default direction of
346 the direction. Patch from Peter Allin, fixes bug #318049
347 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
349 2005-10-08 Hans Breuer <hans@breuer.org>
351 * app/Makefile.am objects/standard/Makefile.am : match the
352 referenced icons to the needed. Make 'make distcheck' pass
353 and thus fixes bug #312152
355 * objects/standard/textobj.c : no C++ comments please!
357 2005-10-08 Hans Breuer <hans@breuer.org>
359 * objects/standard/textobj.c : preserve the position set on create
360 [makes e.g. text positioning of diasvg_import.py work]
362 * plug-ins/python/diasvg_import.py : restrict what eval() can do
363 with strings from svg files. Fixes the arbitrary code execution from
366 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
367 magnetism. At least they are distinguishable from grid snapping.
368 * app/makefile.msc app/Makefile.am : use them
370 * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
371 I also can't reproduce bug #309044 anymore (on win32).
373 2005-10-01 Lars Clausen <lars@raeder.dk>
375 * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
377 * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
378 pass FILE * as gchar *.
380 * lib/debug.[ch] (dia_assert_true): Debugging aids.
382 2005-09-29 Lars Clausen <lars@raeder.dk>
384 * objects/UML/class.h: Enabling mainpoints for UML.
386 * objects/UML/class.c (umlclass_set_props): Make sure to always
387 realloc connection point list.
389 2005-09-26 Ahmad Riza H Nst <rizahnst@id.gnome.org>
391 * configure.in: Added "id" in ALL_LINGUAS line.
393 2005-09-14 Lars Clausen <lars@raeder.dk>
395 * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
396 loading. Fixes bug #315427.
398 2005-09-11 Hans Breuer <hans@breuer.org>
400 * objects/standard/arc.c objects/standard/textobj.c : fix
401 C99isms, Dia is supposed to compile with C89 like msvc
403 * app/makefile.msc : use the wrong center-point-magnetism
404 icons for the win32 build, too.
406 * plug-ins/python/pydia-error.c : dont crash on C escape
407 sequences in the error string
408 * plug-ins/python/pydia-render.c : dont free filename twice
410 * plug-ins/python/dot.py : start of an exporter to DOT language
411 which can be processed by www.graphviz.org tools
413 2005-09-05 Iñaki Larrañaga <dooteo@euskalgnu.org>
415 * configure.in: Added "doc/eu/Makefile" for Basque documentation.
417 2005-09-04 Iñaki Larrañaga <dooteo@euskalgnu.org>
419 * configure.in: Added "eu" to ALL_LINGUAS.
421 2005-09-04 Lars Clausen <lars@raeder.dk>
423 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
424 dimensions frame to make ext_attributes work again.
426 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
427 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
430 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
431 <dooms info ucl ac be>: Add vertical alignment for standard text
432 object. This should really be moved into lib/text.c and apply to
435 2005-09-03 Lars Clausen <lars@raeder.dk>
437 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
438 mainpoint when snap-to-objects is not on.
440 * app/Makefile.am (ICON_PNG_PAIRS):
441 Fake icons for snap-to-objects.
444 * app/menus.c (menus_get_image_menubar):
446 * app/interface.c (create_display_shell):
447 * app/create_object.c (create_object_button_release):
448 * app/disp_callbacks.c (ddisplay_drop_object):
449 * app/object_ops.[ch]:
450 * app/connectionpoint_ops.c (ddisplay_connect_selected):
451 * app/modify_tool.c (modify_button_release):
453 Togglable snap-to-objects, also doesn't snap when moving entire
454 object. This should be more reasonable in practical use, and can
455 be turned off when you want to place your arrows more precisely.
457 2005-08-06 Hans Breuer <hans@breuer.org>
459 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
460 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
461 becomes even more ugly when the user has choosen *not* to build
462 the diacairo plug-in. If noone can come up with a very convincing
463 reason why it has to be done this way I'll probably go back to
464 my original dont-build-at-all approach when this breaks the
467 2005-08-02 Lars Clausen <lars@raeder.dk>
469 * objects/standard/arc.c: Patch from Grégoire Dooms
470 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
471 implementation. "There is still a small bug when the non
472 connected end of the arc is very close to the border of the
473 connected object. I think this is due to rounding errors in the
474 code for SHIFT-move handle which is reused to trim the arc in
475 autogap. Also it is not yet possible to have a startgap and an
476 endgap from/to the same central CP."
478 2005-07-31 Hans Breuer <hans@breuer.org>
480 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
481 longer for distributions official packages - depend
482 on cairo 0.6.0 - fixes bug #307144
484 2005-07-20 Hans Breuer <hans@breuer.org>
486 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
487 which must match PropDescription, that is make it at least compile.
489 2005-07-19 Hans Breuer <hans@breuer.org>
491 * app/diagram.c(new_diagram) : what comes from g_object_new()
492 MUST NOT be g_free()'d
494 * lib/message.h : added dia_message_filename() here as well.
495 Mainly to not touch all files using. They *all* where using
496 lib/message.h already! Maybe the implemantation should be moved
497 to message.c as well cause the function has *nothing* to do
498 with dynamic filename resolving. It is a wrapper around
499 g_display_filename() mostly (only?) used for messages ...
500 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
502 2005-07-18 Lars Clausen <larsrc@raeder.dk>
504 * objects/EML/instantiation.c (instantiation_load):
505 * objects/EML/interaction-ortho.c (interaction_ortho_type)
506 * objects/ER/participation.c (participation_type):
507 * objects/FS/flow-ortho.c (orthflow_type):
508 * objects/GRAFCET/vector.c (arc_load):
509 * objects/standard/zigzagline.c (zigzagline_type):
510 * objects/UML/transition.c (transition_load):
511 * objects/UML/realizes.c (realizes_load):
512 * objects/UML/dependency.c (dependency_load):
513 * objects/UML/generalization.c (generalization_type):
514 * objects/UML/association.c (association_type):
515 * objects/UML/component_feature.c (compfeat_load):
516 Make autorouting deafult on except for old diagrams.
518 * plug-ins/cairo/diacairo.c (export_data):
519 * plug-ins/cgm/cgm.c (export_cgm):
520 * plug-ins/dxf/dxf-export.c (export_dxf):
521 * plug-ins/dxf/dxf-import.c:
522 * plug-ins/hpgl/hpgl.c (export_data):
523 * plug-ins/metapost/render_metapost.c:
524 * plug-ins/pixbuf/pixbuf.c:
525 * plug-ins/pstricks/render_pstricks.c:
526 * plug-ins/python/pydia-render.c:
527 * plug-ins/shape/shape-export.c:
528 * plug-ins/svg/render_svg.c:
529 * plug-ins/svg/svg-import.c:
531 * plug-ins/xfig/xfig-export.c:
532 * plug-ins/xfig/xfig-import.c:
533 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
534 UTF-8 in message boxes.
536 2005-07-18 Lars Clausen <lars@raeder.dk>
538 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
539 to have their dimensions specified in properties. Still needs to
540 have proper update when setting properties cause constraint changes.
542 * app/preferences.c (update_floating_toolbox): Allow
543 toolbox_on_top setting to happen at once.
549 * app/sheets_dialog_callbacks.c
555 * lib/object_defaults.c:
556 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
557 for displaying in messages - better than crashing! Mostly fixes
560 * objects/UML/class.c: Save normal_font_height under the same
561 name it gets loaded as. Fixes bug #310515.
564 * doc/en/usage-customization.xml
565 * doc/en/usage-objects-special.xml
566 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
569 2005-07-17 Lars Clausen <lars@raeder.dk>
571 * doc/en/usage-customization.xml:
572 * doc/en/usage-objects.xml:
573 * doc/en/authors.xml:
574 * doc/en/usage-objects-special.xml: Applied patch from
575 stigge@antcom.de (Roland Stigge): Diverse typos and
576 misencodings. Fixes bug #308315.
578 * objects/UML/class.c (umlclass_save): Patch from
579 i.pilcher@comcast.net: Save normal font height under correct name
580 to reload it. Fixes bug #310515.
582 2005-07-10 Hans Breuer <hans@breuer.org>
584 * app/connectionpoint_ops.c app/object_ops.c : make the
585 'whole object' connection point only center point again.
586 That is: it is visible and far less magnetic. Only the
587 line gap handling make it special. For me this probably
590 * lib/neworth_conn.c : apply the same as for bug #173031.
591 This OrthConn fork got broken as well. Fixes bug #309381
593 * app/makefile.msc objects/makefile.msc : adapt to icon changes
595 * app/interface.c app/diagram_tree.c : a char** is still not
596 a char* and the win32 build is configured to error on
599 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
601 2005-07-10 Hans Breuer <hans@breuer.org>
604 Take part in the toolbox icon redesign context! If you want to
605 make them really prettier, please keep the following in mind :
606 - the size *must* be 22x22 otherwise button reflow will get broken.
607 Or you need to change about 800 icons at once.
608 - one important part of Dia are control points, so maybe the icons
609 should reflect that. (IMO gathering random icons form other
611 - the icons should at least look consistent in their group
614 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
615 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
617 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
618 * objects/standard/pixmap/* : added arc.png beziergon.png
619 bezierline.png box.png ellipse.png image.png line.png polygon.png
620 polyline.png text.png zigzagline.png
621 * objects/standard/Makefile.am : use the new icon set including
624 * app/interface.c : remove the "will probably crash" debug spew
626 2005-07-09 Lars Clausen <lars@raeder.dk>
628 * objects/standard/pixmaps/*.png:
629 * objects/standard/Makefile.am:
630 * objects/standard/*.c:
632 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
633 new icons. [Slightly belated entry]
635 2005-07-03 Hans Breuer <hans@breuer.org>
637 * app/diagram_tree.c : dont leak display name
638 * app/app_procs.c : dont leak GOptionContext
639 * app/prop_widgets.c(frame_beginprop_get_widget) :
640 Gtk api still not eating strings ...
642 * objects/UML/class.c() : don't load properties once more
643 which are already loaded by StdProps. In case of strings
644 (data_string) it has even produced leaks.
646 * app/paginate_psprint.c app/diagram.[hc] : the last
647 of the related dialogs is gone and with it the
648 misconception of destroying widgets from
650 * app/display.c : ensure the diagram is still threre
651 when we remove the display from it's list
653 2005-07-01 Hans Breuer <hans@breuer.org>
655 * lib/widgets.c(dia_color_selector_more_callback): dont
658 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
659 option. Thus linestyles can be preserved on export - at
660 least on NT based systems.
662 * NEWS : clarify the wmf outside of windows issue
664 * app/modify_too.c : fix C99ism
666 * objects/standard/arc.c : debug spew optional at compile time
668 2005-06-26 Hans Breuer <hans@breuer.org>
670 [ Cyrille would call it: warningectomy :-]
672 * lib/font.c app/create_object.c : `...' might be used uninitialized
673 in this function. Yes they were.
674 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
675 uninitialized in this function. Yes it was with textedit_activate_object()
676 Also some static correctness.
677 * lib/diarenderer.c:678: warning: no previous prototype for
678 `calculate_min_radius'. Made static.
679 * lib/dia_svg.c : ptr is a gchar *
680 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
681 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
682 * app/app_procs.c : confirm warning and make dump_dependencies() static
683 * app/autosave.c : #if 0'd old stuff
684 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
686 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
687 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
688 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
689 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
690 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
691 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
692 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
693 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
694 removed unused variables and functions
695 * objects/UML/umlattribute.c objects/UML/umloperation.c
696 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
697 neither 'missing braces around initializer' nor 'initialization from
698 incompatible pointer type'
699 * objects/UML/class_dialog.c : more static
700 * app/interface.c : static and almost const correctness and some
701 less unitialized variables.
702 * app/diapsft2renderer.c : use (int) casts like the original
703 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
704 * app/render_gdk.c: stop assignment from incompatible pointer type,
705 make member functions match the prototype.
706 * app/render_libart.c : Dito. Also stop caching the copy_gc in
707 a static variable. Otherwise it finally leaks and also may cause
708 BadMatch with changing windows
709 => warning count down from about 250 to about 60, one or two hand full
712 2005-06-26 Hans Breuer <hans@breuer.org>
714 * lib/libdia.def : added dia_font_get_description, missing
717 * app/app_procs.c : use png_get_header_ver(NULL), that is:
718 prefer function call over exported variable to get the
719 runtime version of libpng
721 2005-06-19 Hans Breuer <hans@breuer.org>
723 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
724 as suggested by Roland Stigge, bug #308310
726 2005-06-19 Hans Breuer <hans@breuer.org>
728 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
731 2005-06-18 Hans Breuer <hans@breuer.org>
733 * NEWS : mention new file dialog
735 [plugged remaining leaks from bug #142669]
736 * lib/prop_attr.c(fontprop_free) : not only unref the font
737 but free the property itself, too.
738 * app/diagram_tree.c(create_diagram_children): remember the
739 original list start to not only free the last element
741 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
742 but not used. Here it meant a potentially huge leak.
744 2005-06-18 Hans Breuer <hans@breuer.org>
746 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
747 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
748 for others, too. ( Roland Stigge, bug #144527 )
750 2005-06-18 Hans Breuer <hans@breuer.org>
752 * plug-ins/wmf/Makefile.am : prevent installation. It
753 doesn't do anything useful on *NIX and even seems to be
754 linked wrong by gcc (or me;). Fixes bug #172830
756 2005-06-18 Hans Breuer <hans@breuer.org>
758 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
759 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
760 in function declarations. 'f();' for a function without parameters is
761 a C++ism. Though I can't get any of my compilers to warn about it.
762 Finally fixes bug #142663.
764 2005-06-18 Hans Breuer <hans@breuer.org>
766 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
767 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
768 in function declarations. 'f();' for a function without parameters is
769 a C++ism. Though I can't get any of my compilers to warn about it.
770 Finally fixes the rest of bug #142663.
772 2005-06-18 Hans Breuer <hans@breuer.org>
774 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
775 changes but doesn't hurt anyway. See bug #162034
776 * app/diapsft2renderer.c app/modify_tool.c
777 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
778 instead of messing with internals
779 * app/display.c : give interactive renderers more begin/end render.
780 It is guaranteed that the scale wont change between these.
782 2005-06-18 Hans Breuer <hans@breuer.org>
784 * app/app_procs.c : const correctness for stderr_message_internal
785 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
786 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
787 * app/disp_callbacks.c : don't dereference the to the function call
788 when the function pointer in meant to be checked against 0
789 * app/interface.c : warning fixes by using correct types
790 * app/modify_tool.c : describe_props() members returns const pointer
791 * app/render_libart.c : removed most of the render function again.
792 They happily live in lib/dialibartrenderer.c since almost 3 years
793 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
794 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
795 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
796 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
797 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
798 Both mentioned in bug #159814 and not warned by most other compilers.
799 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
800 trailing colon in the GtkTypeInfo initialization
801 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
802 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
803 between char and gint8
804 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
805 * plug-ins/wpg/wpg.c : consitently use guint8
806 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
807 redefinition warnings for python and xslt plug-ins
809 2005-06-18 Hans Breuer <hans@breuer.org>
811 * lib/diagramdata.c : really get rid of diagram_data_destroy
812 and new_diagram_data [ no previous prototype for `...' is either
813 a sign of missing static or of a function to vanish :-]
815 * lib/geometry.c : apparently the G_INLINE stuff was working only
816 with particular GLib version(s), glib-2.6.4 does not. Conditionally
817 reverting to the old mecanics.
819 2005-06-17 Hans Breuer <hans@breuer.org>
821 * plug-ins/python/pydia-*.c : include order tweaking to
822 get rid of redefinition warnings. Ensure to include <Python.h>
823 before any 'system' header, some dragged in by glib.h
824 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
825 pydia-properties.c(PyDiaProperties_Str)
826 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
827 use %p to format pointers
828 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
829 dont cast to float for %d
830 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
831 use correct pointer type
832 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
833 dont discard qualifier aka dont free const strings
834 * plug-ins/python/pydia-properties.c : casts to PyCFunction
835 * plug-ins/python/pydia-property.c : removed unused function,
836 make ensure_quarks() static
837 * plug-ins/python/pydia-render.c : removed unused vars, use
838 the correct signature for begin_render
839 (dia_py_renderer_finalize): pluged a leak
840 => except -fno-strict-aliasing there is no warning left in
843 2005-06-12 Hans Breuer <hans@breuer.org>
845 * app/filedlg.c : really fix the file extension mismatch on export dialog
846 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
848 2005-06-11 Hans Breuer <hans@breuer.org>
850 * configure.in config.h.win32.h : mark as +cvs (should have been
851 done directly after the 0.94 release)
852 * NEWS : attempt to summarize 2/3 year of development
855 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
858 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
859 app/run_dia.sh --credits > THANKS => Segmentation fault
860 * app/pixmaps/Makefile.am : added group.png and ungroup.png
861 * Makefile.am : work around scrollkeeper bug
862 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
864 * po/*.po : 'noise' produced by make dist
866 2005-06-10 Hans Breuer <hans@breuer.org>
868 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
869 * objects/custom/custom_object.c : ... and use it to avoid
870 complains about missing attribute "show_background". It is
871 safe to leave this uninitialized. Same for flip_* and "text",
872 the latter with comment cause it usually is *not* safe to do
873 it for the general case. Fixes remaining issues with bug #169006
874 which where caused by an incompatible change in the shape file.
876 * app/commands.c : use "gnome-open" instead of "netscape" as
877 fallback for $BROWSER not set. Still not optimal but better
878 to try some common desktop tool than an obsolete browser;)
879 Fixes bug #307142. Also some whitespace changes.
881 * app/interface.c(toolbox_delete): avoid random return value.
882 Patch from Stanislav Brabec, fixes bug #307143
884 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
885 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
886 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
888 2005-06-06 Lars Clausen <lars@raeder.dk>
893 Better support for text edit highlight.
895 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
896 the mainpoint extra visible.
898 2005-06-02 Lars Clausen <lars@raeder.dk>
900 * objects/UML/class_dialog.c:
901 * objects/UML/class.[ch]:
902 The final fixes for mainpoint on UML Class.
904 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
905 Ian Redfern, now in color and with mainpoints! Very pretty!
907 2005-06-02 Hans Breuer <hans@breuer.org>
909 * objects/UML/class_dialog.c : the memory managment with respect to
910 attribute/operation connections was/is a mess. But it should work again ;)
912 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
913 directly from the UML Specification - to show the power of Dia and
914 some weakness. Watch the bug reports following ;)
916 2005-06-01 Hans Breuer <hans@breuer.org>
918 * app/dia.def : export diagram_update_connections_object
919 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
920 Patch from Paolo Bernardi, together with the property setting closes bug #300572
922 2005-06-01 Hans Breuer <hans@breuer.org>
924 * plug-ins/python/pydia-property.c : complete refactoring of property
925 setting, now also supports setting of property arrays
926 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
927 Python namespacing conventions
928 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
929 complete UML Classes with attributes and operations
930 * plug-ins/python/otypes.py : now also show the properties of the objects
932 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
933 (pointers), they might be changed with attributes and opertions changing
935 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
936 were broken. Apparently noone used them before.
938 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
939 which only operate on the DiagramData to the latter file. To get on the DiagramData
940 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
941 but I don't know how to reflect that in the bindings. And for backward compatibility
942 there also is the 'data' member.]
944 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
945 objects/UML/umlparameter.c : describe enums with PropEnumData
947 * app/commands.c(view_show_all_callback) : if there is something selected show
948 that instead of all exisiting objects. If there is noting or all selcted it
949 "Show all" shows the old behaviour.
951 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
952 leaks and use less allocations caused by misguided API. Also some adaption to common
955 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
957 * app/makefile.msc : added new icons and build as console app while
958 not releaseing to the general public
960 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
961 and keep a refernce when storing the a font from style="" in s.font. This should
962 finally allow to have shapes with fully predefined text (and no 'random' crashes)
964 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
965 capable to interpret it's output
967 2005-05-31 Lars Clausen <lars@raeder.dk>
969 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
971 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
973 * configure.in: Added ne in ALL_LINGUAS
975 2005-05-24 Lars Clausen <lars@raeder.dk>
977 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
978 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
981 2005-05-23 Lars Clausen <lars@raeder.dk>
983 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
985 2005-05-21 Lars Clausen <lars@raeder.dk>
987 * lib/diaarrowchooser.c:
988 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
989 'infinite' line (three dots) arrowhead. Fix line length in arrow
990 preview. And fix typo. Fixes bug #303904.
992 2005-05-20 Hans Breuer <hans@breuer.org>
994 * lib/text.c : advice from valgrind and data_string() review:
995 neither g_free() memory on the stack
996 * objects/GRAFCET/boolequation.c : ... nor const strings
997 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
1000 * app/diagram.c : a g_object_ref() following g_object_new() is almost
1001 always wrong. Why would we need two refernces?
1002 * app/app_procs.c : same here.If it crashes later on someone is dropping
1003 refernces he does not own, and *that* needs to be fixed. This is reverting
1004 "Remember to ref g_object_new'd object" (bug #170972) below, which
1005 causes more harm (leaking, hiding bugs elsewhere) than good.
1007 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
1008 diagramdata_destroy() which was only a wrapper to g_object_unref()
1010 * app/display.c(selection_changed) : don't g_strdup_printf() without
1011 g_free() later /or/ a C++ comment of me mostly denotes an error
1013 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
1015 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
1016 const gchar* entry it must not eat memory, added a lot of g_free() and
1017 some const. Fixed a bunch - i.e. *all* - warnings.
1018 * lib/widget.h : removed unused/deleted functions
1020 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
1021 avoid 'Invalid write of size 4', no luck yet
1023 2005-05-19 Lars Clausen <lars@raeder.dk>
1025 * objects/UML/class.c:
1026 * objects/UML/class.h:
1027 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
1028 for uml class object. #ifdef'd out right now.
1030 2005-05-18 Lars Clausen <lars@raeder.dk>
1032 * objects/standard/line.c: Make line adjust its actual endpoints
1033 for autogap -- looks and feels better.
1035 * objects/standard/arc.c:
1037 * app/modify_tool.c: Patch from Grégoire Dooms
1038 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
1039 shifted arc angle movement.
1041 2005-05-16 Hans Breuer <hans@breuer.org>
1043 * lib/widget.c : variable declarations need to be at the start of a block,
1044 at least as we are not using C++ or C99
1046 * plug-ins/python/pydia-property.c : implment the read part for Property
1047 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
1048 They are working quite well as can be seen with export-object.py
1050 * plug-ins/python/codegen.py : prove it once more with the generation of C++
1051 or Python code from an UML Diagram. Simply save as .py or .cxx ...
1052 * plug-ins/python/Makefile.am : install it
1054 2005-05-16 Lars Clausen <lars@raeder.dk>
1056 * app/pixmaps/{un}group.png:
1057 * app/Makefile.am (ICON_PNG_PAIRS):
1058 * app/menus.c (display_menu_items):
1059 New icons for grou/ungroup finally added, closing bug #105519.
1061 * app/Makefile.am: Dependencies for pixmaps.
1063 * app/pixmaps/connectable.png: An icon that actually makes sense
1064 for switching connectability.
1066 2005-05-15 Hans Breuer <hans@breuer.org>
1068 * lib/group.c object/UML/classicon.c : fixed leftovers of
1069 'Adding connectionpoint to _move_handle
1071 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
1072 is *ALWAYS* a memory leak. Plug some more.
1075 In preparation to make UML operations/attributes/parameters setable by Python
1076 UML class became more StdProp conformant. A nice experience to be the first
1077 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
1079 * objects/UML/umlattribute.c objects/UML/umloperation.c
1080 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
1081 split from objects/UML/uml.c and made StdProp aware
1082 * objects/UML/class.c : finally make "attributes", "operations", "templates"
1083 <template parameters> first class StdProps citizens.
1084 (umlclass_load) : removed hand-written parsing for the above, it is all done
1085 by object_load_props() now. The old write code is still in place, so be very
1086 careful when changing something - at the moment load/save it is 100% compatible
1088 * objects/UML/uml.c : now just type registration here, as it is supposed to be
1089 * objects/UML/Makefile.am objects/makefile.msc : build the new files
1091 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
1093 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
1094 (darray_prop_adjust_object_records) : don't loop forever
1095 (whole file) : use the new (working) way to get on the second level offsets.
1096 Also resolved some abbreviations, it is complicated enough without them ;)
1097 * lib/proplist.c : even complete list contents may be optional
1099 2005-05-15 Hans Breuer <hans@breuer.org>
1101 * lib/bezier_conn.c(remove_handles) : don't try to remove
1102 non-exisitng handles (patch from Radek Krahl, bug #302273)
1104 2005-05-15 Hans Breuer <hans@breuer.org>
1106 * plug-ins/metapost/render_metapost.c : locale independent output
1107 (Radek Krahl, bug #301866)
1109 2005-05-12 Lars Clausen <lars@raeder.dk>
1111 * shapes/Cisco/*.{shape,png}:
1112 * sheets/cisco*.sheet.in:
1113 Updated with color icons from Ian Redfern, closing bug #303889.
1114 Added automatic midpoints, not attempt at adjusting them.
1116 2005-05-11 Lars Clausen <lars@raeder.dk>
1118 * many shapes: Use mid of bounding box for midpoint, better than
1119 mid of connection points generally.
1121 2005-05-10 Lars Clausen <lars@raeder.dk>
1123 * lib/widgets.c: Decided on one way for the ratio thing in arrow
1124 size selector: Fixed ratio is on by default and keeps the sizes
1125 at the given ratio, but doesn't clamp them to be the same. Fixes
1128 * lib/font.c: Fix for bug #303695: Allow more than one entry of
1129 each legacy name, thereby correctly encoding bold and italic of
1130 the three main fonts. Also use | rather than || to combine slant
1131 and weight, so matching works. Had to remove binary search for
1132 new font name, but the list is short enough it's not a problem.
1134 2005-05-09 Lars Clausen <lars@raeder.dk>
1136 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
1138 2005-05-08 Hans Breuer <hans@breuer.org>
1140 * objects/UML/class.c : Reverted to have no center point.
1141 At first it looked as if there was only the bug to not increase
1142 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
1143 potentially much more dynamic connection points (to the left
1144 and right of every attribute/operation). Now simply adding one
1145 between see static and dynamic will screw up any existing diagram
1146 which makes use of the dynamic connection points. The would all
1147 be connected with an off-by-one error. I have no idea how to
1148 code around that. But breaking backward compatibility is no
1149 option here. Does not completely fix bug #303301 ...
1151 * lib/widget.c(dia_font_selector_set_font): actually set the options
1152 menu state. So we are not any longer resetting the font style on Apply.
1153 Use "UML - Class" dialog as stress text example.
1155 * app/command.c : some people insist to close diagrams already
1156 closed using tear-off menus. Maybe we should add a dialog
1157 "Do you want to call Dr. Watson now?". If there is no diagram
1158 to close anymore just do nothing, fixes bug #303221
1159 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
1160 Calling this with no display to close is a pathological case.
1162 * app/diagram.[hc] : moved object.h and other DiaObject stuff
1163 to the implementation in preparation of Big Things(tm)
1165 * app/interface.c : less warnings and make it compile. strncmp()
1166 does not take a char**, neither does gdk_pixbuf_new_from_inline().
1168 * objects/makefile.msc plug-ins/makefile.msc : less output
1170 2005-05-08 Lars Clausen <lars@raeder.dk>
1172 * lib/orth_conn.c (orthconn_init): The right place to set the
1173 default autorouting value. Fixes bug #303291.
1175 * app/display.c (ddisplay_close): Patch from Radek Krahl
1176 (ptasz3k@o2.pl): Fix crash when using from detached menu
1179 2005-05-07 Lars Clausen <lars@raeder.dk>
1181 * lib/orth_conn.c (orthconn_load): Autorouting should default to
1182 off in diagrams that don't have it explicitly. All diagrams
1183 should be explicit about it.
1185 2005-05-06 Hans Breuer <hans@breuer.org>
1187 * app/samples/Self/*.dia : some UML diagrams describing Dia's
1188 inner working (or it's future;)
1190 2005-04-26 Lars Clausen <lars@raeder.dk>
1192 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
1193 change to display of mainpoint to be easier to debug autogenerated
1196 2005-04-23 Hans Breuer <hans@breuer.org>
1198 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
1199 plug-ins/python/pydia-properties.h : use lib/ prefix for
1200 Dia internal headers with too common names (fixes bug #173061)
1202 * app/display.c : stop special casing the first display of
1203 a diagram. Every display now has it's own refernce. The initial
1204 reference gets dropped when there is no display anymore. See
1205 diagram_remove_ddisplay(). Fixes bug #300744.
1207 * app/diapsft2renderer.c : locale independent output
1208 (Radek Krahl, bug #300847)
1209 * app/paginate_psprint.c : fixing use of setlocale() calls
1210 (Radek Krahl, bug #300886)
1211 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
1212 (Radek Krahl, bug #300889)
1214 * objects/UML/class.c : fix another crash with the line
1215 wrapping code (Gabor Simon, bug #160865)
1217 * plug-ins/cairo/diacairo.c : image rendering had an endianess
1218 issue (or is this working around a libpixman bug?;)
1220 2005-04-21 Lars Clausen <lars@raeder.dk>
1222 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
1224 * shapes/**/*.shape: All shapes now have midpoints.
1226 2005-04-20 Lars Clausen <lars@raeder.dk>
1228 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
1229 (Radek Krahl): Make sure there's enough handles for the line.
1232 * objects/UML/node.c (node_draw): Better drawing method avoids
1233 garbage after moving. Fixes bug #301032.
1235 2005-04-17 Hans Breuer <hans@breuer.org>
1237 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
1238 changes (whould compile with current cvs and 0.(3|4).0
1240 2005-04-11 Lars Clausen <lars@raeder.dk>
1242 * xmldocs.make (all): Fix to put installed docs in right place
1243 under disable-gnome.
1245 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
1248 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
1249 (Leonardo Boshell): Use standard gnome help if called with Gnome.
1251 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
1252 locale issues for eps output. Fixes bug #173135.
1254 2005-04-10 Hans Breuer <hans@breuer.org>
1256 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
1257 changes (somewhat broken)
1259 * plug-ins/pstricks/render_pstricks.c : still C89 ...
1260 * objects/custom/shape_info.c : ... but with prototypes
1262 2005-04-07 Lars Clausen <lars@raeder.dk>
1265 * plug-ins/svg/render_svg.c:
1266 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
1267 Make decimal separators be correct in save file formats
1268 (non-localized). Fixes bugs #172529 and 172531.
1270 2005-04-06 Lars Clausen <lars@raeder.dk>
1272 * app/create_object.c (create_object_button_release):
1273 * app/modify_tool.c (modify_button_release): Correct activations
1276 2005-04-05 Simon Kågström <ska@bth.se>
1278 * app/app_procs.c: the --show-layers option can now handle numeric
1281 2005-04-05 Lars Clausen <lars@raeder.dk>
1283 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
1284 (Tom Kast): Avoid blockiness caused by bad updates.
1286 2005-04-03 Lars Clausen <lars@raeder.dk>
1289 * lib/beziershape.c: Main points. A crude solution, having the
1290 center in the middle of the bb. Shows a bug in the distance_from
1291 code for polyshape when a side is horizontal.
1293 2005-04-02 Lars Clausen <lars@raeder.dk>
1295 * plug-ins/pstricks/render_pstricks.c:
1296 * plug-ins/xfig/xfig-export.c: Patch from Radek
1297 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
1299 2005-04-02 Hans Breuer <hans@breuer.org>
1301 * lib/dia_image.c(dia_image_filename) : return the path
1302 again. (bug #172416, Radek Krahl)
1304 2005-04-01 Steve Murphy <murf@e-tools.com>
1306 * configure.in: Added "rw" to ALL_LINGUAS.
1308 2005-03-31 Lars Clausen <lars@raeder.dk>
1310 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
1312 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
1315 * objects/network/basestation.c: Main points.
1317 2005-03-27 Hans Breuer <hans@breuer.org>
1319 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
1320 * app/pixmaps.h : removed arrow.xpm
1321 * lib/Makefile.am : added diamarshal
1322 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
1323 => makes 'make dist' pass and produce a useable package
1325 * po/*.po : 'noise' profuced by make dist
1327 2005-03-24 Lars Clausen <lars@raeder.dk>
1329 * objects/flowchart/parallelogram.c (pgram_update_data):
1330 * objects/flowchart/ellipse.c (ellipse_update_data):
1331 * objects/flowchart/diamond.c (diamond_update_data):
1332 * objects/flowchart/box.c (box_update_data): Main points.
1334 * objects/custom/custom_object.c (custom_create):
1335 * objects/custom/shape_info.h:
1336 * shapes/Assorted/square.shape:
1337 * objects/custom/shape_info.c (load_shape_info):
1338 * doc/shape.dtd: Added main point support to shapes, and an
1339 example of how to use it.
1341 2005-03-21 Lars Clausen <lars@raeder.dk>
1343 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
1344 unnormalize from same point as you normalize, or else!
1346 2005-03-20 Lars Clausen <lars@raeder.dk>
1348 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
1349 Remember to ref g_object_new'd object.
1351 2005-03-19 Hans Breuer <hans@breuer.org>
1353 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
1354 have configurations, fixes bug #170962
1356 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
1357 or better not used any longer. Fixes bug #169142.
1359 * lib/element.c(element_update_connections_rectangle): don't initialize
1360 the eighth point twice but instead the nineth once
1362 * objects/standard/bezier.c : no C++ comments *please*
1364 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
1366 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
1367 * plug-ins/python/pydia-image.c : ... so, don't do it!
1369 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
1370 also named colors via pango_color_parse()
1372 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
1374 * lib/libdia.def : updated externals
1376 * app/object_ops.c : still not C99 everywhere
1378 2005-03-19 Hans Breuer <hans@breuer.org>
1380 * lib/autoroute.c : at least it should compile ;)
1382 2005-03-19 Lars Clausen <lars@raeder.dk>
1384 * lib/autoroute.c: Orthconns now do autogap.
1386 2005-03-17 Lars Clausen <lars@raeder.dk>
1388 * app/authors.h: Added Gregoire Dooms for gap stuff.
1390 * objects/standard/polyline.c: Patch from Grégoire Dooms
1391 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
1393 * objects/standard/bezier.c: Patch from Grégoire Dooms
1394 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
1398 * objects/UML/state_term.c:
1399 * objects/UML/large_package.c:
1400 * objects/UML/node.c:
1401 * objects/UML/object.c:
1402 * objects/UML/small_package.c:
1403 * objects/UML/state.c:
1404 * objects/UML/usecase.c:
1405 * objects/UML/note.c:
1406 * objects/UML/actor.c:
1407 * objects/UML/classicon.c:
1408 * objects/UML/component.c:
1409 * objects/Misc/analog_clock.c:
1410 * objects/Jackson/requirement.c:
1411 * objects/Istar/goal.c:
1412 * objects/Istar/actor.c:
1413 * objects/FS/function.c:
1414 * object/standard/box.c:
1415 * objects/ER/entity.c:
1416 * objects/ER/relationship.c:
1417 * objects/ER/attribute.c: Main points added. Distance_from fixed
1418 in attribute, broken in relationship, I* goal, Jackson
1419 requirement, analog_clock, all non-rectangular UML elements,
1422 * lib/element.[ch]: New method to help update connection points.
1424 * app/menus.c: Change Help/Manual to Help/Contents to follow
1427 * objects/standard/line.c:
1428 * lib/geometry.[ch]:
1429 * objects/standard/bezier.c: Patch from Grégoire Dooms
1430 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1431 bezier objects. Autogap nowchanged to be a function of the
1435 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1438 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1439 CP_FLAG_ANYPLACE connpoints.
1441 2005-03-16 Lars Clausen <lars@raeder.dk>
1443 * app/interface.c (create_tools): Removed debug printf.
1445 2005-03-15 Lars Clausen <lars@raeder.dk>
1447 * lib/widgets.[ch]: Constification.
1449 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1452 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1454 * lib/connectionpoint.h: Flags for connection points.
1456 * app/create_object.c (create_object_motion):
1457 * app/modify_tool.c (modify_motion): Minor refactoring.
1459 * app/object_ops.c (object_find_connectpoint_display): Extend with
1460 finding connpoints that cover entire objects.
1462 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1464 * objects/custom/custom_object.c (custom_setup_properties): Avoid
1467 2005-03-13 Hans Breuer <hans@breuer.org>
1469 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1471 2005-03-13 Hans Breuer <hans@breuer.org>
1473 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1474 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
1475 dia_svg_style_copy(), dia_svg_style_init()
1477 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1480 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1481 not wrapped in the style attribute
1483 * plug-ins/svg/svg-import.c : implement nested group handling and style
1484 'style inheritance'. Still no transformations, no <image/>, no <style/>
1487 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1488 the latter is for programmers.
1489 Also be more tolerant if the document root namespace is not 'svg'. If the svg
1490 namespace is defined in the file search for the top node including svg. This
1491 allows us to re-read the svg part of our own shape format.
1493 * lib/libdia.def : there is no give_focus_to_object
1494 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
1495 type as an expression
1497 * lib/geometry. c : use G_IMPLEMENT_INLINES
1498 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1500 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1501 gone when trying to remove the focus
1503 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1504 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1505 case of this plug-in, i.e. producing output files]
1507 2005-03-13 Lars Clausen <lars@raeder.dk>
1509 * lib/Makefile.am (BUILT_SOURCES):
1510 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1511 the building of the icons header files.
1512 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1514 2005-03-13 Hans Breuer <hans@breuer.org>
1516 * configure.in : require Cairo 0.3.0
1517 plug-ins/cairo/diacairo.c : changed to match ;-)
1519 * app/app_procs.c() : new function dump_dependencies()
1520 which gets called by: dia --version --verbose
1521 and may help to track version dependent problems in
1524 * lib/font.c : reverted to previous version cause using
1525 not implemented Pango API did not improve the issue.
1526 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1527 for more information.
1529 * lib/dialinechooser.c : a little shrinking of the
1530 initial size (to work around line wrappjing the right
1533 2005-03-11 Lars Clausen <lars@raeder.dk>
1535 * app/textedit.c: Concentrate start/end editing in single functions.
1537 2005-03-10 Lars Clausen <lars@raeder.dk>
1540 * lib/object.h: Added new object function to allow the object to
1541 be notified when its text is being edited.
1544 * app/modify_tool.c:
1547 * lib/focus.c: Remove sideeffects from focus objects, add getter
1550 2005-03-09 Lars Clausen <lars@raeder.dk>
1552 * lib/Makefile.am (dia-lib-icons.h):
1553 * app/Makefile.am: Minor cleanup.
1555 2005-03-06 Hans Breuer <hans@breuer.org>
1557 * app/app_procs.c : avoid "assignment within conditional expression"
1558 and handle -L for the GOption case as well.
1560 * lib/widget.c : strchr() does not return -1 on not found but NULL;
1561 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
1562 indirection from 'const int '
1564 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
1565 large_arc, thus produce correct arc output (like diasvg.py does;),
1568 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
1569 from objects/custom/shape_info.c to be shared with object/custom and
1570 plug-in/svg -> finally the C based svg-import reads pathes again.
1571 Added arc parsing while I was there, which fixes bug #169191
1572 * objects/custom/shape_info.c(parse_path) :
1573 * plug-ins/svg/svg-import : reuse above function
1574 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1575 But in general this does only support a small subset of what is
1578 2005-03-06 Lars Clausen <lars@raeder.dk>
1580 * objects/UML/association.c: Patch from Dave Klotzbach applied:
1581 Add visibility to association arrow. Fixes bug #157012.
1583 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1584 closing bug #161040.
1586 * app/layer_dialog.c (create_button_box): Use stock icons instead
1587 of homemade onces. Gets us rid of four more XPMs.
1589 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
1591 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
1592 This option permits command line control of which layers are visible.
1593 Useful when automatically exporting multiple versions of the same
1594 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
1595 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
1596 and made it static since its only used in that file.
1597 * app/authors.h: added myself
1598 * doc/en/dia.1: documented the switch
1599 * doc/en/usage-layers.xml: ditto
1601 2005-03-05 Alan Horkan <horkana@tcd.ie>
1603 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
1604 this restores how Dia behaved before the GTK2 port and seems to help
1605 allow the toolbox to be more easily resized. Bug #108891.
1607 2005-03-05 Lars Clausen <lars@raeder.dk>
1609 * Civil/civil_motor.shape:
1610 * Civil/civil_rotor.shape:
1612 * Logic/buffer.shape:
1613 * Logic/connector.shape:
1614 * Logic/inverter.shape:
1620 * shapes/Assorted/arrow-left-up.shape:
1621 * shapes/Assorted/heptagon.shape:
1622 * shapes/Assorted/star5.shape:
1623 * shapes/Assorted/trapezoid.shape:
1624 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
1625 defaults, see bug #169143.
1627 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
1630 * doc/en/Makefile.am: Finally figured out the right way to ask for
1631 the manpage xslt. Closes bug #144539.
1633 2005-03-01 Lars Clausen <lars@raeder.dk>
1635 * lib/Makefile.am (nodist_include_HEADERS):
1636 * app/Makefile.am: Correctly generate these files from PNGs with
1641 * lib/widgets.c: Refactor toggle button factory to allow inline
1644 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
1646 * app/makefile.msc (ICON_PNG_PAIRS):
1647 * app/dia-app-icons.h: Updated with more icons.
1650 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
1653 * app/interface.c (create_display_shell):
1654 * app/layer_dialog.c (dia_layer_widget_init):
1655 * lib/dia_image.c (dia_image_get_broken): Use inlined data
1658 * app/display.c (ddisplay_close): Removed unused includes.
1660 2005-03-01 Lars Clausen <lars@raeder.dk>
1662 * app/sheets.c (create_object_pixmap): Create a placeholder image
1663 for when the real image is missing. Better than crashing:)
1666 2005-02-25 Hans Breuer <hans@breuer.org>
1668 * app/app_procs.c : don't requets to open a default display with
1669 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
1671 2005-02-22 Lars Clausen <lars@raeder.dk>
1673 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
1676 2005-02-19 Lars Clausen <lars@raeder.dk>
1678 * app/menus.c (display_menu_items): Applied patch from bug #94019:
1679 Menu cleanup and addition of icons. Also a few additional stock
1682 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
1685 2005-02-14 Lars Clausen <lars@raeder.dk>
1687 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
1689 2005-02-13 Lars Clausen <lars@raeder.dk>
1691 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
1692 width. Seems to work. Once tested some more, needs old code
1695 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
1696 warning by escaping & properly.
1698 2005-02-06 Lars Clausen <lars@raeder.dk>
1700 * app/filedlg.c (file_export_callback): Set correct extension as
1701 soon every time the dialog is shown. Fixes bug #162535.
1703 * app/display.c (ddisplay_set_origo): Use more standard
1706 * app/modify_tool.c (modify_motion):
1707 * app/create_object.c (create_object_motion): Put coordinates of
1708 handle/object in status bar while moving. Fixes bug #163164.
1710 2005-02-03 Lars Clausen <lars@raeder.dk>
1712 * lib/.cvsignore: Added generated files diamarshal.[ch]
1714 2005-02-02 Lars Clausen <lars@raeder.dk>
1716 * configure.in: Add GLIB_GENMARSHAL def as suggested in
1717 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
1718 Now compiles on Linux.
1720 2005-02-01 Lars Clausen <lars@raeder.dk>
1722 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
1723 need to translate the empty string. Especially not after
1724 g_assert_not_reached(). Fixes bug #165966.
1726 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
1728 * objects/UML/activity.c : add fill- and line-colour properties
1729 [applied by Hans Breuer, fixes bug #163260]
1731 2004-01-28 Hans Breuer <hans@breuer.org>
1733 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
1734 update provided by Alan Horkan (fixes bug #159592)
1736 2004-01-28 Hans Breuer <hans@breuer.org>
1738 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
1739 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
1740 generalization, dependancies, parameterized classes ...
1741 * plug-ins/xslt/styleshetts.xml : refernce it
1742 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
1744 2004-01-28 Hans Breuer <hans@breuer.org>
1746 * objects/UML/transition.c : fill out the extra_spacing struct
1747 in the OrtConn member, in order to avoid artifacts when draggin
1748 the transition. (patch by Peter Allin, bug #144956)
1750 2004-01-15 Hans Breuer <hans@breuer.org>
1752 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
1753 to something differnt than 0. Apparently there are case where Dia misses
1754 to appropriately set it before requesting a dashed line (simple line with
1755 arrow as described in bug #151716)
1757 * lib/dia_dirs.c : special casing for drive letters which I broke with
1760 2005-01-13 Hans Breuer <hans@breuer.org>
1762 * app/interface.c(create_sheet_page) : remved dead long time code
1764 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
1765 it is availbale via header - which is the better style anyway
1767 2004-12-31 Hans Breuer <hans@breuer.org>
1769 * lib/dia_dirs.c(dia_get_canonical_path) : complete
1770 rewrite to handle something like /mnt/some/where/../else
1771 too. Workaround for bug #162637.
1772 * app/filedlg.c : call gtk_file_chooser_set_current_name()
1773 to workaround gtk_file_chooser_set_filename() not setting
1774 it if the file does not exist
1776 * sheets/Jackson.sheet.in app/menus.c : fixed typos
1777 (Frank Arnold, bug #161676)
1779 2004-12-31 Steffen Macke <sdteffen@gmail.com>
1781 * doc/pl/*.xml: Added XML prolog
1782 * makefile.msc: Added libxslt, fixed libxml, libart
1784 2004-10-29 Alexander Shopov <ash@contact.bg>
1786 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
1788 2004-12-29 Lars Clausen <lars@raeder.dk>
1790 * configure.in: Make gnomeprint be truly off by default (typo) and
1791 show optional compilation correctly.
1792 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
1794 2004-12-22 Hans Breuer <hans@breuer.org>
1796 * lib/widgets.c : destroy handlers can be called more than once,
1797 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
1799 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
1801 * app/display.c : temporary debug code showing the
1802 timing the rendering
1804 * app/dialibartrenderer.c(draw_string) : removed dead
1805 code loading and leaking font and face
1807 2004-12-15 Hans Breuer <hans@breuer.org>
1809 * app/display.c : actually use the selction-changed signal for something
1810 useful. Show selections representation on statusbar.
1811 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
1812 * app/diagram_tree.c : use new function (as in app/display.c) and only
1813 poke into property internals at one place
1814 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
1817 2004-12-12 Hans Breuer <hans@breuer.org>
1819 * lib/libdia.def app/dia.def : updated externals
1821 * objects/custom/custom_object.c : custom_destroy is called per object.
1822 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
1823 reference to it. Fixes e.g. bug #158288, #160550, ...
1825 * objects/UML/association.c(association_draw) : completed porting to
1826 draw_polyline_with_arrows()
1827 (association_update_data_end) : fixed typo in point compare
1828 (association_update_data) : for name placement take degenerated
1829 segements into account. Together this fixes bug #143891
1831 2004-12-11 Hans Breuer <hans@breuer.org>
1833 * lib/widgets.c(set_size_sensitivity) : revert inverted
1834 logic for arrorw size selections, fixes bug #160527
1836 2004-12-11 Hans Breuer <hans@breuer.org>
1838 * lib/widgets.c(dia_font_selector_set_font) : initialize
1839 the font style widget, too. Gets rid of empty font
1840 style and thus default broken font style, e.g. UML::class_name
1842 * lib/widgets.c(dia_color_selector_more_callback) : fill
1843 the color palette from dynamic menu entries and also
1844 preselect the current color to the last select entry
1846 * plug-ins/python/pydia-diagramdata.c : hold a reference
1847 to the underlying GObject
1849 * app/Makefile.am app/diagrid.h : new file containing the
1850 grid 'class' moved from DiagramData to Diagram.
1851 Also moved pagebreak_color and guides cause they are only
1852 used for visual appearance not 'data'.
1853 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
1854 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
1857 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
1858 lib/libdia.def : get rid of new_diagram_data()
1859 Diagram _is_ DiagramData (and does not have one any longer,
1860 just a compatibility pointer)
1862 * lib/diarenderer.h : a small doc improvement
1864 2004-12-11 Hans Breuer <hans@breuer.org>
1866 * objects/UML/class.c : line wrapping code buffer
1867 overrun fixed by Gabor Simon, bug #160865
1869 2004-12-11 Hans Breuer <hans@breuer.org>
1871 * plug-ins/python/pydia-diagram.c : hold a reference
1872 to the diagram in PyDiaDiagram, avoids bug #159080
1873 [another way to avoid is to detroy the dialog by
1874 clsoing it. But now there is still a diagram to
1875 apply the changes to, even if it's thrwon away just
1878 2004-12-10 Hans Breuer <hans@breuer.org>
1880 * **/*.c : fixed a bunch of warnings, not only for -ansi
1881 (still too many of them, but -ansi works)
1883 prop_geomtypes.h prop_geomtypes.c:306: warning: static
1884 declaration for `fontsizeprop_reset_widget' follows non-static
1885 dia_dirs.c:196: warning: return discards qualifiers from
1889 shape_info.c:121: warning: static declaration for `parse_path'
1893 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
1894 arrow.c:244: warning: unused variable `i'
1895 arrow.c:245: warning: unused variable `p'
1896 arrow.c:246: warning: unused variable `zzr'
1898 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
1899 finally removed c++ comments
1901 objects/Istar/goal.c : initialize connections::directions
1902 while I was there - helps autorouting
1904 * objects/KAOS/metaandorrel.c objects/Istar/link.c
1905 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
1906 (it would be quite simple to add image-from-memory support
1909 * pydia-*.h : warning: no newline at end of file
1911 * plug-ins/gprint/diagnomeprint.c : allow to unregister
1912 and follow new unique name naming convention
1913 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
1916 2004-12-07 Hans Breuer <hans@breuer.org>
1918 * objects/UML/message.c : better default for initial text placement
1919 a suggested in bug #154306, Henning Mersch
1920 * objects/UML/constraint.c : doing the same
1922 * app/filedlg.c : include persistence.h for persistence_get_integer
1923 * lib/libdia.def export it
1925 2004-12-05 Hans Breuer <hans@breuer.org>
1927 * app/grid.c : respect dynamic grid during snap-to, fixes
1928 bug #135124, Dmitriy Morozov. Added some additional magic
1929 to make the grid size more useable.
1931 2004-12-05 Hans Breuer <hans@breuer.org>
1933 * app/app_procs.c : make it compile for the HAVE_POPT and
1934 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
1936 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
1937 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
1938 when interactive. Fixes bug #119329
1940 * plug-ins/cairo/diacairo.c : adapt to new type naming
1941 scheme (introduced by accident;-) for pixbuf-*
1942 * app/app_procs.c : reflect both type name changes
1944 2004-12-04 Hans Breuer <hans@breuer.org>
1946 * objects/standard/image.c : fix the correct warning
1947 `image_file_name' might be used uninitialized
1949 * app/filedlg.c : near complete rewrite
1950 - removed 'related dialog', GtkOptionMenu, most global vars,
1951 also don't hide the dialog but let it go.
1952 - added: filter view by extension, hopefully working diagram
1953 referencing, GtkComboBox usage
1955 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
1956 of im/export filter entries. So the user interface reflects
1957 the dynamic nature of pixbuf loaders
1959 * lib/filter.[ch] : implement filter_unregister_*port
1960 lib/libdia.def : added new functions
1961 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
1962 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
1963 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
1964 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
1965 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
1966 use them in _plugin_unload () thus all these plug-ins
1967 can be loaded used and unloaded during Dia's runtime
1969 2004-12-04 Lars Clausen <lars@raeder.dk>
1971 * lib/diagramdata.h: Access methods for units defined per diagram.
1973 * lib/font.c (dia_font_new_from_style): More proper object creation.
1975 * lib/properties.h: Refactored the PROP_STD_* macros to allow
1978 * app/diagram.c (diagram_init): Force filename to be absolute
1979 path, easing the job for load/save.
1981 2004-12-03 Hans Breuer <hans@breuer.org>
1983 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
1984 added dia_font_set_height, dia_font_copy (note to self: don't try to
1985 maintain these from the *NIX side ;)
1987 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
1988 the new color selection anymore
1989 * objects/UML/class_dialog.c : with the above change it would have been more
1990 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
1991 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
1993 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
1994 (used in object vtable) and make its prototype match
1996 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
1997 correlate any of these strange crashing bug with it, but assume bad things to
1998 happen when one passes stack allocated stuff to gtk_type_unique()
2000 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
2001 not there. Fixes most of the warnings from bug #156996
2003 * lib/makefile.msc : rules to generate diamarshal.[ch]
2005 2004-11-29 Hans Breuer <hans@breuer.org>
2007 * app/disp_callbacks.c : reenable so-called preedit
2008 as described in bug #158859, Etsushi Kato
2009 Also fixed some compiler warnings while there.
2011 * objects/standard/image.c(get_directory) : make
2012 the documentation match the implementation.
2013 (image_save) : don't write a leading slash on
2016 * plug-ins/gprint/diagnomeprintrenderer.c :
2017 switched to gnome-print-pango usage
2019 * app/app_procs.c configure.in : although Dia
2020 is not threaded it appears as if we have to
2021 g_thread_init() to avoid crashing in some
2022 libraries which are thread enabled
2024 * lib/diamarshal.list lib/Makefile.am : start of
2025 using GSignal to clean up some object relations
2026 * lib/libdia.def : export marshallers
2027 * app/diagram.[ch] : emit signals when REMOVED,
2029 * app/display.c : added a connection to
2030 SELECTION_CHANGED to test the new signal stuff
2032 * app/diagram.c : fixed diagram_finalize while I
2035 2004-11-28 Hans Breuer <hans@breuer.org>
2037 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
2038 the text if conversion to current locale fails. [This is actually
2039 using code written four years ago;]
2040 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
2042 * objects/standard/image.c(image_load) : be more robust against
2043 filenames which seem to be absolute
2045 2004-11-27 Hans Breuer <hans@breuer.org>
2047 * app/filedlg.c(file_save_callback) : convert to
2048 filename encoding before passing to diagram_save()
2049 Fixes bug #158381, thanks to Robert Ögren
2051 2004-11-27 Hans Breuer <hans@breuer.org>
2053 * lib/dialibartrenderer.c : sometimes its good to read
2054 compiler warnings. Not only define renderer_finalize
2055 but actually *use* it. Should plug a potential huge
2058 * configure.in plug-ins/Makefile.am
2059 plug-ins/gprint/Makefile.am : build the experimental
2060 gnomeprint plug-in on *NIX, too.
2061 * plug-ins/gprint/diagnomeprint.c : don't include
2062 specific (private) backend headers but instead select
2063 the desired backend via config key setting
2065 * lib/diagdkrenderer.c : add 1 to size of filled arc
2066 to be rendered by gdk. Fixes bug #150896.
2068 * plug-ins/gprint/diagnomeprint.c
2069 plug-ins/gprint/diagnomeprintrenderer.c : added magic
2070 to better match page and dash sizes
2072 2004-11-27 Hans Breuer <hans@breuer.org>
2074 * plug-ins/shape/shape-export.c : it's g_strdup_printf
2076 2004-11-27 Hans Breuer <hans@breuer.org>
2078 * app/app_procs.c : mention eps-builtin aka. "using
2079 latin1", does not fix the eps-pango issues but #150571
2081 2004-11-27 Hans Breuer <hans@breuer.org>
2083 * sheets/Cybernetics.sheet.in : changed encoding to
2084 utf-8, patch from Takeshi AIHANA, fixes #149580
2086 2004-11-27 Hans Breuer <hans@breuer.org>
2088 * objects/custom/custom_object.c : many existing shapes
2089 rely on a square default size, revert to it although
2090 it originally was by a typo. Fixes bug #148527.
2092 2004-11-27 Hans Breuer <hans@breuer.org>
2094 * app/load_save.c(dia_cleanup_autosave)
2095 app/diagram.c : don't use dia->filename if already
2096 freed and dont use printf at all.
2098 * app/paginate_psprint.c : not only set the renderer::paper
2099 but also renderer::is_portrait. Should fix bug #142524
2101 2004-11-26 Hans Breuer <hans@breuer.org>
2103 * dia.desktop.in : added Bug Buddy headers (as seen
2104 in planner). Hopefully the automatically filling of
2105 bugs is more meaningful by this.
2107 * objects/custom/custom_util.c objects/standard/image.c
2108 lib/plug-ins.c : getting rid of deprecated g_dirname,
2109 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
2110 bytes inside a block of size 44 free'd
2112 * lib/persistence.c(persistence_load_list) : don't
2115 * lib/diaerror.[ch] : (new file) start of better error handling
2116 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
2117 added new files/funcs
2118 * lib/proplist.c lib/propinternals.h (prop_list_load) :
2119 allow to propagate error to caller. Also set PXP_NOTSET
2120 to avoid applying unset properties, fixes bug #155255
2121 * lib/propobject.c lib/prop_sdarray.c : still spewing
2122 g_warnings but now with context information
2124 * app/filedlg.c : more absolute filenames where required
2125 and strip them where we need the filename only
2126 Also explicit DONT choose gnome-vfs backend cause its
2127 threading appears to crash Dia - at least in GNOME build,
2130 2004-11-26 Hans Breuer <hans@breuer.org>
2132 * app/filedlg.c : don't use relative filenames for
2133 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
2135 (export_set_extension) : if we don't have a filename don't
2136 use it in strrchr() to avoid crashing
2138 2004-11-23 Hans Breuer <hans@breuer.org>
2140 * app/app_procs.c : fixed build for the GNOME case
2141 (let's rip out POPT and depend on glib-2.6, please ;-)
2143 2004-11-23 Hans Breuer <hans@breuer.org>
2145 * app/app_procs.c : fixed typo which broke the
2146 build for HAVE_POPT case
2148 2004-11-21 Hans Breuer <hans@breuer.org>
2150 * app/app_procs.c : some more #if-mess, but one day
2151 we should rely on GLib's 2.6 Option Parser alone
2153 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
2154 and height for RoundRect() - otherwise size depends on offset,
2155 shorten the unique name
2157 * plug-ins/python/diamodule.c : provide a unique name
2158 for python filters as well
2160 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
2161 by using the right colors (need black background cause we
2162 are tinitng it with the real color later)
2164 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
2165 instead of hardcoded slahes, improved portability
2167 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
2168 plug-in. Also added some more error reporting (e.g. no printer driver)
2170 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
2171 plug-ins/makefile.msc : resurrection of the gnome print renderer.
2172 Kinda works (alpha quality) for export but does not print yet.
2173 With bug #158972 resolved this does even work on win32 :-)
2175 2004-11-07 Hans Breuer <hans@breuer.org>
2177 * doc/diagram.dtd : <composite> can have <composite/>,
2178 <font/> has two 'optional' atributes 'style' and 'family',
2179 these are used to store new (since 0.91) font info.
2180 With this changes non of the issues in bug #147431 remains.
2182 * plug-ins/python/otypes.py : starting to implement an
2183 'create all known object' file as ne stress test source
2184 for the dtd and Dia in general.
2186 2004-11-06 Hans Breuer <hans@breuer.org>
2188 * app/diapsrenderer.c : don't convert to locale but to
2189 "LATIN1", fixes bug #146641
2191 2004-11-06 Hans Breuer <hans@breuer.org>
2193 * app/diagram_tree.c : still no C99 everwhere ...
2194 * lib/libdia.def : update externals
2195 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
2197 * app/app_procs.[hc] : declare, use ...
2198 app/winmain.c : ... and implement dia_redirect_console().
2199 Even though newer Gtk version don't popup a console window
2200 anymore redirecting the error messages to a file in $TEMP appears
2201 to be much more reasonable than just ignoring it. Fixes bug #150777
2202 based on a patch from Steffen Macke
2204 2004-11-06 Hans Breuer <hans@breuer.org>
2206 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
2207 RoundRect() for high level renderer api implementation thus
2208 fixing bug #138744 reported by Lars Clausen
2210 2004-11-06 Hans Breuer <hans@breuer.org>
2212 * app/prefernces.c : applied patch to make showing the diagram
2213 menubar the default (advanced users know how to switch it off)
2214 Fixes bug #150706, Steffen Macke
2216 2004-11-06 Hans Breuer <hans@breuer.org>
2218 * app/commands.c app/commands.h : added view_fullscreen_callback()
2220 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
2221 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
2222 ALso modified to allow handling of unmodified keys again (aren't
2223 there plenty of bug reports for this?
2225 2004-11-06 Hans Breuer <hans@breuer.org>
2227 * objects/UML/class_dialog.c : fixed casts for usage
2228 of dia_color_selector_set_color()
2230 * app/filedlg.c : pass a valid filenames to
2231 gtk_file_chooser_set_filename(), if we don't have a name
2232 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
2233 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
2234 assertion `local_full_path[0] == '/'' failed"
2236 2004-11-06 Lars Clausen <lars@raeder.dk>
2238 * app/properties.c (create_dialog):
2239 * app/diagram_tree_window.h:
2240 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
2241 * app/diagram_tree_menu_callbacks.c:
2242 * app/diagram_tree_window.c:
2243 * app/diagram_tree_menu.c:
2244 * app/diagram_tree.c: Changed to use persistence instead of
2245 strange hacks in preferences.
2247 * lib/persistence.h:
2248 * lib/persistence.c (persistent_list_get_glist): Don't deref null
2249 pointer. New function persistent_list_remove_all, and
2250 fixed persistent_list_remove to ... work!
2252 2004-11-05 Lars Clausen <lars@raeder.dk>
2254 * app/paginate_psprint.c (diagram_print_ps): Call
2255 diagram_print_destroy on destroy rather than delete_event. That
2256 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
2259 2004-11-02 Lars Clausen <lars@raeder.dk>
2261 * objects/UML/class.c (umlclass_load): Actually load the saved
2262 fonts and font sizes. Fixes bug #157016
2264 * configure.in: Require at least GTK+ 2.4.
2266 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
2267 finally, finally. Not quite bulletproof yet, and I need to figure
2268 out a minimum version of Gtk that doesn't spew warnings all over.
2270 * app/diagram.[ch]: diagram_set_filename with const filename.
2272 * app/sheets_dialog_callbacks.c
2273 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
2274 correctly recreated. Still something fishy with the sheet menu in
2275 the dialog after adding a new sheet. Probably the sheet name
2278 2004-11-01 Lars Clausen <lars@raeder.dk>
2280 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
2281 stmping. Now requires g_free here and there.
2283 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
2284 for remembering last sheet, better off as persistent string. Must
2285 hunt down other things like that.
2287 * app/interface.c (create_sheets): Now remembers last sheet
2288 selected again. Fixes bug #157036.
2290 2004-11-01 Hans Breuer <hans@breuer.org>
2292 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
2293 will never become NULL but only point to the next char
2294 which might indeed be \0]
2295 Use tex_escape_string() to avoid writing invalid tex,
2298 * **/* : a bunch of changes caused by trying 'make distcheck'
2299 which still fails, see Bug #144527
2301 2004-10-31 Lars Clausen <lars@raeder.dk>
2303 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
2304 floating point numbers being printed with commas. Fixes bug
2307 * app/interface.c (create_sheet_dropdown_menu): New function to
2308 create the sheet menu, and also allow recreation. Still buggy and
2309 slightly prone to magic.
2311 * objects/UML/class_dialog.c
2312 (attributes_list_selection_changed_callback): Don't try to update
2313 the widgets after they're destroyed. Fixes bug #156706 (I think).
2315 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
2316 adjustement. Fixes bug #154637
2318 * sheets/ER/Makefile.am (PIX):
2319 * sheets/GRAFCET/Makefile.am (PIX):
2320 * sheets/Jackson/Makefile.am (PIX):
2321 * sheets/Istar/Makefile.am (PIX):
2322 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
2323 XPM. Why these have their pictures in sheets rather than shapes I
2324 don't know. Fixes bug #152142.
2326 2004-10-31 Hans Breuer <hans@breuer.org>
2328 * plug-ins/pixbuf/pixbuf.c : when running non interactive
2329 Dia won't call color_init() as it assumes no display. If
2330 we have one as tested ourselve we can as well color_init()
2331 to avoid g_warnings() and produce the right collors.
2334 * app/app-procs.c : try to be a little more helpful
2335 and correct with regard to the command line options.
2336 Renamed --export-to-format to --export-filter and some
2337 other string changes
2339 2004-10-31 Hans Breuer <hans@breuer.org>
2341 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
2342 added GetDeviceCaps() dummy implementation to make
2343 'wmf' compile on Linux, too.
2345 2004-10-31 Hans Breuer <hans@breuer.org>
2347 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
2348 to finally fix the long lasting clipping issue, bug #85831
2349 Also fixed the line style issue for printing on XP and don't
2352 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
2354 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
2355 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
2357 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
2358 some info from the console (soon gone on windoze) to message_error()
2359 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
2360 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
2362 plug-ins/python/diasvg_import.py : re.compile() only once per expression
2363 and some more playing with scaling
2365 * plug-ins/python/makefile.msc : updated
2367 2004-10-30 Hans Breuer <hans@breuer.org>
2369 * shapes/Civil/civil_arrow_right.shape : removed
2370 <aspectratio type="fixed" /> thus allowing to change
2371 width and height independently, fixes #154897
2372 (Serge Robinson) by making it consistent with the
2375 2004-10-30 Hans Breuer <hans@breuer.org>
2377 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
2378 on arrow being NULL, fixes bug #143063
2380 2004-10-30 Hans Breuer <hans@breuer.org>
2382 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
2383 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
2384 removed use of chached variable DiagramData::selected_count
2385 * lib/diagramdata.h : renamed to selected_count_private
2386 (kept for binary compatibility and sanity checks)
2387 * lib/diagramdata.c : more checks on a screwed up selection list
2389 * app/diagram.c(diagram_group_selected) : don't screw up the
2390 DiagramData::selected list, was assignment of parent_list_affected(),
2391 * lib/diagramdata.c (data_select, data_unselect) : protect against
2392 multiple selections of the same object and removement of a not selected
2393 object (apparently caused by the recently added group undo stuff)
2394 together with the above this finally fixes bug #153525
2396 * app/Makefile.am : fix ./autogen.sh ->
2397 app/Makefile.am:171: blank line following trailing backslash
2399 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
2400 ddisplay_do_update_menu_sensitivity() here as well
2402 * configure.in : make the experimental state of the cairo plug-in
2405 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
2406 try to update anything if we can't find an active diagram
2407 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
2409 * configure.in : another attempt to fix bug #156116. If there is
2410 anyone with autotools knowledge reading this - help appreciated ;-)
2412 2004-10-30 Hans Breuer <hans@breuer.org>
2414 * objects/makefile.msc objects/UML/Makefile.am
2415 objects/UML/uml.c objects/UML/transition.c
2416 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
2417 Patch from Peter Allin adds statechart transitions to the UML sheet -
2418 bug #144956 - modified to not print("%s", NULL) which crashes on
2419 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2421 2004-10-30 Hans Breuer <hans@breuer.org>
2423 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
2424 match the website anymore, i.e. sould remain unchanged.
2425 See below and lib/dia_xml.h for the reasoning
2427 * lib/libdia.def : removed dia_color_selector_get_type
2429 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2430 (like broken PNG) and g_warning if appropriate
2432 * app/interface.c : #include "message.h"
2434 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2435 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2436 better to just move diaunitspinner to lib/ instead of polluting
2437 widgets.[hc] even more ;)
2438 * app/makefile.msc lib/libdia.def : updated
2440 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2441 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2443 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2444 do something useful when compiled
2446 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2447 Also some more #ifdefed backends usage.
2449 2004-10-10 Lars Clausen <lars@raeder.dk>
2451 * lib/widgets.c: Better labels for color selector menu.
2453 * app/dia-props.c (diagram_properties_respond):
2454 * app/preferences.c (prefs_get_value_from_widget): Don't assume
2455 that a dia color selector is of type DiaColorSelector:)
2457 * lib/widgets.[ch]: Color selector changed to dynamic menu.
2459 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2462 2004-10-09 Lars Clausen <lars@raeder.dk>
2464 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2465 arrow preview to avoid long arrow heads flipping.
2467 * lib/arrows.[ch]: Support for getting from name to arrow type,
2468 and for listing all arrow names.
2470 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2472 * lib/libdia.def: Added new global functions.
2474 * lib/persistence.[ch]: Two of the persistent_list functions to
2475 return whether the item was found in the list.
2477 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2478 the growing number of sheets.
2480 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2483 2004-10-05 Lars Clausen <lars@raeder.dk>
2485 * objects/UML/association.c: Patch from Harvey Thompson
2486 <harveyandsu@yahoo.com>: Better placement of association texts.
2488 2004-10-03 Lars Clausen <lars@raeder.dk>
2490 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2491 use the fonts in question. Can't set tooltips with the name since
2492 lib objects don't know the tool_tips thing, which is rather
2495 2004-09-19 Hans Breuer <hans@breuer.org>
2497 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2498 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2500 2004-09-19 Hans Breuer <hans@breuer.org>
2502 * dia.desktop.in : string changes as proposed in bug #151822
2504 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2505 appearts not to be needed on Linux and breaks the build
2506 on OSX. Fixes bug #152970
2508 2004-09-18 Lars Clausen <lars@raeder.dk>
2510 * app/commands.c (view_show_all_callback): Add a bit of border
2511 around Ctrl-E'd diagram, for easier select and better view of edges.
2513 2004-09-19 Hans Breuer <hans@breuer.org>
2515 * app/Makefile.am : trying to fix the fix from 2004-02-15
2516 Overwriting AM_LDFLAGS still gave a automake warning and it
2517 also appeard to break linking against gtklibs in a differnt
2518 prefix. Use dia_LDFLAGS instead.
2520 * plug-ins/svg/svg-import.c : initialize 'end' before usage
2521 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2523 * lib/diarenderer.c : don't try to draw lines which are so much
2524 degenerated that their point count became negative, fixes bug #148139
2526 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
2527 strings (NULL from g_strdup())
2529 2004-09-10 Steffen Macke <sdteffen@web.de>
2531 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2532 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2533 * app/create_object.c:
2534 * app/diaunitspinner.c:
2535 * app/disp_callbacks.c:
2537 * app/modify_tool.c:
2538 * lib/prop_geomtypes.c:
2539 * lib/prop_geomtypes.h: made compile with msvc
2541 2004-09-10 Lars Clausen <lars@raeder.dk>
2543 * lib/widgets.c: Insulate conversion from outside API by adding
2544 internal function to set value. Adjustment not appropriate for
2547 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2549 2004-09-07 Lars Clausen <lars@raeder.dk>
2551 * app/diapagelayout.c: Include from widgets.c rather than
2554 2004-09-03 Lars Clausen <lars@raeder.dk>
2556 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2557 as unit-based property testbed.
2559 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2560 and fontsize widgets.
2562 * app/Makefile.am (dia_core_files):
2563 * app/diaunitspinner.h:
2564 * app/diaunitspinner.c:
2566 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2567 lib/widgets.[ch], as it's used in the properties code now.
2569 2004-08-31 Steffen Macke <sdteffen@web.de>
2571 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2573 2004-08-30 Lars Clausen <lars@raeder.dk>
2576 * app/diagram.c (diagram_remove_all_selected): Remove debugging
2581 * app/disp_callbacks.c:
2583 * app/create_object.c:
2584 * app/textedit.[ch]:
2585 * app/modify_tool.c:
2588 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
2589 current input object, multiple inputs per object, and tabbing
2592 2004-08-28 Steffen Macke <sdteffen@web.de>
2594 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
2595 allow separate installer component "Translations"
2597 2004-08-27 Akagic Amila <bono@linux.org.ba>
2599 * configure.in: Added 'bs' to ALL_LINGUAS.
2601 2004-08-26 Steffen Macke <sdteffen@web.de>
2603 * app/makefile.msc: using /subsystem:windows again
2604 * makefile.msc: updated ALL_LINGUAS
2606 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
2608 * configure.in: Add «nb» to ALL_LINGUAS.
2610 2004-08-21 Steffen Macke <sdteffen@web.de>
2612 * plug-ins/dxf/dxf-export.c: Patch from
2613 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
2615 2004-08-17 Lars Clausen <lars@raeder.dk>
2618 * dia.spec (Release):
2624 2004-08-13 Ankit Patel <ankit@redhat.com>
2626 * configure.in: Added "gu" in ALL_LINGUAS.
2628 2004-08-07 Lars Clausen <lars@raeder.dk>
2634 * dia.spec (Release):
2635 * NEWS: New release 0.94-pre6
2637 2004-08-07 Lars Clausen <lars@raeder.dk>
2639 * app/highlight.c (highlight_reset_objects): Unhighlight inside
2643 * plug-ins/shape/shape-export.c: String capitalization fix from
2644 Alan Horkan <horkana@tcd.ie>
2646 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
2647 Class object menu kinda work, rather than blow up. Doesn't do a
2648 proper undoable change yet.
2650 2004-08-06 Lars Clausen <lars@raeder.dk>
2652 * app/filedlg.c (file_save_as_callback): Don't remove related
2653 dialogs from the NULL diagram.
2655 2004-08-02 Lars Clausen <lars@raeder.dk>
2660 * dia.spec (Release):
2661 * NEWS: Pre5 with leak fix.
2663 * lib/font.c (dia_font_build_layout): Don't try to save an
2664 allocation of LayoutCacheItem if it breaks layout cache hash.
2665 Also make hash function correct, remove explicit height entry
2666 (it's in pfd), and make sure things are correctly unreffed.
2667 Finally fixes #148141.
2669 * lib/text.c (text_set_attributes, text_set_font): Safely unref
2670 when changing font, and actually set the new font in
2672 (text_get_attributes): Ref copied font.
2674 2004-08-01 Lars Clausen <lars@raeder.dk>
2678 * dia.spec (Release):
2681 * doc/en/dia.xml: Prerelease 4.
2683 * lib/font.c (dia_font_build_layout): Better comparision and
2684 freeing of font cache.
2686 2004-07-31 Lars Clausen <lars@raeder.dk>
2688 * lib/font.c (dia_font_build_layout): Faster update to avoid
2691 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
2692 Correctly initialize export filter variable.
2694 2004-07-25 Lars Clausen <lars@raeder.dk>
2696 * dia.spec (Release):
2701 * doc/pl/dia.xml: Pre3 coming out.
2703 * lib/diarenderer.c (draw_polygon):
2704 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
2705 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
2706 rather than O (letter), and assert num_points > 1 rather than the
2709 * app/recent_files.c:
2712 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
2713 Make filenames conform to filesystem encoding.
2715 * RDP/.cvsignore: Added standard ignore.
2717 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
2718 last entry patch-panel, too.
2721 * shapes/Circuit/*.png:
2722 * shapes/Civil/*.png:
2723 * shapes/Contact/*.png:
2724 * shapes/Electric/*.png:
2726 * shapes/Pneumatic/*.png:
2728 * shapes/flowchart/*.png:
2729 * shapes/jigsaw/*.png:
2730 * shapes/network/*.png:
2731 * shapes/sybase/*.png:
2733 * dia_gnome_icon_large.png:
2734 * doc/pl/graphics/*.png: Set -kb for PNGs.
2736 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
2738 2004-07-22 Lars Clausen <lars@raeder.dk>
2744 * dia.spec (Release):
2745 * configure.in: Update to version 0.94-pre2.
2747 * app/load_save.c (diagram_data_write_doc): Use new namespace
2750 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
2751 hidden objects properties.
2753 * objects/standard/line.c: Remove halffinished line gap box from
2756 * app/paginate_psprint.c:
2757 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
2758 Immidi): Close export and print dialog with diagram as well.
2761 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
2762 borelli): Remove deprecated stuff (#137693)
2764 * app/dia-props.c (create_diagram_properties_dialog): Patch from
2765 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
2768 2004-07-21 Ray Strode <rstrode@redhat.com>
2770 * dia/dia.desktop.in: Add MimeType line to desktop file
2773 2004-07-18 Hans Breuer <hans@breuer.org>
2775 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
2776 sheets/UML/*.png : icons in png format
2777 Partial fixup of stuff broken with the following comment:
2778 "7 days : xpm->png, namespace fix, first rotation bits."
2780 * app/load_save.c(read_objects) : don't add objects to the layer.
2781 This function is called recursively and only the topmost objects
2782 belong in the layers object list. Fixes bug #145417 and is the
2783 the real fix for bug #142480
2785 * app/app_procs.c : make the --size hack even uglier, but work again
2787 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
2788 but g_free() what is returned by g_build_filename()
2790 * objects/custom/custom_object.c(custom_destroy) : handle all enum
2791 values in switch to get rid of the warning
2793 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
2794 of setlocale()/strtod()
2795 * lib/dia_svg.c : dito
2796 * lib/dia_xml.c : almost
2798 * plug-ins/python/group_props.py : use the string representation of
2799 value to ensure "unique values". If the strings would not be different
2800 the user cann't see the difference either
2802 2004-07-17 Lars Clausen <lars@raeder.dk>
2804 * lib/persistence.h: Have "void" in prototypes (#142663)
2806 * lib/widgets.c (dia_font_selector_init): Better string handling
2809 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
2811 * objects/standard/image.c (image_load): Use path of diagram
2812 rather than running directory as base for image file place.
2814 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
2817 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
2818 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
2820 * Re-added new sample diagrams binarily.
2822 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
2824 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
2825 Disabled keyboard accels when dragging an object.
2827 2004-07-14 Lars Clausen <lars@raeder.dk>
2829 * app/grid.c (snap_to_grid): Use diagrams grid setting to
2830 determine hex grid snap.
2832 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
2834 * app/interface.h: Avoid multiply defined symbols (#147396)
2836 2004-07-10 Lars Clausen <lars@raeder.dk>
2838 * app/sheets_dialog_callbacks.c (write_user_sheet):
2839 * lib/sheet.c (load_register_sheet): Don't introduce double
2840 slashes in namespace.
2842 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
2843 old diagrams, or XSLT will barf all over.
2845 * shapes/RDP/place.shape:
2846 * shapes/RDP/transition.shape:
2847 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
2848 shapes to use those.
2850 2004-07-07 Lars Clausen <lars@raeder.dk>
2853 * doc/{en,pl}/dia.xml:
2856 * NEWS: First prerelease of version 0.94. Now with release
2857 versions in a branch and main devel in the trunk.
2859 2004-07-05 Hans Breuer <hans@breuer.org>
2861 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
2862 -std=c89. Mostly //-comments and M_PI -> G_PI
2863 [Istar, Jackson, KAOS were removed from build cause they
2864 simply have *too* much C++ comments ;]
2865 * object/UML/association.c : use g_strdup() not plain strdup()
2866 * app/paginate_psprint.c : avoid storage size of `pipe_action'
2867 isn't known with more portable signal code
2869 * app/app_procs.c : don't call gtk_init() if just --version
2870 is requested (bug #144321, Vladimir Kondratiev)
2872 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
2873 DiaFont* if not NULL
2874 * objects/UML/class.c : moved fill_in_fontdata() to
2875 umlclass_load() to avoid such trouble, though unsure if
2876 this really is an improvement...
2878 * shapes/network/makefile.am : patch-panel added here too
2880 2004-07-04 Hans Breuer <hans@breuer.org>
2882 * sheets/network.sheet.in shapes/network/patch-panel.xpm
2883 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
2884 fixes bug #136629, James McDonald
2886 2004-07-04 Hans Breuer <hans@breuer.org>
2888 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
2889 lib/object_defaults.c : revert changing of Dia's XML namespace
2890 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
2891 about its purpose and relation to real world urls.
2893 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
2894 added comment about when to do so
2895 [Should have been long time ago and probably multiple times
2896 to avoid crashing on older plug-ins]
2897 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
2898 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
2900 * lib/object.c objects/UML/class.c : there are still compilers not
2901 supporting C99 and other GCCISMs like allocating dynamic sized arrays
2903 * objects/UML/class.h : there is a differnce between a list pointer
2904 and a list pointer pointer. We and GLib want the former.
2906 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
2907 if Gtk is initialized. Using gdk_display_get_default () avoids the
2908 app/* dependency and is also closer to the requirements of the
2911 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
2912 some #ifdefed support for Cairo backends not public available yet.
2914 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
2915 windoze platform supports them. This should fix bug #109818, at
2916 least for the majority running NT or above ...
2917 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
2919 * objects/makefile.msc : build Istar, Jackson and Kaos
2921 * objects/UML/class.c(umlclass_load) : don't wrap by default to
2922 keep old diagrams as they were - instead of this nice new effect ;-)
2923 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
2925 * objects/UML/class.c : mark for translation _("Wrap ...
2927 * objects/UML/class.c : more correct types, also some default properties
2928 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
2930 * objects/UML/activity.c : removed a leftover from the
2931 use-localization-for-font-substitution-hack
2933 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
2934 'cvs admin -kb *.png' PNG files should already be *added* as binary,
2935 otherwise they are not readable on line-end-converting-platforms
2937 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
2938 filter_get_by_name()
2940 * plug-ins/python/pydia-property.c : some more g_warnings for
2941 not implemented conversions
2943 * plug-ins/python/group_props.py : ensure unique property values
2944 at the right place. Now something like :
2945 - load an old UML class diagram
2946 - change one of the classes to wrap operations
2947 - select all classes (/Select/Same Type)
2948 - /Dialogs/Group Properties : check wrap_operations, select '1'
2949 - Ok, works like a charm :-)
2951 2004-07-04 Lars Clausen <lars@raeder.dk>
2953 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
2956 2004-07-03 Lars Clausen <lars@raeder.dk>
2958 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
2959 <LAV@VL3143.spb.edu>: Fixes console output problems and some
2960 interactiveness problems.
2962 2004-07-02 Lars Clausen <lars@reader.dk>
2964 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
2965 app isn't interactive.
2967 2004-07-01 Lars Clausen <lars@raeder.dk>
2969 * plug-ins/cairo/diacairo.c: Add init of last field of filter
2970 struct to remove crash.
2972 * sheets/Makefile.am (sheet_in_files):
2973 * shapes/Makefile.am:
2974 * sheets/ChemEng.sheet.in:
2975 * shapes/ChemEng/Makefile.am:
2977 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
2978 Chemical engineering shapes.
2980 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
2981 multiple arguments when using devel script.
2983 * app/display.c (new_display):
2985 * lib/diagramdata.c (new_diagram_data):
2986 * lib/diagramdata.h:
2987 * app/preferences.h:
2988 * app/preferences.c:
2991 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
2992 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
2995 * doc/pl/authors.xml:
2996 * doc/en/authors.xml:
2997 * lib/object_defaults.c (dia_object_defaults_save):
2998 * readme.win32 (BTW):
2999 * lib/persistence.c (persistence_save):
3000 * app/load_save.c (diagram_data_write_doc):
3001 * app/commands.c (help_about_callback):
3002 * README: Fix links to home page.
3005 * app/load_save.c (diagram_data_load):
3006 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
3007 loading, and guard against them when fonting.
3009 * lib/diarenderer.c (draw_rounded_polyline): Patch from
3010 anthonym@overture.com: Make limited rounding a corner-specific
3011 rendering-only thing.
3013 2004-06-30 Lars Clausen <lars@raeder.dk>
3015 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
3016 adjustment: If you can't fix it, at least don't change it.
3018 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
3019 code instead of individual code in here.
3021 2004-06-29 Lars Clausen <lars@raeder.dk>
3023 * objects/UML/association.c: Patch from Kiran
3024 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
3029 * lib/diarenderer.c (draw_rounded_polyline):
3030 * objects/standard/polyline.c (polyline_draw):
3031 * objects/standard/zigzagline.c (zigzagline_draw):
3032 Patch from anthonym@overture.com: Add rounded polylines.
3034 2004-06-27 Lars Clausen <lars@raeder.dk>
3036 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
3038 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
3039 free family list before taking out the pointer we need. Also set
3040 the entry_nr correctly so we get the menu set up right.
3042 2004-06-23 Lars Clausen <lars@raeder.dk>
3044 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
3045 images at the right place.
3047 * objects/Istar/actor.c
3048 * objects/Istar/goal.c
3049 * objects/Istar/istar.c
3050 * objects/Istar/istar.h
3051 * objects/Istar/link.c
3052 * objects/Istar/other.c
3053 * objects/Jackson/domain.c
3054 * objects/Jackson/jackson.c
3055 * objects/Jackson/jackson.h
3056 * objects/Jackson/phenomenon.c
3057 * objects/Jackson/requirement.c
3058 * objects/KAOS/goal.c
3059 * objects/KAOS/kaos.c
3060 * objects/KAOS/kaos.h
3061 * objects/KAOS/metaandorrel.c
3062 * objects/KAOS/metabinrel.c
3063 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
3064 <cp@cetic.be>: Fix instability issues caused by not returning NULL
3065 in *_move_handle and *_move. Also improved the headers with
3066 correct (c) information.
3068 2004-06-22 Lars Clausen <lars@raeder.dk>
3070 * objects/KAOS/goal.c:
3071 * objects/KAOS/other.c:
3072 * objects/Istar/actor.c:
3073 * objects/Istar/goal.c:
3074 * objects/Istar/other.c:
3075 * objects/Jackson/domain.c:
3076 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
3077 <cp@cetic.be>: Fix resize issues.
3079 * app/filedlg.c (file_dialog_hide): Patch from Kiran
3080 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
3081 related dialog. #129520.
3083 * app/dia-props.c (diagram_properties_show): Patch from Kiran
3084 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
3085 a child of its diagram. #129520.
3087 * objects/UML/association.c (association_load): Patch from Kiran
3088 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
3089 text placement. #118313.
3091 2004-06-17 Lars Clausen <lars@raeder.dk>
3093 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
3095 * Makefile.am: Make THANKS only be generated by maintainers.
3097 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
3100 * configure.in: Added three missing Makefiles.
3104 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
3105 diagram-related (save) dialog when closing diagram. To be
3106 extended to other dialogs.
3108 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
3110 * samples/Istar.dia:
3111 * samples/Jackson.dia:
3113 * sheets/Istar.sheet.in:
3114 * sheets/Jackson.sheet.in:
3115 * sheets/KAOS.sheet.in:
3120 * objects/Jackson/*:
3123 * objects/Makefile.am (SUBDIRS):
3124 * sheets/Makefile.am (SUBDIRS):
3125 * samples/Makefile.am: Additions from Christophe Ponsard
3126 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
3129 2004-06-12 Lars Clausen <lars@raeder.dk>
3132 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
3134 * lib/font.h: Toning down comments a bit:)
3136 * lib/font.c (dia_font_build_layout): Playing around with DPI
3138 * objects/UML/association.c (association_load): Avoid crashes on
3141 * objects/UML/association.c: Patch from kimmidi@novell.com:
3142 Improve placement of labels when vertical. Part fix of #118313
3144 * lib/object.c (dia_object_is_selected): Grouped objects are not
3145 selected, only the group itself. Thus, don't crash when grouping
3148 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
3149 on how to represent empty strings. Fixes #143639.
3151 * lib/object.c (dia_object_is_selected): Added comment answer.
3153 2004-06-12 Hans Breuer <hans@breuer.org>
3155 * lib/diagramdata.c lib/object.c : deal with grouped objects
3156 not knowing their parent_layer, i.e. avoid crashing in
3157 dia_object_is_selected() via group_draw() [ Triggered by
3158 playing with the Visio generated svg from bug #143455 ]
3160 * plug-ins/python/diasvg_import.py : started to implement
3161 transformation="translate(...)" and <style/> handling. Also
3162 use some other completely bogus values for em/ex scaling
3164 2004-06-08 Lars Clausen <lars@raeder.dk>
3166 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
3168 2004-06-07 Lars Clausen <lars@raeder.dk>
3170 * app/layer_dialog.c (layer_dialog_set_diagram):
3171 * app/display.c: Layer widget crash more properly dealt with in
3174 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
3175 widget deselect was called during destroy, but called
3176 ddisplay_flush, leading to a new display timeout after renderer
3179 * lib/widgets.c (dia_toggle_button_destroy):
3180 * app/recent_files.c (recent_file_menuitem_create):
3181 * lib/persistence.c (persistence_save_list):
3182 * app/commands.c (edit_delete_callback):
3183 * lib/object_defaults.c (dia_object_defaults_save):
3184 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
3187 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3190 * lib/diagramdata.c (new_layer): Initialize connectibility.
3192 * app/display.c (ddisplay_obj_render):
3193 * app/diagram.c (diagram_find_closest_connectionpoint): Take
3194 connectibility into account.
3196 * app/layer_dialog.h (struct _DiaLayerWidget):
3197 * app/layer_dialog.c:
3198 Connectible toggle updates, now works fairly well.
3200 * app/select.c (select_transitive_callback): Make sure we're only
3201 selecting in the same layer.
3203 2004-06-04 Lars Clausen <lars@raeder.dk>
3205 * app/pixmaps/Makefile.am: Also install connectable images.
3207 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
3208 layer toggles from layer itself. Also update diagram correctly
3209 for visibility. Still need updates for connectivity behaviour.
3211 2004-06-03 Hans Breuer <hans@breuer.org>
3213 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
3215 * lib/diagdkrenderer.c(set_linejoin) : actually set
3216 join_style not cap_style
3217 (set_dashes): with the correct number of dashes
3219 2004-06-03 Lars Clausen <lars@raeder.dk>
3221 * app/modify_tool.c (click_select_object):
3222 * lib/text.c (text_set_cursor):
3223 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
3225 2004-05-31 Hans Breuer <hans@breuer.org>
3227 * lib/object_defaults.c : don't 'failed to load external
3228 entity "NULL"' when the defaults file does not exist,
3229 bug #108764 [again: somehow this got lost]
3231 * app/paginate_gdiprint.cpp : don guess the WMF export
3232 filter used for printing but find it by unique name.
3233 Also update for export_func renaming
3234 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
3235 provide some unique names
3237 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
3238 app/select.c : fix bug #140789 by always checking if there
3239 still is an active diagram before accessing it
3241 * app/defaults.c app/properties.c : user visible string should
3242 not read DiaObject but stay as "Object defaults/properties"
3244 * app/app_procs.c : reduce the hack to pass --size to the
3245 export via user_data to the only filter supporting it. Other
3246 filters would crash on it or do worse ;(
3248 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
3250 2004-05-31 Lars Clausen <lars@raeder.dk>
3253 * lib/widgets.c: Use GtkType rather than guint for
3254 dia_size_selector_get_type.
3256 2004-05-29 Lars Clausen <lars@raeder.dk>
3258 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
3259 that it matches the screen output for selfoverlapping polygons and
3262 2004-05-28 Hans Breuer <hans@breuer.org>
3264 * app/load_save.c : ignore empty groups on load and don't
3265 write empty groups while saving
3266 * lib/group.h (group_update_data): there is no first object
3267 in empty groups and they probably don't need an update at
3268 all. Maybe the shold just not exist ?
3270 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
3271 text positioning as well as drawing of images with alpha
3273 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
3274 HAVE_WINDOWS_H or G_OS_WIN32 is defined
3276 2004-05-28 Lars Clausen <lars@raeder.dk>
3278 * app/pixmaps/Makefile.am (imagedir):
3279 * app/pixmaps/visible.png:
3280 * app/pixmaps/visible-empty.png: New images for the visibility
3281 button in the layer dialog.
3283 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
3284 more border around the button. Still some left when hovering the
3285 mouse or selecting, and the grey background is annoying.
3287 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
3288 visibility connector.
3290 2004-05-26 Lars Clausen <lars@raeder.dk>
3292 * configure.in (DB2MAN): Better check for db2man docbook place.
3293 Need something even better.
3295 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
3297 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3298 extraeneous borders.
3301 * dia_gnome_icon.png:
3302 * samples/render-test.dia: Rendering test from Hans.
3304 2004-05-24 Hans Breuer <hans@breuer.org>
3306 * lib/filter.h : renamed DiaExportFilter::export to
3307 _DiaExportFilter::export_func (should not use c++
3308 keywords (g++ specifc ?) in headers. Same for import
3309 out of pure symmetry reasons
3310 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
3311 app/diagram.c app/filedlg.c : reflect functions renaming
3313 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
3314 under *NIX, too. [If you want something done, do it yourself ;-]
3315 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
3316 with wmf.cpp's GDI usage
3317 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
3318 [For the moment it does not much more than compiling, i.e.
3319 the produced WMF files are invalid, if not created on windoze.]
3321 * configure.in : check for C++ to compile plug-in/wmf
3323 * objects/GRAFCET/boolequation.c : looks like fixing
3324 another leak (untested)
3326 2004-05-23 Hans Breuer <hans@breuer.org>
3328 * acinclude.m4 : another attempt to fix
3329 bug #142032 (still not sure it's the right one,
3330 but works for me(tm), which the other does not ;)
3332 * plug-ins/cairo/Makefile.am
3333 plug-ins/Makefile.am
3334 configure.in : support building the new cairo
3335 plug-in, if given --with-cairo and the cairo
3336 packages are found, see http://cairographics.org
3337 and also http://hans.breuer.org/dia/dia-cairo.htm
3339 * plug-ins/cairo/diacairo.c : make it compile
3340 with DEBUG_CAIRO defined, too.
3342 2004-05-23 Hans Breuer <hans@breuer.org>
3344 * plug-ins/cairo/Makefile.am : initial attempt
3346 * plug-ins/cairo/diacairo.c : a new exporter based on
3347 Cairo http://cairographics.org rendering api. Currently
3348 it just can export PNG and PS but one day it might get
3349 PDF and more almost for free. [It is not yet included
3350 in the *NIX build system due to lack of auto* magic.]
3352 * plug-ins/pixbuf/pixbuf.c : always register the export
3353 filter part. If the user does not want it it can be
3354 disabled by File/Plugins or explicit selected the other
3355 one in the Export Formats List
3357 2004-05-23 Hans Breuer <hans@breuer.org>
3359 * lib/dia_dirs.c : #include "message.h"
3360 lib/widgets.c : #include "persistence.h"
3361 lib/widgets.c(dia_font_selector_init) : still not C99
3362 lib/persitence.h : removed unimplemented prototype
3363 lib/persitence.c(persistence_load_list) : still not C99
3364 app/create_object.c : #include "highlight.h"
3365 app/layer_dialog.c : #include "widgets.h"
3366 app/modify_tool.c : prototype functions before usage
3367 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
3368 [otherwise one will have a hard time to make C++ compile ;]
3369 lib/dia_dirs.c : #include "message.h"
3370 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
3373 * plug-ins/xfig/xfig-import.c : dont initialize an int with
3376 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
3377 as documented, i.e. _not_ copying. Plugs a memory leak in
3378 lib/dialibartrenderer.c
3380 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
3381 to radius to more of a clue what it is representing
3383 * */makefile.msc lib/libdia.def : updated
3385 ChangeLog : fixed some date copy&paste bug
3387 2004-05-21 Lars Clausen <lars@raeder.dk>
3389 * NEWS: Release tag.
3391 * config.h.win32: Now 0.93+cvs
3393 * RELEASE-PROCESS: Update with new info about release branches.
3395 * Many files: Moved devel branch back into main trunk. Should
3396 have been done in the opposite way, with release in a branch.
3398 2004-05-20 Hans Breuer <hans@breuer.org>
3400 * acinclude.m4 : disable setting of PYTHON_PREFIX
3401 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
3402 as workaround for bug #142032 (the real fix would
3403 involve some auto* knowledge which I don't have
3406 * plug-ins/python/Makefile.am : more python
3407 plug-ins to be installed (especially svg import,
3408 but also 'simple scale' should be useable
3411 * plug-ins/python/scascale.py : update display
3412 after modifying selected objects
3414 * plug-ins/python/diasvg_import.py : initialize
3417 2004-05-18 Lars Clausen <lars@raeder.dk>
3419 * app/diagram_tree.c (select_node): Use
3420 diagram_remove_all_selected to kill selected list.
3422 * lib/font.c: Set language when using a different context.
3424 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3425 and removed ctype include (#142661).
3427 * lib/paper.c (get_default_paper): Changed isalnum to
3428 g_ascii_isalnum and removed ctype include. (#142661)
3430 * objects/custom/shape_info.c:
3432 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3434 2004-05-17 Hans Breuer <hans@breuer.org>
3436 * lib/object_defaults.c : don't 'failed to load external
3437 entity "NULL"' when the defaults file does not exist,
3440 * lib/widgets.c : fixed possible menu leak
3441 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3442 avoid finalization of floating references, bug #142307
3444 2004-05-15 Lars Clausen <lars@raeder.dk>
3446 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3447 fonts better (#138655)
3449 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3451 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3452 dist, xml, dbk and man. Also the sub-xml files. (#142098)
3454 * Makefile.am (CLEANFILES):
3455 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3456 translation-reports, they are generated automagically. THANKS
3457 file not considered locally generated, so is not locally
3460 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3462 * lib/diaarrowchooser.c:
3463 * lib/prop_attr.c: Fixing naming for arrowselector.
3465 * objects/UML/object.c (objet_type): Oops, little too aggressive
3466 with the DiaObject thing here:)
3468 * objects/custom/shape_info.c (parse_svg_node): Use
3469 g_ascii_isdigit instead of isdigit.
3471 * app/diaunitspinner.c (dia_unit_spinner_update):
3472 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3473 instead of isspace avoids char subscript issues (#142467).
3475 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3476 return value conflict.
3478 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3479 value conflict. Also improved signature. (#142466)
3481 * app/load_save.c (diagram_data_load): Don't overwrite the list in
3482 the layer, but instead free the returned list (#142480)
3484 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3485 for the grid widget.
3487 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3489 * configure.in (DB2MAN): Currently just check for two known
3490 positions for the docbook xsl. Don't know a generic way to find
3491 this info. Ought to add an option for it, but then it's really
3492 only required for maintainers, I think. Maybe.
3494 * app/display.c (update_snap_grid_status): Remove nasty image
3495 toggling code not require for grid toggle button anymore. (#142475)
3497 * app/interface.c (create_display_shell): Use
3498 dia_toggle_button_new_with_images to create grid toggle button.
3499 Much nicer. (#142475)
3501 * app/menus.c (menus_initialize_updatable_items): Free the string
3502 along with the GString. (#142475)
3504 * lib/intl.c (free_alias_table): Free hash table entries in a
3505 proper way, avoiding duplicate frees. (#142475)
3507 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3508 not put in the hash (avoid reading freed memory). (#142476)
3510 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3512 (dia_font_selector_get_family_from_name): Stop leaking
3515 2004-05-14 Lars Clausen <lars@raeder.dk>
3517 * Transfer of fixes from release branch. Not the prettiest way to
3518 do it, this should be done during release, not afterwards.
3520 Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
3522 * acinclude.m4: minor fixes (added missing [] quotation).
3524 Lars Clausen <lars@raeder.dk>:
3526 * app/interface.c (toolbox_delete):
3527 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3528 cancels quit due to modified diagrams.
3530 Samúel Jón Gunnarsson <sammi@techattack.nu>:
3532 * is.po: Added "is" to ALL_LINGUAS.
3534 Lars Clausen <lars@raeder.dk>:
3536 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3538 Hans Breuer <hans@breuer.org>:
3540 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
3541 burden should be shared and not be win32 only ;) [this time
3542 build was broken by adding GtkType to widget.h]
3544 * objects/standard/box.c objects/standard/ellipse.c :
3545 for code clarification compare (obj->aspect != FREE_ASPECT)
3546 and not (obj->aspect); no binary effect.
3548 * app/paginate_psprint.c : don't leak printcmd
3550 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3551 standard C requires variables to be declared at the beginning of
3552 a block, also there is no fabsf() with msvc
3554 * app/win32print.[ch] : make win32_printer_close() return an
3555 error code, it's used as pclose replacement
3557 Lars Clausen <lars@raeder.dk>:
3559 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3561 2004-05-06 Lars Clausen <lars@raeder.dk>
3563 * lib/widgets.[ch]: Utility function to make a widget with two
3564 images (selected and non-selected).
3566 * lib/diagramdata.h: Renamed selectable to connectable.
3567 Selectable will come later.
3570 * app/pixmaps/Makefile.am (imagedir):
3571 * app/pixmaps/connectable.png:
3572 * app/pixmaps/connectable-empty.png: New images for the
3573 selectability widget. Proper installation, too.
3575 * app/layer_dialog.[ch]: Adding new button showing connectability
3576 status. Much cleaner way of doing the button, but some problems
3577 with the item getting selected
3579 * lib/widgets.h: Reminder of how to install images for use by
3580 dia_get_image_from_file.
3582 2004-05-05 Lars Clausen <lars@raeder.dk>
3584 * objects/network/Makefile.am:
3585 * objects/network/pixmaps/radiocell.xpm:
3586 * objects/network/pixmaps/basestation.xpm:
3587 * objects/network/network.c:
3588 * objects/network/basestation.c:
3589 * objects/network/radiocell.c:
3590 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
3593 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
3594 Backslash arrow head.
3596 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
3597 Notify takes care. Should maybe use that more.
3599 * lib/diagramdata.[ch]:
3600 * app/filedlg.c (file_export_ok_callback):
3601 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
3603 * app/dia-props.c (diagram_properties_respond):
3604 * app/diagram.c (diagram_set_modified):
3606 * app/disp_callbacks.c:
3608 * app/load_save.c (diagram_save):
3609 Better handling of undo and modified status -- only diagram
3610 properties and page setup explicitly set modified status, all
3611 other important changes should be done through the undo stack
3614 2004-05-04 Lars Clausen <lars@raeder.dk>
3616 * app/app_procs.c (app_init): Consistently open a new diagram if
3617 none specified, with standard name Diagram1.dia.
3619 * app/layer_dialog.c:
3620 * app/diagram.c (diagram_finalize):
3621 * app/commands.c (dialogs_layers_callback):
3622 * app/filedlg.c (file_export_ok_callback):
3623 * app/app_procs.c (app_exit):
3624 * app/display.c (display_set_active):
3625 * app/interface.c (dia_dnd_file_drag_data_received):
3626 * app/recent_files.c:
3627 Undone attempt at unifying the multi-diagram windows (like
3628 layers). It broke the layers and didn't make much sense for the
3629 diagram properties dialog anyway.
3633 * lib/diagramdata.c:
3635 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
3636 many subclasses have to be fixed. Fixed remaining
3637 Object/ObjectType renaming issues.
3639 2004-05-02 Lars Clausen <lars@raeder.dk>
3641 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
3642 having to make all the children objects conform to
3643 GObject style at once? Warning! Does not compile right now.
3645 * many, many files: Rename Object to DiaObject in preparation for
3646 making it a GObject.
3648 * app/diagram.[ch]: Turn diagram into a real GObject.
3651 * app/filedlg.c: Correctly ref and unref diagram.
3653 * lib/diagramdata.h: Starting to turn it into a GObject as well.
3655 2004-05-02 Lars Clausen <lars@raeder.dk>
3657 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
3660 * app/dia-props.c: Undo the attempt at making it really
3661 multi-diagram, now going for a one-diagram dialog.
3663 2004-04-30 Lars Clausen <lars@raeder.dk>
3665 * app/undo.c: Undoing broken undo stuff for diagram properties and
3666 page setup. Shouldn't be mixed into undo at all.
3668 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
3669 function to avoid in particular the grid crawling.
3671 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
3672 to allow aligning dashes, so they don't crawl.
3674 2004-04-28 Lars Clausen <lars@raeder.dk>
3676 * app/Makefile.am: New files diacanvas.[ch]
3678 * app/interface.c (create_display_shell): Use new diacanvas that
3679 allows placing widgets on canvas, for text edit.
3682 Early work towards rotation. No implementation yet.
3684 * app/layer_dialog.c (undo_layer):
3685 * objects/network/bus.c (bus_create_change):
3686 * objects/standard/box.c (aspect_create_change):
3687 * objects/standard/ellipse.c (aspect_create_change):
3688 Use g_new0 for change struct.
3690 * app/undo.c (diagram_change_apply_or_revert):
3691 Support for undo of diagram properties and page setup.
3693 * app/disp_callbacks.c (ddisplay_canvas_events):
3695 * lib/diagramdata.h:
3696 * app/modify_tool.c (click_select_object):
3697 * lib/text.c (text_register_editable):
3698 Starting work on new text editing model. Guarded by #ifdef so
3701 2004-04-07 Lars Clausen <lars@raeder.dk>
3703 * app/recent_files.c (open_recent_file_callback):
3704 * app/interface.c (origin_button_press):
3705 * app/filedlg.c (file_open_ok_callback):
3708 * app/commands.c (dialogs_layers_callback): Using new
3709 diagram_set_current() function to ensure auxilliary windows are
3712 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
3713 menu now borken. *sniff*
3715 * app/dia-props.c: Diagram properties window attempted
3716 persistentified. Trying to make more like layer dialog (since it
3717 already changes when the diagram changes), but some things still
3720 2004-04-06 Lars Clausen <lars@raeder.dk>
3722 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
3723 * lib/attributes.c (attributes_set_default_line_style):
3724 * app/interface.c (create_lineprops_area):
3725 Make line style persistent as well. Added function to directly
3726 set the style and dashlength of a dialinechooser.
3728 2004-04-03 Lars Clausen <lars@raeder.dk>
3730 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
3731 Copy the ellipse extra handle correctly.
3733 * objects/standard/box.c (box_move_handle): Move definitions
3734 according to bug #138925.
3736 2004-04-02 Lars Clausen <lars@raeder.dk>
3738 * app/recent_files.c: Use absolute name for recent files list.
3740 * lib/attributes.c: Set start and end arrow types, correctly.
3742 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
3745 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
3747 * app/interface.c (create_lineprops_area): Set persistently stored
3750 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
3753 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
3754 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
3756 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
3757 with what xfig does. Text now converted from latin-1 to utf-8
3758 (latin-1, since that's what xfig seems to use. Would like to see
3759 examples of non-latin-1 figs). String case problems fixed.
3761 2004-04-01 Lars Clausen <lars@raeder.dk>
3764 * app/interface.c: Default arrows now stored persistently, too.
3766 * lib/arrows.[ch]: New function to get arrow type from name.
3768 * app/color_area.c (color_area_create):
3770 * app/linewidth_area.c: Also persistent colors and line width.
3771 That was easy. Arrows and line style will take a bit more work,
3774 2004-04-01 Lars Clausen <lars@raeder.dk>
3776 * app/preferences.c: All preferences are now
3777 handled by persistence, old prefs load and store code is gone.
3779 * lib/persistence.[ch]: Added string and color persistents. This is
3780 a different string from the one used in the printer dialog, that
3781 one has a GtkEntry attached -- may want to make that one an
3782 encapsulation of this one or something.
3784 2004-03-31 Lars Clausen <lars@raeder.dk>
3786 * app/app_procs.c: Do persistence before prefs. Prefs are to be
3789 * lib/persistence.[ch]:
3790 * app/preferences.c: Adding persistence for integers, reals,
3791 booleans. Fixed stupid list bug. Test persistence for prefs.
3793 2004-03-30 Lars Clausen <lars@raeder.dk>
3795 * app/recent_files.c:
3796 Debugging of deallocation.
3799 Font menu now uses persistence. Ordering needs fixing, or it must
3803 * lib/Makefile.am (libdia_la_SOURCES):
3804 * app/Makefile.am (dia_core_files):
3805 * app/persistence.[ch]:
3806 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
3807 number of fixes, including multiple entries now being read
3808 properly. Still some oddity about the persistent list having the
3809 role as first entry (which makes the font menu crash after a few
3812 2004-03-26 Lars Clausen <lars@raeder.dk>
3814 * app/persistence.c:
3815 * app/recent_files.[ch]: Redoing the recent-files list using
3816 persistence, reducing code by about 50%. Still a problem when
3817 selecting an item from the menu -- possibly it doesn't like the
3818 menu being destroyed while in the callback?
3820 2004-03-25 Lars Clausen <lars@raeder.dk>
3822 * app/persistence.c (persistence_load_string): Missing semicolon?!?
3824 2004-03-24 Lars Clausen <lars@raeder.dk>
3828 * app/persistence.[ch]:
3829 * app/paginate_psprint.c (diagram_print_ps): New type of data can
3830 be stored persistently: Strings. Only the printer command/file
3831 go in here now, but things like creator, organization, diagram
3832 comments etc could also be handled this way.
3834 * objects/standard/beziergon.c (beziergon_draw): Avoid control
3835 lines when the object is not selected.
3837 2004-03-23 Lars Clausen <lars@raeder.dk>
3839 * lib/connectionpoint.h:
3840 * app/load_save.c: Allow connection points to have names, and
3841 handle that in load/store.
3843 * lib/dialibartrenderer.c: Better highlighting for text.
3845 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
3846 * lib/diagdkrenderer.c: Better highlighting for all, using same
3847 principles as libart highlighter.
3849 2004-03-22 Lars Clausen <lars@raeder.dk>
3851 * lib/dialibartrenderer.[ch]:
3852 * lib/diagdkrenderer.c:
3858 * app/modify_tool.c:
3859 * app/create_object.c:
3860 * app/highlight.[ch]:
3861 Added simple object highlighting. In GDK rendering, highlights
3862 the bbox, in libart highlights the outline of the object (except
3865 2004-03-22 Lars Clausen <lars@raeder.dk>
3867 * RELEASE-PROCESS: Added info on how to do a branch for
3868 development during release process.
3870 2004-03-20 Lars Clausen <lars@raeder.dk>
3872 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3874 2004-03-19 Lars Clausen <lars@raeder.dk>
3876 * xmldocs.make: Fixed apparent uninstall error.
3879 * doc/en/dia-manual.xml:
3880 * doc/pl/dia-manual.xml:
3883 * NEWS: Version 0.93-pre1.
3885 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
3886 borelli): Remove some deprecated stuff.
3888 2004-03-18 Lars Clausen <lars@raeder.dk>
3890 * Makefile.am: Try better uninstall thing for scrollkeeper.
3892 * objects/ER/entity.c:
3893 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
3894 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
3895 1, 1 exactly, as well as associative ER entities.
3897 2004-03-17 Lars Clausen <lars@raeder.dk>
3899 * Makefile.am: Make distcheck not complain about scrollkeeper
3900 problems (as per advice from James Henstridge).
3902 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
3903 standard installation.
3905 * objects/standard/ellipse.c: Better strings for object menu.
3907 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
3908 of dialogs (shame on you, glade!)
3910 * objects/custom/custom_object.c (custom_setup_properties):
3911 Removed debugging output
3913 * app/paginate_psprint.c (diagram_print_ps): Slightly more
3914 readable printer error messages.
3918 * doc/en/Makefile.am:
3919 * doc/pl/Makefile.am:
3920 New more standard way to install the XML-based manuals.
3922 2004-03-15 Lars Clausen <lars@raeder.dk>
3924 * objects/standard/box.c (box_move_handle): More intuitive fixed
3927 * objects/standard/ellipse.c:
3928 * objects/standard/box.c:
3931 * app/layer_dialog.[ch]:
3932 Patch from Steve Langasek <vorlon@debian.org>:
3933 Fixes startup crash on Alpha (bug #137169)
3935 * objects/standard/box.c: Aspect fixing like ellipses.
3937 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
3939 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
3940 pixmaps, now can uninstall properly.
3942 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
3943 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
3945 Added object menu access.
3947 2004-03-07 Hans Breuer <hans@breuer.org>
3949 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
3950 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
3951 would not use deprecated apis, but it's much simpler this way)
3953 * lib/makefile.msc : build the above new widgets and render_pixmap
3954 * lib/libdia.def app/dia.def app/makefile.msc : updated
3956 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
3957 what I saw, i.e. how big is an empty array supposed to be ? ;-).
3958 Previously it gave :
3959 disp_callbacks.c(188) : error C2059: syntax error : '}'
3960 disp_callbacks.c(191) : warning C4034: sizeof returns 0
3962 * app/interface.c : #include "dialinechooser.h"
3964 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
3965 [one more reason not to use it here : it's quite slow compared to
3966 the native win32 font renderer ;]
3968 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
3969 a GtkDialog*, removed unneeded cast
3971 * app/render_eps.c : avoid assignment warning for void* user_data
3974 2004-03-06 Steffen Macke sdteffen@web.de>
3976 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
3979 2004-03-06 Lars Clausen <lars@raeder.dk>
3981 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
3984 * lib/font.c: Simple cleanup system for layout cache removes any
3985 layout that hasn't been used for 10 minutes, but only during idle
3988 2004-03-05 Lars Clausen <lars@raeder.dk>
3990 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
3991 (lluis padro) (#130887): Extended Electric shapes with vertical
3994 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
3995 start with "Create a" or "A", always capitalize first word).
3997 * objects/standard/ellipse.c: Patch from Grégoire Dooms
3998 <dooms@info.ucl.ac.be>: Add extra connection point in center of
3999 ellipse. Additionally added a handle in the center, and resize is
4000 now around the center.
4003 * sheets/Makefile.am (SUBDIRS):
4004 * sheets/IsometricMap.sheet.in:
4005 * shapes/Map/Isometric/*
4006 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
4008 2004-03-04 Lars Clausen <lars@raeder.dk>
4011 * lib/pixmaps/Makefile.am:
4013 Better installation handling of pixmaps.
4015 * lib/diagdkrenderer.c:
4016 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
4017 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
4020 2004-03-03 Lars Clausen <lars@raeder.dk>
4022 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
4023 * lib/diagdkrenderer.c:
4024 * lib/diasvgrenderer.c:
4025 * lib/dialibartrenderer.c:
4026 * lib/diainteractiverenderer.c:
4027 * lib/prop_text.c (multistringprop_handle_key):
4029 * lib/dia_image.c (dia_image_rgba_data):
4031 * lib/diagramdata.c (layer_set_object_list):
4034 Getting rid of compile warnings.
4036 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
4037 images. Also remove unused decls.
4039 2004-03-02 Lars Clausen <lars@raeder.dk>
4042 * lib/widgets.c (dia_size_selector_init): Add images to the size
4043 selector chain widget. Also new function to load installed images
4044 from files (better than from included XPM, IMHO).
4046 2004-03-02 Lars Clausen <lars@raeder.dk>
4049 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
4053 * lib/widgets.c (dia_size_selector_init): Work
4054 on getting proper icon onto the size selector. Need simple image
4055 load mechanism in utils.
4059 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
4060 strings, handle utf8 strlen properly. Bug #135930.
4062 2004-03-01 Lars Clausen <lars@raeder.dk>
4064 * shapes/Cybernetics/*:
4065 * sheets/Cybernetics.sheet.in:
4066 * sheets/Makefile.am:
4067 * shapes/Makefile.am:
4068 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
4069 Roggendorf): Cybernetic shapes (#95553).
4071 2004-03-01 Lars Clausen <lars@raeder.dk>
4073 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
4075 * lib/diatypes.h: New type DiaSizeSelector.
4077 * lib/widgets.[ch]: New size selector widgets that selects two
4078 values (width and height, nominally) optionally linked to keep
4081 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
4083 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
4084 in front of file. Bug #128600.
4088 * app/lineprops_area.[ch]:
4090 * lib/dialinechooser.[ch]:
4091 * lib/widgets.c (dia_line_style_selector_init): use line preview
4092 instead of text labels. This involve moving away line_chooser to lib
4095 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
4098 * app/Makefile.am (dia_core_files):
4099 * app/interface.c (create_lineprops_area):
4100 * app/render_pixmap.[ch]:
4102 * lib/diaarrowchooser.[ch]:
4105 * lib/propdialogs.c:
4106 * lib/render_pixmap.[ch]:
4107 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
4108 of text labels. This involve moving away arrow_chooser to lib from
4111 2004-02-29 Lars Clausen <lars@raeder.dk>
4113 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
4114 being updated half-way through destruction. To be removed when
4115 the lists are replaced by something better.
4117 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
4118 Accelerators for class dialog. Bug #130995.
4119 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
4122 * app/preferences.c:
4124 * objects/GRAFCET/step.c:
4125 * objects/Misc/analog_clock.c:
4126 * objects/chronogram/chronoline.c:
4127 * objects/chronogram/chronoref.c:
4128 Change to american spelling (color, not colour) to ease
4129 translators job. Note that a number of translations may need an
4130 update now. Bug #120466.
4132 2004-02-29 Lars Clausen <lars@raeder.dk>
4134 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
4135 Better arrow handling for missing arrows.
4137 * plug-ins/metapost/render_metapost.[ch]: Patch from
4138 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
4139 size. See bug #135363.
4141 * app/app_procs.c (app_init): If non-interactive, or if
4142 --log-to-stderr used, send all messages to stderr. This should
4143 mean that old diaconv == dia --export-to-format=FOO BAR
4145 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
4147 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
4149 2004-02-28 Lars Clausen <lars@raeder.dk>
4151 * lib/text.c (text_key_event): Patch from Kouhei Sutou
4152 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
4154 2004-02-27 Lars Clausen <lars@raeder.dk>
4156 * KNOWN_BUGS: Added info on most commonly reported bugs, with
4159 * app/disp_callbacks.c (popup_object_menu): Unified properties
4160 entry, fixes bug #105080.
4162 * app/diagram.c (diagram_update_menu_sensitivity):
4163 * app/menus.h (struct _UpdatableMenuItems):
4164 * app/menus.c (menus_initialize_updatable_items): Menu items
4165 changed around, align menus flattened, properties entry ghosted,
4166 dialogs menu removed, more shortcuts added. Closing bugs #94018,
4168 Also taking out Gnome menus for now. They don't allow shortcuts,
4169 so what are they good for?
4171 2004-02-27 Lars Clausen <lars@raeder.dk>
4173 * app/menus.c (display_menu_items):
4174 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
4177 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
4179 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
4181 2004-02-23 Lars Clausen <lars@raeder.dk>
4183 * app/app_procs.c (app_init): Comments for translators.
4185 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
4187 * app/preferences.c (prefs_create_dialog): Change packing policy
4188 for widget to expand.
4190 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
4191 running with a debugger.
4193 2004-02-19 Lars Clausen <lars@raeder.dk>
4195 * app/undo.[ch]: Adding last-saved information to undo to allow a
4196 diagram with all changes since last save undo to be marked as
4197 nonmodified. Still needs integration with actual undo
4201 * app/diagram_tree.c (diagram_tree_update):
4203 * app/display.c (update_modified_status):
4204 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
4205 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
4208 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
4209 vs. EPSI, comment out EPSI until preview is in there.
4212 * lib/diarenderer.c: Removing debugging printfs.
4214 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
4217 * objects/standard/arc.c (arc_update_handles): Check to avoid
4218 crash when start and end points are the same.
4220 2004-02-19 Lars Clausen <lars@raeder.dk>
4222 * objects/standard/bezier.c:
4223 * objects/standard/line.c (line_load):
4224 * objects/standard/polyline.c (polyline_load):
4225 * objects/standard/zigzagline.c (zigzagline_load):
4226 * objects/standard/arc.c (arc_load):
4227 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
4228 instead of hardcoding.
4230 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
4232 * app/disp_callbacks.c (popup_object_menu): append a menu item to
4235 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
4237 * app/app_procs.c: declare rc properly with the proper #ifdef
4239 2004-02-17 Lars Clausen <lars@raeder.dk>
4241 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
4242 objects (which seemingly FIG itself breaks, or else there is no
4245 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
4247 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
4248 width renderable in xfig. Helps on bug #133637, but does not
4249 quite fix it -- something about depth is wrong.
4251 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
4252 Extern definitions for Mac compilation.
4254 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
4255 (jdassen@debian.org): Include fix.
4257 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
4258 sure the initial diagram size is correct.
4260 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
4262 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
4263 CPPFLAGS, as per automake warning.
4264 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
4265 LDFLAGS, as per automake warning.
4266 (run_dia.sh): More robust creation, and more easily moved.
4268 * app/undo.c (group_objects_revert): Don't double-free the objects
4269 list. (#129221) Call object_add_updates on grouped objects.
4270 (ungroup_objects_revert): Call object_add_updates on grouped objects.
4272 * lib/diagramdata.c: Internal
4275 * lib/polyshape.c (polyshape_update_data): Correctly calculate
4276 directions for polyshape corners (thanks, Valgrind!)
4279 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
4281 * lib/arrows.h: Default arrow size defined. After all are using
4282 this, may lower to 0.4 or so.
4284 * app/lineprops_area.[ch]: New function to set the arrow type for an
4287 * app/interface.c (create_lineprops_area): Set default line to
4288 have an arrow (fairly likely to be what's wanted, plus it shows
4289 the user where arrows are set).
4291 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
4293 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
4295 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
4296 Dotted lines should use dot_length, not dash_length.
4298 2004-02-06 Hans Breuer <hans@breuer.org>
4300 * app/interface.c : don't use gtk_drawing_area_size() to avoid
4301 the defaut size being also the minimum size. Instead use
4302 gtk_window_set_default_size() on the display shell. Fixes #130982.
4304 [fixing #131210, but umlauts in the 'main' filename still not really
4305 supported on systems where filesystem encoding != utf8
4306 (Problems with recent file menu and window title)]
4307 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
4308 to deal with possible differnces in filename encodings, see
4309 g_filename_<to|from>_utf8()
4310 * objects/standard/image.c : use them.
4312 * lib/widgets.c : handle possible encoding difference here, too.
4313 Also get rid of most warnings by using const and GTK casts where
4314 appropriate; one wrong cast (probably causing a crash) was found/fixed
4315 by this - the remaining give a hint on finally leaking FontSelectorEntry.
4317 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
4318 dia_file_selector_<get|set>_file to behave like the respective Gtk
4319 functions do : encoding- and const-wise ;-)
4321 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
4323 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
4325 2004-01-19 Hans Breuer <hans@breuer.org>
4327 * app/app_procs.c app/diaconv :
4328 only call bind_textdomain_codeset when available, what's good
4329 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
4330 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
4332 2004-01-19 Steffen Macke <sdteffen@web.de>
4334 * makefile.msc: updated for new GAIM-like installer build; sync'ed
4335 ALL_LINGUAS with configure.in
4337 2004-01-18 Hans Breuer <hans@breuer.org>
4339 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
4340 by not passing NULL to g_print()
4342 * app/interface.c (create_toolbox) : actually use
4343 persitence_register_window() to restore toolbox window size
4345 * app/makefile.msc lib/makefile.msc : allow to deselect
4346 building with Freetype by command line to nmake like :
4347 nmake -f makefile.msc "NOFT2=1"
4349 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
4350 far as possible with Dia's limited line style
4351 * plug-ins/python/pydia-property.c : allow to get and set
4352 Linestyle, style and dash(length)
4354 * lib/object.h : removed typedef for ObjectId not use anywhere
4356 2004-01-17 Hans Breuer <hans@breuer.org>
4358 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
4359 doc/shape.dtd doc/custom-shapes :
4360 support for images in custom shapes, also removed some long-time
4363 * doc/en/*.xml : fixed crippled line ends which get created
4364 when windoze line ends are checkin from the unix side
4366 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
4368 * configure.in: Added "sq" to ALL_LINGUAS.
4370 2004-01-11 Hans Breuer <hans@breuer.org>
4372 [more less leaks ;-]
4374 * objects/SADT/annotation.c : use text_destroy() not g_free()
4376 * objects/chronogram/chronoline.c : neither leak chronoline::events
4377 nor chronoline::name
4379 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
4381 2004-01-11 Hans Breuer <hans@breuer.org>
4383 * lib/properties.h :
4384 * objects/custom/custom_object.c : more properties optional
4385 to be backward compatible for older diagrams not having them
4386 set. (Try to load samples/all_objects.dia)
4388 [less memory leaks thanks valgrind ;-]
4390 * app/recent_files.c (recent_file_history_write) :
4391 g_free(history_filename);
4392 (recent_file_menu_item) : use g_path_get_basename()
4393 which already strdups, free result of g_strescape()
4395 * app/filedlg.c (create_export_menu) : return of
4396 filter_get_export_filter_label() must be g_free()'d
4397 (create_open_menu) : same for import
4399 * app/export_png.c (export_png_ok) : destroy info ptr
4400 with png_destroy_write_struct()
4402 * app/app_procs.c (app_init) : g_free(export_format_string);
4404 * lib/font.c (dia_font_finalize) : finalize parent_class, too
4405 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
4406 refing it a second time, g_type_create_from_instance() is enough
4408 * lib/object_defaults.c (_obj_store) : don't mess with names
4409 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
4411 2004-01-11 Steffen Macke <sdteffen@web.de>
4413 * app/diapsftrenderer.c: including ftoutln.h
4414 * app/makefile.msc: updated for freetype build
4415 * lib/libdia.def: added dia_font_get_context()
4416 * lib/dialibartrenderer.c (draw_string): added cast
4418 2004-01-10 Hans Breuer <hans@breuer.org>
4420 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4421 transformed coordinates, fixes bug 130804
4423 2004-01-10 Hans Breuer <hans@breuer.org>
4425 * app/filedlg.c app/app_procs.c : don't try to destroy
4426 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4427 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4428 returns. Fixes 'has no handler' bugs like #121019
4430 2004-01-10 Hans Breuer <hans@breuer.org>
4432 * objects/UML/class.c objects/UML/class_dialog.c :
4433 handle umlclass->name being empty to avoid, i.e. fix #127968
4435 [plugging memleaks, thanks valgrind :-]
4437 * lib/dia_xml.c (data_string) : don't leak return value
4438 of xmlNodeListGetString()
4440 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4441 before returning, maybe alloca() would be the better
4442 choice but anyway ;)
4444 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4446 * lib/font.c (dia_font_build_layout) : don't leak result
4449 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4450 (this is the one which got me started using valgrind, see #130816)
4452 2004-01-07 Sanlig Badral <badral@openmn.org>
4454 * configure.in: Added "mn" to ALL_LINGUAS.
4456 2004-01-04 Hans Breuer <hans@breuer.org>
4458 * lib/diagdkrenderer.c : replace rendering of really small (height
4459 less than 2 pixels) with a simple dashed line, you wont notice the
4460 differnce beside it being much faster. This allows ...
4461 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4462 * app/navigation.c : ... and lets you see an read rendered text even
4463 in the nice navigation popup.
4465 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
4466 (draw_string) : don't leak temporary image
4468 2004-01-04 Hans Breuer <hans@breuer.org>
4470 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4471 * app/interface.c : use dia-app-icons.h to give Dia window icons
4473 * lib/dia_image.c lib/color.c : _never_ call functions implemented
4474 in app/ from lib/. It is not portable and broken from design
4475 * app/app_procs.c : call color_init() and dia_image_init() conditional,
4476 i.e. only if running interactive.
4478 * lib/font.h : #include <time.h>
4480 * lib/libdia.def : updated externals
4482 * objects/UML/actor.c
4483 objects/UML/association.c (todo)
4484 objects/UML/branch.c
4485 objects/UML/class.[hc] objects/UML/class_dialog.c
4486 objects/UML/classicon.c
4487 objects/UML/component.c
4488 objects/UML/constraint.c
4489 objects/UML/dependency.c
4490 objects/UML/generalization.c
4491 objects/UML/implements.c
4492 objects/UML/large_package.c
4493 objects/UML/lifeline.c
4494 objects/UML/message.c
4496 objects/UML/object.c
4497 objects/UML/realizes.c
4498 objects/UML/small_package.c
4500 objects/UML/usecase.c
4502 : ported coloring of most UML objects (bug #97517, orginal
4503 work Mathias Hasselmann)
4505 * lib/properties.h : add _OPTIONAL variants for
4506 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4507 i.e. default colored - UML diagrams without complaining
4508 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4509 not set properties with the help of PXP_NOTSET. Otherwise
4510 optional attributes would lead to wrong initialization.
4512 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4513 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4514 Same for most other selectors which probably should be rewritten
4515 to the combo box with tree model from Gtk+ 2.4
4517 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
4519 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4520 being the Right Thing(tm) to use on Solaris.
4522 * objects/standard/bezier.c (bezierline_draw): Don't draw
4523 guidelines if not selected.
4525 * lib/object.[ch] (dia_object_is_selected): Function to check whether
4526 a given object is selected. O(n), where n is # selected objects.
4529 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
4531 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4532 Fonts dialog is closed without pressing Ok (bug #128646).
4534 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
4536 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4539 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
4541 * INSTALL: Updated list of requirements (bug #129653)
4543 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4544 Pionchon <luc@handhelds.org>.
4546 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4548 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4549 empty or NULL strings (bug #130097).
4551 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
4553 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4554 Added checks against color_black.
4556 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4558 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4559 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
4562 * objects/UML/component_feature.c: Patch from W. Borgert
4563 <debacle@debian.org>: Add handle to component feature text.
4565 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4567 * lib/font.c: Caching PangoLayout for better rendering speed.
4569 2003-12-30 Lars Clausen <lars@raeder.dk>
4571 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4572 get absolute file name from relative.
4573 * app/recent_files.c (recent_file_history_add): Use absolute
4574 filenames for recent files menu so that files can be found when
4575 Dia is invoked from other places.
4577 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4578 Actually load different diagrams if such are requested on command
4581 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4582 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4584 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
4585 remove text rendering. May be turned into greeking at some later
4589 * app/Makefile.am (dia_core_files):
4590 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
4591 Adds navigation window a la Gimp, though without text being
4594 2003-12-27 Luc Pionchon <luc@handhelds.org>
4596 * app/navigation.h: (new file)
4597 * app/navigation.c: (new file) creates a navigation window with a
4598 thumbnail view of the whole diagram.
4599 * app/Makefile.am (dia_core_files): added new files.
4601 * app/interface.c (create_display_shell): added a button between
4602 the scrollbars to popup a navigation window.
4604 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
4606 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
4607 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
4608 not want text rendering.
4610 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
4612 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
4614 * objects/custom/shape_info.[ch]: Cleanup.
4616 * objects/custom/custom_object.[ch]: Changed to use new props
4621 * lib/prop_inttypes.c:
4622 * lib/prop_geomtypes.c: Added *prop_get_data_size.
4624 * lib/libdia.def: Added object_load_props.
4626 * configure.in: Better FT2 version test, from bug #129225.
4628 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
4630 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
4631 Lehmann <holger.lehmann@catworkx.de>.
4633 * plug-ins/xslt/Makefile.am:
4634 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
4635 and OWL XSLT sheets.
4637 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
4639 * lib/diagdkrenderer.c: Add implementation so text is still
4640 rendered. May be improved later.
4646 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
4647 Allow running without a $DISPLAY!
4649 * lib/color.c: Remove warnings for non-interactive run.
4654 * app/app_procs.[ch]:
4655 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
4656 to specify size for PNG output.
4658 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
4659 render a little smaller, so as to fit the big ones.
4661 * lib/arrows.[ch]: New arrow type from W. Borgert
4662 <debacle@debian.org>: Filled Dot and Triangle.
4664 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
4666 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
4669 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
4671 * acinclude.m4: Better Python configure code patch (can't find
4672 author, author please speak up!)
4674 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
4676 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
4679 2003-11-30 Hans Breuer <hans@breuer.org>
4681 * plug-ins/python/diasvg.py : initialize self.dash_length
4682 in constructor to avoid crashing if the renderer user
4683 does not set it before first usage.
4685 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
4687 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
4691 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
4692 development and stable versions.
4694 * lib/text.c (text_draw): Use new renderer function to draw the
4697 * lib/diarenderer.h:
4698 * lib/diarenderer.c: New renderer function "draw_text" with
4699 default implementation. This function should eventually be the
4700 main interface, as it will be able to handle width and caching of
4701 rendering internally. All users of draw_string should convert to
4702 use Text objects and call either renderer->draw_text or text_draw,
4703 the latter if the text can be edited in-place (as should be the
4706 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
4708 * shapes/Circuit/hresistor.shape: First example of extra
4711 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
4713 * plug-ins/shape/shape-export.c:
4714 * lib/diasvgrenderer.h:
4715 * lib/diasvgrenderer.c:
4716 * plug-ins/svg/render_svg.c (new_svg_renderer):
4717 Actually store the font size, using DiaRenderer's font fields.
4719 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
4721 * objects/custom/shape_info.[ch]:
4722 * objects/custom/custom_object.[ch]:
4723 Support for extra attributes in custom objects.
4725 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
4727 * app/diagram.c (diagram_update_menu_sensitivity): More
4728 intelligent checks for menu sensitivity. Might be slow on huge
4729 diagrams, but I think other things outweigh it by a lot.
4731 * app/menus.[ch]: Make "Bring Forwards"
4732 and "Send Backwards" updateable.
4734 2003-11-22 Steffen Macke <sdteffen@web.de>
4736 * shapes/Assorted/arrow-turn-up.shape:
4737 * shapes/Assorted/arrow-turn-up.png:
4738 * sheets/Assorted/Makefile.am:
4739 * sheets/Assorted.sheet.in: Added new arrow
4741 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
4749 * app/diagram_tree.c
4750 * app/diagram_tree_menu.c
4751 * app/diagram_tree_window.c
4752 * app/diapagelayout.c
4753 * app/diaunitspinner.c
4757 * app/layer_dialog.c
4758 * app/lineprops_area.c
4759 * app/linewidth_area.c
4762 * app/paginate_psprint.c
4764 * app/plugin-manager.c
4767 * app/recent_files.c
4769 * app/sheets_dialog.c
4770 * app/sheets_dialog_callbacks.c
4771 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
4772 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
4774 * TODO: Updated, note on EPS transparency.
4776 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
4778 * objects/UML/class.c (umlclass_draw): Allow classes with no name
4781 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
4784 * doc/en/dia-manual.xml:
4787 * NEWS: Another Brown Bag release for parenting problems,
4788 including a crash bug fix.
4790 * app/connectionpoint_ops.c (diagram_update_connections_object):
4791 Also update connections when moving children. This can cause
4792 move_handle to be called twice, so it must be idempotent.
4794 * app/load_save.c: Loading and saving of children totally redone.
4795 Now doesn't violate assumption that all objects in a layer are
4796 placed in order in XML file.
4798 * objects/UML/branch.c (branch_create): Don't lie about being
4801 * objects/UML/node.c (node_create):
4802 * objects/UML/large_package.c (largepackage_create): Drag with
4803 lower right-hand handle at creation like all other objects.
4805 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
4807 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
4808 parenting drop to behave like a move inside, i.e. constrain place
4809 instead of trying to resize. 'Cause, resizing cannot be done for
4810 all objects (e.g. UML Class). Also simplified the algorithm a lot
4813 * app/load_save.c: Saving and loading of connection points for
4814 children added. Prototypes for static functions added.
4816 * lib/dynamic_obj.c: Removed debugging output.
4818 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
4820 * doc/en/dia-manual.xml:
4821 * doc/pl/dia-manual.sgml:
4825 * NEWS: Brown Bag release 0.92.1
4827 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
4829 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
4831 * app/app_procs.c (app_init): Rearrangement for translators.
4833 2003-10-24 Steffen Macke <sdteffen@web.de>
4835 * lib/text.c(text_key_event): enforcing the inserted text length now,
4838 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
4840 * MAINTAINERS: Change Debian maintainer to be the default address.
4842 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
4843 args to match prototype, thus removing crashbug #125159.
4845 * RELEASE-PROCESS: Note to self.
4847 2003-10-22 Steffen Macke <sdteffen@web.de>
4849 * doc/en/dia-manual.xml: removed superfluous external references
4851 2003-10-21 Steffen Macke <sdteffen@web.de>
4853 * lib/libdia.def: added filter_get_by_name
4854 * app/render_eps.c: moved extensions definition outside #ifdef
4856 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
4860 Removed old Dia manual, put new one in doc/en/. Translations
4861 should go in doc/??/.
4863 * doc/en/dia-manual.xml:
4864 * doc/pl/dia-manual.sgml:
4865 * dia.spec (Release):
4868 * NEWS: 0.92 is here!
4872 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
4873 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
4876 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
4878 * doc/en/usage-objects-selecting.xml: Commented out empty note.
4880 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
4882 * doc/pl/dia-manual.sgml:
4883 * doc/en/dia-manual.xml:
4887 * dia.spec (Release): Pre7.
4889 * app/diapsrenderer.c (draw_string): Convert string to print based
4890 on current locale. If conversion fails, fall back to UTF-8 (which
4891 is almost certain to be messy).
4893 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
4895 * doc/pl/dia-manual.sgml:
4896 * dia.spec (Release):
4900 * doc/en/dia-manual.xml: Pre6.
4902 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
4903 TeX chars in strings -- must be possible to use TeX text in there.
4904 Also avoids infinite loop bug (#124464) Will get option for this
4907 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
4909 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
4911 * doc/en/dia-manual.xml:
4912 * doc/pl/dia-manual.sgml:
4913 * dia.spec (Release):
4918 * app/authors.h: Removed duplicate of M. C. Nelson.
4920 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
4922 * app/export_png.c: Unique name for libart PNG export: png-libart.
4924 * app/render_eps.c: Unique names for the two eps export methods:
4925 eps-builtin, eps-pango.
4927 * lib/filter.h: Binary compatibility change:
4928 Added unique name to export filters. Can be NULL.
4929 * lib/filter.c (filter_get_by_name): Finding a filter by
4932 * app/app_procs.h: Changed prototype for do_convert.
4933 * app/app_procs.c (app_init): Support for non-extension file
4934 format selection for export. Also allow extension to differ from
4935 that specified by the filters. A bit of refactoring, too.
4937 2003-09-28 Steffen Macke <sdteffen@web.de>
4939 * makefile.msc: added target po to update the translations
4941 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
4944 * dia.spec (Release):
4946 * doc/pl/dia-manual.sgml:
4947 * doc/en/dia-manual.xml:
4948 Pre4 is given a short try.
4950 * configure.in: Give all necessary libs to PNG test.
4952 * lib/font.c: Added legacy entries for sans, serif and monospace.
4954 * app/app_procs.c (internal_plugin_init):
4957 Added PS fonts output for Unix.
4959 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
4960 factor to make PS fonts stay in boxes.
4962 2003-08-03 Hans Breuer <hans@breuer.org>
4964 * config.h.win32 : close the version string
4966 * lib/libdia.def : with color_white, color_black being static
4967 on win32 they can not be exported anymore either
4969 * lib/dialibartrenderer.c : text rendering is back on win32,
4970 only by Gdk though; almost a year seems to be enough to
4971 wait for my patch at bug #94791 to be accepted ...
4973 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
4975 * shapes/network/{digitizing_board.png,plotter.png,
4976 laptop.png,telephone.png}: 22x22 icons.
4978 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
4980 * doc/pl/dia-manual.sgml:
4981 * doc/en/dia-manual.xml:
4982 * dia.spec (Release):
4986 pre3 improves font rendering speed.
4988 * app/app_procs.c (app_init): Don't do pango init here, it's done
4989 on demand in font.c now.
4991 * lib/font.c: Load pango context on demand rather than during
4992 init/all the time strikes a better balance between working font
4993 size and speed. Still need to cache width calculations.
4995 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
4997 * lib/dia_xml.c: Enable pretty printing. Should have been added
5000 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
5002 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
5003 adjustment a bit for half diamond and open round.
5005 * RELEASE-PROCESS: Added note about notifying translators and
5008 * doc/pl/dia-manual.sgml:
5009 * doc/en/dia-manual.xml:
5010 * dia.spec (Release):
5014 Update to 0.92-pre2.
5016 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
5018 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
5019 calculation for half diamond and open round.
5022 * objects/UML/component_feature.c:
5023 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
5024 arrows instead of specific little hacks. Much nicer, but damn
5025 there's a lot of arrows.
5027 * lib/dialibartrenderer.c (begin_render):
5028 * app/render_libart.c (begin_render): Use correct DPI for screen
5029 (well, actually the default DPI of 75 for now).
5031 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
5033 * lib/diagdkrenderer.c (draw_string): Some reformatting.
5035 * app/app_procs.c (app_init): Note on what should be done for the
5036 pango context now, only it doesn't work:(
5038 * lib/font.c (dia_font_new): Make sure to load fonts that are
5039 used, using a reasonable pango_context. Also a comment on the
5042 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
5044 * doc/pl/graphics/*.png:
5045 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
5046 loop (bug #121817). PL translator may want to change the
5047 home_network png to be in Polish. If the docs get translated into
5048 more languages, we'll want to find out how to share these things.
5050 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
5052 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
5053 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
5056 * app/filedlg.c (file_save_as_callback): Put filename setting
5057 together. (Preparation for allowing default save dir.)
5059 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
5060 correctly this time:)
5062 * app/dia-props.c (diagram_properties_show):
5063 * app/properties.c (properties_show): Make sure the
5064 dialogs are transient for the correct diagram.
5066 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
5068 * configure.in: Make sure -lz -lm is passed into second png test
5069 as well (stupid AC_LINK_IFELSE can't take it as an argument).
5071 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
5072 comment-filled files readable. Once we have a 'generic data'
5073 system, we can put comments in there.
5075 2003-09-06 Steffen Macke <sdteffen@web.de>
5077 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
5078 g_string_sized_new() instead of g_string_new() to make it compile
5079 * app/Makefile.am: including dia.ico and dia.rc in the tarball
5080 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
5081 for non-solid linestyles - otherwise custom linestyles have to be used.
5083 2003-09-02 Steffen Macke <sdteffen@web.de>
5085 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
5088 2003-09-02 Christian Neumair <chris@gnome-de.org>
5090 * sheets/Pneumatic.sheet.in: Slight unification fix.
5092 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
5096 * dia.spec (Release):
5097 * doc/en/dia-manual.xml:
5098 * doc/pl/dia-manual.sgml:
5099 * NEWS: Update to 0.92-pre1.
5101 * app/properties.c (properties_key_event): Removing Esc/Enter
5102 handling for now, interferes to much with regular dialog usage.
5104 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
5105 Function to escape special TeX characters. Not in use yet, as
5106 PSTricks output by default is TeX strings. Should get a save-time
5109 2008-09-01 Steffen Macke <sdteffen@web.de>
5111 * lib/paper.h: explanatory comment on width and height
5113 2003-08-30 Steffen Macke <sdteffen@web.de>
5116 * lib/color.h: made color_white, color_black static on win32
5118 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
5120 * configure.in (PNG_LIBS): Something in the png tests added an
5121 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
5123 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
5125 * configure.in: Quote correctly for temporarily adding freetype
5128 * app/preferences.c (prefs_save): Remove debugging g_print.
5130 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
5132 * objects/flowchart/parallelogram.c (pgram_update_data):
5133 Directions for connections, better system for placing
5136 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
5138 * lib/diagramdata.c (layer_find_closest_object_except): Look all
5139 the way through the object list, so the foremost object is selected.
5141 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
5142 included for diagramdata.c.
5144 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
5145 newline in multistringprop not close the dialog. Failed so far.
5147 2003-08-25 Steffen Macke <sdteffen@web.de>
5149 * app/commands.c: using CHM instead of HTML on win32 if available
5150 * lib/diagramdata.h: including dynamic_obj.h
5152 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
5154 * app/properties.c (properties_key_event): Make Enter = Ok for
5155 properties dialogs. Still some problems with this and Esc for
5156 Cancel, for instances escaping out of a menu closes the dialog.
5158 * objects/UML/association.c (association_get_properties):
5159 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
5162 * app/diapsft2renderer.c (draw_string): Use
5163 dia_font_scaled_build_layout to ensure similarity of text.
5165 * lib/diagramdata.c: Remove obj from dynobj list when removing
5166 from layer to avoid nasty race conditions.
5168 * app/undo.c (group_objects_revert): Make sure to unparent and
5169 remove from dynobj list when changing layers objects.
5171 2003-08-23 Steffen Macke <sdteffen@web.de>
5173 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
5174 StretchBlt(); fixes #92249
5176 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
5178 * app/filedlg.c (file_save_as_callback):
5179 * app/preferences.h:
5180 * app/preferences.c (prefs_data):
5181 * lib/diagramdata.h:
5182 * lib/diagramdata.c (new_diagram_data):
5183 * app/load_save.c (diagram_data_load):
5184 Let the document remember whether it was compressed. The user can
5185 still override this in the Save As... dialog, and that will still
5186 be remembered as the default for new diagrams.
5188 2003-08-23 Steffen Macke <sdteffen@web.de>
5190 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
5192 2003-08-22 Steffen Macke <sdteffen@web.de>
5194 * plug-ins/xslt/dia-uml.xsl:
5195 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
5196 table containing a list of components grouped by stereotype
5198 2003-08-21 Steffen Macke <sdteffen@web.de>
5200 * lib/makefile.msc: added connectionpoint.obj
5201 * lib/libdia.def: added connpoint_update, find_slope_directions
5202 * app/disp_callbacks.c: including scroll_tool.h
5203 * obj/makefile.msc: added component_feature.obj
5204 * app/paginate_gdiprint.c: fixed loop initialization in
5205 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
5208 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
5210 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
5213 * lib/diagramdata.h: Colors added to prefs.
5214 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
5215 New field for pagebreak color, which should
5216 behave the same as grid color and be settable for a diagram.
5218 * app/diagram.c (diagram_init): Update diagram pagebreak color
5221 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
5224 * app/preferences.[ch]: Default diagram colors now #defines, so
5225 loading can use it. Also, colors are now in NewDiagramData, so
5226 are passed nicely into new diagrams directly from prefs. Yum.
5228 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
5229 Support for loading and saving grid and pagebreak colors with the
5230 diagram. I'm inclined to make all the three Colors in diagram
5231 Color*s instead, so we can tell if they're specified for the
5232 diagram or merely the default setting. There'd be no way for the
5233 user to tell if the color of a diagram is default, though, unless
5234 we add a 'reset to default' button to prefs.
5236 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
5237 pagebreak color. Unsensitizing grid size when dynamic.
5239 * objects/UML/component.c: Patch from Krzysztof Foltman
5240 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
5241 third. Makes the left side connections actually be on the line
5244 2003-08-20 Steffen Macke <sdteffen@web.de>
5246 * lib/libdia.def: added layer_find_closest_object_except
5247 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
5249 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
5253 * app/scroll_tool.c:
5255 * app/disp_callbacks.c:
5256 * app/create_object.h:
5257 * app/create_object.c: Patch from Krzysztof Foltman
5258 <kfoltman@onet.pl>: Middle button can scroll transiently when
5259 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
5263 * sheets/UML.sheet.in:
5264 * sheets/UML/receptacle.xpm:
5265 * sheets/UML/Makefile.am:
5266 * sheets/UML/eventsource.xpm:
5267 * sheets/UML/eventsink.xpm:
5268 * objects/UML/pixmaps/facet.xpm:
5269 * objects/UML/uml.c (dia_plugin_init):
5270 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
5271 * objects/UML/component_feature.c:
5272 Patch from W. Borgert <debacle@debian.org>: Add event sources and
5275 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
5277 * lib/object.h: Turning some comments into doxygen style.
5279 * lib/object_defaults.c (dia_object_defaults_load)
5280 (dia_object_default_get, dia_object_default_create):
5281 Fixing up existing documentation.
5283 * lib/object.h: Doxygen style documentation begun.
5285 * app/create_object.c:
5287 * app/connectionpoint_ops.c:
5288 * app/disp_callbacks.c:
5289 * app/modify_tool.c:
5291 * objects/network/wanlink.c (wanlink_move_handle):
5292 * objects/network/bus.c (bus_move_handle):
5294 * objects/flowchart/parallelogram.c (pgram_move_handle):
5295 * objects/flowchart/ellipse.c (ellipse_move_handle):
5296 * objects/flowchart/diamond.c (diamond_move_handle):
5297 * objects/flowchart/box.c (box_move_handle):
5299 * objects/custom/custom_object.c (custom_move_handle):
5301 * objects/chronogram/chronoref.c (chronoref_move_handle):
5302 * objects/chronogram/chronoline.c (chronoline_move_handle):
5304 * objects/SADT/box.c (sadtbox_move_handle):
5305 * objects/SADT/arrow.c (sadtarrow_move_handle):
5306 * objects/SADT/annotation.c (annotation_move_handle):
5308 * objects/Misc/analog_clock.c (analog_clock_move_handle):
5310 * objects/GRAFCET/vergent.c (vergent_move_handle):
5311 * objects/GRAFCET/vector.c (arc_move_handle):
5312 * objects/GRAFCET/transition.c (transition_move_handle):
5313 * objects/GRAFCET/step.c (step_move_handle):
5314 * objects/GRAFCET/condition.c (condition_move_handle):
5315 * objects/GRAFCET/action.c (action_move_handle):
5317 * objects/FS/function.c:
5318 * objects/FS/flow.c:
5319 * objects/FS/flow-ortho.c (orthflow_move_handle):
5320 * objects/FS/flow-poly.c (flow_move_handle):
5322 * objects/UML/usecase.c (usecase_move_handle):
5323 * objects/UML/state_term.c (state_move_handle):
5324 * objects/UML/state.c (state_move_handle):
5325 * objects/UML/small_package.c (smallpackage_move_handle):
5326 * objects/UML/realizes.c (realizes_move_handle):
5327 * objects/UML/object.c (objet_move_handle):
5328 * objects/UML/note.c (note_move_handle):
5329 * objects/UML/node.c (node_move_handle):
5330 * objects/UML/message.c (message_move_handle):
5331 * objects/UML/lifeline.c (lifeline_move_handle):
5332 * objects/UML/large_package.c (largepackage_move_handle):
5333 * objects/UML/implements.c (implements_move_handle):
5334 * objects/UML/generalization.c (generalization_move_handle):
5335 * objects/UML/fork.c (fork_move_handle):
5336 * objects/UML/dependency.c (dependency_move_handle):
5337 * objects/UML/constraint.c (constraint_move_handle):
5338 * objects/UML/compprop.c (compprop_move_handle):
5339 * objects/UML/component.c (component_move_handle):
5340 * objects/UML/branch.c (branch_move_handle):
5341 * objects/UML/association.c (association_move_handle):
5342 * objects/UML/actor.c (actor_move_handle):
5343 * objects/UML/activity.c (state_move_handle):
5344 * objects/UML/class.c (umlclass_move_handle):
5346 * objects/standard/ellipse.c (ellipse_move_handle):
5347 * objects/standard/zigzagline.c (zigzagline_move_handle):
5348 * objects/standard/textobj.c (textobj_move_handle):
5349 * objects/standard/polyline.c (polyline_move_handle):
5350 * objects/standard/polygon.c (polygon_move_handle):
5351 * objects/standard/line.c (line_move_handle):
5352 * objects/standard/image.c (image_move_handle):
5353 * objects/standard/bezier.c (bezierline_move_handle):
5354 * objects/standard/arc.c (arc_move_handle):
5355 * objects/standard/beziergon.c (beziergon_move_handle):
5356 * objects/standard/box.c (box_move_handle):
5358 * objects/ER/relationship.c (relationship_move_handle):
5359 * objects/ER/participation.c (participation_move_handle):
5360 * objects/ER/entity.c (entity_move_handle):
5361 * objects/ER/attribute.c (attribute_move_handle):
5363 * lib/polyshape.c (polyshape_move_handle):
5365 * lib/orth_conn.c (orthconn_move_handle):
5367 * lib/neworth_conn.c (neworthconn_move_handle):
5368 * lib/neworth_conn.h:
5369 * lib/element.c (element_move_handle):
5371 * lib/connection.c (connection_move_handle):
5373 * lib/beziershape.c (beziershape_move_handle):
5374 * lib/beziershape.h:
5375 * lib/bezier_conn.c (bezierconn_move_handle):
5376 * lib/bezier_conn.h:
5377 *BINARY COMPATIBILITY CHANGE*
5378 Update prototype for *_move_handle() to include connectionpoint,
5379 and also pass on modifiers. Pass in connectionpoint where
5382 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
5383 file connectionpoint.c.
5385 2003-08-17 Danilo Å egan <dsegan@gmx.net>
5387 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
5389 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
5391 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
5393 * lib/beziershape.c (beziershape_update_data): Autoroute
5394 directions for beziershapes!
5396 * lib/connectionpoint.c (find_slope_directions):
5397 * lib/connectionpoint.h: Function for finding the available
5398 directions on a slope.
5400 * lib/polyshape.c: Reasonable directions for
5403 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
5405 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
5406 * objects/GRAFCET/vergent.c (vergent_update_data):
5407 * objects/GRAFCET/transition.c (transition_update_data):
5408 * objects/GRAFCET/action.c (action_update_data):
5409 * objects/GRAFCET/step.c (step_update_data):
5410 * objects/FS/function.c (function_update_data):
5411 * lib/connpoint_line.c (connpointline_putonaline):
5412 * objects/ER/attribute.c (attribute_update_data):
5413 * objects/ER/entity.c (entity_update_data):
5414 * objects/ER/relationship.c (relationship_update_data):
5415 * objects/chronogram/chronoline.c (chronoline_update_data): Set
5416 directions for connection points.
5418 * objects/UML/component.c (component_create): Set to allow
5421 * app/create_object.c (create_object_button_press):
5422 * app/diagram.[ch] (diagram_find_clicked_object_except):
5423 * lib/diagramdata.[ch] (layer_find_closest_object_except):
5424 Avoid parenting to objects you're connecting to (otherwise you
5425 couldn't make a connection out of a parenting object). To do
5426 this, added functions to find the nearest object except a given
5429 * app/render_libart.c: Rearrange libart include to avoid multiple
5430 include program (and put libart includes inside #ifdef!)
5432 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
5434 * lib/dialibartrenderer.c: Don't include art_config.h if others
5435 also do, as it isn't #ifdef'd.
5437 * objects/flowchart/ellipse.c (ellipse_update_data): Add
5438 directions for connection points.
5440 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
5442 * objects/flowchart/box.c (box_update_data): Add directions, use
5444 (box_load): Use g_malloc0.
5446 * lib/Makefile.am (libdia_la_SOURCES):
5447 * lib/connectionpoint.c (connpoint_update):
5448 Function to call to update a connection point info in _update_data().
5450 * lib/connectionpoint.h: Convenience DIR_ macros.
5452 * app/preferences.c (prefs_data): Make pretty formatted XML the
5455 * lib/dialibartrenderer.c:
5456 * app/render_libart.c: Make sure art_config.h is included, cause
5457 some libart headers are broken.
5459 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5460 after test. Add freetype-config cflags to cflags variable.
5462 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
5464 * app/authors.h: Credits for Krzysztof.
5466 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5467 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
5468 than the description) is visible in the title of the properties
5469 dialog. That ought to be a short description (translatable),
5470 though we still want long descriptions for the tooltips. Hmmm...
5472 * configure.in: Updated to use AC_LINK_IFELSE instead of
5473 AC_TRY_COMPILE, also force to link to check libs on Solaris.
5475 * objects/ER/entity.c (entity_load):
5476 * objects/ER/attribute.c (attribute_load):
5477 * lib/attributes.c (attributes_set_default_font):
5478 Check if font is non-null before unreffing.
5480 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
5482 * app/diagram.c (diagram_ungroup_selected)
5483 (diagram_group_selected): Use the undo apply to make sure grouping
5484 and ungrouping is done in consistent manners. This removes a fair
5485 amount of duplicated code from diagram.c.
5487 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
5488 (group_objects_revert, group_objects_apply): Working undo/redo for
5489 diagram tree updates. The initial actions still don't quite work.
5491 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
5493 * app/create_object.c (create_object_button_press):
5495 * app/diagram.c: Undo support for parenting. Uses apply/revert in
5496 undo only for manipulating the parent/child relationships. Things
5497 like removing an object doesn't use the undo functions for
5498 parenting, so any updates to come (like to diagramtree) should be
5501 2003-08-03 Hans Breuer <hans@breuer.org>
5503 * app/create_object.c : minor formating and g_new0 for
5506 * lib/bezier_conn.[hc] lib/beziershape.[hc]
5507 lib/prop_geomtypes.c (prop_geomtypes_register)
5508 objects/standard/bezier.c objects/standard/beziergon.c :
5509 ability to set bezpoints via StdProp api
5511 * plug-ins/python/pydia-property.c : convert list of tuples
5514 * plug-ins/python/diasvg_import.py : use it to
5515 implement part of path parsing. Also minor improvements
5516 like inheritance of group attributes to members,
5517 whitespace, title and style:text/css ignoring ;-)
5519 2003-08-02 Hans Breuer <hans@breuer.org>
5521 * lib/connections.c (connection_move_handle): return
5522 something to make it compile
5523 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
5524 must return a value -> dito
5525 [Is there a warnings-as-errors switch we could use with gcc
5526 to avoid such in future ?]
5528 * plug-ins/python/pydia-object.h : define *_Check macros
5529 * plug-ins/python/diamodule.c : provide dia.group_create()
5530 * plug-ins/python/pydia-diagramdata.c : add
5531 DiaDiagramData.add_layer()
5532 * plug-ins/python/pydia-property.c : allow to set color by
5535 * plug-ins/python/diasvg_import.py : based on the above
5536 implement a) group support, b) rgb(1,2,3) color handling,
5537 and somewhat fishy data:image/png;base64 support (create
5538 temporary files from inline image data)
5539 d) dump the import errors as text into an 'Error' layer
5541 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5542 stray " in draw_rect and corrected error message formating
5544 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5545 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
5548 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
5550 * app/magnify.c (create_magnify_tool): allocate with g_new0()
5552 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
5553 preferences values (see bug 118570). Also group items into a GtkFrame.
5555 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
5560 * app/commands.c (objects_unparent_children_callback):
5562 * app/diagram.c (diagram_unparent_selected,
5563 (diagram_update_menu_sensitivity):
5564 Added unparenting of single children.
5566 * lib/bezier_conn.c:
5567 * lib/bezier_conn.h:
5568 * lib/beziershape.c:
5569 * lib/beziershape.h:
5575 * lib/neworth_conn.c:
5576 * lib/neworth_conn.h:
5583 * objects/EML/instantiation.c:
5584 * objects/EML/interaction-ortho.c:
5585 * objects/EML/interaction.c:
5586 * objects/EML/process.c:
5587 * objects/ER/attribute.c:
5588 * objects/ER/entity.c:
5589 * objects/ER/participation.c:
5590 * objects/ER/relationship.c:
5591 * objects/FS/flow-ortho.c:
5592 * objects/FS/flow-poly.c:
5593 * objects/FS/flow.c:
5594 * objects/FS/function.c:
5595 * objects/GRAFCET/action.c:
5596 * objects/GRAFCET/condition.c:
5597 * objects/GRAFCET/step.c:
5598 * objects/GRAFCET/transition.c:
5599 * objects/GRAFCET/vector.c:
5600 * objects/GRAFCET/vergent.c:
5601 * objects/Misc/analog_clock.c:
5602 * objects/SADT/annotation.c:
5603 * objects/SADT/arrow.c:
5604 * objects/SADT/box.c:
5605 * objects/UML/activity.c:
5606 * objects/UML/actor.c:
5607 * objects/UML/association.c:
5608 * objects/UML/branch.c:
5609 * objects/UML/class.c:
5610 * objects/UML/classicon.c:
5611 * objects/UML/component.c:
5612 * objects/UML/constraint.c:
5613 * objects/UML/dependency.c:
5614 * objects/UML/fork.c:
5615 * objects/UML/generalization.c:
5616 * objects/UML/implements.c:
5617 * objects/UML/large_package.c:
5618 * objects/UML/lifeline.c:
5619 * objects/UML/message.c:
5620 * objects/UML/node.c:
5621 * objects/UML/note.c:
5622 * objects/UML/object.c:
5623 * objects/UML/realizes.c:
5624 * objects/UML/small_package.c:
5625 * objects/UML/state.c:
5626 * objects/UML/state_term.c:
5627 * objects/UML/usecase.c:
5628 * objects/chronogram/chronoline.c:
5629 * objects/chronogram/chronoref.c:
5630 * objects/custom/custom_object.c:
5631 * objects/flowchart/box.c:
5632 * objects/flowchart/diamond.c:
5633 * objects/flowchart/ellipse.c:
5634 * objects/flowchart/parallelogram.c:
5635 * objects/network/bus.c:
5636 * objects/network/wanlink.c:
5637 * objects/standard/arc.c:
5638 * objects/standard/bezier.c:
5639 * objects/standard/beziergon.c:
5640 * objects/standard/box.c:
5641 * objects/standard/ellipse.c:
5642 * objects/standard/image.c:
5643 * objects/standard/line.c:
5644 * objects/standard/polygon.c:
5645 * objects/standard/polyline.c:
5646 * objects/standard/textobj.c:
5647 * objects/standard/zigzagline.c:
5648 Binary compatibility update: Added return value for foo_move() and
5649 foo_move_handle(). Orthconn derivatives also returns change from
5650 orthconn_move_handle().
5652 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
5653 doesn't support it yet.
5655 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
5656 Add returning ObjectChange from object moves. Needs to handle
5657 multiple object moves.
5659 * app/modify_tool.c (modify_motion, modify_release): Add
5660 ObjectChange from move & move_handle to undo stack.
5662 * objects/EML/instantiation.c (instantiation_move): Removing
5663 duplicate move & update.
5665 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
5667 * plug-ins/xfig/xfig-export.c: Added support for arrow head
5668 export. Many arrow types not supported by XFig, replacing those
5669 with standard arrows. Not sure whether it'd be better to render
5670 them as a group of lines instead. You'd lose the arrow-ness for
5671 further editing, but preserve the actual shape of it. Also added
5672 support for dash length.
5674 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
5676 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
5677 description for version 3.2, for reference.
5679 * plug-ins/xfig/xfig-import.c: Added import of arrows.
5681 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
5682 Align Vertical Adjacent call _v rather than _h.
5684 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
5686 * app/scroll_tool.c (create_scroll_tool):
5687 * app/modify_tool.c (create_modify_tool): use g_new0() to
5690 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
5692 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
5694 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
5696 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
5698 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
5700 * configure.in: Added Belarusian to ALL_LINGUAS.
5702 2003-07-19 Hans Breuer <hans@breuer.org>
5705 Make the xslt plug-in work on win32, too. It appears
5706 to require a quite recent version of libxml and libxslt,
5707 otherwise windoze pathes aren't translated correctly
5708 during file processing
5711 * plug-ins/xslt/xslt.h : #include <glib.h> before
5714 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
5715 the 'script' file finding similar to how it is done
5716 with the python scripts (no need for hardcoded pathes,
5717 removed the 'plugin' part from the path)
5719 * plug-ins/xslt/stylesheets.xml : added again. It does
5720 not have any path but only the pure filename again
5722 * plug-ins/xslt/stylesheets.xml.in : removed
5724 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
5725 rule to process stylesheets.xml.in
5727 * plug-ins/makefile.msc : added xslt
5729 2003-07-19 Hans Breuer <hans@breuer.org>
5731 Finally Dia learned to remember the recent selected sheet
5733 * app/preferences.[hc] : added prefs.recent_sheet
5734 * app/interface.c : restore and remember the sheet-option-menu
5735 history, but only if the respective number is stiil available.
5736 This additional adds robustness against running Dia without
5737 any sheet (e.g. installation problems)
5738 * app/app_procs.c : call prefs_safe() in app_exit() to remember
5739 changes which are not done by the prefernces dialog
5741 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
5742 removed every call (especially the conditional ones) to prefs_safe().
5743 Before prefs_safe() was called _many_ times during Dia startup
5745 2003-07-18 Hans Breuer <hans@breuer.org>
5747 * app/makefile.msc lib/makefile.msc lib/libdia.def :
5750 * lib/color.c : use gtk_widget_get_default_visual();
5751 as suggested in #114536
5753 * app/interface.c app/disp_callbacks.c :
5754 moved round_up () to the latter file where it is used
5756 * app/linewidth_area.c : #include "interface.h" for
5757 interface_get_toolbox_shell()
5759 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
5761 * plug-ins/pixbuf/.cvsignore
5762 * shapes/Cisco/.cvsignore:
5765 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
5767 * app/dia-props.c (diagram_properties_retrieve): Use
5768 diagram_get_name() to add the diagram name to the diagram
5772 * app/diagram.c (diagram_get_name): New function to get a
5773 reasonable diagram name.
5775 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5776 info. Still need to be able to set dynamic grid. Also ought to
5777 follow Gnome style and have instant apply.
5779 * app/preferences.h:
5780 * app/preferences.c (prefs_data): Remove option to use stippled
5781 grid, add option for major line offset. Default to 5 minor lines
5783 Add option for dynamically sized grid.
5785 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5787 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
5788 stippled/solid to display minor/major grid lines. Line drawing in
5789 separate functions away from calculating line distance.
5791 * app/grid.h: Split page break drawing out of grid_draw.
5793 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
5794 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
5795 when menu item is selected.
5797 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
5799 * configure.in: Removed -Winline flag to make way for important
5802 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
5803 non-compressed. Should fix bug #117381, also look prettier.
5806 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
5807 Set up desktop info more properly.
5809 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
5826 Autorouting directions patch from Krzysztof Foltman
5829 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
5830 GNOME parent menu items.
5832 * app/authors.h: Added Vadim to contributors list.
5834 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
5836 * app/commands.[ch]:
5837 * app/create_object.c:
5838 * app/disp_callbacks.[ch]:
5849 * objects/UML/large_package.c: Patch from Vadim Berezniker
5850 <vadim@berezniker.com>:
5851 Objects may "parent" other objects, i.e. contain them within
5852 themselves, restrain them and move them along. Some more stuff is
5853 needed, such as selection and individual unparenting. This adds
5854 parenting to UML - Large Package rather than Box.
5856 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
5858 * app/linewidth_area.c: Patch from Krzysztof Foltman
5859 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
5860 conform more, at least:).
5862 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
5863 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
5864 arcs. Implemented images (though there is some pixelization and
5865 banding in the output). Changed output file format to be a little
5868 * app/app_procs.c (app_exit): Added message for double exit, which
5869 shouldn't happen any more. Also preventing strange g_object_unref
5870 messages by having a printf after gtk_main_quit. This is really
5873 * app/interface.c (toolbox_delete): Avoid double app_exit call by
5874 removing handler for destroy when delete is called.
5876 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
5879 * app/display.c (ddisplay_scroll_to_object,
5880 ddisplay_scroll_center_point): New function for easy scrolling to
5883 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
5885 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
5886 $(srcdir) on stylesheets.xml.
5888 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
5889 diagram menus (since they're at the top by default now). Also
5890 move the Properties... menu item from Dialogs to Objects. Dialogs
5891 menu should disappear at some point.
5893 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
5894 ./configure from ./autogen.sh, as configure may need to be run
5895 from a different directory. (Also more standard this way.)
5897 * app/app_procs.c (app_init):
5898 * app/Makefile.am (INCLUDES): Gnome standardization patch from
5901 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
5903 * objects/flowchart/parallelogram.c (pgram_update_data):
5904 Left/right alignment for parallelograms. Doesn't use all
5905 available space, but then pgrams also ignore their shear value.
5906 This thing needs a loving hand.
5908 2003-07-01 Hans Breuer <hans@breuer.org>
5910 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
5911 * lib/proplist.c : don't complain if optional attr is missing
5912 * lib/orth_conn.h : make "orth_autoroute" optional to
5913 stop complaining with older files.
5915 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
5917 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
5919 2003-06-05 Andrew Halper <ashalper@cox.net>
5921 * app/diagram_tree.c : add scrolling of drawing area
5922 to desired object on "Locate". Patch modified to use new ddisplay
5923 function ddisplay_scroll_to_object().
5925 2003-06-11 Lars Clausen <lars@raeder.dk>
5927 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5928 info. Before next version, the grid dialog (view dialog, really)
5929 must be redone to allow a) instant apply, b) apply to all
5930 diagrams, and c) setting colour, dynamic, major lines.
5932 * app/preferences.h:
5933 * app/preferences.c (prefs_data): Remove option to use stippled
5934 grid, add option for major line offset. Default to 5 minor lines
5936 Add option for dynamically sized grid.
5938 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5940 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
5941 stippled/solid to display minor/major grid lines. Line drawing in
5942 separate function away from calculating line distance.
5944 * app/grid.h: Split page break drawing out of grid_draw.
5946 2003-05-15 Hans Breuer <hans@breuer.org>
5948 * plug-ins/python/diasvg.py : add xlink definition,
5949 also avoid to put spaces into attribute values. At least
5950 Sodipodi doesn't like them in width/height attributes
5952 * plug-ins/python/diasvg_import.py : add simple scaling.
5953 Some (more) handling for <svg>, <desc>, <circle>
5955 * plug-ins/python/scascale.py : (new file) which does
5956 some experimental scaling via StdProp api
5958 * plug-ins/python/pydia-cpoint.c
5959 plug-ins/python/pydia-handle.c : return PyDiaPoint for
5960 obj.pos not simple tuples. PyDiaPoint has a tuple interface
5961 so this may even be api compatible ...
5963 2003-05-11 Hans Breuer <hans@breuer.org>
5965 * app/line_area.c : add window position persitence
5967 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
5968 'poly_points' via StdProp api
5969 * lib/neworth_conn.h : don't rely on OrthConn and
5970 NewOrtConn having the same struct offsets
5972 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
5973 to help separating 'useful' properies - in terms of
5976 * objects/custom/custom_object.c
5978 add the missing prop_desc_list_calculate_quarks to
5979 all the *_describe_props()
5981 * objects/standard/beziergon.c objects/standard/bezier.c :
5982 explicit initializtion of default_user_data
5983 * objects/standard/polygon.c objects/standard/polyline.c :
5984 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
5986 * plug-ins/python/diamodule.c : implement dia.register_import
5988 * plug-ins/python/makefile.msc : need to link with Pango
5989 for pango_color_parse()
5991 * plug-ins/python/pydia-property.c : add a bunch of type
5992 conversions to PyDiaProperty_ApllyToObject()
5994 * plug-ins/python/diasvg_import.py : (new file) which currently
5995 is mainly a stress test for PyDia but for some files already
5996 produces better results than svg-import.c
5998 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
6000 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
6001 type-less operations.
6003 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
6005 * configure.in(ALL_LINGUAS): Added "ms".
6007 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
6009 * plug-ins/xslt/xslt.c (xslt_ok):
6010 * plug-ins/shape/shape-export.c (new_shape_renderer):
6011 * plug-ins/svg/render_svg.c (new_svg_renderer):
6012 * plug-ins/hpgl/hpgl.c (export_data):
6013 * plug-ins/dxf/dxf-export.c (export_dxf):
6014 * plug-ins/metapost/render_metapost.c (export_metapost):
6015 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
6016 * plug-ins/xfig/xfig-export.c (export_fig):
6017 * plug-ins/wpg/wpg.c (export_data):
6018 * plug-ins/cgm/cgm.c (export_cgm):
6019 * app/render_eps.c (export_eps):
6020 * app/export_png.c (export_png_ok):
6021 * app/load_save.c (diagram_data_save): Adding and standardizing
6022 output file error messages to include fopen error message.
6024 2003-05-01 Steffen Macke <sdteffen@web.de>
6026 * app/persistence.c: do not use unistd.h for MSVC build
6028 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
6030 * sheets/Assorted.sheet.in
6031 * sheets/Circuit.sheet.in
6032 * sheets/Contact.sheet.in
6033 * sheets/EML.sheet.in
6034 * sheets/ER.sheet.in
6035 * sheets/Electric.sheet.in
6036 * sheets/FS.sheet.in
6037 * sheets/Flowchart.sheet.in
6038 * sheets/GRAFCET.sheet.in
6039 * sheets/Logic.sheet.in
6040 * sheets/MSE.sheet.in
6041 * sheets/Misc.sheet.in
6042 * sheets/Pneumatic.sheet.in
6043 * sheets/SADT.sheet.in
6044 * sheets/SDL.sheet.in
6045 * sheets/UML.sheet.in
6046 * sheets/chronogram.sheet.in
6047 * sheets/ciscohub.sheet.in
6048 * sheets/ciscomisc.sheet.in
6049 * sheets/cisconetwork.sheet.in
6050 * sheets/ciscorouter.sheet.in
6051 * sheets/civil.sheet.in
6052 * sheets/network.sheet.in
6053 * sheets/sybase.sheet.in:
6054 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
6055 standardizes shape descriptions to use no articles, no 'create
6058 * app/interface.c (tool_data): Standard objects follow same
6061 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
6063 * app/color_area.c (color_area_edit): More informative title on
6064 color selection dialog.
6066 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
6067 sensitivity when dropping object in. Also reset tool to pointer.
6069 * objects/flowchart/diamond.c (diamond_update_data):
6070 * objects/flowchart/parallelogram.c (pgram_update_data): Added
6071 left and right alignment options.
6073 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
6075 * objects/flowchart/box.c: Added left and right alignment options.
6077 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
6079 * app/persistence.c (persistence_load): Test existence of
6080 persistence file before trying to open it.
6082 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
6084 * app/properties.c: Escape now closes properties dialogs.
6086 2003-04-25 Hans Breuer <hans@breuer.org>
6088 * app/config.h.win32 : bump version to 0.91+cvs
6090 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
6092 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
6094 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
6097 * app/presistence.c : need to #include "dia_xml_libxml.h"
6100 * app/layer_dialog.c : make delayed creation work by protecting
6101 all non static layer_dialog_*() with :
6102 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
6103 create_layer_dialog();
6104 * app/app_procs.c : removed /* create_layer_dialog(); */
6106 * objects/uml/association.c : give it a minimal StdProp
6107 implementation to fix bug #108896
6108 * lib/object_defaults.c : don't try to copy props if there
6109 is no obj->ops->describe_props
6111 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
6113 * objects/standard/image.c (image_create):
6114 * objects/standard/ellipse.c (ellipse_create):
6115 * objects/standard/box.c (box_create):
6116 * objects/flowchart/ellipse.c (ellipse_create):
6117 * objects/flowchart/diamond.c (diamond_create):
6118 * objects/flowchart/box.c (box_create):
6119 * objects/custom/custom_object.c (custom_create):
6120 * objects/ER/relationship.c (relationship_create):
6121 * objects/ER/entity.c (entity_create):
6122 * objects/ER/attribute.c (attribute_create): Initialize
6123 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
6125 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
6129 * plug-ins/Makefile.am:
6130 * plug-ins/xslt/Makefile.am:
6131 * plug-ins/xslt/xslt.c (dia_plugin_init):
6132 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
6133 automake-style if to only include xslt dir when needed. Works
6134 with automake 1.4 and up, at least.
6136 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
6138 * lib/diasvgrenderer.c (draw_string):
6139 * lib/dia_svg.c (dia_svg_parse_style): Use
6140 text-anchor:(start|middle|end).
6142 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
6143 polygon rather than polyline & avoid missing line pieces.
6144 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
6145 black-filled things.
6147 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
6149 * app/persistence.c (persistence_load): Check that persistence
6150 file exists before trying to read it.
6151 (persistence_update_window): Removed printf.
6153 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
6155 * lib/autoroute.c: Take badness into the layouters again, as some
6156 of them know they can do things that are pretty but would be
6157 counted as ugly by the default calculation.
6159 * objects/UML/large_package.c: Shrink package name box when no
6160 stereotype is present.
6162 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
6163 * lib/orth_conn.c: Added object menu item for autorouting.
6165 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
6166 Autorouting, plus set initial dragging handle to be the end, not
6168 (orthflow_draw): Flipped arrow place to be at the end, as
6169 originally intended (got lost in arrow update).
6171 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
6172 * objects/UML/dependency.c (dependency_get_object_menu):
6173 * objects/UML/association.c (association_get_object_menu):
6174 * objects/UML/realizes.c (realizes_get_object_menu):
6175 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
6176 * objects/GRAFCET/vector.c (arc_get_object_menu):
6177 * objects/ER/participation.c (participation_get_object_menu):
6178 * objects/EML/instantiation.c (instantiation_get_object_menu):
6179 * objects/UML/generalization.c (generalization_get_object_menu):
6180 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
6181 Autorouting setup (currently disabled for SADT/arrow).
6183 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
6185 * lib/autoroute.c: Removed printfs.
6188 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
6189 non-connected orthconns too.
6191 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
6194 * lib/orth_conn.c: Function to set autorouting on/off, use
6195 autorouting in move_handle (turns off when a middle handle is
6196 moved), added to standard orthconn props.
6198 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
6199 Stopped signal emission for check menu items being set to on/off.
6201 * objects/standard/zigzagline.c: Added autorouting object menu item.
6203 * lib/autoroute.c: Added last cases of autoroute layout, fixed
6204 floating point comparison bug, cleaned up layouters, tweaked
6205 badness to allow kinks.
6207 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
6209 * lib/connectionpoint.h: Changed DIR_* macros to go around the
6212 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
6214 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
6215 old cruft, added call to autoroute (currently cannot be turned
6216 off). Need to check what undo thinks about this.
6217 * lib/autoroute.[ch]: Fairly working simple layout.
6219 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
6220 * lib/autoroute.[ch]: Start of proper autorouting functionality.
6222 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
6224 * lib/prop_widgets.c: Show labels on ListProp.
6226 2003-04-11 Steffen Macke <sdteffen@web.de>
6228 * doc/en/dia-manual.xml: removed reference of non-existing authors
6230 * doc/en/usage-objects-selecting: commented out misleading section
6233 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
6235 * app/app_procs.c (app_init): Layer window now opened at startup
6238 * lib/prop_widgets.c: Show labels on ListProp.
6240 2003-04-09 Steffen Macke <sdteffen@web.de>
6242 * doc/en/*.sgml: removed files
6243 * doc/en/*.xml: added files
6244 * doc/en/Makefile.am: switched to XML DocBook
6246 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
6248 * plug-ins/xslt/xslt.c (dia_plugin_init):
6249 * configure.in: Added --with-xslt-prefix to allow other XSLT
6250 placements than /usr/lib.
6252 2003-04-09 Steffen Macke <sdteffen@web.de>
6254 * lib/makefile.mingw: updated to include latest files, including
6256 * lib/geometry.h: don't define isinf and finite for mingw gcc build
6258 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
6260 * app/persistence.h:
6261 * app/persistence.c (persistence_register_window_create):
6262 * app/app_procs.c (app_init):
6263 Register window function that doesn't create the window unless it
6264 should be open. Other windows should move to this, so startup
6265 speed can be reduced.
6267 * app/persistence.h: Removed call prototype for update_window, now
6269 * app/persistence.c (persistence_register_window): A number of
6270 fixes. Doesn't forget position when window is closed. Now
6271 actually loads prefs.
6273 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
6276 * app/preferences.c (prefs_data):
6277 * app/diagram_tree_window.h:
6278 * app/diagram_tree_window.c: Added persistence registering.
6279 Removed prefs items storing size and openness.
6281 * app/sheets_dialog.c (create_sheets_main_dialog): Added
6282 persistence registering.
6284 * app/Makefile.am (dia_core_files): Added persistence files.
6287 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
6288 that dirs are present.
6290 * app/app_procs.c (app_init): Loads persistent values on startup.
6291 (app_exit): Saves persistent values on exit.
6293 * app/layer_dialog.c (create_layer_dialog): Registers the layer
6294 window for persistence.
6296 * app/persistence.[ch]: New files handling various kinds of
6299 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
6301 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
6302 head spacing calculations. Added half-circle arrow from Matthieu
6303 Sozeau <mattam@netcourrier.com>
6305 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
6307 * app/app_procs.c (app_init): Moved layer dialog init to allow
6308 tooltips to be initialized.
6310 * app/interface.c (create_display_shell): More tooltips.
6312 * app/linewidth_area.c (linewidth_area_create)
6313 (linewidth_area_events):
6314 * app/color_area.c (color_area_events, color_area_create):
6315 Made tooltips work by embedding drawing_area in event_box.
6317 * app/interface.c (create_display_shell,
6318 (create_lineprops_area, create_color_area): Added a few tooltips.
6320 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
6322 * app/pixmaps/off-grid.xpm:
6323 * app/pixmaps/on-grid.xpm:
6324 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
6327 * app/commands.c (view_snap_to_grid_callback):
6328 * app/display.c (ddisplay_set_snap_to_grid)
6329 (update_snap_grid_status):
6330 * app/interface.c (create_display_shell, grid_toggle_snap):
6331 Added snap-to-grid status button.
6333 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
6335 * app/app_procs.c (app_init): Create a new diagram if a file on
6336 the command line isn't found.
6338 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
6340 * lib/dialibartrenderer.c (draw_string): Correct color handling
6343 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
6346 * doc/en/dia-manual.sgml:
6347 * doc/pl/dia-manual.sgml:
6349 * dia.spec (Release):
6350 Version 0.91 is here!
6352 2003-02-10 Steffen Macke <sdteffen@web.de>
6354 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
6355 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
6356 non-ANSI characters, closes #107980
6358 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
6362 * dia.spec (Release):
6363 * doc/en/dia-manual.sgml: Upping to pre6.
6365 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
6367 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
6368 #107511: Make arrow selector for correct arrow type.
6370 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
6372 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
6375 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
6377 * doc/en/dia-manual.sgml:
6380 * dia.spec (Release): Upping to pre5.
6382 * configure.in: Add freetype-config derived libs to the
6383 AC_CHECK_LIB statement for freetype.
6385 2003-02-28 Hans Breuer <hans@breuer.org>
6387 [fix for bug #107203]
6389 * lib/diarenderer.c : add warning 'implementation'
6390 for fill_rect to avoid crashing with a renderer
6391 which does not implement this required function.
6393 * plug-ins/dxf/dxf-export.c : provide - still empty -
6394 'implementations' for fill_rect and fill_polygon
6395 to suppress the above warnings. Now it works like
6398 2003-02-28 Steffen Macke <sdteffen@web.de>
6400 * samples/all_objects.dia: New sheet containing all dia shapes
6401 and objects; one layer per sheet
6403 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
6405 * lib/prop_text.c (multistringprop_get_widget,
6406 multistringprop_reset_widget, multistringprop_set_from_widget):
6407 Now uses GtkTextView instead of deprecated stuff, and also works:)
6409 * configure.in: Slightly more informative error message for isinf.
6411 * dia.spec (Requires): Require libxml2 rather than libxml.
6413 2003-02-28 Steffen Macke <sdteffen@web.de>
6415 * shapes/Circuit/hjumper.png:
6416 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
6419 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
6421 * doc/en/dia-manual.sgml:
6423 * dia.spec (Release):
6424 * NEWS: New prerelease 0.91pre4, two important fixes.
6426 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
6428 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6431 * app/commands.c (help_manual_callback): More correct URL for help
6432 page (include file://, was broken on Dillo without it).
6434 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
6436 * app/disp_callbacks.c: Set modifed when text is changed.
6438 * app/modify_tool.c (modify_button_release): Allow undo for moving
6441 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6444 * doc/en/dia-manual.sgml:
6446 * configure.in: New prerelease with important bugfix.
6447 * shapes/network/digitizing_board.png:
6448 * shapes/network/plotter.png: Re-adding with -kb.
6450 2003-02-17 Abel Cheung <maddog@linux.org.hk>
6452 * app/app_procs.c (app_init): Add comment for translators.
6454 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6456 * lib/filter.c (filter_register_import, filter_register_export):
6457 Don't accept filters with NULL description.
6459 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6460 (as we assume the description is available in other places).
6462 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
6464 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
6465 * app/display.c (ddisplay_resize_canvas): Use
6466 ddisplay_add_update_all().
6467 (ddisplay_add_update_all): Free display and update lists when
6468 doing update_all, as they'll be regenerated immediately to cover
6469 all visible area. Fixes bug #106165, crash when resizing. This
6470 appears to be the original AA crash bug, believed long extinct.
6472 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
6474 * app/commands.c (help_manual_callback): Use file: protocol for
6477 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6479 * plug-ins/xslt/stylesheets: Removed old-style config file.
6481 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6483 * plug-ins/xslt/Makefile.am:
6484 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6485 handling (no more DIA_PLUGIN_PATH).
6487 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
6489 * plug-ins/svg/render_svg.c:
6490 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6492 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
6494 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
6495 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
6496 side of the triangle is longer than the hypotenuse. Rounding
6499 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
6503 * doc/en/dia-manual.sgml: Update for pre2.
6505 * app/menus.c (display_menu_items): Fixed wrongly place separators.
6507 * objects/flowchart/box.c (box_update_data): Applied patch from
6508 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6511 * app/paginate_psprint.c (print_page): Set paper name, so it
6512 convinces ps printers to use to right size.
6514 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
6516 * app/properties.c (properties_show): Hide the dialog if the
6517 object is NULL (get rid of 'no properties' randomly popping up).
6519 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
6521 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6522 for diagrams not starting at origo.
6524 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
6526 * dia.spec (BuildRequires): Use libxml2-devel.
6528 * plug-ins/pixbuf/Makefile.am: Added to CVS.
6530 * RELEASE-PROCESS: Note on RPM version numbers.
6532 * app/interface.c (create_display_shell): Don't set as toolbar
6533 under Unix, either. Especially not the diagram shell. It removes
6534 it from the taskbar and makes it unresizable, always-on-top with
6535 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
6536 appropriate thing, UTILITY, is not good either, you lose resizing
6537 and minimizing/maximizing under OpenBox.
6539 * app/menus.c (display_menu_items): Set delete item to use Delete.
6541 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
6543 * dia.spec (BuildRequires, Requires): Updated for Gtk2
6546 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6547 display flush when getting focus in, or we may get an update after
6548 the diagram has been destroyed in some cases. Fixes bug #105221.
6550 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6552 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6554 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6555 - gnome-compiled Dia will now read files specified on the command line.
6557 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6559 * INSTALL (REQUIREMENTS): Updated requirements section.
6561 * configure.in: Better finite() check from MÃ¥rten Svantesson
6562 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
6565 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6567 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6569 * app/app_procs.c (debug_break): Added some code to avoid
6570 over-eager optimizations removing the call. Surely there's a
6571 nicer way, but I'm not sure how.
6573 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6574 that set text to black.
6576 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
6578 * NEWS: Mention of Twiki as doc source for Python.
6580 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6581 libart/libpng is not available. Later when we have a way of
6582 letting the user pick options in the file select dialog we shall
6583 allow the choice when applicable.
6585 2003-02-02 Steffen Macke <sdteffen@web.de>
6587 * doc/en/usage-loadsave.sgml:
6588 * doc/en/usage-objects.sgml: patch from
6589 James K. Lowden <jklowden@schemamania.org> to fix
6592 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
6594 * plug-ins/Makefile.am (SUBDIRS):
6595 * plug-ins/pixbuf/pixbuf.c:
6596 * plug-ins/pixbuf/Makefile.am:
6598 Added pixbuf plugin to Makefile.am, but for import only. PNG
6599 export handled by libart, which is better. JPG export is
6600 discouraged. BMP is not much used on Unix. Next release will
6601 integrate libart to allow all outputs.
6603 2003-02-01 Hans Breuer <hans@breuer.org>
6605 * app/preferences.c :
6607 the last two dialogs with 'old' button order finally
6608 are converted to gtk2, no GnomeDialog in all of Dia
6611 2003-02-01 Hans Breuer <hans@breuer.org>
6613 * app/filedlg.c : don't try to use a button as
6614 'overwrite-file-dialog'-parent, use the FileSelDialog
6617 * plug-ins/pixbuf/pixbuf.c : make it work with
6618 system-visual-depth < 24. Remove 'bmp' from output
6619 format extensions, it just was wishful thinking.
6621 * plug-ins/python/Makefile.am : added the four new python
6622 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
6624 2003-02-01 Hans Breuer <hans@breuer.org>
6626 * NEWS : updated content beside dependencies
6628 2003-02-01 Hans Breuer <hans@breuer.org>
6630 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
6631 to make it useable across DLL boundaries
6632 * app/lineprops_area.c : same code to access arrow_types
6635 * objects/UML/class.c : the non empty string is e.g.
6636 comment != NULL && comment[0] != '\0'
6637 * objects/UML/uml.c : same here, don't bother with
6638 empty operation stereotypes
6640 2003-02-01 Steffen Macke <sdteffen@web.de>
6642 * app/lineprops_area.c: latest changes do not work on
6643 windows, using old code without tooltips
6644 * makefile.msc: fixed copying of wmf.dll
6645 * plug-ins/makefile.msc:
6647 * lib/makefile.msc: now linking libintl
6648 * config.h.win32: enabling native language support
6650 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6652 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
6653 -ldl and -lglib. May or may not work on windows...awaiting verdict.
6655 2003-01-31 Daniel Yacob <locales@geez.org>
6657 * configure.in: Added am (Amharic) to ALL_LINGUAS.
6659 2003-01-31 Steffen Macke <sdteffen@web.de>
6661 * objects/UML/class.c (umlclass_calculate_data): fixed crash
6662 when comments were visible, no class comment available and
6665 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6667 * RELEASE-PROCESS: Updated to fit new install-module syntax.
6668 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
6671 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
6677 Prerelease version changes, version 0.91-pre1.
6679 * app/sheets_dialog_callbacks.h:
6680 * app/sheets_dialog_callbacks.c:
6681 * app/sheets_dialog.c (create_sheets_main_dialog):
6682 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
6683 to handle destruction of main dialog cleanly, but it's a mess.
6685 * configure.in: Downgraded ieeefp test to make it not produce
6688 * lib/widgets.c (dia_arrow_selector_set_arrow):
6689 (dia_line_style_selector_set_linestyle): Select menu dot
6692 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
6693 adjustment for diamondheads.
6695 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
6697 * app/properties.c (create_dialog): Destroy properties dialog and
6700 * app/sheets_dialog_callbacks.c
6701 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
6702 if the old one is destroyed.
6704 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
6706 * app/export_png.c (export_png_ok): Added info on resolution.
6707 Should (next release) improve export dialog to allow setting
6708 resolution instead of pixels.
6710 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
6711 to generate arrowheads as well as tooltips.
6713 * lib/arrows.c: Added hollow diamond to menudesc list.
6716 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
6717 unify with rendered menu.
6719 * lib/diarenderer.c (draw_line_with_arrows)
6720 (draw_polyline_with_arrows, draw_arc_with_arrows)
6721 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
6722 without changing renderer API. Thanks to David Scherba for
6723 providing inspiration.
6725 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
6727 * app/interface.c (create_display_shell):
6728 * app/display.h: Patching from Hubert Figuiere
6729 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
6732 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
6734 * app/defaults.c (defaults_show): Fixed defaults closing bug.
6735 Thanks to Hans for pointing it out.
6737 2003-01-25 Hans Breuer <hans@breuer.org>
6739 * app/commands.c : don't warn about crashing libart renderer
6740 on win32. It simply doesn't render text anymore :-(
6742 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
6744 * objects/UML/class.c : don't access umlclass->properties_dialog
6745 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
6746 which sets the former to NULL by destroy_properties_dialog() callback.
6748 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
6750 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
6752 * plug-ins/python/pydia-image.c : add image.uri member
6753 not only useful for SVG rendering
6755 * plug-ins/python/diasvg.py : (new file) a more advanced
6756 example. A full blown SVG Renderer, currently only
6757 registered for .svgz
6759 * plug-ins/python/export-object.py : write text props
6761 * plug-ins/python/debug_objects.py : write prop.type and
6764 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
6766 * objects/UML/association.c (association_update_data): Better
6767 bounding box for assoc with arrows.
6769 * lib/properties.h: New flag for properties with multiple values
6772 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
6773 arrow updating in dialog. Was broken due to changes from destroy
6776 * app/commands.c (view_aa_callback): AA warning only for Windows
6777 -- I trust the Unix side well enough.
6779 * app/render_libart.c (get_text_width):
6780 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
6781 font height can be taken from parent instance.
6783 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
6784 (get_text_width): Proper cursor positioning for libart renderer.
6785 Ought to have a DiaInteractiveRenderer that these two can inherit
6786 from, that knows about transform.
6788 2003-01-25 Steffen Macke <sdteffen@web.de>
6790 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
6791 plug-in still not working on win32
6793 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
6795 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
6796 gdk_window_get_pointer to avoid destroy crash. Simpler than I
6799 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
6801 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
6802 bail out on gtk options.
6804 * lib/message.c (gtk_message_internal): Better handling of destroy
6807 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
6809 * app/color_area.c (color_area_edit):
6810 * lib/widgets.c (dia_file_selector_browse_pressed)
6811 (dia_color_selector_pressed):
6812 * app/plugin-manager.c (get_plugin_manager):
6813 * app/filedlg.c (file_open_callback, file_save_as_callback)
6814 (file_export_callback):
6815 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
6816 handling of destroy event.
6818 2003-01-22 Alan Horkan <horkana@tcd.ie>
6820 * app/commands.c (file_new_callback): Changed Untitled to Diagram
6823 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
6825 * app/preferences.c (prefs_create_dialog):
6826 * app/linewidth_area.c (linewidth_create_dialog):
6827 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
6828 * app/layer_dialog.c (create_layer_dialog)
6829 (layer_dialog_edit_layer): Correct handling of destroy signal.
6831 * app/diapsft2renderer.c (set_font): Adjust silly random factor
6832 for change in font.c
6834 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
6836 * lib/font.c (dia_font_build_layout): Let's all use the same weird
6839 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
6840 * app/layer_dialog.c (create_layer_dialog)
6841 (layer_dialog_edit_layer):
6842 * app/filedlg.c (file_open_callback, file_save_as_callback)
6843 (file_export_callback):
6844 * app/dia-props.c (create_diagram_properties_dialog):
6845 * app/defaults.c (defaults_dialog_destroyed):
6846 * app/color_area.c (color_area_edit): Dialog destroy event handling.
6848 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
6850 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
6851 defaults dialog destroyed.
6853 2003-01-19 Steffen Macke <sdteffen@web.de>
6855 * objects/makefile.msc: added bondgraph
6856 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
6857 to compile pixbuf.dll
6858 * makefile.msc: copying all objects and dlls now
6860 2003-01-19 Hans Breuer <hans@breuer.org>
6862 * app/diagram.[hc] : provide dia_open_diagrams(), make
6863 open_diagrams variable static
6864 * app/dia.def : export it (to be used by PyDia)
6865 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
6866 app/display.c app/dynamic_refresh.c app/layer_dialog.c
6867 app/load_save.c : make use of dia_open_diagrams()
6869 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
6870 on win32. It removes the diagram window from the taskbar and
6871 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
6873 * app/menus.c : add '...' to menu entries where a dialog
6875 * app/recent_files.c app/dia_embedd.c : reflect the above in
6876 menus_get_item_from_path() calls
6878 * lib/libdia.def : add dia_image_rgba_data
6880 * lib/properties.h lib/prop_text.[hc] : add new property
6882 * objects/UML/class.[hc] object/UML/class_dialog.c : use
6883 StringList for attributes_strings and operations_strings to
6884 make this calculated data accessible via the Property API
6886 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
6887 provide dia.new() to create a new diagram, dia.registered_types()
6888 to get on Dia's type registry, dia.message() for simple dialogs
6890 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
6891 to create a new display from a diagram. Let diagram.extents and
6892 diagram.bg_color return the same types as in diagramdata.*
6894 * plug-ins/python/pydia-geometry.c : add a read-only
6895 'sequence interface' to DiaPoint and DiaRectangle
6897 * plug-ins/python/pydia-property.c : allow to get on StringList
6900 * plug-ins/python/pydia-render.c : fix typo to make it compile
6902 * plug-ins/python/python-startup.py : removed 'import pygtk'
6903 again. This file does not need any gtk UI, and some python
6904 plug-ins don't do either
6906 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
6907 it should actually work as intended again
6909 * plug-ins/python/group_props.py : (new file) a prototype for
6910 one the most requested features: Change properties of selected
6911 objects in one step. Requires pygtk.
6913 * plug-ins/python/select_by.py : (new file) select objects by
6914 common properties. Requires pygtk.
6916 [Start of 'PyDia Self Documentation Series']
6918 * plug-ins/python/pydiadoc.py : (new file) generates a new
6919 diagram which contains all objects of dir(dia)
6921 * plug-ins/python/otypes.py : (new file) generates a new diagram
6922 which contains all the currently registered object types sorted
6923 by their containing package
6925 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
6927 * configure.in: Added check for Pango >= 1.1.5, which appears to
6928 be enough to have text work.
6929 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
6930 do it. AC_SUBST should be idempotent, though.
6932 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
6934 * configure.in (HAVE_FREETYPE): Better test for freetype version
6936 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
6938 * lib/font.c: Renamed global_size_one to global_zoom_factor to
6939 avoid confusion, and added comment. Set scale factor in
6940 dia_font_build_layout to 1.0 for Unix side. This fixes at least
6941 my weird scaling problems. Fonts are now of the expectable size,
6942 i.e. the space between lines at size 1.0 is 1.0. If we want a
6943 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
6944 diagrams, though there will always be differences.
6946 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
6948 * plug-ins/python/python-startup.py:
6949 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
6951 * plug-ins/python/python.c (dia_plugin_init): Added warning
6952 message for missing startup file.
6954 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
6956 * lib/dia_image.c (dia_image_rgb_data):
6957 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
6958 involving EPS. Can't do transparency in EPS yet.
6961 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
6962 data as one chunk. Documentation for the RGB data getting funcs.
6963 (dia_image_rgb_data): Added comment.
6965 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
6968 2003-01-13 Steffen Macke <sdteffen@web.de>
6970 * lib/dia_image.c: dia_image_rgb_data() is working for
6971 non-alpha images now. Fixes #93762
6972 * Makefile.am: added makefile.msc to EXTRA_DIST
6974 2003-01-10 Steffen Macke <sdteffen@web.de>
6976 * app/paginate_psprint.c: Closing print dialog when file
6977 could not be written. Fixes #84746
6979 2003-01-04 Steffen Macke <sdteffen@web.de>
6981 * doc/custom-shapes: incomplete description of <svg:text>
6983 2003-01-03 Steffen Macke <sdteffen@web.de>
6985 * makefile.msc(new): new makefile to create file
6986 structure suitable for running dia win32 under
6987 $(TOP)/dia/build/win32
6989 2003-01-02 Steffen Macke <sdteffen@web.de>
6991 * lib/dia_svg.c: including stdlib.h
6992 * lib/makefile.msc: added gdk_pixbuf libs to linker
6993 * app/makefile.msc: added gdk_pixbuf libs, made libart
6994 libs compatible with gnuwin32 package
6996 2003-01-01 Hans Breuer <hans@breuer.org>
6998 * lib/font.c : more comment about global_size_one
7000 * app/menus.c : <control>[<shift>]A for plain gtk build too.
7002 * plug-ins/wmf/wmf.cpp : some type juggling to make
7005 2002-12-31 Steffen Macke <sdteffen@web.de>
7007 * app/makefile.msc: added hint on how to enable console output
7009 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
7011 * objects/standard/textobj.c (textobj_load): Get the handle type
7012 right, at least to be the same as when created.
7014 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
7016 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
7018 2002-12-08 Hans Breuer <hans@breuer.org>
7020 * app/commands.c : fixed bug #85315 'give diagram properties,
7021 instead of no object selected error' almost a one-liner
7023 * app/splash.c : don't make having the logo pixmap
7024 mandatory. Fixes bug #96068.
7026 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
7027 sequence by connecting to the "delete_event"
7028 * app/objects/uml/class_dialog.c : handle "destroy" for
7031 * lib/libdia.def : remove diaXmlNewChild again
7033 * app/paginate_gdiprint.cpp : reflect Dia's page setting
7034 portrait/landscape in the windoze print dialog
7036 * objects/makefile.msc : only UML needs to link against
7037 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
7039 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
7041 * objects/standard/ellipse.c (ellipse_distance_from):
7042 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
7043 correct distance function. Could be faster, but it's not really
7046 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
7048 * lib/font.c: Changed global_size_one to more correct 28.35.
7053 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
7056 2002-12-07 Hans Breuer <hans@breuer.org>
7058 * lib/widgets.c : g_file_get_contents() silently assumes
7059 a binary file. Reflect when creating the font_menu file
7060 to get rid of junk in font menus
7062 2002-12-06 Hans Breuer <hans@breuer.org>
7064 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
7065 removed 0xD 0xD 0xA line ends which get created by
7066 cvs if windoze line ends 0xD 0xA are checked in from
7067 *nix and checked out on win32.
7069 * app/preferences.c : changed toolbox_on_top default to
7070 false. It is currently not possible to change the behaviour
7071 at runtime, at least not on win32.
7073 * lib/dialibartrenderer.c : bug #94791 'rendering to
7074 bitmap without PangoFt2' got delayed to milestone future
7075 so wrap libart text rendering into PANGO_WIN32_FUTURE.
7076 It is not available without my Pango patch in bugzilla.
7078 * lib/font.c : added comment to global_size_one and adapt
7079 the arbitrary size scaling in dia_font_build_layout() for
7080 win32, too. This is needed to get an acceptable font size
7081 approximation for Dia 0.90 and earlier files.
7082 Also #include "message.h".
7084 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
7085 reflect movement of group.[hc]
7086 * lib/group.h : export group_type which gets used by app/*
7088 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
7089 to get the GtkTypeInfo definition
7091 * plug-ins/makefile.msc : dxf and xfig don't need to link
7092 against app/ anymore now that group is moved to lib/
7094 * plug-ins/python/pydia-render.c : remove massive leaking
7095 of self, i.e. PyDiaRenderer
7097 * plug-ins/python/makefile.msc : remove linking against
7100 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
7102 * objects/standard/line.c: Removed properties options for gaps,
7103 until release is done.
7105 * configure.in: Check for freetype version.
7107 * lib/text.c (text_insert_char): Fixed small buffer overflow for
7110 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
7112 * app/diapsft2renderer.h:
7113 * app/diapsft2renderer.c:
7114 * app/diapsrenderer.h:
7115 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
7117 * app/render_eps.c (export_eps, new_psprint_renderer): Using
7118 PS_FT2 renderer when available. Old render stuff killed. Yay!
7120 * lib/properties.h: Fixed bad frame end def.
7122 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
7124 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
7126 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
7128 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
7130 * lib/font.c: Now checking for the proper dia-style standard fonts.
7133 * app/Makefile.am: Moving group.[ch]
7135 * plug-ins/dxf/dxf-import.c:
7136 * plug-ins/xfig/xfig-import.c:
7137 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
7141 * lib/object.c (object_list_move_delta, object_copy_list):
7142 * lib/object.h: Moved some object-related functions from
7143 object_ops to object to assist moving group.c.
7145 * lib/diatypes.h: Added Group typedef.
7148 * lib/group.c: Moved from app to lib to a) resolve plug-ins
7149 references, and b) make groups more "real" objects.
7151 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
7153 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
7155 * lib/font.c (dia_font_init): Added check that the three standard
7158 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
7161 * app/load_save.c: Linebreaks in dia files, no indentation.
7162 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
7165 * objects/standard/line.c: Small but important fixes to the line
7169 * lib/dia_xml.c (diaXmlNewChild):
7170 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
7171 XML prettyprinting wrapper.
7173 2002-12-03 Steffen Macke <sdteffen@web.de>
7175 * shapes/Cisco/Makefile.am:
7176 * shapes/Cisco/*.shape: finished conversion of Cisco icons
7179 2002-12-02 Steffen Macke <sdteffen@web.de>
7181 * doc/en/Makefile.am:
7182 * doc/en/usage-objects.sgml:
7183 * doc/en/graphics/line_icon.png: (new) added line icon
7185 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
7187 * objects/standard/line.c: Binary search object edge line gap.
7189 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
7191 * configure.in: Added Cisco makefile, sorted Makefiles list.
7193 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
7195 * configure.in: Now checks for availability of PangoFT2 and
7196 FreeType, raising an error if not found.
7198 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
7201 2002-12-01 Steffen Macke <sdteffen@web.de>
7203 * doc/en/usage-loadsave.sgml: updated information on import
7206 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
7208 * app/commands.c (edit_copy_callback): Freeing copy_list.
7210 2002-11-28 Steffen Macke <sdteffen@web.de>
7212 * app/render_libart.c: art_config.h was included twice
7214 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
7216 * sheets/.cvsignore: More ignorance.
7218 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
7220 * lib/prop_widgets.h: Two (currently unused) settings for frame
7223 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
7224 (by default) foldable.
7226 * lib/propinternals.h:
7227 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
7228 widgets in a more controlled manner.
7230 * objects/standard/line.c (line_update_data): Line gap things
7231 inserted. Can do xeyes now:)
7233 2002-11-26 Christian Neumair <chris@gnome-de.org>
7235 * .cvsignore: Changed.
7236 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
7237 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
7240 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7242 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
7244 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
7245 passing to font hash.
7247 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
7248 utf-8 or locale-convertible before adding to dialog text. This
7249 probably needs done in a number of places where we get text from
7250 the environment and send it to GTK to display.
7252 * lib/widgets.c: Fixed case problems for font menu entries.
7254 * objects/SADT/annotation.c: Don't run the event test (but leave
7255 it here for inspiration).
7258 * lib/widgets.h: Allowing setting preview text for fonts.
7260 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7262 * objects/bondgraph/Makefile.am:
7263 * objects/bondgraph/bondgraph.c:
7265 * objects/Makefile.am: Added bond graph dir.
7267 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7269 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
7271 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
7273 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
7276 * app/diapsrenderer.c: Freetype rendering is back in force.
7278 * app/disp_callbacks.c: Added missing updates for pre-text-change.
7280 2002-11-25 David Hoover <jazzdaq@yahoo.com>
7282 * app/render_libart.c: Added missing #include line for libart.
7285 * lib/geometry.c: Added point_convex function. This computes
7286 points inside a line segment (0 <= alpha <= 1) or outside the
7287 line segment (alpha < 0 | alpha > 1).
7289 * objects/standard/line.c: Line now has additional code/attributes
7290 which permit the line to extend past the line anchors (gap < 0) or
7291 leave a gap without reaching the anchor (gap > 0). If no gap is
7292 specified, the default gap of 0 will result in identical line
7293 behavior as before. If the 'fractional' attributes are TRUE, the
7294 gap length is not fixed, but a percentage of the line length. I
7295 did not know how create the GTK widgets so the gap code currently
7296 cannot be used without adding XML attributes by hand.
7298 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
7300 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
7302 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
7304 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
7306 * lib/font.c: Debugging functionality in separate functions.
7308 * lib/widgets.c: Using fontsel with context.
7310 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
7312 * objects/custom/custom_object.c: Orientation handling for shapes,
7313 patch thanks to Martin Hans <opfinder@gmx.net>.
7315 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
7316 work on even better orientation handling.
7318 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
7319 casting NULL pointers. Should be unnecessary in an upcoming GTK
7322 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
7326 * lib/widgets.c: Now uses correct context to get font families.
7328 * lib/diagdkrenderer.c (get_text_width, draw_string):
7329 * lib/dialibartrenderer.c (draw_string):
7331 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
7332 (dia_font_build_layout): Unified the twiddle factors into a use of
7333 global_size_one. But I deeply distrust Pango for seeming to
7334 change size of fonts every time I turn my back.
7339 * app/menus.h: Updated some more methods to also be more specific
7343 * app/recent_files.c:
7344 Changed to return most specific type, to avoid run-time type errors.
7346 * app/menus.c (menus_get_item_from_path): Non-gnome version now
7347 gets menu_item rather than widget, which works better.
7349 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
7351 * app/display.c: (new_display):
7352 * app/menus.c: (menus_get_item_from_path):
7353 Relying on the tearoff to locate the input methods menu wasn't a
7354 good idea: tearoffs seem to be an endangered species nowadays.
7355 Anyway, the IM menu seems to be working now.
7357 * app/interface.c: hinted the window manager that the toolbox window
7358 is a toolbox window. Not that my (fairly default configuration)
7359 sawfish cares, but other NETWM compliant WMs may.
7366 * app/layer_dialog.c:
7367 * app/linewidth_area.c:
7369 * app/sheets_dialog.c:
7372 The GTK doc says to avoir gtk_window_set_wmclass() and
7373 gtk_window_set_policy(), and use gtk_window_set_role() and
7374 gtk_window_set_resizable(), respectively.
7376 * app/preferences.c: (prefs_create_dialog):
7377 * app/preferences.h:
7378 * app/display.c: (display_set_active):
7379 Added a preference to have the toolbox hover over diagram windows.
7381 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
7383 * lib/diagdkrenderer.c (get_text_width, draw_string):
7384 Freetype-based string drawing now works. Not very fast, though.
7385 I wish I could use the graphics card for this:( I'm doing three
7386 bitmap loops where I should be doing one. The size is not correct
7387 either, despite having get_text_width give the right thing.
7389 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
7391 * app/connectionpoint_ops.c (diagram_update_connections_object):
7392 Allows more than one connectionpoint on an object to be moved at a
7395 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
7397 * configure.in: Added cs to ALL_LINGUAS.
7399 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
7401 * app/paginate_psprint.c: Removed unnecessary decl of autosave
7404 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
7406 * app/export_png.c (export_png_ok): Saving more variables from the
7409 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
7411 * lib/dialibartrenderer.c (begin_render):
7412 (end_render): Correct pushing and popping of font contexts.
7413 (draw_string): Double zooming eliminated, strange twiddle factor
7414 introduced (grumble). Close to working now, but there are still
7415 strange differences from font to font. In particular, some fonts
7416 really mess with the cursor and extents.
7418 * app/render_eps.c (export_eps):
7419 * app/diapsrenderer.c (dia_ps_renderer_finalize):
7420 Fixed file closing confusion, no longer dependent on PS/EPS.
7422 * app/diagram.c (diagram_place_down_selected)
7423 (diagram_place_up_selected): Now implemented.
7425 * lib/font.c (dia_font_init):
7427 Redesigned the font init/context pushing code. Start of fix for
7428 font name differences.
7430 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
7432 * app/sheets_dialog_callbacks.c: Fix a typo.
7434 2002-10-15 Hans Breuer <hans@breuer.org>
7436 * app/diapsrenderer.[hc] : (new files, old content :-)
7437 simple base class for post script rendering. Does neither
7438 use Pango/FT2 nor does it handle non latin1 characters.
7439 The fancy stuff which nowadays appears to be needed should
7440 probably be done in derived class(es)
7442 * app/makefile.msc app/Makefile.am : added new files
7444 * app/paginate_psrint.c : re-enabled and used as test
7445 for the simple ps renderer above.
7447 * app/render_eps.[hc] : ripped out common ps code and
7448 moved to DiaPsRenderer. The rest of the file is mostly
7449 disabled. And I don't understand enough of it to
7452 * app/diaepsrenderer.h : short lived, removed.
7454 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
7456 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7457 as a plugin (thanks to Torben Nielsen).
7459 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
7461 * app/diaepsrenderer.h:
7463 * app/paginate_psprint.c:
7464 #ifdef'd out enough ps stuff to allow compile. Now we just need
7467 2002-10-12 Hans Breuer <hans@breuer.org>
7469 [last plug-in ported]
7471 * plug-ins/xfig/xfig-export.c : ported to new renderer api
7473 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7474 scale color values to [0..1.0] to properly reconstruct
7477 * plug-ins/xfig/xfig-common.c : some cleaning
7479 2002-10-12 Hans Breuer <hans@breuer.org>
7481 [decrease inter-plug-in-dependencies]
7483 * objects/custom/shape_info.[hc] : move parse_style()
7484 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7485 the related structs and constants.
7486 * objects/custom/custom_object.c : reflect namespace
7489 * lib/dia_svg.[hc] : new files
7490 * lib/makefile.msc lib/Makefile.am : add new files
7491 * lib/libdia.def : updated externals
7493 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7495 * plug-ins/svg/svg.c : enable svg import for win32 (and
7496 probably for other non ELF builds)
7498 * plug-ins/makefile.msc : enable svg import
7500 2002-10-11 Hans Breuer <hans@breuer.org>
7502 * plug-ins/metapost/render_metapost.[hc] : ported
7504 * plug-ins/pstricks/render_pstricks.[hc] : dito
7506 2002-10-11 Hans Breuer <hans@breuer.org>
7508 * plug-ins/cgm/cgm.c : ported, appears to work as before,
7509 but graphic apps available to me can't import the generated
7510 files (the could not with Dia-0.90 cgm as well) ...
7512 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7513 Removed all those function which did emulate 'complex'
7514 drawing ops with basic ones (e.g. rect by line) cause this
7515 stuff is already provided by the base class
7516 * plug-ins/dxf/dxf-import.c : removed render.h include
7518 * plug-ins/python/pydia-font.[hc]
7519 plug-ins/python/pydia-text.c : finally ported to new font api
7521 * plug-ins/python/pydia-layer.c : add extra parameter
7522 to layer_find_closest_connectionpoint()
7524 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7526 * plug-ins/python/python.c : added missing copyright notice
7528 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
7529 actually use the renderers set_font implementation
7531 * plug-ins/renderer.inc : unused now, removed
7532 * plug-ins/Makefile.am : reflect it
7534 2002-10-08 Hans Breuer <hans@breuer.org>
7536 * app/render_gdk.c : don't add the InteractiveRenderer
7537 interface multiple times (it's added to the type, not
7539 * app/render_libart.c : dito. It's currently added
7540 unconditional cause eport_png uses it, but claims
7541 to be non-interactive. Probably set_size should be moved
7542 to the DiaRenderer interface.
7544 * lib/dialibartrenderer.c : add implementations for
7545 get_<width|height>_pixels. Libart rendering works again.
7546 DiaLibartRenderer::draw_image : use dia_image_rowstride()
7549 * lib/diatransform.c(dia_transform_coords_double) :
7550 don't ROUND() the returned values
7552 * plug-ins/pixbuf/pixbuf.c : added import function. It
7553 simply creates a wrapping "Standard - Image" object.
7555 * plug-ins/shape/shape-export.c : use the more direct
7556 method to call base class methods
7558 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
7560 * lib/font.c (dia_font_init): Changed dia_font_init to return old
7561 pango context, to allow stacked contexts (for printing while
7570 * lib/connectionpoint.h
7573 * lib/diagdkrenderer.h
7575 * lib/dialibartrenderer.h
7578 * lib/diasvgrenderer.h
7579 * lib/diatransform.h
7586 * lib/neworth_conn.h
7601 Moved all externally visible struct typedefs into diatypes.h, as
7602 per Hans' suggestions.
7604 2002-10-07 Steffen Macke <sdteffen@web.de>
7606 * lib/Makefile.am: removed a '\' causing problems
7608 2002-10-07 Hans Breuer <hans@breuer.org>
7610 [Libart Renderer resurrected; almost it's compiling but
7611 almost instantly crashing :-]
7613 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
7614 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
7615 * lib/diatransform.[hc] : added dia_transform_coords_double()
7617 * app/display.c : the right parameters for new_renderer_libart()
7618 * app/export_png.c : ported, removed the blind Display hack
7620 * app/makefile.msc lib/makefile.msc
7621 lib/Makefile.am : updated
7623 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
7625 2002-10-06 Hans Breuer <hans@breuer.org>
7627 * plug-ins/pixbuf/pixbuf.c : (new file)
7628 there is a new export plug-in called 'Pixbuf' which uses
7629 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
7630 formats (currently only PNG and JPEG).
7632 2002-10-06 Hans Breuer <hans@breuer.org>
7635 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
7637 * lib/dia-enums.h lib/diatransform.[hc]
7638 lib/diarenderer.[hc] lib/diainteractiverenderer.c
7639 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
7642 * lib/makefile.msc lib/makefile.am : added new files
7644 * lib/plug-ins.c : g_module_error() returns a locale
7645 string, convert to utf8 before further usage
7647 * lib/render.h : #error out. Everything including this
7649 * lib/*.[hc] : ported to new renderer api
7651 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
7652 just to make the rest compile
7653 * app/render_eps.c : temporary disabled all of this
7654 * app/render_eps.h : removed RendererEPS
7656 * app/render_gdk.[hc] : a small wrapper around the new
7657 DiaGdkRenderer form lib/*
7659 * app/render_libart.h : removed RenderLibart definition
7660 * app/render_libart.c : not yet ported to new DiaRenderer
7661 but having an implementation to untie form FT2 dependency
7662 at least on win32. It is using new Pango api form bug #94791
7664 * app/render_pixmap.[hc] : a small wrapper around the new
7665 DiaGdkRenderer form lib/*
7667 * app/display.h : removed render_*.h includes
7668 * app/display.c : the only place where specific
7669 renderers need to be known
7671 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
7672 use new DiaInteractiveRenderer interface
7674 * app/*.c : ported to new renderer api
7675 * object/*/*.c : ported to new renderer api
7676 s/render.h/diarenderer.h/
7677 s/Renderer/DiaRenderer/
7678 s/renderer->ops/renderer_ops/
7679 add in every draw method:
7680 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
7682 * plug-ins/hpgl/hpgl.c :
7683 plug-ins/wmf/wmf.cpp
7684 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
7685 * plug-ins/shape/shape-export.c
7686 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
7687 (nice how small these files became :-)
7689 2002-09-28 Hans Breuer <hans@breuer.org>
7691 * */makefile.msc : updated
7693 * app/defaults.c : don't gdk_invalidate_rect(NULL)
7694 * app/disp_callbacks.c :
7695 can't cast GtkWindow to GdkWindow, use shell->window
7696 (ddisplay_unrealize) don't use already unrefed im_context
7698 can't cast from GtkMenu to GtkMenuItem
7699 (ddisp_destroy) : mark im_context as unrefed
7701 * lib/dia_xml (data_font) : prefer new font format over old one
7702 (data_add_font) : write the legacy name to allow file exchange
7703 with pre Pango versions of Dia, which would otherwise crash
7704 on missing font 'name' attribute.
7705 * lib/font.c (dia_font_get_legacy_name) : improved implementation
7706 to get a better match.
7708 * lib/libdia.def : updated
7710 * lib/messages.c : don't gdk_widget_show(NULL)
7712 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
7714 [make Dia compile, link _and_ work with mingw/gcc3.2]
7716 * config.h.win32 : #define LIBXML, this gets defined from libxml
7717 header but only for _MSC_VER. The mingw build did access an
7718 unitialized function pointer for xmlFree.
7720 * */makefile.mingw : updated (some plug-ins have build issues)
7722 * lib/handle.h lib/object.h : there appears to be no
7723 forward declaration of the form
7724 typedef enum _HandleId HandleId
7725 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
7726 use of enum `_HandleId' without previous declaration
7728 * app/paginate_gdiprint.cpp : added a hack to avoid g++
7729 naming conflict on 'export'
7731 * app/paginate_gdiprint.h : forward declare Diagram
7733 * objects/SADT/annotaion.c : use g_random_double()
7735 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
7737 * app/modify_tool.c: Made motion not happen until sufficiently
7738 large or past double-click interval, to avoid accidental moving
7739 when doubleclicking. Got the double-click time right, and fixed
7740 some issues with release. There are some corner cases that may
7741 exhibit strange behaviour, will look at those later. Nah, let's
7742 not care about those, they are rare and not dangerous.
7744 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
7746 * app/layer_dialog.c:
7748 * plug-ins/dxf/dxf-import.c:
7749 * plug-ins/python/pydia-diagram.c:
7750 * lib/diagramdata.c:
7751 * lib/diagramdata.h:
7752 Improved the consistency of the obj->parent_layer backlinks (esp.
7757 * lib/dynamic_obj.[ch] (NEW):
7760 * app/dynamic_refresh.[ch] (NEW):
7761 * objects/Misc/analog_clock.c:
7762 Added support for dynamic refresh (animated objects).
7764 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
7766 Patch from Owen Taylor <otaylor@redhat.com>:
7767 * doc/en/Makefile.am:
7768 * doc/en/dia-manual.sgml:
7769 * doc/en/usage-objects.sgml:
7770 * doc/en/usage-quickstart.sgml:
7771 * doc/pl/Makefile.am:
7772 * doc/pl/dia-manual.sgml:
7773 * doc/pl/usage-objects.sgml:
7774 * doc/pl/usage-quickstart.sgml:
7776 - Change the DTD declration from an outdated GNOME one to a
7779 - Remove close tags for <graphics> which aren't allowed for
7782 - A hacky fix for a problem where some versions of db2html don't
7783 create *.css files. (If *.css doesn't match anything, then you get
7784 the global explicitely.)
7788 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
7790 * objects/custom/custom_object.c:
7791 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
7792 were never properly prepared for use when reloading a shape with
7793 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
7794 reporting the problem and coming up with a fix! (Closes: #93974)
7796 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
7797 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
7800 * app/display.c: updated menu item paths Alan's patch had moved.
7802 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
7803 load the sheet-provided icon (libpng versions mismatch, grrr.).
7806 * objects/Makefile.am:
7807 * objects/Misc/Makefile.am (NEW):
7808 * objects/Misc/libmisc.c (NEW):
7809 * objects/Misc/analog_clock.c (NEW):
7810 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
7811 * sheets/Misc.sheet.in: just a little experiment...
7813 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
7815 * plug-ins/xlst/Makefile.am: found a way to silence automake while
7816 not forcing everyone to build using libxslt.
7820 * lib/object_defaults.c:
7823 * lib/properties.[ch]:
7825 * objects/standard/box.c:
7826 * objects/UML/state_term.c:
7828 * objects/FS/flow-ortho.c:
7832 * app/diagram_tree.c:
7834 * app/disp_callbacks.c:
7837 * app/lineprops_area.c:
7839 * app/preferences.c:
7842 * app/sheets_dialog_callbacks.c:
7843 * plug-ins/xslt/xslt.c:
7844 * plug-ins/metapost/render_metapost.c:
7845 * plug-ins/xfig/xfig-export.c:
7846 * plug-ins/shape/shape-export.c:
7848 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
7849 unused variables, mostly)
7852 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
7854 * app/Makefile.am: modified run_dia.sh so that we recover the
7855 ability to run a debugger despite libtool's hacks.
7857 * plug-ins/dxf/Makefile.am:
7859 "make distcheck" fixes.
7861 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
7863 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
7864 <mfranzoni@madd.it>: Check for the type being NULL.
7866 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
7868 * app/render_eps.c (set_font): Re-tweaked font size for printing.
7870 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
7872 Patch from Angus Ainslie <angusa@deltatee.com>:
7873 * plug-ins/dxf/dxf-import.c:
7874 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
7876 (plus a couple extra fixes by me, such as the removal of printf's,
7877 adapting for recent changes, and killed a couple warnings)
7879 * app/authors.h: a 60K patch isn't insignificant, is it?
7881 2002-09-09 Tor Lillqvist <tml@iki.fi>
7883 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
7884 as before) and -lfreetype (using AC_CHECK_LIB). At least on
7885 Solaris with Sun's compiler (Forte C), you need to link also the
7886 dia application with -lfreetype, even if it is implicitly linked
7887 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
7888 which is what they actually mean. Use FREETYPE_LIBS for
7891 Don't look for libsunmath if isinf() is not found in math.h (as on
7892 Solaris). The sunmath library is part of Forte C and not present
7893 on all machines. Besides, even if isinf was found in libsunmath,
7894 we didn't use it in the Makefile.am.
7896 Fix a couple of bashisms.
7898 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
7899 too, on Solaris with Forte C.
7901 Don't try to use the gcc flags with other compilers.
7902 DIA_CHECK_CFLAG gives a false indication that Forte C understands
7903 the gcc -f switches, but in fact they get interpreted meaning
7904 something completely different.
7906 Define the automake conditional HAVE_CGC.
7908 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
7910 Use -export-dynamic only with gcc.
7913 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
7914 PANGOFT2_CFLAGS rename.
7916 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
7918 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
7921 * lib/paper.c: Workaround for gccism: Can't use inline this way with
7924 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
7926 * lib/text.c(set_string): fixed a memory leak (char* ain't no
7927 std::auto_ptr<char> !).
7930 * app/interface.[ch]:
7931 * app/ddisp_callbacks.[ch]: Added some basic support for input
7932 methods (GtkIMContext-based)
7935 * app/Makefile.am: made libdia a shared object (per Tor
7936 Lillqvist's suggestion/request), to cope for platforms with a less
7937 than par dynamic library loader.
7939 * app/display.c: disabled the input method menu (I really don't
7940 see where and how to put them. Blame Frozen Bubble )
7942 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
7944 * objects/flowchart/box.c (box_update_data): Made resizing
7945 possible again (only set width & height when resized too small).
7947 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
7949 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
7952 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
7954 * app/authors.h: now showing Akira TAGOH's name in the native script.
7956 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
7958 * plug-ins/xslt/xslt.c: Removed glib warning for unset
7961 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
7963 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
7964 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
7967 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
7969 * objects/UML/class.c: Fixed showing of empty stereotypes and got
7970 the string placed correctly.
7972 2002-08-30 Hans Breuer <hans@breuer.org>
7974 * lib/font.c (dia_font_get_style) : don't shift already
7975 shifted DIA_FONT values.
7977 * lib/libdia.def : updated externals
7979 * app/disp_callbacks.c : on win32 GdkEventKey::string already
7980 is in UTF-8. (Longterm this probably should be handled on the
7983 * app/command.[hc] app/display.[hc] app/menus.c : add code to
7984 switch display renderers again. The libart renderer is very
7985 useful for win9x with it's limited GDI.
7987 * app/render_gdk.c : use g_warning instead of printf which gets
7988 nowhere on win32 (non console apps)
7990 * app/render_libart.c : make it compile without FREETYPE
7992 * objects/makefile.msc plug-ins/makefile.msc : added clean target
7994 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
7996 * app/render_eps.c (postscript_draw_contour): Debugging statement
7997 that allowed me to figure out font problems.
7999 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
8000 items for font styles.
8002 * objects/FS/flow-poly.c:
8003 * objects/FS/flow-ortho.c:
8004 * objects/FS/flow.c: Further conversion away from GTK dialogs.
8005 Can't set a default label right now:(
8007 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
8009 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
8010 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
8012 * Makefile.am: rules relating to AUTHORS and THANKS
8014 * AUTHORS: file content changed to more accurately
8015 reflect guideline requirements.
8016 * TODO: warning added about Gnome BTS.
8017 * KNOWN_BUGS: warning added about Gnome BTS.
8021 * AUTHORS: added full copyright info.
8022 * mkauthors-placeholder: (removed)
8024 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
8026 * app/paginate_psprint.c (print_page): Fixed text printing after
8027 tip from Dov Grobgeld.
8029 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
8031 * app/paginate_psprint.c (print_page): Fixed color of clip
8034 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
8036 * sheets/Makefile.am: enabled intltool-merge translation cache for
8040 * mkauthors-placeholder:
8041 * AUTHORS: revived that file (in a placeholder form) so that
8042 automake stops yelling.
8043 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
8046 Heh, by the way, thanks Christophe. I feel better now.
8048 2002-08-25 Christophe Merlet <christophe@merlet.net>
8050 * app/command.c: Removed invalid multibyte sequence in Chepelov.
8052 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
8054 * lib/dia_image.c (dia_image_rgb_data):
8055 Bugfixes in image data retrieval.
8057 * app/render_eps.c: Refactoring of new_*_renderer.
8059 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
8063 * lib/dia_image.c: Support for rowstride != width (odd width images)
8065 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
8067 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
8068 * plug-ins/xfig/xfig-import.c: Removed assertion.
8070 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
8072 * lib/paper.c: Removed app/preferences.h reference.
8074 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
8076 * plug-ins/svg/svg-import.c:
8077 * plug-ins/xfig/xfig-import.c:
8078 * lib/Makefile.am (libdia_a_SOURCES):
8079 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
8081 * objects/standard/create.h:
8082 * objects/standard/polygon.c (polygon_create):
8083 * objects/standard/polyline.c (polyline_create):
8084 * objects/standard/beziergon.c (beziergon_create):
8085 * objects/standard/bezier.c (bezierline_create):
8086 Moving create.h into lib.
8088 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
8090 * app/render_libart.[ch]: Work on PNG font export. Something's
8091 still fishy with the scaling, I don't get it.
8094 * app/interface.c: Replaced broken zoom combo with entry+menu.
8095 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
8097 * app/render_gdk.c (get_text_width): Checks for validity of text.
8098 Temporary help while debugging input -- should only activate on
8101 * objects/SADT/annotation.c:
8102 * objects/GRAFCET/transition.c:
8103 * objects/FS/function.c: Removal of gtk.h include.
8105 * objects/UML/state.c (state_load): Warnings about using State
8106 object for initial/final states.
8108 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
8110 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
8112 * app/render_eps.c: Text rendering that scales correctly. Too bad
8113 the standard fonts don't get selected right.
8115 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
8117 * lib/diagramdata.h:
8118 * lib/paper.c (get_paper_info):
8120 * plug-ins/xfig/xfig-import.c:
8121 Committed before testing. I am so embarrased. This compiles, now
8122 that the includes are in the right order.
8124 * app/diagram.c (diagram_init):
8125 * app/app_procs.c (do_convert):
8126 * app/preferences.h:
8127 * lib/diagramdata.h:
8128 * lib/diagramdata.c (new_diagram_data):
8130 * lib/paper.c (get_paper_info):
8131 Moved new_diagram part of prefs into lib/diagramdata.h. More
8132 could be done in new_diagram_data() now.
8134 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
8136 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
8138 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
8140 * configure.in: removed silly user-visible comment
8142 (actually, this is a dummy entry before I manually run nemo; for
8143 some dist-upgrade related reason, this morning's run aborted before
8144 the snapshots were created)
8146 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
8148 * objects/network/wanlink.c:
8149 * objects/network/bus.c:
8152 * objects/custom/custom_object.c:
8153 * objects/network/wanlink.c:
8154 * objects/flowchart/parallelogram.c:
8155 * objects/flowchart/ellipse.c:
8156 * objects/flowchart/diamond.c:
8157 * objects/flowchart/box.c:
8158 Removed GTK defaults stuff.
8160 * objects/UML/fork.c:
8161 * objects/UML/object.c:
8162 * objects/UML/lifeline.c:
8163 * objects/UML/branch.c:
8164 * objects/GRAFCET/transition.c:
8165 * objects/FS/function.c: Removed GTK include.
8167 * objects/FS/flow-ortho.c:
8168 * objects/FS/flow.c: Made the label behave again.
8169 Also removed GTK defaults stuff.
8171 2002-08-06 Hans Breuer <hans@breuer.org>
8173 * app/autosave.c : ported to GDir which is the improved
8174 cross platform replacement for <dirent.h>
8176 * app/makefile.msc : build autosave.obj
8178 * app/font.c : some (bad?) code calls
8179 dia_font_scaled_decent() not only with empty string but
8180 with NULL. Handle it gracefully.
8182 * lib/paper.c : don't depend on ../app. Although IMO
8183 this shouldn't be allowed on any platform it is only
8184 disabled for win32, where it simply doesn't work
8187 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
8189 * objects/fs/flow.c : conditionalize debug spew, disabled
8190 and 'ported' to use g_print. Simple printf won't work with
8191 standard win32 gui apps, may even crash them.
8193 * plug-ins/makefile.msc : DISABLED svg-import cause it
8194 depends on ../objects/custom. This not only break the
8195 build for all non ELF systems but IMO also isn't acceptable
8196 from a design point of view. See dia-list mail on subject.
8198 * plug-ins/python/makefile.msc :
8199 plug-ins/python/python.c : remove all references to dirent
8201 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
8203 * configure.in: added ro to ALL_LINGUAS
8207 * ../translation-graphs/transgraph.py: added support for fuzzy
8208 translations. Enlarged the graphs.
8210 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
8212 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
8213 key events according to locale. No clue if this works for
8216 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
8218 * lib/text.c: Various UTF8 related fixes, in particular in
8219 deleting. Text_insert_char is fine, far as I can tell.
8221 * app/interface.c (create_display_shell):
8222 * app/commands.c: Now uses gtk_clipboard functions, for they are
8223 much simpler. Also handles Win32 clipboard. Non-ascii chars
8224 don't seem to get handled correctly by text_insert_char in
8227 * app/commands.c (received_selection_handler): Got utf8 handling
8228 on paste, and individual char handling out of commands.c. Pasting
8229 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
8231 * lib/message.c (gtk_message_internal): Message dialog re-shown
8232 when new message appears. Maybe it should even move to top?
8236 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
8237 (again) and case-insensitive.
8239 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
8242 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
8244 * app/commands.c (edit_cut_text_callback):
8245 * lib/text.c (text_delete_all): Now functioning undo for text cut.
8247 * app/commands.c (edit_cut_text_callback): Now removes text.
8248 Undo is broken, though.
8250 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
8252 * app/diagram.c (diagram_update_menu_sensitivity):
8253 Making cut_text active.
8256 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
8257 clipboard. Also removed AA callback.
8259 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
8261 * objects/chronogram/chronoref.c:
8262 * objects/chronogram/chronoline.c:
8263 * objects/SADT/annotation.c:
8264 * objects/SADT/arrow.c:
8265 * objects/SADT/box.c:
8266 * objects/GRAFCET/vergent.c:
8267 * objects/GRAFCET/vector.c:
8268 * objects/GRAFCET/step.c:
8269 * objects/GRAFCET/condition.c:
8270 * objects/GRAFCET/action.c:
8271 * objects/ER/participation.c:
8272 * objects/ER/relationship.c:
8273 * objects/ER/entity.c:
8274 * objects/ER/attribute.c:
8275 Removing unnecessary GTK references.
8277 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
8279 * objects/standard/image.c:
8280 * objects/standard/textobj.c:
8281 * objects/standard/ellipse.c:
8282 * objects/standard/polygon.c:
8283 * objects/standard/beziergon.c:
8284 * objects/standard/box.c:
8285 Making default default properties.
8287 * objects/standard/image.c:
8288 * objects/standard/arc.c:
8289 * objects/standard/box.c:
8290 * objects/standard/zigzagline.c:
8291 * objects/standard/polyline.c:
8292 * objects/standard/line.c:
8293 * objects/standard/ellipse.c:
8294 * objects/standard/polygon.c:
8295 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
8297 * lib/object_defaults.c (dia_object_default_create):
8300 * lib/object.c (object_copy_using_properties):
8301 * lib/propdialogs.c:
8302 * lib/propinternals.h:
8303 * lib/propobject.c (object_create_props_dialog)
8304 (object_copy_props):
8305 Removing the standard (toolbox) properties from defaults dialogs.
8307 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
8309 * lib/font.c (dia_font_scaled_string_width)
8310 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
8312 * lib/text.c (text_calc_boundingbox): Take descent into account.
8314 * objects/standard/bezier.c (bezierline_draw):
8315 * lib/render.c (draw_bezier_with_arrows):
8316 Better arrow drawing for beziers. Doesn't change the mouse-click
8319 * lib/arrows.h: Some const-ness.
8321 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
8323 * lib/render.c (draw_arc_with_arrows):
8324 * objects/standard/arc.c (arc_draw): Better arrow drawing for
8325 arcs. Doesn't change the mouse-click area yet.
8327 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
8333 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
8335 * app/group.c (group_draw): Forgotten commit: Groups to draw as
8336 objects (using default routines).
8340 * lib/diagramdata.h:
8341 * lib/diagramdata.c (layer_find_closest_connectionpoint):
8342 * objects/standard/zigzagline.c (zigzagline_move_handle):
8343 * app/diagram.c (diagram_find_closest_connectionpoint):
8344 * plug-ins/python/pydia-diagram.c
8345 (PyDiaDiagram_FindClosestConnectionPoint):
8346 * app/object_ops.c (object_connect_display)
8347 (object_find_connectpoint_display)
8348 * app/create_object.c (create_object_button_press)
8349 (create_object_motion):
8350 * app/modify_tool.c (modify_motion):
8351 Adding object param to allow connectionpoint and handle coinciding.
8353 * objects/standard/zigzagline.c (zigzagline_check_orientation):
8354 Fixing minor problems.
8356 * objects/standard/ellipse.c (ellipse_update_data):
8357 Added direction hints.
8359 * lib/diagramdata.c:
8362 * lib/diagramdata.h:
8363 * objects/standard/zigzagline.c:
8364 First working example of zigzagline hints, currently only between
8367 2002-07-27 Steffen Macke <sdteffen@web.de>
8369 * plug-ins/svg/render_svg.c: added support for rounded
8370 rectangles (fixes #69053 if compile with
8372 * object/custom/shape_info.[c|h]: made parse_style and
8373 parse_path accessible for svg plug-in
8374 * plug-ins/svg/Makefile.am:
8375 * plug-ins/svg/svg.c:
8376 * plug-ins/svg/svg-import.c(new): added SVG import filter
8378 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
8380 * objects/standard/box.c:
8381 * objects/standard/zigzagline.c (zigzagline_move):
8382 More work on zigzagline hints.
8384 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
8385 * lib/connectionpoint.h:
8386 Hints for zigzaglines.
8388 * app/properties.c (properties_show):
8389 * app/defaults.c (defaults_show):
8391 * lib/propobject.c (object_create_props_dialog):
8393 * objects/FS/flow-poly.c:
8394 * objects/network/wanlink.c:
8395 * objects/network/bus.c:
8396 * objects/UML/class.h:
8397 * objects/UML/class_dialog.c:
8398 * objects/UML/association.c:
8399 Start of removing toolbox props from props dialogs.
8403 * app/lineprops_area.c (dia_arrow_chooser_new):
8404 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
8406 * app/create_object.c:
8407 * app/modify_tool.c:
8412 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8414 * app/preferences.c:
8416 * app/diapagelayout.c:
8417 New prefs selector kind PREF_CHOICE chooses between a list of
8418 strings. Used for picking default paper.
8420 * app/preferences.c (prefs_data):
8421 * lib/paper.c (get_paper_info): Added prefs setting for
8424 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8425 line segments at the ends (bug #86603).
8427 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8429 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8430 #60324: Now calls update_data after copy.
8432 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8433 Now doesn't steal selection from non-object tools.
8435 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
8437 * app/commands.c (help_manual_callback): Uses BROWSER environment
8438 variable when available.
8440 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
8442 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8443 object from the new sheet when changing.
8445 * app/app_procs.c (app_init): Uses more standard size icon, from
8446 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
8448 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
8450 * objects/UML/implements.c (implements_update_data):
8451 * objects/UML/realizes.c (realizes_update_data):
8452 * objects/UML/dependency.c (dependency_update_data):
8453 Test for null strings before calling on ascent.
8455 * objects/UML/realizes.c (realizes_draw):
8456 * objects/UML/message.c (message_draw):
8457 * objects/UML/generalization.c (generalization_draw):
8458 * objects/UML/dependency.c (dependency_draw)
8459 * objects/UML/constraint.c (constraint_draw):
8460 * objects/GRAFCET/condition.c (condition_draw):
8461 * objects/UML/association.c (association_draw):
8462 * objects/FS/flow-ortho.c (orthflow_draw):
8463 * objects/FS/flow.c (flow_draw): Change to use
8464 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
8467 * lib/arrows.c (calculate_arrow_point):
8470 * objects/standard/zigzagline.c:
8471 * objects/standard/polyline.c:
8472 * objects/standard/line.c: Work towards better arrow drawing.
8474 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
8476 * objects/UML/state.c: Starting phase-out of State object as
8477 initial/final state (which never worked right).
8479 * app/app_procs.c (app_init): --version command line option for
8482 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8484 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
8486 * app/render_eps.c: Removed debugging info.
8488 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8489 Kludge to make ascent and descent work for empty strings. Won't
8490 work when using non-ASCII fonts. Better would be to get a
8491 PangoFont and ask directly.
8493 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8496 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8499 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
8501 * plug-ins/xfig/xfig-export.c: First use of draw_object render
8502 function: All shapes are now groups in XFig export.
8504 * lib/diagramdata.c (normal_render):
8507 * app/display.c (ddisplay_obj_render):
8508 New render function for drawing objects, allows renderers to group
8509 or otherwise specially handle objects. We may want to reconsider
8510 calling it in app/display.c, as we 'know' the object draw function
8511 is the default one there.
8513 * lib/Makefile.am: Removed extra \ that broke stuff.
8515 * plug-ins/xfig/xfig-import.c:
8516 Spline import for xfig. Not perfect.
8518 * objects/standard/create.h:
8519 * objects/standard/bezier.c (bezierline_create):
8520 * lib/bezier_conn.c:
8521 * lib/beziershape.c (beziershape_set_points):
8522 * lib/bezier_conn.h:
8523 * lib/beziershape.h:
8524 Support for creating beziers non-interactively.
8526 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
8528 * plug-ins/xfig/xfig-import.c: Support for polygons and
8529 polylines. Special warning handling system removed.
8531 * lib/message.c (gtk_message_internal): Fixed bug involving
8532 closing message window and then getting repeated message.
8536 * configure.in (GETTEXT_PACKAGE):
8537 Update based on bug #88199. Hopefully this doesn't break too much
8540 * dia.desktop.in (_Comment): Changed after suggestion from
8541 calum.benson@ireland.sun.com (bug 88345)
8543 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8544 <loli@unsa.edu.ar> that makes user/system distinction better.
8546 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8548 * app/render_libart.c: Got the context right, removed crashes.
8558 Remove libart #defines from most places (still around for png export).
8560 * app/render_libart.h:
8561 * app/render_libart.c:
8562 * configure.in (HAVE_LIBART):
8563 Starting on update of libart stuff for png export (without X).
8565 * app/autosave.h (autosave_check_autosave):
8568 * app/Makefile.am (dia_core_files):
8570 * app/diagram.c (diagram_set_modified):
8572 * app/app_procs.c (app_init):
8573 Autosave support. No automatic restore yet.
8575 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8577 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8580 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
8582 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8584 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
8586 * Fix for 'make dist' etc. --- problem caused by
8587 previous AUTHORS patch.
8589 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
8591 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
8593 (set_font): NULL check.
8595 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
8597 * app/disp_callbacks.c:
8599 Addition to the object menus allows check menu items.
8601 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
8603 * HACKING: completely changed to bring up-to-date.
8604 * AUTHORS: file needs REMOVING from CVS as now
8605 dynamically generated.
8606 * app/authors.h: split into subcategories for original
8607 authors, maintainers, etc.
8608 * app/app_procs.c: --credits rewritten to support new
8610 * app/commands.c: no changes to about box code, comment
8612 * Makefile.am: added rule for AUTHORS. I'm still
8613 inexperienced with automake, it seems to work, but
8614 for AUTHORS-related bugs, look at this change first.
8616 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
8618 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
8619 work. Back to including xslt dir always.
8621 * objects/UML/uml.c:
8622 * objects/UML/class.h:
8623 * objects/UML/class_dialog.c:
8624 * objects/UML/class.c: Patch from
8625 <mattam@netcourrier.com>: Adds comment visibility switch, also
8628 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
8629 for state/fork/activity stuff.
8630 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
8631 * objects/UML/Makefile.am:
8632 * objects/UML/uml.c:
8633 * sheets/UML.sheet.in: Added new objects activity, fork,
8635 * objects/UML/pixmaps/state_term.xpm:
8636 * objects/UML/state_term.c: New, only initial/final states.
8637 * objects/UML/pixmaps/activity.xpm:
8638 * objects/UML/activity.c: New, activity state.
8639 * objects/UML/pixmaps/fork.xpm:
8640 * objects/UML/fork.c: New, fork/join bar.
8641 * objects/UML/pixmaps/state.xpm: state icon.
8645 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
8646 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
8649 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
8651 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
8654 * app/Makefile.am: Commented out the diaconv parts while it's not
8655 used anyway. To come back later.
8657 * configure.in (HAVE_FREETYPE):
8660 * app/render_eps.c: Support for printing with freetype, better
8661 encapsulated now. Renders the text nicely, but ignores font
8662 setting. Requires pangoft2 to get the font outline, but non-text
8663 objects can still be rendered without it.
8666 * app/commands.c (objects_place_up_callback)
8667 (objects_place_down_callback):
8669 * app/diagram.c (diagram_place_down_selected)
8670 (diagram_place_up_selected): Starting support for moving objects
8673 * app/menus.c: Removed character/numeral shortcuts.
8675 2002-07-06 Hans Breuer <hans@breuer.org>
8677 * makefile.am app/makefile.am lib/makefile.am
8678 objects/makefile.am plug-ins/makefile.am
8679 plug-ins/python/makefile.am :
8680 added required files for win32 build to EXTRA_DIST
8682 * app/paginate_psprint.c app/render_eps.c
8684 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
8685 on Pango as currently is on win32 => no PostScript
8688 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
8689 use '/* noop */;' for empty case labels; replace
8690 debug spew printf with g_print which is guaranteed
8691 to work on win32, too.
8693 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
8694 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
8695 in the pango_font_description_set_weight() api documentation
8696 Take care for them in dia_font_get_style() too.
8698 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
8699 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
8700 rename Obliquity to Slant which appears to be the usual name,
8701 also rename dia_font_get_style_string -> dia_font_get_slant_string
8703 * plug-ins/wmf/wmf.cpp : finally ported to new font api
8705 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
8707 * objects/uml/association.c class.c large_package.c message.c
8708 if g_free() is used g_strdup needs to be used.
8709 * objects/custom/shape_info.c
8710 objects/ER/attribute.c entity.c
8711 objects/standard/image.c
8712 app/sheets_dialog_callbacks.c : more strdup cleaning
8714 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8716 * app/render_eps.c: Non-crashing printing (made the right
8717 context). Font output still fscked up.
8719 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
8721 * app/authors.h: Added file --- now master
8722 location for contributors data.
8723 * app/app_procs.c: Added --credits option.
8724 * app/commands.c: Modified about box to use
8727 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8729 * app/render_eps.c: First stab at EPS rendering using the contour
8730 code from PAPS. Crashes.
8732 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
8734 * app/recent_files.c (recent_file_history_remove):
8735 Fixed call to g_list_delete_link discarding return value.
8737 * lib/widgets.c (dia_font_selector_set_styles):
8738 * lib/font.h (DiaFontWeight):
8739 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
8741 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
8743 Contribution from Alan Horkan <horkana@tcd.ie>:
8746 * sheets/Assorted.sheet:
8747 A set of 40 assorted geometric shapes.
8749 * sheets/Assorted.sheet.in:
8750 * sheets/Makefile.am
8751 * shapes/Assorted/Makefile.am:
8752 * shapes/Makefile.am:
8755 Done the integration job of Alan's shapes. (Translators: have fun!)
8757 * po/dia.pot: refreshed the main potfile.
8759 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
8761 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
8763 * objects/UML/class.[ch]:
8764 * objects/UML/class_dialog.c:
8765 changed the number of connection points from a hardcoded value of
8766 8 to a #defined constant
8768 (I changed the constant back from 20 to 8, until we better know
8769 how we'll handle more connection points on the UML class in the
8770 future -- but Tim's patch is a welcome clean-up).
8772 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
8774 * shapes/MSE/demultiplexer.xpm:
8775 * shapes/MSE/node_center.xpm:
8776 * shapes/MSE/multiplexer.xpm:
8777 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
8778 Horkan <horkana@tcd.ie>
8780 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
8782 * lib/widgets.c: Total rehash of font selector, with font dialog
8783 option, expanding list (not LRU yet), and stuff.
8785 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
8789 Added a set of new setter/getters, some of them more specially for
8792 * plug-ins/shape/shape-export.c: (new_shape_renderer),
8793 (destroy_shape_renderer), (set_font), (draw_string):
8794 * plug-ins/svg/render_svg.c: (new_svg_renderer),
8795 (destroy_svg_renderer), (set_font), (draw_string):
8797 Actually exported the font face, style, weight and size (sodipodi
8798 agrees with dia on how a small sample should look like (a sample
8799 0.90 would not even display anyways). Yay !)
8801 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8803 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
8805 (end of ChangeLog-less patch)
8807 * objects/custom/shape_info.c (parse_style): now understands the
8808 font-style and font-weight attributes as well. Does not use
8809 anymore dia_font_new_from_legacy_name().
8811 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
8813 * objects/standard/textobj.c: Now uses stdprops for defaults.
8815 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
8816 * lib/font.c (dia_font_get_style): Style now linear and conversion
8819 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
8822 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
8824 * plug-ins/dxf/dxf-import.c:
8825 using dia_font_new_from_style()
8827 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8829 * objects/UML/class.[ch]: Added a comment field to class
8830 * objects/UML/uml.[ch]: Added a comment field to attributes,
8831 operations and parameters.
8832 * objects/UML/class_dialog.c: Added code for the new comment
8834 * plug-ins/xslt/*.xsl: Added some code to handle comments.
8835 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
8836 Added a $directory parameter for stylesheets so the output is
8837 in the good place (not in the $PWD).
8841 * AUTHORS: added contributors, updated maintainers. Removed the
8842 specific areas of action.
8844 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
8845 from a patch by Xing Wang <quixon@gnuchina.org>:
8847 * app/commands.c: help_about_callback now supports
8848 new-style GNOME about box as well as old GTK style.
8849 code also tidied (Closes: #85726)
8853 * app/commands.c: fixed the copyright (it's not all FSF), and
8854 maintainers. Synced contributors list with AUTHORS.
8856 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
8858 * lib/message.c: More work on repeating messages, now with
8861 2002-06-24 Hans Breuer <hans@breuer.org>
8863 * lib/widget.c : some more bits in place, at least
8864 it does something useful instead of crashing. Much
8865 better - but not all ok :-)
8867 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
8869 * lib/message.c (gtk_message_internal): First stab at repeating
8872 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8875 * objects/GRAFCET/*.c:
8877 * objects/UML/association.c: (one instance forgotten)
8878 * objects/UML/large_package.c:
8879 * objects/standard/textobj.c:
8882 using dia_font_new_from_style()
8884 2002-06-23 Hans Breuer <hans@breuer.org>
8886 * lib/font.c : giving some love to
8887 dia_font_new_from_legacy_name() that is making
8888 import of old files as painless as possible and
8889 provide an almost exact match where possible.
8890 It does not yet fully work because it interfers
8891 with the Style to DiaStyle conversion which comes
8894 [Changing these files is only allowed with Dia-0.90]
8895 * broken-files/fonts-0.90.dia : including the
8896 common hard-coded fonts from Dia-0.90. It also
8897 has drawn bounding-boxes for win32 as they were calculated
8898 from the former version (they were all too big).
8899 * broken-files/fonts-0.90-full.dia : all hardcoded
8900 fonts including the asian versions. On my machine
8901 this gives _a lot_ complaining about missing fonts
8902 and a finally a broken file display. Anyone having
8905 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8907 * objects/chronogram/*.c:
8908 * objects/custom/custom_object.c:
8910 using dia_font_new_from_style()
8912 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
8914 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
8915 font selector (stability, insensitivity).
8917 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
8918 stretching scheme for tweaking, and made scaling scheme faster
8920 (dia_font_dia_style_to_pango): Oops, % != /.
8922 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8925 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
8927 * plug-ins/xslt : Added an XSLT plugin to export dia files using
8928 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
8929 It includes a small config file to tell it what stylesheets to use.
8933 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
8934 GTK2.0/HIG compliant (the labels could be slightly more verbose,
8935 perhaps). Added back a couple forgotten _(). Removed //-style
8938 2002-06-23 Hans Breuer <hans@breuer.org>
8941 (dia_plugin_get_name) : don't crash plugin_manager
8943 (dia_plugin_load) : reuse the description field to
8944 store the error string if loading fails.
8946 * lib/font.[hc] : starting to beautify the new
8947 font api: proper namespacing, adding convenience
8948 functions like dia_font_new_from_style(), ...
8950 * objects/uml/*.c : use the new convenience functions.
8952 [Next thing I plan to do is changing the other font
8953 functions to take DiaStyle and make Style and
8954 BASIC_*_FONT vanish. As well as giving some love to
8955 dia_font_new_from_legacy_name().
8956 If anyone want's to help on converting the other
8957 objects to the new api during that, I would highly
8960 2002-06-23 Hans Breuer <hans@breuer.org>
8962 * lib/font.c : made it compile and small indent fixes.
8963 Is there a code-has-no-effect-so-needs-not-be-valid
8966 * lib/widgets.c : use g_strcasecmp
8968 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
8972 * lib/widgets.c: Font names sorted, style selector widget
8973 reappeared. Doesn't select the old style yet.
8975 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
8977 * lib/font.c: one who expects a text's font to be changed shall
8978 actually request the attributes to apply to the whole range of the
8981 * lib/font.c: extents computation was wrong.
8983 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
8984 if a last NULL parameter is added...
8986 * lib/font.c: extents computation was completely wrong. This looks
8987 much better this time.
8989 * objects/UML/class.c: fixed the various strings positions.
8991 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
8992 macros to get the hardcoded base fonts.
8994 * objects/ER/relationship.c: wasn't converted to DiaFont*
8996 2002-06-22 Hans Breuer <hans@breuer.org>
8998 * lib/widget.c : dont use backend specific functions
8999 to get on the font_families. Including it would mean
9000 including <windows.h> which breaks due to namespace
9003 * lib/libdia.def : updated externals
9005 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
9007 * lib/font.c : added empty dia_font_init_instance function,
9008 reformatting of dia_fon_unref to allow to set breakpoint,
9009 dia_fon_build_layout() : dont crash on string==NULL
9011 * lib/text.c (text_set_attributes) : don't unref the wrong font
9013 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
9014 stores lowercased font names, but dia_font_get_family()
9017 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
9020 * app/render_gdk.c: Patch from Hans Breuer.
9022 * app/Makefile.am (dia_core_files): diaconv commented out for now.
9024 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
9026 * lib/all files touched yesterday: took into account some of Hans
9028 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
9030 * objects/chronogram/*:
9033 * objects/flowchart/*:
9035 * objects/GRAFCET/*:
9037 * objects/standard/textobj.?:
9039 converted to the new DiaFonts.
9042 * plug-ins/pstricks/*:
9046 Made minimalistic conversions so that they'd at least compile.
9049 * app/render_pixmap.c:
9050 Converted to the new DiaFonts.
9055 made the minimal changes so that it would at least build.
9057 *** At this point, the thing builds on my machine, but segfaults
9060 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
9062 * configure.in: removed the backend-specific pango pkg_modules
9063 (trivial to add back if needed, when actually needed)
9066 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
9067 renderer. The APIs will have completely changed when we get around
9068 to redo a renderer for it, anyways.
9070 * font.[ch]: rewrote everything from scratch, with a Pango
9071 implementation. Normally, only backend-neutral things should go in
9074 **WARNING**: new rules for managing DiaFont* pointers: these are
9075 reference-counted GObjects. One >must< diafont_ref() and
9076 diafont_unref() as appropriate. I wish I could overload operator=()...
9078 lib/plug-ins.h: bumped up the plug-in API.
9083 lib/object_defaults:
9084 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
9085 again tomorrow with GObject.
9087 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
9089 **** The rest of the tree should be updated as well ****
9091 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
9095 * app/render_pixmap.c:
9096 * app/render_pixmap.h:
9097 * app/render_libart.h:
9098 * app/render_libart.c:
9100 * lib/font.c: Removed freetype stuff (still around in
9101 lib/widgets.c 'cause we might want the font selector widget).
9103 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
9105 * shapes/network/laptop.(xml|shape):
9106 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
9107 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
9109 2002-06-17 Hans Breuer <hans@breuer.org>
9111 * lib/object_defaults.c : #include <libxml/tree.h> not
9112 <tree.h> pointed out by Xing Wang
9114 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
9116 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
9118 * app/color_area.c: Update to
9119 gtk_color_selection_*_current_color() fixed bad crash issues, plus
9120 updated color conversions.
9122 * sheets/ER/weakentity.xpm: Accepted patch from
9123 quixon@gnuchina.org to make icon match actual appearance.
9125 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
9126 quixon@gnuchina.org.
9128 2002-06-16 Hans Breuer <hans@breuer.org>
9130 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
9131 good tradition of information hiding. Add new function
9132 dia_plugin_get_symbol()
9133 * app/sheets.c app/sheets_dialog_callbacks.c : use it
9135 * app/sheets.c : stop complaining about object_get_type()
9136 returning NULL. This is a consequence of e.g. disabling
9137 plug-ins at runtime _and_ it was and is gracefully handled.
9138 Spitting out g_warning for it isn't appropriate.
9140 * lib/object.[ch] : removed dead code
9142 * app/plugin-mangager.c : almost complete rewrite for gtk2
9143 using GtkListStore/GtkTreeView
9145 * lib/libdia.def : updated externals
9147 * todo.gtk2 : updated, that is removed already done steps
9149 2002-06-15 Hans Breuer <hans@breuer.org>
9151 * objects/uml/class_dialog.c : clean some left-over
9152 utf8-mess, return 0 from "focus_out_event" handlers
9153 to avoid asserting in gtk (#78305). Reconstruct
9154 stereotype/NULL behaviour to avoid rendering empty
9155 stereotypes on classes and member functions
9157 [#56109 - Provide object defaults for StdProp objects,
9158 some remaining issues are discussed in bugzilla]
9160 * lib/object_defaults.c : (new file) manage default properties
9161 of dia objects. The serialization is done with standard
9162 object methods in a diagram compatible format.
9164 * lib/object.c : add object_registry_foreach() which allows
9165 to iterate over all registered object types
9167 * lib/object.h : added prototypes object_default*() and
9168 object_registry_foreach()
9170 * lib/makefile.am lib/makefile.msc : add new file to build
9172 * lib/libdia.def : export new functions
9174 * app/defaults.c : provide StdProp based defaults if the
9175 ObjectType doesn't implement it's own default functions
9177 * app/create_object.c : through dia_object_default_create()
9178 * app/disp_callbacks.c : same here
9180 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
9182 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
9183 sensitivity for deleting segments.
9185 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
9187 * app/color_area.c: (color_area_events):
9188 * app/diagram.c: (diagram_destroy):
9189 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
9191 * app/load_save.c: (diagram_data_load):
9192 * app/menus.c: (menus_get_item_from_path):
9193 * app/preferences.c: (prefs_load):
9194 * app/render_gdk.c: (get_text_width):
9196 * lib/color.c: (color_convert):
9197 * lib/dia_dirs.c: (dia_config_filename):
9198 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
9199 * lib/intl.c: (intl_get_language_list):
9200 * lib/message.c: (message):
9202 * lib/paper.c: (get_default_paper):
9203 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
9204 * lib/widgets.c: (dia_file_selector_get_file):
9206 * objects/standard/image.c: (get_directory):
9210 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
9212 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
9214 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
9216 * app/interface.c: sscanf now returns EOF on empty string, so
9217 handle no match for zoom factor better => correct zoom at start.
9219 * app/sheets.c (create_object_pixmap): Tried to display empty error.
9220 (sheets_optionmenu_create): Died when not finding specified
9221 sheet. Don't think it should.
9223 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
9224 (bug #84367) to place the text better.
9226 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
9228 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
9230 * app/commands.c: Removed unnecessary gnome include. Removed
9231 GNOME-Print support.
9233 * app/menus.h: Removed now unnecessary gnome include.
9235 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
9236 GNOME-specific stock buttons
9238 2002-06-09 Hans Breuer <hans@breuer.org>
9240 * app/app_procs.c : convert 'Modified diagrams exits'
9241 dialog to use GtkMessageDialog. That gives us:
9242 - icons without Gnome dependency
9243 - much less code, also cross platform
9244 - improved useability ?
9246 * app/color_area.c : the Color Selection Widget looked
9247 quite wrong (alpha problems). Fix it by merging in required
9248 changes stolen from The Gimp cvs
9249 * app/color_area.h : to get the right appearance the maskes
9250 needed to be taken into account
9251 * app/interface.c : adapt to color_area_create changes.
9252 Also remove some dead code and finally remove cvs autexpansion,
9253 I was bothered enough by irrelevant differences :-)
9255 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
9256 api, i.e stocks and response to make the GnomeDialog usage
9257 obsolete. Also fixed the issue with closing the 'parent'
9258 before closing the dialog
9260 * app/display.[ch] : removed some dead code and conversion
9261 to new GtkDialog api. Also trying to conform to new HIG
9262 standard http://developer.gnome.org/projects/gup/hig/
9264 2002-06-09 Hans Breuer <hans@breuer.org>
9266 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
9269 * lib/dia_image.c : gtk_widget_set_default_visual()
9270 remove. It does nothing with Gtk2.
9272 * lib/libdia.def : added ps_unicoder exports
9274 * lib/message.c : remove #GNOME use GtkMessageDialog.
9275 Yeah, Dia gets dialogs wit icons cross-platform.
9277 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
9278 to gtk_spin_button_get_value()
9280 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
9282 add #undef GTK_DISABLE_DEPRECATED to still use ...
9283 * lib/prop_text.c : ... GtkText
9284 * lib/prop_widgets.c : ... GtkList
9285 * lib/prop_dialogs.c : ... gtk_signal_connect and more
9286 * lib/widgets.c : ... (too much to list here)
9288 * lib/ps-utf8.c : #include <string.h>
9290 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
9293 * Makefile.am: Adapted for gtk2.
9294 Removed dependencies on libunicode, on iconv(), on langinfo().
9296 * acconfig.h: removed (now obsolete)
9298 * lib/charconv.[ch]: removed (superceded by glib)
9299 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
9301 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
9302 libunicode types for their glib counterparts. Fixed the include
9303 paths for libxml2. Removed all traces of libxml1 or non-UTF8
9304 support (there were remains in objects/uml).
9307 2002-06-08 Hans Breuer <hans@breuer.org>
9309 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
9310 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
9311 Also use g_strdup()'s handling of NULL by returning NULL
9312 again at all places I found (remove unnecessary if's)
9314 * todo.gtk2 : new file to keep notes about gtk2 porting,
9315 further issues and thoughts and some status information.
9316 Also sent to dia-list ('Dia goes Gtk2 ...').
9318 [make it compile with GTK+ 2.0]
9320 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
9321 removed definition of S_ISDIR, S_ISREG and getlogin
9323 * */makefile.msc : Use GTK2 and libxml2
9324 BEWARE: makefile.am, configure.in not yet ported !
9326 * app/app_procs.c app/diagram.c : remove
9327 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
9328 but set use gtk_menu_set_accel_path() on menu creation
9330 * app/color_area.c lib/widgets.c :
9331 make use of gtk_color_selection_set_has_palette ()
9333 * app/commands.c : gdk_pixbuf_new_from_file wants an
9334 extra argument. Convert from DIR to GDir usage.
9336 * app/diagram_tree.c(button_press_callback) : need to return
9337 FALSE in the signal handler to let gtk process it further.
9338 (get_object_name) : don't leak 'prop'
9340 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
9341 dia_page_layout_destroy() getting called more than once
9343 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
9346 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
9348 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
9349 IIRC this code will not compile unchanged when USE_XIM is defined ...
9351 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
9353 * app/interface.c : there is no widget->klass anymore in Gtk,
9354 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
9355 parameter. Some tweaking of GtkWrapBox usage to get four tools in
9357 switch off GTK's double buffering on Dia's canvas. Otherwise we would
9358 get triple buffering and flicker.
9359 Replace call to GTK private function _gtk_accel_group_attach()
9360 with public gtk_window_add_accel_group()
9362 * app/layer_dialog.c : adapt to GtkTypeInfo changes
9364 * app/load_save.c lib/plug-ins.c lib/sheet.c
9365 objects/custom/custom.c :
9366 simplified by using g_file_test()
9368 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
9369 to gtk_accel_map_<save|load>. Also added common stock-icons
9372 * app/preferences.c : use gtk_button_set_label() instead
9373 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
9375 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
9376 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
9379 * app/recent_files.c : removed GLIB_CHECK_VERSION
9382 plug-ins/metapost/render_metapost.c
9383 plug-ins/pstricks/render_pstricks.c
9384 plug-ins/svg/render_svg.c :
9385 replace getlogin() with g_get_user_name() which always
9388 * app/render_gdk.c : gdk_region_union_with_rect() modifies
9389 inplace now and returns nothing, also less #hell
9391 * app/render_libart.c : some initial #hell cleaning, SuckFont
9392 still needs to vanish
9394 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
9395 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
9397 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
9398 * app/sheets_dialog_callbacks.c : some #hell and adaptions
9399 needed to GtkWrapBox api changes
9402 * lib/charconv.[hc] : removed from build
9403 [changed appropriate]
9404 * lib/prop_inttypes.c lib/prop_text.c :
9406 * lib/text.c : ported from HEAD but keep original indent
9407 intact. Original was done by Akira TAGOH.
9409 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
9411 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
9413 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
9414 same on all platforms now!
9416 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
9418 * lib/message.c : remove "charconv.h"
9420 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9423 * lib/sheet.c : convert from DIR to GDir usage
9425 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9427 * lib/widgets.h : include gtk<label|colorseldialog>.h
9430 * objects/fs/flow.c :
9431 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9433 * objects/custom/custom.c : convert from DIR to GDir usage
9436 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9439 2002-05-03 Hans Breuer <hans@breuer.org>
9441 * lib/dia_xml.c : make the well formed utf8 check
9442 actually work for û (non 7-bit ascii encoding)
9443 and fixed the file re-writing if the check fails.
9444 Thanks to Vitaly Lipatov for noticing the misbehaviour.
9446 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9447 comment on last ressort font. Thanks to Maxim Sobolev.
9449 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
9451 * sheets/network.sheet.in: corrected a typo in plotter invocation.
9453 2002-06-03 Steffen Macke <sdteffen@web.de>
9455 * shapes/network/digitizing_board.png:
9456 * shapes/network/digitizing_board.shape:
9457 * shapes/network/plotter.png:
9458 * shapes/network/plotter.shape:
9459 * shapes/network/Makefile.am
9460 * sheets/network.sheet.in: added new plotter and digitizing
9463 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
9465 * lib/font.c: made a symptomatic fix to a segfault reported by
9466 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9467 won't prevent dia from terminating, but should give more
9468 user-friendly information about why did it terminate.
9470 Two patches from <robert.young@dsto.defence.gov.au>:
9472 * app/display.c: fix the size of the canvas area which gets
9473 redrawn. There was an off-by one error (Closes #83659)
9475 * app/display.c: make sure we redraw all screen only when we
9476 really have to (some update_areas were mistakenly ignored) (Closes
9479 * NEWS: added a new entry for the future. Put there a reminder to
9480 update the dependencies.
9482 * configure.in: put in notes about what will change shortly.
9483 upped the version to 0.90+cvs (did also in config.h.win32)
9484 upped the minimum version for intltools (now 0.21)
9486 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
9492 bumped up version number to 0.90. Yay!
9494 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
9496 * doc/pl/Makefile.am:
9497 * doc/en/Makefile.am: fixed a "make install" problem when db2html
9498 is not present (Reported by Andrew Ferrier
9499 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9500 problem which prevented me from ever seeing the problem in doc/en...
9502 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9504 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9505 way to read the font path from the XFS configuration files in
9506 order to enable FreeType (fixes #83098).
9508 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9515 bumped up version number to 0.90.RC3
9517 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
9519 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9520 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9521 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9522 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9523 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9524 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9525 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9526 Added Polish documentation.
9528 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
9530 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9531 format for the UML State object. Now there's a hack to reload
9532 older files, and get them converted on the fly.
9533 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
9537 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9538 and adapter the proplist predicates. A LOAD_ONLY property is for
9539 when you have legacy to support but can't resist moving your
9540 fields around... (was needed to support the above state.c fix).
9542 If the in-core of your object changes and you need a LOAD_ONLY
9543 property for the old format, you must keep some spare room in your
9544 object's struct to accomodate for the potential old-style
9545 attributes. Then in foo_load(), after having called
9546 object_load_using_properties(), you must inspect the old-style
9547 fields and act accordingly. Don't ever change the on-disk formats...
9549 * objects/UML/object.c:
9550 * objects/UML/small_package.c: added a check against empty
9551 stereotypes still consuming space. Reported by Dolores Alia de
9552 Saravia <loli@unsa.edu.ar>. Thanks!
9554 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
9556 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
9557 using libtool on an AFS partition.
9559 * po/update_potfiles_in.sh: now simply calls the recent intltools
9560 features; they work better than hand-crafted half-ignorant
9561 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9564 * po/POTFILES.in: added back two files update_potfiles_in.sh
9565 didn't take into account. Now this file is not automatically
9567 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9568 (the usual suspects, in fact).
9570 * configure.in: improved the isinf() / isfinite() detection on
9571 Solaris (MÃ¥rten Svantesson)
9573 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
9575 * configure.in: one expression was replacing $CFLAGS, removing
9576 whatever was previously in.
9577 Added more checks for isinf() and finite() on Solaris.
9579 * lib/geometry.h: added a macro defintion for isinf() if not
9580 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9583 * app/commands.c: "cut" did not set the 'modified' bit (paste has
9584 been for a little while). Fixes #82994.
9586 * Makefile.am: added more stuff to distclean-local. This should make
9587 "make distcheck" pass! Thanks to the author of
9588 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
9589 ... I wonder who this Henstridge guy is ... ;-)
9590 Darn. Still doesn't pass. I give up for tonight.
9592 * po/update_potfiles_in.sh: updated to take care of sheet files,
9593 and to filter out the EML plug-in.
9594 * po/POTFILES.in: updated with all .c and all .sheet.in files
9596 * po/dia.pot, po/*.po: again updated all .po files with all
9597 strings (with the updated POTFILES). Now with the up-to-date
9598 POTFILES, just all languages have some fuzzy or untranslated
9599 strings (not that the 100% team was that large beforehand...)
9601 * po-checktrans: removed the comment about .po files not holding
9602 all translatable stuff, since now they do.
9604 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
9610 bumped up version number to 0.90.RC2
9612 2002-05-20 Hans Breuer <hans@breuer.org>
9614 * app/load_save.c : starting to increase
9615 Dias tolerance on incomplete/broken files. The
9616 corresponding bug is #56233. But the patch there does
9617 neither apply anymore nor does it really fix the problem
9618 but only delays it, e.g. even if it would be allowed
9619 to read a file without any layers, the later code can't
9621 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
9622 handle passing in NULL for the node gracefully.
9624 * shapes/network/printer.shape : added two more connection
9625 points - one at each side - to fix bug #60359
9627 * app/commands.c (edit_copy_callback) :
9628 add ddisplay_do_update_menu_sensitivity() to make
9629 sequence select-copy-paste work.
9631 2002-05-20 Hans Breuer <hans@breuer.org>
9633 * app/create_object.c (create_object_button_press) :
9634 added a call to ddisplay_do_update_menu_sensitivity()
9635 to make Ctrl^D etc work after object creation.
9638 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
9640 * objects/ER/entity.c:
9641 * objects/ER/attribute.c:
9642 * objects/ER/relationship.c: Patch to allow text size change from
9643 Celso Tetsuo Nagase Suzuki.
9645 2002-05-18 Steffen Macke <sdteffen@web.de>
9647 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
9649 * doc/en/graphics/greendots.png:
9650 * doc/en/home_network.png:
9651 * doc/en/line_props.png:
9653 * dia_gnome_icon.png:
9654 * dia_gnome_menu_icon.png:
9656 * shapes/network/telephone.png:
9657 * shapes/Logic/and.png:
9658 * shapes/Logic/buffer.png:
9659 * shapes/Logic/connector.png:
9660 * shapes/Logic/inverter.png:
9661 * shapes/Logic/nand.png:
9662 * shapes/Logic/nor.png:
9663 * shapes/Logic/not.png:
9664 * shapes/Logic/or.png:
9665 * shapes/logic/xor.png:
9666 * samples/ER-demo.dia:
9668 * samples/UML-demo.dia:
9669 * samples/chronograms.dia:
9670 * samples/grafcet.dia: re-added as binary files
9672 2002-05-17 Hans Breuer <hans@breuer.org>
9674 * lib/libdia.def : reflect removing of render_store.[ch]
9676 * */makefile.mingw : remove VERSION definition it's
9677 done in config.h.win32. Dia still doesn't work if
9678 build with mingw ...
9680 * RELEASE-PROCESS : removed */makefile.mingw
9682 * app/sheets_dialog_callbacks.c : if we use those
9683 ugly charconv_gtk_* functions lib/charconv.h needs to
9685 * lib/charconv.h : ... and needs to contain the
9686 necesseray prototypes _and_ #defines
9688 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
9689 is deprecated and does nothing but spit a warning. This broke
9690 the shape format writing. Fixed.
9691 Also with libxml2 pretty formatted xml isn't the default
9692 anymore, but needs to be enabled explicit: It is done now
9693 for shape files, which almost always needed to be edited by
9696 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
9697 from stderr - which is invalid on Dia/win32 - to g_print -
9698 which opens up a console window if necessary. This way
9699 a xml-deprecation-error shouldn't stay unnoticed next time
9701 2002-05-17 Steffen Macke <sdteffen@web.de>
9703 * shapes/Misc/folder.png:
9704 * shapes/Misc/file.png: re-added as binary files
9706 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9708 * lib/font.c: Fixed segfault for fonts without family_name.
9710 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
9712 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
9714 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
9715 Lars' request, minor cosmetic stuff (mostly _() of human-readable
9716 XML comments in .sheet files; one translator booby-trap disarmed).
9718 * lib/charconv.c: moved #hell inside the body of the new
9719 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
9722 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9724 * plug-ins/wpg/Makefile.am (INCLUDES):
9725 * plug-ins/shape/Makefile.am (INCLUDES):
9726 * plug-ins/svg/Makefile.am (INCLUDES):
9727 * plug-ins/pstricks/Makefile.am (INCLUDES):
9728 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
9729 and DEBUG_CFLAGS in some missing places.
9731 * MAINTAINERS: New file containing list of known package
9735 * lib/charconv.c: Charconv versions of some common gtk calls.
9737 * app/sheets_dialog_callbacks.c
9738 (on_sheets_new_dialog_button_ok_clicked),
9739 (on_sheets_dialog_button_edit_clicked),
9740 (on_sheets_dialog_button_remove_clicked),
9741 (on_sheets_edit_dialog_button_ok_clicked):
9742 * app/sheets.c (sheets_optionmenu_create),
9743 (sheets_optionmenu_create): Added utf8 translations.
9745 * app/sheets_dialog.c:
9747 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
9749 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
9751 * po/POTFILES.in: added app/sheets_dialog.c
9753 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
9755 * lib/charconv.c: (charconv_local8_to_utf8),
9756 (charconv_utf8_to_local8): tweaked the warnings to get more
9758 * lib/font.c: (font_get_suckfont): handled a potential case of
9759 uninitialised data being used (just paranoid)
9761 * objects/GRAFCET/boolequation.c: (opstring),
9762 (opblock_get_boundingbox), (opblock_draw),
9763 (boolequation_calc_boundingbox): some extra hoops needed now dia
9764 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
9765 symbols can't yet be used with their proper Unicode cells, since
9766 gtk will demand them in the Symbol font, expressed in the local
9769 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
9770 the fix just above).
9772 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
9774 * app/diagram_tree.c (get_object_name): Check that name property
9775 doesn't have null string.
9777 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
9779 * autogen.sh (DIE): Added conditional --force to gettextize.
9781 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
9784 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
9786 * RELEASE-PROCESS: added James' notes on how to properly make the
9789 * configure.in: removed macro nesting related to libpng.h, which
9790 was causing some problems on some systems (like mine, which made
9793 Made --enable-unicode, previously an option, the mandatory case.
9795 * app/Makefile.am: updated EXTRA_DIST
9798 * app/makefile.mingw:
9800 * doc/en/dia-manual.sgml:
9801 * plug-ins/makefile.mingw:
9802 * configure.in: bumped up the version number to 0.90.RC1
9804 * lib/render_objects.[ch]:
9805 * po/POTFILES.in: removed render_objects from the build.
9807 * plug-ins/Makefile.am:
9808 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
9809 so we keep its source in the tarball.
9811 * objects/network/*.c, Makefile.am:
9812 * objects/sybase/*.c, Makefile.am:
9813 * po/POTFILES.in: cleaned up the non-existent files from the po
9816 * plug-ins/Makefile.am: re-enabled metapost plug-in.
9818 2002-05-13 Steffen Macke <sdteffen@web.de>
9821 * app/command.c: added M. C. Nelson to the Authors
9822 * sheets/Circuit/Makefile.am: added firewall shape to build
9823 * sheets/network/Makefile.am: added telephone and microphone
9826 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
9828 * RELEASE-PROCESS: Added list of files that contain the release
9829 number or should otherwise be changed at each release.
9831 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
9833 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
9834 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
9836 2002-05-12 Hans Breuer <hans@breuer.org>
9838 * config.h.win32 : changed VERSION to 0.90.RC1
9840 * app/makefile.msc lib/makefile.msc : use renamed
9841 gdk-pixbuf version (same content but renamed because
9842 all the other gtk+ dlls are renamed) to avoid trouble
9843 mixing gtk versions (of which one would not
9846 * app/app_procs.c : removed recently unneeded
9847 inclusion of "sheets.h"
9849 * app/render_gdk.c : removed my own debug spew
9850 which should never made it to cvs
9852 * lib/render_object.[hc] : added
9853 #error "File not used anymore."
9855 * lib/libdia.def : updated externals
9857 * app/interface.c : dropped filenames need to be
9858 converted from uri with Gtk+2.0
9860 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
9862 * RELEASE-PROCESS (new): a draft document about how to release. To
9863 be discussed. (already with some input from Hans Breuer)
9865 2002-05-12 Steffen Macke <sdteffen@web.de>
9867 * sheets/Makefile.am: re-added Misc sheet to make process
9869 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
9871 * objects/FS/function.c: Added comments to humungous list of menu
9872 items, to aid translators.
9874 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9876 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9878 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9880 * app/interface.c (create_toolbox): Disallow shrinking beyond
9881 requested size. Fixes bug #59439, and confirms to GTK guidelines
9882 (see gtk_window_set_policy).
9883 (create_sheets): Removed now unnecessary set_usize call.
9885 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9887 * lib/beziershape.c (remove_handles): Fixing removal of last
9888 segment. Undo of removal still hokey.
9890 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
9892 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
9894 * lib/beziershape.c (beziershape_init): Removed early call to
9895 beziershape_update_data where points aren't set yet.
9896 (beziershape_add_segment): Use segment 0 instead of overflowing
9897 points array with segment+1.
9898 (beziershape_remove_segment): Proper offset for fixing
9900 (remove_handles): Proper offset.
9902 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
9904 * objects/GRAFCET/action.c (action_update_data): Init x value of
9905 click point for call to connpointlist_adjust_count.
9907 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
9909 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
9910 setting to where values are inited.
9912 * lib/polyshape.c (polyshape_init): Removed call to
9913 polyshape_update_data that tried to use uninitialized data.
9915 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9917 * app/sheets_dialog.c: Mass removal of //-style comments. The
9918 Irix compiler doesn't like them:( I do...
9920 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
9922 * app/render_libart.c (draw_string): Bail out when no GDK font is
9924 (set_font): Give error when font not found.
9925 (set_fillstyle): Intlized error msg.
9927 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
9928 modified when applied (and ok only does apply if apply is set
9929 sensitive). Fixes bug #75623.
9931 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
9933 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
9935 2002-05-05 Steffen Macke <sdteffen@web.de>
9937 * app/Makefile.am: added $(UNICODE_CFLAGS)
9939 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
9941 * app/commands.c (help_manual_callback): Check return value of
9944 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
9946 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
9949 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
9951 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
9953 * objects/UML/uml.c (uml_operation_read): Fix of UML default
9956 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9958 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
9959 Added button to toggle diagram compression.
9961 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9963 * lib/font.c: Support for loading extra kerning files, plus got
9964 rid of rounding errors. Bounding box mostly perfect for freetype
9966 (font_string_width): Fudge factor to get around nonlinearity of
9969 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
9971 * lib/font.c (font_string_width): YA font calculation scheme, with
9974 * objects/UML/class.c (umlclass_calculate_data): Uses the same
9975 font for drawing and calculating now.
9977 * configure.in: Added utime.h check.
9979 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
9980 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
9982 2002-04-26 Hans Breuer <hans@breuer.org>
9984 [ Instead of fixing about 70 occurances in 20 files
9985 where GTK_TALKS_UTF8_WE_DONT needed to be handled
9986 Dia on win32 from now on uses glib-2.0 and not
9987 only talks utf-8 with gtk-1.3 but also internally.
9988 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
9991 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
9992 #undef GTK_TALKS_UTF8_WE_DONT
9994 * */makefile.msc : changes to use glib-2.0 (still
9995 using gtk+1.3(win32-production)
9997 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
9998 adapt kevent->string handling, add <string.h>
9999 * app/render_gdk.c (get_text_width) : the length given
10000 is in chars, gdk_text_width() needs bytes
10002 * app/render_libart.c :
10003 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
10004 (could simplify the same way as done in render_gdk.c)
10006 * app/diagram_tree.c app/paginate_gdiprint.cpp
10008 * lib/prop_basic.c lib/prop_geomtypes.c
10009 lib/propdialgs.c lib/propobject.c :
10010 added <string.h> which is now removed from charconv.h
10012 * lib/charconv.h : optional use infrastructure from
10013 glib-2.0 -> only five direct function mapping left
10015 * lib/charconv.c : avoid to build this with glib-2.0
10017 * lib/font.c : no string conversion needed anymore
10018 when Dia and Gtk talk utf-8, also code adaptions
10019 for GLIB_CHECK_VERSION(2,0,0)
10021 * lib/libdia.def : removed charconv functions
10023 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
10024 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
10026 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
10027 removed GTK_TALKS_UTF8_WE_DONT
10029 * lib/text.c : finally(?) fixed cursor <place|move>ment
10030 for Umlauts. Also fixed char insertion, still wondering
10031 how this could ever work. Does realloc on Linux
10032 initialize the memory with zeros ?
10034 * objects/chronogram/chronoline_event.c
10035 objects/grafcet/boolequation.c :
10036 there is no uni_get_utf8 when building for glib-2.0.
10037 Replace with g_utf8_get_char() and g_utf8_next_char().
10039 * objects/uml/stereotype.c (bracketted_to_string) :
10040 simplify while adding code for glib-2.0 build
10042 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
10044 * app/diagram.h: Autosave field
10045 * app/diagram.c (diagram_set_modified): Sets autosave field.
10047 * objects/UML/usecase.c (usecase_update_data):
10048 * objects/flowchart/ellipse.c (ellipse_update_data):
10049 * objects/flowchart/parallelogram.c (pgram_update_data):
10050 * objects/flowchart/diamond.c (diamond_update_data):
10051 * objects/custom/custom_object.c (custom_update_data):
10052 * objects/UML/state.c (state_update_data):
10053 * objects/UML/small_package.c (smallpackage_update_data):
10054 * objects/UML/object.c (objet_update_data):
10055 * objects/UML/note.c (note_update_data):
10056 * objects/UML/node.c (node_update_data):
10057 * objects/UML/component.c (component_update_data):
10058 * objects/UML/classicon.c (classicon_update_data):
10059 * objects/UML/actor.c (actor_update_data):
10060 * objects/SADT/box.c (sadtbox_update_data):
10061 * objects/FS/function.c (function_update_data):
10062 All now update text boundaries from update_data.
10064 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
10067 2002-04-26 Hans Breuer <hans@breuer.org>
10069 * config.h.win32 : added VERSION definition here
10070 (and removed from makefile.msc's)
10072 * app/makefile.msc : added new files
10074 * app/app_procs.c (app_init): remove sheets_dialog_create()
10075 from start-up and ...
10077 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
10078 sheet_dialog here when it is really needed.
10079 #include "../lib/message.h", make sheets_dialog_create()
10080 return it's success or failing on (!custom_type_symbol).
10081 Although editing shapes is nice IMHO it isn't crucial enough
10082 to abort() Dia if it isn't possible.
10084 * app/sheet.h : adapt create_sheet_dialog() prototype
10086 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
10088 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
10089 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
10090 name space corrections for utime() and utim_buf #ifdef
10093 * lib/libdia.def : export new sheet functions
10095 * lib/makefile.msc : added new files
10097 * lib/render.c : don't put draw_bezier_with_arrows() in
10098 the DrawLineWithArrowsFunc slot
10100 * objects/custom/custom_object.c : #include <gmodule.h>
10101 and export 'custom_type' via G_MODULE_EXPORT
10103 * objects/uml/class_dialog.c : removed 'incompatible
10104 types' warnings. Some refactoring while making it fit
10105 on screen with 800x600 again.
10107 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
10109 * plug-ins/python/pydia-handle.h : extra parameter to
10110 PyDiaHandle_New to store the owner of the handle
10111 * plug-ins/python/pydia-handle.c : store handle owner
10112 on construction and use it in new method .connect()
10113 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
10114 adapt to changed prototype
10116 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
10118 * lib/text.c (text_calc_boundingbox): Will now return early if box
10121 * objects/flowchart/box.c (box_update_data): Now updates text
10122 width info from update_data.
10124 2002-04-23 Steffen Macke <sdteffen@web.de>
10126 * plug-ins/xfig/xfig-import.c: fixed text import
10128 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
10130 * app/export_png.c: Moved dialog functions to their own file.
10131 * app/dialogs.[ch]: New files with standard functions for creating
10132 small, transient dialogs (e.g. export options).
10133 * app/Makefile.am: Added dialogs.[ch]
10135 2002-04-19 Steffen Macke <sdteffen@web.de>
10137 * shapes/Misc/folder.*:
10138 * shapes/Misc/file.*:
10139 * shapes/Misc/Makefile.am:
10140 * shapes/Makefile.am:
10141 * sheets/Misc.sheet.in:
10142 * sheets/Makefile.am:
10143 * configure.in: added new Misc sheet containing filesystem shapes
10145 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
10147 * app/lineprops_area.c: Arrow selector in toolbox changed to use
10148 standard arrowdraw code. Line is thinner to make some arrowheads
10151 2002-04-18 Steffen Macke <sdteffen@web.de>
10153 * sheets/network.sheet.in:
10154 * shapes/network/telephone.shape:
10155 * shapes/network/Makefile.am: added telephone shape
10157 2002-04-16 Steffen Macke <sdteffen@web.de>
10159 * sheets/EML.sheet.in: commented out unavailable shapes
10161 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
10163 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
10164 variable assignment.
10166 2002-04-15 Steffen Macke <sdteffen@web.de>
10168 * plug-ins/dxf/dxf-import.c: text import works again
10169 * shapes/Pneumatic/Makefile.am: added compush shape
10170 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
10173 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
10175 * All these modifications are for the 'Sheets and Objects' dialog
10178 * app/pixmaps/line_break.xpm: new icon representing a line break.
10180 * app/pixmaps/n_a.xpm: new empty icon representing not available.
10182 * app/Makefile.am: added sheets_*.[ch] files to compile list.
10184 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
10186 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
10188 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
10190 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
10192 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
10194 * app/sheets_dialog_callbacks.h: [new file] support for " " "
10196 * app/interface.c: added 'interface_current_sheet_name' global to
10197 fill_sheet_wbox(); made fill_sheet_menu() non-static
10199 * app/interface.h: added extern declaration for aboves.
10201 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
10203 * app/sheets.h: [new file] declarations for backing store structures
10205 * lib/sheet.c: modification of new_sheet() parameters; introduction
10206 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
10207 changes to load_register_sheet().
10209 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
10210 added 'has_icon_on_sheet' flag to SheetObject structure; added
10211 'filename', 'scope', 'shadowing' fields to Sheet structure.
10213 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
10216 * lib/plug-isn.h: see above.
10218 * lib/object.c: added 'sheet.h' to include list; added several
10220 to detect objects which are not found on any sheet (for future use)
10221 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
10222 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
10224 * lib/object.h: added public declarations for above functions where
10227 * objects/custom/custom.c: made custom_object_load() non-static so we
10228 can load and interpret .shape files from the Sheets & Objects dialog
10230 * objects/custom/custom_object.c: made 'custom_type' non-static so
10231 we can differentiate between SVG shapes and other types.a
10233 2002-04-07 Hans Breuer <hans@breuer.org>
10235 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
10236 from 2002-01-22 to not destroy diagram->data->selected.
10237 Avoids to crash on Objects/Align/Vertical/Top
10239 * app/render_eps.c (draw_string) : un-const buffer
10240 It isn't at all const (g_malloc(), assignment, g_free()).
10241 Doesn't gcc catch such ?
10243 * lib/arrows.h : prototype calculate_arrow_point()
10245 * lib/font.c (font_get_suckfont) : no need to
10246 special case gdk_draw_string() with GTK_TALKS_UTF8,
10247 cause all the parameter differences are handled above
10249 * lib/libdia.def : updated externals
10251 * lib/makefile.msc : removed string_prerenderer, added render
10253 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
10254 is expected. [Sometimes it's good to read compiler warnings.]
10256 * objects/standard/image.c : simplified by use of g_strconcat()
10258 * plug-ins/python/makefile.msc : updated for Python 2.2
10260 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
10262 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
10263 directionality problem for zero-length line segments.
10265 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
10267 * app/diagram.c (diagram_ungroup_selected)
10268 (diagram_update_menu_sensitivity): Now allows ungrouping of
10269 several groups at once.
10271 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
10273 * lib/render.c, all renderers: Binary incompatibility, change to
10274 expandable renderops structure.
10276 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
10278 * objects/standard/Makefile.am:
10279 * objects/network/Makefile.am:
10280 * objects/UML/Makefile.am:
10281 * objects/ER/Makefile.am:
10282 * objects/FS/Makefile.am:
10283 * objects/flowchart/Makefile.am:
10284 * objects/custom/Makefile.am:
10285 * objects/GRAFCET/Makefile.am:
10286 * objects/chronogram/Makefile.am:
10287 * objects/SADT/Makefile.am:
10288 * plug-ins/cgm/Makefile.am:
10289 * plug-ins/pstricks/Makefile.am:
10290 * plug-ins/hpgl/Makefile.am:
10291 * plug-ins/wpg/Makefile.am:
10292 * plug-ins/svg/Makefile.am:
10293 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
10295 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
10297 * app/render_eps.c: Support for dumping TrueType fonts (taken from
10300 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
10302 * lib/render.c: New abstract super class for renderers.
10304 2002-03-07 Akira TAGOH <tagoh@redhat.com>
10306 * objects/ER/attribute.c (attribute_save): save a font property.
10307 (attribute_load): load a font property, and if can't load it, it's
10310 * objects/ER/entity.c (entity_save): save a font property.
10311 (entity_load): load a font property, and if can't load it, it's
10314 * objects/ER/relationship.c (relationship_save): save a font property.
10315 (relationship_load): load a font property, and if can't load it, it's
10318 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
10320 (umlclass_save): save the font and the font size properties.
10321 (umlclass_load): load the font and the font size properties.
10323 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
10325 * lib/string_prerenderer.[ch] (REMOVED):
10327 * lib/diagramdata.c:
10329 * app/render_eps.c: got rid of the string-specific string
10330 prerenderer, transitioned its functionality towards Lars'
10331 two-phase rendering
10333 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
10335 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
10336 may need to rerun aclocal.
10338 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
10340 * lib/font.c: First attempt at Unicodeness for Freetype.
10342 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10344 * lib/font.c (font_string_width): Fixed font_string_width for
10345 freetype. BB is now almost right.
10347 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
10349 * app/render_eps.h:
10350 * app/paginate_psprint.c (paginate_psprint):
10352 * app/render_eps.c: Support for dumping postscript fonts into
10353 postscript files with freetype. Fairly primitive, but works.
10354 Unicode version may have problems.
10356 2002-02-28 Akira TAGOH <tagoh@redhat.com>
10358 * objects/UML/class_dialog.c (class_read_from_dialog)
10359 (class_fill_in_dialog), (class_create_page): add the font selector and
10360 the font size selector.
10362 * objects/UML/class.c (umlclass_draw): uses each font_height.
10363 (umlclass_calculate_data): ditto.
10364 (fill_in_fontdata): add initial value of new font_height.
10365 (umlclass_copy): add new font_height.
10367 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
10369 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
10371 * lib/font.c: calculate font metrics properly and stop guessing at
10374 2002-02-28 Akira TAGOH <tagoh@redhat.com>
10376 * configure.in: changed gtk_advancement value to dia_talks_utf8.
10377 right now Dia is working with UTF-8 internally. it means Dia probably
10378 support most languages also including the languages which heretofore
10379 didn't work correctly.
10381 2002-02-26 Akira TAGOH <tagoh@redhat.com>
10383 * objects/FS/function.c: add related text properties.
10384 (function_get_props), (function_set_props): add handling attribute.
10386 * objects/FS/flow.c: add related text properties.
10387 (flow_get_props), (flow_set_props): add handling attribute.
10389 * objects/FS/flow-ortho.c: add related text properties.
10390 (orthflow_set_props), (orthflow_get_props): add handling attribute.
10392 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
10394 * objects/ER/entity.c: ditto.
10396 * objects/ER/attribute.c: ditto.
10398 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
10400 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
10402 * autogen.sh: add a check for missing intltoolize.
10404 2002-02-20 Akira TAGOH <tagoh@redhat.com>
10406 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
10407 charcode, it was registered the duplicate item to HashTable. fix.
10409 * app/render_gnomeprint.c (get_width_string): add new function.
10410 (draw_string): fix non-multibyte specific code.
10412 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
10414 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
10416 * lib/font.c: do not try to search paths that do not begin with
10417 '/', like X Font Server addresses.
10419 * objects/UML/message.c (message_draw): free mname when not
10420 message->text but CREATE or DESTROY.
10422 * objects/UML/uml.h:
10423 * objects/UML/uml.c:
10424 * objects/UML/class_dialog.c: added code to handle a stereotype
10425 attribute for operations.
10427 2002-02-19 Akira TAGOH <tagoh@redhat.com>
10429 * lib/Makefile.am: add LIBART_CFLAGS.
10431 2002-02-15 Hans Breuer <hans@breuer.org>
10433 * lib/font.c (font_get_suck_font): the black and white pixel values
10434 need to be taken from a 1 bit colormap rather than the default colormap.
10435 (fixed again, last time was 2000-05-26)
10437 Also handle the case where GTK_TALKS_UTF8 and expects all strings
10438 passed in to be in this encoding.
10440 * lib/libdia.def : export suck_font_free()
10442 * lib/text.c (text_draw) : avoid circular dependency to ../app
10443 at least for the !USE_XIM case, where it is unnecessary.
10445 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
10447 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10449 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10450 * sheets/Circuit.sheet.in: added new shape microphone
10451 * shapes/Circuit/speaker_de.shape: Added a connection point.
10453 2002-02-13 Akira TAGOH <tagoh@redhat.com>
10455 * app/render_libart.c (draw_string): fixed build issue for Win32.
10457 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10460 * configure.in: fixed testing gtk_advancement.
10462 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10464 2002-02-12 Akira TAGOH <tagoh@redhat.com>
10466 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10469 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
10471 * app/group.c (group_copy): Made new object properly initialized
10474 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
10476 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10478 2002-02-10 Akira TAGOH <tagoh@redhat.com>
10480 * lib/text.c (text_draw): fixed XIM transaction.
10482 * app/interface.c (create_display_shell): add signal for
10485 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10487 (set_input_dialog): remove.
10488 (ddisplay_canvas_events): remove XIM transaction. it can't transact
10489 correctly on this function.
10491 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10494 * app/export_png.c: Added checks for interactivity (maybe this
10495 should be a hook after all?).
10497 * app/filedlg.c (file_export_callback): Made export dialog add
10498 suffix when reopened.
10500 * app/export_png.c: Added dialog asking for export size.
10502 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10504 * lib/widgets.c: Fixed font reselection problem and first font
10507 * objects/UML/actor.c (actor_update_data): Changed to have
10508 connection points below text.
10510 2002-02-08 Akira TAGOH <tagoh@redhat.com>
10512 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10515 2002-02-07 Akira TAGOH <tagoh@redhat.com>
10517 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10518 strings which is given.
10519 (suck_font): remove. it's any longer needed.
10521 * app/render_libart.c (set_font): don't get suckfont.
10522 (draw_string): get suckfont only which is needed for now.
10524 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10526 * lib/text.c: Fixes for misunderstood width functions.
10528 2002-02-05 Hans Breuer <hans@breuer.org>
10530 * lib/dia_xml.c : use g_strconcat() instead of
10531 malloc, strcpy, strcat dance
10532 * app/properties.c : same here and plug memory leak
10533 (gtk functions don't eat strings)
10535 * objects/UML/message.c : there is no g_sprintf()
10536 use g_strdup_printf() instead ...
10538 2002-02-05 Akira TAGOH <tagoh@redhat.com>
10540 * lib/message.c (gtk_message_internal): doesn't need to convert to
10543 * app/render_libart.c (draw_string): fixed transaction for UTF-8
10545 (get_text_width): ditto.
10547 * app/Makefile.am (EXTRA_DIST):
10548 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10550 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10551 This function needs ifdef HAVE_FREETYPE because don't use it for
10554 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
10556 * NEWS: updated with the new dependencies.
10558 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10560 * objects/UML/class.h:
10561 * objects/UML/class.c:
10562 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10563 property using a GtkMenu. Options are Undefined, In, Out, In & Out
10565 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
10567 * app/render_libart.c: Slow but working libart freetype renderer,
10570 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10572 * app/render_gdk.c (draw_string): Fixed gc_function bug.
10574 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10576 * lib/font.c (freetype_render_string):
10578 * app/render_gdk.c:
10579 * app/render_gdk.h: Changed freetype_render_string to use
10580 callback. Rendering is broken.
10582 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
10584 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10586 * objects/UML/uml.h:
10587 * objects/UML/uml.c: added UMLInheritanceType and isQuery
10588 (constant) UML Operation attributes. UMLInheritanceType is either
10589 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
10591 * objects/UML/class.h:
10592 * objects/UML/class.c:
10593 * objetcs/UML/class_dialog.c: added code to handle new
10594 UMLOperation attributes via a GtkMenu and a checkbox.
10596 2002-02-03 Akira TAGOH <tagoh@redhat.com>
10598 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
10599 several client doesn't work with previous codes.
10601 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
10603 * lib/font.c (freetype_render_string): Kerning. Very few fonts
10606 2002-02-02 Akira TAGOH <tagoh@redhat.com>
10608 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
10609 when doing the operation like invert the objects after active view is
10610 destroyed. when changes focus, it needs to set active_display.
10612 * app/layer_dialog.c (dia_layer_update_from_layer):
10613 (layer_dialog_edit_layer): need to convert to locale encoding
10614 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10615 (edit_layer_ok_callback):
10616 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10618 * lib/diagramdata.c (new_diagram_data): ditto.
10620 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
10622 * lib/diagramdata.c (new_layer): use utfchar instead of char for
10625 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
10626 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
10627 it's needed for now. also this function needs prototype declaration.
10629 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
10631 * lib/widgets.c: Style now functional on font selector. Some leak
10632 possible, but doesn't show up under stress test.
10634 2002-01-31 Akira TAGOH <tagoh@redhat.com>
10636 * app/plugin-manager.c (clist_select_row): name and description needs to
10637 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10638 (get_plugin_manager): ditto.
10640 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
10642 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
10645 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
10646 when prop->string_data is NULL.
10648 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10651 * lib/widgets.h: New font selector separating font and style.
10652 Style not functional yet.
10654 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
10657 * app/render_gdk.c (draw_string): More freetype support, now
10658 renders text. Still broken is font selection and exporting.
10660 2002-01-30 Akira TAGOH <tagoh@redhat.com>
10662 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
10665 * objects/chronogram/chronoline.c (chronoline_create): ditto.
10667 * objects/UML/usecase.c (usecase_create): ditto.
10669 * objects/UML/state.c (state_create): ditto.
10671 * objects/UML/object.c (objet_create): ditto.
10673 * objects/UML/node.c (node_create): ditto.
10675 * objects/UML/message.c (message_create): ditto.
10677 * objects/UML/component.c (component_create): ditto.
10679 * objects/UML/classicon.c (classicon_create): ditto.
10681 * objects/UML/actor.c (actor_create): ditto.
10683 * objects/SADT/box.c (sadtbox_create): ditto.
10685 * objects/SADT/annotation.c (annotation_create): ditto.
10687 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
10689 * objects/GRAFCET/step.c (STEP_FONT):
10690 * (step_create): ditto.
10692 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
10694 * objects/GRAFCET/action.c (ACTION_FONT):
10695 (action_create): ditto.
10697 * objects/FS/function.c (function_create): ditto.
10699 * objects/FS/flow.c (flow_create):
10701 (flow_apply_defaults): ditto.
10703 * objects/FS/flow-poly.c (flow_create):
10705 (flow_apply_defaults): ditto.
10707 * objects/FS/flow-ortho.c (orthflow_create):
10709 (orthflow_apply_defaults): ditto.
10711 * objects/ER/relationship.c: use utfchar instead of char for structure.
10712 (relationship_create): name needs to convert to UTF-8.
10714 * objects/ER/attribute.c: use utfchar instead of char for structure.
10715 (attribute_create): name needs to convert to UTF-8.
10717 * objects/ER/entity.c: use utfchar instead of char for structure.
10718 (entity_create): name needs to convert to UTF-8.
10720 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
10721 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
10722 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
10723 items. if GTK_TALKS_UTF8 isn't defined.
10725 2002-01-29 Akira TAGOH <tagoh@redhat.com>
10727 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
10728 it was my careless mistake...
10730 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
10731 a font name, because there are strings which isn't shown by "Courier".
10732 We need to consider a way to feel free to choose a font at runtime.
10734 * lib/render_object.c (render_object_load): ditto.
10736 * lib/text.c (data_text): ditto.
10738 * objects/EML/instantiation.c (instantiation_create): ditto.
10740 * objects/EML/interaction-ortho.c (interaction_ortho_create):
10741 (interaction_ortho_load): ditto.
10743 * objects/EML/interaction.c (interaction_create):
10744 (interaction_load): ditto.
10746 * objects/EML/process.c (fill_in_fontdata): ditto.
10748 * objects/ER/attribute.c (attribute_create):
10749 (attribute_load): ditto.
10751 * objects/ER/entity.c (entity_create):
10752 (entity_load): ditto.
10754 * objects/ER/relationship.c (relationship_create):
10755 (relationship_load): ditto.
10757 * objects/UML/association.c (association_create):
10758 (association_load): ditto.
10760 * objects/UML/class.c (fill_in_fontdata): ditto.
10762 * objects/UML/constraint.c (constraint_create): ditto.
10764 * objects/UML/dependency.c (dependency_create): ditto.
10766 * objects/UML/generalization.c (generalization_create): ditto.
10768 * objects/UML/implements.c (implements_create): ditto.
10770 * objects/UML/large_package.c (largepackage_create): ditto.
10772 * objects/UML/note.c (note_create): ditto.
10774 * objects/UML/realizes.c (realizes_create): ditto.
10776 * objects/UML/small_package.c (smallpackage_create): ditto.
10778 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
10780 * objects/custom/custom_object.c (custom_create): ditto.
10782 * objects/network/antenna.c (render_to_store): ditto.
10784 * objects/network/computer.c (render_to_store): ditto.
10786 * objects/network/disc.c (render_to_store): ditto.
10788 * objects/network/flash.c (render_to_store): ditto.
10790 * objects/network/hub.c (render_to_store): ditto.
10792 * objects/network/modem.c (render_to_store): ditto.
10794 * objects/network/modularswitch.c (render_to_store): ditto.
10796 * objects/network/monitor.c (render_to_store): ditto.
10798 * objects/network/printer.c (render_to_store): ditto.
10800 * objects/network/rj45plug.c (render_to_store): ditto.
10802 * objects/network/scead-plug.c (render_to_store): ditto.
10804 * objects/standard/textobj.c (textobj_load): ditto.
10806 * objects/sybase/client.c (render_to_store): ditto.
10808 * objects/sybase/dataserver.c (render_to_store): ditto.
10810 * objects/sybase/ltm.c (render_to_store): ditto.
10812 * objects/sybase/repserver.c (render_to_store): ditto.
10814 * objects/sybase/rsm.c (render_to_store): ditto.
10816 * objects/sybase/stableq.c (render_to_store): ditto.
10818 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
10820 * objects/UML/uml.h (UML_STEREOTYPE_START):
10821 (UML_STEREOTYPE_END): changes default strings.
10823 2002-01-28 Akira TAGOH <tagoh@redhat.com>
10825 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
10826 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
10827 which is given to arguments isn't UTF-8. so don't need to convert it.
10828 if GTK+ handle UTF-8, also don't need to convert it.
10830 (bracketted_to_string): fixed transaction for UTF-8 support.
10831 also start/end bracket is not necessarily 1 character. so that when use
10832 strend(), it doesn't work correctly.
10833 (string_to_stereotype): use utfchar instead of char.
10834 (remove_stereotype_from_string): ditto.
10835 (stereotype_to_string): ditto.
10837 * objects/UML/stereotype.h: ditto.
10839 * objects/UML/message.c: use utfchar instead of char for structure.
10840 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
10842 * objects/UML/small_package.c: use utfchar instead of char for structure.
10844 * objects/UML/realizes.c: ditto.
10846 * objects/UML/object.c: ditto.
10848 * objects/UML/large_package.c: ditto.
10850 * objects/UML/implements.c: ditto.
10852 * objects/UML/generalization.c: ditto.
10854 * objects/UML/dependency.c: ditto.
10856 * objects/UML/constraint.c: ditto.
10858 * objects/UML/component.c: ditto.
10860 * objects/UML/class_dialog.c (attributes_get_current_values):
10861 (attributes_list_new_callback, attributes_fill_in_dialog):
10862 (parameters_set_values, parameters_get_values):
10863 (parameters_get_current_values, parameters_list_new_callback):
10864 (operations_set_values, operations_get_values):
10865 (operations_get_current_values, operations_list_new_callback):
10866 (operations_fill_in_dialog, templates_set_values):
10867 (templates_get_values, templates_get_current_values):
10868 (templates_list_new_callback, templates_fill_in_dialog):
10869 fixed transaction for UTF-8 support.
10871 2002-01-27 Akira TAGOH <tagoh@redhat.com>
10873 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
10875 * objects/UML/class_dialog.c (class_read_from_dialog):
10876 (class_fill_in_dialog):
10877 (attributes_get_values): ditto.
10879 * objects/UML/actor.c (actor_create): ditto.
10881 * objects/UML/class.c (umlclass_calculate_data): ditto.
10883 * objects/UML/association.c (association_apply_properties):
10884 (fill_in_dialog): ditto.
10886 * objects/UML/uml.c (uml_get_attribute_string):
10887 (uml_get_operation_string):
10888 (uml_get_parameter_string):
10889 (uml_get_formalparameter_string): use utfchar instead of char.
10891 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
10892 UML_STEREOTYPE_END.
10894 * objects/UML/class.h: use utfchar instead of char.
10896 * lib/dia_xml.c (data_add_string): ditto.
10898 * lib/text.c (text_insert_char): fixed characters# calculation
10899 when includes multibytes character in strings.
10901 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
10903 Patch from Richard Rowell <rwrowell@bellsouth.net>:
10905 * app/lineprops_area.c:
10908 * lib/widgets.c: added crow foot arrow and cross arrow
10910 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
10912 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
10914 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
10916 * po/update.pl (REMOVED):
10917 * po/update.sh (REMOVED):
10918 * xml-i18n-merge.in.kg (REMOVED):
10919 * xml-i18n-update.in.kg (REMOVED):
10920 * sheets/Makefile.am:
10923 * configure.in: converted from xml-i18n-tools to intltools
10925 This looks like it fixes the build bugs of the snapshot tarballs,
10926 and it supersedes #69611.
10928 2002-01-25 Akira TAGOH <tagoh@redhat.com>
10930 * lib/text.c (text_insert_char): fixed characters# calculation.
10931 it's not string length.
10933 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
10934 is defined, needs to convert a description to UTF-8.
10936 * app/render_gdk.c (get_text_width): fixed transaction for
10937 UTF-8 support. also should uses gdk_text_width_wc() instead
10938 of gdk_text_width().
10940 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
10941 is defined, needs to convert to locale encoding for display.
10942 Also use utfchar instead of char for argument.
10944 2002-01-24 Hans Breuer <hans@breuer.org>
10946 * app/commands.c(edit_paste_callback and more) :
10947 call diagram_modified(ddisp->diagram) to fix #68083
10948 (help_menu_callback) : plug a DIR leak
10950 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
10951 GTK_TALKS_UTF8_WE_DONT
10953 * app/render_gdk.c(get_text_with) : it's a bad idea to use
10954 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
10955 gdk_text_width(). The length value is still questionable ...
10957 * lib/charconv.c : use functions already available in early
10958 GLIB-1.3 days whiches API hasn't changed since, to avoid
10959 version problems with the win32 build
10961 * lib/font.c : finally fix #58045 and #68208
10963 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
10965 2002-01-24 Akira TAGOH <tagoh@redhat.com>
10967 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
10968 no strings, fixed transaction.
10970 * lib/charconv.h: fixed typo.
10972 * app/menus.c: fixed typo.
10974 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
10976 * objects/UML/object.c: attrib's type uses utfchar instead of char.
10978 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
10980 * lib/text.c (text_create_change): use unichar instead of char.
10982 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
10983 use utfchar instead of char.
10985 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
10988 * lib/charconv.c (charconv_utf8_get_char): add new function.
10990 2002-01-23 Akira TAGOH <tagoh@redhat.com>
10992 * lib/text.c (text_delete_forward, text_delete_backward,
10993 text_split_line): fixed transaction for UTF-8 support.
10995 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
10996 strlen[] has string length for UTF-8, so has to use alloclen[].
11000 * .cvsignore: add dia.pot.
11002 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
11004 * configure.in: Added "sk" to ALL_LINGUAS.
11006 2002-01-22 Akira TAGOH <tagoh@redhat.com>
11008 * lib/text.c (text_set_string, new_text, text_copy,
11009 text_get_string_copy, text_join_lines): use utfchar instead of gchar
11012 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
11015 * lib/charconv.c (charconv_utf8_strchr): add new function.
11017 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
11019 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
11021 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
11022 strings to the appropriate encoding.
11024 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
11026 * app/object_ops.c (object_list_align_[hv]): Leak fix.
11028 * lib/Makefile.am (INCLUDES): Added debug flags.
11030 * app/object_ops.c: Fixed ordering problem of align equi-distant &
11033 2002-01-21 Akira TAGOH <tagoh@redhat.com>
11035 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
11036 gdk_string_width().
11038 * objects/GRAFCET/boolequation.c: fixed invalid comment.
11040 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
11041 when defined UNICODE_WORK_IN_PROGRESS.
11043 * lib/dia_xml.c (data_add_string): fixed typo.
11045 2002-01-20 Akira TAGOH <tagoh@redhat.com>
11047 * configure.in: fixed test gtk_advancement.
11049 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
11051 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
11054 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
11056 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
11057 tool tips, preferences, and arbitrarily long ~/.dia/history
11059 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
11060 removed 'Open Recent'; added new separators for recent documents on
11063 * app/interface.[ch] (interface_get_toolbox_shell): new function
11065 * app/diagram.c: added new parameter to recent_file_history_add() call
11067 * app/preferences.[ch]: added new 'Recent documents list size'
11070 2002-01-18 Akira TAGOH <tagoh@redhat.com>
11072 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
11073 if it failed, should be used gdk_font_load ().
11075 * lib/font.c (font_data): added the font entries for CJK.
11077 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
11079 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
11081 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
11083 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
11085 Patch from Martin Cracauer <cracauer@cons.org>:
11087 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
11090 2002-01-01 Hans Breuer <hans@breuer.org>
11092 * app/command.c : optional use GDI printing on windoze
11094 * app/preferences.[hc] : add option 'prefer_psprint' to
11095 select the print engine to use (could be used for Dia/Gnome
11098 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
11099 wmf plug-in with the common win32 print api. Now printing
11100 should work almost as expected from a windows program :-)
11102 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
11103 to .edit_delete to avoid clashes with C++
11105 * app/makefile.msc : updated for GDI printing
11107 * plug-ins/wmf/wmf.cpp : some small modifications to support
11108 GDI printing. Also swap R and B channel in draw_image()
11110 * app/makefile.am : added windows only files to EXTRA_DIST
11112 * objects/uml/class.c(umlclass_set_props) : force recalculation
11113 when applying properties
11115 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
11116 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
11117 many incompatible changes (and would force a gtk update)
11119 * objects/makefile.msc : don't build C-Objects which are
11120 already available as 'pure shape'
11122 * plug-ins/makefile.msc : remove diaimport from build. It was
11123 only available via mailing-list and is broken since the
11127 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
11129 * app/preferences.[hc] : tweaked preferences.c to make
11130 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
11131 added some more DiagramTree prefererences and their own
11134 * app/diagram_tree.[hc] : allow to sort by object type or name
11135 and hide by type ...
11136 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
11137 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
11139 * app/diagram_tree_window.c : handle hidden types and window
11142 2001-12-20 Hans Breuer <hans@breuer.org>
11144 * plug-ins/python/Makefile.am : patch from Peter Moulder
11145 <pmoulder@csse.monash.edu.au> to make the python plug-in
11146 compile on *nix too.
11148 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
11150 Patch from Alan <horkana@tcd.ie>:
11152 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
11154 2001-11-20 Hans Breuer <hans@breuer.org>
11156 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
11158 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
11160 * app/diagram_tree.[hc] : Added new functions and types for
11161 sorting diagram and objects, and attaching the popup menus.
11163 * app/preferences.h: Added more diagram tree preferences, using a
11164 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
11165 height and width of the diagram tree window and the default sort
11166 orders for diagrams and objects.
11168 * app/preferences.c (prefs_data): Added new entries for the new
11169 diagram tree preferences.
11171 * app/preferences.c (prefs_tabs): New tab for diagram tree
11174 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
11175 * app/diagram_tree_window.c (diagram_tree_window_new):
11176 * app/interface.c (create_tree_window): The diagram tree window is
11177 initialised using the DiagramTreeConfig part of prefs.
11180 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
11182 * app/diagram_tree_menu.[hc]: New files. Functions to create the
11183 diagram tree popup menus.
11185 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
11186 the diagram tree popup menus.
11188 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
11191 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
11193 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
11194 double-clicking a diagram tree node raises the diagram window
11195 to the foreground (and, if a object node was clicked, selects the
11196 object in the diagram).
11198 * app/diagram_tree.c (select_tree_widget): selecting an object
11199 node with single click simply updates it (no raise).
11201 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
11202 These changes make the diagram tree lazy: it is not created unless
11203 the diagram tree window is requested.
11205 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
11206 function for creating the tree window.
11208 * app/interface.c (create_tree_window): call
11209 create_diagram_tree_window() instead of diagram_window().
11211 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
11212 (diagram_tree_update, diagram_tree_update_name)
11213 (diagram_tree_add_object, diagram_tree_add_objects)
11214 (diagram_tree_remove_object, diagram_tree_remove_objects)
11215 (diagram_tree_update_object): accept a NULL tree as a nominal
11216 argument (and do nothing in this case!), so that the diagram tree
11217 is not initialised if not used.
11219 * app/diagram_tree_window.c (diagram_tree): do not create the
11220 diagram tree until diagram_window() or diagtree_show_callback()
11223 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
11224 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
11226 * app/diagram_tree_window.[hc] : (new files) implementation of
11227 the diagram tree window, a container for a diagram tree. [Removed
11228 the horizontal scroll bar glitch by disableing it]
11230 * app/diagram_tree.[hc] : (new files) implementation of the
11231 diagram tree widget. [Don't rely on the layers GPtrArray to be
11232 NULL terminated, but use its ->len field]
11234 * app/Makefile.am (dia_core_files): added new files
11235 diagram_tree.[hc] and diagram_tree_window.[hc]
11237 * app/interface.[hc] : (create_tree_window): this function
11238 creates the new diagram tree window widget
11240 * app/undo.c (delete_objects_apply) (delete_objects_revert)
11241 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
11242 (ungroup_objects_apply) (ungroup_objects_revert):
11243 every time that an undoable command modifies a diagram
11244 adding/removing/(un)grouping objects, a diagram_tree_something() is
11245 invoked to keep the diagram tree window in sync
11247 * app/properties.c (properties_apply): call to
11248 diagram_object_modified(), which updates the diagram tree window
11249 when the properties of an object are modified
11251 * app/preferences.[hc] : new "show_diagram_tree" configuration option
11252 (whether the diagram tree window should be shown on dia startup)
11254 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
11256 * app/diagram.h (diagram_object_modified): callback notifying of a
11257 diagram object modification
11259 * app/diagram.c (diagram_load_into): added call to
11260 diagram_tree_add() to add newly loaded diagrams to the diagram
11262 (diagram_destroy): call to diagram_tree_remove() to remove a
11263 destroyed diagram from the diagram tree window
11264 (diagram_add_object): call to diagram_tree_add_object() to add an
11265 object to the diagram tree window
11266 (diagram_add_object_list): as above, but with an object list
11267 (diagram_selected_break_external): deletion of objects from the
11268 diagram is detected here, and diagram_tree_remove_object() is
11269 invoked to remove the object from the diagram tree window (it
11270 would be nice to have a diagram_remove_object() in the Diagram
11272 (diagram_set_filename): update the diagram tree window when a
11273 diagram's filename changes
11275 * app/commands.c (file_new_callback): added call to
11276 diagram_tree_add() to add newly created diagrams to the diagram
11279 * app/app_procs.c (app_init): added call to create_tree_window()
11281 * app/makefile.msc : updated
11283 2001-10-28 Hans Breuer <hans@breuer.org>
11285 * app/preferences.h (DiaPreferences):
11286 * app/preferences.c (prefs_data): new "show_diagram_tree"
11287 configuration option (whether the diagram tree window should be
11288 shown on dia startup)
11290 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
11291 entry (both for GNOME and gtk)
11293 * app/diagram.h (diagram_object_modified): callback notifying of a
11294 diagram object modification
11296 * app/diagram.c (diagram_load_into): added call to
11297 diagram_tree_add() to add newly loaded diagrams to the diagram
11299 (diagram_destroy): call to diagram_tree_remove() to remove a
11300 destroyed diagram from the diagram tree window
11301 (diagram_add_object): call to diagram_tree_add_object() to add an
11302 object to the diagram tree window
11303 (diagram_add_object_list): as above, but with an object list
11304 (diagram_selected_break_external): deletion of objects from the
11305 diagram is detected here, and diagram_tree_remove_object() is
11306 invoked to remove the object from the diagram tree window (it
11307 would be nice to have a diagram_remove_object() in the Diagram
11309 (diagram_set_filename): update the diagram tree window when a
11310 diagram's filename changes
11312 * app/commands.c (file_new_callback): added call to
11313 diagram_tree_add() to add newly created diagrams to the diagram
11316 * app/app_procs.c (app_init): added call to create_tree_window()
11318 2001-10-28 Hans Breuer <hans@breuer.org>
11320 * plug-ins/python/pydia-property.c : apparently I missed
11321 to commit this last time. Now it has some more SetAttr
11322 support (apply from property)
11324 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
11326 * plug-ins/python/pydia-text.[ch] : new files
11328 2001-10-14 Hans Breuer <hans@breuer.org>
11330 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
11331 strings. Use g_strdup() for these.
11333 libxml2 does not produce 'any extra indentation when saving a tree'
11334 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
11335 libxml(1). To get human readable XML some extra tweaking is required.
11336 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
11337 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
11338 * app/preferences.[ch] : initialize 'pretty_formated_xml'
11340 * lib/libdia.def : updated externals
11342 * lib/properties.h : add prototype for prop_list_from_single ()
11344 * plug-ins/makefile.msc : build metapost plug-in
11346 * plug-ins/metapost/render_metapost.c : msvc does not like
11347 switch labels without operation 'default: }'. Added a noop.
11349 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
11350 * plug-ins/python/diamodule.c : added PyDiaText
11351 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
11352 Although the python plug-in does not use libxml at all, the
11353 headers are required to use the lib/prop*.h headers
11355 * plug-ins/python/pydia-diagramdata.c : added wrappers for
11356 update_extents and get_sorted_selected (should I duplicate
11357 more functions from PyDiaDiagram or should they be moved?)
11359 * plug-ins/python/pydia-properties.c : allow to set (some) properties
11360 through the dictionary api
11361 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
11362 * plug-ins/python/pydia-property.c : implement it (currently only
11363 string properties can be set)
11365 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
11366 Quoting myself: 'Still not convinced that this is better than an
11367 integral property->type and some casting ...
11368 It is trading a straightforward 40 lines switch statement to
11369 this nice 'type safe' function mapping (about 125 lines)'
11370 (But now it works again, better than changing the News file :)
11372 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
11374 patch from <robert.young@dsto.defence.gov.au>:
11375 * objects/UML/component.c: remember to set font in UML component
11376 object (fixes #62132)
11378 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
11380 * plug-ins/metapost/metapost.c:
11381 * plug-ins/metapost/Makefile.am:
11382 * plug-ins/metapost/render_metapost.c:
11383 * plug-ins/metapost/render_metapost.h:
11384 Metapost renderer from Chris Sperandio
11386 2001-09-14 Hans Breuer <hans@breuer.org>
11388 * app/render_gdk.c : reflect the fact, that GTK already talks
11389 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
11392 * app/render_libart.c : trying to fix #58045 but it appears
11393 to be an Gdk/win32, too.
11395 * lib/charconv.c : handle utf8 conversion with the help of
11396 glib-1.3 even in the !HAVE_UNICODE case.
11398 * lib/dia_xml.c : reduce complaing about missing encoding, by
11399 detecting if the default (utf8) would break the file.
11401 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
11403 * lib/charconv.c: (get_local_charset): at least please try to not
11404 silently change the logic, while avoiding crashes.
11406 * lib/font.c: (suck_font): put a #error, we have a nasty something
11407 to fix there before we switch to Gtk 2.0.
11409 2001-09-09 Hans Breuer <hans@breuer.org>
11411 * **/makefile.mingw : Approach to compile Dia with mingw.
11412 Compiling mostly works but running does not (yet) ...
11415 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
11416 Apparently mingw needs it too.
11417 - enable 'normalization' of a null verctor. Otherwise the beziergon
11418 bounding box calculation would be broken at least with msvc. What's
11419 the mathematical correct result of 0.0/0.0 ?
11421 * lib/dia_xml.c : isinf() for mingw too.
11423 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
11426 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
11427 Please don't do it.
11429 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11431 * lib/libdia.def : updated externals. Apparently mingw needs
11432 them to produce the right mangling.
11434 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11437 2001-09-08 Wang Jian <lark@linux.net.cn>
11439 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11441 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
11443 * lib/dia_xml_libxml.h:
11444 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11445 libxml1's code, to rework the output file before it gets committed
11446 to disk. This is rubbish, and will be removed when libxml2
11447 switches from discouraged to mandatory.
11448 All in all, this fixes #60152.
11451 * lib/charconv.c: (charconv_unichar_to_utf8):
11452 made the type of the input parameter explicitly an unsigned long.
11454 * configure.in: Added a check for libz (we must now include it
11455 explicitly, for xmlDiaSaveFile).
11457 * app/load_save.c: (diagram_data_save):
11458 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11459 (dia_pluginrc_write):
11460 * plug-ins/shape/shape-export.c: (new_shape_renderer),
11461 (end_render), (draw_string):
11462 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11465 Made sure we always write UTF-8 XML files, and through
11468 * NEWS: documented that fact.
11470 2001-09-07 James Henstridge <james@daa.com.au>
11472 * configure.in (found_libxml): refactor the check for libxml a
11473 little so that it handles finding both libxml1 and 2 better.
11475 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
11477 * app/app_procs.c: removed a spurious } which caused a compilation
11478 error in the (!HAVE_GNOME && HAVE_POPT_H) case
11480 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11481 don't know what ANSI X3.4-1968 is. I didn't know until this day,
11482 but it's just plain old ASCII. Added a check to shield the poor
11485 Patches from <robert.young@dsto.defence.gov.au>:
11487 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11488 width and height of text before calculating bounds. Fixes #59928
11490 * app/preferences.c: Moved grid related items into Grid Tab.
11492 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
11494 * app/interface.c: (create_zoom_widget): connected one more signal
11495 to the Zoom selector combo's list. Fixes #59879.
11497 * app/app_procs.[ch]: (app_init) (do_convert)
11498 (build_output_file_name): brought back into the main executable
11499 the rare useful bits of the ill-fated diaconv. This means we have
11500 one new feature : --export-to-format (-t), which should make
11501 writing conversion scripts easier, and a crude implementation of
11502 -t and -e for the poptless argument parsing, which means the Win32
11503 port should be able to take advantage of it (that should make
11504 resolving #58197 possible).
11506 * app/diaconv.c: kept the poor duck compiling (but that's about
11509 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11510 I've got it right).
11512 * NEWS: updated about the new feature above, and documented the
11513 "missing encoding specification" complaint.
11515 2001-09-01 Abel Cheung <maddog@linux.org.hk>
11517 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11519 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
11521 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11524 2001-09-01 James Henstridge <james@daa.com.au>
11526 * */Makefile.am: various changes to include missing files, and fix
11527 sheets dir to handle building with builddir != srcdir.
11529 * autogen.sh: unconditionally pass the --enable-maintainer-mode
11530 and --enable-db2html flags so that builds from CVS work correctly.
11532 * configure.in: increment version number. Also add an
11533 --enable-db2html flag. Without the flag, db2html won't be run (if
11534 the flag is passed and db2html is not present, do nothing).
11536 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
11538 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11539 even compiled. It's really too bad there is no lint tool easily
11540 available (or a more cautious, pedandic, paranoid and verbose
11541 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11543 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11546 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11547 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11549 * app/menu.c: added ellipsis(...) to diagram properties menu item.
11550 * app/dia-props.c: diagram properties dialog contents did not
11551 represent current diagram settings.
11552 * app/dia-props.[ch]:
11553 * app/display.c: diagram properties contents now follows currently
11555 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11557 * AUTHORS: added Robert Young.
11559 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11561 * app/modify_tool.c: (modify_button_release): Patch from
11562 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11563 #59090: if selection dragging was released outside of the window,
11564 artifacts of the selection box remained.
11566 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
11568 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11570 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
11573 * sheets/Makefile.am: prepared the terrain for the Version of
11574 xml-i18n-tools Which Comes After 0.9 (and which will feature at
11575 last a sane behaviour with XML files). Some reasonible delay
11576 before enforcing that version *will* be given.
11578 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11580 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11581 becomes a nonexistent symbol.
11583 2001-08-18 Hans Breuer <hans@breuer.org>
11585 * app/app_procs.c : made it compile without ENABLE_NLS
11587 * app/diap_callbacks.c : strcmp isn't guaranteed to work
11590 * app/load_save.c :
11592 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
11594 xmlGetProp, ... -> xmlFree
11595 malloc, strdup -> free
11596 g_new, g_malloc, g_strdup - > g_free
11598 * app/win32print.c : some more error checking, still not
11601 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
11603 * lib/dia_xml.c : msvc still has no unistd.h
11606 * lib/sheets.c : temporary resolved libxml include brokeness
11608 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
11609 changes. Compiles again, but doesn't do anything useful anymore.
11610 (see THE_PROP_TYPE_IS_INTEGRAL)
11612 * **/makefile.msc : updated to use LIBXML2
11614 * lib/libdia.def : reflect api changes
11616 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
11618 * config.h.win32: added defines telling that gtk speaks UTF8.
11619 Hans, I believe this reflects what GTK on Win32 does.
11621 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
11623 * lib/prop_inttypes.c:
11625 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
11628 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
11629 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
11630 search for plug-ins is done.
11631 * app/Makefile.am: made app/run_dia.sh use the // capability. No
11632 need to update this anymore if we get a new plug-in library (or
11635 * lib/dia_xml.c: #include <unistd.h> was missing.
11637 * lib/properties.h:
11638 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
11639 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
11642 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
11644 * sheets/civil.sheet: removed duplicate "Danish" entries.
11649 * sheets/Makefile.am:
11651 * Makefile.am: applied the xml-i18n-tools README's instructions.
11653 * po/(da de fr hu nl nn no sl).po: merged the translations from
11654 the sheet files into the .po files. I hope I haven't mixed
11656 * sheets/*.sheet (REMOVED):
11657 * sheets/*.sheet.in (NEW): moved the sheet files sans
11658 translations into .sheet.in files.
11660 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
11661 because we don't yet want to force all translators to work using
11662 UTF-8 editors. We'll want to do that sometime (sooner rather than
11663 later). Okay, I sing a slightly different tune in po/ChangeLog...
11665 * dia.desktop (REMOVED):
11666 * dia.desktop.in (NEW): used also the x18t infrastructure for
11669 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
11670 "official" version of x18t with support for .sheet files is available.
11671 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
11672 "official" version of x18t which doesn't corrupt UTF-8 data in XML
11675 ** yes, we are now using xml-i18n-tools to manage the sheet
11676 translations. For the Win32 build, Nemo stores snapshots of
11677 translated strings next to the CVS snapshots. **
11679 * sheets/checktrans.py: suddenly, some sheets have lots of
11680 translations (objects which existed before sheets, mostly).
11681 Adapted the formatting.
11683 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
11685 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
11686 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
11687 <robert.young@dsto.defence.gov.au>, to fix #59090.
11689 * app/display.c: (ddisplay_scroll): While at it, added some
11690 margin, so that autoscrolling can happen within a margin outside
11691 the diagram's extents.
11695 * app/disp_callbacks.c: Robert "forced" me to go when I usually
11696 don't, namely the app/ directory. So while I was there, I
11697 scratched a long-time itch. If no object has focus, pressing the
11698 space bar will select back the tool which was selected before the
11699 current one (I find this especially useful with "reset after create" !)
11701 * lib/proplist.c: (prop_list_from_single): Renamed
11702 prop_list_singleton() to avoid confusion with the Singleton
11703 pattern (which it definitely is not).
11705 * lib/propobject.c: (object_prop_by_name_type),
11706 (object_prop_by_name): The "flags" parameter was not necessary.
11707 These don't return synthetic properties, but properties built from
11708 a real property description list; therefore, we don't call
11709 make_new_prop() but use the existing property descriptor, which
11710 has perfectly valid (and meaningful) flags.
11712 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
11713 new predicates better reflect the reason why properties exist when
11714 they're created by make_new_prop() or object_prop_by_name().
11716 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11717 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
11720 * lib/properties.h: reflects all the above changes.
11722 * objects/SADT/arrow.c:
11723 * objects/SADT/annotation.c:
11724 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
11727 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11729 * lib/properties.h:
11730 * lib/proplist.c: (prop_list_singleton):
11731 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11732 Added these, to simplify interactions of plug-ins with the StdProp
11737 * lib/dia_xml_libxml.h (NEW):
11742 * objects/custom/shape_info.c: A few prototypes were causing
11743 #include hell, because we generally attempt to not pull the whole
11744 libxml header set when we include dia_xml.h. Moved those
11745 prototypes away for the rare cases they're necessary.
11747 2001-08-15 Hans Breuer <hans@breuer.org>
11749 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
11752 * lib/makefile.msc : updated
11754 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
11755 use G_GNUC_FUNCTION instead.
11757 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
11759 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
11760 msvc instead of cleaning missing includes
11762 * plug-ins/wmf/wmf.cpp :
11763 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
11765 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11772 * objects/custom/shape_info.c:
11773 * plug-ins/shape/shape-export.c:
11774 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
11775 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
11776 removed xmlKeepBlanksDefault(0) in favour for proper
11777 xmlIsBlankNode() testing. Lots of other fixups to use the
11778 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
11779 make libxml1 output correct files.
11781 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
11782 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
11783 packages). If both devel packages are found, the build will stop
11784 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
11786 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
11787 allocate the first handle :-)
11789 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
11790 a cast and a sizeof.</gratuitous>
11792 * objects/custom/custom_object.c: (custom_copy): don't call
11793 text_get_attrbutes if the shape has no text...
11794 (custom_update_data): The info->resize_with_text code was a bit
11795 directive; basically, the shape's bounding box was forced to be
11796 proportional to the text's bounding box.... This fixes #57187.
11798 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
11799 default for info->aspect_ratio; unobfuscated a line about
11800 info->resize_with_text;
11802 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11804 * lib/properties.h: added comments next to the PROP_TYPEs to tell
11805 which C Property subclass to use.
11807 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
11808 cast-ridden form of setting properties in a list, in favour for
11809 the "local pointers" form. I'll take any better offer...
11811 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
11813 * lib/font.c: fprintf(...) --> fprintf(format...)
11815 * configure.in: added a disabled versioned test for glib.
11816 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
11817 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
11818 g_critical() with a simple g_error(). Proper fix is to implement
11821 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
11824 * lib/properties.h:
11825 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
11826 * lib/proplist.c: (find_prop_by_name_and_type):
11827 * lib/prop_basic.c: (make_new_prop), (initialize_property):
11828 * lib/propoffsets.c: (do_set_props_from_offsets),
11829 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
11830 Added a type_quark member to PropDescription, Property and
11831 PropOffset. Used it to implement a safety in
11832 do_[sg]et_props_from_offsets().
11834 * objects/flowchart/diamond.c: the diamond's text was not saved,
11835 and thus not even copied (c&p).
11836 * objects/standard/textobj.c: ditto.
11838 Most of the above changes thanks to Robert Young's testing. Thanks !
11840 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
11842 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
11845 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
11847 * lib/proplist.c (prop_list_from_descs): added a call to
11848 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
11849 too embarrassing to tell.
11851 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
11852 while loop to a for loop, for symmetry with
11853 prop_offset_list_calculate_quarks().
11855 * lib/geometry.h: new inline function, rectangle_equals.
11857 * lib/diagramdata.[ch]: refactored a bit the diagram extents
11858 computation logic, and changed it to always be the union of the
11859 visible layers' extents. This should close #58882 (Debian
11860 #107167), and fixes #55498.
11862 * app/display.c: made the initial visible box more coherent with
11863 the diagram being loaded's extents.
11865 * app/prop_attr.c: don't set the font (from offset) if font_data
11866 is NULL. Two brainos in colorprop_load() and fontprop_load().
11868 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
11870 * lib/properties.[ch]: split in a lot of pieces:
11872 * lib/prop_*.[ch] (NEW): all property types are now first-class
11873 objects, inheriting from the original abstract Property type.
11874 * lib/propdesc.c (NEW): property description handling routines
11875 * lib/propoffsets.c (NEW): property offset handling routines
11876 * lib/proplist.c (NEW): property list handling routines
11877 * lib/propobject.c (NEW): property list <-> object routines
11878 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
11880 * lib/propinternals.h: prototypes for stuff not usually needed by
11881 the outside of StdProps.
11882 * lib/Makefile.am: a lot of new files have been added...
11884 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
11885 BOTH INTERFACES AND RUN-TIME STABILITY.
11887 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
11889 * lib/object.h: removed the incestuous relationship with
11890 properties.h' contents. Now a Property list is a GPtrArray -->
11891 object interface change !
11893 * app/app_procs.c/app_init(): removed a disabled call to a
11894 non-existent routine. Added a call to stdprops_init().
11896 * objects/Makefile.am: disabled the construction of EML. I'm not
11897 touching these until a certain issue is solved (or this module
11900 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
11901 objects to the interface changes.
11903 * app/disp_callbacks.c: killed a warning.
11904 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
11907 The macros PROP_VALUE_* have disappeared. Adapted to using the new
11910 * plug-ins/dxf/dxf-import.c:
11911 * plug-ins/xfig/xfig-import.c:
11912 PROP_VALUE_* macros have been removed. Converted to the new API.
11914 * plug-ins/python/**/*: I gave up converting this; I can't
11915 compile --with-python (problems with object.h defined both by us
11916 and by Python). I'll gladly help whomever cares to fix it !
11917 (or, fix it myself if someone tells me how to compile it).
11919 * configure.in: added the UNICODE-related progress defines.
11922 * lib/geometry.h: On Solaris and perhaps other systems, finite()
11923 is defined in ieeefp.h rather than in math.h. Patch from Andrew
11924 Halper <ashalper@acm.org> with further modifications, isinf() is
11925 provided by -lsunmath (sunmath.h).
11927 * lib/font.c: conditionally disabled Lars' debugging messages.
11928 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
11930 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
11932 * lib/bezier_conn.h:
11933 * objects/standard/bezier.c (bezierline_create):
11934 * lib/bezier_conn.c (bezierconn_init):
11935 Preparations for use of userdata for bezier lines.
11937 * objects/standard/polygon.c:
11938 * objects/standard/create.h:
11941 * plug-ins/xfig/xfig-import.c:
11942 Use of user_data for polygon as well, including adding
11943 polyshape_set_points. Include file for non-interactive
11944 creation of standard objects, objects/standard/create.h
11946 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
11948 * app/render_gdk.c:
11949 * app/render_gdk.h:
11953 More preliminary freetype support. Not at all functional, crashes
11958 * objects/standard/polyline.c:
11959 Support for creating polyline objects with more than two points.
11960 This includes an extra function and a prototype change in the
11961 poly_conn lib object.
11963 * lib/object.c (object_copy): Fixed memory leak of handles and
11966 2001-08-08 Abel Cheung <maddog@linux.org.hk>
11968 * dia.desktop: added traditional Chinese strings
11970 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
11972 * NEWS: updated to reflect build-time dependencies.
11974 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
11975 around obj->ops->describe_props(obj). Quarks are none of an
11976 object's business in the general case...
11977 * lib/text.c: Added an apply_textattr_properties() function to
11978 factor out some common code related to applying a dialog's text
11979 attribute properties to a (Text *) which wasn't edited there.
11980 Ditto for textstr, for the string part of an objet.
11982 * objects/GRAFCET/action.c:
11983 * objects/SADT/annotation.c:
11984 * objects/SADT/box.c: used apply_textattr_properties().
11986 * objects/UML/actor.c:
11987 * objects/UML/branch.c:
11988 * objects/UML/component.c:
11989 * objects/UML/constraint.c:
11990 * objects/UML/small_package.c:
11991 * objects/UML/state.c:
11992 * objects/UML/usecase.c:
11993 * objects/UML/large_package.c:
11994 * objects/UML/note.c:
11995 * objects/UML/node.c:
11996 * objects/UML/message.c:
11997 * objects/UML/classicon.c:
11998 * objects/UML/object.c:
11999 * objects/UML/realizes.c:
12000 * objects/UML/dependency.c:
12001 * objects/UML/implements.c:
12002 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
12003 (most objects were already using StdProps to some extent ; this
12004 systematises usage and removes some dead wood).
12006 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
12007 * objects/UML/uml.[ch]: audited for UTF-8.
12009 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
12010 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
12011 private (ISO-8859-1) definition.
12013 * lib/charconv.c: Added a warning if we didn't run
12014 nl_langinfo(CODESET) but rely instead on a hardcoded default.
12016 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
12019 * app/disp_callbacks.c: added a way for an object to cause an
12020 already realised menu to be destroyed (for instance if it changes
12023 * objects/custom/custom_object.c: used the above to fix #55073.
12025 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
12027 * configure.in: Remove 2.50 prereq.
12029 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
12031 * po-checktrans.py: under some circumstances, there was one column
12032 more than what was supposed to be, thus breaking the formatting.
12034 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
12036 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
12038 * NEWS: updated with new stuff since 0.88
12040 * shapes/network/antenna.shape: the text was misplaced ; fixed.
12042 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
12043 firewall router (upon request from Cyril Lacoux
12044 <clacoux@easter-eggs.com>)
12046 * configure.in (didn't rename to configure.ac): autoconf 2.50
12047 constructs were used ; added an AC_PREREQ call to guard against
12050 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
12052 * lib/properties.c: minor clean-ups with the event delivery code.
12054 * EML/instantiation.c: brought this object back from stone and ice
12057 * app/diaconv.c(NEW): added a command-line conversion tool. Still
12058 lacks a man page and correctness. In fact, it doesn't work. Please
12059 see #58196 if you want to finish it.
12061 * lib/message.[ch]: redefined things a little so that a different
12062 message_internal routine could be passed.
12063 applications can use that to fit themselves to the display model.
12065 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
12067 * objects/SADT/box.c:
12068 * objects/GRAFCET/action.c: spelling in property descriptors (name
12070 * objects/SADT/annotation.c: ditto, plus a temporary test of the
12071 event delivery code (try to click on the "click me !" button !).
12074 * lib/properties.[ch]: improved (fixed) support for group event
12075 handlers. Fixed various things from yesterday's code to make it
12076 not too obviously crash.
12078 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
12080 * app/group.c: added delivery of events to the first member of the
12081 group which is able to process it.
12083 * lib/properties.c(prop_desc_lists_intersection): properties
12084 don't match if they don't have identical event handler.
12085 * lib/properties.h: simplified the PropEventHandler signature.
12087 Event delivery code is still untested so far, but should be
12090 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
12092 * lib/properties.[ch]: Added (untested !) property event handler
12093 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
12094 generating such events. This stuff compiles, and should lurk
12095 around silently as long as you don't declare property descriptors
12096 with events (AFAICT).
12097 In object_create_props_dialog() and friends:
12098 attached a single structure with lots of data instead of lots of
12099 little attachments of data to the dialog widget.
12101 * lib/object.h: fixed mild typedef breakage introduced by the above.
12103 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
12105 * lots of files: Changed Font to DiaFont
12106 * */Makefile.am: Added FREETYPE_LIBS
12107 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
12109 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
12111 * configure.in: Added "nn" to ALL_LINGUAS.
12113 2001-07-09 Alex Larsson <alexl@redhat.com>
12115 * app/disp_callbacks.c:
12116 Add gdk_im_ready() calls to XIM code.
12118 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
12120 * lib/properties.[ch]: splitted prop_get_widget() into
12121 prop_get_widget() (gives a widget but doesn't fill it) and
12122 prop_reset_widget() (fills an existing widget with a property's value).
12124 * lib/widgets.[ch]: const enforcement police work.
12126 * shapes/network/antenna.shape: added a connection point at top,
12127 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
12129 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
12131 * intl/*: tested with gettext-0.10.38
12132 * configure.in: moved a macro call around (AM_PROG_CC) to keep
12133 some of autogen.sh from complaining.
12134 * INSTALL: added a warning against gettext older than at least 0.10.36
12136 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
12138 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
12139 AM_ICONV (both provided by gettext)
12141 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
12143 * lib/charconv.c: corrected the degraded mode for when
12144 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
12146 * objects/chronoline/chronoline_events.c: UTF8 compliance.
12148 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
12150 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
12151 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
12152 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
12155 * objects/chronogram/chronoline.c:
12156 * objects/chronogram/chronoref.c: took advantage of the above to
12157 make nicer looking dialogs.
12159 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
12160 from libunicode's internals).
12161 * lib/message.c: convert strings to local encoding prior to
12162 display (UNICODE_WORK_IN_PROGRESS)
12163 * lib/properties.[ch]: convert strings to local encoding prior to
12164 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
12165 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
12166 * lib/stringprerenderer.[ch]: ditto
12168 (lib/text.c has been audited for UTF8, but the size of the changes
12169 make them inappropriate for commit before 0.89)
12171 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
12173 * objects/boolequation.h (<save|load>_boolequation): made the
12174 prototypes for match the .c file.
12176 * samples/grafcet.dia: minor non-conformance with IEC-848
12177 fixed (in the transition from step 100 to step 101).
12179 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
12180 disallow editing of properties if the object is part of a group.
12182 * objects/chronogram/chronoline.c:
12183 * objects/SADT/annotation.c:
12184 * objects/SADT/box.c:
12185 * objects/GRAFCET/step.c:
12186 * objects/GRAFCET/transition.c:
12187 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
12189 2001-06-12 Hans Breuer <hans@breuer.org>
12191 * lib/libdia.def : removed lazyprop exports
12192 * lib/makefile.msc : removed lazyprop.obj
12194 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
12195 and avoid crashes by always creating a custom->text,
12196 when (custom->info->has_text)
12198 * objects/makefile.msc : removed sybase from build
12200 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
12201 ObjectNode is a pointer already, which is what we want
12202 instead of a pointer pointer.
12204 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
12205 and implemented working export for images
12207 * shapes/network/zip-disk.shape : added connection points
12209 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
12211 * objects/SADT/box.c: removed lazyprops for standard props.
12212 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
12213 * objects/chronograms/chronoref.c: ditto
12217 * lib/connpoint_line.c:
12218 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
12219 * lib/properties.[ch]: new property types:
12220 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
12221 - PROP_TYPE_MULTISTRING: same as string, but renders as a
12222 multi-line entry box.
12223 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
12224 in a tabbed-notebook style (this is a bit complicated to use;
12225 see objects/chronograms/chronoline.c for an example).
12227 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
12229 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
12230 * objects/GRAFCET/step.c: ditto.
12231 * objects/GRAFCET/vector.c: ditto.
12232 * objects/SADT/annotation.c: ditto.
12233 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
12235 * lib/properties.[ch]: two more non-visible types
12236 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
12238 * lib/neworthconn.[ch]:
12239 * lib/orthconn.[ch]: added support for manipulation through
12240 standard properties.
12242 * configure.in: removed -fomit-frame-pointer, this seems to
12243 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
12246 * charconv.[ch]: more functions from unicode.h.
12247 get_local_charset() wasn't working properly, fixed now.
12248 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
12251 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
12252 * lib/lazyprops.[ch]: put a big fat warning in.
12254 * app/render_eps.c: one line mysteriously went away, causing a
12255 variable to be used uninitialised....
12257 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
12259 * app/app_procs.c: commented out the call to
12260 bind_textdomain_codeset(): it's premature.
12262 * lib/connpoint_line.c: a NULL point can be given to
12263 connpointline_adjust_count(), in case there's not really a clicked
12266 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
12267 #include order troubles. #included by lib/text.h, so there is no
12268 impact outside lib/.
12269 * lib/properties.[ch]: added support for CONNPOINT_LINE and
12270 (nonvisible) TEXT properties.
12272 * objects/GRAFCET/action.c:
12273 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
12276 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
12277 standard properties code). Grafted a dynamic number of connection
12278 points (heavily inspired from what Vergent does). This is the real
12281 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
12283 * lib/fonts.c: some hardening (mostly g_assert())
12284 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
12286 * app/app_procs.c (app_init): added a call to
12287 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
12288 (UNICODE_WORK_IN_PROGRESS).
12290 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
12292 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
12294 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
12295 (fixes #55863) : some clean-ups in the handling of connection
12296 points. Now the total number of connection points is just a
12297 #define (the proper solution is to retrofit the GRAFCET Vergent's
12298 dynamic behaviour wrt connection points).
12300 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
12302 * app/app_procs.c (app_init): added a call to unicode_init() (only
12303 if HAVE_UNICODE, of course).
12305 * lib/charconv.c: simplified the code which detects the local
12306 charset. No need to use <langinfo.h>, libunicode already takes the
12307 burden of figuring that out. Also, if local charset is utf8, no
12308 conversion will take place.
12309 Exposed a way to get the current charset (similar to
12310 unicode_get_charset() but actually working, hopefully).
12312 * lib/charconv.h: Added a partial non-UTF8 implementation of
12313 unicode.h if !HAVE_UNICODE (actually, all the time for the
12314 moment). The UTF8 implementation is just macros on libunicode (use
12315 the functions prefixed by uni_, as defined by charconv.h, not
12316 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
12317 From now on, all strings which don't *need* to be ASCII should be
12318 utfchar *, not gchar *. Just include charconv.h, let it sort out
12319 the details (such as: "is libunicode available and enabled?")
12321 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
12322 "API" instead of directly libunicode. Removed the now unnecessary
12323 speculative clustering of characters in encoding pages.
12325 * app/render_eps.c: made the local8->utf8 conversions dependent of
12326 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
12327 boundary will be when this WIP is done).
12329 * lib/dia_xml.c (data_point): fixed a format string typo.
12331 * po/POTFILES.in: added all C files from lib/
12333 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
12335 * app/disp_callbacks.c: make sure the objects' connected objects
12336 are updated when the objects' size changes after a keypress event
12339 * configure.in: added a big warning about the possible future
12340 non-optionality of --enable-unicode.
12342 * TODO: removed entries which look like done ; added a few ones
12343 (Bugzilla "enhancement" bugs may be a better way to keep track of
12346 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
12348 * objects/UML/message.c: got rid of #55564 and of message_copy()
12349 by using more standard properties (are the message_state_*()
12350 functions still necessary ?)
12352 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
12355 * objecs/custom/shape_info.c:
12356 * plug-ins/shape/shape-export.c:
12357 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
12358 use xmlChar instead of obsolete CHAR.
12360 2001-06-03 Hans Breuer <hans@breuer.org>
12362 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
12363 * app/commands.c : give the right number of parameters
12364 to diagram_update_menu_sensitivity ()
12366 * app/preferences.c : do proper initialization for DiaPrefsData:
12367 render_bounding_boxes. It would be a real surprise if 'hidden'
12368 properties would have ever worked before.
12369 Don't try to access the widgets of hidden property, it does not
12372 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
12373 it is defined in libdia, but initialized from dia app, which
12374 otherwise gave nice start-up crashes.
12376 * lib/diagramdata.c : initialize the color for rendering bounding
12377 boxes in the Dia range (0 .. 1.0)
12379 * lib/libdia.def : added *_bbox functions for export
12381 * lib/makefile.msc : added new sources
12383 * objects/custom/custom_object.c : use HAVE_UNISTD_H
12385 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
12388 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
12389 removes a translation of menus (in a place where there shouldn't
12390 have been), which gets rid of a waterfall of warnings if LANG!=C,
12391 and a fix to #55047.
12393 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
12395 * lib/charconv.c : added #include <errno.h>
12397 * app/dia_embedd.c : updated menus_get_item_from_path usage
12399 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
12401 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
12402 Added a special case for Symbol strings, so that they're not
12403 re-encoded using the LN encoding (we use the bare Adobe encoding
12406 * objects/custom/custom_object.c: Now that #52912 is fixed,
12407 I could remove the ugly hack I wrote to squash the shape bounding box
12408 problem shown by Ben A. Hetland a few months ago, and fix it
12409 properly this time.
12411 * lib/text.c: enlarged a little the bounding box to account for
12412 the cursor in rightmost position.
12414 * lib/diagramdata.c: draw bounding boxes only if the relevant
12415 variable is set (as before), but also only if the rendere is
12416 interactive (ie, don't bother rendering bounding boxes on
12418 Made the bounding box's line width a fixed value, 0.01
12420 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12421 and assymmetric control beziers. Implemented ellipse_bbox().
12423 * Makefile.am: incantations to get po/dia.pot build, as suggested
12424 by Hubert in #55075.
12426 * shapes/network/computer.shape: typo fixed.
12427 * shapes/network/antenna.shape: fixed #55074 (antenna is now
12428 properly translucent, except for its base where it makes sense. It
12429 doesn't look that ugly anymore if transparent mode is on).
12431 * configure.in: --enable-unicode is now the default. This
12432 still currently affects only printing.
12434 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12436 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
12437 The overshoot code is buggy, and the bounding boxes for polyshapes
12438 looks a bit cheezy. To be done ASAP.
12440 2001-05-26 James Henstridge <james@daa.com.au>
12442 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12443 This should clear up some of the build problems people have been
12446 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12448 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12451 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12452 box code (beginning with lines, polylines and polybeziers), into a
12453 more generic facility. While at it, a better shot at correctly
12454 computing the bounding box of a Bezieroid (should take care of
12455 #53424, #51233 and of course is part 1 of #52912).
12457 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12458 into a hidden preference (set render_bounding_boxes in diarc).
12459 * app/preferences.[ch]: Added support for hidden preferences.
12461 * lib/geometry.[ch]: sprinkled with "const" modifiers.
12463 * lib/bezier_conn.[ch]:
12464 * lib/beziershape.[ch]:
12465 * lib/connection.[ch]:
12466 * lib/element.[ch]:
12467 * lib/poly_conn.[ch]:
12468 * lib/orth_conn.[ch]:
12469 * lib/neworth_conn.[ch]:
12470 * lib/polyshape.[ch]: adapted to take advantage of
12471 boundingbox.[ch] instead of relying on private (duplicate) code.
12473 * object/FS/flow.c:
12474 * object/GRAFCET/action.c:
12475 * objects/GRAFCET/condition.c:
12476 * objects/GRAFCET/vergent.c:
12477 * objects/GRAFCET/vector.c:
12478 * objects/SADT/annotation.c:
12479 * objects/SADT/arrow.c:
12480 * objects/ER/participation.c:
12481 * objects/UML/constraint.c:
12482 * objects/UML/implements.c:
12483 * objects/UML/lifeline.c:
12484 * objects/UML/message.c:
12485 * objects/UML/realizes.c:
12486 * objects/UML/generalization.c:
12487 * objects/UML/association.c:
12488 * objects/UML/dependency.c:
12489 * objects/FS/flow-ortho.c:
12490 * objects/network/bus.c:
12491 * objects/standard/arc.c:
12492 * objects/standard/bezier.c:
12493 * objects/standard/beziergon.c:
12494 * objects/standard/line.c:
12495 * objects/standard/polygon.c:
12496 * objects/standard/zigzagline.c:
12498 * objects/standard/polyline.c: Some *BBExtras structures changed
12499 names while moving to boundingbox.[ch]. A trivial mass-renaming.
12501 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
12503 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12504 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12506 * app/display.c (ddisplay_update_scrollbars): from Patrick's
12507 suggestion, remove the extra scrollable area (it was only visible
12508 to the scrollbars). This is experimental.
12510 * objects/custom/custom_object.c: If a shape's icon file doesn't
12511 exist, warn and substitute a default icon, instead of crashing.
12514 * objects/network/network.c:
12515 * shapes/network/modularswitch.(shape|xpm) (NEW):
12516 * shapes/network/printer.(shape|xpm) (NEW):
12517 * shapes/network/genmonitor.(shape|xpm) (NEW):
12518 * shapes/network/computer.(shape|xpm) (NEW):
12519 * shapes/network/Makefile.am: four less objects, four more shapes.
12520 These were the last known RenderObjects. (phew !)
12524 * objects/sybase/Makefile.am:
12525 * objects/network/Makefile.am: Removed the older Renderobjects
12526 from the build, and their infrastructure (not yet deleted,
12529 * shapes/network/sceadplug.shape:
12530 * shapes/network/antenna.shape:
12531 * shapes/network/modem.shape:
12532 * shapes/network/hub.shape:
12533 * shapes/network/rj45plug.shape:
12534 * shapes/sybase/client.shape:
12535 * shapes/sybase/dataserver.shape:
12536 * shapes/sybase/ltm.shape:
12537 * shapes/sybase/repserver.shape:
12538 * shapes/sybase/rsm.shape:
12539 * shapes/sybase/stableq.shape: Minor corrections (line widths were
12540 ten times too narrow).
12542 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
12544 * objects/network/network.c:
12545 * shapes/network/sceadplug.(shape|xpm) (NEW):
12546 * shapes/network/antenna.(shape|xpm) (NEW):
12547 * shapes/network/modem.(shape|xpm) (NEW):
12548 * shapes/network/Makefile.am: four less objects, four more shapes.
12551 * lib/diagramdata.c:
12553 * lib/string_prerenderer.[ch] (NEW):
12554 Add a new renderer primitive, predraw_string() (does nothing, to be
12555 used as a hook to optimise the character encodings if needed).
12556 Added a string pre-renderer, which can be viewed as a filter
12557 renderer (to route draw_string() to predraw_string() and ignore
12558 the rest, in a first rendering pass)
12560 * app/render_eps.c: Took advantage of the above to make wholly
12561 optimised Postscript encoding page(s), even (especially) with
12562 non-latin1 code (HAVE_UNICODE must be true).
12564 (#53512 in fact is wholly resolved).
12566 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
12568 * lib/charconv.c: steps towards resolution of #53512 (inspired by
12569 Alexey Novodvorsky <aen@logic.ru>'s patch).
12571 * app/menus.c (dia_menu_signal_proxy): checked that the signal
12572 handler is not NULL before transferring control to it... (fixes #52836)
12574 * app/app_procs.c (app_init): removed non-constant initialiser
12577 * objects/custom/custom_object.c:
12578 * objects/custom/shape_info.[ch]:
12579 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
12580 <skh@mathstar.com>. This add support for a <svg:text> shape
12581 element, and some related style properties (font, font height,
12584 * doc/custom_shapes: a precision about the meaning of case in a
12585 SVG path (closes #52364)
12587 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
12588 fixed by <drk@sgi.com>)
12590 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
12592 * objects/network/network.c:
12593 * shapes/network/Makefile.am:
12594 * shapes/network/hub.(shape|xpm) (NEW):
12595 * shapes/network/flash.(shape|xpm) (NEW):
12596 * shapes/network/rj45plug.(shape|xpm) (NEW):
12597 More shapes, less renderobjects.
12599 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
12601 * plug-ins/svg/render_svg.c: typo made exported ellipses
12602 corrupted (zero Y pseudo-radius).
12604 * objects/network/network.c:
12605 * objects/network/disc.c:
12606 * shapes/network/disc.(shape|xpm): Converted the first
12607 Renderobject into a shape. Normally, old diagrams should reload
12608 without problems (please check this against your diagrams). More
12609 flexibility should be gained that way. I intend to hunt and
12610 eradicate all renderobjects as I can commit cycles to that.
12612 * objects/Makefile.am:
12615 * objects/sybase/sybase.c:
12616 * shapes/sybase/Makefile.am(NEW):
12617 * shapes/sybase/client.(xpm|shape) (NEW):
12618 * shapes/sybase/dataserver.(xpm|shape) (NEW):
12619 * shapes/sybase/ltm.(xpm|shape) (NEW):
12620 * shapes/sybase/repserver.(xpm|shape) (NEW):
12621 * shapes/sybase/rsm.(xpm|shape) (NEW):
12622 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
12623 renderobjects into shapes. The Sybase objects are now not compiled
12624 anymore, and ready to be nuked if nobody objects in the next few weeks.
12627 * app/diagram.[ch]:
12628 * app/disp_callbacks.c:
12629 * app/display.[ch]:
12630 * app/interface.[ch]:
12632 * app/modify_tool.c:
12633 * app/preferences.[ch]:
12634 * app/recent_files.c:
12635 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
12636 a menu bar reflecting the popup menu, to each display window. This
12637 is optional (changing the preference currently doesn't affect
12638 already opened windows; a few other rough edges to cut).
12640 * plug-ins/wpg/wpg.c:
12641 * plug-ins/xfig/xfig-import.c:
12642 * plug-ins/python/pydia-property.c:
12643 * plug-ins/python/pydia-properties.c:
12644 * plug-ins/python/pydia-geometry.c:
12645 * plug-ins/pstricks/render_pstricks.c:
12647 * objects/EML/dbox.c:
12648 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
12651 * lib/ps-utf8.c: improved the clustering of alphabetic character
12652 definitions in custom encodings pages.
12654 2001-05-02 Hans Breuer <hans@breuer.org>
12656 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
12657 of 'obj_bb' to PROP_TYPE_RECT
12659 * objects/custom/custom_object.c : take all quarks into account,
12660 not only 4 as copy&paste suggests
12662 * objects/uml/objects.c : completed the implementation of the
12663 property api to avoid reading of totally bogus data. Removed
12664 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
12665 there was too much but too less ...
12667 The above changes removed all known crashes (mentioned below)
12668 from the Property API. Property access is still incomplete though.
12670 * objects/flowchart/box.c :
12671 * objects/flowchart/diamond.c :
12672 * objects/flowchart/ellipse.c :
12673 * objects/flowchart/parallelogram.c :
12674 * objects/uml/classicon.c :
12675 * objects/uml/state.c : calculate number of quarks from quark array
12676 size instead of using hardcoded values for consistence and to avoid
12677 future bugs like the above
12679 * objects/eml/nlist.c : include <string.h> for strcmp()
12681 * lib/dia_xml.c : relax g_warning for values, which
12682 appear to be too small. There is nothing which prevents
12685 * plug-ins/python/pydia-geometry.c : changed stringifying of
12686 geometry objects accept BezPoint back to %f, which does not
12687 crash anymore, because all the data is intialized now and it
12688 simply is more readable than %e ...
12690 * plug-ins/python/python-startup.py : removed dependency
12691 to PyGtk, because it isn't required here and probably won't
12692 in i.e.: export filters.
12694 * plug-ins/python/gtkcons.py : create the gtkoutfile even
12695 if sys.stderr.fileno() isn't supported
12697 * app/makefile.msc : make version 0.88
12698 * plug-ins/makefile.msc : make version 0.88 an added new
12699 xfig files to build
12701 2001-05-11 James Henstridge <james@daa.com.au>
12703 * NEWS: remember to add news items this time.
12705 * dia.spec: update spec file for 0.88 release.
12707 * configure.in: up version number to 0.88
12709 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
12710 preventing any of the useful python scripts from being
12713 * sheets/Makefile.am (sheet-translation-report): fix bustage I
12714 introduced in my fixups for the 0.87 release :(
12716 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
12718 * plug-ins/xfig/xfig-import.c: Finally got groups working.
12720 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
12722 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
12723 group manipulation.
12725 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
12727 * lib/ps-utf8.[ch]:
12728 * lib/Makefile.am: fix makefile breakage which led to not
12729 including ps-utf8.[ch] in the released tarballs.
12731 2001-05-09 James Henstridge <james@daa.com.au>
12733 * Makefile.am (core-translation-report): dist scripts needed for
12734 this target, and change to $(srcdir) before running.
12736 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
12737 files aren't automatically included in the tarball by automake
12738 because they could be generated files.
12740 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
12742 * doc/en/Makefile.am (install-data-hook): fix up where graphics
12745 * configure.in: up version number to 0.87
12747 * plug-ins/python/*.py: no longer necessary to explicitly set
12748 sys.argv, as python.c does it for us now (like it should).
12750 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
12753 * plug-ins/python/python-startup.py: startup script that imports
12754 all modules in $(datadir)/dia/python and ~/.dia/python.
12756 * plug-ins/python/python.c (dia_plugin_init): change so that it
12757 only runs the $(datadir)/dia/python-startup.py script. Make sure
12758 that sys.argv and __main__.__file__ are set when calling the
12761 * plug-ins/python/Makefile.am: update makefile. Make it install
12762 gtkcons.py plugin. I haven't set any other plugins to install, as
12763 they look like they are mainly for debugging purposes.
12765 * configure.in: add tests to detect if python is available, so we
12766 can build the python plugin. Only run if --with-python passed to
12769 2001-05-08 James Henstridge <james@daa.com.au>
12771 * acinclude.m4: add macros for detecting python.
12773 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
12774 at GNOME_APP_UI_SUBTREE entries.
12775 (menus_add_path): function to add a menu item to the menubars.
12776 Uses a hash table to keep track of extra menu items it adds. Also
12777 notifies the item factory about the entries so that accels can be
12779 (menus_add_path): implement gtk only version.
12780 (menus_init): use menus_add_path() to add the menu.
12781 (plugin_callback): simplify.
12783 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
12785 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
12787 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
12789 * plug-ins/xfig/xfig-export.c:
12790 * plug-ins/xfig/xfig-common.c:
12791 * plug-ins/xfig/xfig-import.c:
12792 * plug-ins/xfig/xfig.c:
12793 * plug-ins/xfig/xfig.h:
12794 * app/Makefile.am: Added support for exporting to Fig format
12795 (except splits, which are less powerful in Fig). Some refactoring
12798 2001-05-02 Hans Breuer <hans@breuer.org>
12800 * plug-ins/python/debug_objects.py : added another
12801 test to get massive crashes from the Property API due
12802 to unintialized data.
12804 * app/menu.c : the callback_action wasn't incremented
12805 (should have checked my last optimization). Now more
12806 than one plug-in callback is supported again.
12808 * plug-ins/python/pydia-geometry.c : avoid crashes from
12809 glib, when trying to g_strdup_printf unintialized floats.
12811 * plug-ins/python/pydia-property.c : avoid crashes from
12812 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
12814 2001-05-01 Hans Breuer <hans@breuer.org>
12816 * objects/makefile.msc : added eml
12817 * objects/eml/instantiation.c : initialize 'inst' pointer
12818 before using, zero initialization for objects
12819 * objects/eml/interaction-ortho.c :
12820 * objects/eml/interaction.c : zero initialization for objects
12822 * app/menus.c : removed Gimp mru stuff which slipped in at
12823 2000-08-15, was never activated and will never be needed,
12824 because of Steffens recent file list patch added at 2001-01-05.
12826 * objects/eml/*.c : some more zero initialization of objects
12827 to avoid infinite (uninitialized) bounding boxes
12829 Implemented a callback api which allows plug-ins to register
12830 menu call backs. Dia for Gnome should compile, but will need
12831 some extra tweaking to make it work because I can't test it.
12833 * plug-ins/python/pydia-error.h :
12834 * plug-ins/python/pydia-render.c : moved Pxthon function return
12835 value handling from pydia-render.c to pydia-error.h, to make it
12837 * plug-ins/python/diamodule.c : implement callback function
12838 registration from and relaying to Python code
12840 * app/menus.c : register and use plug-in menu callbacks
12842 * lib/filter.[hc] : implement filter_register_callback() and
12843 filter_get_callbacks() for the above
12844 * lib/libdia.def : export them
12846 * plug-ins/python/debug_objects.py (new file):
12847 sample using the above
12849 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
12851 * plug-ins/shape/shape-export.c (new_shape_renderer):
12852 The name of a shape is now taken from the dir, to conform with
12855 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
12857 * app/properties.c (properties_show): Added title containing
12858 object type, plus (hopefully) fix of the ghost properties dialog.
12860 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
12862 * app/display.c: remove the display idle handler in case we
12863 destroy the ddisplay (caused crashes in ddd, probably random
12864 crashes elsewhere).
12868 * Makefile.am: hack around gettext-0.10.36's new "features".
12870 * lib/properties.[ch]: added new function object_copy_props().
12871 Added new property type PROP_TYPE_ENDPOINTS
12873 * lib/connection.h: added support for load/saving through the
12874 properties interface.
12876 * lib/object.[ch]: object_load/save/copy_using_properties()
12877 support functions (code factorisations).
12879 * objects/GRAFCET/boolequation.c: check against null values in
12880 boolequation_set_value() and boolequation_destroy().
12882 * objects/GRAFCET/transition.c: Converted from lazyprops to
12883 standard properties. 31% less (x86) code !
12885 * objects/GRAFCET/condition.c: also converted from lazyprops to
12886 standard properties. Also killed lots of code.
12888 2001-04-13 Hans Breuer <hans@breuer.org>
12890 * plug-ins/wmf/wmf.cpp : changed text conversion from
12891 g_utf8_utf16 to g_convert usage. The latter function is already
12892 available in tml's last "official" Gtk+ version (2000-12-26).
12893 This change allows to use recent Dia with either the official
12894 version or the latest cvs "gtk-1-3-win32-production"-branch.
12896 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
12898 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
12899 * app/disp_callbacks.c:
12900 - Allow submenus in DiaMenus.
12901 - Don't require DiaMenu.title to be non-null (so that
12902 submenus aren't required to have titles)
12904 * objects/FS/function.c:
12905 - object menu now has submenus, an almost complete list of
12906 standard-basis verbs, and a start on nouns.
12907 - box padding, dash length, and other visual attributes are
12908 scaled by the font size... eventually font height will be
12909 a function property.
12910 - draw functions with smaller font to make initial view hold
12911 a reasonable number of functions.
12913 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
12916 * sheets/chronogram.sheet:
12917 * sheets/jigsaw.sheet:
12918 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
12919 Wieers <dag@wieers.com>
12921 2001-04-13 Hans Breuer <hans@breuer.org>
12923 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
12924 to ensure that all the deinitialization is only done once. Fixes
12925 recent app exit crash on win32
12927 * lib/dia_xml.c : provide isinf() replacement for msc which does only
12930 * lib/libdia.def : updated
12932 * objects/makefile.msc : added wanlink.c
12934 * objects/network/wanlink.c : added M_PI_2 definition for poor
12935 platforms which don't have one
12937 * objects/standard/arc.c :
12938 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
12939 initialized which led to rather huge bounding boxes (try Ctrl^A on
12940 diagrams with Arcs or ZigZagLines).
12941 * objects/*/*.c : to avoid further bugs like the above changed all
12942 object initializations to g_malloc0 or g_new0
12945 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
12947 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
12948 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
12950 * objects/UML/class.c:
12951 * objects/UML/usecase.c:
12952 * objects/UML/large_package.c:
12953 * objects/UML/message.c:
12954 * objects/UML/object.c:
12955 * objects/UML/lifeline.c:
12956 * objects/FS/flow.c:
12957 * objects/FS/flow-ortho.c:
12958 * objects/FS/function.c:
12959 * objects/custom/custom_object.c:
12960 * objects/GRAFCET/vergent.c:
12961 * objects/chronogram/chronoref.c:
12962 * objects/SADT/box.c:
12963 * objects/SADT/annotation.c:
12964 * plug-ins/dxf/dxf-import.c:
12965 * plug-ins/xfig/xfig-import.c:
12966 * plug-ins/wpg/wpg.c:
12969 * app/display.c: /* certainly more WIP than dead code there */
12970 Unused variables, unused static function definitions, forgotten or
12971 incomplete prototypes added or fixed, lack of const or unwanted const,
12972 etc. (mostly clean-ups of leftovers of the pre-properties era).
12973 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
12974 please check these.
12976 * app/lineprops_area.c: More of the same. Missing prototypes
12977 added, and functions unused outside made static.
12979 * app/recent_files.c:
12980 * app/properties.c:
12981 * app/defaults.c: some variables are used only when doing a GNOME
12984 * app/magnify.c: missing #include <stdlib.h>.
12986 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
12988 These are a lot of clean-ups (by the way, this compiles and runs
12989 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
12990 for DEAD_CODE, and if it's yours, judge it.
12992 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
12994 * plug-ins/dxf-import.c: some progress with the arcs; still some
12995 clean-ups to do and line width scaling issues to figure out.
12997 * objects/standard/arc.c: start_point and end_point properties
12998 (duplicated from standard/line.c)
13000 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
13003 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
13005 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
13006 preliminary support for arcs (doesn't work). Circles and ellipses are
13007 now transparent. Coordinate and width scaling are now a common
13008 static constant (probably before morphing into a preference).
13010 * sheet/checktrans.py: improved error reporting. Made checktrans
13011 count lack of <name xml:lang="code"> as a lack of translation for
13012 language "code" (no, it's not a plot to bring down other
13013 language's scores !)
13015 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
13016 in the header, and have <name xml:lang="fr"> components.
13018 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
13020 * objects/custom/custom_object.c: temporary hack to fix the shape
13021 bounding box reported by Ben A. Hetland. Proper fix isn't .87
13022 material, see bugzilla #52912.
13024 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
13026 * objects/standard/image.c (get_directory): Now uses
13027 G_SEPARATOR_CHAR_S instead of "/"
13029 * sheets/network.sheet:
13030 * sheets/Logic.sheet:
13031 * sheets/Flowchart.sheet:
13032 * sheets/Electric.sheet:
13033 * sheets/Circuit.sheet:
13035 * sheets/Pneumatic.sheet:
13036 * sheets/SDL.sheet:
13037 * sheets/UML.sheet:
13038 * sheets/GRAFCET.sheet:
13039 * sheets/MSE.sheet:
13040 * sheets/chronogram.sheet:
13041 * sheets/civil.sheet:
13042 * sheets/network.sheet:
13043 Danish translations.
13045 * objects/standard/image.c (get_directory): Changed get_directory
13046 to use g_dirname to find the directory part.
13048 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
13051 * sheets/Electric.sheet:
13052 * sheets/Flowchart.sheet:
13053 * sheets/Logic.sheet:
13054 * sheets/network.sheet: More Dutch translations from Dag Wieers.
13056 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
13058 * sheets/checktrans.py: now emits a warning when two descriptions
13059 for a single language code are found.
13062 * sheets/Makefile.am: -translation-reports now also depend on their
13065 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
13067 * sheets/Circuit.sheet:
13068 * sheets/Contact.sheet:
13069 * sheets/Logic.sheet:
13070 * sheets/chronogram.sheet:
13071 * sheets/sybase.sheet:
13072 Dutch translations from Dag Wieers <dag@wieers.com>
13074 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
13076 * po-checktrans.py: Now shows the detailed counts alongside the
13077 percentage of translations.
13079 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
13082 * po-checktrans (NEW):
13083 * po-checktrans.py (NEW): builds core-translation-report:
13084 percentages of core (gettext) translations done [Not placed into
13085 po/ where that should belong, because of integration fear^Wissues
13088 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
13089 sheets/sheet-translation-report probably ought to be copied on the
13090 user's /usr/share/doc/dia (or equivalent) directory.
13092 * sheets/Makefile.am: sheet-translation-report now a simple
13093 EXTRA_DIST; make install won't install it by default.
13095 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
13097 * app/preferences.c: changed the default grid colour to something
13100 * shapes/SDL/*.shape:
13101 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
13102 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
13103 DIA FILES (well, for files using SDL), see the mailing list
13104 archive "SDL (ab)using the global shape namespace" for a script to
13105 do this conversion.
13107 * sheets/SDL.sheet: translated into French
13108 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
13110 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
13112 * lib/dia_xml.c: made data_point() more paranoid
13114 * sheets/Makefile.am:
13115 * sheets/checktrans (NEW):
13116 * sheets/checktrans.py: Made checktrans handle more gracefully the
13117 absence of python and python-xml packages, and made the error
13118 message more helpful.
13120 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
13122 * lib/render_object.c (new_render_object): Made initial handles
13123 behave like on most other objects.
13125 * app/load_save.c (read_objects): Fixed premature free'ing ofr
13126 typestr causing garbage.
13128 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
13130 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
13131 accouting for handle ordering through copy and save. (#51479)
13133 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
13135 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
13137 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
13139 * sheets/Circuit.sheet
13141 * sheets/network.sheet: Updated German translations
13143 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
13146 * app/lineprops_area.c: The return of the revenge of the arrow
13147 heads. Now all types covered by ISO 10303-201 should be covered.
13149 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
13151 * sheets/Flowchart.sheet: translations in probably Hungarian were
13152 a victim of cut-n-paste from the German one. Fixed (hopefully).
13153 * sheet/UML.sheet: translation in probably Norwegian was a victim
13154 of cut-n-paste from the French one. Fixed (hopefully).
13155 * sheets/Logic.sheet: French translation not tagged with
13158 * sheets/checktrans.py:
13159 * sheets/Makefile.am: new file, sheet-translation-report, to be
13160 installed along the sheets, show how much of them has been
13161 translated into which language (I wish the result was prettier...)
13163 * po/README: most translators don't read this file, but anyway...
13165 * sheets/.cvsignore:
13166 * objects/network/.cvsignore: the usual negotiation with CVS.
13168 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
13170 * sheets/*.sheet: French translations
13172 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
13174 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
13176 ** objects/network/network.c:
13177 ** objects/network/wanlink.c:
13178 ** objects/network/pixmaps/wanlink.c:
13179 ** sheets/network.sheet:
13180 ** objects/network/Makefile.am: a better object to use instead of
13181 the older WAN Connection.
13183 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
13185 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
13188 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
13189 Arc; kept the C file name (because CVS wouldn't like it), and
13190 still registering the older object name (but advertising the newer
13191 one in sheets/GRAFCET.sheet).
13193 2001-03-24 Hans Breuer <hans@breuer.org>
13195 * app/dia.def : some plug-ins (currently only python, xfig) are using
13196 functions from the dia executable. To get them working these functions
13197 need to be explicit exported on win32. IMO the much cleaner way would
13198 be to move these functions to libdia, but that would require some
13199 long term restructuring ...
13201 * lib/libdia.def : updated
13203 * plug-ins/makefile.msc : build xfig plug-in
13205 2001-03-24 Hans Breuer <hans@breuer.org>
13207 * app/diagram.c : g_strdup (dia->filename) because it will be
13210 * app/display.c : set ddisp->renderer to NULL after destruction.
13211 This may solve or help to identify erroneous access to it after
13214 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
13215 get 'umlauts' working
13217 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
13219 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
13220 were reversed... (look for the patch, and drink a beer to my
13223 2001-03-23 Hans Breuer <hans@breuer.org>
13225 * app/app_procs.c : don't g_error () if the config directory
13226 can't be created (at least not on windoze) because it's quite
13227 common that the user don't read or understand the FAQ ...
13229 * app/cursor.c : use ddisplay_active () instead of active_display
13232 * app/display.[hc] : made active_display var static and provide
13233 an accessor funtion ddisplay_active_diagram ()
13235 * app/dia-props.c : don't store the active_diagram, but ask
13236 for it everytime it needed.
13238 * lib/properties.h : #include "intl.h"
13240 * lib/makefile.msc : need to take care of inclusion order to
13241 avoid clashes with gtk+2.0's gdk-pixbuf
13243 * objects/makefile.msc : added uml/stereotype.c to build
13245 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
13247 * **/*.c: Added config.h to the remaining .c files, and changed
13248 all to be <config.h>.
13250 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
13255 * app/lineprops_area.c: added new arrow types with double
13258 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
13260 * shapes/Civil/civil_gas_bottle.xpm
13261 * shapes/Civil/civil_gas_bottle.shape
13262 * sheets/civil.sheet
13263 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
13266 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
13268 * objects/custom/shape_info.c (load_shape_info):
13269 * objects/custom/shape_info.h:
13270 * objects/custom/custom_object.c (custom_update_data):
13271 Better support for text outside the box -- new attributes 'resize'
13272 and 'align' for text entity. Align not fully supported yet.
13274 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
13276 2001-03-20 James Henstridge <james@daa.com.au>
13278 * app/interface.c (display_data_received_callback): comment out
13281 2001-03-19 James Henstridge <james@daa.com.au>
13283 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
13285 * objects/UML/realizes.c: similar here.
13287 * objects/UML/implements.c: similar here.
13289 * objects/UML/component.c: similar here.
13291 * objects/UML/generalization.c: same here.
13293 * objects/UML/dependency.c: allow NULL for ->name and
13294 ->stereotype. This fixes a number of problems in loading saved
13297 * lib/properties.c: various changes so that NULL string properties
13300 * objects/standard/line.c (line_update_data):
13301 line->extra.start_long and line->extra.end_long were not being
13302 initialised. This fixes potential problems with the bounding box
13303 of "Standard - Line" objects.
13305 2001-03-19 Hans Breuer <hans@breuer.org>
13307 * app/commands.c : added win32 specific code to display a html
13308 file. #include "text.h" for text_delete_all prototype.
13311 * app/dia.rc : (new) to give Dia win32 an icon
13313 * app/win32print.[ch] : new files to support direct postscript
13314 file printing on win32. Beware: it *requires* a ps-printer!
13316 * app/paginate_psprint.c : disable the signal code for win32 build
13317 and added small specific changes to support win32print.
13319 * app/makefile.msc : added win32print and linking shell32.lib
13321 * lib/libdia.def : updated
13323 2001-03-18 Kevin Breit <battery841@mediaone.net>
13325 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
13328 2001-03-17 James Henstridge <james@daa.com.au>
13330 * app/paginate_psprint.c (diagram_print_ps): add code that traps
13331 SIGPIPEs during printing. This gets rid of a number of crashes
13332 caused by printing (eg. typing an incorrect print command).
13334 * dia.spec (%install): gzip the manpage.
13336 * lib/beziershape.c (beziershape_save): fix off by one error in
13337 beziershape save code, which was adding an extra segment to the
13340 * app/menus.c: add a separator in the gnome version of the help
13343 * app/app_procs.c (app_init): add a --nosplash argument which
13344 disables the splash screen.
13346 * app/dia_embedd.c (main): don't leave the splash screen open for
13347 embeddable component.
13349 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
13350 didn't seem to be showing the splash screen like expected, so I
13351 have replaced it with some code that calls gtk_main() until the
13352 first exposure of the window.
13354 2001-03-16 James Henstridge <james@daa.com.au>
13356 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
13358 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
13361 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
13363 * app/Makefile.am (dia_core_files): remove splash.h from file
13364 list, as it doesn't exist.
13366 * doc/en/Makefile.am (uninstall-local): remove the docdir on
13369 * doc/Makefile.am (uninstall-local): target to remove the C
13372 * dia.spec (%files): include the documentation in the package.
13374 * app/menus.c (toolbox_menu_items): add menu item for manual,
13375 which calls help_manual_callback.
13377 * app/commands.c (help_manual_callback): find help file and load
13378 netscape to view it.
13380 * app/commands.h: add prototype for help_manual_callback()
13382 * doc/Makefile.am (helpdir): similar here.
13384 * doc/en/Makefile.am (helpdir): make the helpdir
13385 $(pkgdatadir)/help/en in the non gnome case.
13387 * configure.in (HAVE_GNOME): add conditional.
13389 * doc/en/Makefile.am: handle the graphics in a more general way,
13390 so it is easier for Kevin to add them to the build (just add them
13391 to the GRAPHICS var).
13393 * app/Makefile.am (embed_extra_print_files): make the case of
13394 building without gnome-print support but with bonobo support work.
13395 dia-embedd needs to be include the gnome-print
13397 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
13399 * samples/Makefile.am: included all samples in the distribution....
13401 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
13403 * configure.in: removed premature test for DPS. Added -*- m4 -*-
13404 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
13405 vanished, removed it from ALL_LINGUAS.
13407 * lib/charconv.[ch] (NEW): a very small wrapper around
13408 unicode_iconv to convert strings between utf8 and local charset
13409 (actually, ISO-8859-1, though one can do
13410 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
13412 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
13413 library to help build Postscript streams which use as many custom
13414 font encodings as necessary to correctly represent all characters
13415 used (testing from users with non-latin1 and/or more than 256
13416 characters in routine use *very* welcome).
13418 * app/Makefile.am, lib/Makefile.am: integrated these into the
13421 * shapes/Logic/.cvsignore (NEW): .cvsignore
13423 * app/render_eps.h: forwarded some changes Lars forgot to include.
13424 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13427 2001-03-08 Kevin Breit <battery841@mediaone.net>
13429 * doc/en/home_network.png: Added file.
13430 * doc/en/line_props.png: Added file.
13431 * doc/en/usage-objects.sgml: Added two graphics to file.
13432 * doc/en/usage-quickstart.sgml: Added one graphic to file.
13434 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
13436 * app/grid.h: Place comment around text after #endif.
13437 * lib/bezier_conn.c: #include <string.h>.
13438 * lib/beziershape.c: #include <string.h>.
13439 * lib/connpoint_line.h: Comment after #endif.
13440 * lib/dia_dirs.c: #include <string.h>.
13441 * lib/element.c: Same.
13442 * lib/lazyprops.c: #include <config.h> and "intl.h".
13443 * lib/lazyprops.h: Comment out text after #endif.
13444 * lib/neworth_conn.c: #include <string.h>
13445 * lib/orth_conn.c: Same here.
13446 * lib/poly_conn.c: Here too.
13447 * lib/polyshape.c: And here.
13448 * lib/properties.c: Remove #include "intl.h" from here and add
13449 an array of static strings to work around bug in gettext that
13450 makes it miss strings in a #define body.
13451 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13452 * objects/GRAFCET/boolequation.h: Same here.
13453 * objects/chronogram/chronoline_event.h: Add prototype for
13456 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13458 * objects/FS/function.c:
13459 * objects/FS/flow.c:
13460 * objects/FS/flow-ortho.c:
13461 Updated to use properties.
13463 2001-03-03 James Henstridge <james@daa.com.au>
13465 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13466 button labels when creating them.
13468 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13470 * objects/UML/actor.c
13471 * objects/UML/realizes.c
13472 * objects/UML/implements.c
13473 * objects/UML/generalization.c
13474 * objects/UML/dependency.c
13475 * objects/UML/constraint.c
13476 Updated to use properties.
13478 * objects/UML/stereotype.c
13479 * objects/UML/stereotype.h
13480 Generalized to any kind of bracketting.
13482 2001-02-28 James Henstridge <james@daa.com.au>
13484 * app/menus.c: add help entry to the help menu. Need to get this
13485 working for the non GNOME case as well (maybe put help under
13486 $(datadir)/dia/help for non GNOME?)
13488 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13490 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13491 this element so that we get a meaningful filename in the html
13494 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13497 * configure.in (DB2HTML): add a check for the db2html program, and
13498 set an automake conditional if it is found.
13500 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13501 and descend into doc/ directory while building.
13503 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13504 we need more complex rules for building the docs.
13506 2001-02-25 Hans Breuer <hans@breuer.org>
13508 * config.h.win32 : some cleanup
13510 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13511 are deprecated since glib-1.3.2. Sorry needing to use them
13512 contionally, but there is no glib-1.2 for win32
13514 * app/recent_files.c : use g_strescape (params) conditionally
13516 * lib/connection.c : include string.h for memcpy
13518 * lib/geometry.h : added some stuff for compatibility with
13519 msvc, which previously came from included config.h
13521 * lib/libdia.def : updated
13523 * objects/makefile.msc : updated
13525 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
13526 'extra' used without having been initialized
13528 * objects/network/bus.c(658) : initialize 'extra'
13530 * plug-ins/makefile.msc : updated
13532 * plug-ins/cgm/cgm.c :
13533 * plug-ins/pstricks/render_pstricks.c :
13534 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
13537 * plug-ins/python/python.c : use HAVE_DIRENT_H
13539 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13541 * lib/connection.c (connection_update_boundingbox):
13542 Made the BB shrink on right and lower sides, too.
13544 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
13546 * */*.c: #incude <config.h> at the top.
13547 * */*.h: Remove include of "config.h" since it should only
13548 be included in .c files and at the very top for things to
13550 * sheets/*.sheet: Updated Norwegian translations.
13552 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13554 * objects/UML/small_package.c:
13555 * objects/UML/class.c:
13556 * objects/UML/node.c:
13557 * objects/UML/usecase.c:
13558 * objects/UML/lifeline.c:
13559 * objects/UML/message.c:
13560 Various cleanup of properties in particular. Now much more use of
13561 standard properties.
13563 * lib/diagramdata.c (layer_render): Visualization of bounding
13564 boxes, for debugging purpoises.
13566 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
13569 * lib/connection.[ch]:
13570 * lib/poly_conn.[ch]:
13571 * lib/polyshape.[ch]:
13572 * lib/bezier_conn.[ch]:
13573 * lib/beziershape.[ch]:
13574 * lib/orth_conn.[ch]:
13575 * lib/neworth_conn.[ch]:
13576 * lib/element.[ch]: Changed a bit the _update_boundingbox()
13577 interface. Now the parent elements have an extra_spacing
13578 structure, which child objects just need to fill, to take care of
13579 most arrow & line width extra space needs.
13581 * objects/**/*.c: updated all objects to the new interface.
13582 While at it, killed all instances of (Object *) downcasts (phew !)
13584 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
13585 doesn't speak about.
13587 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13589 * sheets/Logic.sheet: New sheet for Logic symbols.
13591 2001-02-21 James Henstridge <james@daa.com.au>
13593 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
13594 widget by its path name. Walks the GnomeUIInfo heirachy rather
13595 than widget tree, compares untranslated label names and ignores
13596 underscores in the labels.
13597 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
13598 lookups are not dependent on the current locale, as with
13599 gnome_app_find_menu_pos.
13601 * acconfig.h: guard against multiple inclusion of config.h.
13603 * app/select.c (select_style_callback): simply set the selection
13604 style to the value of action.
13606 * app/menus.c (menus_init): simplify the item factory based menu
13607 code a bit. It looks like it was using some code cut and pasted
13608 from the gimp, which looked a bit unnecessary. Things work fine
13610 (selectmenu): set the action to the type of selection mode
13612 (display_menu_items): use the symbolic enumeration values for the
13615 * app/plugin-manager.c:
13616 * app/plugin-manager.h:
13620 * app/select.h: change prototypes.
13622 * app/commands.c: update all callback prototypes, and get rid of
13623 some #ifdef GNOME's.
13625 * app/commands.h: change function prototypes.
13627 * app/dia_embedd.c (save_fn):
13628 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
13630 * app/menus.c (menus_init): for gnome menus, use
13631 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
13632 structure that proxies the callbacks to have the same signature as
13633 GtkItemFactory type 1 callbacks.
13634 (menus_init): for GTK menus, change from callback type 2 to type
13636 (display_menu_items): add back tearoffs. I don't know who removed
13637 these for the gtk menu case.
13639 2001-02-20 Kevin Breit <battery841@mediaone.net>
13641 * doc/en/usage-objects-special.sgml: Fixed a few of the special
13642 object descriptions. More to come in the next few days.
13644 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
13646 * app/render_eps.c: Fixed for internationalized floating point
13649 * objects/UML/note.c: Fixed properties -- was missing
13650 Get/ApplyPropertiesFunc. Also improved update to recalculate text
13653 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
13655 * plug-ins/xfig/xfig-import.c:
13656 File added importing xfig files. Still very rough, but good
13657 enough to let others hack on it.
13659 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
13662 * app/linewidth_area.c:
13664 * lib/properties.c:
13666 * objects/ER/attribute.c:
13667 * objects/ER/entity.c:
13668 * objects/ER/relationship.c:
13669 * objects/custom/custom_object.c:
13670 * objects/flowchart/box.c:
13671 * objects/flowchart/diamond.c:
13672 * objects/flowchart/ellipse.c:
13673 * objects/flowchart/parallelogram.c:
13674 * objects/standard/box.c:
13675 * objects/standard/textobj.c: per Vlad Harchev's request, made
13676 page sizes of gtk_adjustments different than their step sizes.
13677 When sensible values of page size weren't found (overwhelming
13678 majority of cases), page sizes were set to 10.0 * respective step
13681 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
13683 * objects/network/hub.c:
13684 Patch from Hubert Figuiere applied, adding connection points.
13686 2001-02-02 James Henstridge <james@daa.com.au>
13688 * app/display.c (new_display): set update id to 0 here.
13689 (ddisplay_update_handler): rename from ddisplay_flush, and set
13690 update_id to 0 at end of processing.
13691 (ddisplay_flush): new implementation that simply sets an idle
13692 handler to perform the actual drawing.
13694 * app/display.h: add structure member to hold the redraw idle
13697 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
13699 * objects/standard/ellipse.c (ellipse_copy):
13700 * objects/standard/zigzagline.c (zigzagline_copy):
13701 Fix of copying provided by Martin Hawlisch.
13703 2001-01-23 Kevin Breit <battery841@mediaone.net>
13705 * doc/en/graphics/: added directory
13707 * doc/en/graphics/greendots.png: added file
13709 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
13712 2001-01-23 Kevin Breit <battery841@mediaone.net>
13714 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
13715 thanks to John Fleck!
13717 2001-01-21 Kevin Breit <battery841@mediaone.net>
13719 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
13721 2001-01-12 Michael Meeks <michael@helixcode.com>
13723 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
13724 so our POA gets setup properly.
13726 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
13727 things we g_malloc.
13729 * configure.in: Use bonobox_print.
13731 * app/dia_embedd.c (embeddable_factory): add print interface.
13732 (object_print): impl.
13734 2001-01-11 Michael Meeks <michael@helixcode.com>
13736 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
13737 (load_fn, save_fn): impl.
13738 (view_factory): hide modified status bar, & use activate fn.
13739 (refresh_view): force redraws of the views.
13740 (view_show_hide): split from
13741 (dia_view_activate): here.
13743 * app/diagram.c (diagram_load_into): split from diagram_load.
13744 (new_diagram): simplify bu splittin stuff into
13745 (diagram_init): here.
13747 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
13749 * shapes/jigsaw/*.shape: replaced #000000 with foreground
13750 and #ffffff with background
13752 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
13754 *configure.in: GTK+-build was broken due to missing
13757 2001-01-06 Michael Meeks <michael@helixcode.com>
13759 * app/dia_embedd.c (main): add running context support.
13760 (dia_embeddable_destroy): remove old running object counting.
13761 (embeddable_factory): ditto.
13762 (view_factory): comment out menu path hiding.
13764 * lib/sheet.c (load_register_sheet): use free to free
13765 stuff from libxml not g_free.
13767 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
13769 * configure.in: remove USE_OAF checks, check for a precice
13770 Bonobo version >= 0.31, revamp bits.
13772 * app/dia_embedd.c (init_server_factory): upd.
13773 (init_dia_factory): remove OAF conditionals, everything uses
13776 * app/GNOME_Dia.oafinfo: rename OAFIIDs
13778 * app/Makefile.am: remove ancient gnorba code.
13779 rename dia.oafinfo to GNOME_Dia.oafinfo
13781 2001-01-07 Hans Breuer <Hans@Breuer.Org>
13785 * readme.win32 : some more files required or useful to build
13788 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
13789 fill_bezier implementation, boundary drawing in fill mode, etc.
13790 Next one complaining gets the source, uncommented ...
13792 * shapes/network/router-symbol.xpm
13793 * shapes/network/switch-atm-symbol.xpm
13794 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
13795 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
13796 the files as XPMs. Maybe the X versions of these functions are more
13799 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
13801 * plug-ins/python/Makefile.am: added libart path
13803 * plug-ins/python/python.c: added dirent.h
13805 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
13807 2001-01-06 Hans Breuer <Hans@Breuer.Org>
13809 * objects/uml/actor.c
13810 * objects/uml/branch.c
13811 * objects/uml/class.c
13812 * objects/uml/classicon.c
13813 * objects/uml/component.c
13814 * objects/uml/large_package.c
13815 * objects/uml/node.c
13816 * objects/uml/note.c
13817 * objects/uml/object.c
13818 * objects/uml/small_package.c
13819 * objects/uml/state.c
13820 * objects/uml/usecase.c : started to implement the generic property
13821 interface for the uml objects. Would appreciate some help on how
13822 to implement properties which are list of properties themselves,
13823 e.g. member functions and their parameters of UMLClass.
13825 2001-01-06 Hans Breuer <Hans@Breuer.Org>
13827 * plug-ins/python/diamodule.c : finally ported to win32.
13828 Added new objects and implemented register_export function.
13830 * plug-ins/python/pydia-object.h
13831 * plug-ins/python/pydia-display.c
13832 * plug-ins/python/pydia-handle.c
13833 PyObject_HEAD_INIT needs some tweakink on win32. Done in
13834 pydia-object.h; others files simply using it.
13836 * plug-ins/python/pydia-layer.c : reflect
13837 layer_find_closest_connection(_)point renaming
13839 * plug-ins/python/pydia-object.c : add property properties.
13840 Also change bounding_box to DiaRectangle.
13842 * plug-ins/python/python.c : extended error reporting; use
13843 all *.py files from Dia's plug-in dir instead of hardcoded
13844 test.py. This sollution should be fine with Win32, but on
13845 Unix it may need some tweaking (dunno) ...
13847 * plug-ins/python/export-object.py
13848 * plug-ins/python/export-render.py : test and documentation
13849 implementations for export filter implementations in Python
13851 * plug-ins/python/pydia-color.[hc]
13852 * plug-ins/python/pydia-diagramdata.[hc]
13853 * plug-ins/python/pydia-error.[hc]
13854 * plug-ins/python/pydia-export.[hc]
13855 * plug-ins/python/pydia-font.[hc]
13856 * plug-ins/python/pydia-geometry.[hc]
13857 * plug-ins/python/pydia-image.[hc]
13858 * plug-ins/python/pydia-properties.[hc]
13859 * plug-ins/python/pydia-property.c
13860 * plug-ins/python/pydia-render.c : new objects in new files
13862 * plug-ins/python/makefile.am : added new files but can't test it
13864 * plug-ins/python/pydia.def
13865 * plug-ins/python/makefile.msc : for win32 build
13867 * plug-ins/cgm/cgm.c
13868 * plug-ins/dxf/dxf-import.c
13869 * plug-ins/dxf/dxf-export.c
13870 * plug-ins/hpgl/hpgl.c : reflect export API change
13872 * plug-ins/shape/shape-export.c : reflect export API change
13873 and check for libart (better the availibility of a png exporter)
13874 at run-time instead of compile-time.
13876 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
13878 * app/recent_files.h was missing from Hans's commit
13880 * plug-ins/shape/shape_export.c: shape export was broken
13881 due to interface changes
13883 2001-01-05 Hans Breuer <Hans@Breuer.Org>
13885 Applied Steffen's recent file list patch :
13886 * app/Makefile.am : added recent_files.[hc]
13887 * app/diagram.c : add files to recent file list
13888 * app/menus.c : add recent file menu
13889 * app/app_procs.c : changed initialization order to
13890 make recent file list work with command line processing.
13892 The Filter export()/import() functions have got an additional
13893 parameter to allow multiple filters via one C callback (required
13894 for Python bindings)
13896 * app/commands.[hc] : corrected the signature for gtk menu callback
13897 functions, which actually use the second or third parameter. This
13898 is the absolute minimum change to make these functions/menu entries
13899 work again. Using the other possible gtk menu callback signature
13900 would have required one more function to change. (see mailing list
13901 thread "Objects/Align/Equal Distance" for more information.
13903 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
13904 zoom-combo focus patch
13907 * app/interface.c : wrapped the Zoom Combo code into
13908 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
13909 improvement but cluttering the user interface. Also it wasn't
13910 compiling on Win32 anyway. The win32 version does define
13911 WITHOUT_ZOOM_COMBO to keep the old look.
13912 There are plans to use the statusbar to display size and placement
13913 of selected objects, whereas the Zoom Combo would need to get out
13914 of the way as well.
13916 Added "Save Changes?" to diagram close dialog. Hopefuly the
13917 Yes/No/Cancel option isn't too much windoze like. IHMO this is
13918 an useability improvement.
13923 * app/layer_dialog.c
13924 * app/paginate_psprint.c
13926 - reflect signature changing of filter->export function
13927 - replaced '/' with G_DIR_SEPARARTOR where appropriate
13929 * app/diaunitspinner.c
13930 * app/render_libart.c
13931 added misssing headers like <string.h>
13933 * app/object_ops.c : fixed copy&paste bug in dialog string
13935 * app/splash.c : gdk_widget_show_now () does not ensure actual
13936 drawing of the splash screen, at least not on win32. Reuse the
13937 previous implementation with gtk_main_iteration() again.
13939 * */makefile.msc : make use of the build module (available in
13940 gnome-cvs/build. Updated for other source changes
13942 * lib/filter.h : added an user_data pointer to <ex/im>port()
13943 function signature and Dia<Im/Ex>portFilter to allow different
13944 filters to reuse the same callback function
13946 * lib/font.c : #include <string.h>
13951 * lib/neworth_conn.c
13952 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
13954 * */*.def : export function definition files required by win32 build
13956 * objects/custom/custom.c : #include <string.h>
13958 * plug-ins/pstricks/render_pstricks.c
13959 * plug-ins/shape/shape_export.c
13960 * plug-ins/svg/render_svg.c
13961 reflect changes to filter export function signature
13963 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
13964 mostly work as expected
13965 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
13966 to build the wmf plug-in because on the one hand the GDI emulation
13967 isn't finished and on the other hand it isn't required when building
13968 for win32. Is there anybody out there, who wants to save WMF on non
13969 windoze platforms ?
13971 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
13972 offset into account.
13974 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
13976 * app/Makefile.am: added missing plug-ins to run_dia.sh
13978 * lib/paper.c: added paper sizes A0, A1, A2
13980 * objects/UML/class.c
13981 objects/UML/class.h
13982 objects/UML/class_dialog.c: added support for colored UML
13985 2000-12-30 Kevin Breit <battery841@mediaone.net>
13987 * doc/en/usage-customization.sgml: added more content
13989 2000-12-24 Kevin Breit <battery841@mediaone.net>
13991 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
13992 <remy.viard@laposte.net>
13994 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
13996 * added limiting lines to Civil Engineering sheet,
13997 fixed vertical pump icon
13999 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
14001 * updated/additional Civil Engineering shapes: better icons,
14002 shapes use foreground/background colors now and are filled
14004 2000-12-03 Kevin Breit <battery841@mediaone.net>
14006 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
14007 the selection <sect1>
14009 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
14011 * app/load_save.c (diagram_data_save): avoid using obsoleted
14012 libxml calls (only matters when compiling with libxml2)
14014 2000-11-25 James Henstridge <james@daa.com.au>
14016 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
14017 handle the tool drops on the canvas.
14019 * app/interface.c (display_data_received_callback): do the check
14020 to make sure that the drag is from a local toolbox here as well.
14022 * app/interface.c (create_tools): unref the pixmap/mask after
14023 creating the GtkPixmap.
14024 (tool_setup_drag_source): function to set up a drag source for
14025 create object tool buttons.
14026 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
14027 (fill_sheet_wbox): same here.
14028 (create_display_shell): set up the display canvas as a drag
14030 (display_drop_callback, display_data_received_callback): functions
14031 to handle drops of tool buttons.
14033 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
14034 does weird shit to the user_data pointer for a menu item. Object
14035 alignment should work again now.
14037 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
14038 NULL, and mark this function static.
14039 (app_splash_init): use gtk_widget_show_now() instead of the
14040 gtk_main_iteration loop.
14041 (app_splash_init): connecting gtk_widget_destroy to the destroy
14042 signal of a widget seems pretty useless.
14044 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
14046 * doc/en/dia-manual.sgml:
14047 Added sect1 for advanced object types. Starting development
14050 2000-11-18 Kevin Breit <battery841@mediaone.net>
14052 * doc/en/dia-manual.sgml:
14053 Stupid spelling fixes.
14055 2000-11-18 Kevin Breit <battery841@mediaone.net>
14057 * doc/en/dia-manual.sgml:
14058 Just some small changes I made. Props to Greg LeBlanc on the
14061 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
14064 (ddisplay_add_display_area): Clip input rectangle to
14065 the visible part of the display.
14066 (ddisplay_scroll): Optimization, don't scroll and
14067 redraw if moving to the same position as before.
14069 * app/render_libart.c (renderer_libart_copy_to_window):
14070 Removed sanity check. Now moved to ddisplay_add_display_area().
14073 Added return at end of file.
14075 2000-11-13 Kevin Breit <battery841@mypad.com>
14076 * doc/en/dia-manual.sgml
14077 Commited manual changes from Henry House <hajhouse@houseag.com>
14079 2000-10-21 Hans Breuer <Hans@Breuer.Org>
14080 * lib/beziershape.c :
14081 The previous code was accessing unowned memory due to IHMO
14082 wrong index calculation. Now it appears to be fixed.
14086 * plug-ins/makefile.msc
14087 * objects/makefile.msc
14088 * app/makefile.msc: (new files)
14089 Makefiles for Dia on Win32, Micro$oft VC only.
14091 * plug-ins/pstricks/render_pstricks.c
14092 * plug-ins/dxf/dxf-import.c
14093 * plug-ins/shape/shape-export.c
14094 * plug-ins/svg/render_svg.c
14097 * app/preferences.c
14101 * objects/custom/custom.c
14102 * objects/standard/image.c
14103 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
14104 where appropriate, add missing prototypes like <string.h>
14106 * plug-ins/wmf/wmf_gdi.cpp
14107 * plug-ins/wmf/wmf_gdi.h:
14108 start of wmf write functions for non Win32 platform. Not
14109 finished yet. The other way to get it working maybe to
14110 link the plug-in against wine libs.
14112 * plug-ins/wpg/wpg.c : add missing brace
14114 * app/load_save.c :
14115 Handling for unknown objects at load time. Previously Dia
14116 was crashing, if you try to load a file referencing objects
14117 whiches plug-ins aren't installed/available. Now it spits out
14118 a warning and ignores the unknown objects.
14121 toolbox DND support for files like The Gimp does it.
14125 Simple splash screen support and usage.
14128 Splash screen, portability fixes, dont' g_error if there is
14129 g_get_homedir return NULL. This may remove the one and only
14133 Make it compile without ENABLE_NLS
14135 * app/render_libart.c :
14136 Sanity check to avoid calling libart with wrong window coordinates.
14137 They come from the update handler. Direct Gdk is dealing nicely
14138 with coordinates out of range, libart does access un-owned memory
14139 in this case, mostly causing crashes.
14141 * app/winmain.c: (new file) Export the Win32 Gui version of the
14142 main function. This file is only required for Windoze.
14144 * app/splash.c: (new file) splash screen implementation
14148 * lib/diavar.h: (new file)
14149 moved special variable export code to diavar.h, because it is
14150 needed in color.h and font.h
14153 M$VC cann't export inlined functions. Quick hack to let it
14154 link again. Probably the glib mechanics should be used here?
14156 * objects/UML/lifeline.c : initialize var before usage
14158 * objects/GRAFCET/step.c : removed unused var
14160 2000-10-14 James Henstridge <james@daa.com.au>
14162 * app/render_gnomeprint.c (draw_image): change code so images
14163 don't get flipped when printing.
14165 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
14166 sure that the return value of
14167 gnome_print_context_new_with_paper_size is not NULL.
14169 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
14170 into a series of bezier segments.
14171 (fill_arc): similar code to handle filled arc segments.
14173 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
14180 * app/disp_callbacks.c
14182 * app/linewidth_area.c
14183 * app/paginate_psprint.c
14184 * app/preferences.c
14188 * app/neworth_conn.c
14190 * objects/standard/box.c: various small changes to get rid of
14191 annoying warnings (eg faulty prototypes and unused variables)
14193 * app/disp_callbacks.c
14196 * app/magnify.h: update magnify tool icon when pressing/releasing
14197 shift. I will try to make something more general so that similar
14198 things can be used by other tools.
14200 * shapes/SDL/inout.shape
14201 * shapes/SDL/return.shape: fixed some typos
14203 2000-10-09 James Henstridge <james@daa.com.au>
14205 * objects/custom/shape_info.c (parse_path): apply patch from
14206 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
14209 2000-10-08 James Henstridge <james@daa.com.au>
14211 * objects/standard/image.c (image_set_props): if the file could not
14212 be loaded, show the broken image icon.
14214 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
14216 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
14218 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
14219 object icon when loading from a file. This allows you to have PNG
14220 icon files for shapes.
14222 2000-10-07 James Henstridge <james@daa.com.au>
14224 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
14226 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
14227 GDK_IMLIB_CFLAGS reference.
14229 * app/commands.c (help_about_callback): remove imlib code.
14231 * lib/dia_image.c: only include the pixbuf version of the image
14234 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
14236 * configure.in (CPPFLAGS): remove the check for imlib, as we now
14237 require gdk-pixbuf.
14239 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
14240 conditionally define \setfont as well.
14242 2000-10-05 James Henstridge <james@daa.com.au>
14244 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
14245 preamble so that we define \setlinejoinmode and \setlinecaps
14246 commands conditionally on them being undefined. This way, the
14247 pstricks output files should work without modification, and will
14248 support the commands when they are implemented in pstricks.
14250 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
14252 * dia.desktop: added hungarian translations to dia.desktop
14254 2000-10-04 James Henstridge <james@daa.com.au>
14256 * sheets/UML.sheet: fix typo.
14258 * objects/custom/shape_info.c: use strtod instead of g_strtod.
14259 (parse_path): actually call setlocale around strtod calls.
14261 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
14262 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
14263 the g_strtod wrapper.
14265 * shapes/SDL/: add SDL shapes from Rubens Ramos
14266 <rubens_ramos@yahoo.com>
14268 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
14270 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
14272 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
14273 W. Michael Petullo <mike@flyn.org>.
14275 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
14276 from the 0.86 tarball) and jigsaw.sheet.
14278 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
14280 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
14282 * shapes/network/: add network-additional shapes here.
14284 * sheets/network.sheet: add the network-additional shapes from
14285 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
14288 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
14290 * configure.in: Updated ALL_LINGUAS
14292 * po/nl.po: Removed newline from translation
14294 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
14296 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
14297 logo filename generation.
14299 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
14300 Avoiding "//dia_logo.png".
14302 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
14304 * app/filedlg.c: add include <sys/types.h> to
14305 remove warning. (OS/2)
14307 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
14309 * objects/chronogram/chronoline_event.c (reparse_clevent):
14310 the __checksum routine was simply bogus. Redone it in a slightly
14311 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
14313 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
14315 * app/create_object.c (create_object_button_press):
14316 * app/modify_tool.c (click_select_object):
14317 * lib/object.h: select renamed to selectf to prevent
14318 compiler problems with function select(). OS/2 version.
14320 2000-09-08 Karsten Weiss <knweiss@gmx.de>
14322 * po/de.po: Updated.
14324 2000-09-07 Karsten Weiss <knweiss@gmx.de>
14326 * dia.desktop: Added German translation
14327 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
14329 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
14331 * configure.in (ALL_LINGUAS): added "es"
14333 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14338 * app/scroll_tool.c:
14339 Standardized cursor function get_cursor(). Magnify now has
14340 looking-glass cursor with + and -.
14342 * app/create_object.c (create_object_button_press):
14343 Newly created connections now snap to connection points even when
14346 2000-08-17 Daniel Egger <egger@suse.de>
14348 * app/menus.c: #ifdef'ed some code for the none GNOME
14350 * app/dia_embedd.c: Changed obvious hackery. Can anyone
14351 please have a look at the GNOME UI menu creation? The
14352 gnome-app-helper code is ages old and plainly broken!
14354 2000-08-15 Daniel Egger <egger@suse.de>
14361 * app/select.c: First big patch to get the menus
14362 working again in the international version. Copied
14363 some code written by Sven and me from GIMP and
14364 thus implemented automatic tearoffmenu creation and
14365 proper translation. I also removed that pseudo
14366 radiomenu hack and cleaned up several translation
14367 hacks which have never really worked. All in all
14368 this is part I of the big menu patch. Enjoy and tell
14369 me if you detect any problems.
14371 2000-08-14 Daniel Egger <egger@suse.de>
14373 * sheets/UML.sheet: Changed one German translation as
14374 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
14376 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
14378 * app/diapagelayout.c:
14379 * lib/diagramdata.c:
14380 * lib/diagramdata.h:
14383 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
14384 selecting paper size for a new diagram. TODO: Use libpaper if
14385 available and use gnome_paper-stuff if using GNOME.
14387 * sheets/Electric.sheet: fixed typo.
14389 2000-08-08 James Henstridge <james@daa.com.au>
14391 * po/README: added a readme file to tell translators to translate
14392 the .sheet files as well.
14394 * app/commands.c (help_about_callback): fix small bug where we tried
14395 to gdk_bitmap_unref() the mask for the about box image, even though
14396 it was NULL. Now check for a NULL mask.
14398 2000-08-07 Daniel Egger <egger@suse.de>
14400 * sheets/*.sheet: Added translations for the name
14401 in the toolbar tab. Brushed up some descriptions
14402 and some translations a bit.
14404 2000-08-06 James Henstridge <james@daa.com.au>
14406 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
14407 identifier and dtd url for SVG output.
14408 (new_svg_renderer): fix the output of the viewBox output. The
14409 second two numbers are the width and height -- not the right
14410 and bottom sides of the box.
14412 * shapes/*/*.shape: update svg namespace URI.
14414 * objects/custom/shape_info.c (load_shape_info): change the
14415 namespace URI for custom shapes yet again to match the Candidate
14416 Recommedation. It looks like this one will probably be the final
14419 * app/display.c (new_display): remove the code that sets ic and
14420 ic_attr members to NULL, as one of the previous function calls
14421 causes the display to be realised. This means that the ic gets
14422 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14425 2000-08-06 James Henstridge <james@daa.com.au>
14427 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14429 * NEWS: fixed date in NEWS file, as I will release today.
14431 * README: updated the README a little. Added note that Dia is now
14434 * dia.spec: fix up spec file.
14436 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14438 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14439 get heaps of warnings when you turn off debugging.
14440 Also made a few other warning fixes.
14442 2000-08-02 James Henstridge <james@daa.com.au>
14444 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14446 * configure.in: update version number.
14448 2000-08-01 James Henstridge <james@daa.com.au>
14450 * app/commands.c (help_about_callback): add Hans to about dialog.
14452 * doc/shape.dtd: dtd for shape file format.
14454 * doc/custom-shapes: update doc file about creating custom shapes.
14456 * shapes/*/*.shape: change namespace URI for the SVG portion to the
14457 one for the latest draft.
14459 * shapes/*/*.shape: fix up rect definitions.
14461 * objects/custom/shape_info.c (load_shape_info): recognise newer
14462 namespace tag for SVG.
14463 (parse_svg_node): the rect element should take attributes x, y, width
14464 and height -- not x1,y1,x2,y2.
14466 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14467 output to use the newest draft DTD.
14469 * plug-ins/svg/svg.c: initialisation code for plugin.
14471 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14473 * plug-ins/svg/Makefile.am: makefile for svg plugin.
14475 * app/app_procs.c (internal_plugin_init): don't register the svg
14476 export filter here.
14478 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14480 2000-07-31 James Henstridge <james@daa.com.au>
14482 * objects/standard/textobj.c (textobj_get_defaults):
14483 * objects/standard/polygon.c (polygon_get_defaults):
14484 * objects/standard/image.c (image_get_defaults):
14485 * objects/standard/ellipse.c (ellipse_get_defaults):
14486 * objects/standard/box.c (box_get_defaults):
14487 * objects/standard/beziergon.c (beziergon_get_defaults):
14488 * objects/flowchart/parallelogram.c (pgram_get_defaults):
14489 * objects/flowchart/ellipse.c (ellipse_get_defaults):
14490 * objects/flowchart/diamond.c (diamond_get_defaults):
14491 * objects/flowchart/box.c (box_get_defaults):
14492 * objects/custom/custom_object.c (custom_get_defaults):
14493 * objects/FS/flow.c (flow_get_defaults):
14494 * objects/FS/flow-poly.c (flow_get_defaults):
14495 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14498 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14499 widgets for various object types.
14500 (create_dialog): ref and sink the no_defaults_dialog.
14502 * app/preferences.c (prefs_create_dialog): change
14503 gtk_container_border_width call to gtk_container_set_border_width.
14505 2000-07-29 James Henstridge <james@daa.com.au>
14507 * app/commands.c (view_aa_callback): show a warning dialog if
14510 * app/interface.c (fill_sheet_menu): don't add a menu item for
14513 2000-07-26 James Henstridge <james@daa.com.au>
14515 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14517 * app/menus.c: remove edit grid menu item.
14519 * app/commands.[ch] (view_edit_grid_callback): removed.
14521 * app/display.c (new_display): don't initialise removed Grid members.
14523 * app/grid.c: remove unused functions.
14525 * app/grid.h: remove dialog related stuff from Grid structure.
14526 Remove prototypes for dialog functions.
14528 * app/menus.c: add to menus
14530 * app/commands.[ch] (view_diagram_properties_callback): new command
14531 for showing the diagram properties dialog.
14533 * app/dia-props.[ch]: a new diagram properties dialog. To replace
14534 the edit grid dialog.
14536 2000-07-25 James Henstridge <james@daa.com.au>
14538 * app/grid.c (grid_x_update):
14539 (grid_y_update): as the grid setting is stored with the diagram,
14540 update all displays when a change is made.
14542 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14544 * app/create_object.c (create_object_button_press):
14545 (create_object_motion): use new snap_to_grid signature.
14547 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14548 and handle invisible grid lines.
14549 (snap_to_grid): use new grid settings. Also changed signature to
14550 take a DDisplay rather than Grid pointer.
14551 (grid_show_dialog): get the defaults from the correct place.
14553 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14555 * app/diagram.c (new_diagram): set the grid size defaults from the
14558 * app/load_save.c (diagram_data_save): save grid and guide info to
14560 (diagram_data_load): add guide and grid load support.
14562 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14565 * lib/diagramdata.h: add members to DiagramData for grid and guide
14568 * configure.in (BONOBO_LIBS): update configure scripts
14570 * app/dia.oafinfo: oafinfo file for dia embeddables.
14572 * app/dia_embedd.c: add OAF support.
14574 2000-07-24 James Henstridge <james@daa.com.au>
14576 * plug-ins/wpg/Makefile.am:
14577 * plug-ins/pstricks/Makefile.am:
14578 * plug-ins/hpgl/Makefile.am:
14579 * plug-ins/dxf/Makefile.am: same here.
14581 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
14582 the required libraries, and the link line was causing libtool not
14583 to build a shared library on some systems :(
14585 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
14586 be checking x, not n.
14588 2000-07-23 James Henstridge <james@daa.com.au>
14590 * app/preferences.c (prefs_data): set the "reset tools after
14591 create" preference to true by default. That seems to be what most
14594 * app/interface.c (create_sheets): instead of a notebook, use an
14595 option menu that updates the sheet tools. The notebook tabs were
14596 getting a bit unwieldly, so the option menu should fix that. This
14597 also reduces the number of widgets in the tools radio button
14598 group, which should make the UI a little more responsive.
14600 2000-07-19 Fatih Demir <kabalak@gmx.net>
14602 * configure.in: Added tr to ALL_LINGUAS.
14603 [ Yeah, we're now having a Turkish translation,
14606 * dia.desktop: Added the Turkish entries.
14608 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
14610 * doc/diagram.dtd: changed string-element so it conforms to the
14613 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
14615 * configure.in: added chinese.
14616 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
14624 objects/custom/shape_info.c:
14625 shapes/Circuit/npn.shape:
14626 shapes/Circuit/pnp.shape:
14627 sheets/*.sheet: dia now works with libxml2.
14628 Libxml2 is a bit more picky when parsing xml and reported errors on all
14629 sheet files because they use non ascii characters (added
14630 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
14631 I commented out these.
14633 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
14635 * configure.in (ALL_LINGUAS): added Italian
14637 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
14639 * configure.in (ALL_LINGUAS): added Korean
14641 2000-06-25 James Henstridge <james@daa.com.au>
14643 * objects/flowchart/parallelogram.c (pgram_create): use default font
14644 and add properties interface support.
14646 * objects/flowchart/ellipse.c (ellipse_create): use default font and
14647 add properties interface support.
14649 * objects/flowchart/diamond.c (diamond_create): use default font and
14650 add properties interface code.
14652 * objects/flowchart/box.c (box_create): use default font.
14654 * objects/custom/custom_object.c (custom_create): use default font
14657 * objects/standard/textobj.c (textobj_create): update to use default
14660 * lib/attributes.c: add implementations.
14662 * lib/attributes.h (attributes_[gs]et_default_font): add function
14663 prototypes for setting/getting a default font.
14665 2000-06-24 James Henstridge <james@daa.com.au>
14667 * app/paginate_gnomeprint.h: updated prototype.
14669 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
14670 diagram page settings.
14672 * objects/standard/beziergon.c (beziergon_copy): same here.
14674 * objects/standard/polygon.c (polygon_copy): copy the fill colour
14678 * app/tool.h (tool_options_dialog_show):
14679 * app/scroll_tool.h (free_scroll_tool):
14680 * app/render_svg.h:
14681 * app/render_libart.h (renderer_libart_copy_to_window):
14682 * app/render_gdk.h (renderer_gdk_copy_to_window):
14683 * app/properties.h (properties_hide_if_shown):
14684 * app/preferences.h (prefs_load):
14685 * app/object_ops.h:
14686 * app/modify_tool.h (free_modify_tool):
14687 * app/magnify.h (free_magnify_tool):
14688 * app/linewidth_area.h (linewidth_area_create):
14689 * app/layer_dialog.h:
14690 * app/handle_ops.h (handle_is_clicked):
14692 * app/grid.h (grid_destroy_dialog):
14693 * app/defaults.h (defaults_show):
14694 * app/cut_n_paste.h (cnp_exist_stored_objects):
14695 * app/create_object.h (free_create_object_tool):
14696 * app/connectionpoint_ops.h (diagram_unconnect_selected):
14698 * app/color_area.h (color_area_create):
14699 * app/app_procs.h (app_is_embedded): remove extern keyword from
14700 function prototypes.
14703 * lib/sheet.h (load_all_sheets):
14704 * lib/render_store.h:
14705 * lib/render_object.h (render_object_load):
14706 * lib/polyshape.h (polyshape_closest_segment):
14707 * lib/poly_conn.h (polyconn_closest_segment):
14710 * lib/objchange.h (new_object_state_change):
14711 * lib/neworth_conn.h (neworthconn_add_segment):
14712 * lib/message.h (message_error):
14715 * lib/font.h (font_descent):
14716 * lib/focus.h (remove_focus):
14718 * lib/diagramdata.h:
14719 * lib/dia_xml.h (data_add_composite):
14721 * lib/connpoint_line.h:
14722 * lib/connection.h (connection_move_handle):
14724 * lib/attributes.h (attributes_set_default_line_style):
14725 * lib/arrows.h (arrow_draw): remove extern keyword from function
14726 definitions. It is not required for functions.
14728 * plug-ins/dxf/Makefile.am (INCLUDES):
14729 * plug-ins/pstricks/Makefile.am (INCLUDES):
14730 * plug-ins/cgm/Makefile.am (INCLUDES):
14731 * objects/SADT/Makefile.am (INCLUDES):
14732 * objects/chronogram/Makefile.am (INCLUDES):
14733 * objects/GRAFCET/Makefile.am (INCLUDES):
14734 * objects/flowchart/Makefile.am (INCLUDES):
14735 * objects/sybase/Makefile.am (INCLUDES):
14736 * objects/FS/Makefile.am (INCLUDES):
14737 * objects/standard/Makefile.am (INCLUDES):
14738 * objects/network/Makefile.am (INCLUDES):
14739 * objects/UML/Makefile.am (INCLUDES): same here.
14741 * objects/ER/Makefile.am: changed inclusion of some macros to
14744 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
14745 handle the plug in extension, rather than have all the #ifdef's in
14748 * plug-ins/Makefile.am: add renderer.inc to dist.
14750 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
14752 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
14754 * lib/plug-ins.c: Handle OS/2 dll's too.
14756 2000-06-07 James Henstridge <james@daa.com.au>
14758 * app/plugin-manager.c (get_plugin_manager): set some table
14759 packing options to make it look a little nicer.
14761 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
14762 makefiles for these plug-ins.
14764 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
14766 * configure.in: added hpgl and wpg directories to build. Added
14767 note about whether gnome-print support was enabled, and noted that
14768 it is not recommended.
14770 2000-06-06 James Henstridge <james@daa.com.au>
14772 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
14773 a little work, but I am checking them in so I don't lose them.
14775 2000-06-01 James Henstridge <james@daa.com.au>
14777 * objects/standard/arc.c: added extra properties.
14779 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
14780 was using the wrong index into the handles array. This gets corner
14781 type changing working correctly.
14783 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
14784 to properties code (no editing or loading yet though). Also added
14785 support for point array manipulation through the offsets interfaces.
14787 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
14789 * app/interface.c (origin_button_press): changes so the origin
14790 button doesn't grab the pointer when we pop up the menu.
14792 * app/commands.c (help_about_callback): fix small memory leak in
14795 * app/menus.c (menus_init): fixed breakage I introduced in the non
14796 gnome menus when I was doing the menu changes. The tearoffs work
14797 really nicely in plain gtk mode as well.
14799 * objects/standard/beziergon.c (beziergon_create): changed the
14800 returned handles to match the handle numbering changes. Now
14801 segment addition and removal works correctly with undo!
14803 * lib/beziershape.c: various changes to the code. Changed the
14804 numbering of handles, and fixed the segment removal code.
14806 2000-05-31 James Henstridge <james@daa.com.au>
14808 * objects/standard/beziergon.c: remove connection point handling.
14809 There is still a bit of work to be done to get adding and removing
14810 of segments working correctly.
14812 * lib/beziershape.c: add connection point handling to beziershape.
14813 I set it for two connection points per segment.
14815 2000-05-30 James Henstridge <james@daa.com.au>
14817 * objects/standard/polygon.c: don't do connectionpoint handling.
14819 * lib/polyshape.c: changed to handle connection points internally.
14820 Also, don't worry about connections to handles on polyshape, as
14821 all handles are non connectable.
14823 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
14825 * configure.in: Added finnish
14827 2000-05-30 James Henstridge <james@daa.com.au>
14829 * sheets/*.sheet: translation updates to the .sheet files.
14831 * po/fr.po: updated po file from Christophe Merlet.
14833 * menus.h: removed prototypes for functions which have been removed.
14835 2000-05-29 James Henstridge <james@daa.com.au>
14837 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
14838 item in the option menu when changing selected diagram.
14840 * app/dia_embedd.c (view_factory): fix up function to work with new
14843 * app/disp_callbacks.c (ddisplay_realize): remove call to
14844 display_set_active from here.
14845 (ddisplay_canvas_events): move call here. This gets rid of all the
14846 warnings, as the renderer has been fully set up correctly at this
14849 * app/menus.c (menus_init): add the tearoff item to the start of the
14852 * app/app_procs.c (create_user_dirs): we don't need to create the
14853 menus directory anymore.
14855 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
14856 necessary to update the menu state here, as it was done when the
14857 active display was set.
14859 * app/display.c (display_set_active): update the menu state when
14860 changing active displays.
14862 * app/interface.c (origin_button_press): set the display as active
14863 when a click is made on the menu button.
14865 * app/menus.c (menus_init): set up a quit function to save the accels
14867 Add tearoff items for the non GNOME menus, add accelerators for
14868 several GNOME menus.
14870 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
14871 menus_get_image_menu().
14873 * app/menus.c (menus_get_item_from_path): use display_menus here
14874 rather than ddisp->popup.
14876 * app/display.h: remove the popup member in the DDisplay structure.
14878 * app/interface.c: remove option of not using wrap box.
14879 (create_toolbox): change to always use menus_get_toolbox_menubar
14880 even when using gnome menus.
14881 (create_display_shell): use menus_get_image_menu to load accelerators
14882 only -- not the actual popup menu.
14884 * app/menus.c (menus_init): new function to create the menus.
14885 (menus_get_toolbox_menubar): use this function whether gnome is
14886 in use or not. Changed to use menus_init.
14887 (menus_get_image_menu): same here. Also, now this function always
14888 returns the same menu, rather than a new one each time.
14889 (menus_init): read a menurc file to load accelerators here.
14891 2000-05-28 James Henstridge <james@daa.com.au>
14893 * app/display.c (ddisplay_really_destroy): unset active display if
14894 active display is destroyed.
14895 (ddisplay_active): simplify function to return active_display as set
14896 by display_set_active. This allows using a pinned menu with any
14897 display -- not just the one it was popped up from.
14898 (display_set_active): notify the layer dialog of change of diagrams
14899 when active diagram changes.
14901 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
14902 on button and key presses.
14903 (ddisplay_realize): set active display on realize.
14905 * app/display.c (display_set_active): simple implementation of this
14908 * app/display.h (display_set_active): add prototype for setting
14909 the active display.
14911 * app/interface.c (create_display_shell): don't give focus to the
14914 * app/menus.c: fix up menus for Beziergon.
14916 * app/interface.c (create_display_shell): make the widget in the
14917 top left corner a button that can be used to pop up the right click
14918 menu, like in gimp and sketch.
14920 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
14923 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
14924 add code to set corner types for beziergon.
14926 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
14928 (beziershape_move_handle): use the previous corner type for right
14931 * app/interface.c (tool_data): add beziergon to toolbox.
14933 * objects/standard/standard.c (dia_plugin_init): initialise the new
14934 Beziergon object type.
14936 * objects/standard/beziergon.c: an object based on BezierShape.
14938 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
14940 * lib/beziershape.[ch]: new files implementing a bezier shape.
14942 2000-05-26 James Henstridge <james@daa.com.au>
14944 * lib/text.c (text_key_event): handle multibyte inserts.
14945 (text_key_event): also add home and end keybindings.
14947 * app/interface.c (create_display_shell): connect handlers for
14948 focus_in_event, focus_out_event, realize and unrealize signals.
14950 * app/display.[ch] (new_display): initialise input context members.
14952 * app/disp_callbacks.[ch]: added XIM support here.
14954 * lib/font.c (suck_font): the black and white pixel values should be
14955 taken from a 1 bit colormap rather than the default colormap.
14957 Hans Breuer's Windows patches ...
14959 * lib/font.c: use Courier New for fixed width font on windows
14962 * lib/dia_image.h: change to "struct _DiaImage".
14964 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
14966 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
14967 mouse button for object menu. This will make two button mouse owners
14970 2000-05-25 James Henstridge <james@daa.com.au>
14972 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
14974 * app/app_procs.c (app_init): add extra NULL argument to call of
14977 * app/load_save.h: remove prototype.
14979 * app/load_save.c: remove diagram_data function here.
14981 * app/diagram.h: added prototype.
14983 * app/diagram.c (diagram_load): new function here, which uses import
14986 * plug-ins/dxf/dxf.c: register the import filter as well.
14988 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
14989 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
14991 * objects/standard/line.c: add start_point and end_point properties
14992 to standard line object.
14994 2000-05-21 James Henstridge <james@daa.com.au>
14996 * app/paginate_psprint.c: added missing include of locale.h.
14998 * objects/custom/custom_object.c (custom_draw): use fabs rather than
14999 abs for scaling factors.
15000 (custom_distance_from): same here.
15002 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
15004 2000-05-18 James Henstridge <james@daa.com.au>
15006 * po/POTFILES.in: updated POTFILES.in.
15008 * dia.spec: incremented version number in spec file.
15010 * NEWS: added (lots of) news items for the 0.85 release.
15012 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
15015 * configure.in: updated version number here.
15017 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
15019 2000-05-17 James Henstridge <james@daa.com.au>
15021 * app/app_procs.c (internal_plugin_init): register the native import
15024 * app/load_save.c (diagram_data_load, diagram_load): split this
15025 function into two -- one that does all the work on the DiagramData
15026 structure, and the other that provides compatibility with the old
15028 (dia_import_filter): use diagram_data_load to define an import
15031 * app/diagram.h (new_diagram): added const to prototype.
15033 * app/filedlg.c (file_open_callback): change to use new import filter
15036 * lib/filter.c: added import filter management functions.
15038 * lib/filter.h: added prototypes for import filter interface.
15040 * app/commands.c (help_about_callback): updated about dialog to
15041 contain a few more names.
15043 2000-05-16 James Henstridge <james@daa.com.au>
15045 * configure.in (Configuration): added a status message to the end of
15046 the configure script to give the user some idea of what was
15049 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
15051 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
15054 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
15057 * configure.in (AM_PATH_LIBART): use the check function provided
15058 with libart rather than our own code. It is more reliable, and
15059 it only requires that people who build out of CVS have libart.m4
15060 installed (not necessarily all of libart).
15061 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
15063 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
15065 * dia.desktop: Added Swedish translation.
15067 2000-05-09 James Henstridge <james@daa.com.au>
15069 * lib/dia_xml.c: you can't free a const pointer, so remove const
15070 from variable definitions.
15072 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
15073 initialised correctly.
15075 * app/render_svg.c (export_svg): set locale to C.
15077 * app/paginate_psprint.c (paginate_psprint): set locale to C.
15079 * app/render_eps.c (export_eps): set locale to C for EPS export.
15081 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
15082 (data_add_point): same here.
15083 (data_add_rectangle): same here.
15084 (data_real): use g_strtod to convert strings to real numbers, so that
15085 locales are taken into account.
15086 (data_point): same here.
15087 (data_rectangle): same here.
15089 * AUTHORS: added Henk and Jacek to authors file.
15091 Daniel Egger's code cleanups.
15093 * app/select.c (select_invert_callback): remove unused variable.
15095 * app/plugin-manager.c (get_plugin_manager): fix typo.
15097 * app/load_save.c (read_connections, write_objects):
15098 (write_connections): made some functions static.
15100 * app/interface.c (toolbox_delete, toolbox_destroy): made some
15103 * app/filedlg.c (file_export_callback): remove unused variable.
15105 * app/app_procs.c: various warning fixes.
15107 Integrating Jacek Pliszka's pstricks export filter.
15109 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
15111 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
15112 renderer (with a few small modifications by me).
15114 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
15116 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
15118 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
15121 * sheets/Makefile.am:
15122 * shapes/Makefile.am:
15123 * shapes/Civil/Makefile.am:
15124 * sheets/civil.sheet:
15126 Added civil/hydraulic/structural engineering objects from
15127 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
15129 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
15131 * objects/FS/flow-poly.c:
15132 * objects/FS/flow.c:
15133 Fix division by zero in point_normalize().
15134 Patch by David Thompson <dcthomp@mail.utexas.edu>
15136 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
15139 * lib/bezier_conn.c:
15140 * lib/connpoint_line.c:
15141 Added checks for zero-length lines before calls to point_normalize.
15143 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15145 * app/preferences.c (prefs_data): Changed
15146 reversed_dragging_intersects to not make the dialog ridiculously
15149 2000-04-22 James Henstridge <james@daa.com.au>
15151 Hans's win32 patches:
15153 * app/export_png.c: include message.h
15154 * app/interface.c: include dia_dirs.h
15155 * app/linewidth_area.c: check for rint
15156 * app/main.c: include interface.h
15157 * app/paginate_psprint.c: remove unused variable.
15158 * app/preferences.c: include message.h
15159 * app/render_svg.c: include stdlib.h
15160 * app/select.c: include object_ops.h
15161 * lib/dia_dirs.c: miscelaneous fixes for win32.
15162 * lib/dia_image.c: include string.h
15163 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
15164 * lib/properties.c: include stdlib.h
15165 * lib/properties.h: define extra data for standard properties as
15166 static variables on win32 (to get around dynamic linker problems).
15167 * objects/standard/polygon.c: polygon_create_change missing return
15170 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
15172 * configure.in (ALL_LINGUAS): added Catalan
15174 2000-04-18 James Henstridge <james@daa.com.au>
15176 * objects/standard/bezier.c (bezierline_get_object_menu): add a
15177 separator to the object menu between the add/remove segment items
15178 and the corner type items.
15179 (bezierline_get_object_menu): add code to disable the menu item for
15180 the current corner type. Really just a cosmetic change.
15182 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
15183 a NULL for the label or with no associated callback.
15185 * objects/standard/bezier.c (bezierline_menu_items): use the
15186 enumeration values rather than numeric values for the corner types.
15188 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
15189 structure, and add code to handle it. Also, don't save the corner
15190 types inline in the bez_points node. The way it is conditionally
15191 including the element just feels like it will break.
15193 * lib/geometry.h (BezPoint): removed the corner_type stuff from
15194 BezPoint. The corner type stuff is a user interface level idea rather
15195 than something required by the renderer, so should be taken care of
15196 at the object level.
15198 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15200 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
15201 checks. Weren't able to reproduce original bug, tough.
15203 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
15205 * sheets/Electric.sheet:
15206 * sheets/Contact.sheet:
15207 * sheets/Pneumatic.sheet:
15208 * sheets/Circuit.sheet: sprayed some <br/>'s around.
15209 (added a few French translations in the last file)
15211 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15214 * lib/bezier_conn.h:
15215 * objects/standard/bezier.c:
15216 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
15217 bezier points. Only one minor problem known: Menus are active
15218 for endpoints minor handles.
15219 11:28: Save and load now works, too.
15220 (bezierconn_closest_major_handle): 12:03: New function to get the
15221 non-control point handle associated with the nearest control
15223 Also fixed the menu activation problem, and made remove_segment
15224 not remove the endpoint.
15226 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15228 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
15231 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
15233 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
15234 <sys/stat.h>. OS/2 patch.
15236 2000-04-15 James Henstridge <james@daa.com.au>
15238 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
15239 Thompson's patch that adds undo support to the function structure
15242 2000-04-14 James Henstridge <james@daa.com.au>
15244 * objects/custom/custom_object.c (custom_distance_from): new
15245 implementation of distance algorithm that actually takes the
15246 display list into account when calculating the distance. Much nicer
15247 than a simple bounding box.
15249 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
15251 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
15253 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15255 * objects/standard/polygon.c: Start of polygons own changes (for
15256 connectionpoints). Need to do seperate changes in polyshape, too,
15257 rather than reuse the bezier changes.
15259 2000-04-13 James Henstridge <james@daa.com.au>
15261 * lib/dia_image.c (dia_image_draw): use the new enumeration values
15262 from after the gdk-pixbuf cleanup.
15264 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
15265 on for loop. Last set of coefficients were not beeing calculated,
15266 which caused a bit of breakage.
15268 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
15269 functions in geometry.c for calculating the closest segment.
15270 (bezierconn_distance_from): use distance_bez_line_point to calculate
15273 * lib/geometry.c (distance_bez_line_point): new function to calculate
15274 the distance from an open bezier line to a point.
15275 (distance_bez_shape_point): new function to calculate the distance
15276 from a closed bezier shape.
15277 (distance_ellipse_point): new function to calculate the distance from
15278 a filled ellipse to a point.
15280 * lib/geometry.h (BezPoint): moved this structure here from render.h
15282 2000-04-12 James Henstridge <james@daa.com.au>
15284 * lib/geometry.c (distance_bez_seg_point): new function to calculate
15285 the distance from a bezier segment.
15287 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
15288 to calculate the distance from the object.
15290 * lib/geometry.c (distance_polygon_point): function for calculating
15291 the distance from a polygon to a point.
15293 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
15296 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
15297 breaks can be inserted in the tool box.
15299 * doc/sheet.dtd: updated the DTD
15300 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
15302 2000-04-12 James Henstridge <james@daa.com.au>
15304 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
15305 macro if the dialog is a GtkDialog :(
15307 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15309 * objects/standard/polygon.c: Connectionpoints now properly
15310 managed in a GList. As far as I can tell, this will not dieturb
15311 the order (but I have the nagging doubt...)
15313 * lib/polyshape.c: No longer knows about connectionpoints.
15315 2000-04-11 James Henstridge <james@daa.com.au>
15317 * app/Makefile.am: fix makefile for bonobo build.
15319 * configure.in: fix checks for bonobo.
15321 * app/menus.c: added entries for the plugin manager.
15323 * app/Makefile.am (dia_core_files): added plugin manager to files
15326 * app/plugin-manager.[ch]: the plugin manager dialog.
15328 * app/display.c (display_update_menu_state): set the antialiased
15329 menu entry to the correct value.
15331 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
15333 * objects/custom/custom_object.c: not all renderers like ellipses with
15334 negative dimensions. This could cause ellipses to disappear when using
15335 the flip_h and flip_v functions.
15337 * samples/grafcet.dia: fixed speling and correctness.
15339 2000-04-11 James Henstridge <james@daa.com.au>
15341 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
15342 exposed the dia_plugin_load and dia_plugin_unload functions.
15344 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
15345 already created PluginInfo structure.
15347 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
15350 * lib/sheet.c: fix up call to dia_config_filename.
15352 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
15353 file. This would save information such as which plugins not to
15354 load during startup.
15356 2000-04-09 James Henstridge <james@daa.com.au>
15358 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
15360 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
15362 * lib/plug-ins.c (dia_register_plugins):
15363 Don't free the value returned from g_getenv.
15365 2000-04-09 Anders Carlsson <andersca@gnu.org>
15367 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
15369 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
15371 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
15372 right to left, select objects that intersect the rubberbanding rectangle
15373 instead of selecting objects that are in the rectangle.
15375 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
15377 * lib/diagramdata.h: Likewise.
15380 2000-04-09 James Henstridge <james@daa.com.au>
15382 * lib/plug-ins.[ch]: add copyright messages to files.
15384 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
15387 * objects/sybase/sybase.c (dia_plugin_init):
15388 * objects/network/network.c (dia_plugin_init):
15389 * objects/flowchart/flowchart.c (dia_plugin_init):
15390 * objects/custom/custom.c (dia_plugin_init):
15391 * objects/chronogram/chronogram.c (dia_plugin_init):
15392 * objects/UML/uml.c (dia_plugin_init):
15393 * objects/SADT/sadt.c (dia_plugin_init):
15394 * objects/GRAFCET/grafcet.c (dia_plugin_init):
15395 * objects/FS/fs.c (dia_plugin_init):
15396 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
15399 * objects/standard/standard.c (dia_plugin_init): change over to new
15402 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
15403 the version checker for plugins.
15405 * app/app_procs.c: remove plugin loading code from here, and use
15406 code from plug-ins.[ch]. Also move registration of internal
15407 objects/filters to a `builtin' plugin.
15409 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
15411 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
15413 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
15414 defined variable in EXTRA_DIST.
15416 * app/preferences.h: removed dia_config_filename from header.
15418 * app/preferences.c: removed dia_config_filename function.
15420 * lib/dia_dirs.c (dia_config_filename): moved function over to this
15421 file. Also changed implementation slightly so that it should work
15422 on the win32 port correctly (and use NT home directories).
15424 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15425 it should have been.
15427 * lib/plug-ins.[ch]: new plugin loading code.
15429 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15431 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15433 * lib/polyshape.c: Fix closest segment finding, exposes deeper
15434 bugs in adding corners to 'wraparound' segment.
15436 * objects/standard/polygon.c: Added connection points (fixed so
15437 far), set menu sensitivity.
15439 * lib/polyshape.c: Changed to box-style handles, fixed for start
15440 and ends not being special, added initial connections,
15442 * lib/dummy_dep.h: Added polyshape (gotcha!)
15444 * objects/standard/pixmaps/ellipse.xpm:
15445 * objects/standard/pixmaps/box.xpm:
15446 Filled element pixmaps with white.
15449 * objects/standard/polygon.c:
15451 * objects/standard/standard.c:
15452 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
15453 * lib/Makefile.am (libdia_a_SOURCES):
15455 * app/interface.c (tool_data):
15456 Added Standard/Polygon object and PolyShape lib object. Still
15457 needs inside grab and connection points.
15459 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15462 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15465 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15466 if (argv) outside ifdefs.
15468 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15470 * objects/standard/image.c (image_set_props):
15471 Aspect ratio is back in town.
15473 * app/Makefile.am (dia_LDADD):
15476 Check for gdk_pixbuf (by default disabled, for now)
15478 * app/render_eps.c (draw_image):
15479 * app/render_libart.c (draw_image):
15480 * app/render_gnomeprint.c (draw_image):
15481 Support for alpha mask in rendering. Color postscript, too.
15485 Support for gdk_pixbuf and proper masking for exports.
15487 2000-04-01 Kjartan Maraas <kmaraas@online.no>
15489 * sheets/*.sheets: Updated Norwegian translations.
15491 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15493 * lib/text.c (text_insert_char):
15494 * lib/render_store.c (add_data):
15495 Made realloc double the alloced space rather than add
15496 a fixed amount, to reduce memory stress.
15498 * app/select.c: Added new select method 'Transitive'
15499 that select every reachable (by connections) object.
15501 2000-03-27 Kjartan Maraas <kmaraas@online.no>
15503 * dia.desktop: Added Norwegian translation.
15505 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15507 * app/render_eps.c:
15508 * app/render_svg.c:
15509 Don't dereference NULL pointer if the renderer
15510 couldn't open the file. Fix by Lars Clausen.
15511 Bug reported by Martin Chisholm <b1mt@unb.ca>
15513 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15517 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15519 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15521 * app/dia.gnorba (location_info):
15522 Changed to correct executable name.
15524 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15527 Don't do any argument parsing or initialization
15530 * app/dia_embedd.c:
15531 Call init_server_factroy before app_init.
15532 Call app_init with argv==NULL
15533 Now we don't get any critical error on startup.
15536 Add Electric and Pneumatic to makefile list.
15538 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
15540 * shapes/Electric/*:
15541 * sheets/Electric.sheet:
15542 Add some Electric circuit shapes.
15544 * shapes/Pneumatic/*:
15545 * sheets/Pneumatic.sheet:
15546 Add some Pneumatic & Hydraulic circuit shapes
15547 (both sheets are still incomplete, though feature enough
15548 things for basic circuits).
15550 * shapes/Contact/l_*.(xpm|shape):
15551 * sheets/Contact.sheet
15552 * shapes/Contact/Makefile.am
15553 made the older electric circuit shapes in Contact obsolete (disabled
15554 them in the sheet, made that sheet Ladder only). Fixed the makefile
15555 for forgotten items.
15557 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
15560 Add support for Dia bonobo component.
15561 Currently a bit raw, so it's commented out.
15563 * app/dia_embedd.c:
15565 New files for embedding dia.
15566 The menu disabling hack is a bit gross. Esp. for GNOME.
15569 Add new function app_is_embedded();
15572 Don't destroy diagram when last display is destroyed if embedded.
15575 Change initialization of display so it works with embedding.
15578 Clarify comment about display destruction.
15580 * app/interface.[ch]:
15581 Added top_level_window argument to create_display_shell.
15582 Don't open a top-level window if embedding.
15583 Don't quit app if trying to close toolbox window when embedding.
15584 Add toolbox_show() and toolbox_hide().
15587 Added app_is_embedded() function (just returns false).
15588 Added toolbox_show() call in main().
15591 Added code for getting toolbox menus. This is used to
15592 hide some menu items when running embedded.
15595 Include sheet.h to remove warning.
15597 * objects/UML/association.c:
15598 Clarify association direction text.
15600 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
15603 Fixed man page so whatis parsing works.
15605 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
15607 * app/render_libart.c (new_libart_renderer):
15608 Fix from segg <segg@infonet.ca> to compile without libart.
15609 I forgot to change the stub for new_libart_renderer when doing
15610 the interactive renderer stuff for libart.
15612 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
15614 * dia.desktop: Added Irish translation.
15616 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
15618 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
15620 * app/load_save.c (fchmod): OS/2 defines only.
15622 2000-03-07 James Henstridge <james@daa.com.au>
15624 * lib/properties.c (prop_get_widget): set the position in the option
15627 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
15630 * app/export_png.c:
15631 * app/render_libart.[ch]:
15632 Don't export png:s with an interactive libart renderer.
15634 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
15636 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
15638 2000-03-02 James Henstridge <james@daa.com.au>
15640 * dia.spec (%build): unset LINGUAS before running configure. This
15641 ensures that all translations get included in the RPM.
15643 * lib/properties.c (object_create_props_dialog): put in a check for
15644 a NULL return from the describe_props() object method.
15645 (prop_desc_lists_union): make sure that the returned array is not
15647 (prop_desc_lists_intersection): same here.
15649 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
15651 * objects/ER/Makefile.am:
15652 * objects/FS/Makefile.am:
15653 * objects/UML/Makefile.am:
15654 Don't link object libs with gtk.
15656 2000-02-29 James Henstridge <james@daa.com.au>
15658 * app/preferences.c (prefs_save): check to see if the file could
15659 be opened before writing the prefs.
15661 * app/disp_callbacks.c (popup_object_menu): pass the button event
15662 to gtk_menu_popup. This allows you to click and release to open
15664 (ddisplay_canvas_events): same here.
15665 (create_object_menu): set the object type menu item in the object
15666 menu to be insensitive.
15668 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
15669 as we are now requiring a new version of libxml.
15671 * dia.spec: updated version number. Added requirement for
15674 * configure.in: incremented version number to 0.84.
15675 Added check for libxml >= 1.8.5. This will prevent some of the
15676 problems people have had with broken libxml versions.
15678 * NEWS: added news items.
15680 * app/interface.c (create_color_area): removed call to realize parent
15681 widget. Segg <segg@infonet.ca> reported that it caused a warning,
15682 but I haven't seen it on my copy of dia.
15684 2000-02-28 James Henstridge <james@daa.com.au>
15686 * app/export_png.c: added copyright notice, and made the band height
15689 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
15691 * lib/font.c (suck_font):
15692 Fixed off-by one bug in font pixmap height.
15693 Fixes the problem with garbage at the bottom of some text in aa mode
15694 and in png exported files.
15696 2000-02-27 James Henstridge <james@daa.com.au>
15698 * app/app_procs.c: add the png export filter if it was compiled in.
15700 * app/export_png.c (export_png): new PNG export filter. This requires
15701 the libart renderer to work as it needs a renderer that renders to a
15704 * configure.in: add check for libpng.
15706 * lib/message.c (message_internal): use a GNOME dialog here as well.
15708 * app/display.c (ddisplay_close): use a GNOME dialog here.
15710 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
15711 when exporting to EPS. This is because some people said the EPS
15712 output was too large
15714 2000-02-26 James Henstridge <james@daa.com.au>
15716 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
15719 * app/app_procs.c (app_exit): use a GNOME dialog here.
15721 * app/preferences.c (prefs_create_dialog): if GNOME support is
15722 enabled, show a GNOME dialog.
15724 * app/grid.c (grid_draw): use preferences when drawing page break
15727 * app/preferences.c: add page break preferences to dialog.
15729 * app/preferences.h: added page break preferences.
15731 2000-02-25 James Henstridge <james@daa.com.au>
15733 * sheets/UML.sheet: added new objects.
15735 * objects/UML/uml.c: link in the two new objects.
15737 * objects/UML/node.c:
15738 * objects/UML/branch.c: new UML objects from Stfan Seefeld
15739 <seefelds@magellan.umontreal.ca>.
15741 2000-02-24 James Henstridge <james@daa.com.au>
15743 * objects/custom/custom_object.c: converted to use the properties
15744 interface. In the future, it would be nice to add support for
15745 defining custom properties for custom objects, but that can wait.
15747 2000-02-22 James Henstridge <james@daa.com.au>
15749 * sheets/Circuit.sheet: added new circuit shapes to sheet.
15751 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
15752 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
15753 and adds a few new features.
15755 2000-02-21 Daniel Egger <egger@suse.de>
15757 * sheets/*.sheets: Added German translations and made some
15758 corrections to the others.
15760 2000-02-21 James Henstridge <james@daa.com.au>
15762 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
15764 * shapes/Circuit/...: added new shapes from Erik Janssens.
15766 2000-02-20 James Henstridge <james@daa.com.au>
15768 * app/interface.c (create_color_area): realize the parent window
15771 * objects/standard/image.c: properties patch for standard image
15772 object, from Lars Clausen.
15774 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
15776 * lib/properties.h (PropType): added file property type.
15778 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
15781 * app/interface.c: use wrap box for toolbox.
15783 * app/Makefile.am: added new files.
15785 * app/gtk*wrapbox.[ch]: added wrap box widget.
15787 2000-02-19 James Henstridge <james@daa.com.au>
15789 * sheets/network.sheet: added extra shapes to networks sheet.
15791 * configure.in (AC_OUTPUT): added shapes/network/Makefile
15793 * shapes/network/*: added shapes that were posted to the list a while
15796 * shapes/Makefile.am (SUBDIRS): added network subdirectory
15798 * app/menus.c (toolbox_menu_items): don't right justify help menu for
15799 gtk+ version of menus.
15801 * app/properties.c (create_dialog): use a GnomeDialog if we happen
15804 2000-02-18 James Henstridge <james@daa.com.au>
15806 * objects/flowchart/box.c: set extra data for corner radius and text
15807 padding properties.
15809 * objects/standard/box.c: set extra data for corner radius property.
15811 * lib/properties.h: set extra data in some standard properties.
15813 * lib/properties.c (prop_get_widget): look at the extra data for
15814 int, real and enum property types. They now use GtkSpinButton and
15815 GtkOptionMenu respectively.
15817 * lib/properties.h: extra data members for creating property setting
15820 2000-02-17 James Henstridge <james@daa.com.au>
15822 * objects/flowchart/box.c: reverted load/save functions back to
15823 previous implementations. Made box use standard property names.
15825 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
15827 * app/grid.c: add more digits to the grid edit dialog. This patch
15828 was also from Lars Clausen.
15830 * objects/standard/zigzagline.c:
15831 * objects/standard/textobj.c:
15832 * objects/standard/polyline.c:
15833 * objects/standard/line.c:
15834 * objects/standard/ellipse.c:
15835 * objects/standard/box.c:
15836 * objects/standard/bezier.c:
15837 * objects/standard/arc.c: patches to add properties code to standard
15838 objects. Based on patches from Lars Clausen. I have also removed
15839 some dead code from the files.
15841 * lib/properties.h (PROP_STD_*): define a number of standard
15842 properties. Where appropriate, objects should include these
15843 properties in their PropDescription list. This way, the intersection
15844 of properties of two different shapes will be greater.
15846 2000-02-14 James Henstridge <james@daa.com.au>
15848 * objects/flowchart/box.c (box_load, box_save): use property save
15849 routines. Make sure that any props not handled by object_load_props
15850 are loaded before calling object_load_props, or we get errors because
15851 update_data is called.
15853 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
15854 error that could cause properties to be loaded incorrectly.
15855 (object_set_props_from_offsets): similar here.
15857 * lib/properties.[ch] (prop_{load,save}): functions for loading
15858 or saving a property in Dia's XML file format.
15859 (object_{load,save}_props): load or save some properties of an
15860 object. These functions should help simplify the load/save methods
15861 of objects that implement the properties interface.
15863 2000-02-13 James Henstridge <james@daa.com.au>
15865 * objects/flowchart/box.c: use offset code to simplify property
15868 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
15870 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
15872 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
15874 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
15876 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
15879 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
15882 Add the custom object to DIA_LIB_PATH in run_dia.sh
15884 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
15886 * sheets/Circuit.sheet:
15887 * shapes/l_sout* (NEW):
15888 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
15889 variants of simple, inverted, set and reset outputs.
15890 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
15891 probably a split of Contact and Ladder sheets. And then a major
15892 revamping of the Contact sheet.
15894 2000-02-10 James Henstridge <james@daa.com.au>
15896 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
15898 * app/app_procs.c (register_all_objects): don't explicitely
15899 register the custom objects library -- let it be loaded by the
15900 normal plugin loading methods.
15902 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
15904 * objects/custom/Makefile.am: build libcustom_objects as a shared
15907 * objects/custom/shape_info.[ch]: don't read the description field
15908 of custom shapes. It makes more sense to have these in the sheet
15909 file to localise the parts of dia that translators have to deal
15912 * objects/custom/custom_object.c (custom_object_new): do not
15913 create the sheet object for the new custom shape -- this is
15914 handled by the custom sheet code.
15916 * objects/custom/custom.c: change over to being a normal plug-in
15917 rather than being linked with the main dia executable.
15919 2000-02-09 James Henstridge <james@daa.com.au>
15921 * sheets/Circuit.sheet:
15922 * sheets/Flowchart.sheet:
15923 * sheets/Contact.sheet: fixed up sheets.
15925 * objects/custom/custom_object.c (custom_object_new): set the
15926 extra ObjectType fields.
15928 * lib/sheet.c: use extra ObjectType fields when creating sheet
15929 objects. Give a warning if <shape> tags are found in a sheet
15930 file. Now the custom sheet code does not know about custom
15931 shapes -- they look like any other object type.
15933 * lib/object.h (ObjectType): added extra members
15935 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
15937 * app/linewidth_area.c:
15938 Added code to set arbitrary line width.
15939 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
15941 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
15943 * app/linewidth_area.c:
15945 Add support for font-sucking.
15946 Implementation borrowed from gnome-canvas.
15948 * app/render_libart.[ch]:
15949 Implement text rendering.
15951 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
15953 * app/properties.c (create_dialog):
15954 ref and sink no_properties_dialog.
15956 2000-02-07 James Henstridge <james@daa.com.au>
15958 * app/group.c (group_describe_props): new function. Return the
15959 intersection of the properties of the contained objects that
15960 implement the describe_props interface.
15961 (group_get_props): implement by iterating through contained objects
15962 and calling their get_props method until all properties have been
15963 set. Maybe this should go through all objects all the time??
15964 (group_set_props): implement by calling set_props method on all
15966 (group_ops): use standard props dialog creation routines.
15968 * lib/properties.c (prop_desc_lists_intersection): fix implementation
15969 of intersection -- I was using i++ instead of i-- in a for loop :(
15971 * objects/custom/custom.c (custom_register_objects): fix usage
15972 of dia_get_data_directory again.
15974 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
15975 actually read the sheets.
15977 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
15979 Win32 port by Hans Breuer <Hans@Breuer.org>
15982 Remove DATADIR and LIBDIR defines.
15985 Add dia_dirs.c and dia_dirs.h
15986 Added DATADIR and LIBDIR defines.
15988 * lib/dia_dirs.[ch]:
15989 New files for handling special directories.
15994 * objects/custom/custom.c:
15995 Fix warnings. Use directory functions.
15998 Add prototype for diagram_redraw_all.
16000 * app/diaunitspinner.c:
16003 * app/preferences.c:
16007 Win32 doesn't have mkstemp and fchmod.
16009 * app/paginate_psprint.c:
16010 Win32 calls popen _popen and pclose _pclose.
16013 Win32 calls finite _finite.
16016 Win32 needs to dllexport the color vars.
16018 * objects/GRAFCET/step.c:
16019 * objects/chronogram/chronoref.c:
16020 snprintf -> g_snprintf
16022 2000-02-05 James Henstridge <james@daa.com.au>
16024 * lib/properties.c: more fixes so that it doesn't crash when using
16025 properties. The undo/redo stuff also works!!
16027 * objects/flowchart/box.c (box_{describe, get, set}_props): test
16028 object where I have implemented the new properties interface
16029 complete with automatic properties dialog generation.
16031 * lib/properties.c (object_apply_props): fixed stupid error when
16032 creating the old_props array. Also, it no longer frees the props
16033 array -- you will have to do that yourself.
16035 2000-02-04 James Henstridge <james@daa.com.au>
16037 * app/properties.c (properties_apply): pass object_part to
16040 * lib/object.h (ApplyPropertiesFunc): added widget argument.
16042 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
16043 created this way as well.
16045 * objects/*/*.c: ref and sink the properties dialog window for each
16046 widget. It can't rely on ref count being incremented by
16047 properties_show anymore.
16049 * app/properties.c (properties_show): don't ref the widget before
16050 removing it, or its ref count will increase each time you open the
16051 properties dialog. Don't unparent the widget, as container_remove
16054 * lib/object.h: fixed up prototypes for new object methods.
16056 * lib/properties.[ch]: added functions for automatically creating
16057 a properties dialog from the output of describe_props, get_props and
16059 (object_apply_props): apply properties and return an ObjectChange
16060 structure that can be used for undo.
16062 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
16064 * objects/GRAFCET/transition.c: minor leak plugged.
16066 * sheets/GRAFCET.sheet:
16067 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
16068 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
16070 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
16071 new ones (for condition.c).
16072 * objects/GRAFCET/action.c: added connection points for the conditions.
16073 * samples/grafcet.dia: updated the sample to improve conformance to
16074 IEC 848 and take advantage of dia's new features.
16076 * lib/geometry.h: (point_get_normed) fixed a typo.
16078 2000-02-02 James Henstridge <james@daa.com.au>
16080 * lib/object.h: added object functions describe_props, get_props and
16081 set_props. Do type definitions so that object.h doesn't need to
16082 include properties.h, since properties.h includes object.h.
16084 * lib/properties.[ch]: more hacking.
16086 * po/de.po: updated po file.
16088 2000-01-30 James Henstridge <james@daa.com.au>
16090 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
16091 check to see if the C compiler accepts the flag beforehand.
16093 * lib/properties.[ch]: start of properties code.
16095 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
16097 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
16099 * sheets/GRAFCET.sheet:
16100 * sheets/GRAFCET/etapemc.xpm: (NEW)
16101 * sheets/GRAFCET/etapesp.xpm: (NEW)
16102 * objects/GRAFCET/step.c: Added the macro and
16103 sub-program call step types.
16105 * objects/GRAFCET/receptivity.[ch]: renamed to
16106 objects/GRAFCET/boolequation.[ch].
16107 * objects/GRAFCET/transition.c: changed (Receptivity *) to
16110 * lib/connpoint_line.[ch]:
16111 * objects/chronogram/chronoline.c:
16112 * objects/chronogram/chronoref.c:
16113 * objects/GRAFCET/vergent.c:
16114 * objects/standard/line.c:
16115 * objects/SADT/box.c: Minor CPL interface changes, factored out the
16116 point count adjustment code into the CPL object.
16118 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
16120 * app/render_libart.c:
16121 Added support for images and bezier curves.
16122 Only text/fonts missing now.
16124 * app/render_gdk.c:
16125 Removed old erronous comment.
16127 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
16129 * objects/chronogram/chronoline_event.c: removed references to
16130 lround(). Please don't insist, I'm already red of shame.
16132 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
16134 * app/render_libart.[ch]:
16136 Non-finished libart renderer.
16139 Added HAVE_LIBART flag
16145 Call gdk_rbg_init().
16147 * app/connectionpoint_ops.c:
16148 * app/disp_callbacks.c:
16150 * app/handle_ops.c:
16152 * app/modify_tool.c:
16153 Change ddisp->renderer type from RendererGdk * to Renderer *
16154 Draw zoom and select rects in ddisp->canvas->window instead
16155 of ddisp->renderer->renderer->pixmap.
16157 * app/display.[ch]:
16158 Add aa_renderer to DDisplay, and support for it.
16159 New function ddisplay_set_renderer() for changing renderer.
16160 Add ddisplay_transform_coords_double() function, used by aa renderer.
16161 Change ddisp->renderer type from RendererGdk * to Renderer *
16164 Add antialias to menu.
16166 * app/commands.[ch]:
16167 add view_aa_callback function
16168 Change ddisp->renderer type from RendererGdk * to Renderer *
16170 * lib/geometry.[ch]:
16171 Added IntRectangle and int_rectangle_union.
16173 2000-01-28 James Henstridge <james@daa.com.au>
16175 * app/commands.h: removed prototypes.
16177 * app/commands.c: removed the functions that have been moved to
16180 * app/filedlg.h: added new prototypes.
16182 * app/filedlg.c (file_open_callback): move open dialog to this
16183 file. This implementation should remember the current directory
16184 between file loads.
16185 (file_save_as_callback): moved this dialog as well.
16186 (file_save_callback): moved this function here.
16188 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
16189 align page boundaries to the origin.
16191 * app/diagram.c (diagram_update_extents): redraw the diagram if the
16192 scaling factor changes while updating the extents. This is so the
16193 page breaks get redrawn correctly.
16195 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
16198 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
16199 For normal mode, use (0,0) as the origin. For `fit to' mode, use
16200 the corner of the bounding box.
16202 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
16203 into page setup dialog.
16204 (pagesetup_apply): apply new `fit to' attributes to the diagram.
16206 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
16207 (diagram_data_save): save `fit to' data.
16209 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
16210 (data_update_extents): when in `fit to' mode, update scale factor
16211 when we update the extents.
16213 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
16216 * .../.cvsignore: added some cvsignore files to quieten cvs.
16218 * app/pagesetup.c (pagesetup_changed): added code to change the
16219 scaling/fit to values as you change the options in the page setup
16220 dialog. I haven't added code so that the fit to options are saved
16223 * app/diapagelayout.[ch]: changed the scaling portion of the widget
16224 to make it easier to set a `fit to' style scaling factor.
16226 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
16227 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
16228 but connpoint_line-based, so that there's a connection point at the
16229 middle of each segment. Currently only the SADT arrow uses this.
16231 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
16233 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
16234 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
16235 saving and editing of properties (and default properties).
16236 See the new objects (GRAFCET, SADT, chonograms) for examples.
16237 For already too hairy stuff, see objects/chronogram/chronoline.c.
16239 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
16240 evenly spaced connection points, which the user can add or remove at
16241 will. An object can own several connection point lines. See the SADT
16242 Box, or the GRAFCET vergents for examples.
16244 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
16245 quiet about unused stuff.
16247 * objects/GRAFCET (NEW):
16248 * samples/grafcet.dia (NEW):
16249 Added support for GRAFCET charts.
16251 * objects/chronogram (NEW):
16252 * samples/chronograms.dia (NEW):
16253 Added support for chronograms (feature requested by Ronald L. Chichest;
16254 I found I'd use it often, too).
16256 * objects/standard/line.c: Replace the middle connectionpoint by
16257 a whole connection point line, which defaults to one point (hint,
16258 hint). New Line object menu to take advantage of this.
16259 "Bothwards" compatibility is preserved (although you may loose
16260 connections if you load a newer file in a older dia).
16262 * app/lineprops_area.c:
16264 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
16265 (feature requested by Benjamin Kahn).
16266 Merged in Steffen Macke's slashed arrow head type.
16268 * app/Makefile.am (app/run_dia.sh actually):
16269 Added $DEBUGGER in front of dia's invocation, so that
16270 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
16271 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
16272 "EFENCE=-lefence" to link with Electric Fence.
16274 * configure.in: Made gcc do more aggressive optimisations on i386, and
16277 2000-01-24 James Henstridge <james@daa.com.au>
16279 * lib/geometry.[ch]: added inline versions of functions. Used
16280 glib's G_INLINE_FUNC stuff, so it should still work on systems
16281 without inline funcs.
16283 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
16284 it outputs the correct element id for the ellipse objects.
16286 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16288 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
16289 object_add_handle_at. Message typo fixed.
16291 * lib/sheet.c (load_register_sheet):
16292 potential bug fixed (warning hunt).
16294 * objects/custom/custom.c (custom_object_load): disabled an assertion
16295 which made dia abort upon failure to load a shape file. Fixed a
16298 * objects/custom/shape_info.c (load_shape_info): Made the custom
16299 shape load code ignore XML comments between <?xml ...?> and the
16300 root object (mostly useful to put the emacs magic comments).
16302 * app/load_save.c: Made dia do backup copies of files when saving,
16303 and complain in case of failure.
16305 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16307 * AUTHORS: fixed my address (ISP thought it was a great idea to change
16312 * shapes/Contact/*:
16313 * sheets/Contact.sheet:
16314 * sheets/Makefile.am:
16315 Added support for Contact and LADDER charts.
16317 * dia.desktop: Added a French translation.
16319 2000-01-23 James Henstridge <james@daa.com.au>
16321 * app/commands.c (help_about_callback): don't die if can't load
16324 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
16325 out NaN's when performing bezier curve subdivision.
16327 * objects/custom/custom_object.c: initialise memory of Custom structs
16330 * app/render_svg.c (draw_image): added image support to the XML
16331 output filter. The image is just referenced, rather than being
16332 included inline, so if you copy the SVG file somewhere else, you
16333 may need to move the images or fix up the links.
16335 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
16336 so the text is not just displayed in black all the time.
16338 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
16340 * configure.in: fixed libpopt test so we wont try to build with
16343 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
16345 * configure.in: Added "uk" to ALL_LINGUAS.
16347 1999-12-24 James Henstridge <james@daa.com.au>
16349 * po/ru.po: updated russian translation from Valek Filippov.
16351 * app/render_svg.c (new_svg_renderer): make output use 19991203
16352 version of SVG DTD. Use viewBox to set the extents of the view.
16354 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
16355 ftp.gnome.org as the download.
16357 * TODO (TODO): weeded out completed todo items and added a few extra.
16359 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
16361 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
16362 be good to get rid of the object/shape distinction and separate
16363 the custom shape code out from the main application.
16365 * objects/custom/README, diagram.dtd: moved to new doc directory.
16366 Renamed the custom shapes README to custom-shapes. Also updated
16367 custom shape docs a bit and removed the section on sheet files, as
16368 that has changed a bit.
16370 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
16371 of the image data is larger than the maximum cell array. I should
16372 add code to break scan lines down further in this case, but for now
16373 an error message is better than an infinite loop.
16375 * app/filedlg.c (file_export_ok_callback): show a dialog if we
16376 couldn't determine the export filter to use.
16378 * app/commands.c (help_about_callback): fixed up about box logo
16379 expose bug. Now just use a GtkPixmap widget rather than a
16380 GtkDrawingArea and calling gdk_imlib_paste_image.
16382 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
16383 because automake does not always get things right.
16385 * configure.in: updated version number to 0.83.
16387 * app/preferences.c (prefs_save):
16388 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
16389 for fopen. Text is the default file mode anyway.
16391 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
16392 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
16393 * app/load_save.c (write_objects, write_connections):
16394 * app/filedlg.c (file_export_ok_callback):
16395 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
16396 * lib/dia_xml.c (data_add_point, data_add_rectangle):
16397 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
16398 snprintf to calls to g_snprintf.
16400 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
16401 as the picture name.
16403 1999-12-23 James Henstridge <james@daa.com.au>
16405 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
16406 negative numbers. This fixes the upside down text problem I was
16408 (draw_image): implemented the image code. It will try to split the
16409 image data up into bands if it is too big to fit into a single
16410 cgm cell array element. It will have problems if you try to insert
16411 an image wider than about 10,000 pixels though.
16413 * Makefile.am: use gnomedatadir for the files that need to be
16414 installed in gnome's datadir. This is mainly to help people doing
16415 packages for weird setups.
16417 1999-12-22 James Henstridge <james@daa.com.au>
16419 * plug-ins/cgm/cgm.c: added support for text. Now only images and
16420 beziers are left to do. The text seems to be the wrong way up
16421 still. This is probably a problem with character orientation
16422 element, but I have used what the settings given in the standard.
16423 Other than this, the CGMs dia produces are readable (and displayable)
16424 by ralcgm and corel draw.
16425 (draw_string): subtract from the X coord rather than the Y coord for
16426 center and right aligned text.
16428 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
16429 the size of a real number, and changed name of write_double to
16430 write_real. Consider changing to fixed real encoding. Also, now
16431 all element headers are correct. Once the real number encoding is
16432 fixed, only text, beziers and images are left to do.
16434 1999-12-21 James Henstridge <james@daa.com.au>
16436 * Makefile.am (SUBDIRS): recurse into plug-ins.
16438 * configure.in: add plug-ins directory makefiles to list.
16440 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
16441 not done yet. Also, the output files are not quite correct.
16443 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16444 font. It doesn't work if you do.
16446 1999-12-20 James Henstridge <james@daa.com.au>
16448 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16449 export the files. Instead, use filter_guess_export_filter to
16450 guess the correct format to save in and use the appropriate filter.
16451 It defaults to postscript for compatibility.
16453 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16456 * app/commands.[ch]: removed export to eps functions.
16458 * app/menus.c: removed export to eps menu items.
16460 * app/app_procs.c: register new export filters.
16462 * app/load_save.[ch]: define dia native export filter.
16464 * app/render_eps.[ch]: define eps export filter.
16466 * lib/filter.h: added diafilename argument to the DiaExportFunc
16467 prototype. This is useful for putting the source of the diagram
16468 into the output file for instance.
16470 * app/app_procs.c (app_init): register the SVG export filter. Have
16471 to get EPS code converted to this API, and maybe also allow saving in
16472 DIA's native format from the export dialog. In fact, it is now
16473 possible to load an export filter from a shared library and it will
16474 integrate into the interface correctly.
16476 * app/menus.c: removed references to the SVG renderer.
16478 * app/commands.[ch]: removed svg stuff.
16480 * app/diagram.[ch]: removed diagram_export_to_svg function.
16482 * app/render_svg.[ch]: added a DiaExportFilter structure for this
16485 * app/filedlg.[ch]: code for the new export diagram dialog. Will
16486 probably move the open/save dialogs to this file as well.
16488 1999-12-19 James Henstridge <james@daa.com.au>
16490 * lib/filter.[ch]: start of interface for generalised handling of
16491 filters. I have only done code for export filters so far. I still
16492 need to do the gui for this, and convert the current SVG and EPS
16493 filters to the new API.
16495 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
16496 weren't setting the last handle correctly. It was actually assigning
16497 to the wrong position in the handles array, so the last handle was
16498 left as NULL, which caused the segfault.
16500 * objects/standard/image.c (image_copy): modified routine so that
16501 it just adds a reference to the DiaImage structure in the new image
16502 object. This seems to have cleared up the problems with copying
16505 * dia.spec: spec file additions from John Gotts.
16507 1999-12-12 James Henstridge <james@daa.com.au>
16509 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
16510 has not been released yet though.
16512 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16515 The following based on a patch from Lars Clausen:
16517 * objects/standard/bezier.c (bezierline_move_handle): when performing
16518 the initial drag of the bezierline, move the control points to keep
16521 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16522 make the new control points a bit closer to the major point.
16524 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16525 as the reason for the move.
16526 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16529 * lib/handle.h: new handle move reasons.
16531 1999-12-09 James Henstridge <james@daa.com.au>
16533 * dia.spec: include the new files in RPMs.
16535 * Makefile.am: install these new files.
16537 * dia.keys.in: file describing actions and icon for dia diagrams for
16538 use in the gnome file manager.
16540 * dia.mime: a file defining the application/x-dia-diagram mime type.
16542 * dia-diagram.png: an icon for dia diagrams.
16544 1999-12-08 James Henstridge <james@daa.com.au>
16546 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16548 * plug-ins/python/pydia-display.[ch]: wrapper for display.
16550 * objects/standard/ellipse.c: applied Lars's patch to optionally not
16551 draw the background of the ellipse.
16553 * app/load_save.c (read_connections): do some sanity checking on the
16554 handle and connection point numbers before performing the object
16557 * lib/bezier_conn.c (bezierconn_load): give the correct number of
16558 handles when loading a BezierConn.
16560 1999-12-07 Kjartan Maraas <kmaraas@online.no>
16562 * sheets/*.sheet: Finished Norwegian translations.
16564 1999-12-07 James Henstridge <james@daa.com.au>
16566 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16567 (PyDia_GetObjectType): find object type function.
16569 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16570 method for diagrams.
16572 * plug-ins/python/pydia-object.c: added methods for DiaObject and
16575 * AUTHORS: added Lars and Cyrille to the authors file.
16577 * objects/standard/bezier.c (bezierline_add_segment_callback): place
16578 new point correctly.
16580 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16582 * lib/bezier_conn.c: applied Lars's patch for placement of the new
16583 point when adding a segment to a BezierConn.
16585 1999-12-06 James Henstridge <james@daa.com.au>
16587 * plug-ins/python/test.py: test script for the python plug-in.
16589 * plug-ins/python/python.c: this file contains the plug-in startup
16590 code for the python plugin. Right now, it just initialises the
16591 dia module and executes a script.
16593 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
16595 * objects/standard/bezier.c (bezierline_draw): draw control lines for
16596 bezier curve if we are using an interactive renderer (ie. only if
16597 displaying to the screen).
16599 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
16600 to draw control lines on to a bezier curve. Based on implementation
16603 * objects/standard/bezier.c (bezierline_delete_segment_callback):
16604 calculate segment number using closest_segment rather than
16605 closest_handle. Sometimes the closest handle is part of a different
16607 (bezierline_draw): use correct size for start arrow.
16609 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
16610 * lib/geometry.c (distance_line_point): added notes to documentation
16612 * app/object_ops.c (object_list_align_v):
16613 (object_list_align_h): fix of by one error when calculating free space
16614 for equal distance alignment.
16615 * app/menus.c (objects_align_h, objects_align_v): include align
16616 adjacent menu items in the gnome version of the menus.
16617 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
16618 align adjacent menu items correctly.
16621 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
16624 * objects/standard/bezier.c: converted bezierline to use BezierConn.
16625 Still a few bugs. It crashes on deleting line segments.
16627 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
16629 1999-12-05 James Henstridge <james@daa.com.au>
16631 * lib/bezier_conn.[ch]: start of BezierConn object
16633 * app/interface.c: add bezierline to toolbox.
16635 * objects/standard/standard.c: initialise bezierline.
16637 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
16638 made a few modifications to get it working nicely. It still needs
16639 a bit of work though. Maybe create a BezierConn object in lib.
16641 1999-12-02 James Henstridge <james@daa.com.au>
16643 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
16645 * plug-ins/python/Makefile.am: tried building everything. It is
16646 building as a library at the moment. I will have to convert it
16647 to a libtool library and add some initialisation code.
16649 * plug-ins/python/diamodule.c: start of the dia module, using the
16650 other object wrappers. Not complete.
16652 1999-12-01 James Henstridge <james@daa.com.au>
16654 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
16655 the handles and connections attributes.
16657 * plug-ins/python/pydia-layer.c: added functions that use
16660 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
16662 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
16664 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
16665 I am currently wrapping the basic elements in the diagram in python
16666 objects -- nothing to see or play with yet.
16668 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
16672 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
16674 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
16678 Added russian translation from Valek Filippov <frob@df.ru>
16680 1999-11-24 James Henstridge <james@daa.com.au>
16683 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
16684 discussed with Alex. Also added extra makefiles so that make install
16687 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
16689 * app/preferences.[ch]:
16691 Added snap to grid preference.
16692 Patch from Michael Leslie <mles@springboardwireless.com>
16694 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16700 * objects/custom/shape_info.c:
16701 All strings returned by libxml must be freed with free, not
16702 g_free, or there will be problems if you use memory debugging
16705 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16707 * app/create_object.[ch]:
16710 * app/commands.[ch]:
16712 * app/interface.[ch]:
16713 Reverted the tool menu patch. It has some 'issues'.
16714 I liked it though, so it'll probably return.
16716 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16718 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
16719 <bruce@cybersight.com> for some purify runs and analysis.
16720 Also a great thank you to Owen Taylor for creating MemProf, a
16721 free memory leak detector that was used to find and verify a
16722 lot of these fixes.
16725 * app/paginate_psprint.c:
16726 * app/render_eps.[ch]:
16727 * app/render_svg.[ch]:
16731 Don't add a reference to ddisp->shell. Why was this done in
16738 Free all strings returned from xmlGetProp
16740 * app/modify_tool.c:
16743 * objects/custom/custom.c:
16744 Use closedir() after opendir().
16746 * objects/custom/shape_info.c:
16747 User g_free() instead of "if (tmp) free(tmp)".
16750 Add newline at end of file.
16753 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
16755 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
16756 Adds tool menu and keyboard shortcuts.
16758 * app/create_object.[ch]:
16759 Use tool_set() instead of tool_reset().
16760 create_create_object_tool() takes extra type argument
16766 Moved tool_data here, export it.
16767 Add separate tool type for all create objects tools.
16768 new functions tool_set().
16771 New callback tool_set_callback.
16774 Moved some pixmaps to interface.c.
16777 Remove tool_data array (moved to tool.c).
16778 Use the tool_data from tool.c.
16779 Remove modify_tool_button global var.
16781 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
16783 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
16786 Interprets command-line arguments as files to open even when
16787 HAVE_POPT is not defined.
16790 Shift-clicking when zooming zooms out, like the Gimp.
16793 Has hotkeys for zoom-100% and snap-to-grid.
16795 1999-11-17 James Henstridge <james@daa.com.au>
16797 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
16798 that it is not jumpy.
16800 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
16802 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
16803 scrolling by pressing the shift key when using the scroll tool.
16805 * sheets/Makefile.am: fixed makefile so that install actually works
16806 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
16808 (SHEETS): install Circuit.sheet
16810 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
16811 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16813 * sheets/Circuit.sheet:
16816 * sheets/Flowchart.sheet:
16817 * sheets/UML.sheet:
16818 * sheets/network.sheet:
16819 * sheets/sybase.sheet:
16822 * sheets/Circuit.sheet:
16823 added some missing French translations
16826 killed the temporary sheet namespace
16828 * objects/custom/custom.c:
16829 obsolete comment cleaned up
16831 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
16835 Added portugese translation from Pedro Morais
16836 <pmmm@rnl.ist.utl.pt>
16838 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
16840 Changed all sheets to be specified in xml.
16841 All sheet objects removed from the C code.
16842 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16847 Updated version to 0.81cvs.
16850 Update run_dia.sh with sheet-dir.
16853 Load all sheets on startup.
16854 Create sheet directory first time.
16855 Don't call custom_register_sheets().
16858 Add sheetdir define
16861 Remove custom_register_sheets().
16864 Add sheet loading code.
16866 * sheet/Circuit.sheet:
16869 * sheet/Flowchart.sheet:
16871 * sheet/network.sheet:
16872 * sheet/sybase.sheet:
16875 * sheet/ER/weakentity.xpm:
16876 * sheet/UML/aggregation.xpm
16877 * sheet/UML/umlclass_template.xpm
16878 Added sheet pixmaps.
16879 These are moved from their old places.
16881 * sheet/.cvsignore:
16885 Removed sheet objects and sheet registration.
16887 * objects/ER/Makefile.am:
16888 * objects/ER/pixmaps/weakentity.xpm:
16889 * objects/UML/Makefile.am:
16890 * objects/UML/pixmaps/aggregation.xpm:
16891 * objects/UML/pixmaps/umlclass_template.xpm:
16892 Removed alternative pixmaps. (Moved to sheet).
16894 * objects/custom/Makefile.am:
16895 * objects/custom/load_sheet.[ch]:
16896 Removed old sheet loading code.
16898 * objects/custom/custom.c:
16899 Load all shapes instead of sheets.
16900 Removed custom_register_sheets().
16902 * objects/custom/custom_object.c:
16905 * objects/custom/shape_info.[ch]:
16906 Added shape_info_getbyname().
16908 * objects/flowchart/Makefile.am:
16909 * objects/flowchart/collate.shape
16910 * objects/flowchart/delay.shape
16911 * objects/flowchart/display.shape
16912 * objects/flowchart/document.shape
16913 * objects/flowchart/extract.shape
16914 * objects/flowchart/flowchart.c
16915 * objects/flowchart/intstorage.shape
16916 * objects/flowchart/magdisk.shape
16917 * objects/flowchart/magdrum.shape
16918 * objects/flowchart/magtape.shape
16919 * objects/flowchart/manualinput.shape
16920 * objects/flowchart/manualop.shape
16921 * objects/flowchart/merge.shape
16922 * objects/flowchart/offlinestore.shape
16923 * objects/flowchart/offpageconn.shape
16924 * objects/flowchart/or.shape
16925 * objects/flowchart/predefdproc.shape
16926 * objects/flowchart/preparation.shape
16927 * objects/flowchart/punchedcard.shape
16928 * objects/flowchart/punchedtape.shape
16929 * objects/flowchart/sort.shape
16930 * objects/flowchart/sumjunction.shape
16931 * objects/flowchart/terminal.shape
16932 * objects/flowchart/transaction.shape
16933 * objects/flowchart/transmittape.shape
16934 * objects/flowchart/pixmaps/collate.xpm
16935 * objects/flowchart/pixmaps/delay.xpm
16936 * objects/flowchart/pixmaps/display.xpm
16937 * objects/flowchart/pixmaps/document.xpm
16938 * objects/flowchart/pixmaps/extract.xpm
16939 * objects/flowchart/pixmaps/intstorage.xpm
16940 * objects/flowchart/pixmaps/magdisk.xpm
16941 * objects/flowchart/pixmaps/magdrum.xpm
16942 * objects/flowchart/pixmaps/magtape.xpm
16943 * objects/flowchart/pixmaps/manualinput.xpm
16944 * objects/flowchart/pixmaps/manualop.xpm
16945 * objects/flowchart/pixmaps/merge.xpm
16946 * objects/flowchart/pixmaps/offlinestore.xpm
16947 * objects/flowchart/pixmaps/offpageconn.xpm
16948 * objects/flowchart/pixmaps/or.xpm
16949 * objects/flowchart/pixmaps/predefdproc.xpm
16950 * objects/flowchart/pixmaps/preparation.xpm
16951 * objects/flowchart/pixmaps/punchedcard.xpm
16952 * objects/flowchart/pixmaps/punchedtape.xpm
16953 * objects/flowchart/pixmaps/sort.xpm
16954 * objects/flowchart/pixmaps/sumjunction.xpm
16955 * objects/flowchart/pixmaps/terminal.xpm
16956 * objects/flowchart/pixmaps/transaction.xpm
16957 * objects/flowchart/pixmaps/transmittape.xpm
16958 Moved shapes and their pixmaps to shapes/flowchart
16960 * shapes/Circuit/Makefile.am:
16961 * shapes/Circuit/index.sheet:
16962 Removed index.sheet.
16964 * shapes/Makefile.am:
16965 * shapes/flowchart/Makefile.am:
16966 * shapes/flowchart/*.shape:
16967 * shapes/flowchart/*.xpm:
16968 Added flowchart shapes. (Moved from objects/flowchart)
16971 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
16973 * app/app_procs.c: Fixed popt stuff.
16975 1999-11-01 James Henstridge <james@daa.com.au>
16977 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
16980 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
16984 Update version to 0.81.
16987 Update with news for 0.81.
16989 * shapes/Circuit/*:
16990 * shapes/Circuit_eu/*:
16991 Moved european circuit objects to Circuit sheet.
16993 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
16995 * lib/diagramdata.[ch]:
16996 Added layer_set_object_list() function.
16999 Added support for undo of reordered objects.
17000 Fix the undo of delete to keep the right order on undo.
17003 changed loop to object_add_updates_list() calls.
17004 Added undo support to bring to front/back.
17006 * app/disp_callbacks.c:
17007 * app/paginate_psprint.c:
17010 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
17012 This plugs some leaks. Thanks to
17013 Bruce Mitchener <bruce@cybersight.com> for running
17014 Dia through purify for me.
17017 Free displays and diagrams on exit.
17019 * app/modify_tool.c:
17020 Free gc when freeing tool.
17022 * lib/diagramdata.c:
17026 Free update and display lists when destroying display.
17028 * lib/diagramdata.c:
17029 Don't leak layer name.
17031 * objects/custom/load_sheet.c:
17032 * objects/custom/shape_info.c:
17033 Free loaded xml documents.
17035 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
17038 * app/object_ops.[ch]:
17039 Add undo handling to alignment ops.
17040 Based partially on patch by Dan Cohn <dan@internap.com>.
17042 * objects/standard/image.c (image_move_handle):
17043 Don't divide by zero for small images.
17044 Patch by Dan Cohn <dan@internap.com>.
17046 * objects/UML/class.c (umlclass_destroy):
17047 * objects/custom/custom_object.c (custom_destroy):
17048 Don't free connectionpoints before calling element_destroy
17049 which unconnects them.
17051 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
17053 * objects/custom/custom_object.c:
17054 Load and save padding too. Fixes strange load crashes.
17056 * app/group.c (group_destroy):
17057 Don't unconnect already freed connectionpoints when
17058 destroying group. Probably fixes bug reported by
17059 Elliot Lee <sopwith@redhat.com>.
17061 * app/render_gdk.c:
17062 Don't crash on zero-size (broken) bezier curves.
17063 Different sort of fix. This should work on closed bezier curves
17066 * objects/standard/textobj.c:
17067 Activate default properties dialog for Text objects.
17069 * app/render_eps.c:
17071 * app/preferences.c:
17072 * app/render_svg.c:
17073 fopen files in binary or text mode.
17075 1999-10-26 Alexander Larsson <alex@cendio.se>
17077 * app/render_gdk.c (bezier_add_lines):
17078 Don't crash on zero-size (broken) bezier curves.
17079 Fixes a crashing bug.
17081 1999-10-25 James Henstridge <james@daa.com.au>
17083 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
17084 before it is installed.
17086 * objects/flowchart/flowchart.c: use relative paths to find shapes.
17088 * objects/custom/custom.c (custom_object_load): take file names
17089 relative to $(pkgdatadir)/shape-internal, and check an environment
17090 variable for an alternative directory.
17092 * app/...: added copyright messages to the top of my new code.
17094 * app/paginate_psprint.c: some general clean ups. Also, give an error
17095 dialog if we can't open the command or output file for writing.
17097 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
17098 function so it would set orientation to landscape correctly.
17100 * app/paginate_psprint.c: use the paper settings that come with
17101 the diagram. Also implemented landscape printing.
17103 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
17106 * app/commands.[ch] (file_pagesetup_callback): added callback for
17107 the page setup dialog.
17109 * app/menus.c: added page setup menu item.
17111 * app/pagesetup.[ch]: implementation of the page setup dialog.
17113 * app/diapagelayout.[ch]: added accessors for the scaling factor.
17115 * app/load_save.c (diagram_load): load paper information from save
17117 (diagram_save): save the paper info.
17119 * lib/diagramdata.c (new_diagram_data): initialise paper info section
17120 of DiagramData structure.
17121 (diagram_data_destroy): free the paper name.
17123 * lib/diagramdata.h: added a paper member to the DiagramData structure
17124 that holds the page layout info for a diagram.
17126 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
17128 * objects/flowchart/box.c:
17129 * objects/flowchart/ellipse.c:
17130 * objects/flowchart/diamond.c:
17131 * objects/flowchart/parallelogram.c:
17132 Load and save padding too. Fixes strange load crashes.
17134 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
17136 * app/app_procs.c (name_is_lib):
17137 .dll, .sl and .so.0.0.0 are also libraries.
17139 1999-10-20 James Henstridge <james@daa.com.au>
17141 * configure.in: added extra makefile.
17143 * shapes/Circuit_eu/*: a new set of european circuit shapes from
17144 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
17145 (added fuses to makefile, fill the area of some of the components).
17147 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
17151 Add GDK_IMLIB_CFLAGS to includes.
17152 Changed --export-dynamic to -export-dynamic
17155 * objects/UML/message.c:
17156 Removed c++ comment.
17158 * lib/render_store.[ch]:
17159 Don't use empty structure. That is not Ansi C.
17161 1999-10-19 James Henstridge <james@daa.com.au>
17163 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
17164 the margin entries, as they allow interpretation of units.
17165 (paper_size_change): display the current page dimensions.
17167 * app/diaunitspinner.[ch]: a widget derived from the standard
17168 GtkSpinButton that tries to take units into account. So if you enter
17169 "1in" into the entry, it will convert it to 2.54cm.
17171 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
17174 Removed include of dlfcn.h
17176 1999-10-18 James Henstridge <james@daa.com.au>
17178 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
17179 bound on margin widths. It is set to the paper width/height.
17181 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
17182 routine for the diamond. This bug was found and fixed by Daniel Wang
17183 <danwang@CS.Princeton.EDU>
17185 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
17187 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
17188 remove warning (OS/2 version).
17190 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
17193 Put a pointer to objects/custom/README.
17195 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
17198 Updated version to 0.80
17201 Updated version to 0.80cvs
17203 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
17205 * Released Dia 0.80
17206 Tag called DIA_0_80
17208 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
17212 * objects/UML/Makefile.am
17213 * objects/ER/Makefile.am
17214 * objects/network/Makefile.am
17215 * objects/standard/Makefile.am
17216 * objects/FS/Makefile.am
17217 * objects/sybase/Makefile.am
17218 * objects/flowchart/Makefile.am
17219 * objects/custom/Makefile.am
17220 Added -I$(top_srcdir)/intl which is needed for
17221 --with-included-gettext.
17227 Updated swedish translation.
17229 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
17232 Updated version number to 0.80.
17238 Updated. Moved bugs to KNOWN_BUGS.
17241 Updated with 0.80 release notes.
17243 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
17246 For backwards compatibility, make sure handle 0 and 1 are the
17247 first and last handle. Fixes compatibility with 0.41, breaks
17248 compatibility with cvs version.
17249 Fixed bug in undo/redo of adding deleting endpoint segments
17250 when the endpoint was connected.
17251 Start OrthConn objects with three segments.
17253 1999-10-16 James Henstridge <james@daa.com.au>
17255 * objects/custom/custom_object.c (custom_update_data): changed
17256 resizing behaviour a bit so that shapes don't grow huge when you try
17257 to resize them to smaller than the size required by the text box.
17258 Also, now shapes will not grow with fixed aspect ratio when you enter
17259 text into them unless the shape has the fixed aspect ratio flag set.
17261 1999-10-15 James Henstridge <james@daa.com.au>
17263 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17265 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17267 * objects/flowchart/magdrum.shape:
17268 * objects/flowchart/offlinestore.shape:
17269 * objects/flowchart/punchedtape.shape:
17270 * objects/flowchart/transmittape.shape:
17271 * objects/flowchart/punchedcard.shape: new shapes.
17273 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17275 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17277 * objects/flowchart/collate.shape:
17278 * objects/flowchart/delay.shape:
17279 * objects/flowchart/extract.shape:
17280 * objects/flowchart/intstorage.shape:
17281 * objects/flowchart/magdisk.shape:
17282 * objects/flowchart/magtape.shape:
17283 * objects/flowchart/merge.shape:
17284 * objects/flowchart/or.shape:
17285 * objects/flowchart/sort.shape:
17286 * objects/flowchart/sumjunction.shape: new shapes.
17288 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
17292 Entering an erronous command as print command
17295 * app/paginate_psprint.c:
17296 Save all print dialog values for next time.
17299 Remove custom lib from DIA_LIB_PATH.
17301 1999-10-14 James Henstridge <james@daa.com.au>
17303 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17305 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17307 * objects/flowchart/offpageconn.shape:
17308 * objects/flowchart/manualop.shape:
17309 * objects/flowchart/preparation.shape:
17310 * objects/flowchart/manualinput.shape:
17311 * objects/flowchart/predefdproc.shape:
17312 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
17314 1999-10-13 James Henstridge <james@daa.com.au>
17316 * app/diapagelayout.[ch]: added accessors to paper information. The
17317 widget should be just about complete now.
17319 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
17320 It actually does something now.
17322 1999-10-12 James Henstridge <james@daa.com.au>
17324 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
17325 for the page layout widget.
17327 * app/diapagelayout.[ch]: start of page layout widget. Not actually
17328 built yet as it is not complete.
17330 * objects/flowchart/flowchart.c: added new shapes to sheet.
17332 * objects/flowchart/display.shape:
17333 * objects/flowchart/transaction.shape: new shapes.
17335 * AUTHORS: added my name to the spec file.
17337 * dia.spec: include the dia desktop entry to the spec file.
17339 * Makefile.am: install the dia.desktop file.
17341 * dia.desktop: added a gnome desktop entry so you can start dia
17342 from the gnome panel menu.
17344 1999-10-11 James Henstridge <james@daa.com.au>
17346 * objects/custom/custom_object.c:
17347 * objects/custom/shape_info.c: warning fixes.
17349 * objects/flowchart/document.shape: a shape file for the `document'
17352 * lib/custom.h: new header with the custom shape prototypes.
17354 * app/app_procs.c: register custom objects as well.
17355 (register_objects_in): close shared libraries if they don't load
17356 correctly, and call g_module_make_resident on libraries that load
17359 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
17361 * objects/custom/custom.c: removed get_version, added custom_ prefix
17362 to register_objects and register_sheets.
17364 * objects/custom/Makefile.am: converted to a normal library.
17366 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
17368 * app/lineprops_area.c:
17369 * app/render_svg.c:
17371 * objects/custom/shape_info.c:
17372 * objects/flowchart/box.c:
17373 * objects/flowchart/diamond.c:
17374 * objects/flowchart/ellipse.c:
17375 * objects/flowchart/parallelogram.c:
17376 * objects/network/flash.c:
17377 * objects/network/scead-plug.c:
17378 * objects/sybase/client.c:
17379 Removed -Wall warnings.
17381 * objects/network/bus.c:
17382 Removed unused functions.
17384 * objects/FS/flow-ortho.c:
17385 * objects/FS/flow-poly.c:
17386 * objects/FS/flow.c:
17387 * objects/FS/function.c:
17389 Implemented "non-implemented" undo for FS objects.
17390 Now at least it won't crash.
17392 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
17394 * objects/network/bus.c:
17396 Handles are now added and removed using the object menu.
17397 Default to 6 handles instead of 10.
17398 Changed name from "Standard - Bus" to "Network - Bus". Kept old
17399 name for backwards compatibility.
17401 * objects/network/network.c:
17402 Changed name from "Standard - Bus" to "Network - Bus". Kept old
17403 name for backwards compatibility.
17405 * app/properties.[ch]:
17407 Update properties in properties dialog if the shown object
17408 is part of and ObjectChange (undo or redo).
17411 Remove old known bugs list.
17413 * objects/UML/class_dialog.c:
17414 Removed debug printf's.
17416 1999-10-10 James Henstridge <james@daa.com.au>
17418 * objects/custom/custom.c (custom_object_load): new function that
17419 provides a nice entry point to the custom shape code for when it
17420 gets used by other libraries.
17422 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
17423 speeds builds up a bit.
17425 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17426 (SUBDIRS): do not descend into pixmaps subdirs.
17428 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17429 This speeds up build process.
17431 * objects/custom/custom.c (sheets): made variable static.
17433 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17436 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17438 * objects/custom/custom.c: look in ~/.shapes instead of
17439 ~/.dia_shapes as the per-user shapes directory.
17441 * app/preferences.c (prefs_save): save config to ~/.diarc.
17442 (prefs_load): load configuration from ~/.diarc. If the file
17443 does not exist, fallback on the old ~/.diarc location.
17445 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17447 (register_all_objects): look for user specific objects in
17448 ~/.objects rather than ~/.dia_libs.
17450 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
17454 * objects/flowchart/box.c
17455 * objects/flowchart/ellipse.c
17456 * objects/flowchart/flowchart.c
17457 Use gmodule for dynamic linking. As gmodule is using
17458 RTLD_GLOBAL i had to change flowchart box and ellipse
17459 so the typenames doesn't conflict with the standard
17464 Use button box to make dialogs look better.
17466 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
17468 * objects/UML/class_dialog.c:
17469 * objects/UML/class.h:
17470 Implemented undo for "UML - Class" objects.
17471 Not 100% tested yet.
17473 * objects/UML/classicon.c:
17474 * objects/UML/constraint.c:
17475 * objects/UML/dependency.c:
17476 * objects/UML/generalization.c:
17477 * objects/UML/implements.c:
17478 * objects/UML/large_package.c:
17479 * objects/UML/lifeline.c:
17480 * objects/UML/message.c:
17481 * objects/UML/object.c:
17482 * objects/UML/realizes.c:
17483 * objects/UML/state.c:
17484 * objects/UML/usecase.c:
17487 * lib/connectionpoint.h:
17490 1999-10-09 James Henstridge <james@daa.com.au>
17492 * objects/custom/*.[ch]: added copyright notices to custom object
17495 * shapes/Circuit/hdiode.shape:
17496 * shapes/Circuit/hzener.shape:
17497 * shapes/Circuit/opamp.shape:
17498 * shapes/Circuit/vdiode.shape:
17499 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17500 shapes look nice after the custom shape code changes.
17502 * objects/custom/README: updated docs to cover changes to drawing
17505 * objects/custom/custom_object.c (custom_draw): honour the line
17506 properties when drawing the shape.
17508 * objects/custom/shape_info.[ch]: added support for setting line
17509 properties for individual drawing elements in a custom shape. You
17510 can set the dash style, dash length, cap style and join style.
17512 1999-10-07 James Henstridge <james@daa.com.au>
17514 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17515 for foreground and background.
17517 * objects/custom/custom_object.c (custom_draw): use the new style
17518 information when drawing the object.
17520 * objects/custom/shape_info.[ch]: store all shape style info in the
17521 GraphicStyle structure. This makes adding support for extra CSS
17522 attributes easier -- we don't have to keep adding extra arguments to
17523 a lot of functions.
17525 1999-10-05 James Henstridge <james@daa.com.au>
17527 * lib/intl.c (unalias_lang): merged in changes from the i18n code
17528 swiped from gnome-libs.
17530 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
17532 * objects/standard/image.c (get_directory):
17533 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17535 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17537 * lib/poly_conn.c (polyconn_destroy):
17538 Fix bug. Access of freed memory.
17539 Rememeber, you can't free the handles of an object
17540 before calling object_destroy(), as it unconnects the handles
17541 therefore referencing them.
17543 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17546 undo_clear() didn't set stack->depth to zero.
17547 This made other undo functions crash after this had been called
17551 Slightly modified by Chris Love <clove@exactis.com>
17553 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17555 * objects/UML/class.h:
17556 * objects/UML/class_dialog.c:
17557 Retrun NULL ObjectChange on class property change.
17558 This means no crashes, but "UML - Class" doesn't support undo yet.
17560 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17565 * objects/UML/classicon.c:
17566 * objects/UML/dependency.c:
17567 * objects/UML/generalization.c:
17568 * objects/UML/implements.c:
17569 * objects/UML/large_package.c:
17570 * objects/UML/lifeline.c:
17571 * objects/UML/message.c:
17572 * objects/UML/object.c:
17573 * objects/UML/realizes.c:
17574 * objects/UML/state.c:
17575 * objects/UML/usecase.c:
17576 Update to new undo (w. get/set_state).
17577 Add object menu to add/delete segments.
17579 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
17582 Add equal distance alignment.
17584 * app/object_ops.c:
17585 Add equal distance alignment.
17586 Fix bug in adjacent alignment.
17588 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
17590 * objects/UML/constraint.c:
17591 Update to new undo (w. get/set_state).
17593 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
17595 * app/paginate_psprint.c:
17596 Save (parts, more todo) of the info in the print dialog to the
17597 next time it's opened.
17598 Patch from Yo Ric Dude <ricdude@toad.net>
17600 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
17603 Updated version string to 0.41cvs.
17605 * objects/UML/assocition.c:
17606 Update to new undo (w. get/set_state).
17607 Add object menu to add/delete segments.
17610 Added function debug_break() and called it after all
17611 objects and sheets are loaded. Place a breakpoint here if you
17612 want to debug objects. All symbols should be loaded.
17614 1999-09-12 James Henstridge <james@daa.com.au>
17616 * app/menus.c (display_menu_items): added print menu item.
17617 (filemenu): always add print menu item -- even if gnome-print is
17620 * app/commands.h, app/commands.c (file_print_callback): the print
17621 menu item is now available for both gnome-print and non gnome-print
17624 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
17625 print with the non gnome-print driver.
17627 1999-09-11 James Henstridge <james@daa.com.au>
17629 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
17630 printer dialog code out of commands.c.
17632 * app/paginate_psprint.c: new file containing the pagination code for
17635 * app/render_eps.c: made a few modifications so as well as producing
17636 EPS files, this renderer can be set up to do postscript printing.
17637 This basically entailed adding an extra function to create a RenderEPS
17638 renderer which did not bother setting the viewport for the document.
17639 That was left for the pagination code.
17641 1999-09-10 James Henstridge <james@daa.com.au>
17643 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
17644 gnome-print does not support elliptic arcs at the moment, approximate
17645 the ellipse with eight bezier curves. This gives a pretty good
17646 match to a true ellipse.
17648 1999-09-09 James Henstridge <james@daa.com.au>
17650 * app/commands.c (file_gnome_print_callback): added support for
17651 scaling the diagram. Also fixed a few other bugs.
17653 * app/paginate_gnomeprint.c (print_page): added ability to scale
17654 document. Fixed up test to see if the page has no objects on it.
17655 This should prevent some blank pages being printed. Non square
17656 objects such as lines could still cause problems.
17658 1999-09-08 James Henstridge <james@daa.com.au>
17660 * app/commands.c (file_gnome_print_callback): changed from using the
17661 standard printer selection dialog to one that also has a paper size
17664 * commands.[ch]: added callbacks for the print menu item. Currently
17665 it only does A4 output. I will make it configurable soon.
17667 * app/menus.c: add a print diagram menu item if gnome-print support
17670 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
17671 bit higher level than the gnome-print renderer. It splits the
17672 diagram into page size chunks and then renders them. For each
17673 page, it only renders the objects whose bounding box intersects
17674 the page, and it sets the clip mask so that the diagram does not
17675 overlap the margins.
17677 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
17678 that uses gnome-print as its back end.
17680 * configure.in: added a check for gnome-print. It is disabled by
17681 default because the code is not really working correctly yet.
17683 * app/menus.c: the delete object menu item was missing from the
17684 GnomeUIInfo style menus.
17686 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
17689 Added japanese to ALL_LINGUAS.
17690 Fix for Linux on Alpha.
17692 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
17694 * app/create_object.c (create_object_button_press):
17695 Always initialize tool->obj. Otherwise we store a null
17696 in the undo Change.
17699 Set linestyle before drawing cursor.
17700 Fix undo of backwards delete.
17702 1999-09-05 James Henstridge <james@daa.com.au>
17704 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
17706 * app/render_svg.c (draw_image): some fixes so that the appropriate
17707 style attributes are set. Before it was setting line styles on
17708 fill_* functions. Now it only does this for the draw_* variants.
17710 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
17711 variable so that custom shapes can be loaded.
17713 * shapes/: new directory for custom shapes. The Circuit sheet has
17716 1999-09-02 James Henstridge <james@daa.com.au>
17718 * TODO: removed a few todo items that have been implemented.
17720 * app/interface.c (create_sheets): enabled the popup page menu to the
17721 notebook. This can make it easier to select different sheets.
17723 * object/custom/Circuit/: added diode, zener diode, ground point and
17724 operational amplifier shapes.
17726 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
17727 if you want the output.
17729 * objects/custom/shape_info.c (parse_path): same here.
17731 * objects/custom/load_sheet.c (load_with_readdir): don't print so
17732 much debugging output. To get the previous level of output, define
17735 * objects/custom/shape_info.c (parse_svg_node): polygons were being
17736 recorded as polylines in the ShapeInfo structure.
17738 * objects/custom/README: some notes on writing new custom shapes.
17740 1999-09-01 James Henstridge <james@daa.com.au>
17742 * objects/custom/Circuit/hinductor.*:
17743 * objects/custom/Circuit/vinductor.*: added inductor shapes that
17744 also test out the bezier curve and SVG path support.
17746 * objects/custom/custom_object.c (custom_draw): added support for
17747 drawing bezier paths and filled shapes.
17749 * objects/custom/shape_info.c (parse_path): new function to parse
17750 SVG path elements. It does not do quadratic beziers or elliptic
17751 arcs though. Only moves, lines and cubic beziers.
17752 (*): added support for paths.
17754 1999-08-31 James Henstridge <james@daa.com.au>
17756 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
17758 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
17761 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
17764 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
17767 * lib/render_store.[ch]: use newer bezier functions.
17769 * lib/render.h: changed the bezier drawing functions to use an array
17770 of BezPoint structures instead of normal Point structures to allow
17771 lineto's mixed in with the curveto's.
17773 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
17775 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
17776 xpm images for different shapes to Makefile.
17778 * objects/custom/custom_object.c (custom_object_new): set the icon
17779 for the sheet button if there is one. Otherwise fall back on the
17780 default custom object icon.
17782 * objects/custom/shape_info.c (load_shape_info): read the sheet
17783 icon name from the shape file.
17785 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
17786 check the pixmap_file field for the name of a pixmap file to load
17789 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
17790 at the end of the structure, and it isn't used if the pixmap field
17791 is non NULL, so it should not break binary compatibility.
17793 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
17794 added support for the use of an index.sheet file so you can specify
17795 the ordering of the shapes in the sheet, and also internationalise
17796 the sheet name and actually be able to give a description. The old
17797 readdir based sheet loading code acts as a fallback if an index.sheet
17798 file can not be found.
17800 * objects/custom/custom_util.[ch]: new file containing useful routines
17801 needed by the custom object code. Currently only contains a simple
17802 routine for resolving relative paths.
17804 * objects/custom/custom_object.c (custom_draw): fixed problem with
17805 drawing rectangles if the shape has been flipped.
17807 1999-08-30 James Henstridge <james@daa.com.au>
17809 * objects/custom/custom_object.c (custom_get_object_menu): allow
17810 flipping of custom shapes. This uses the miggle click object
17813 * objects/custom/Circuit/npn.shape: fix aspect ratio.
17815 * objects/custom/custom_object.c (custom_update_data): honour the
17816 aspect ratio constraints.
17818 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
17819 tag parsing, so you can specify a free, fixed or a range for aspect
17820 ratios for the shape.
17822 1999-08-29 James Henstridge <james@daa.com.au>
17824 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
17825 up shape namespace tag.
17827 * objects/custom/shape_info.c (load_shape_info): check xml:lang
17828 attribute on <description> elements to support i18n for custom
17829 shape descriptions.
17830 Also changed the shape namespace for custom shapes to something
17831 a little more sensible.
17833 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
17835 * lib/intl.c: new file containing some functions for i18n stuff.
17837 * app/layer_dialog.c (create_button_box): fixed a warning.
17839 * objects/custom/custom_object.c: use current line style. Save dash
17842 * objects/flowchart/diamond.c: use current line style. Save dash
17845 * objects/flowchart/parallelogram.c: use current line style. Save
17848 * objects/flowchart/ellipse.c: use current line style. Save dash
17851 * objects/flowchart/box.c: use current line style. Save dash length.
17853 * objects/standard/ellipse.c: make ellipse use current line style.
17855 * objects/standard/box.c: use the line style set in the toolbox for
17856 new boxes, and remember the dash length.
17858 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
17861 1999-08-24 James Henstridge <james@daa.com.au>
17863 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
17864 to try to stop ellipse to get infinite width/height when we resize,
17865 while trying to keep the text inside the ellipse.
17867 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
17868 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
17869 resizing behaviour, so that you can't push objects round the screen
17870 with the resize handles.
17872 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
17873 get the OK buttons in the dialogs to take default clicks.
17875 * objects/custom/custom_object.c: added code so that resizing the
17876 shape does not end up pushing it round the screen.
17878 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
17880 * app/display.[ch]:
17881 Generate rectangle with the union of the damaged regions.
17882 This is used to optimize the grid paint and the object rendering.
17883 display_render_pixmap passes this info to grid_draw() and data_render().
17886 grid_draw doesn't draw grid lines outside of damaged rectangle.
17887 Sets dashlength when drawing non-solid grid.
17889 * lib/diagramdata.[ch]:
17890 data_render() and layer_render() takes an optional damaged rectangle
17891 argument. No objects not intersecting this are drawn.
17895 Call data_render with NULL update rectangle.
17897 1999-08-23 James Henstridge <james@daa.com.au>
17899 * objects/custom/custom_object.c (custom_update_data): if the aspect
17900 ratio is fixed, make sure the shape is not distorted.
17902 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
17903 a <fixaspectratio/> tag is given in the shape file.
17905 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
17906 added support for stroke-width, stroke and fill CSS attributes
17907 specified in style attributes of the SVG elements. The line width
17908 is relative to the user specified line width. The stroke and fill
17909 attributes can only be used to swap the foreground/background
17912 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
17913 sensitivity on the dash length selector when this function is called.
17915 * objects/standard/arc.c: same. Also handle dash length.
17916 * objects/standard/zigzagline.c: same.
17917 * objects/standard/polyline.c: same. Also handle dash length.
17918 * objects/standard/line.c: use default arrow/line styles.
17920 * app/interface.c: added callbacks to set the default attributes.
17922 * lib/attributes.c: added implementations of these functions.
17924 * lib/attributes.h: added extra prototypes for the new line properties
17925 area in the toolbox.
17927 * app/interface.c (create_lineprops_area): added line properties
17928 area to bottom of toolbox.
17930 * app/lineprops_area.h: a header exporting a few routines of the
17931 line properties area widgets.
17933 * app/lineprops_area.c: new file containing a selector for arrows
17934 and line styles to go in the main toolbox.
17936 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
17939 Update Gtk+ 1.0.5 comment to 1.2.0.
17948 Make sure we don't propagate -ldl and -lpopt to all LIBS
17949 by adding new var APP_LIBS that only app/dia links with.
17952 Update run_dia.sh to load custom and flowchart objects.
17954 * objects/ER/Makefile.am:
17955 * objects/FS/Makefile.am:
17956 * objects/UML/Makefile.am:
17957 * objects/network/Makefile.am:
17958 * objects/standard/Makefile.am:
17959 * objects/sybase/Makefile.am:
17960 Don't build versioned libs.
17962 1999-08-22 James Henstridge <james@daa.com.au>
17964 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
17967 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
17968 should actually work a bit now.
17970 * objects/custom/Circuit/*: a test sheet for the custom shape code.
17971 It is a small collection of circuit elements.
17973 * objects/custom/shape_info.c: fixed up loading of polylines and
17974 polygons. Before it was removing negative signs :(
17976 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
17977 placeholder was here before. I still need to work out how to set
17978 icons for individual custom shapes.
17980 * objects/custom/custom.c: added code to load the shapes into sheets
17981 properly. The shape files should be arranged into directories, and
17982 each directory represents a different sheet in the toolbox. This
17983 will make it very easy to distribute a collection of dia shapes as
17984 a tarball. I still need to work out internationalisation, and maybe
17985 also shape ordering in the sheet.
17987 * objects/custom/custom_object.c: fixed up dialogs for these objects.
17988 (custom_create): fix for objects without text areas.
17990 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
17991 and saving of custom object works correctly now.
17993 1999-08-21 James Henstridge <james@daa.com.au>
17995 * objects/flowchart/ellipse.c:
17996 * objects/flowchart/diamond.c:
17997 * objects/flowchart/parallelogram.c:
17998 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
17999 copying or loading these object types. Not all the connection
18000 points would be initialised correctly.
18002 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
18005 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
18006 build a versioned library. It will only ever be dlopen'd, so this
18009 * objects/custom/custom_object.c (custom_distance_from): allow
18010 selecting the object by clicking on the text. This fixes problems
18011 where the text box is outside the graphic.
18013 * objects/custom/shape_info.c (load_shape_info): fixed up reading
18014 of connections points. It should be possible to add connections
18015 to custom objects now.
18017 * objects/custom/custom_object.c (custom_update_data): fixed resizing
18018 due to changes to text.
18020 * configure.in: added extra makefiles.
18022 * objects/custom/shape_info.[ch]:
18023 * objects/custom/custom_object.c:
18024 * objects/custom/custom.c: the starts of custom shape support in dia.
18025 This is not built by default at the moment, since it is not quite
18026 complete. When it is, it will let you create more shapes for dia
18027 without writing a line of C. Its implementation includes buzzwords
18028 such as XML and SVG, so it must be good :)
18030 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
18032 * app/app_procs.c (app_exit): Use button labels "Quit" and
18033 "Cancel" instead of "Yes" and "No".
18034 Set default action to "Cancel" instead of "Quit".
18036 1999-08-19 James Henstridge <james@daa.com.au>
18038 * objects/flowchart/flowchart.c: added ellipse object.
18040 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
18042 1999-08-18 James Henstridge <james@daa.com.au>d
18044 * app/color_area.c (color_area_edit): small fix to prevent dia from
18045 segfaulting when you try to change the default foreground/background.
18047 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
18049 * app/diagram.[ch] (diagram_redraw_all):
18050 Added function that redraws all diagrams.
18052 * app/preferences.c (prefs_apply):
18053 Call diagram_redraw_all when prefs are changed.
18055 * app/render_svg.c:
18056 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
18057 older libxml's, and the old version works good enought here.
18059 1999-08-17 James Henstridge <james@daa.com.au>
18061 * lib/widgets.c: changed handlers that were connected to the GtkButton
18062 "pressed" signal to connect to the "clicked" signal. This removes the
18063 problem where dialogs are inactive until you click a mouse button
18064 after using a colour selector.
18066 * configure.in: added extra makefiles to AC_OUTPUT list.
18068 * objects/Makefile.am (SUBDIRS): added flowchart module
18070 * objects/flowchart/*: a collection of shapes for use in flowcharts.
18072 * app/color_area.c (color_area_events): similar here.
18074 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
18075 event is recieved with event->width == 0, which causes a warning if we
18076 try to create a pixmap of that width.
18078 * app/preferences.c, app/preferences.h, app/grid.c: added code to
18079 allow you to configure the colour of the grid, and also lets you
18080 set the grid to use dotted lines instead of solid ones.
18082 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
18083 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
18085 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
18086 export filter. It is not quite complete, but for most shapes it
18087 works as expected. Fonts still need a bit of work.
18089 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
18091 * configure.in: Added "en_GB" to ALL_LINGUAS.
18093 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
18096 Added Undo and Redo to GNOME menus.
18098 * objects/ER/attribute.c:
18099 * objects/ER/entity.c:
18100 * objects/ER/participation.c:
18101 * objects/ER/relationship.c:
18102 Added get/set_state functions.
18104 * objects/ER/participation.c:
18105 Added add/delete segment.
18108 Updated Swedish translation.
18110 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
18112 * app/preferences.[hc]:
18113 Added undo_depth pref.
18116 Never grow stack larger than pref.undo_depth.
18117 undo_depth == 0 means unlimited.
18118 Converted printfs to conditionally compiled DEBUG_PRINTFs.
18120 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
18125 * lib/render_object.c:
18126 * objects/ER/attribute.c:
18127 * objects/ER/entity.c:
18128 * objects/ER/participation.c:
18129 * objects/ER/relationship.c:
18130 * objects/FS/flow-ortho.c:
18131 * objects/FS/flow-poly.c:
18132 * objects/FS/flow.c:
18133 * objects/FS/function.c:
18134 * objects/UML/actor.c:
18135 * objects/UML/association.c:
18136 * objects/UML/class.c:
18137 * objects/UML/classicon.c:
18138 * objects/UML/component.c:
18139 * objects/UML/constraint.c:
18140 * objects/UML/dependency.c:
18141 * objects/UML/generalization.c:
18142 * objects/UML/implements.c:
18143 * objects/UML/large_package.c:
18144 * objects/UML/lifeline.c:
18145 * objects/UML/message.c:
18146 * objects/UML/note.c:
18147 * objects/UML/object.c:
18148 * objects/UML/realizes.c:
18149 * objects/UML/small_package.c:
18150 * objects/UML/state.c:
18151 * objects/UML/usecase.c:
18152 * objects/network/bus.c:
18153 * objects/standard/arc.c:
18154 * objects/standard/box.c:
18155 * objects/standard/ellipse.c:
18156 * objects/standard/image.c:
18157 * objects/standard/line.c:
18158 * objects/standard/polyline.c:
18159 * objects/standard/textobj.c:
18160 * objects/standard/zigzagline.c:
18161 Removed all traces of is_empty(). It doesn't work in an
18164 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
18169 Undoable grouping and ungrouping.
18171 * app/layer_dialog.c:
18172 * lib/diagramdata.[ch]:
18173 Undoable layer ops.
18175 * app/modify_tool.c:
18176 Undoable unconnect on handle move.
18178 * lib/orth_conn.[ch]:
18179 Working undoable add/remove segment.
18180 Removed endpoint_handles from OrthConn, renamed
18181 midpoint_handles to handles and put the endpoint
18184 * objects/standard/zigzagline.c:
18185 * objects/ER/participation.c:
18186 * objects/UML/association.c:
18187 * objects/UML/dependency.c:
18188 * objects/UML/generalization.c:
18189 * objects/UML/realizes.c:
18190 Update for the changes in OrthConn
18192 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
18194 * configure.in: Added "de" to ALL_LINGUAS.
18196 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
18208 Don't have the <Display> etc part of the menu strings
18209 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
18212 Don't have the <Display> etc part of the menu strings
18213 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
18214 Don't remove is_empty() objects, that don't work with undo.
18216 * lib/objchange.[ch]:
18218 Definition of ObjectChange. This is essentially an Change
18219 exported to the object libs. It encapsulates a change made
18220 to an objects internals. It can be applied, reverted and freed.
18221 There are also utility functions for doing ObjectChanges that
18222 only get/set the whole state of an object to store the change.
18223 This cannot be used when the object change deletes or adds a
18224 object which has references from other objects, eg. Handles which
18225 might be connected.
18228 Added objchange.c and objchange.h.
18231 Return NULL when loading fails.
18234 Menu callbacks return an ObjectChange.
18237 Reference objchange.o
18240 Key events return ObjectChange if they modify the object.
18244 Added object_add_handle_at() function.
18245 Apply properties returns an ObjectChange.
18246 Remove ObjectState and the get/set state functions, these
18247 don't always work. Use the new ObjectChange instead.
18250 Added object_add_handle_at() function implementation.
18252 * lib/orth_conn.[ch]:
18253 Use ObjectChange. Not finished yet.
18254 Removed get/set/free state functions
18256 * lib/poly_conn.[ch]:
18258 Don't remove segments that are small.
18259 Removed get/set/free state functions
18263 Added functions to get/set all text attributes.
18265 * objects/standard/arc.c:
18266 * objects/standard/box.c:
18267 * objects/standard/ellipse.c:
18268 * objects/standard/image.c:
18269 * objects/standard/line.c:
18270 * objects/standard/polyline.c:
18271 * objects/standard/textobj.c:
18272 * objects/standard/zigzagline.c:
18274 fixed bug in image_set_state.
18275 zigzagline.c not finished yet.
18277 * app/disp_callbacks.c:
18278 Use ObjectChange that are returned from menu callbacks and
18279 key_events for undo.
18281 * app/properties.c:
18282 Use ObjectChange that are returned from properties apply
18287 New undo type: ObjectChangeChange. This wraps a change to the
18288 internals of an object (and ObjectChange) in code that does
18289 app specific stuff (object_add_updates etc.)
18291 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
18293 * lib/orth_conn.[ch]:
18294 Added code for add/delete segment.
18296 * objects/standard/zigzagline.c:
18297 Use the new orth_conn code.
18300 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18302 * objects/FS/Makefile.am
18303 Removed fs.h from sources.
18309 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
18311 * app/disp_callbacks.c (ddisplay_canvas_events):
18312 Fix for bug. Every other arrow-key press got lost.
18313 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
18316 change automake.sh to autogen.sh
18318 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
18321 Don't remove 'empty' objects.
18322 This violent destruction of objects won't work
18323 with the new undo framework.
18325 * app/disp_callbacks.c:
18326 Save undo info for object menu calls and key_events.
18328 * app/properties.c:
18329 Save undo info on properties apply.
18331 * lib/dia_image.[ch]:
18332 Add refcounting for images.
18334 * app/render_eps.c:
18335 * app/render_gdk.c:
18337 DiaImage * -> DiaImage
18340 Add undo functions for object state changes.
18344 change of semntics for focus->key_event.
18345 Now returns TRUE if the object recieving the event
18351 * lib/orth_conn.[ch]:
18352 Don't automatically create and delete segments when
18353 handles are moved. This is incompatible with undo.
18354 Added state get, set and free functions.
18356 * lib/orth_conn.[ch]:
18357 Added state get, set and free functions.
18359 * objects/UML/object.c:
18360 * objects/UML/uml.c:
18361 Fixed typo "UML - Objet" -> "UML - Object".
18362 Saved old for backwards compatibility.
18364 * objects/standard/arc.c:
18365 * objects/standard/box.c:
18366 * objects/standard/ellipse.c:
18367 * objects/standard/image.c:
18368 * objects/standard/line.c:
18369 * objects/standard/polyline.c:
18370 * objects/standard/textobj.c:
18371 * objects/standard/zigzagline.c:
18372 Added get/set state functions.
18373 Textobj has a redo crash-bug.
18374 Zigzagline needs object menus to add segments.
18377 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
18379 * app/render_eps.c (set_dashlength):
18380 Don't generate eps files with zero dash-length.
18382 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
18385 * app/create_object.c:
18387 Finished undo for create and paste.
18390 Started properties undo.
18392 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
18395 Added resizeable groups.
18398 Removed unused variable.
18402 Undo/redo for cut/delete done.
18404 * app/create_object.c:
18405 * app/modify_tool.c:
18406 * lib/diagramdata.[ch]:
18407 * app/diagram.[ch]:
18408 renamed diagram_add_selected -> diagram_select
18409 renamed diagram_remove_selected -> diagram_unselect
18411 * app/properties.[ch]:
18412 Added properties_hide_if_shown() function.
18414 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
18420 * app/commands.[ch]
18421 * app/modify_tool.[ch]
18422 * app/object_ops.[ch]
18423 * app/connectionpoint_ops.c
18425 Use undo functions.
18426 WARNING: Not finished. Will break.
18427 Finished: move object, move handle.
18430 Added diagram_selected_break_external() function.
18431 It removes all connections between selected objects
18433 Add undo stack to Diagram.
18435 * lib/diagramdata.[ch]
18436 Added layer_remove_objects() function
18438 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
18440 * objects/FS/Makefile.am
18441 * objects/sybase/Makefile.am
18442 Now uses GNOME_CFLAGS.
18445 Now compiles with GNOME even if popt.h isn't available.
18447 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
18450 * objects/Makefile.am
18452 First version of sybase objects from
18453 Brian Bruns <camber@umcc.ais.org>
18455 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18458 Added fr to ALL_LINGUAS
18460 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
18464 Popt-code is activated if popt is available.
18466 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
18468 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18470 * lib/orth_conn.[ch]:
18471 Added orthconn_get_middle_handle()
18474 Added text_set_cursor_at_end()
18477 Added first version of functions structure diagrams.
18479 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
18481 * app/modify_tool.c:
18482 Include math.h to remove warning.
18484 * app/commands.c (dialogs_properties_callback):
18485 Bring up correct properties dialog when selected
18487 From Dan Cohn <dan@internap.com>
18489 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
18491 Patch from Lars R. Clausen
18493 * app/modify_tool.c:
18494 Changed abs to fabs.
18496 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
18502 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18504 Patches from Dan Cohn <dan@internap.com>
18506 * app/commands.[ch]:
18507 * app/display.[ch]:
18509 * app/preferences.[ch]:
18510 Implements ability to turn on/off connection points in
18511 current drawing and in global prefs.
18513 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18515 * lib/widgets.c (dia_line_style_selector_init):
18518 * lib/diagramdata.c (layer_update_extents):
18519 Fixed uninitialized variable error.
18521 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
18524 Made some changes to the gdk_imlib visual+colormap setup.
18526 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18528 * objects/UML/usecase.c:
18529 * objects/UML/lifeline.c
18532 * objects/UML/object.c:
18533 * objects/UML/message.c:
18534 Changed font from Courier to Helvetica.
18538 Added dash lenth to the LineStyle widget.
18540 * objects/standard/ellipse.c :
18541 * objects/standard/zigzagline.c:
18542 * objects/standard/line.c:
18543 Added dash lenght property.
18545 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18547 * app/render_eps.c:
18548 First shot at latin1 encoded eps files.
18549 Works, but the eps files get a bit large.
18551 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18553 * objects/UML/class.[ch]:
18554 * objects/UML/uml.[ch]:
18555 Reverted the line wrap changes.
18556 Some day this might return, but it has to be selectable and
18557 default to off for loaded objects, otherwise it breaks file
18558 format compatibility.
18559 There was also some complains about how it looked, so a making it
18560 selectable is good for this too.
18562 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
18564 * objects/UML/class.[ch]:
18565 Some indentation cleanup.
18566 Added wrap_lines variable to class.
18567 I'll fix the line break stuff tomorrow.
18569 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18572 Added ref to poly_conn.o.
18574 * objects/standard/polyline.c (polyline_draw):
18575 * objects/standard/zigzagline.c (zigzagline_draw):
18576 * objects/standard/arc.c (arc_draw):
18577 * objects/standard/line.c (line_draw):
18578 Draw lines before arrows. This makes hollow arrows not
18581 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18583 Changes from Kim Peasley <kpeasley@ior.com>
18585 * objects/UML/class.c:
18586 Break lines with long operations so classes won't be
18589 * objects/UML/uml.[ch]:
18590 Helperfunctions for the above.
18592 * objects/UML/objects.c:
18593 Fix bug that duplicated the text in the attributes
18594 textwidget each time the object was selected.
18596 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
18598 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
18600 * app/modify_tool.c:
18601 * app/modify_tool.h:
18602 Control-drag is restricted to vertical/horizontal movement
18605 ModifierKeys argument added to object_move_handle
18607 * app/connectionpoint_ops.c:
18608 * app/create_object.c:
18609 * app/object_ops.c:
18610 * objects/ER/attribute.c:
18611 * objects/ER/entity.c:
18612 * objects/ER/participation.c:
18613 * objects/ER/relationship.c:
18614 * objects/UML/actor.c:
18615 * objects/UML/association.c:
18616 * objects/UML/class.c:
18617 * objects/UML/classicon.c:
18618 * objects/UML/component.c:
18619 * objects/UML/constraint.c:
18620 * objects/UML/dependency.c:
18621 * objects/UML/generalization.c:
18622 * objects/UML/implements.c:
18623 * objects/UML/large_package.c:
18624 * objects/UML/lifeline.c:
18625 * objects/UML/message.c:
18626 * objects/UML/note.c:
18627 * objects/UML/object.c:
18628 * objects/UML/realizes.c:
18629 * objects/UML/small_package.c:
18630 * objects/UML/state.c:
18631 * objects/UML/usecase.c:
18632 * objects/network/bus.c:
18633 * objects/standard/arc.c:
18634 * objects/standard/box.c:
18635 * objects/standard/ellipse.c:
18636 * objects/standard/image.c:
18637 * objects/standard/line.c:
18638 * objects/standard/polyline.c:
18639 * objects/standard/textobj.c:
18640 * objects/standard/zigzagline.c:
18641 Changed calls to move_handle to pass the new argument.
18645 Default line width, color etc #define'd
18648 Updates of danish menus
18650 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18653 * dia_gnome_icon.png
18654 * dia_gnome_menu_icon.png
18656 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
18659 About dialog shows dia_logo.png. Removed the GNOME about dialog.
18662 Distribute the icons and install logo in pkgdatadir.
18665 Added DATADIR-define.
18667 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18668 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
18671 Updated version number, made setup quiet, can build from cvs,
18672 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
18675 * objects/ER/Makefile.am
18676 * objects/UML/Makefile.am
18677 * objects/network/Makefile.am
18678 * objects/standard/Makefile.am
18679 now builds better with gnome
18681 * objects/UML/class_dialog.c
18682 Fixed typo -> po files must be updated too!!
18684 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18687 Added reference so that widgets.o gets linked to the app.
18689 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18691 * objects/UML/classicon.c:
18694 * objects/UML/actor.c:
18695 Changed position of 'snap-to-grid' so connection points are
18698 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18700 * objects/UML/classicon.c:
18701 Changed position of 'snap-to-grid'.
18702 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18704 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18706 * objects/network/antenna.c
18707 * objects/network/flash.c
18708 * objects/network/hub.c
18709 * objects/network/modem.c
18710 * objects/network/modularswitch.c
18711 * objects/network/rj45plug.c
18712 * objects/network/scead-plug.c
18713 * objects/network/network.c
18714 * objects/network/Makefile.am
18715 * objects/network/pixmaps/antenna.xpm
18716 * objects/network/pixmaps/flash.xpm
18717 * objects/network/pixmaps/hub.xpm
18718 * objects/network/pixmaps/modem.xpm
18719 * objects/network/pixmaps/modularswitch.xpm
18720 * objects/network/pixmaps/rj45plug.xpm
18721 * objects/network/pixmaps/sceadplug.xpm
18722 * objects/network/pixmaps/Makefile.am
18723 Lots of new network objects from
18724 Roland Steinbach <roland@support-system.com>.
18726 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18728 * objects/UML/classicon.c:
18729 Fixed connection positions, saved type as int (it has 3 states),
18730 and other small fixes.
18732 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
18734 * app/preferences.c:
18736 Added preference compress_save. It lets dia save uncompressed
18739 * objects/UML/class.c:
18740 Fixed bug with size calculation on methods that had class scope.
18742 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18744 * objects/UML/usecase.c:
18745 Added collaboration mode
18746 Fixed connection points with text > ellipse bug and other
18749 * objects/UML/state.c:
18750 Fixed bug of bad position of text after being either end
18751 or begin, moved and returned to text
18753 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
18755 * app/preferences.c: Add prototype declaration for prefs_apply.
18757 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
18759 * app/preferences.c:
18761 Apply don't hide window.
18763 * app/properties.c:
18766 * objects/UML/object.c:
18767 * objdcts/UML/state.c:
18768 Some data was not copied on copy.
18771 Ben Hochstedler <benh@eeyore.moneng.mei.com>
18773 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
18776 Changed link order between X and libxml.
18777 Some people had problems with an old libz in their
18780 1999-04-09 Kjartan Maraas <kmaraas@online.no>
18782 * po/no.po: updated translation.
18784 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
18786 * lib/message.c (message_error):
18789 * app/commands.[ch]:
18790 * app/diagram.[ch]:
18791 Added begining of xfig importing
18793 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18795 * objects/UML/pixmaps/state.xpm:
18796 * objects/UML/state.c:
18797 New UML object state machine.
18799 * objects/UML/uml.c:
18800 * objects/UML/Makefile.am:
18801 * objects/UML/pixmaps/Makefile.am:
18802 Added the state object.
18804 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
18806 * objects/UML/usecase.c:
18807 Added dialog to allow move text outside the ellipse.
18809 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18811 * Released Dia 0.41
18812 Tag called DIA_0_41
18817 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18820 Updated version number to 0.41
18825 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
18828 Changed errormessage for --export-to-ps. Removed call to
18829 g_log_set_always_fatal().
18832 * app/disp_callbacks.c
18834 (i18n) Removed gettext from some debugmessages.
18837 Small fix in GNOME-menus. Added warning that will help track
18838 problems with translations.
18841 (i18n) Updated swedish translation.
18843 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
18848 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
18854 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
18857 (i18n) Updated the danish translation.
18858 From Lars R. Clausen.
18860 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
18863 (i18n) The popup menu is translated now.
18866 (i18n) Updated swedish translation.
18868 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18870 * Released Dia 0.40
18871 Tag called DIA_0_40
18874 Updated for new release
18876 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18878 * objects/network/bus.c:
18879 Added initialization of properties dialog to NULL.
18881 * app/commands.c (edit_cut_callback):
18882 Update menu sensitivity when cut object.
18884 * app/modify_tool.c (click_select_object):
18885 * app/modify_tool.c (modify_button_release):
18886 Call diagram_update_menu_sensitivity() when
18887 selecting objects to update stuff that depends
18888 on selected/not selected.
18890 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18893 Change order of subdir so that libintl.a builds.
18894 Now passed make distcheck.
18896 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18898 * lib/font.c (init_x11_font):
18901 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18903 * objects/UML/pixmaps/classicon.xpm:
18904 * objects/UML/classicon.c:
18905 * objects/UML/uml.c:
18906 Added the class stereotype icon objects.
18909 Changed default ps extension from .ps to .eps.
18911 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18914 Added diamenu.h and intl.h
18919 * objects/UML/pixmaps/Makefile.am:
18922 * objects/standard/pixmaps/Makefile.am:
18925 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18928 Use a scalable font before fixed when real font not found.
18933 * objects/standard/image.c:
18934 Better handling of loading/saving of images.
18937 Added some text about cvs, fonts and rewrote some parts.
18940 Updated with new stuff.
18943 Bump up version number to 0.40.
18945 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18948 Moved diagram_add_ddisplay() call into new_display().
18949 Fixed new_display to not use uninitialized variables
18950 causing loaded files to show up as black (or garbage).
18954 Removed unneeded calls to diagram_add_ddisplay().
18956 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18958 * objects/UML/lifeline.c:
18960 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18962 * objects/UML/message.c:
18963 Fixed bug loading messages with null-text.
18964 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18966 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
18969 Updated swedish translation.
18972 (GNOME) Removed help-browser from help menu. Fixed typo.
18975 (GNOME) Accelerators in diagrams should work now.
18977 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
18982 * app/disp_callbacks.c
18986 * app/preferences.c
18988 * lib/diagramdata.c
18994 * objects/network/*.c
18995 * objects/standard/*.c
18996 * po/update_pofiles_in.sh
18998 More i18n. All strings (expect rare debug messages) can be
18999 translated now. Moved intl.h from app to lib. Updated
19000 update_pofiles_in.sh to check all .c-files.
19002 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
19004 * app/disp_callbacks.c (ddisplay_canvas_events):
19005 Don't drop keys while num-lock, scroll-lock etc is on.
19007 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
19009 * app/render_eps.c (draw_image):
19010 Fixed exporting of images.
19011 Still not perfect, but not outright buggy.
19013 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
19017 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
19020 Added $* to the dia call in run_dia.sh
19022 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19025 Added color_equals() call.
19027 * objects/standard/arc.c:
19028 * objects/standard/line.c:
19029 Don't save unneccesary data.
19031 * objects/standard/box.c:
19032 * objects/standard/ellipse.c:
19033 * objects/standard/image.c:
19034 * objects/standard/polyline.c:
19035 * objects/standard/zigzagline.c:
19036 Share properties dialog.
19037 Don't save unneccesary data.
19039 1999-03-22 Seth Alves <alves@hungry.com>
19044 small changes so that gnome menus aren't broken
19046 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
19049 Added danish translation from lrclause@cs.uiuc.edu.
19054 * po/update_pofiles_in.sh:
19055 Added script that updates POFILES.in.
19056 This should probably be run automatically from somewhere.
19058 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
19060 * app/diagram.[ch]:
19061 Added function diagram_update_menu_sensitivity() which
19062 sets the sensitivity of some menu items. This function
19063 is called at each diagram state change (from diagram_modified()).
19064 This is needed because otherwise the keyboard accelerators
19065 don't work correctly.
19067 * app/display.[ch]:
19068 Changed display_set_menu_sensitivity() to display_update_menu_state().
19069 Moved lots of code to diagram_update_menu_sensitivity() in
19070 diagram.c. Optimized to only look up menu-items from path:s once.
19072 * app/disp_callbacks.c:
19074 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
19075 Need to set GDK_FOCUS_CHANGE_MASK.
19077 * app/create_object.c:
19078 Call diagram_modified when an object has been created and
19079 selected so that the menu sensitivity is updated.
19082 removed menus_set_sensitive() and menus_set_state(). Exported
19083 renamed function menus_get_item_from_path().
19085 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
19087 * app/disp_callbacks.c:
19088 Show (empty) object menus on object that has none.
19089 Show title on object menus.
19092 Set zoom factor correctly when opening new displays.
19093 Better setting of scrollbars.
19097 Some reformating cleanup.
19100 Added title to object menus.
19103 Added object menu method (NULL-valued) to all objects.
19105 * objects/standard/polyline.c:
19106 Added title to object menu.
19108 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
19110 * app/preferences.[ch]:
19111 New files. Implements the preferences dialog and
19112 loading/saving of ~/.diarc.
19115 Added preferences.[ch].
19118 Load preferences on startup.
19120 * app/commands.[ch]:
19121 Added file_preferences_callback to show the preferences dialog.
19123 * app/create_object.c:
19124 Update extents when creating object.
19125 Use the reset_tools_after_create preferences setting.
19128 Use preferences when creating new display.
19131 Add preferences to menu.
19134 * app/layer_dialog.c:
19135 * app/properties.c:
19136 Don't allow shrinking of dialog.
19137 Add i18n of some strings.
19139 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
19141 Norwegian translation added.
19143 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
19145 * objects/standard/line.c:
19146 * objects/standard/arc.c:
19147 * objects/standard/polyline.c:
19148 * objects/standard/zigzagline.c:
19149 Loading of arrow data fixed.
19151 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
19154 Update extents when saving and exporting to postscript.
19155 Fixes a bug with postscript bounding-box being wrong.
19158 Changed border width from 5 to 2.
19161 Move grouped objects by the move-point of the first object.
19162 Fixes bug that made all objects in the group be off-grid
19163 when moving the group, even though all objects was on-grid.
19165 * app/layer_dialog.c:
19166 Update extents when changing layer.
19168 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19170 * objects/UML/uml.c:
19171 * objects/UML/component.c:
19172 * objects/UML/pixmaps/component.xpm:
19173 Added the UML component object
19175 1999-03-04 Seth Alves <alves@hungry.com>
19177 * objects/UML/generalization.c (generalization_create): avoid
19178 math on uninitialized genlz->text_width (NaN causes sigfpe)
19180 * objects/UML/realizes.c (realizes_create): same
19182 * objects/UML/dependency.c (dependency_create): same
19184 1999-03-01 Seth Alves <alves@hungry.com>
19186 * app/display.c (ddisplay_active): don't fly a warning panel
19187 if ddisplay_active is called when no views are open.
19189 * app/commands.c (set_default_file_selection_directory): set
19190 file selector's default directory if there is already
19193 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
19196 New info about imlib requirements.
19199 Added lib/pixmaps/Makefile to created makefiles.
19203 Change from obsoleted to newer gtk calls.
19206 Pass filename of the diagram when loading and saving.
19207 This creates better oportunities to handle filename saving.
19210 Pass filenames to load and save methods.
19212 * lib/dia_image.[ch]:
19213 Added dia_image_get_broken() call that returns a image which
19214 is used for 'broken' images.
19216 * lib/pixmaps/.cvsignore:
19217 * lib/pixmaps/Makefile.am:
19218 * lib/pixmaps/broken.xpm:
19219 New files for the broken image bitmap.
19222 Fixed bug with double destroyed filedialog.
19225 Updated load and save prototypes to use the new filename argument.
19228 Render broken image instead of line when got no image.
19229 Use the new filename in load and save to save (if possible)
19230 relative pathnames and to better try to find loaded images.
19232 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
19235 Some updates to the todo file.
19239 Place over/place over => sent to back/bring to front.
19240 Added some keyboard shortcuts to menus.
19242 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
19245 Changed string saving/loading to a new method. This should
19246 be much better att handling &,<,> and whitespaces.
19247 Loading strings of the old kind is still supported for backwards
19250 * samples/ER-demo.dia:
19251 * samples/UML-demo.dia:
19252 Updated to use the new strings.
19255 statusbar modified update fix.
19257 1999-02-27 Seth Alves <alves@hungry.com>
19259 * app/app_procs.c (app_init): added a --export-to-ps option
19260 which will cause dia to load a dia file and save it as ps
19261 and then exit. this is a little bogus, because it still
19262 pops up a window. this option only shows up if --enable-gnome
19265 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
19266 menu when built with --enable-gnome
19268 * app/interface.c (create_display_shell): build status bar
19269 even if --enable-gnome is used
19271 * app/menus.c: menu fixes for --enable-gnome
19273 * app/commands.c (file_open_dialog_ok_callback): fixed up
19274 menus when --enable-gnome is used
19275 (file_export_to_eps_callback): set a default file name
19276 when dialog is created
19278 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
19280 * objects/UML/association.c (association_create):
19281 Fixed usage of not initialized variable.
19282 Pointed out by Seth Alves <alves@hungry.com>.
19284 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
19287 Fixed detection of gnome-xml.
19288 From Valtteri Vuorikoski <vuori@k.notcom.org>.
19291 Fixed error detection on dlsym calls.
19292 From Valtteri Vuorikoski <vuori@k.notcom.org>.
19294 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
19296 * objects/UML/message.c (fill_in_dialog):
19299 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19301 * objects/standard/zigzagline.c:
19302 * objects/standard/polyline.c:
19303 * objects/standard/line.c:
19304 * objects/standard/arc.c:
19308 Support for sizeable arrows.
19310 * objects/standard/box.c:
19311 * objects/standard/ellipse.c:
19312 * objects/standard/image.c:
19313 Changed creation handle to lower-right.
19314 Transparent box/ellipse.
19316 * objects/standard/image.c:
19317 Better layout of properties boxes.
19319 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19321 * objects/UML/message.c (fill_in_dialog):
19322 Fixed dialog fill in. Common dialog for all messages.
19324 * objects/UML/object.c:
19325 Added multiple instance. Dialog related bugs fixed.
19326 Common dialog for all instances. Completed copy and destroy.
19328 * objects/UML/lifeline.c (lifeline_load):
19329 Conn initialization bug fixed and few bad loading prevention flags.
19330 Common dialog for all lifeline objects.
19332 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19334 * lib/dia_image.[ch]:
19335 More work on the DiaImage abstraction.
19338 * app/render_eps.c:
19339 * app/render_gdk.c:
19340 * objects/standard/image.c:
19341 Use the new DiaImage calls.
19343 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19347 Reversed the meaning of align horizontal/vertical.
19349 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19351 * app/load_save.c (diagram_load):
19352 Statusbar update fix.
19354 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19356 * app/interface.c (create_display_shell):
19357 Fixed status bar size.
19359 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19361 * lib/dia_image.[ch]:
19362 Added extern declaration for dia_image_release.
19363 Removed dia_image_draw, as it's not neseccary.
19365 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19367 * app/object_ops.c:
19369 Added equal distance alignment both vertical and horizontal.
19371 * objects/UML/object.c:
19372 Added a couple of attributes to load/read that were missing.
19374 * objects/UML/lifeline.c:
19375 Better handling of handles. Fixed another bug I forgot to add
19378 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
19380 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19382 * lib/dia_image.[ch]:
19384 New files. DiaImage wraps the GdkImlibImage.
19387 * app/render_eps.c:
19388 * app/render_gdk.c:
19389 * lib/render_store.[ch]:
19390 * objects/standard/image.c:
19391 Use the new DiaImagetype.
19394 Removed unused variable to eliminate warning.
19396 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
19398 * objects/standard/box.c:
19399 Added rounded corners on the box object.
19401 * lib/widgets.[ch]:
19402 Updated the DiaFileSelector widget.
19404 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19406 * objects/UML/object.c (objet_draw):
19407 Completed underlining of all object name lines.
19409 * objects/UML/message.c (fill_in_dialog):
19410 Fixed a bug that filled incorrectly the message's dialog.
19412 * objects/UML/lifeline.c (lifeline_load):
19413 Some cleanning and fixed a couple of bugs that caused
19414 crashes after reading diagrams with lifelines.
19417 Added flags to prevent crash with void strings
19419 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19420 * app/display.[ch]:
19421 Added statusbar to the display widget. Currently shows the zoom
19422 factor and modified flag of the viewed diagram. The statusbar is
19423 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19424 This caused the following additions:
19426 * app/diagram.[ch]:
19427 Added function diagram_set_modified. Calls
19428 ddisplay_update_statusbar for all displays showing the modified diagram.
19429 Changed diagram_modified to call diagram_set_modified.
19432 Added the creation of the statusbar.
19435 diagram_save now calls diagram_set_modified instead of setting
19436 dia->modified. Needed to force call to display_update_statusbar
19439 Changed the way view_show_all works. Now calls ddisplay_zoom
19440 instead of directly setting the zoom_factor, so the zoom factor is
19441 correctly shown in the statusbar.
19444 Fixed rubberband zoom to use ddisplay_zoom().
19446 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
19449 Rudimentary GNOME session management.
19451 * app/disp_callbacks.c
19455 GNOME menus. Problems:
19456 Callbacks doesn't get user_data.
19457 Weird warnings when creating popup menus.
19458 menus_set_sensitive(), menus_set_state() doesn't work.
19460 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19463 Add AM_PATH_GDK_IMLIB() call.
19466 Add gdk_imlib to linking flags.
19470 Print library-loading error messages on stdout too.
19473 Add standard image to toolbox.
19475 * app/render_eps.c:
19476 Set a more reasonable dot length. Fixed
19477 missing initialization of dot length.
19478 Added draw_image methods.
19480 * app/render_gdk.c (new_gdk_renderer):
19481 Dot a bit wider. Looks good in normal mode now.
19483 * objects/standard/image.c:
19484 * objects/standard/pixmaps/image.xpm:
19485 New files. Standard object for images.
19487 * app/render_eps.c (set_linestyle):
19488 * app/render_gdk.c (set_linestyle):
19489 * lib/widgets.c (dia_line_style_selector_init):
19491 New line style DOTTED.
19494 * lib/render_store.c:
19495 Change DrawImage call to use gdk_imlib.
19497 * lib/widgets.[ch]:
19498 Added widgets for selecting files.
19499 Added dotted to the linestyle selector.
19501 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19503 * objects/network/printer.c:
19504 * objects/network/network.c:
19505 * objects/network/pixmaps/printer.xpm:
19506 * objects/network/.cvsignore:
19507 * objects/network/Makefile.am:
19508 * objects/network/pixmaps/Makefile.am:
19509 New printer object in network.
19510 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19513 Added known XML bug.
19515 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19519 Reverted back from #include <gnome-xml/tree.h> to
19520 #include <tree.h> as this is fixed by the xml-config program.
19521 The former way broke for some people.
19522 Reported by blizzard@redhat.com.
19524 * objects/UML/lifeline.c:
19525 * objects/UML/message.c:
19526 * objects/UML/object.c:
19527 Removed some warnings.
19529 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19531 * objects/UML/lifeline.c:
19532 Fixed connection points over the life line when the focus of
19533 control is not drawn.
19535 * objects/UML/message.c:
19536 Now a recursive message can be freely resized using the handles.
19538 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19540 * objects/UML/lifeline.c:
19541 Added connection points.
19542 Added properties dialog with the option to draw/hide focus of control
19543 box and destruction mark.
19545 * objects/UML/object.c:
19546 Added properties dialog and stereotype, explicit state and attributes.
19547 It's also possible to mark the object as active.
19549 * objects/UML/pixmaps/object.xpm:
19552 * objects/UML/message.c:
19553 Added "recursive" message type (was not necessary to use OrthConn).
19555 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
19557 * objects/standard/arc.c:
19558 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19560 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
19562 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19566 Update xml includes to gnome-xml/*.h.
19568 * objects/standard/arc.c:
19569 Only one property dialog per type.
19570 Fix arrows directions.
19572 * objects/standard/box.c:
19573 * objects/standard/ellipse.c:
19574 * objects/standard/textobj.c
19575 Added default properties dialog.
19578 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19580 * objects/UML/Makefile.am:
19581 * objects/UML/uml.c:
19582 * objects/UML/lifeline.c:
19583 * objects/UML/object.c:
19584 * objects/UML/message.c:
19585 * objects/UML/pixmaps/lifeline.xpm:
19586 * objects/UML/pixmaps/object.xpm:
19587 * objects/UML/pixmaps/message.xpm:
19588 Added 3 new UML objects for dynamic modeling. To avoid internal
19589 conflicts, the name "objet" is used for object "object".
19592 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
19595 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
19597 * app/display.[ch]:
19598 * app/modify_tool.c:
19599 Added autoscrolling while doing rubber-band select.
19600 This patch from Matthias Köster
19601 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
19604 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
19606 * app/defaults.[ch]:
19607 New files, deals with default properties dialog.
19610 New file. Contains definitions for the new object menu.
19612 * lib/poly_conn.[ch]:
19613 New file. Base class for poly-line like objects.
19615 * objects/standard/polyline.c:
19616 * objects/standard/pixmaps/polyline.xpm:
19617 New files. Polyline object.
19620 Fixed bug with infinite loop when registering sheets.
19623 Removed unneccesary stuff.
19625 * app/disp_callbacks.c:
19626 Support for object menus.
19629 Added polyline to toolbox.
19630 Added call to tool_options_dialog_show() when double clicking on
19634 New function tool_options_dialog_show() for tool properties.
19640 Added ObjectType methods for handling object default dialogs.
19641 Added Object method for handling object_menu.
19642 Added unused methods to ObjectTypeOps for future binary
19645 * lib/widgets.[ch]:
19646 Added DiaArrowTypeSelector widget.
19648 * objects/standard/arc.c:
19649 * objects/standard/zigzagline.c:
19650 Added support for default properties.
19652 * objects/standard/line.c:
19653 Added support for default properties.
19654 Just use one properties dialog for all line objects. NOTE: This
19655 seems to have a bug. We're working on it.
19657 * standard/standard.c:
19658 Add the polyline object.
19660 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
19662 * app/modify_tool.c:
19663 Commented out buggy transitive select function. It wasn't really
19664 meant to go into cvs.
19667 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
19679 Swedish translation. Not completed.
19683 Added possibility to enable GNOME specific code with configure.
19686 Added possibility to set debug level with configure.
19689 Added about dialog.
19695 Added some GNOME specific code. Not ready for use.
19697 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
19700 Added text about needing gtk 1.1.13 and gnome-xml.
19703 Described changes since last version (0.20).
19705 Released version 0.30, tagged DIA_0_30.
19707 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
19709 * app/magnify.c (magnify_button_release):
19710 Fixed a problem when zooming in on a very small box would
19711 not release the grabbed pointer-focus.
19713 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19715 * app/load_save.c (diagram_load):
19716 Be somewhat more robust when loading files that
19719 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19723 * objects/UML/uml.c:
19724 * objects/network/network.c:
19725 * objects/standard/standard.c:
19726 Added versioning of object libraries.
19728 * app/create_object.c:
19729 Don't change tool when an object is created.
19731 * objects/network/network.c:
19736 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
19739 Updated gtk requirement to Gtk+ 1.1.13.
19742 Always add one screenful of scrolling space on
19743 each side of a diagram window.
19745 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
19748 Tell automake to auto-install missing files.
19751 Renamed deprecated Gtk+ function.
19753 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
19757 * samples/Makefile.am:
19758 * samples/ER-demo.dia:
19759 * samples/UML-demo.dia:
19760 Added samples directory.
19761 Added samples for ER and UML.
19764 * app/disp_callbacks.c:
19766 Zoom is done by sqrt(2) instead of 2.
19767 Lots of more zoom options in the menu.
19769 * objects/ER/relationship.c:
19770 Relationships have 8 connectionpoints instead of 4.
19772 * objects/UML/class.c:
19773 UML class name font a bit smaller.
19774 Fixed stupid bug in the copy operation.
19777 Displays are opened at 500x400 instead of 256x256.
19780 Fixup of internal error message.
19782 * app/color_area.c:
19784 * app/modify_tool.c:
19786 Removed debug printf's.
19789 Added new known bug.
19791 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
19795 Fixed so accelerator groups work in all windows.
19796 Updated to new gtk function names.
19802 Updated to new gtk function names.
19803 Set sensitivity of the align menu items.
19805 * objects/ER/pixmaps/Makefile.am:
19806 * objects/UML/pixmaps/Makefile.am:
19807 * objects/network/pixmaps/Makefile.am:
19808 Fix so that make dist works.
19811 * app/color_area.c:
19815 * app/layer_dialog.c:
19817 * app/object_ops.c:
19818 * app/properties.c:
19819 * lib/diagramdata.[ch]:
19821 * lib/objects/ER/attribute.c:
19822 * lib/objects/ER/entity.c:
19823 * lib/objects/ER/participation.c:
19824 * lib/objects/ER/relationship.c:
19825 * lib/objects/ER/.c:
19826 * objects/UML/actor.c:
19827 * objects/UML/association.c:
19828 * objects/UML/class_dialog.c:
19829 * objects/UML/dependency.c:
19830 * objects/UML/generalization.c:
19831 * objects/UML/large_package.c:
19832 * objects/UML/realizes.c:
19835 Updated to new gtk function names.
19838 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
19844 Fixed loading of diagrams specified as arguments.
19846 * objects/ER/attribute.c:
19847 * objects/ER/entity.c:
19849 * objects/ER/participation.c:
19850 * objects/ER/relationship.c:
19851 Updated the ER objects.
19854 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
19858 * objects/Makefile.am:
19859 * objects/ER/attribute.c:
19860 * objects/ER/entity.c:
19862 * objects/ER/participation.c:
19863 * objects/ER/relationship.c:
19864 * objects/ER/pixmaps/Makefile.am:
19865 * objects/ER/pixmaps/attribute.xpm:
19866 * objects/ER/pixmaps/entity.xpm:
19867 * objects/ER/pixmaps/participation.xpm:
19868 * objects/ER/pixmaps/relationship.xpm:
19869 * objects/ER/pixmaps/weakentity.xpm:
19870 First commit of entity relationship objects.
19871 These were done by hallon@lysator.liu.se.
19872 There are still stuff to do on these.
19874 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
19879 * app/diagram.[ch]:
19880 Change diagram_remove_all_selected to take new argument
19881 delete_empty. Empty objects are deleted only if it is TRUE.
19882 Removed call to close_eps_renderer. This is now done in end_render
19883 in the eps renderer.
19885 * app/create_object.c:
19886 * app/layer_dialog.c:
19887 Update calls to diagram_remove_all_selected.
19890 Update calls to diagram_remove_all_selected.
19891 Some code reformating.
19892 Changed order of adding updates i align_h and align_v.
19894 * app/modify_tool.c:
19895 Update calls to diagram_remove_all_selected.
19896 Added pointer grab when doing rubber-band selection, this fixes
19897 the bug when draging the box over to another window.
19899 * app/connectionpoint_ops.[ch]:
19900 diagram_update_connections_object changed to take an argument
19901 update_nonmoved. This lets connections that has not moved, but
19902 the stuff they're connected to has been moved work.
19903 Update calls to the new diagram_update_connections_object.
19905 * app/properties.c:
19906 Update calls to the new diagram_update_connections_object.
19907 Update extents when properties are applied.
19909 * app/disp_callbacks.c:
19910 Added support for zooming with the '+' and '-' keys.
19913 Removed old keyboard shortcuts for zoom.
19916 Added calls begin_render and end_render to renderer.
19917 These can be used for setup and cleanup.
19919 * lib/diagramdata.c:
19920 Added calls to begin_render and end_render in data_render.
19922 * app/render_gdk.c:
19923 Added begin_render and end_render.
19925 * app/render_eps.[ch]:
19926 Added begin_render and end_render.
19927 Moved close_eps_renderer code to end_render.
19928 Various fixes to the generated eps code. This fixes importing
19929 generated eps into LYX.
19931 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
19937 Menus for alignment updated.
19939 * app/object_ops.[ch]:
19940 Functions for object alignment updated.
19942 * app/commands.[ch]:
19943 Object alignment callbacks updated.
19944 New diagrams are called Untitled-<nr>.
19946 * app/layer_dialog.c:
19947 Active layer selected when showing layers from new
19951 Compress xml files when saving.
19952 Use xml namespace 'dia'.
19955 Minor comment update.
19957 * objects/UML/class_dialog.c:
19958 Cleanup of the gkt_list_item moving code.
19959 Fixed bug with update of operation when moving parameters.
19961 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
19963 * app/layer_dialog.[ch]:
19964 Fixed the rest of the layers dialog.
19967 Added call to redo layer dialogs diagram list when changing
19970 * lib/diagramdata.[ch]:
19971 Added data_raise_layer and data_lower_layer functions for
19972 raising/lowering layers. Added data_add_layer_at for adding a
19973 layer at a specified index.
19975 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
19977 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
19980 Added support for reading diagrams from the command line.
19982 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
19984 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
19986 * app/commands.[ch]:
19987 Added objects_align_callback().
19990 Added align objects to menu.
19992 * app/object_ops.[ch]:
19993 Add object_list_align().
19995 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
19996 * app/layer_dialog.[ch]:
19997 New files. Handles the layers dialog. Needs a bugfix for glib to
19998 work. Sent patch to gtk-list.
20000 * app/pixmaps/new.xpm:
20001 * app/pixmaps/eye.xbm:
20002 * app/pixmaps/lower.xpm:
20003 * app/pixmaps/raise.xpm:
20004 * app/pixmaps/delete.xpm:
20005 New files. Images for the layer dialog buttons.
20007 * lib/diagramdata.h
20008 * lib/diagramdata.c
20009 New files for the DiagramData and Layer structures and functions.
20012 Added call to create_layer_dialog() on startup.
20014 * app/commands.[ch]:
20015 New callbacks for showing the properties and layout dialog.
20016 Changes for the new DiagramData structure.
20018 * app/connectionpoint_ops.c:
20019 * app/cut_n_paste.c:
20020 * app/diagram.[ch]:
20021 * app/display.[ch]:
20023 * app/modify_tool.c:
20024 * app/object_ops.[ch]:
20025 * app/render_eps.c:
20027 Changes for the new DiagramData structure.
20030 * app/properties.c:
20031 Set correct wmclasses.
20034 Fix load and save of layers.
20037 Update DTD for layers.
20040 New menus for dialogs.
20046 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
20049 Removed the gtk 1.1.5 stuff.
20052 Updated gtk check to version 1.1.5.
20053 Updated version from 0.20 to 0.30
20055 * app/commands.[ch]:
20056 Updated some callbacks to be of type GtkItemFactoryCallback1.
20057 Not all are done yet, but it works anyway.
20060 Removed Gtk 1.0.0 GtkAcceleratorTable references.
20064 Update to Gtk 1.1.x functions.
20065 Use ItemFactory instead of MenuFactory.
20067 * app/render_gdk.c:
20068 Removed Gtk 1.0.0 references.
20070 * objects/UML/class_dialog.c:
20071 Scrolled window updates for Gtk 1.1.5.
20074 Removed ugly fix for gnome-xml bug. Make sure you get the
20075 newest version of gnome-xml from CVS.
20077 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
20080 Removed the xml load/save line.
20086 Removed building of files.c
20089 * lib/connection.c:
20093 * lib/render_object.c:
20094 * objects/UML/actor.c:
20095 * objects/UML/association.c:
20096 * objects/UML/class.c:
20097 * objects/UML/constraint.c:
20098 * objects/UML/dependency.c:
20099 * objects/UML/generalization.c:
20100 * objects/UML/implements.c:
20101 * objects/UML/large_package.c:
20102 * objects/UML/note.c:
20103 * objects/UML/realizes.c:
20104 * objects/UML/small_package.c:
20105 * objects/UML/uml.c:
20106 * objects/UML/usecase.c:
20107 * objects/network/bus.c:
20108 * objects/standard/arc.c:
20109 * objects/standard/box.c:
20110 * objects/standard/ellipse.c:
20111 * objects/standard/line.c:
20112 * objects/standard/textobj.c:
20113 * objects/standard/zigzagline.c:
20114 Removed all includes of files.h
20117 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
20120 Made the val property of string be implied.
20121 This makes it possible to save strings that
20122 are NULL. Just leave out val.
20124 * objects/lib/dia_xml.c:
20125 Fixed string so that it is possible to save strings
20126 that are NULL. Also made an ugly workaround of a
20127 bug in gnome-xml which removes empty properties.
20129 * objects/lib/orth_conn.c:
20130 Fixed a bug in saving. Forgot to step through the
20133 * objects/UML/association.c:
20134 * objects/UML/class.c:
20135 * objects/UML/constraint.c:
20136 * objects/UML/dependency.c:
20137 * objects/UML/generalization.c:
20138 * objects/UML/implements.c:
20139 * objects/UML/large_package.c:
20140 * objects/UML/note.c:
20141 * objects/UML/small_package.c:
20142 * objects/UML/realizes.c:
20143 * objects/UML/usecase.c:
20144 * objects/UML/actor.c:
20145 Fixed UML objects to save as xml.
20146 The last two were done by asierra@servidor.unam.mx (asierra-981204)
20148 * objects/UML/uml.[ch]:
20149 Updated *_write() and *_read() functions to use xml.
20151 * objects/network/bus.c:
20152 * objects/network/computer.c:
20153 * objects/network/disc.c:
20154 * objects/network/monitor.c:
20155 Updated network diagrams to use xml.
20157 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
20160 New file. DTD that describes the xml file format
20163 * lib/dia_xml.[ch]:
20164 New files. Support for saving object to xml files.
20169 Added check for and usage of gnome-xml library.
20172 Major chages. Now saves/loads diagrams as xml.
20175 * lib/element.[ch]:
20176 * lib/connection.[ch]:
20177 * lib/orth_conn.[ch]:
20178 * lib/render_object.[ch]:
20180 Updated object support load/save functions for xml:
20182 * object/standard/arc.c:
20183 * object/standard/box.c:
20184 * object/standard/ellipse.c:
20185 * object/standard/line.c:
20186 * object/standard/textobj.c:
20187 * object/standard/zigzagline.c:
20188 Updated all standard objects to use xml.
20191 Only the standard objects are converted right now, don't
20192 save or load uml or network diagrams yet. Also, since this
20193 is new code it is deemed a bit unstable.
20198 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
20200 * objects/UML/class.c:
20201 Changed classname font to Helvetica.
20202 Added more space above the classname
20204 * objects/UML/usecase.c:
20205 Correct placements of connectionpoints on ellipse.
20206 Better algorithm for deciding aspect ration on
20209 These changes were made by Alejandro Aguilar Sierra
20210 <asierra@servidor.unam.mx>. (asierra-981201)
20212 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
20214 * objects/UML/actor.c:
20215 Changed the extents and alignment of the element
20218 * objects/UML/.cvsignore:
20219 Added usecase.lo and actor.lo.
20221 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
20223 * objects/UML/actor.c:
20224 * objects/UML/usecase.c:
20225 * objects/UML/pixmaps/actor.xpm:
20226 * objects/UML/pixmaps/case.xpm:
20227 New files. Implements usecase and actor UML objects.
20228 These objects are done by Alejandro Aguilar Sierra
20229 <asierra@servidor.unam.mx>.
20231 * objects/UML/Makefile.am:
20232 * objects/UML/pixmaps/Makefile.am:
20233 Added usecase and actor to makefile.
20236 Added Alejandro and Jerome to autors list.
20238 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
20240 * objects/UML/class.c (umlclass_load):
20241 Fixed typo. Reported by Jerome.Abela@solsoft.fr
20243 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
20245 * app/properties.c:
20246 Update connections when doing apply in the properties window.
20248 * objects/UML/uml.[ch]:
20249 * objects/UML/class.[ch]:
20250 * objects/UML/class_dialog.c:
20251 Added connection points on both sides of attributes and
20252 operations in UML classes.
20253 Based on idea from Jerome.Abela@solsoft.fr
20255 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
20258 Some new documentation about handles and connectionpoints.
20261 Added functions object_add_connectionpoint and
20262 object_remove_connectionpoint for handling a dynamic
20263 number of connectionpoints.
20265 * objects/UML/class.c:
20266 Only reserve space for stereotype when it is shown.
20268 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
20270 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
20272 * app/connectionpoint_ops.c:
20274 * app/disp_callbacks.c:
20275 * app/display.[ch]:
20277 * app/handle_ops.c:
20279 * app/modify_tool.c:
20280 * app/render_gdk.[ch]:
20282 Huge cleanup of internal rendering system.
20283 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
20284 This gives a few new methods for Interactive Renderers for setting
20285 clipping regions and drawing pixel based lines and rects.
20286 Updated the rest of the code to use the new stuff.
20288 * app/render_eps.c:
20292 * objects/standard/zigzagline.c
20293 Fixed unused variable warnings.
20296 Fixedbug with stringwidth where width==0.
20301 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
20303 * lib/widgets.[ch]:
20304 Added suppot for setting the font of a
20305 DiaFontSelector widget.
20306 Also fixed some typos in the header.
20309 Added a comment about the GetPRoperties method call.
20310 You have to make sure to update widget state when
20311 this method is called. (Not all objects do this yet,
20317 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
20320 Fixed problem with height of ascent and descent for fonts.
20321 It didn't use the whole height (==ascent+descent) when calculatine
20322 ascent_ratio and descent_ratio.
20324 * objects/standard/textobj.c:
20325 * objects/standard/box.c:
20326 * objects/standard/ellipse.c:
20327 * objects/standard/line.c:
20328 * objects/standard/arc.c:
20329 Updated and added property dialogs for these objects.
20330 Also added line width/color/style to those objects
20331 that didn't have it.
20332 This change breaks fileformat compatibility for these objects.
20334 * objects/standard/zigzagline.c:
20335 Changed zigzagline to be based on OrthConn, much nicer.
20336 Also added line style and color to properties.
20337 This change breaks fileformat compatibility for zigzagline.
20340 Fixed bug in message(). Forgot a pair of '&'.
20342 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
20344 * lib/widgets.[ch]:
20345 Added DiaColorSelector widget.
20346 This is a colored button that pops up a color selection
20347 dialog when pressed.
20349 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
20351 * lib/widgets.[ch]:
20353 New files, added widgets for selecting fonts, alignment
20354 and line-style. Will be used later.
20356 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
20360 * objects/UML/Makefile.am:
20361 * objects/network/Makefile.am:
20362 * objects/standard/Makefile.am:
20363 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
20364 in all Makefile.am.
20366 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
20368 * app/handle_ops.c (handle_draw):
20369 connected HANDLE_MINOR_CONTROL also becomes red.
20371 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
20374 removed -ldl from linking. This is added if needed by configure.
20377 Open dlls with RTLD_LAZY if it is defined.
20378 Some cleanups: char *error -> const char *error
20379 Added fprintf()'s to where we exited because of errors.
20382 Include <sys/types.h>
20384 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
20389 Detect dlopen better.
20390 Detect wether dlopen needs an underscore in the identifier.
20391 This code was mostly borrowed from guile.
20395 * objects/standard/standard.c:
20396 * objects/network/network.c:
20397 * objects/UML/uml.c:
20399 Changed the way sheets reference objects to use just the
20400 name. Changed module loading to a two stage model:
20401 First register_objects() is called for all modules.
20402 Then register_sheets() is called. This means that
20403 sheets can safely include objects from other modules.
20406 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
20408 * objects/network/bus.c:
20409 * objects/network/network.c:
20410 * objects/network/Makefile.am:
20411 New file bus.c. Added new object: Ethernet bus.
20413 * objects/standard/box.c:
20414 Added call to gtk_spin_button_set_numeric for linewidth spinner
20415 in property dialog.
20417 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
20419 * app/connectionpoint_ops.c:
20420 * app/create_object.c:
20422 * app/handle_ops.c:
20423 * app/modify_tool.c:
20424 * lib/connection.c:
20429 * loads of objects:
20430 Changed handle->connectable to handle->connect_type.
20431 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20432 that their connections don't break when moving objects.
20435 Always select the last handle in an object that has
20436 the closest distance.
20438 * lib/geometry.[ch]:
20439 Added rectangle_add_point function.
20442 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
20444 * app/properties.[ch]: New files. Handles the new properties
20447 * app/modify_tool.c: Changed to use new properties dialog.
20449 * app/object_ops.[ch]: Removed object_changed_callback, as it's
20450 not needed anymore. This is now handled differently in
20454 Changed the properties ops for objects. Removed typedefs
20455 ChangedObjectTime and ObjectChangedFunc needed for the old way.
20456 Added object_return_null function.
20459 * lib/render_object.c:
20461 Changed objects to use the new properties dialog.
20464 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
20466 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20469 * autogen.sh: New file. Copied from gtk and added a call to
20470 libtoolize. Anyone knows why this isn't done in gtk?
20472 * Removed autogenerated files.
20474 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
20476 * Added call setlocale(LC_NUMERIC, "C") so that formating of
20477 floating-point numbers in postscript output will be correct.
20478 * Did some cleanup of generated postscript files.