1 2003-09-28 Steffen Macke <sdteffen@web.de>
3 * makefile.msc: added target po to update the translations
5 2003-08-03 Hans Breuer <hans@breuer.org>
7 * config.h.win32 : close the version string
9 * lib/libdia.def : with color_white, color_black being static
10 on win32 they can not be exported anymore either
12 * lib/dialibartrenderer.c : text rendering is back on win32,
13 only by Gdk though; almost a year seems to be enough to
14 wait for my patch at bug #94791 to be accepted ...
16 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
18 * shapes/network/{digitizing_board.png,plotter.png,
19 laptop.png,telephone.png}: 22x22 icons.
21 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
23 * doc/pl/dia-manual.sgml:
24 * doc/en/dia-manual.xml:
29 pre3 improves font rendering speed.
31 * app/app_procs.c (app_init): Don't do pango init here, it's done
32 on demand in font.c now.
34 * lib/font.c: Load pango context on demand rather than during
35 init/all the time strikes a better balance between working font
36 size and speed. Still need to cache width calculations.
38 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
40 * lib/dia_xml.c: Enable pretty printing. Should have been added
43 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
45 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
46 adjustment a bit for half diamond and open round.
48 * RELEASE-PROCESS: Added note about notifying translators and
51 * doc/pl/dia-manual.sgml:
52 * doc/en/dia-manual.xml:
59 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
61 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
62 calculation for half diamond and open round.
65 * objects/UML/component_feature.c:
66 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
67 arrows instead of specific little hacks. Much nicer, but damn
68 there's a lot of arrows.
70 * lib/dialibartrenderer.c (begin_render):
71 * app/render_libart.c (begin_render): Use correct DPI for screen
72 (well, actually the default DPI of 75 for now).
74 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
76 * lib/diagdkrenderer.c (draw_string): Some reformatting.
78 * app/app_procs.c (app_init): Note on what should be done for the
79 pango context now, only it doesn't work:(
81 * lib/font.c (dia_font_new): Make sure to load fonts that are
82 used, using a reasonable pango_context. Also a comment on the
85 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
87 * doc/pl/graphics/*.png:
88 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
89 loop (bug #121817). PL translator may want to change the
90 home_network png to be in Polish. If the docs get translated into
91 more languages, we'll want to find out how to share these things.
93 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
95 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
96 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
99 * app/filedlg.c (file_save_as_callback): Put filename setting
100 together. (Preparation for allowing default save dir.)
102 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
103 correctly this time:)
105 * app/dia-props.c (diagram_properties_show):
106 * app/properties.c (properties_show): Make sure the
107 dialogs are transient for the correct diagram.
109 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
111 * configure.in: Make sure -lz -lm is passed into second png test
112 as well (stupid AC_LINK_IFELSE can't take it as an argument).
114 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
115 comment-filled files readable. Once we have a 'generic data'
116 system, we can put comments in there.
118 2003-09-06 Steffen Macke <sdteffen@web.de>
120 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
121 g_string_sized_new() instead of g_string_new() to make it compile
122 * app/Makefile.am: including dia.ico and dia.rc in the tarball
123 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
124 for non-solid linestyles - otherwise custom linestyles have to be used.
126 2003-09-02 Steffen Macke <sdteffen@web.de>
128 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
131 2003-09-02 Christian Neumair <chris@gnome-de.org>
133 * sheets/Pneumatic.sheet.in: Slight unification fix.
135 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
139 * dia.spec (Release):
140 * doc/en/dia-manual.xml:
141 * doc/pl/dia-manual.sgml:
142 * NEWS: Update to 0.92-pre1.
144 * app/properties.c (properties_key_event): Removing Esc/Enter
145 handling for now, interferes to much with regular dialog usage.
147 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
148 Function to escape special TeX characters. Not in use yet, as
149 PSTricks output by default is TeX strings. Should get a save-time
152 2008-09-01 Steffen Macke <sdteffen@web.de>
154 * lib/paper.h: explanatory comment on width and height
156 2003-08-30 Steffen Macke <sdteffen@web.de>
159 * lib/color.h: made color_white, color_black static on win32
161 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
163 * configure.in (PNG_LIBS): Something in the png tests added an
164 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
166 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
168 * configure.in: Quote correctly for temporarily adding freetype
171 * app/preferences.c (prefs_save): Remove debugging g_print.
173 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
175 * objects/flowchart/parallelogram.c (pgram_update_data):
176 Directions for connections, better system for placing
179 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
181 * lib/diagramdata.c (layer_find_closest_object_except): Look all
182 the way through the object list, so the foremost object is selected.
184 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
185 included for diagramdata.c.
187 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
188 newline in multistringprop not close the dialog. Failed so far.
190 2003-08-25 Steffen Macke <sdteffen@web.de>
192 * app/commands.c: using CHM instead of HTML on win32 if available
193 * lib/diagramdata.h: including dynamic_obj.h
195 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
197 * app/properties.c (properties_key_event): Make Enter = Ok for
198 properties dialogs. Still some problems with this and Esc for
199 Cancel, for instances escaping out of a menu closes the dialog.
201 * objects/UML/association.c (association_get_properties):
202 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
205 * app/diapsft2renderer.c (draw_string): Use
206 dia_font_scaled_build_layout to ensure similarity of text.
208 * lib/diagramdata.c: Remove obj from dynobj list when removing
209 from layer to avoid nasty race conditions.
211 * app/undo.c (group_objects_revert): Make sure to unparent and
212 remove from dynobj list when changing layers objects.
214 2003-08-23 Steffen Macke <sdteffen@web.de>
216 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
217 StretchBlt(); fixes #92249
219 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
221 * app/filedlg.c (file_save_as_callback):
223 * app/preferences.c (prefs_data):
225 * lib/diagramdata.c (new_diagram_data):
226 * app/load_save.c (diagram_data_load):
227 Let the document remember whether it was compressed. The user can
228 still override this in the Save As... dialog, and that will still
229 be remembered as the default for new diagrams.
231 2003-08-23 Steffen Macke <sdteffen@web.de>
233 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
235 2003-08-22 Steffen Macke <sdteffen@web.de>
237 * plug-ins/xslt/dia-uml.xsl:
238 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
239 table containing a list of components grouped by stereotype
241 2003-08-21 Steffen Macke <sdteffen@web.de>
243 * lib/makefile.msc: added connectionpoint.obj
244 * lib/libdia.def: added connpoint_update, find_slope_directions
245 * app/disp_callbacks.c: including scroll_tool.h
246 * obj/makefile.msc: added component_feature.obj
247 * app/paginate_gdiprint.c: fixed loop initialization in
248 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
251 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
253 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
256 * lib/diagramdata.h: Colors added to prefs.
257 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
258 New field for pagebreak color, which should
259 behave the same as grid color and be settable for a diagram.
261 * app/diagram.c (diagram_init): Update diagram pagebreak color
264 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
267 * app/preferences.[ch]: Default diagram colors now #defines, so
268 loading can use it. Also, colors are now in NewDiagramData, so
269 are passed nicely into new diagrams directly from prefs. Yum.
271 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
272 Support for loading and saving grid and pagebreak colors with the
273 diagram. I'm inclined to make all the three Colors in diagram
274 Color*s instead, so we can tell if they're specified for the
275 diagram or merely the default setting. There'd be no way for the
276 user to tell if the color of a diagram is default, though, unless
277 we add a 'reset to default' button to prefs.
279 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
280 pagebreak color. Unsensitizing grid size when dynamic.
282 * objects/UML/component.c: Patch from Krzysztof Foltman
283 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
284 third. Makes the left side connections actually be on the line
287 2003-08-20 Steffen Macke <sdteffen@web.de>
289 * lib/libdia.def: added layer_find_closest_object_except
290 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
292 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
298 * app/disp_callbacks.c:
299 * app/create_object.h:
300 * app/create_object.c: Patch from Krzysztof Foltman
301 <kfoltman@onet.pl>: Middle button can scroll transiently when
302 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
306 * sheets/UML.sheet.in:
307 * sheets/UML/receptacle.xpm:
308 * sheets/UML/Makefile.am:
309 * sheets/UML/eventsource.xpm:
310 * sheets/UML/eventsink.xpm:
311 * objects/UML/pixmaps/facet.xpm:
312 * objects/UML/uml.c (dia_plugin_init):
313 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
314 * objects/UML/component_feature.c:
315 Patch from W. Borgert <debacle@debian.org>: Add event sources and
318 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
320 * lib/object.h: Turning some comments into doxygen style.
322 * lib/object_defaults.c (dia_object_defaults_load)
323 (dia_object_default_get, dia_object_default_create):
324 Fixing up existing documentation.
326 * lib/object.h: Doxygen style documentation begun.
328 * app/create_object.c:
330 * app/connectionpoint_ops.c:
331 * app/disp_callbacks.c:
334 * objects/network/wanlink.c (wanlink_move_handle):
335 * objects/network/bus.c (bus_move_handle):
337 * objects/flowchart/parallelogram.c (pgram_move_handle):
338 * objects/flowchart/ellipse.c (ellipse_move_handle):
339 * objects/flowchart/diamond.c (diamond_move_handle):
340 * objects/flowchart/box.c (box_move_handle):
342 * objects/custom/custom_object.c (custom_move_handle):
344 * objects/chronogram/chronoref.c (chronoref_move_handle):
345 * objects/chronogram/chronoline.c (chronoline_move_handle):
347 * objects/SADT/box.c (sadtbox_move_handle):
348 * objects/SADT/arrow.c (sadtarrow_move_handle):
349 * objects/SADT/annotation.c (annotation_move_handle):
351 * objects/Misc/analog_clock.c (analog_clock_move_handle):
353 * objects/GRAFCET/vergent.c (vergent_move_handle):
354 * objects/GRAFCET/vector.c (arc_move_handle):
355 * objects/GRAFCET/transition.c (transition_move_handle):
356 * objects/GRAFCET/step.c (step_move_handle):
357 * objects/GRAFCET/condition.c (condition_move_handle):
358 * objects/GRAFCET/action.c (action_move_handle):
360 * objects/FS/function.c:
362 * objects/FS/flow-ortho.c (orthflow_move_handle):
363 * objects/FS/flow-poly.c (flow_move_handle):
365 * objects/UML/usecase.c (usecase_move_handle):
366 * objects/UML/state_term.c (state_move_handle):
367 * objects/UML/state.c (state_move_handle):
368 * objects/UML/small_package.c (smallpackage_move_handle):
369 * objects/UML/realizes.c (realizes_move_handle):
370 * objects/UML/object.c (objet_move_handle):
371 * objects/UML/note.c (note_move_handle):
372 * objects/UML/node.c (node_move_handle):
373 * objects/UML/message.c (message_move_handle):
374 * objects/UML/lifeline.c (lifeline_move_handle):
375 * objects/UML/large_package.c (largepackage_move_handle):
376 * objects/UML/implements.c (implements_move_handle):
377 * objects/UML/generalization.c (generalization_move_handle):
378 * objects/UML/fork.c (fork_move_handle):
379 * objects/UML/dependency.c (dependency_move_handle):
380 * objects/UML/constraint.c (constraint_move_handle):
381 * objects/UML/compprop.c (compprop_move_handle):
382 * objects/UML/component.c (component_move_handle):
383 * objects/UML/branch.c (branch_move_handle):
384 * objects/UML/association.c (association_move_handle):
385 * objects/UML/actor.c (actor_move_handle):
386 * objects/UML/activity.c (state_move_handle):
387 * objects/UML/class.c (umlclass_move_handle):
389 * objects/standard/ellipse.c (ellipse_move_handle):
390 * objects/standard/zigzagline.c (zigzagline_move_handle):
391 * objects/standard/textobj.c (textobj_move_handle):
392 * objects/standard/polyline.c (polyline_move_handle):
393 * objects/standard/polygon.c (polygon_move_handle):
394 * objects/standard/line.c (line_move_handle):
395 * objects/standard/image.c (image_move_handle):
396 * objects/standard/bezier.c (bezierline_move_handle):
397 * objects/standard/arc.c (arc_move_handle):
398 * objects/standard/beziergon.c (beziergon_move_handle):
399 * objects/standard/box.c (box_move_handle):
401 * objects/ER/relationship.c (relationship_move_handle):
402 * objects/ER/participation.c (participation_move_handle):
403 * objects/ER/entity.c (entity_move_handle):
404 * objects/ER/attribute.c (attribute_move_handle):
406 * lib/polyshape.c (polyshape_move_handle):
408 * lib/orth_conn.c (orthconn_move_handle):
410 * lib/neworth_conn.c (neworthconn_move_handle):
411 * lib/neworth_conn.h:
412 * lib/element.c (element_move_handle):
414 * lib/connection.c (connection_move_handle):
416 * lib/beziershape.c (beziershape_move_handle):
418 * lib/bezier_conn.c (bezierconn_move_handle):
420 *BINARY COMPATIBILITY CHANGE*
421 Update prototype for *_move_handle() to include connectionpoint,
422 and also pass on modifiers. Pass in connectionpoint where
425 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
426 file connectionpoint.c.
428 2003-08-17 Danilo Šegan <dsegan@gmx.net>
430 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
432 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
434 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
436 * lib/beziershape.c (beziershape_update_data): Autoroute
437 directions for beziershapes!
439 * lib/connectionpoint.c (find_slope_directions):
440 * lib/connectionpoint.h: Function for finding the available
441 directions on a slope.
443 * lib/polyshape.c: Reasonable directions for
446 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
448 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
449 * objects/GRAFCET/vergent.c (vergent_update_data):
450 * objects/GRAFCET/transition.c (transition_update_data):
451 * objects/GRAFCET/action.c (action_update_data):
452 * objects/GRAFCET/step.c (step_update_data):
453 * objects/FS/function.c (function_update_data):
454 * lib/connpoint_line.c (connpointline_putonaline):
455 * objects/ER/attribute.c (attribute_update_data):
456 * objects/ER/entity.c (entity_update_data):
457 * objects/ER/relationship.c (relationship_update_data):
458 * objects/chronogram/chronoline.c (chronoline_update_data): Set
459 directions for connection points.
461 * objects/UML/component.c (component_create): Set to allow
464 * app/create_object.c (create_object_button_press):
465 * app/diagram.[ch] (diagram_find_clicked_object_except):
466 * lib/diagramdata.[ch] (layer_find_closest_object_except):
467 Avoid parenting to objects you're connecting to (otherwise you
468 couldn't make a connection out of a parenting object). To do
469 this, added functions to find the nearest object except a given
472 * app/render_libart.c: Rearrange libart include to avoid multiple
473 include program (and put libart includes inside #ifdef!)
475 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
477 * lib/dialibartrenderer.c: Don't include art_config.h if others
478 also do, as it isn't #ifdef'd.
480 * objects/flowchart/ellipse.c (ellipse_update_data): Add
481 directions for connection points.
483 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
485 * objects/flowchart/box.c (box_update_data): Add directions, use
487 (box_load): Use g_malloc0.
489 * lib/Makefile.am (libdia_la_SOURCES):
490 * lib/connectionpoint.c (connpoint_update):
491 Function to call to update a connection point info in _update_data().
493 * lib/connectionpoint.h: Convenience DIR_ macros.
495 * app/preferences.c (prefs_data): Make pretty formatted XML the
498 * lib/dialibartrenderer.c:
499 * app/render_libart.c: Make sure art_config.h is included, cause
500 some libart headers are broken.
502 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
503 after test. Add freetype-config cflags to cflags variable.
505 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
507 * app/authors.h: Credits for Krzysztof.
509 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
510 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
511 than the description) is visible in the title of the properties
512 dialog. That ought to be a short description (translatable),
513 though we still want long descriptions for the tooltips. Hmmm...
515 * configure.in: Updated to use AC_LINK_IFELSE instead of
516 AC_TRY_COMPILE, also force to link to check libs on Solaris.
518 * objects/ER/entity.c (entity_load):
519 * objects/ER/attribute.c (attribute_load):
520 * lib/attributes.c (attributes_set_default_font):
521 Check if font is non-null before unreffing.
523 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
525 * app/diagram.c (diagram_ungroup_selected)
526 (diagram_group_selected): Use the undo apply to make sure grouping
527 and ungrouping is done in consistent manners. This removes a fair
528 amount of duplicated code from diagram.c.
530 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
531 (group_objects_revert, group_objects_apply): Working undo/redo for
532 diagram tree updates. The initial actions still don't quite work.
534 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
536 * app/create_object.c (create_object_button_press):
538 * app/diagram.c: Undo support for parenting. Uses apply/revert in
539 undo only for manipulating the parent/child relationships. Things
540 like removing an object doesn't use the undo functions for
541 parenting, so any updates to come (like to diagramtree) should be
544 2003-08-03 Hans Breuer <hans@breuer.org>
546 * app/create_object.c : minor formating and g_new0 for
549 * lib/bezier_conn.[hc] lib/beziershape.[hc]
550 lib/prop_geomtypes.c (prop_geomtypes_register)
551 objects/standard/bezier.c objects/standard/beziergon.c :
552 ability to set bezpoints via StdProp api
554 * plug-ins/python/pydia-property.c : convert list of tuples
557 * plug-ins/python/diasvg_import.py : use it to
558 implement part of path parsing. Also minor improvements
559 like inheritance of group attributes to members,
560 whitespace, title and style:text/css ignoring ;-)
562 2003-08-02 Hans Breuer <hans@breuer.org>
564 * lib/connections.c (connection_move_handle): return
565 something to make it compile
566 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
567 must return a value -> dito
568 [Is there a warnings-as-errors switch we could use with gcc
569 to avoid such in future ?]
571 * plug-ins/python/pydia-object.h : define *_Check macros
572 * plug-ins/python/diamodule.c : provide dia.group_create()
573 * plug-ins/python/pydia-diagramdata.c : add
574 DiaDiagramData.add_layer()
575 * plug-ins/python/pydia-property.c : allow to set color by
578 * plug-ins/python/diasvg_import.py : based on the above
579 implement a) group support, b) rgb(1,2,3) color handling,
580 and somewhat fishy data:image/png;base64 support (create
581 temporary files from inline image data)
582 d) dump the import errors as text into an 'Error' layer
584 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
585 stray " in draw_rect and corrected error message formating
587 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
588 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
591 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
593 * app/magnify.c (create_magnify_tool): allocate with g_new0()
595 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
596 preferences values (see bug 118570). Also group items into a GtkFrame.
598 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
603 * app/commands.c (objects_unparent_children_callback):
605 * app/diagram.c (diagram_unparent_selected,
606 (diagram_update_menu_sensitivity):
607 Added unparenting of single children.
618 * lib/neworth_conn.c:
619 * lib/neworth_conn.h:
626 * objects/EML/instantiation.c:
627 * objects/EML/interaction-ortho.c:
628 * objects/EML/interaction.c:
629 * objects/EML/process.c:
630 * objects/ER/attribute.c:
631 * objects/ER/entity.c:
632 * objects/ER/participation.c:
633 * objects/ER/relationship.c:
634 * objects/FS/flow-ortho.c:
635 * objects/FS/flow-poly.c:
637 * objects/FS/function.c:
638 * objects/GRAFCET/action.c:
639 * objects/GRAFCET/condition.c:
640 * objects/GRAFCET/step.c:
641 * objects/GRAFCET/transition.c:
642 * objects/GRAFCET/vector.c:
643 * objects/GRAFCET/vergent.c:
644 * objects/Misc/analog_clock.c:
645 * objects/SADT/annotation.c:
646 * objects/SADT/arrow.c:
647 * objects/SADT/box.c:
648 * objects/UML/activity.c:
649 * objects/UML/actor.c:
650 * objects/UML/association.c:
651 * objects/UML/branch.c:
652 * objects/UML/class.c:
653 * objects/UML/classicon.c:
654 * objects/UML/component.c:
655 * objects/UML/constraint.c:
656 * objects/UML/dependency.c:
657 * objects/UML/fork.c:
658 * objects/UML/generalization.c:
659 * objects/UML/implements.c:
660 * objects/UML/large_package.c:
661 * objects/UML/lifeline.c:
662 * objects/UML/message.c:
663 * objects/UML/node.c:
664 * objects/UML/note.c:
665 * objects/UML/object.c:
666 * objects/UML/realizes.c:
667 * objects/UML/small_package.c:
668 * objects/UML/state.c:
669 * objects/UML/state_term.c:
670 * objects/UML/usecase.c:
671 * objects/chronogram/chronoline.c:
672 * objects/chronogram/chronoref.c:
673 * objects/custom/custom_object.c:
674 * objects/flowchart/box.c:
675 * objects/flowchart/diamond.c:
676 * objects/flowchart/ellipse.c:
677 * objects/flowchart/parallelogram.c:
678 * objects/network/bus.c:
679 * objects/network/wanlink.c:
680 * objects/standard/arc.c:
681 * objects/standard/bezier.c:
682 * objects/standard/beziergon.c:
683 * objects/standard/box.c:
684 * objects/standard/ellipse.c:
685 * objects/standard/image.c:
686 * objects/standard/line.c:
687 * objects/standard/polygon.c:
688 * objects/standard/polyline.c:
689 * objects/standard/textobj.c:
690 * objects/standard/zigzagline.c:
691 Binary compatibility update: Added return value for foo_move() and
692 foo_move_handle(). Orthconn derivatives also returns change from
693 orthconn_move_handle().
695 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
696 doesn't support it yet.
698 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
699 Add returning ObjectChange from object moves. Needs to handle
700 multiple object moves.
702 * app/modify_tool.c (modify_motion, modify_release): Add
703 ObjectChange from move & move_handle to undo stack.
705 * objects/EML/instantiation.c (instantiation_move): Removing
706 duplicate move & update.
708 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
710 * plug-ins/xfig/xfig-export.c: Added support for arrow head
711 export. Many arrow types not supported by XFig, replacing those
712 with standard arrows. Not sure whether it'd be better to render
713 them as a group of lines instead. You'd lose the arrow-ness for
714 further editing, but preserve the actual shape of it. Also added
715 support for dash length.
717 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
719 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
720 description for version 3.2, for reference.
722 * plug-ins/xfig/xfig-import.c: Added import of arrows.
724 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
725 Align Vertical Adjacent call _v rather than _h.
727 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
729 * app/scroll_tool.c (create_scroll_tool):
730 * app/modify_tool.c (create_modify_tool): use g_new0() to
733 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
735 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
737 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
739 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
741 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
743 * configure.in: Added Belarusian to ALL_LINGUAS.
745 2003-07-19 Hans Breuer <hans@breuer.org>
748 Make the xslt plug-in work on win32, too. It appears
749 to require a quite recent version of libxml and libxslt,
750 otherwise windoze pathes aren't translated correctly
751 during file processing
754 * plug-ins/xslt/xslt.h : #include <glib.h> before
757 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
758 the 'script' file finding similar to how it is done
759 with the python scripts (no need for hardcoded pathes,
760 removed the 'plugin' part from the path)
762 * plug-ins/xslt/stylesheets.xml : added again. It does
763 not have any path but only the pure filename again
765 * plug-ins/xslt/stylesheets.xml.in : removed
767 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
768 rule to process stylesheets.xml.in
770 * plug-ins/makefile.msc : added xslt
772 2003-07-19 Hans Breuer <hans@breuer.org>
774 Finally Dia learned to remember the recent selected sheet
776 * app/preferences.[hc] : added prefs.recent_sheet
777 * app/interface.c : restore and remember the sheet-option-menu
778 history, but only if the respective number is stiil available.
779 This additional adds robustness against running Dia without
780 any sheet (e.g. installation problems)
781 * app/app_procs.c : call prefs_safe() in app_exit() to remember
782 changes which are not done by the prefernces dialog
784 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
785 removed every call (especially the conditional ones) to prefs_safe().
786 Before prefs_safe() was called _many_ times during Dia startup
788 2003-07-18 Hans Breuer <hans@breuer.org>
790 * app/makefile.msc lib/makefile.msc lib/libdia.def :
793 * lib/color.c : use gtk_widget_get_default_visual();
794 as suggested in #114536
796 * app/interface.c app/disp_callbacks.c :
797 moved round_up () to the latter file where it is used
799 * app/linewidth_area.c : #include "interface.h" for
800 interface_get_toolbox_shell()
802 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
804 * plug-ins/pixbuf/.cvsignore
805 * shapes/Cisco/.cvsignore:
808 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
810 * app/dia-props.c (diagram_properties_retrieve): Use
811 diagram_get_name() to add the diagram name to the diagram
815 * app/diagram.c (diagram_get_name): New function to get a
816 reasonable diagram name.
818 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
819 info. Still need to be able to set dynamic grid. Also ought to
820 follow Gnome style and have instant apply.
823 * app/preferences.c (prefs_data): Remove option to use stippled
824 grid, add option for major line offset. Default to 5 minor lines
826 Add option for dynamically sized grid.
828 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
830 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
831 stippled/solid to display minor/major grid lines. Line drawing in
832 separate functions away from calculating line distance.
834 * app/grid.h: Split page break drawing out of grid_draw.
836 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
837 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
838 when menu item is selected.
840 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
842 * configure.in: Removed -Winline flag to make way for important
845 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
846 non-compressed. Should fix bug #117381, also look prettier.
849 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
850 Set up desktop info more properly.
852 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
869 Autorouting directions patch from Krzysztof Foltman
872 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
873 GNOME parent menu items.
875 * app/authors.h: Added Vadim to contributors list.
877 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
880 * app/create_object.c:
881 * app/disp_callbacks.[ch]:
892 * objects/UML/large_package.c: Patch from Vadim Berezniker
893 <vadim@berezniker.com>:
894 Objects may "parent" other objects, i.e. contain them within
895 themselves, restrain them and move them along. Some more stuff is
896 needed, such as selection and individual unparenting. This adds
897 parenting to UML - Large Package rather than Box.
899 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
901 * app/linewidth_area.c: Patch from Krzysztof Foltman
902 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
903 conform more, at least:).
905 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
906 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
907 arcs. Implemented images (though there is some pixelization and
908 banding in the output). Changed output file format to be a little
911 * app/app_procs.c (app_exit): Added message for double exit, which
912 shouldn't happen any more. Also preventing strange g_object_unref
913 messages by having a printf after gtk_main_quit. This is really
916 * app/interface.c (toolbox_delete): Avoid double app_exit call by
917 removing handler for destroy when delete is called.
919 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
922 * app/display.c (ddisplay_scroll_to_object,
923 ddisplay_scroll_center_point): New function for easy scrolling to
926 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
928 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
929 $(srcdir) on stylesheets.xml.
931 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
932 diagram menus (since they're at the top by default now). Also
933 move the Properties... menu item from Dialogs to Objects. Dialogs
934 menu should disappear at some point.
936 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
937 ./configure from ./autogen.sh, as configure may need to be run
938 from a different directory. (Also more standard this way.)
940 * app/app_procs.c (app_init):
941 * app/Makefile.am (INCLUDES): Gnome standardization patch from
944 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
946 * objects/flowchart/parallelogram.c (pgram_update_data):
947 Left/right alignment for parallelograms. Doesn't use all
948 available space, but then pgrams also ignore their shear value.
949 This thing needs a loving hand.
951 2003-07-01 Hans Breuer <hans@breuer.org>
953 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
954 * lib/proplist.c : don't complain if optional attr is missing
955 * lib/orth_conn.h : make "orth_autoroute" optional to
956 stop complaining with older files.
958 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
960 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
962 2003-06-05 Andrew Halper <ashalper@cox.net>
964 * app/diagram_tree.c : add scrolling of drawing area
965 to desired object on "Locate". Patch modified to use new ddisplay
966 function ddisplay_scroll_to_object().
968 2003-06-11 Lars Clausen <lars@raeder.dk>
970 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
971 info. Before next version, the grid dialog (view dialog, really)
972 must be redone to allow a) instant apply, b) apply to all
973 diagrams, and c) setting colour, dynamic, major lines.
976 * app/preferences.c (prefs_data): Remove option to use stippled
977 grid, add option for major line offset. Default to 5 minor lines
979 Add option for dynamically sized grid.
981 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
983 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
984 stippled/solid to display minor/major grid lines. Line drawing in
985 separate function away from calculating line distance.
987 * app/grid.h: Split page break drawing out of grid_draw.
989 2003-05-15 Hans Breuer <hans@breuer.org>
991 * plug-ins/python/diasvg.py : add xlink definition,
992 also avoid to put spaces into attribute values. At least
993 Sodipodi doesn't like them in width/height attributes
995 * plug-ins/python/diasvg_import.py : add simple scaling.
996 Some (more) handling for <svg>, <desc>, <circle>
998 * plug-ins/python/scascale.py : (new file) which does
999 some experimental scaling via StdProp api
1001 * plug-ins/python/pydia-cpoint.c
1002 plug-ins/python/pydia-handle.c : return PyDiaPoint for
1003 obj.pos not simple tuples. PyDiaPoint has a tuple interface
1004 so this may even be api compatible ...
1006 2003-05-11 Hans Breuer <hans@breuer.org>
1008 * app/line_area.c : add window position persitence
1010 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
1011 'poly_points' via StdProp api
1012 * lib/neworth_conn.h : don't rely on OrthConn and
1013 NewOrtConn having the same struct offsets
1015 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
1016 to help separating 'useful' properies - in terms of
1019 * objects/custom/custom_object.c
1021 add the missing prop_desc_list_calculate_quarks to
1022 all the *_describe_props()
1024 * objects/standard/beziergon.c objects/standard/bezier.c :
1025 explicit initializtion of default_user_data
1026 * objects/standard/polygon.c objects/standard/polyline.c :
1027 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
1029 * plug-ins/python/diamodule.c : implement dia.register_import
1031 * plug-ins/python/makefile.msc : need to link with Pango
1032 for pango_color_parse()
1034 * plug-ins/python/pydia-property.c : add a bunch of type
1035 conversions to PyDiaProperty_ApllyToObject()
1037 * plug-ins/python/diasvg_import.py : (new file) which currently
1038 is mainly a stress test for PyDia but for some files already
1039 produces better results than svg-import.c
1041 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
1043 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
1044 type-less operations.
1046 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
1048 * configure.in(ALL_LINGUAS): Added "ms".
1050 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
1052 * plug-ins/xslt/xslt.c (xslt_ok):
1053 * plug-ins/shape/shape-export.c (new_shape_renderer):
1054 * plug-ins/svg/render_svg.c (new_svg_renderer):
1055 * plug-ins/hpgl/hpgl.c (export_data):
1056 * plug-ins/dxf/dxf-export.c (export_dxf):
1057 * plug-ins/metapost/render_metapost.c (export_metapost):
1058 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
1059 * plug-ins/xfig/xfig-export.c (export_fig):
1060 * plug-ins/wpg/wpg.c (export_data):
1061 * plug-ins/cgm/cgm.c (export_cgm):
1062 * app/render_eps.c (export_eps):
1063 * app/export_png.c (export_png_ok):
1064 * app/load_save.c (diagram_data_save): Adding and standardizing
1065 output file error messages to include fopen error message.
1067 2003-05-01 Steffen Macke <sdteffen@web.de>
1069 * app/persistence.c: do not use unistd.h for MSVC build
1071 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
1073 * sheets/Assorted.sheet.in
1074 * sheets/Circuit.sheet.in
1075 * sheets/Contact.sheet.in
1076 * sheets/EML.sheet.in
1077 * sheets/ER.sheet.in
1078 * sheets/Electric.sheet.in
1079 * sheets/FS.sheet.in
1080 * sheets/Flowchart.sheet.in
1081 * sheets/GRAFCET.sheet.in
1082 * sheets/Logic.sheet.in
1083 * sheets/MSE.sheet.in
1084 * sheets/Misc.sheet.in
1085 * sheets/Pneumatic.sheet.in
1086 * sheets/SADT.sheet.in
1087 * sheets/SDL.sheet.in
1088 * sheets/UML.sheet.in
1089 * sheets/chronogram.sheet.in
1090 * sheets/ciscohub.sheet.in
1091 * sheets/ciscomisc.sheet.in
1092 * sheets/cisconetwork.sheet.in
1093 * sheets/ciscorouter.sheet.in
1094 * sheets/civil.sheet.in
1095 * sheets/network.sheet.in
1096 * sheets/sybase.sheet.in:
1097 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
1098 standardizes shape descriptions to use no articles, no 'create
1101 * app/interface.c (tool_data): Standard objects follow same
1104 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
1106 * app/color_area.c (color_area_edit): More informative title on
1107 color selection dialog.
1109 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
1110 sensitivity when dropping object in. Also reset tool to pointer.
1112 * objects/flowchart/diamond.c (diamond_update_data):
1113 * objects/flowchart/parallelogram.c (pgram_update_data): Added
1114 left and right alignment options.
1116 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
1118 * objects/flowchart/box.c: Added left and right alignment options.
1120 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
1122 * app/persistence.c (persistence_load): Test existence of
1123 persistence file before trying to open it.
1125 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
1127 * app/properties.c: Escape now closes properties dialogs.
1129 2003-04-25 Hans Breuer <hans@breuer.org>
1131 * app/config.h.win32 : bump version to 0.91+cvs
1133 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
1135 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
1137 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
1140 * app/presistence.c : need to #include "dia_xml_libxml.h"
1143 * app/layer_dialog.c : make delayed creation work by protecting
1144 all non static layer_dialog_*() with :
1145 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
1146 create_layer_dialog();
1147 * app/app_procs.c : removed /* create_layer_dialog(); */
1149 * objects/uml/association.c : give it a minimal StdProp
1150 implementation to fix bug #108896
1151 * lib/object_defaults.c : don't try to copy props if there
1152 is no obj->ops->describe_props
1154 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
1156 * objects/standard/image.c (image_create):
1157 * objects/standard/ellipse.c (ellipse_create):
1158 * objects/standard/box.c (box_create):
1159 * objects/flowchart/ellipse.c (ellipse_create):
1160 * objects/flowchart/diamond.c (diamond_create):
1161 * objects/flowchart/box.c (box_create):
1162 * objects/custom/custom_object.c (custom_create):
1163 * objects/ER/relationship.c (relationship_create):
1164 * objects/ER/entity.c (entity_create):
1165 * objects/ER/attribute.c (attribute_create): Initialize
1166 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
1168 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
1172 * plug-ins/Makefile.am:
1173 * plug-ins/xslt/Makefile.am:
1174 * plug-ins/xslt/xslt.c (dia_plugin_init):
1175 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
1176 automake-style if to only include xslt dir when needed. Works
1177 with automake 1.4 and up, at least.
1179 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
1181 * lib/diasvgrenderer.c (draw_string):
1182 * lib/dia_svg.c (dia_svg_parse_style): Use
1183 text-anchor:(start|middle|end).
1185 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
1186 polygon rather than polyline & avoid missing line pieces.
1187 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
1188 black-filled things.
1190 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
1192 * app/persistence.c (persistence_load): Check that persistence
1193 file exists before trying to read it.
1194 (persistence_update_window): Removed printf.
1196 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
1198 * lib/autoroute.c: Take badness into the layouters again, as some
1199 of them know they can do things that are pretty but would be
1200 counted as ugly by the default calculation.
1202 * objects/UML/large_package.c: Shrink package name box when no
1203 stereotype is present.
1205 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
1206 * lib/orth_conn.c: Added object menu item for autorouting.
1208 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
1209 Autorouting, plus set initial dragging handle to be the end, not
1211 (orthflow_draw): Flipped arrow place to be at the end, as
1212 originally intended (got lost in arrow update).
1214 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
1215 * objects/UML/dependency.c (dependency_get_object_menu):
1216 * objects/UML/association.c (association_get_object_menu):
1217 * objects/UML/realizes.c (realizes_get_object_menu):
1218 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
1219 * objects/GRAFCET/vector.c (arc_get_object_menu):
1220 * objects/ER/participation.c (participation_get_object_menu):
1221 * objects/EML/instantiation.c (instantiation_get_object_menu):
1222 * objects/UML/generalization.c (generalization_get_object_menu):
1223 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
1224 Autorouting setup (currently disabled for SADT/arrow).
1226 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
1228 * lib/autoroute.c: Removed printfs.
1231 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
1232 non-connected orthconns too.
1234 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
1237 * lib/orth_conn.c: Function to set autorouting on/off, use
1238 autorouting in move_handle (turns off when a middle handle is
1239 moved), added to standard orthconn props.
1241 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
1242 Stopped signal emission for check menu items being set to on/off.
1244 * objects/standard/zigzagline.c: Added autorouting object menu item.
1246 * lib/autoroute.c: Added last cases of autoroute layout, fixed
1247 floating point comparison bug, cleaned up layouters, tweaked
1248 badness to allow kinks.
1250 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
1252 * lib/connectionpoint.h: Changed DIR_* macros to go around the
1255 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
1257 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
1258 old cruft, added call to autoroute (currently cannot be turned
1259 off). Need to check what undo thinks about this.
1260 * lib/autoroute.[ch]: Fairly working simple layout.
1262 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
1263 * lib/autoroute.[ch]: Start of proper autorouting functionality.
1265 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
1267 * lib/prop_widgets.c: Show labels on ListProp.
1269 2003-04-11 Steffen Macke <sdteffen@web.de>
1271 * doc/en/dia-manual.xml: removed reference of non-existing authors
1273 * doc/en/usage-objects-selecting: commented out misleading section
1276 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
1278 * app/app_procs.c (app_init): Layer window now opened at startup
1281 * lib/prop_widgets.c: Show labels on ListProp.
1283 2003-04-09 Steffen Macke <sdteffen@web.de>
1285 * doc/en/*.sgml: removed files
1286 * doc/en/*.xml: added files
1287 * doc/en/Makefile.am: switched to XML DocBook
1289 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
1291 * plug-ins/xslt/xslt.c (dia_plugin_init):
1292 * configure.in: Added --with-xslt-prefix to allow other XSLT
1293 placements than /usr/lib.
1295 2003-04-09 Steffen Macke <sdteffen@web.de>
1297 * lib/makefile.mingw: updated to include latest files, including
1299 * lib/geometry.h: don't define isinf and finite for mingw gcc build
1301 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
1303 * app/persistence.h:
1304 * app/persistence.c (persistence_register_window_create):
1305 * app/app_procs.c (app_init):
1306 Register window function that doesn't create the window unless it
1307 should be open. Other windows should move to this, so startup
1308 speed can be reduced.
1310 * app/persistence.h: Removed call prototype for update_window, now
1312 * app/persistence.c (persistence_register_window): A number of
1313 fixes. Doesn't forget position when window is closed. Now
1314 actually loads prefs.
1316 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
1319 * app/preferences.c (prefs_data):
1320 * app/diagram_tree_window.h:
1321 * app/diagram_tree_window.c: Added persistence registering.
1322 Removed prefs items storing size and openness.
1324 * app/sheets_dialog.c (create_sheets_main_dialog): Added
1325 persistence registering.
1327 * app/Makefile.am (dia_core_files): Added persistence files.
1330 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
1331 that dirs are present.
1333 * app/app_procs.c (app_init): Loads persistent values on startup.
1334 (app_exit): Saves persistent values on exit.
1336 * app/layer_dialog.c (create_layer_dialog): Registers the layer
1337 window for persistence.
1339 * app/persistence.[ch]: New files handling various kinds of
1342 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
1344 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
1345 head spacing calculations. Added half-circle arrow from Matthieu
1346 Sozeau <mattam@netcourrier.com>
1348 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
1350 * app/app_procs.c (app_init): Moved layer dialog init to allow
1351 tooltips to be initialized.
1353 * app/interface.c (create_display_shell): More tooltips.
1355 * app/linewidth_area.c (linewidth_area_create)
1356 (linewidth_area_events):
1357 * app/color_area.c (color_area_events, color_area_create):
1358 Made tooltips work by embedding drawing_area in event_box.
1360 * app/interface.c (create_display_shell,
1361 (create_lineprops_area, create_color_area): Added a few tooltips.
1363 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
1365 * app/pixmaps/off-grid.xpm:
1366 * app/pixmaps/on-grid.xpm:
1367 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
1370 * app/commands.c (view_snap_to_grid_callback):
1371 * app/display.c (ddisplay_set_snap_to_grid)
1372 (update_snap_grid_status):
1373 * app/interface.c (create_display_shell, grid_toggle_snap):
1374 Added snap-to-grid status button.
1376 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
1378 * app/app_procs.c (app_init): Create a new diagram if a file on
1379 the command line isn't found.
1381 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
1383 * lib/dialibartrenderer.c (draw_string): Correct color handling
1386 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
1389 * doc/en/dia-manual.sgml:
1390 * doc/pl/dia-manual.sgml:
1392 * dia.spec (Release):
1393 Version 0.91 is here!
1395 2003-02-10 Steffen Macke <sdteffen@web.de>
1397 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
1398 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
1399 non-ANSI characters, closes #107980
1401 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
1405 * dia.spec (Release):
1406 * doc/en/dia-manual.sgml: Upping to pre6.
1408 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
1410 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
1411 #107511: Make arrow selector for correct arrow type.
1413 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
1415 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
1418 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
1420 * doc/en/dia-manual.sgml:
1423 * dia.spec (Release): Upping to pre5.
1425 * configure.in: Add freetype-config derived libs to the
1426 AC_CHECK_LIB statement for freetype.
1428 2003-02-28 Hans Breuer <hans@breuer.org>
1430 [fix for bug #107203]
1432 * lib/diarenderer.c : add warning 'implementation'
1433 for fill_rect to avoid crashing with a renderer
1434 which does not implement this required function.
1436 * plug-ins/dxf/dxf-export.c : provide - still empty -
1437 'implementations' for fill_rect and fill_polygon
1438 to suppress the above warnings. Now it works like
1441 2003-02-28 Steffen Macke <sdteffen@web.de>
1443 * samples/all_objects.dia: New sheet containing all dia shapes
1444 and objects; one layer per sheet
1446 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
1448 * lib/prop_text.c (multistringprop_get_widget,
1449 multistringprop_reset_widget, multistringprop_set_from_widget):
1450 Now uses GtkTextView instead of deprecated stuff, and also works:)
1452 * configure.in: Slightly more informative error message for isinf.
1454 * dia.spec (Requires): Require libxml2 rather than libxml.
1456 2003-02-28 Steffen Macke <sdteffen@web.de>
1458 * shapes/Circuit/hjumper.png:
1459 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
1462 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
1464 * doc/en/dia-manual.sgml:
1466 * dia.spec (Release):
1467 * NEWS: New prerelease 0.91pre4, two important fixes.
1469 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
1471 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
1474 * app/commands.c (help_manual_callback): More correct URL for help
1475 page (include file://, was broken on Dillo without it).
1477 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
1479 * app/disp_callbacks.c: Set modifed when text is changed.
1481 * app/modify_tool.c (modify_button_release): Allow undo for moving
1484 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
1487 * doc/en/dia-manual.sgml:
1489 * configure.in: New prerelease with important bugfix.
1490 * shapes/network/digitizing_board.png:
1491 * shapes/network/plotter.png: Re-adding with -kb.
1493 2003-02-17 Abel Cheung <maddog@linux.org.hk>
1495 * app/app_procs.c (app_init): Add comment for translators.
1497 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
1499 * lib/filter.c (filter_register_import, filter_register_export):
1500 Don't accept filters with NULL description.
1502 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
1503 (as we assume the description is available in other places).
1505 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
1507 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
1508 * app/display.c (ddisplay_resize_canvas): Use
1509 ddisplay_add_update_all().
1510 (ddisplay_add_update_all): Free display and update lists when
1511 doing update_all, as they'll be regenerated immediately to cover
1512 all visible area. Fixes bug #106165, crash when resizing. This
1513 appears to be the original AA crash bug, believed long extinct.
1515 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
1517 * app/commands.c (help_manual_callback): Use file: protocol for
1520 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
1522 * plug-ins/xslt/stylesheets: Removed old-style config file.
1524 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
1526 * plug-ins/xslt/Makefile.am:
1527 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
1528 handling (no more DIA_PLUGIN_PATH).
1530 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
1532 * plug-ins/svg/render_svg.c:
1533 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
1535 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
1537 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
1538 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
1539 side of the triangle is longer than the hypotenuse. Rounding
1542 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
1546 * doc/en/dia-manual.sgml: Update for pre2.
1548 * app/menus.c (display_menu_items): Fixed wrongly place separators.
1550 * objects/flowchart/box.c (box_update_data): Applied patch from
1551 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
1554 * app/paginate_psprint.c (print_page): Set paper name, so it
1555 convinces ps printers to use to right size.
1557 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
1559 * app/properties.c (properties_show): Hide the dialog if the
1560 object is NULL (get rid of 'no properties' randomly popping up).
1562 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
1564 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
1565 for diagrams not starting at origo.
1567 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
1569 * dia.spec (BuildRequires): Use libxml2-devel.
1571 * plug-ins/pixbuf/Makefile.am: Added to CVS.
1573 * RELEASE-PROCESS: Note on RPM version numbers.
1575 * app/interface.c (create_display_shell): Don't set as toolbar
1576 under Unix, either. Especially not the diagram shell. It removes
1577 it from the taskbar and makes it unresizable, always-on-top with
1578 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
1579 appropriate thing, UTILITY, is not good either, you lose resizing
1580 and minimizing/maximizing under OpenBox.
1582 * app/menus.c (display_menu_items): Set delete item to use Delete.
1584 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
1586 * dia.spec (BuildRequires, Requires): Updated for Gtk2
1589 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
1590 display flush when getting focus in, or we may get an update after
1591 the diagram has been destroyed in some cases. Fixes bug #105221.
1593 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
1595 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
1597 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
1598 - gnome-compiled Dia will now read files specified on the command line.
1600 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
1602 * INSTALL (REQUIREMENTS): Updated requirements section.
1604 * configure.in: Better finite() check from Mårten Svantesson
1605 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
1608 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
1610 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
1612 * app/app_procs.c (debug_break): Added some code to avoid
1613 over-eager optimizations removing the call. Surely there's a
1614 nicer way, but I'm not sure how.
1616 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
1617 that set text to black.
1619 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
1621 * NEWS: Mention of Twiki as doc source for Python.
1623 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
1624 libart/libpng is not available. Later when we have a way of
1625 letting the user pick options in the file select dialog we shall
1626 allow the choice when applicable.
1628 2003-02-02 Steffen Macke <sdteffen@web.de>
1630 * doc/en/usage-loadsave.sgml:
1631 * doc/en/usage-objects.sgml: patch from
1632 James K. Lowden <jklowden@schemamania.org> to fix
1635 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
1637 * plug-ins/Makefile.am (SUBDIRS):
1638 * plug-ins/pixbuf/pixbuf.c:
1639 * plug-ins/pixbuf/Makefile.am:
1641 Added pixbuf plugin to Makefile.am, but for import only. PNG
1642 export handled by libart, which is better. JPG export is
1643 discouraged. BMP is not much used on Unix. Next release will
1644 integrate libart to allow all outputs.
1646 2003-02-01 Hans Breuer <hans@breuer.org>
1648 * app/preferences.c :
1650 the last two dialogs with 'old' button order finally
1651 are converted to gtk2, no GnomeDialog in all of Dia
1654 2003-02-01 Hans Breuer <hans@breuer.org>
1656 * app/filedlg.c : don't try to use a button as
1657 'overwrite-file-dialog'-parent, use the FileSelDialog
1660 * plug-ins/pixbuf/pixbuf.c : make it work with
1661 system-visual-depth < 24. Remove 'bmp' from output
1662 format extensions, it just was wishful thinking.
1664 * plug-ins/python/Makefile.am : added the four new python
1665 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
1667 2003-02-01 Hans Breuer <hans@breuer.org>
1669 * NEWS : updated content beside dependencies
1671 2003-02-01 Hans Breuer <hans@breuer.org>
1673 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
1674 to make it useable across DLL boundaries
1675 * app/lineprops_area.c : same code to access arrow_types
1678 * objects/UML/class.c : the non empty string is e.g.
1679 comment != NULL && comment[0] != '\0'
1680 * objects/UML/uml.c : same here, don't bother with
1681 empty operation stereotypes
1683 2003-02-01 Steffen Macke <sdteffen@web.de>
1685 * app/lineprops_area.c: latest changes do not work on
1686 windows, using old code without tooltips
1687 * makefile.msc: fixed copying of wmf.dll
1688 * plug-ins/makefile.msc:
1690 * lib/makefile.msc: now linking libintl
1691 * config.h.win32: enabling native language support
1693 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
1695 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
1696 -ldl and -lglib. May or may not work on windows...awaiting verdict.
1698 2003-01-31 Daniel Yacob <locales@geez.org>
1700 * configure.in: Added am (Amharic) to ALL_LINGUAS.
1702 2003-01-31 Steffen Macke <sdteffen@web.de>
1704 * objects/UML/class.c (umlclass_calculate_data): fixed crash
1705 when comments were visible, no class comment available and
1708 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
1710 * RELEASE-PROCESS: Updated to fit new install-module syntax.
1711 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
1714 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
1720 Prerelease version changes, version 0.91-pre1.
1722 * app/sheets_dialog_callbacks.h:
1723 * app/sheets_dialog_callbacks.c:
1724 * app/sheets_dialog.c (create_sheets_main_dialog):
1725 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
1726 to handle destruction of main dialog cleanly, but it's a mess.
1728 * configure.in: Downgraded ieeefp test to make it not produce
1731 * lib/widgets.c (dia_arrow_selector_set_arrow):
1732 (dia_line_style_selector_set_linestyle): Select menu dot
1735 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
1736 adjustment for diamondheads.
1738 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
1740 * app/properties.c (create_dialog): Destroy properties dialog and
1743 * app/sheets_dialog_callbacks.c
1744 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
1745 if the old one is destroyed.
1747 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
1749 * app/export_png.c (export_png_ok): Added info on resolution.
1750 Should (next release) improve export dialog to allow setting
1751 resolution instead of pixels.
1753 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
1754 to generate arrowheads as well as tooltips.
1756 * lib/arrows.c: Added hollow diamond to menudesc list.
1759 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
1760 unify with rendered menu.
1762 * lib/diarenderer.c (draw_line_with_arrows)
1763 (draw_polyline_with_arrows, draw_arc_with_arrows)
1764 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
1765 without changing renderer API. Thanks to David Scherba for
1766 providing inspiration.
1768 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
1770 * app/interface.c (create_display_shell):
1771 * app/display.h: Patching from Hubert Figuiere
1772 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
1775 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
1777 * app/defaults.c (defaults_show): Fixed defaults closing bug.
1778 Thanks to Hans for pointing it out.
1780 2003-01-25 Hans Breuer <hans@breuer.org>
1782 * app/commands.c : don't warn about crashing libart renderer
1783 on win32. It simply doesn't render text anymore :-(
1785 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
1787 * objects/UML/class.c : don't access umlclass->properties_dialog
1788 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
1789 which sets the former to NULL by destroy_properties_dialog() callback.
1791 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
1793 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
1795 * plug-ins/python/pydia-image.c : add image.uri member
1796 not only useful for SVG rendering
1798 * plug-ins/python/diasvg.py : (new file) a more advanced
1799 example. A full blown SVG Renderer, currently only
1800 registered for .svgz
1802 * plug-ins/python/export-object.py : write text props
1804 * plug-ins/python/debug_objects.py : write prop.type and
1807 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
1809 * objects/UML/association.c (association_update_data): Better
1810 bounding box for assoc with arrows.
1812 * lib/properties.h: New flag for properties with multiple values
1815 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
1816 arrow updating in dialog. Was broken due to changes from destroy
1819 * app/commands.c (view_aa_callback): AA warning only for Windows
1820 -- I trust the Unix side well enough.
1822 * app/render_libart.c (get_text_width):
1823 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
1824 font height can be taken from parent instance.
1826 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
1827 (get_text_width): Proper cursor positioning for libart renderer.
1828 Ought to have a DiaInteractiveRenderer that these two can inherit
1829 from, that knows about transform.
1831 2003-01-25 Steffen Macke <sdteffen@web.de>
1833 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
1834 plug-in still not working on win32
1836 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
1838 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
1839 gdk_window_get_pointer to avoid destroy crash. Simpler than I
1842 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
1844 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
1845 bail out on gtk options.
1847 * lib/message.c (gtk_message_internal): Better handling of destroy
1850 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
1852 * app/color_area.c (color_area_edit):
1853 * lib/widgets.c (dia_file_selector_browse_pressed)
1854 (dia_color_selector_pressed):
1855 * app/plugin-manager.c (get_plugin_manager):
1856 * app/filedlg.c (file_open_callback, file_save_as_callback)
1857 (file_export_callback):
1858 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
1859 handling of destroy event.
1861 2003-01-22 Alan Horkan <horkana@tcd.ie>
1863 * app/commands.c (file_new_callback): Changed Untitled to Diagram
1866 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
1868 * app/preferences.c (prefs_create_dialog):
1869 * app/linewidth_area.c (linewidth_create_dialog):
1870 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
1871 * app/layer_dialog.c (create_layer_dialog)
1872 (layer_dialog_edit_layer): Correct handling of destroy signal.
1874 * app/diapsft2renderer.c (set_font): Adjust silly random factor
1875 for change in font.c
1877 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
1879 * lib/font.c (dia_font_build_layout): Let's all use the same weird
1882 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
1883 * app/layer_dialog.c (create_layer_dialog)
1884 (layer_dialog_edit_layer):
1885 * app/filedlg.c (file_open_callback, file_save_as_callback)
1886 (file_export_callback):
1887 * app/dia-props.c (create_diagram_properties_dialog):
1888 * app/defaults.c (defaults_dialog_destroyed):
1889 * app/color_area.c (color_area_edit): Dialog destroy event handling.
1891 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
1893 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
1894 defaults dialog destroyed.
1896 2003-01-19 Steffen Macke <sdteffen@web.de>
1898 * objects/makefile.msc: added bondgraph
1899 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
1900 to compile pixbuf.dll
1901 * makefile.msc: copying all objects and dlls now
1903 2003-01-19 Hans Breuer <hans@breuer.org>
1905 * app/diagram.[hc] : provide dia_open_diagrams(), make
1906 open_diagrams variable static
1907 * app/dia.def : export it (to be used by PyDia)
1908 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
1909 app/display.c app/dynamic_refresh.c app/layer_dialog.c
1910 app/load_save.c : make use of dia_open_diagrams()
1912 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
1913 on win32. It removes the diagram window from the taskbar and
1914 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
1916 * app/menus.c : add '...' to menu entries where a dialog
1918 * app/recent_files.c app/dia_embedd.c : reflect the above in
1919 menus_get_item_from_path() calls
1921 * lib/libdia.def : add dia_image_rgba_data
1923 * lib/properties.h lib/prop_text.[hc] : add new property
1925 * objects/UML/class.[hc] object/UML/class_dialog.c : use
1926 StringList for attributes_strings and operations_strings to
1927 make this calculated data accessible via the Property API
1929 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
1930 provide dia.new() to create a new diagram, dia.registered_types()
1931 to get on Dia's type registry, dia.message() for simple dialogs
1933 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
1934 to create a new display from a diagram. Let diagram.extents and
1935 diagram.bg_color return the same types as in diagramdata.*
1937 * plug-ins/python/pydia-geometry.c : add a read-only
1938 'sequence interface' to DiaPoint and DiaRectangle
1940 * plug-ins/python/pydia-property.c : allow to get on StringList
1943 * plug-ins/python/pydia-render.c : fix typo to make it compile
1945 * plug-ins/python/python-startup.py : removed 'import pygtk'
1946 again. This file does not need any gtk UI, and some python
1947 plug-ins don't do either
1949 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
1950 it should actually work as intended again
1952 * plug-ins/python/group_props.py : (new file) a prototype for
1953 one the most requested features: Change properties of selected
1954 objects in one step. Requires pygtk.
1956 * plug-ins/python/select_by.py : (new file) select objects by
1957 common properties. Requires pygtk.
1959 [Start of 'PyDia Self Documentation Series']
1961 * plug-ins/python/pydiadoc.py : (new file) generates a new
1962 diagram which contains all objects of dir(dia)
1964 * plug-ins/python/otypes.py : (new file) generates a new diagram
1965 which contains all the currently registered object types sorted
1966 by their containing package
1968 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
1970 * configure.in: Added check for Pango >= 1.1.5, which appears to
1971 be enough to have text work.
1972 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
1973 do it. AC_SUBST should be idempotent, though.
1975 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
1977 * configure.in (HAVE_FREETYPE): Better test for freetype version
1979 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
1981 * lib/font.c: Renamed global_size_one to global_zoom_factor to
1982 avoid confusion, and added comment. Set scale factor in
1983 dia_font_build_layout to 1.0 for Unix side. This fixes at least
1984 my weird scaling problems. Fonts are now of the expectable size,
1985 i.e. the space between lines at size 1.0 is 1.0. If we want a
1986 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
1987 diagrams, though there will always be differences.
1989 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
1991 * plug-ins/python/python-startup.py:
1992 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
1994 * plug-ins/python/python.c (dia_plugin_init): Added warning
1995 message for missing startup file.
1997 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
1999 * lib/dia_image.c (dia_image_rgb_data):
2000 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
2001 involving EPS. Can't do transparency in EPS yet.
2004 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
2005 data as one chunk. Documentation for the RGB data getting funcs.
2006 (dia_image_rgb_data): Added comment.
2008 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
2011 2003-01-13 Steffen Macke <sdteffen@web.de>
2013 * lib/dia_image.c: dia_image_rgb_data() is working for
2014 non-alpha images now. Fixes #93762
2015 * Makefile.am: added makefile.msc to EXTRA_DIST
2017 2003-01-10 Steffen Macke <sdteffen@web.de>
2019 * app/paginate_psprint.c: Closing print dialog when file
2020 could not be written. Fixes #84746
2022 2003-01-04 Steffen Macke <sdteffen@web.de>
2024 * doc/custom-shapes: incomplete description of <svg:text>
2026 2003-01-03 Steffen Macke <sdteffen@web.de>
2028 * makefile.msc(new): new makefile to create file
2029 structure suitable for running dia win32 under
2030 $(TOP)/dia/build/win32
2032 2003-01-02 Steffen Macke <sdteffen@web.de>
2034 * lib/dia_svg.c: including stdlib.h
2035 * lib/makefile.msc: added gdk_pixbuf libs to linker
2036 * app/makefile.msc: added gdk_pixbuf libs, made libart
2037 libs compatible with gnuwin32 package
2039 2003-01-01 Hans Breuer <hans@breuer.org>
2041 * lib/font.c : more comment about global_size_one
2043 * app/menus.c : <control>[<shift>]A for plain gtk build too.
2045 * plug-ins/wmf/wmf.cpp : some type juggling to make
2048 2002-12-31 Steffen Macke <sdteffen@web.de>
2050 * app/makefile.msc: added hint on how to enable console output
2052 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
2054 * objects/standard/textobj.c (textobj_load): Get the handle type
2055 right, at least to be the same as when created.
2057 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
2059 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
2061 2002-12-08 Hans Breuer <hans@breuer.org>
2063 * app/commands.c : fixed bug #85315 'give diagram properties,
2064 instead of no object selected error' almost a one-liner
2066 * app/splash.c : don't make having the logo pixmap
2067 mandatory. Fixes bug #96068.
2069 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
2070 sequence by connecting to the "delete_event"
2071 * app/objects/uml/class_dialog.c : handle "destroy" for
2074 * lib/libdia.def : remove diaXmlNewChild again
2076 * app/paginate_gdiprint.cpp : reflect Dia's page setting
2077 portrait/landscape in the windoze print dialog
2079 * objects/makefile.msc : only UML needs to link against
2080 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
2082 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
2084 * objects/standard/ellipse.c (ellipse_distance_from):
2085 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
2086 correct distance function. Could be faster, but it's not really
2089 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
2091 * lib/font.c: Changed global_size_one to more correct 28.35.
2096 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
2099 2002-12-07 Hans Breuer <hans@breuer.org>
2101 * lib/widgets.c : g_file_get_contents() silently assumes
2102 a binary file. Reflect when creating the font_menu file
2103 to get rid of junk in font menus
2105 2002-12-06 Hans Breuer <hans@breuer.org>
2107 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
2108 removed 0xD 0xD 0xA line ends which get created by
2109 cvs if windoze line ends 0xD 0xA are checked in from
2110 *nix and checked out on win32.
2112 * app/preferences.c : changed toolbox_on_top default to
2113 false. It is currently not possible to change the behaviour
2114 at runtime, at least not on win32.
2116 * lib/dialibartrenderer.c : bug #94791 'rendering to
2117 bitmap without PangoFt2' got delayed to milestone future
2118 so wrap libart text rendering into PANGO_WIN32_FUTURE.
2119 It is not available without my Pango patch in bugzilla.
2121 * lib/font.c : added comment to global_size_one and adapt
2122 the arbitrary size scaling in dia_font_build_layout() for
2123 win32, too. This is needed to get an acceptable font size
2124 approximation for Dia 0.90 and earlier files.
2125 Also #include "message.h".
2127 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
2128 reflect movement of group.[hc]
2129 * lib/group.h : export group_type which gets used by app/*
2131 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
2132 to get the GtkTypeInfo definition
2134 * plug-ins/makefile.msc : dxf and xfig don't need to link
2135 against app/ anymore now that group is moved to lib/
2137 * plug-ins/python/pydia-render.c : remove massive leaking
2138 of self, i.e. PyDiaRenderer
2140 * plug-ins/python/makefile.msc : remove linking against
2143 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
2145 * objects/standard/line.c: Removed properties options for gaps,
2146 until release is done.
2148 * configure.in: Check for freetype version.
2150 * lib/text.c (text_insert_char): Fixed small buffer overflow for
2153 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
2155 * app/diapsft2renderer.h:
2156 * app/diapsft2renderer.c:
2157 * app/diapsrenderer.h:
2158 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
2160 * app/render_eps.c (export_eps, new_psprint_renderer): Using
2161 PS_FT2 renderer when available. Old render stuff killed. Yay!
2163 * lib/properties.h: Fixed bad frame end def.
2165 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
2167 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
2169 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
2171 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
2173 * lib/font.c: Now checking for the proper dia-style standard fonts.
2176 * app/Makefile.am: Moving group.[ch]
2178 * plug-ins/dxf/dxf-import.c:
2179 * plug-ins/xfig/xfig-import.c:
2180 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
2184 * lib/object.c (object_list_move_delta, object_copy_list):
2185 * lib/object.h: Moved some object-related functions from
2186 object_ops to object to assist moving group.c.
2188 * lib/diatypes.h: Added Group typedef.
2191 * lib/group.c: Moved from app to lib to a) resolve plug-ins
2192 references, and b) make groups more "real" objects.
2194 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
2196 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
2198 * lib/font.c (dia_font_init): Added check that the three standard
2201 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
2204 * app/load_save.c: Linebreaks in dia files, no indentation.
2205 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
2208 * objects/standard/line.c: Small but important fixes to the line
2212 * lib/dia_xml.c (diaXmlNewChild):
2213 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
2214 XML prettyprinting wrapper.
2216 2002-12-03 Steffen Macke <sdteffen@web.de>
2218 * shapes/Cisco/Makefile.am:
2219 * shapes/Cisco/*.shape: finished conversion of Cisco icons
2222 2002-12-02 Steffen Macke <sdteffen@web.de>
2224 * doc/en/Makefile.am:
2225 * doc/en/usage-objects.sgml:
2226 * doc/en/graphics/line_icon.png: (new) added line icon
2228 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
2230 * objects/standard/line.c: Binary search object edge line gap.
2232 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
2234 * configure.in: Added Cisco makefile, sorted Makefiles list.
2236 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
2238 * configure.in: Now checks for availability of PangoFT2 and
2239 FreeType, raising an error if not found.
2241 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
2244 2002-12-01 Steffen Macke <sdteffen@web.de>
2246 * doc/en/usage-loadsave.sgml: updated information on import
2249 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
2251 * app/commands.c (edit_copy_callback): Freeing copy_list.
2253 2002-11-28 Steffen Macke <sdteffen@web.de>
2255 * app/render_libart.c: art_config.h was included twice
2257 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
2259 * sheets/.cvsignore: More ignorance.
2261 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
2263 * lib/prop_widgets.h: Two (currently unused) settings for frame
2266 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
2267 (by default) foldable.
2269 * lib/propinternals.h:
2270 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
2271 widgets in a more controlled manner.
2273 * objects/standard/line.c (line_update_data): Line gap things
2274 inserted. Can do xeyes now:)
2276 2002-11-26 Christian Neumair <chris@gnome-de.org>
2278 * .cvsignore: Changed.
2279 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
2280 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
2283 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
2285 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
2287 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
2288 passing to font hash.
2290 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
2291 utf-8 or locale-convertible before adding to dialog text. This
2292 probably needs done in a number of places where we get text from
2293 the environment and send it to GTK to display.
2295 * lib/widgets.c: Fixed case problems for font menu entries.
2297 * objects/SADT/annotation.c: Don't run the event test (but leave
2298 it here for inspiration).
2301 * lib/widgets.h: Allowing setting preview text for fonts.
2303 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
2305 * objects/bondgraph/Makefile.am:
2306 * objects/bondgraph/bondgraph.c:
2308 * objects/Makefile.am: Added bond graph dir.
2310 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
2312 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
2314 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
2316 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
2319 * app/diapsrenderer.c: Freetype rendering is back in force.
2321 * app/disp_callbacks.c: Added missing updates for pre-text-change.
2323 2002-11-25 David Hoover <jazzdaq@yahoo.com>
2325 * app/render_libart.c: Added missing #include line for libart.
2328 * lib/geometry.c: Added point_convex function. This computes
2329 points inside a line segment (0 <= alpha <= 1) or outside the
2330 line segment (alpha < 0 | alpha > 1).
2332 * objects/standard/line.c: Line now has additional code/attributes
2333 which permit the line to extend past the line anchors (gap < 0) or
2334 leave a gap without reaching the anchor (gap > 0). If no gap is
2335 specified, the default gap of 0 will result in identical line
2336 behavior as before. If the 'fractional' attributes are TRUE, the
2337 gap length is not fixed, but a percentage of the line length. I
2338 did not know how create the GTK widgets so the gap code currently
2339 cannot be used without adding XML attributes by hand.
2341 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
2343 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
2345 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
2347 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
2349 * lib/font.c: Debugging functionality in separate functions.
2351 * lib/widgets.c: Using fontsel with context.
2353 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
2355 * objects/custom/custom_object.c: Orientation handling for shapes,
2356 patch thanks to Martin Hans <opfinder@gmx.net>.
2358 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
2359 work on even better orientation handling.
2361 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
2362 casting NULL pointers. Should be unnecessary in an upcoming GTK
2365 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
2369 * lib/widgets.c: Now uses correct context to get font families.
2371 * lib/diagdkrenderer.c (get_text_width, draw_string):
2372 * lib/dialibartrenderer.c (draw_string):
2374 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
2375 (dia_font_build_layout): Unified the twiddle factors into a use of
2376 global_size_one. But I deeply distrust Pango for seeming to
2377 change size of fonts every time I turn my back.
2382 * app/menus.h: Updated some more methods to also be more specific
2386 * app/recent_files.c:
2387 Changed to return most specific type, to avoid run-time type errors.
2389 * app/menus.c (menus_get_item_from_path): Non-gnome version now
2390 gets menu_item rather than widget, which works better.
2392 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
2394 * app/display.c: (new_display):
2395 * app/menus.c: (menus_get_item_from_path):
2396 Relying on the tearoff to locate the input methods menu wasn't a
2397 good idea: tearoffs seem to be an endangered species nowadays.
2398 Anyway, the IM menu seems to be working now.
2400 * app/interface.c: hinted the window manager that the toolbox window
2401 is a toolbox window. Not that my (fairly default configuration)
2402 sawfish cares, but other NETWM compliant WMs may.
2409 * app/layer_dialog.c:
2410 * app/linewidth_area.c:
2412 * app/sheets_dialog.c:
2415 The GTK doc says to avoir gtk_window_set_wmclass() and
2416 gtk_window_set_policy(), and use gtk_window_set_role() and
2417 gtk_window_set_resizable(), respectively.
2419 * app/preferences.c: (prefs_create_dialog):
2420 * app/preferences.h:
2421 * app/display.c: (display_set_active):
2422 Added a preference to have the toolbox hover over diagram windows.
2424 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
2426 * lib/diagdkrenderer.c (get_text_width, draw_string):
2427 Freetype-based string drawing now works. Not very fast, though.
2428 I wish I could use the graphics card for this:( I'm doing three
2429 bitmap loops where I should be doing one. The size is not correct
2430 either, despite having get_text_width give the right thing.
2432 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
2434 * app/connectionpoint_ops.c (diagram_update_connections_object):
2435 Allows more than one connectionpoint on an object to be moved at a
2438 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
2440 * configure.in: Added cs to ALL_LINGUAS.
2442 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
2444 * app/paginate_psprint.c: Removed unnecessary decl of autosave
2447 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
2449 * app/export_png.c (export_png_ok): Saving more variables from the
2452 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
2454 * lib/dialibartrenderer.c (begin_render):
2455 (end_render): Correct pushing and popping of font contexts.
2456 (draw_string): Double zooming eliminated, strange twiddle factor
2457 introduced (grumble). Close to working now, but there are still
2458 strange differences from font to font. In particular, some fonts
2459 really mess with the cursor and extents.
2461 * app/render_eps.c (export_eps):
2462 * app/diapsrenderer.c (dia_ps_renderer_finalize):
2463 Fixed file closing confusion, no longer dependent on PS/EPS.
2465 * app/diagram.c (diagram_place_down_selected)
2466 (diagram_place_up_selected): Now implemented.
2468 * lib/font.c (dia_font_init):
2470 Redesigned the font init/context pushing code. Start of fix for
2471 font name differences.
2473 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
2475 * app/sheets_dialog_callbacks.c: Fix a typo.
2477 2002-10-15 Hans Breuer <hans@breuer.org>
2479 * app/diapsrenderer.[hc] : (new files, old content :-)
2480 simple base class for post script rendering. Does neither
2481 use Pango/FT2 nor does it handle non latin1 characters.
2482 The fancy stuff which nowadays appears to be needed should
2483 probably be done in derived class(es)
2485 * app/makefile.msc app/Makefile.am : added new files
2487 * app/paginate_psrint.c : re-enabled and used as test
2488 for the simple ps renderer above.
2490 * app/render_eps.[hc] : ripped out common ps code and
2491 moved to DiaPsRenderer. The rest of the file is mostly
2492 disabled. And I don't understand enough of it to
2495 * app/diaepsrenderer.h : short lived, removed.
2497 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
2499 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
2500 as a plugin (thanks to Torben Nielsen).
2502 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
2504 * app/diaepsrenderer.h:
2506 * app/paginate_psprint.c:
2507 #ifdef'd out enough ps stuff to allow compile. Now we just need
2510 2002-10-12 Hans Breuer <hans@breuer.org>
2512 [last plug-in ported]
2514 * plug-ins/xfig/xfig-export.c : ported to new renderer api
2516 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
2517 scale color values to [0..1.0] to properly reconstruct
2520 * plug-ins/xfig/xfig-common.c : some cleaning
2522 2002-10-12 Hans Breuer <hans@breuer.org>
2524 [decrease inter-plug-in-dependencies]
2526 * objects/custom/shape_info.[hc] : move parse_style()
2527 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
2528 the related structs and constants.
2529 * objects/custom/custom_object.c : reflect namespace
2532 * lib/dia_svg.[hc] : new files
2533 * lib/makefile.msc lib/Makefile.am : add new files
2534 * lib/libdia.def : updated externals
2536 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
2538 * plug-ins/svg/svg.c : enable svg import for win32 (and
2539 probably for other non ELF builds)
2541 * plug-ins/makefile.msc : enable svg import
2543 2002-10-11 Hans Breuer <hans@breuer.org>
2545 * plug-ins/metapost/render_metapost.[hc] : ported
2547 * plug-ins/pstricks/render_pstricks.[hc] : dito
2549 2002-10-11 Hans Breuer <hans@breuer.org>
2551 * plug-ins/cgm/cgm.c : ported, appears to work as before,
2552 but graphic apps available to me can't import the generated
2553 files (the could not with Dia-0.90 cgm as well) ...
2555 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
2556 Removed all those function which did emulate 'complex'
2557 drawing ops with basic ones (e.g. rect by line) cause this
2558 stuff is already provided by the base class
2559 * plug-ins/dxf/dxf-import.c : removed render.h include
2561 * plug-ins/python/pydia-font.[hc]
2562 plug-ins/python/pydia-text.c : finally ported to new font api
2564 * plug-ins/python/pydia-layer.c : add extra parameter
2565 to layer_find_closest_connectionpoint()
2567 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
2569 * plug-ins/python/python.c : added missing copyright notice
2571 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
2572 actually use the renderers set_font implementation
2574 * plug-ins/renderer.inc : unused now, removed
2575 * plug-ins/Makefile.am : reflect it
2577 2002-10-08 Hans Breuer <hans@breuer.org>
2579 * app/render_gdk.c : don't add the InteractiveRenderer
2580 interface multiple times (it's added to the type, not
2582 * app/render_libart.c : dito. It's currently added
2583 unconditional cause eport_png uses it, but claims
2584 to be non-interactive. Probably set_size should be moved
2585 to the DiaRenderer interface.
2587 * lib/dialibartrenderer.c : add implementations for
2588 get_<width|height>_pixels. Libart rendering works again.
2589 DiaLibartRenderer::draw_image : use dia_image_rowstride()
2592 * lib/diatransform.c(dia_transform_coords_double) :
2593 don't ROUND() the returned values
2595 * plug-ins/pixbuf/pixbuf.c : added import function. It
2596 simply creates a wrapping "Standard - Image" object.
2598 * plug-ins/shape/shape-export.c : use the more direct
2599 method to call base class methods
2601 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
2603 * lib/font.c (dia_font_init): Changed dia_font_init to return old
2604 pango context, to allow stacked contexts (for printing while
2613 * lib/connectionpoint.h
2616 * lib/diagdkrenderer.h
2618 * lib/dialibartrenderer.h
2621 * lib/diasvgrenderer.h
2622 * lib/diatransform.h
2629 * lib/neworth_conn.h
2644 Moved all externally visible struct typedefs into diatypes.h, as
2645 per Hans' suggestions.
2647 2002-10-07 Steffen Macke <sdteffen@web.de>
2649 * lib/Makefile.am: removed a '\' causing problems
2651 2002-10-07 Hans Breuer <hans@breuer.org>
2653 [Libart Renderer resurrected; almost it's compiling but
2654 almost instantly crashing :-]
2656 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
2657 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
2658 * lib/diatransform.[hc] : added dia_transform_coords_double()
2660 * app/display.c : the right parameters for new_renderer_libart()
2661 * app/export_png.c : ported, removed the blind Display hack
2663 * app/makefile.msc lib/makefile.msc
2664 lib/Makefile.am : updated
2666 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
2668 2002-10-06 Hans Breuer <hans@breuer.org>
2670 * plug-ins/pixbuf/pixbuf.c : (new file)
2671 there is a new export plug-in called 'Pixbuf' which uses
2672 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
2673 formats (currently only PNG and JPEG).
2675 2002-10-06 Hans Breuer <hans@breuer.org>
2678 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
2680 * lib/dia-enums.h lib/diatransform.[hc]
2681 lib/diarenderer.[hc] lib/diainteractiverenderer.c
2682 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
2685 * lib/makefile.msc lib/makefile.am : added new files
2687 * lib/plug-ins.c : g_module_error() returns a locale
2688 string, convert to utf8 before further usage
2690 * lib/render.h : #error out. Everything including this
2692 * lib/*.[hc] : ported to new renderer api
2694 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
2695 just to make the rest compile
2696 * app/render_eps.c : temporary disabled all of this
2697 * app/render_eps.h : removed RendererEPS
2699 * app/render_gdk.[hc] : a small wrapper around the new
2700 DiaGdkRenderer form lib/*
2702 * app/render_libart.h : removed RenderLibart definition
2703 * app/render_libart.c : not yet ported to new DiaRenderer
2704 but having an implementation to untie form FT2 dependency
2705 at least on win32. It is using new Pango api form bug #94791
2707 * app/render_pixmap.[hc] : a small wrapper around the new
2708 DiaGdkRenderer form lib/*
2710 * app/display.h : removed render_*.h includes
2711 * app/display.c : the only place where specific
2712 renderers need to be known
2714 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
2715 use new DiaInteractiveRenderer interface
2717 * app/*.c : ported to new renderer api
2718 * object/*/*.c : ported to new renderer api
2719 s/render.h/diarenderer.h/
2720 s/Renderer/DiaRenderer/
2721 s/renderer->ops/renderer_ops/
2722 add in every draw method:
2723 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
2725 * plug-ins/hpgl/hpgl.c :
2726 plug-ins/wmf/wmf.cpp
2727 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
2728 * plug-ins/shape/shape-export.c
2729 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
2730 (nice how small these files became :-)
2732 2002-09-28 Hans Breuer <hans@breuer.org>
2734 * */makefile.msc : updated
2736 * app/defaults.c : don't gdk_invalidate_rect(NULL)
2737 * app/disp_callbacks.c :
2738 can't cast GtkWindow to GdkWindow, use shell->window
2739 (ddisplay_unrealize) don't use already unrefed im_context
2741 can't cast from GtkMenu to GtkMenuItem
2742 (ddisp_destroy) : mark im_context as unrefed
2744 * lib/dia_xml (data_font) : prefer new font format over old one
2745 (data_add_font) : write the legacy name to allow file exchange
2746 with pre Pango versions of Dia, which would otherwise crash
2747 on missing font 'name' attribute.
2748 * lib/font.c (dia_font_get_legacy_name) : improved implementation
2749 to get a better match.
2751 * lib/libdia.def : updated
2753 * lib/messages.c : don't gdk_widget_show(NULL)
2755 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
2757 [make Dia compile, link _and_ work with mingw/gcc3.2]
2759 * config.h.win32 : #define LIBXML, this gets defined from libxml
2760 header but only for _MSC_VER. The mingw build did access an
2761 unitialized function pointer for xmlFree.
2763 * */makefile.mingw : updated (some plug-ins have build issues)
2765 * lib/handle.h lib/object.h : there appears to be no
2766 forward declaration of the form
2767 typedef enum _HandleId HandleId
2768 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
2769 use of enum `_HandleId' without previous declaration
2771 * app/paginate_gdiprint.cpp : added a hack to avoid g++
2772 naming conflict on 'export'
2774 * app/paginate_gdiprint.h : forward declare Diagram
2776 * objects/SADT/annotaion.c : use g_random_double()
2778 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
2780 * app/modify_tool.c: Made motion not happen until sufficiently
2781 large or past double-click interval, to avoid accidental moving
2782 when doubleclicking. Got the double-click time right, and fixed
2783 some issues with release. There are some corner cases that may
2784 exhibit strange behaviour, will look at those later. Nah, let's
2785 not care about those, they are rare and not dangerous.
2787 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
2789 * app/layer_dialog.c:
2791 * plug-ins/dxf/dxf-import.c:
2792 * plug-ins/python/pydia-diagram.c:
2793 * lib/diagramdata.c:
2794 * lib/diagramdata.h:
2795 Improved the consistency of the obj->parent_layer backlinks (esp.
2800 * lib/dynamic_obj.[ch] (NEW):
2803 * app/dynamic_refresh.[ch] (NEW):
2804 * objects/Misc/analog_clock.c:
2805 Added support for dynamic refresh (animated objects).
2807 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
2809 Patch from Owen Taylor <otaylor@redhat.com>:
2810 * doc/en/Makefile.am:
2811 * doc/en/dia-manual.sgml:
2812 * doc/en/usage-objects.sgml:
2813 * doc/en/usage-quickstart.sgml:
2814 * doc/pl/Makefile.am:
2815 * doc/pl/dia-manual.sgml:
2816 * doc/pl/usage-objects.sgml:
2817 * doc/pl/usage-quickstart.sgml:
2819 - Change the DTD declration from an outdated GNOME one to a
2822 - Remove close tags for <graphics> which aren't allowed for
2825 - A hacky fix for a problem where some versions of db2html don't
2826 create *.css files. (If *.css doesn't match anything, then you get
2827 the global explicitely.)
2831 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
2833 * objects/custom/custom_object.c:
2834 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
2835 were never properly prepared for use when reloading a shape with
2836 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
2837 reporting the problem and coming up with a fix! (Closes: #93974)
2839 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
2840 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
2843 * app/display.c: updated menu item paths Alan's patch had moved.
2845 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
2846 load the sheet-provided icon (libpng versions mismatch, grrr.).
2849 * objects/Makefile.am:
2850 * objects/Misc/Makefile.am (NEW):
2851 * objects/Misc/libmisc.c (NEW):
2852 * objects/Misc/analog_clock.c (NEW):
2853 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
2854 * sheets/Misc.sheet.in: just a little experiment...
2856 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
2858 * plug-ins/xlst/Makefile.am: found a way to silence automake while
2859 not forcing everyone to build using libxslt.
2863 * lib/object_defaults.c:
2866 * lib/properties.[ch]:
2868 * objects/standard/box.c:
2869 * objects/UML/state_term.c:
2871 * objects/FS/flow-ortho.c:
2875 * app/diagram_tree.c:
2877 * app/disp_callbacks.c:
2880 * app/lineprops_area.c:
2882 * app/preferences.c:
2885 * app/sheets_dialog_callbacks.c:
2886 * plug-ins/xslt/xslt.c:
2887 * plug-ins/metapost/render_metapost.c:
2888 * plug-ins/xfig/xfig-export.c:
2889 * plug-ins/shape/shape-export.c:
2891 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
2892 unused variables, mostly)
2895 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
2897 * app/Makefile.am: modified run_dia.sh so that we recover the
2898 ability to run a debugger despite libtool's hacks.
2900 * plug-ins/dxf/Makefile.am:
2902 "make distcheck" fixes.
2904 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
2906 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
2907 <mfranzoni@madd.it>: Check for the type being NULL.
2909 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
2911 * app/render_eps.c (set_font): Re-tweaked font size for printing.
2913 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
2915 Patch from Angus Ainslie <angusa@deltatee.com>:
2916 * plug-ins/dxf/dxf-import.c:
2917 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
2919 (plus a couple extra fixes by me, such as the removal of printf's,
2920 adapting for recent changes, and killed a couple warnings)
2922 * app/authors.h: a 60K patch isn't insignificant, is it?
2924 2002-09-09 Tor Lillqvist <tml@iki.fi>
2926 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
2927 as before) and -lfreetype (using AC_CHECK_LIB). At least on
2928 Solaris with Sun's compiler (Forte C), you need to link also the
2929 dia application with -lfreetype, even if it is implicitly linked
2930 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
2931 which is what they actually mean. Use FREETYPE_LIBS for
2934 Don't look for libsunmath if isinf() is not found in math.h (as on
2935 Solaris). The sunmath library is part of Forte C and not present
2936 on all machines. Besides, even if isinf was found in libsunmath,
2937 we didn't use it in the Makefile.am.
2939 Fix a couple of bashisms.
2941 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
2942 too, on Solaris with Forte C.
2944 Don't try to use the gcc flags with other compilers.
2945 DIA_CHECK_CFLAG gives a false indication that Forte C understands
2946 the gcc -f switches, but in fact they get interpreted meaning
2947 something completely different.
2949 Define the automake conditional HAVE_CGC.
2951 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
2953 Use -export-dynamic only with gcc.
2956 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
2957 PANGOFT2_CFLAGS rename.
2959 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
2961 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
2964 * lib/paper.c: Workaround for gccism: Can't use inline this way with
2967 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
2969 * lib/text.c(set_string): fixed a memory leak (char* ain't no
2970 std::auto_ptr<char> !).
2973 * app/interface.[ch]:
2974 * app/ddisp_callbacks.[ch]: Added some basic support for input
2975 methods (GtkIMContext-based)
2978 * app/Makefile.am: made libdia a shared object (per Tor
2979 Lillqvist's suggestion/request), to cope for platforms with a less
2980 than par dynamic library loader.
2982 * app/display.c: disabled the input method menu (I really don't
2983 see where and how to put them. Blame Frozen Bubble )
2985 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
2987 * objects/flowchart/box.c (box_update_data): Made resizing
2988 possible again (only set width & height when resized too small).
2990 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
2992 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
2995 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
2997 * app/authors.h: now showing Akira TAGOH's name in the native script.
2999 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
3001 * plug-ins/xslt/xslt.c: Removed glib warning for unset
3004 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
3006 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
3007 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
3010 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
3012 * objects/UML/class.c: Fixed showing of empty stereotypes and got
3013 the string placed correctly.
3015 2002-08-30 Hans Breuer <hans@breuer.org>
3017 * lib/font.c (dia_font_get_style) : don't shift already
3018 shifted DIA_FONT values.
3020 * lib/libdia.def : updated externals
3022 * app/disp_callbacks.c : on win32 GdkEventKey::string already
3023 is in UTF-8. (Longterm this probably should be handled on the
3026 * app/command.[hc] app/display.[hc] app/menus.c : add code to
3027 switch display renderers again. The libart renderer is very
3028 useful for win9x with it's limited GDI.
3030 * app/render_gdk.c : use g_warning instead of printf which gets
3031 nowhere on win32 (non console apps)
3033 * app/render_libart.c : make it compile without FREETYPE
3035 * objects/makefile.msc plug-ins/makefile.msc : added clean target
3037 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
3039 * app/render_eps.c (postscript_draw_contour): Debugging statement
3040 that allowed me to figure out font problems.
3042 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
3043 items for font styles.
3045 * objects/FS/flow-poly.c:
3046 * objects/FS/flow-ortho.c:
3047 * objects/FS/flow.c: Further conversion away from GTK dialogs.
3048 Can't set a default label right now:(
3050 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
3052 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
3053 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
3055 * Makefile.am: rules relating to AUTHORS and THANKS
3057 * AUTHORS: file content changed to more accurately
3058 reflect guideline requirements.
3059 * TODO: warning added about Gnome BTS.
3060 * KNOWN_BUGS: warning added about Gnome BTS.
3064 * AUTHORS: added full copyright info.
3065 * mkauthors-placeholder: (removed)
3067 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
3069 * app/paginate_psprint.c (print_page): Fixed text printing after
3070 tip from Dov Grobgeld.
3072 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
3074 * app/paginate_psprint.c (print_page): Fixed color of clip
3077 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
3079 * sheets/Makefile.am: enabled intltool-merge translation cache for
3083 * mkauthors-placeholder:
3084 * AUTHORS: revived that file (in a placeholder form) so that
3085 automake stops yelling.
3086 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
3089 Heh, by the way, thanks Christophe. I feel better now.
3091 2002-08-25 Christophe Merlet <christophe@merlet.net>
3093 * app/command.c: Removed invalid multibyte sequence in Chepelov.
3095 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
3097 * lib/dia_image.c (dia_image_rgb_data):
3098 Bugfixes in image data retrieval.
3100 * app/render_eps.c: Refactoring of new_*_renderer.
3102 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
3106 * lib/dia_image.c: Support for rowstride != width (odd width images)
3108 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
3110 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
3111 * plug-ins/xfig/xfig-import.c: Removed assertion.
3113 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
3115 * lib/paper.c: Removed app/preferences.h reference.
3117 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
3119 * plug-ins/svg/svg-import.c:
3120 * plug-ins/xfig/xfig-import.c:
3121 * lib/Makefile.am (libdia_a_SOURCES):
3122 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
3124 * objects/standard/create.h:
3125 * objects/standard/polygon.c (polygon_create):
3126 * objects/standard/polyline.c (polyline_create):
3127 * objects/standard/beziergon.c (beziergon_create):
3128 * objects/standard/bezier.c (bezierline_create):
3129 Moving create.h into lib.
3131 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
3133 * app/render_libart.[ch]: Work on PNG font export. Something's
3134 still fishy with the scaling, I don't get it.
3137 * app/interface.c: Replaced broken zoom combo with entry+menu.
3138 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
3140 * app/render_gdk.c (get_text_width): Checks for validity of text.
3141 Temporary help while debugging input -- should only activate on
3144 * objects/SADT/annotation.c:
3145 * objects/GRAFCET/transition.c:
3146 * objects/FS/function.c: Removal of gtk.h include.
3148 * objects/UML/state.c (state_load): Warnings about using State
3149 object for initial/final states.
3151 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
3153 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
3155 * app/render_eps.c: Text rendering that scales correctly. Too bad
3156 the standard fonts don't get selected right.
3158 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
3160 * lib/diagramdata.h:
3161 * lib/paper.c (get_paper_info):
3163 * plug-ins/xfig/xfig-import.c:
3164 Committed before testing. I am so embarrased. This compiles, now
3165 that the includes are in the right order.
3167 * app/diagram.c (diagram_init):
3168 * app/app_procs.c (do_convert):
3169 * app/preferences.h:
3170 * lib/diagramdata.h:
3171 * lib/diagramdata.c (new_diagram_data):
3173 * lib/paper.c (get_paper_info):
3174 Moved new_diagram part of prefs into lib/diagramdata.h. More
3175 could be done in new_diagram_data() now.
3177 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
3179 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
3181 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
3183 * configure.in: removed silly user-visible comment
3185 (actually, this is a dummy entry before I manually run nemo; for
3186 some dist-upgrade related reason, this morning's run aborted before
3187 the snapshots were created)
3189 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
3191 * objects/network/wanlink.c:
3192 * objects/network/bus.c:
3195 * objects/custom/custom_object.c:
3196 * objects/network/wanlink.c:
3197 * objects/flowchart/parallelogram.c:
3198 * objects/flowchart/ellipse.c:
3199 * objects/flowchart/diamond.c:
3200 * objects/flowchart/box.c:
3201 Removed GTK defaults stuff.
3203 * objects/UML/fork.c:
3204 * objects/UML/object.c:
3205 * objects/UML/lifeline.c:
3206 * objects/UML/branch.c:
3207 * objects/GRAFCET/transition.c:
3208 * objects/FS/function.c: Removed GTK include.
3210 * objects/FS/flow-ortho.c:
3211 * objects/FS/flow.c: Made the label behave again.
3212 Also removed GTK defaults stuff.
3214 2002-08-06 Hans Breuer <hans@breuer.org>
3216 * app/autosave.c : ported to GDir which is the improved
3217 cross platform replacement for <dirent.h>
3219 * app/makefile.msc : build autosave.obj
3221 * app/font.c : some (bad?) code calls
3222 dia_font_scaled_decent() not only with empty string but
3223 with NULL. Handle it gracefully.
3225 * lib/paper.c : don't depend on ../app. Although IMO
3226 this shouldn't be allowed on any platform it is only
3227 disabled for win32, where it simply doesn't work
3230 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
3232 * objects/fs/flow.c : conditionalize debug spew, disabled
3233 and 'ported' to use g_print. Simple printf won't work with
3234 standard win32 gui apps, may even crash them.
3236 * plug-ins/makefile.msc : DISABLED svg-import cause it
3237 depends on ../objects/custom. This not only break the
3238 build for all non ELF systems but IMO also isn't acceptable
3239 from a design point of view. See dia-list mail on subject.
3241 * plug-ins/python/makefile.msc :
3242 plug-ins/python/python.c : remove all references to dirent
3244 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
3246 * configure.in: added ro to ALL_LINGUAS
3250 * ../translation-graphs/transgraph.py: added support for fuzzy
3251 translations. Enlarged the graphs.
3253 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
3255 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
3256 key events according to locale. No clue if this works for
3259 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
3261 * lib/text.c: Various UTF8 related fixes, in particular in
3262 deleting. Text_insert_char is fine, far as I can tell.
3264 * app/interface.c (create_display_shell):
3265 * app/commands.c: Now uses gtk_clipboard functions, for they are
3266 much simpler. Also handles Win32 clipboard. Non-ascii chars
3267 don't seem to get handled correctly by text_insert_char in
3270 * app/commands.c (received_selection_handler): Got utf8 handling
3271 on paste, and individual char handling out of commands.c. Pasting
3272 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
3274 * lib/message.c (gtk_message_internal): Message dialog re-shown
3275 when new message appears. Maybe it should even move to top?
3279 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
3280 (again) and case-insensitive.
3282 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
3285 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
3287 * app/commands.c (edit_cut_text_callback):
3288 * lib/text.c (text_delete_all): Now functioning undo for text cut.
3290 * app/commands.c (edit_cut_text_callback): Now removes text.
3291 Undo is broken, though.
3293 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
3295 * app/diagram.c (diagram_update_menu_sensitivity):
3296 Making cut_text active.
3299 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
3300 clipboard. Also removed AA callback.
3302 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
3304 * objects/chronogram/chronoref.c:
3305 * objects/chronogram/chronoline.c:
3306 * objects/SADT/annotation.c:
3307 * objects/SADT/arrow.c:
3308 * objects/SADT/box.c:
3309 * objects/GRAFCET/vergent.c:
3310 * objects/GRAFCET/vector.c:
3311 * objects/GRAFCET/step.c:
3312 * objects/GRAFCET/condition.c:
3313 * objects/GRAFCET/action.c:
3314 * objects/ER/participation.c:
3315 * objects/ER/relationship.c:
3316 * objects/ER/entity.c:
3317 * objects/ER/attribute.c:
3318 Removing unnecessary GTK references.
3320 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
3322 * objects/standard/image.c:
3323 * objects/standard/textobj.c:
3324 * objects/standard/ellipse.c:
3325 * objects/standard/polygon.c:
3326 * objects/standard/beziergon.c:
3327 * objects/standard/box.c:
3328 Making default default properties.
3330 * objects/standard/image.c:
3331 * objects/standard/arc.c:
3332 * objects/standard/box.c:
3333 * objects/standard/zigzagline.c:
3334 * objects/standard/polyline.c:
3335 * objects/standard/line.c:
3336 * objects/standard/ellipse.c:
3337 * objects/standard/polygon.c:
3338 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
3340 * lib/object_defaults.c (dia_object_default_create):
3343 * lib/object.c (object_copy_using_properties):
3344 * lib/propdialogs.c:
3345 * lib/propinternals.h:
3346 * lib/propobject.c (object_create_props_dialog)
3347 (object_copy_props):
3348 Removing the standard (toolbox) properties from defaults dialogs.
3350 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
3352 * lib/font.c (dia_font_scaled_string_width)
3353 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
3355 * lib/text.c (text_calc_boundingbox): Take descent into account.
3357 * objects/standard/bezier.c (bezierline_draw):
3358 * lib/render.c (draw_bezier_with_arrows):
3359 Better arrow drawing for beziers. Doesn't change the mouse-click
3362 * lib/arrows.h: Some const-ness.
3364 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
3366 * lib/render.c (draw_arc_with_arrows):
3367 * objects/standard/arc.c (arc_draw): Better arrow drawing for
3368 arcs. Doesn't change the mouse-click area yet.
3370 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
3376 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
3378 * app/group.c (group_draw): Forgotten commit: Groups to draw as
3379 objects (using default routines).
3383 * lib/diagramdata.h:
3384 * lib/diagramdata.c (layer_find_closest_connectionpoint):
3385 * objects/standard/zigzagline.c (zigzagline_move_handle):
3386 * app/diagram.c (diagram_find_closest_connectionpoint):
3387 * plug-ins/python/pydia-diagram.c
3388 (PyDiaDiagram_FindClosestConnectionPoint):
3389 * app/object_ops.c (object_connect_display)
3390 (object_find_connectpoint_display)
3391 * app/create_object.c (create_object_button_press)
3392 (create_object_motion):
3393 * app/modify_tool.c (modify_motion):
3394 Adding object param to allow connectionpoint and handle coinciding.
3396 * objects/standard/zigzagline.c (zigzagline_check_orientation):
3397 Fixing minor problems.
3399 * objects/standard/ellipse.c (ellipse_update_data):
3400 Added direction hints.
3402 * lib/diagramdata.c:
3405 * lib/diagramdata.h:
3406 * objects/standard/zigzagline.c:
3407 First working example of zigzagline hints, currently only between
3410 2002-07-27 Steffen Macke <sdteffen@web.de>
3412 * plug-ins/svg/render_svg.c: added support for rounded
3413 rectangles (fixes #69053 if compile with
3415 * object/custom/shape_info.[c|h]: made parse_style and
3416 parse_path accessible for svg plug-in
3417 * plug-ins/svg/Makefile.am:
3418 * plug-ins/svg/svg.c:
3419 * plug-ins/svg/svg-import.c(new): added SVG import filter
3421 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
3423 * objects/standard/box.c:
3424 * objects/standard/zigzagline.c (zigzagline_move):
3425 More work on zigzagline hints.
3427 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
3428 * lib/connectionpoint.h:
3429 Hints for zigzaglines.
3431 * app/properties.c (properties_show):
3432 * app/defaults.c (defaults_show):
3434 * lib/propobject.c (object_create_props_dialog):
3436 * objects/FS/flow-poly.c:
3437 * objects/network/wanlink.c:
3438 * objects/network/bus.c:
3439 * objects/UML/class.h:
3440 * objects/UML/class_dialog.c:
3441 * objects/UML/association.c:
3442 Start of removing toolbox props from props dialogs.
3446 * app/lineprops_area.c (dia_arrow_chooser_new):
3447 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
3449 * app/create_object.c:
3450 * app/modify_tool.c:
3455 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
3457 * app/preferences.c:
3459 * app/diapagelayout.c:
3460 New prefs selector kind PREF_CHOICE chooses between a list of
3461 strings. Used for picking default paper.
3463 * app/preferences.c (prefs_data):
3464 * lib/paper.c (get_paper_info): Added prefs setting for
3467 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
3468 line segments at the ends (bug #86603).
3470 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
3472 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
3473 #60324: Now calls update_data after copy.
3475 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
3476 Now doesn't steal selection from non-object tools.
3478 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
3480 * app/commands.c (help_manual_callback): Uses BROWSER environment
3481 variable when available.
3483 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
3485 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
3486 object from the new sheet when changing.
3488 * app/app_procs.c (app_init): Uses more standard size icon, from
3489 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
3491 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
3493 * objects/UML/implements.c (implements_update_data):
3494 * objects/UML/realizes.c (realizes_update_data):
3495 * objects/UML/dependency.c (dependency_update_data):
3496 Test for null strings before calling on ascent.
3498 * objects/UML/realizes.c (realizes_draw):
3499 * objects/UML/message.c (message_draw):
3500 * objects/UML/generalization.c (generalization_draw):
3501 * objects/UML/dependency.c (dependency_draw)
3502 * objects/UML/constraint.c (constraint_draw):
3503 * objects/GRAFCET/condition.c (condition_draw):
3504 * objects/UML/association.c (association_draw):
3505 * objects/FS/flow-ortho.c (orthflow_draw):
3506 * objects/FS/flow.c (flow_draw): Change to use
3507 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
3510 * lib/arrows.c (calculate_arrow_point):
3513 * objects/standard/zigzagline.c:
3514 * objects/standard/polyline.c:
3515 * objects/standard/line.c: Work towards better arrow drawing.
3517 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
3519 * objects/UML/state.c: Starting phase-out of State object as
3520 initial/final state (which never worked right).
3522 * app/app_procs.c (app_init): --version command line option for
3525 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
3527 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
3529 * app/render_eps.c: Removed debugging info.
3531 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
3532 Kludge to make ascent and descent work for empty strings. Won't
3533 work when using non-ASCII fonts. Better would be to get a
3534 PangoFont and ask directly.
3536 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
3539 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
3542 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
3544 * plug-ins/xfig/xfig-export.c: First use of draw_object render
3545 function: All shapes are now groups in XFig export.
3547 * lib/diagramdata.c (normal_render):
3550 * app/display.c (ddisplay_obj_render):
3551 New render function for drawing objects, allows renderers to group
3552 or otherwise specially handle objects. We may want to reconsider
3553 calling it in app/display.c, as we 'know' the object draw function
3554 is the default one there.
3556 * lib/Makefile.am: Removed extra \ that broke stuff.
3558 * plug-ins/xfig/xfig-import.c:
3559 Spline import for xfig. Not perfect.
3561 * objects/standard/create.h:
3562 * objects/standard/bezier.c (bezierline_create):
3563 * lib/bezier_conn.c:
3564 * lib/beziershape.c (beziershape_set_points):
3565 * lib/bezier_conn.h:
3566 * lib/beziershape.h:
3567 Support for creating beziers non-interactively.
3569 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
3571 * plug-ins/xfig/xfig-import.c: Support for polygons and
3572 polylines. Special warning handling system removed.
3574 * lib/message.c (gtk_message_internal): Fixed bug involving
3575 closing message window and then getting repeated message.
3579 * configure.in (GETTEXT_PACKAGE):
3580 Update based on bug #88199. Hopefully this doesn't break too much
3583 * dia.desktop.in (_Comment): Changed after suggestion from
3584 calum.benson@ireland.sun.com (bug 88345)
3586 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
3587 <loli@unsa.edu.ar> that makes user/system distinction better.
3589 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
3591 * app/render_libart.c: Got the context right, removed crashes.
3601 Remove libart #defines from most places (still around for png export).
3603 * app/render_libart.h:
3604 * app/render_libart.c:
3605 * configure.in (HAVE_LIBART):
3606 Starting on update of libart stuff for png export (without X).
3608 * app/autosave.h (autosave_check_autosave):
3611 * app/Makefile.am (dia_core_files):
3613 * app/diagram.c (diagram_set_modified):
3615 * app/app_procs.c (app_init):
3616 Autosave support. No automatic restore yet.
3618 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
3620 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
3623 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
3625 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
3627 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
3629 * Fix for 'make dist' etc. --- problem caused by
3630 previous AUTHORS patch.
3632 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
3634 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
3636 (set_font): NULL check.
3638 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
3640 * app/disp_callbacks.c:
3642 Addition to the object menus allows check menu items.
3644 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
3646 * HACKING: completely changed to bring up-to-date.
3647 * AUTHORS: file needs REMOVING from CVS as now
3648 dynamically generated.
3649 * app/authors.h: split into subcategories for original
3650 authors, maintainers, etc.
3651 * app/app_procs.c: --credits rewritten to support new
3653 * app/commands.c: no changes to about box code, comment
3655 * Makefile.am: added rule for AUTHORS. I'm still
3656 inexperienced with automake, it seems to work, but
3657 for AUTHORS-related bugs, look at this change first.
3659 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
3661 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
3662 work. Back to including xslt dir always.
3664 * objects/UML/uml.c:
3665 * objects/UML/class.h:
3666 * objects/UML/class_dialog.c:
3667 * objects/UML/class.c: Patch from
3668 <mattam@netcourrier.com>: Adds comment visibility switch, also
3671 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
3672 for state/fork/activity stuff.
3673 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
3674 * objects/UML/Makefile.am:
3675 * objects/UML/uml.c:
3676 * sheets/UML.sheet.in: Added new objects activity, fork,
3678 * objects/UML/pixmaps/state_term.xpm:
3679 * objects/UML/state_term.c: New, only initial/final states.
3680 * objects/UML/pixmaps/activity.xpm:
3681 * objects/UML/activity.c: New, activity state.
3682 * objects/UML/pixmaps/fork.xpm:
3683 * objects/UML/fork.c: New, fork/join bar.
3684 * objects/UML/pixmaps/state.xpm: state icon.
3688 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
3689 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
3692 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
3694 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
3697 * app/Makefile.am: Commented out the diaconv parts while it's not
3698 used anyway. To come back later.
3700 * configure.in (HAVE_FREETYPE):
3703 * app/render_eps.c: Support for printing with freetype, better
3704 encapsulated now. Renders the text nicely, but ignores font
3705 setting. Requires pangoft2 to get the font outline, but non-text
3706 objects can still be rendered without it.
3709 * app/commands.c (objects_place_up_callback)
3710 (objects_place_down_callback):
3712 * app/diagram.c (diagram_place_down_selected)
3713 (diagram_place_up_selected): Starting support for moving objects
3716 * app/menus.c: Removed character/numeral shortcuts.
3718 2002-07-06 Hans Breuer <hans@breuer.org>
3720 * makefile.am app/makefile.am lib/makefile.am
3721 objects/makefile.am plug-ins/makefile.am
3722 plug-ins/python/makefile.am :
3723 added required files for win32 build to EXTRA_DIST
3725 * app/paginate_psprint.c app/render_eps.c
3727 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
3728 on Pango as currently is on win32 => no PostScript
3731 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
3732 use '/* noop */;' for empty case labels; replace
3733 debug spew printf with g_print which is guaranteed
3734 to work on win32, too.
3736 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
3737 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
3738 in the pango_font_description_set_weight() api documentation
3739 Take care for them in dia_font_get_style() too.
3741 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
3742 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
3743 rename Obliquity to Slant which appears to be the usual name,
3744 also rename dia_font_get_style_string -> dia_font_get_slant_string
3746 * plug-ins/wmf/wmf.cpp : finally ported to new font api
3748 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
3750 * objects/uml/association.c class.c large_package.c message.c
3751 if g_free() is used g_strdup needs to be used.
3752 * objects/custom/shape_info.c
3753 objects/ER/attribute.c entity.c
3754 objects/standard/image.c
3755 app/sheets_dialog_callbacks.c : more strdup cleaning
3757 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
3759 * app/render_eps.c: Non-crashing printing (made the right
3760 context). Font output still fscked up.
3762 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
3764 * app/authors.h: Added file --- now master
3765 location for contributors data.
3766 * app/app_procs.c: Added --credits option.
3767 * app/commands.c: Modified about box to use
3770 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
3772 * app/render_eps.c: First stab at EPS rendering using the contour
3773 code from PAPS. Crashes.
3775 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
3777 * app/recent_files.c (recent_file_history_remove):
3778 Fixed call to g_list_delete_link discarding return value.
3780 * lib/widgets.c (dia_font_selector_set_styles):
3781 * lib/font.h (DiaFontWeight):
3782 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
3784 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
3786 Contribution from Alan Horkan <horkana@tcd.ie>:
3789 * sheets/Assorted.sheet:
3790 A set of 40 assorted geometric shapes.
3792 * sheets/Assorted.sheet.in:
3793 * sheets/Makefile.am
3794 * shapes/Assorted/Makefile.am:
3795 * shapes/Makefile.am:
3798 Done the integration job of Alan's shapes. (Translators: have fun!)
3800 * po/dia.pot: refreshed the main potfile.
3802 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
3804 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
3806 * objects/UML/class.[ch]:
3807 * objects/UML/class_dialog.c:
3808 changed the number of connection points from a hardcoded value of
3809 8 to a #defined constant
3811 (I changed the constant back from 20 to 8, until we better know
3812 how we'll handle more connection points on the UML class in the
3813 future -- but Tim's patch is a welcome clean-up).
3815 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
3817 * shapes/MSE/demultiplexer.xpm:
3818 * shapes/MSE/node_center.xpm:
3819 * shapes/MSE/multiplexer.xpm:
3820 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
3821 Horkan <horkana@tcd.ie>
3823 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
3825 * lib/widgets.c: Total rehash of font selector, with font dialog
3826 option, expanding list (not LRU yet), and stuff.
3828 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
3832 Added a set of new setter/getters, some of them more specially for
3835 * plug-ins/shape/shape-export.c: (new_shape_renderer),
3836 (destroy_shape_renderer), (set_font), (draw_string):
3837 * plug-ins/svg/render_svg.c: (new_svg_renderer),
3838 (destroy_svg_renderer), (set_font), (draw_string):
3840 Actually exported the font face, style, weight and size (sodipodi
3841 agrees with dia on how a small sample should look like (a sample
3842 0.90 would not even display anyways). Yay !)
3844 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
3846 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
3848 (end of ChangeLog-less patch)
3850 * objects/custom/shape_info.c (parse_style): now understands the
3851 font-style and font-weight attributes as well. Does not use
3852 anymore dia_font_new_from_legacy_name().
3854 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
3856 * objects/standard/textobj.c: Now uses stdprops for defaults.
3858 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
3859 * lib/font.c (dia_font_get_style): Style now linear and conversion
3862 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
3865 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
3867 * plug-ins/dxf/dxf-import.c:
3868 using dia_font_new_from_style()
3870 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
3872 * objects/UML/class.[ch]: Added a comment field to class
3873 * objects/UML/uml.[ch]: Added a comment field to attributes,
3874 operations and parameters.
3875 * objects/UML/class_dialog.c: Added code for the new comment
3877 * plug-ins/xslt/*.xsl: Added some code to handle comments.
3878 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
3879 Added a $directory parameter for stylesheets so the output is
3880 in the good place (not in the $PWD).
3884 * AUTHORS: added contributors, updated maintainers. Removed the
3885 specific areas of action.
3887 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
3888 from a patch by Xing Wang <quixon@gnuchina.org>:
3890 * app/commands.c: help_about_callback now supports
3891 new-style GNOME about box as well as old GTK style.
3892 code also tidied (Closes: #85726)
3896 * app/commands.c: fixed the copyright (it's not all FSF), and
3897 maintainers. Synced contributors list with AUTHORS.
3899 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
3901 * lib/message.c: More work on repeating messages, now with
3904 2002-06-24 Hans Breuer <hans@breuer.org>
3906 * lib/widget.c : some more bits in place, at least
3907 it does something useful instead of crashing. Much
3908 better - but not all ok :-)
3910 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
3912 * lib/message.c (gtk_message_internal): First stab at repeating
3915 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
3918 * objects/GRAFCET/*.c:
3920 * objects/UML/association.c: (one instance forgotten)
3921 * objects/UML/large_package.c:
3922 * objects/standard/textobj.c:
3925 using dia_font_new_from_style()
3927 2002-06-23 Hans Breuer <hans@breuer.org>
3929 * lib/font.c : giving some love to
3930 dia_font_new_from_legacy_name() that is making
3931 import of old files as painless as possible and
3932 provide an almost exact match where possible.
3933 It does not yet fully work because it interfers
3934 with the Style to DiaStyle conversion which comes
3937 [Changing these files is only allowed with Dia-0.90]
3938 * broken-files/fonts-0.90.dia : including the
3939 common hard-coded fonts from Dia-0.90. It also
3940 has drawn bounding-boxes for win32 as they were calculated
3941 from the former version (they were all too big).
3942 * broken-files/fonts-0.90-full.dia : all hardcoded
3943 fonts including the asian versions. On my machine
3944 this gives _a lot_ complaining about missing fonts
3945 and a finally a broken file display. Anyone having
3948 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
3950 * objects/chronogram/*.c:
3951 * objects/custom/custom_object.c:
3953 using dia_font_new_from_style()
3955 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
3957 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
3958 font selector (stability, insensitivity).
3960 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
3961 stretching scheme for tweaking, and made scaling scheme faster
3963 (dia_font_dia_style_to_pango): Oops, % != /.
3965 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
3968 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
3970 * plug-ins/xslt : Added an XSLT plugin to export dia files using
3971 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
3972 It includes a small config file to tell it what stylesheets to use.
3976 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
3977 GTK2.0/HIG compliant (the labels could be slightly more verbose,
3978 perhaps). Added back a couple forgotten _(). Removed //-style
3981 2002-06-23 Hans Breuer <hans@breuer.org>
3984 (dia_plugin_get_name) : don't crash plugin_manager
3986 (dia_plugin_load) : reuse the description field to
3987 store the error string if loading fails.
3989 * lib/font.[hc] : starting to beautify the new
3990 font api: proper namespacing, adding convenience
3991 functions like dia_font_new_from_style(), ...
3993 * objects/uml/*.c : use the new convenience functions.
3995 [Next thing I plan to do is changing the other font
3996 functions to take DiaStyle and make Style and
3997 BASIC_*_FONT vanish. As well as giving some love to
3998 dia_font_new_from_legacy_name().
3999 If anyone want's to help on converting the other
4000 objects to the new api during that, I would highly
4003 2002-06-23 Hans Breuer <hans@breuer.org>
4005 * lib/font.c : made it compile and small indent fixes.
4006 Is there a code-has-no-effect-so-needs-not-be-valid
4009 * lib/widgets.c : use g_strcasecmp
4011 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
4015 * lib/widgets.c: Font names sorted, style selector widget
4016 reappeared. Doesn't select the old style yet.
4018 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
4020 * lib/font.c: one who expects a text's font to be changed shall
4021 actually request the attributes to apply to the whole range of the
4024 * lib/font.c: extents computation was wrong.
4026 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
4027 if a last NULL parameter is added...
4029 * lib/font.c: extents computation was completely wrong. This looks
4030 much better this time.
4032 * objects/UML/class.c: fixed the various strings positions.
4034 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
4035 macros to get the hardcoded base fonts.
4037 * objects/ER/relationship.c: wasn't converted to DiaFont*
4039 2002-06-22 Hans Breuer <hans@breuer.org>
4041 * lib/widget.c : dont use backend specific functions
4042 to get on the font_families. Including it would mean
4043 including <windows.h> which breaks due to namespace
4046 * lib/libdia.def : updated externals
4048 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
4050 * lib/font.c : added empty dia_font_init_instance function,
4051 reformatting of dia_fon_unref to allow to set breakpoint,
4052 dia_fon_build_layout() : dont crash on string==NULL
4054 * lib/text.c (text_set_attributes) : don't unref the wrong font
4056 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
4057 stores lowercased font names, but dia_font_get_family()
4060 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
4063 * app/render_gdk.c: Patch from Hans Breuer.
4065 * app/Makefile.am (dia_core_files): diaconv commented out for now.
4067 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
4069 * lib/all files touched yesterday: took into account some of Hans
4071 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
4073 * objects/chronogram/*:
4076 * objects/flowchart/*:
4078 * objects/GRAFCET/*:
4080 * objects/standard/textobj.?:
4082 converted to the new DiaFonts.
4085 * plug-ins/pstricks/*:
4089 Made minimalistic conversions so that they'd at least compile.
4092 * app/render_pixmap.c:
4093 Converted to the new DiaFonts.
4098 made the minimal changes so that it would at least build.
4100 *** At this point, the thing builds on my machine, but segfaults
4103 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
4105 * configure.in: removed the backend-specific pango pkg_modules
4106 (trivial to add back if needed, when actually needed)
4109 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
4110 renderer. The APIs will have completely changed when we get around
4111 to redo a renderer for it, anyways.
4113 * font.[ch]: rewrote everything from scratch, with a Pango
4114 implementation. Normally, only backend-neutral things should go in
4117 **WARNING**: new rules for managing DiaFont* pointers: these are
4118 reference-counted GObjects. One >must< diafont_ref() and
4119 diafont_unref() as appropriate. I wish I could overload operator=()...
4121 lib/plug-ins.h: bumped up the plug-in API.
4126 lib/object_defaults:
4127 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
4128 again tomorrow with GObject.
4130 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
4132 **** The rest of the tree should be updated as well ****
4134 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
4138 * app/render_pixmap.c:
4139 * app/render_pixmap.h:
4140 * app/render_libart.h:
4141 * app/render_libart.c:
4143 * lib/font.c: Removed freetype stuff (still around in
4144 lib/widgets.c 'cause we might want the font selector widget).
4146 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
4148 * shapes/network/laptop.(xml|shape):
4149 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
4150 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
4152 2002-06-17 Hans Breuer <hans@breuer.org>
4154 * lib/object_defaults.c : #include <libxml/tree.h> not
4155 <tree.h> pointed out by Xing Wang
4157 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
4159 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
4161 * app/color_area.c: Update to
4162 gtk_color_selection_*_current_color() fixed bad crash issues, plus
4163 updated color conversions.
4165 * sheets/ER/weakentity.xpm: Accepted patch from
4166 quixon@gnuchina.org to make icon match actual appearance.
4168 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
4169 quixon@gnuchina.org.
4171 2002-06-16 Hans Breuer <hans@breuer.org>
4173 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
4174 good tradition of information hiding. Add new function
4175 dia_plugin_get_symbol()
4176 * app/sheets.c app/sheets_dialog_callbacks.c : use it
4178 * app/sheets.c : stop complaining about object_get_type()
4179 returning NULL. This is a consequence of e.g. disabling
4180 plug-ins at runtime _and_ it was and is gracefully handled.
4181 Spitting out g_warning for it isn't appropriate.
4183 * lib/object.[ch] : removed dead code
4185 * app/plugin-mangager.c : almost complete rewrite for gtk2
4186 using GtkListStore/GtkTreeView
4188 * lib/libdia.def : updated externals
4190 * todo.gtk2 : updated, that is removed already done steps
4192 2002-06-15 Hans Breuer <hans@breuer.org>
4194 * objects/uml/class_dialog.c : clean some left-over
4195 utf8-mess, return 0 from "focus_out_event" handlers
4196 to avoid asserting in gtk (#78305). Reconstruct
4197 stereotype/NULL behaviour to avoid rendering empty
4198 stereotypes on classes and member functions
4200 [#56109 - Provide object defaults for StdProp objects,
4201 some remaining issues are discussed in bugzilla]
4203 * lib/object_defaults.c : (new file) manage default properties
4204 of dia objects. The serialization is done with standard
4205 object methods in a diagram compatible format.
4207 * lib/object.c : add object_registry_foreach() which allows
4208 to iterate over all registered object types
4210 * lib/object.h : added prototypes object_default*() and
4211 object_registry_foreach()
4213 * lib/makefile.am lib/makefile.msc : add new file to build
4215 * lib/libdia.def : export new functions
4217 * app/defaults.c : provide StdProp based defaults if the
4218 ObjectType doesn't implement it's own default functions
4220 * app/create_object.c : through dia_object_default_create()
4221 * app/disp_callbacks.c : same here
4223 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
4225 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
4226 sensitivity for deleting segments.
4228 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
4230 * app/color_area.c: (color_area_events):
4231 * app/diagram.c: (diagram_destroy):
4232 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
4234 * app/load_save.c: (diagram_data_load):
4235 * app/menus.c: (menus_get_item_from_path):
4236 * app/preferences.c: (prefs_load):
4237 * app/render_gdk.c: (get_text_width):
4239 * lib/color.c: (color_convert):
4240 * lib/dia_dirs.c: (dia_config_filename):
4241 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
4242 * lib/intl.c: (intl_get_language_list):
4243 * lib/message.c: (message):
4245 * lib/paper.c: (get_default_paper):
4246 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
4247 * lib/widgets.c: (dia_file_selector_get_file):
4249 * objects/standard/image.c: (get_directory):
4253 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
4255 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
4257 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
4259 * app/interface.c: sscanf now returns EOF on empty string, so
4260 handle no match for zoom factor better => correct zoom at start.
4262 * app/sheets.c (create_object_pixmap): Tried to display empty error.
4263 (sheets_optionmenu_create): Died when not finding specified
4264 sheet. Don't think it should.
4266 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
4267 (bug #84367) to place the text better.
4269 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
4271 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
4273 * app/commands.c: Removed unnecessary gnome include. Removed
4274 GNOME-Print support.
4276 * app/menus.h: Removed now unnecessary gnome include.
4278 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
4279 GNOME-specific stock buttons
4281 2002-06-09 Hans Breuer <hans@breuer.org>
4283 * app/app_procs.c : convert 'Modified diagrams exits'
4284 dialog to use GtkMessageDialog. That gives us:
4285 - icons without Gnome dependency
4286 - much less code, also cross platform
4287 - improved useability ?
4289 * app/color_area.c : the Color Selection Widget looked
4290 quite wrong (alpha problems). Fix it by merging in required
4291 changes stolen from The Gimp cvs
4292 * app/color_area.h : to get the right appearance the maskes
4293 needed to be taken into account
4294 * app/interface.c : adapt to color_area_create changes.
4295 Also remove some dead code and finally remove cvs autexpansion,
4296 I was bothered enough by irrelevant differences :-)
4298 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
4299 api, i.e stocks and response to make the GnomeDialog usage
4300 obsolete. Also fixed the issue with closing the 'parent'
4301 before closing the dialog
4303 * app/display.[ch] : removed some dead code and conversion
4304 to new GtkDialog api. Also trying to conform to new HIG
4305 standard http://developer.gnome.org/projects/gup/hig/
4307 2002-06-09 Hans Breuer <hans@breuer.org>
4309 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
4312 * lib/dia_image.c : gtk_widget_set_default_visual()
4313 remove. It does nothing with Gtk2.
4315 * lib/libdia.def : added ps_unicoder exports
4317 * lib/message.c : remove #GNOME use GtkMessageDialog.
4318 Yeah, Dia gets dialogs wit icons cross-platform.
4320 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
4321 to gtk_spin_button_get_value()
4323 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
4325 add #undef GTK_DISABLE_DEPRECATED to still use ...
4326 * lib/prop_text.c : ... GtkText
4327 * lib/prop_widgets.c : ... GtkList
4328 * lib/prop_dialogs.c : ... gtk_signal_connect and more
4329 * lib/widgets.c : ... (too much to list here)
4331 * lib/ps-utf8.c : #include <string.h>
4333 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
4336 * Makefile.am: Adapted for gtk2.
4337 Removed dependencies on libunicode, on iconv(), on langinfo().
4339 * acconfig.h: removed (now obsolete)
4341 * lib/charconv.[ch]: removed (superceded by glib)
4342 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
4344 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
4345 libunicode types for their glib counterparts. Fixed the include
4346 paths for libxml2. Removed all traces of libxml1 or non-UTF8
4347 support (there were remains in objects/uml).
4350 2002-06-08 Hans Breuer <hans@breuer.org>
4352 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
4353 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
4354 Also use g_strdup()'s handling of NULL by returning NULL
4355 again at all places I found (remove unnecessary if's)
4357 * todo.gtk2 : new file to keep notes about gtk2 porting,
4358 further issues and thoughts and some status information.
4359 Also sent to dia-list ('Dia goes Gtk2 ...').
4361 [make it compile with GTK+ 2.0]
4363 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
4364 removed definition of S_ISDIR, S_ISREG and getlogin
4366 * */makefile.msc : Use GTK2 and libxml2
4367 BEWARE: makefile.am, configure.in not yet ported !
4369 * app/app_procs.c app/diagram.c : remove
4370 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
4371 but set use gtk_menu_set_accel_path() on menu creation
4373 * app/color_area.c lib/widgets.c :
4374 make use of gtk_color_selection_set_has_palette ()
4376 * app/commands.c : gdk_pixbuf_new_from_file wants an
4377 extra argument. Convert from DIR to GDir usage.
4379 * app/diagram_tree.c(button_press_callback) : need to return
4380 FALSE in the signal handler to let gtk process it further.
4381 (get_object_name) : don't leak 'prop'
4383 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
4384 dia_page_layout_destroy() getting called more than once
4386 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
4389 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
4391 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
4392 IIRC this code will not compile unchanged when USE_XIM is defined ...
4394 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
4396 * app/interface.c : there is no widget->klass anymore in Gtk,
4397 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
4398 parameter. Some tweaking of GtkWrapBox usage to get four tools in
4400 switch off GTK's double buffering on Dia's canvas. Otherwise we would
4401 get triple buffering and flicker.
4402 Replace call to GTK private function _gtk_accel_group_attach()
4403 with public gtk_window_add_accel_group()
4405 * app/layer_dialog.c : adapt to GtkTypeInfo changes
4407 * app/load_save.c lib/plug-ins.c lib/sheet.c
4408 objects/custom/custom.c :
4409 simplified by using g_file_test()
4411 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
4412 to gtk_accel_map_<save|load>. Also added common stock-icons
4415 * app/preferences.c : use gtk_button_set_label() instead
4416 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
4418 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
4419 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
4422 * app/recent_files.c : removed GLIB_CHECK_VERSION
4425 plug-ins/metapost/render_metapost.c
4426 plug-ins/pstricks/render_pstricks.c
4427 plug-ins/svg/render_svg.c :
4428 replace getlogin() with g_get_user_name() which always
4431 * app/render_gdk.c : gdk_region_union_with_rect() modifies
4432 inplace now and returns nothing, also less #hell
4434 * app/render_libart.c : some initial #hell cleaning, SuckFont
4435 still needs to vanish
4437 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
4438 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
4440 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
4441 * app/sheets_dialog_callbacks.c : some #hell and adaptions
4442 needed to GtkWrapBox api changes
4445 * lib/charconv.[hc] : removed from build
4446 [changed appropriate]
4447 * lib/prop_inttypes.c lib/prop_text.c :
4449 * lib/text.c : ported from HEAD but keep original indent
4450 intact. Original was done by Akira TAGOH.
4452 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
4454 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
4456 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
4457 same on all platforms now!
4459 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
4461 * lib/message.c : remove "charconv.h"
4463 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
4466 * lib/sheet.c : convert from DIR to GDir usage
4468 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
4470 * lib/widgets.h : include gtk<label|colorseldialog>.h
4473 * objects/fs/flow.c :
4474 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
4476 * objects/custom/custom.c : convert from DIR to GDir usage
4479 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
4482 2002-05-03 Hans Breuer <hans@breuer.org>
4484 * lib/dia_xml.c : make the well formed utf8 check
4485 actually work for û (non 7-bit ascii encoding)
4486 and fixed the file re-writing if the check fails.
4487 Thanks to Vitaly Lipatov for noticing the misbehaviour.
4489 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
4490 comment on last ressort font. Thanks to Maxim Sobolev.
4492 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
4494 * sheets/network.sheet.in: corrected a typo in plotter invocation.
4496 2002-06-03 Steffen Macke <sdteffen@web.de>
4498 * shapes/network/digitizing_board.png:
4499 * shapes/network/digitizing_board.shape:
4500 * shapes/network/plotter.png:
4501 * shapes/network/plotter.shape:
4502 * shapes/network/Makefile.am
4503 * sheets/network.sheet.in: added new plotter and digitizing
4506 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
4508 * lib/font.c: made a symptomatic fix to a segfault reported by
4509 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
4510 won't prevent dia from terminating, but should give more
4511 user-friendly information about why did it terminate.
4513 Two patches from <robert.young@dsto.defence.gov.au>:
4515 * app/display.c: fix the size of the canvas area which gets
4516 redrawn. There was an off-by one error (Closes #83659)
4518 * app/display.c: make sure we redraw all screen only when we
4519 really have to (some update_areas were mistakenly ignored) (Closes
4522 * NEWS: added a new entry for the future. Put there a reminder to
4523 update the dependencies.
4525 * configure.in: put in notes about what will change shortly.
4526 upped the version to 0.90+cvs (did also in config.h.win32)
4527 upped the minimum version for intltools (now 0.21)
4529 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
4535 bumped up version number to 0.90. Yay!
4537 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
4539 * doc/pl/Makefile.am:
4540 * doc/en/Makefile.am: fixed a "make install" problem when db2html
4541 is not present (Reported by Andrew Ferrier
4542 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
4543 problem which prevented me from ever seeing the problem in doc/en...
4545 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
4547 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
4548 way to read the font path from the XFS configuration files in
4549 order to enable FreeType (fixes #83098).
4551 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
4558 bumped up version number to 0.90.RC3
4560 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
4562 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
4563 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
4564 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
4565 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
4566 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
4567 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
4568 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
4569 Added Polish documentation.
4571 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
4573 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
4574 format for the UML State object. Now there's a hack to reload
4575 older files, and get them converted on the fly.
4576 Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
4580 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
4581 and adapter the proplist predicates. A LOAD_ONLY property is for
4582 when you have legacy to support but can't resist moving your
4583 fields around... (was needed to support the above state.c fix).
4585 If the in-core of your object changes and you need a LOAD_ONLY
4586 property for the old format, you must keep some spare room in your
4587 object's struct to accomodate for the potential old-style
4588 attributes. Then in foo_load(), after having called
4589 object_load_using_properties(), you must inspect the old-style
4590 fields and act accordingly. Don't ever change the on-disk formats...
4592 * objects/UML/object.c:
4593 * objects/UML/small_package.c: added a check against empty
4594 stereotypes still consuming space. Reported by Dolores Alia de
4595 Saravia <loli@unsa.edu.ar>. Thanks!
4597 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
4599 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
4600 using libtool on an AFS partition.
4602 * po/update_potfiles_in.sh: now simply calls the recent intltools
4603 features; they work better than hand-crafted half-ignorant
4604 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
4607 * po/POTFILES.in: added back two files update_potfiles_in.sh
4608 didn't take into account. Now this file is not automatically
4610 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
4611 (the usual suspects, in fact).
4613 * configure.in: improved the isinf() / isfinite() detection on
4614 Solaris (MÃ¥rten Svantesson)
4616 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
4618 * configure.in: one expression was replacing $CFLAGS, removing
4619 whatever was previously in.
4620 Added more checks for isinf() and finite() on Solaris.
4622 * lib/geometry.h: added a macro defintion for isinf() if not
4623 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
4626 * app/commands.c: "cut" did not set the 'modified' bit (paste has
4627 been for a little while). Fixes #82994.
4629 * Makefile.am: added more stuff to distclean-local. This should make
4630 "make distcheck" pass! Thanks to the author of
4631 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
4632 ... I wonder who this Henstridge guy is ... ;-)
4633 Darn. Still doesn't pass. I give up for tonight.
4635 * po/update_potfiles_in.sh: updated to take care of sheet files,
4636 and to filter out the EML plug-in.
4637 * po/POTFILES.in: updated with all .c and all .sheet.in files
4639 * po/dia.pot, po/*.po: again updated all .po files with all
4640 strings (with the updated POTFILES). Now with the up-to-date
4641 POTFILES, just all languages have some fuzzy or untranslated
4642 strings (not that the 100% team was that large beforehand...)
4644 * po-checktrans: removed the comment about .po files not holding
4645 all translatable stuff, since now they do.
4647 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
4653 bumped up version number to 0.90.RC2
4655 2002-05-20 Hans Breuer <hans@breuer.org>
4657 * app/load_save.c : starting to increase
4658 Dias tolerance on incomplete/broken files. The
4659 corresponding bug is #56233. But the patch there does
4660 neither apply anymore nor does it really fix the problem
4661 but only delays it, e.g. even if it would be allowed
4662 to read a file without any layers, the later code can't
4664 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
4665 handle passing in NULL for the node gracefully.
4667 * shapes/network/printer.shape : added two more connection
4668 points - one at each side - to fix bug #60359
4670 * app/commands.c (edit_copy_callback) :
4671 add ddisplay_do_update_menu_sensitivity() to make
4672 sequence select-copy-paste work.
4674 2002-05-20 Hans Breuer <hans@breuer.org>
4676 * app/create_object.c (create_object_button_press) :
4677 added a call to ddisplay_do_update_menu_sensitivity()
4678 to make Ctrl^D etc work after object creation.
4681 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
4683 * objects/ER/entity.c:
4684 * objects/ER/attribute.c:
4685 * objects/ER/relationship.c: Patch to allow text size change from
4686 Celso Tetsuo Nagase Suzuki.
4688 2002-05-18 Steffen Macke <sdteffen@web.de>
4690 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
4692 * doc/en/graphics/greendots.png:
4693 * doc/en/home_network.png:
4694 * doc/en/line_props.png:
4696 * dia_gnome_icon.png:
4697 * dia_gnome_menu_icon.png:
4699 * shapes/network/telephone.png:
4700 * shapes/Logic/and.png:
4701 * shapes/Logic/buffer.png:
4702 * shapes/Logic/connector.png:
4703 * shapes/Logic/inverter.png:
4704 * shapes/Logic/nand.png:
4705 * shapes/Logic/nor.png:
4706 * shapes/Logic/not.png:
4707 * shapes/Logic/or.png:
4708 * shapes/logic/xor.png:
4709 * samples/ER-demo.dia:
4711 * samples/UML-demo.dia:
4712 * samples/chronograms.dia:
4713 * samples/grafcet.dia: re-added as binary files
4715 2002-05-17 Hans Breuer <hans@breuer.org>
4717 * lib/libdia.def : reflect removing of render_store.[ch]
4719 * */makefile.mingw : remove VERSION definition it's
4720 done in config.h.win32. Dia still doesn't work if
4721 build with mingw ...
4723 * RELEASE-PROCESS : removed */makefile.mingw
4725 * app/sheets_dialog_callbacks.c : if we use those
4726 ugly charconv_gtk_* functions lib/charconv.h needs to
4728 * lib/charconv.h : ... and needs to contain the
4729 necesseray prototypes _and_ #defines
4731 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
4732 is deprecated and does nothing but spit a warning. This broke
4733 the shape format writing. Fixed.
4734 Also with libxml2 pretty formatted xml isn't the default
4735 anymore, but needs to be enabled explicit: It is done now
4736 for shape files, which almost always needed to be edited by
4739 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
4740 from stderr - which is invalid on Dia/win32 - to g_print -
4741 which opens up a console window if necessary. This way
4742 a xml-deprecation-error shouldn't stay unnoticed next time
4744 2002-05-17 Steffen Macke <sdteffen@web.de>
4746 * shapes/Misc/folder.png:
4747 * shapes/Misc/file.png: re-added as binary files
4749 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
4751 * lib/font.c: Fixed segfault for fonts without family_name.
4753 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
4755 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
4757 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
4758 Lars' request, minor cosmetic stuff (mostly _() of human-readable
4759 XML comments in .sheet files; one translator booby-trap disarmed).
4761 * lib/charconv.c: moved #hell inside the body of the new
4762 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
4765 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
4767 * plug-ins/wpg/Makefile.am (INCLUDES):
4768 * plug-ins/shape/Makefile.am (INCLUDES):
4769 * plug-ins/svg/Makefile.am (INCLUDES):
4770 * plug-ins/pstricks/Makefile.am (INCLUDES):
4771 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
4772 and DEBUG_CFLAGS in some missing places.
4774 * MAINTAINERS: New file containing list of known package
4778 * lib/charconv.c: Charconv versions of some common gtk calls.
4780 * app/sheets_dialog_callbacks.c
4781 (on_sheets_new_dialog_button_ok_clicked),
4782 (on_sheets_dialog_button_edit_clicked),
4783 (on_sheets_dialog_button_remove_clicked),
4784 (on_sheets_edit_dialog_button_ok_clicked):
4785 * app/sheets.c (sheets_optionmenu_create),
4786 (sheets_optionmenu_create): Added utf8 translations.
4788 * app/sheets_dialog.c:
4790 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
4792 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
4794 * po/POTFILES.in: added app/sheets_dialog.c
4796 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
4798 * lib/charconv.c: (charconv_local8_to_utf8),
4799 (charconv_utf8_to_local8): tweaked the warnings to get more
4801 * lib/font.c: (font_get_suckfont): handled a potential case of
4802 uninitialised data being used (just paranoid)
4804 * objects/GRAFCET/boolequation.c: (opstring),
4805 (opblock_get_boundingbox), (opblock_draw),
4806 (boolequation_calc_boundingbox): some extra hoops needed now dia
4807 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
4808 symbols can't yet be used with their proper Unicode cells, since
4809 gtk will demand them in the Symbol font, expressed in the local
4812 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
4813 the fix just above).
4815 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
4817 * app/diagram_tree.c (get_object_name): Check that name property
4818 doesn't have null string.
4820 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
4822 * autogen.sh (DIE): Added conditional --force to gettextize.
4824 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
4827 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
4829 * RELEASE-PROCESS: added James' notes on how to properly make the
4832 * configure.in: removed macro nesting related to libpng.h, which
4833 was causing some problems on some systems (like mine, which made
4836 Made --enable-unicode, previously an option, the mandatory case.
4838 * app/Makefile.am: updated EXTRA_DIST
4841 * app/makefile.mingw:
4843 * doc/en/dia-manual.sgml:
4844 * plug-ins/makefile.mingw:
4845 * configure.in: bumped up the version number to 0.90.RC1
4847 * lib/render_objects.[ch]:
4848 * po/POTFILES.in: removed render_objects from the build.
4850 * plug-ins/Makefile.am:
4851 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
4852 so we keep its source in the tarball.
4854 * objects/network/*.c, Makefile.am:
4855 * objects/sybase/*.c, Makefile.am:
4856 * po/POTFILES.in: cleaned up the non-existent files from the po
4859 * plug-ins/Makefile.am: re-enabled metapost plug-in.
4861 2002-05-13 Steffen Macke <sdteffen@web.de>
4864 * app/command.c: added M. C. Nelson to the Authors
4865 * sheets/Circuit/Makefile.am: added firewall shape to build
4866 * sheets/network/Makefile.am: added telephone and microphone
4869 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
4871 * RELEASE-PROCESS: Added list of files that contain the release
4872 number or should otherwise be changed at each release.
4874 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
4876 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
4877 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
4879 2002-05-12 Hans Breuer <hans@breuer.org>
4881 * config.h.win32 : changed VERSION to 0.90.RC1
4883 * app/makefile.msc lib/makefile.msc : use renamed
4884 gdk-pixbuf version (same content but renamed because
4885 all the other gtk+ dlls are renamed) to avoid trouble
4886 mixing gtk versions (of which one would not
4889 * app/app_procs.c : removed recently unneeded
4890 inclusion of "sheets.h"
4892 * app/render_gdk.c : removed my own debug spew
4893 which should never made it to cvs
4895 * lib/render_object.[hc] : added
4896 #error "File not used anymore."
4898 * lib/libdia.def : updated externals
4900 * app/interface.c : dropped filenames need to be
4901 converted from uri with Gtk+2.0
4903 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
4905 * RELEASE-PROCESS (new): a draft document about how to release. To
4906 be discussed. (already with some input from Hans Breuer)
4908 2002-05-12 Steffen Macke <sdteffen@web.de>
4910 * sheets/Makefile.am: re-added Misc sheet to make process
4912 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
4914 * objects/FS/function.c: Added comments to humungous list of menu
4915 items, to aid translators.
4917 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
4919 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
4921 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
4923 * app/interface.c (create_toolbox): Disallow shrinking beyond
4924 requested size. Fixes bug #59439, and confirms to GTK guidelines
4925 (see gtk_window_set_policy).
4926 (create_sheets): Removed now unnecessary set_usize call.
4928 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
4930 * lib/beziershape.c (remove_handles): Fixing removal of last
4931 segment. Undo of removal still hokey.
4933 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
4935 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
4937 * lib/beziershape.c (beziershape_init): Removed early call to
4938 beziershape_update_data where points aren't set yet.
4939 (beziershape_add_segment): Use segment 0 instead of overflowing
4940 points array with segment+1.
4941 (beziershape_remove_segment): Proper offset for fixing
4943 (remove_handles): Proper offset.
4945 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
4947 * objects/GRAFCET/action.c (action_update_data): Init x value of
4948 click point for call to connpointlist_adjust_count.
4950 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
4952 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
4953 setting to where values are inited.
4955 * lib/polyshape.c (polyshape_init): Removed call to
4956 polyshape_update_data that tried to use uninitialized data.
4958 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
4960 * app/sheets_dialog.c: Mass removal of //-style comments. The
4961 Irix compiler doesn't like them:( I do...
4963 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
4965 * app/render_libart.c (draw_string): Bail out when no GDK font is
4967 (set_font): Give error when font not found.
4968 (set_fillstyle): Intlized error msg.
4970 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
4971 modified when applied (and ok only does apply if apply is set
4972 sensitive). Fixes bug #75623.
4974 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
4976 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
4978 2002-05-05 Steffen Macke <sdteffen@web.de>
4980 * app/Makefile.am: added $(UNICODE_CFLAGS)
4982 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
4984 * app/commands.c (help_manual_callback): Check return value of
4987 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
4989 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
4992 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
4994 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
4996 * objects/UML/uml.c (uml_operation_read): Fix of UML default
4999 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5001 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
5002 Added button to toggle diagram compression.
5004 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5006 * lib/font.c: Support for loading extra kerning files, plus got
5007 rid of rounding errors. Bounding box mostly perfect for freetype
5009 (font_string_width): Fudge factor to get around nonlinearity of
5012 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
5014 * lib/font.c (font_string_width): YA font calculation scheme, with
5017 * objects/UML/class.c (umlclass_calculate_data): Uses the same
5018 font for drawing and calculating now.
5020 * configure.in: Added utime.h check.
5022 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
5023 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
5025 2002-04-26 Hans Breuer <hans@breuer.org>
5027 [ Instead of fixing about 70 occurances in 20 files
5028 where GTK_TALKS_UTF8_WE_DONT needed to be handled
5029 Dia on win32 from now on uses glib-2.0 and not
5030 only talks utf-8 with gtk-1.3 but also internally.
5031 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
5034 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
5035 #undef GTK_TALKS_UTF8_WE_DONT
5037 * */makefile.msc : changes to use glib-2.0 (still
5038 using gtk+1.3(win32-production)
5040 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
5041 adapt kevent->string handling, add <string.h>
5042 * app/render_gdk.c (get_text_width) : the length given
5043 is in chars, gdk_text_width() needs bytes
5045 * app/render_libart.c :
5046 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
5047 (could simplify the same way as done in render_gdk.c)
5049 * app/diagram_tree.c app/paginate_gdiprint.cpp
5051 * lib/prop_basic.c lib/prop_geomtypes.c
5052 lib/propdialgs.c lib/propobject.c :
5053 added <string.h> which is now removed from charconv.h
5055 * lib/charconv.h : optional use infrastructure from
5056 glib-2.0 -> only five direct function mapping left
5058 * lib/charconv.c : avoid to build this with glib-2.0
5060 * lib/font.c : no string conversion needed anymore
5061 when Dia and Gtk talk utf-8, also code adaptions
5062 for GLIB_CHECK_VERSION(2,0,0)
5064 * lib/libdia.def : removed charconv functions
5066 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
5067 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
5069 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
5070 removed GTK_TALKS_UTF8_WE_DONT
5072 * lib/text.c : finally(?) fixed cursor <place|move>ment
5073 for Umlauts. Also fixed char insertion, still wondering
5074 how this could ever work. Does realloc on Linux
5075 initialize the memory with zeros ?
5077 * objects/chronogram/chronoline_event.c
5078 objects/grafcet/boolequation.c :
5079 there is no uni_get_utf8 when building for glib-2.0.
5080 Replace with g_utf8_get_char() and g_utf8_next_char().
5082 * objects/uml/stereotype.c (bracketted_to_string) :
5083 simplify while adding code for glib-2.0 build
5085 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
5087 * app/diagram.h: Autosave field
5088 * app/diagram.c (diagram_set_modified): Sets autosave field.
5090 * objects/UML/usecase.c (usecase_update_data):
5091 * objects/flowchart/ellipse.c (ellipse_update_data):
5092 * objects/flowchart/parallelogram.c (pgram_update_data):
5093 * objects/flowchart/diamond.c (diamond_update_data):
5094 * objects/custom/custom_object.c (custom_update_data):
5095 * objects/UML/state.c (state_update_data):
5096 * objects/UML/small_package.c (smallpackage_update_data):
5097 * objects/UML/object.c (objet_update_data):
5098 * objects/UML/note.c (note_update_data):
5099 * objects/UML/node.c (node_update_data):
5100 * objects/UML/component.c (component_update_data):
5101 * objects/UML/classicon.c (classicon_update_data):
5102 * objects/UML/actor.c (actor_update_data):
5103 * objects/SADT/box.c (sadtbox_update_data):
5104 * objects/FS/function.c (function_update_data):
5105 All now update text boundaries from update_data.
5107 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
5110 2002-04-26 Hans Breuer <hans@breuer.org>
5112 * config.h.win32 : added VERSION definition here
5113 (and removed from makefile.msc's)
5115 * app/makefile.msc : added new files
5117 * app/app_procs.c (app_init): remove sheets_dialog_create()
5118 from start-up and ...
5120 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
5121 sheet_dialog here when it is really needed.
5122 #include "../lib/message.h", make sheets_dialog_create()
5123 return it's success or failing on (!custom_type_symbol).
5124 Although editing shapes is nice IMHO it isn't crucial enough
5125 to abort() Dia if it isn't possible.
5127 * app/sheet.h : adapt create_sheet_dialog() prototype
5129 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
5131 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
5132 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
5133 name space corrections for utime() and utim_buf #ifdef
5136 * lib/libdia.def : export new sheet functions
5138 * lib/makefile.msc : added new files
5140 * lib/render.c : don't put draw_bezier_with_arrows() in
5141 the DrawLineWithArrowsFunc slot
5143 * objects/custom/custom_object.c : #include <gmodule.h>
5144 and export 'custom_type' via G_MODULE_EXPORT
5146 * objects/uml/class_dialog.c : removed 'incompatible
5147 types' warnings. Some refactoring while making it fit
5148 on screen with 800x600 again.
5150 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
5152 * plug-ins/python/pydia-handle.h : extra parameter to
5153 PyDiaHandle_New to store the owner of the handle
5154 * plug-ins/python/pydia-handle.c : store handle owner
5155 on construction and use it in new method .connect()
5156 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
5157 adapt to changed prototype
5159 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
5161 * lib/text.c (text_calc_boundingbox): Will now return early if box
5164 * objects/flowchart/box.c (box_update_data): Now updates text
5165 width info from update_data.
5167 2002-04-23 Steffen Macke <sdteffen@web.de>
5169 * plug-ins/xfig/xfig-import.c: fixed text import
5171 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
5173 * app/export_png.c: Moved dialog functions to their own file.
5174 * app/dialogs.[ch]: New files with standard functions for creating
5175 small, transient dialogs (e.g. export options).
5176 * app/Makefile.am: Added dialogs.[ch]
5178 2002-04-19 Steffen Macke <sdteffen@web.de>
5180 * shapes/Misc/folder.*:
5181 * shapes/Misc/file.*:
5182 * shapes/Misc/Makefile.am:
5183 * shapes/Makefile.am:
5184 * sheets/Misc.sheet.in:
5185 * sheets/Makefile.am:
5186 * configure.in: added new Misc sheet containing filesystem shapes
5188 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
5190 * app/lineprops_area.c: Arrow selector in toolbox changed to use
5191 standard arrowdraw code. Line is thinner to make some arrowheads
5194 2002-04-18 Steffen Macke <sdteffen@web.de>
5196 * sheets/network.sheet.in:
5197 * shapes/network/telephone.shape:
5198 * shapes/network/Makefile.am: added telephone shape
5200 2002-04-16 Steffen Macke <sdteffen@web.de>
5202 * sheets/EML.sheet.in: commented out unavailable shapes
5204 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
5206 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
5207 variable assignment.
5209 2002-04-15 Steffen Macke <sdteffen@web.de>
5211 * plug-ins/dxf/dxf-import.c: text import works again
5212 * shapes/Pneumatic/Makefile.am: added compush shape
5213 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
5216 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
5218 * All these modifications are for the 'Sheets and Objects' dialog
5221 * app/pixmaps/line_break.xpm: new icon representing a line break.
5223 * app/pixmaps/n_a.xpm: new empty icon representing not available.
5225 * app/Makefile.am: added sheets_*.[ch] files to compile list.
5227 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
5229 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
5231 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
5233 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
5235 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
5237 * app/sheets_dialog_callbacks.h: [new file] support for " " "
5239 * app/interface.c: added 'interface_current_sheet_name' global to
5240 fill_sheet_wbox(); made fill_sheet_menu() non-static
5242 * app/interface.h: added extern declaration for aboves.
5244 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
5246 * app/sheets.h: [new file] declarations for backing store structures
5248 * lib/sheet.c: modification of new_sheet() parameters; introduction
5249 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
5250 changes to load_register_sheet().
5252 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
5253 added 'has_icon_on_sheet' flag to SheetObject structure; added
5254 'filename', 'scope', 'shadowing' fields to Sheet structure.
5256 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
5259 * lib/plug-isn.h: see above.
5261 * lib/object.c: added 'sheet.h' to include list; added several
5263 to detect objects which are not found on any sheet (for future use)
5264 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
5265 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
5267 * lib/object.h: added public declarations for above functions where
5270 * objects/custom/custom.c: made custom_object_load() non-static so we
5271 can load and interpret .shape files from the Sheets & Objects dialog
5273 * objects/custom/custom_object.c: made 'custom_type' non-static so
5274 we can differentiate between SVG shapes and other types.a
5276 2002-04-07 Hans Breuer <hans@breuer.org>
5278 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
5279 from 2002-01-22 to not destroy diagram->data->selected.
5280 Avoids to crash on Objects/Align/Vertical/Top
5282 * app/render_eps.c (draw_string) : un-const buffer
5283 It isn't at all const (g_malloc(), assignment, g_free()).
5284 Doesn't gcc catch such ?
5286 * lib/arrows.h : prototype calculate_arrow_point()
5288 * lib/font.c (font_get_suckfont) : no need to
5289 special case gdk_draw_string() with GTK_TALKS_UTF8,
5290 cause all the parameter differences are handled above
5292 * lib/libdia.def : updated externals
5294 * lib/makefile.msc : removed string_prerenderer, added render
5296 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
5297 is expected. [Sometimes it's good to read compiler warnings.]
5299 * objects/standard/image.c : simplified by use of g_strconcat()
5301 * plug-ins/python/makefile.msc : updated for Python 2.2
5303 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
5305 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
5306 directionality problem for zero-length line segments.
5308 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
5310 * app/diagram.c (diagram_ungroup_selected)
5311 (diagram_update_menu_sensitivity): Now allows ungrouping of
5312 several groups at once.
5314 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
5316 * lib/render.c, all renderers: Binary incompatibility, change to
5317 expandable renderops structure.
5319 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
5321 * objects/standard/Makefile.am:
5322 * objects/network/Makefile.am:
5323 * objects/UML/Makefile.am:
5324 * objects/ER/Makefile.am:
5325 * objects/FS/Makefile.am:
5326 * objects/flowchart/Makefile.am:
5327 * objects/custom/Makefile.am:
5328 * objects/GRAFCET/Makefile.am:
5329 * objects/chronogram/Makefile.am:
5330 * objects/SADT/Makefile.am:
5331 * plug-ins/cgm/Makefile.am:
5332 * plug-ins/pstricks/Makefile.am:
5333 * plug-ins/hpgl/Makefile.am:
5334 * plug-ins/wpg/Makefile.am:
5335 * plug-ins/svg/Makefile.am:
5336 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
5338 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
5340 * app/render_eps.c: Support for dumping TrueType fonts (taken from
5343 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
5345 * lib/render.c: New abstract super class for renderers.
5347 2002-03-07 Akira TAGOH <tagoh@redhat.com>
5349 * objects/ER/attribute.c (attribute_save): save a font property.
5350 (attribute_load): load a font property, and if can't load it, it's
5353 * objects/ER/entity.c (entity_save): save a font property.
5354 (entity_load): load a font property, and if can't load it, it's
5357 * objects/ER/relationship.c (relationship_save): save a font property.
5358 (relationship_load): load a font property, and if can't load it, it's
5361 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
5363 (umlclass_save): save the font and the font size properties.
5364 (umlclass_load): load the font and the font size properties.
5366 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
5368 * lib/string_prerenderer.[ch] (REMOVED):
5370 * lib/diagramdata.c:
5372 * app/render_eps.c: got rid of the string-specific string
5373 prerenderer, transitioned its functionality towards Lars'
5376 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
5378 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
5379 may need to rerun aclocal.
5381 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
5383 * lib/font.c: First attempt at Unicodeness for Freetype.
5385 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5387 * lib/font.c (font_string_width): Fixed font_string_width for
5388 freetype. BB is now almost right.
5390 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
5393 * app/paginate_psprint.c (paginate_psprint):
5395 * app/render_eps.c: Support for dumping postscript fonts into
5396 postscript files with freetype. Fairly primitive, but works.
5397 Unicode version may have problems.
5399 2002-02-28 Akira TAGOH <tagoh@redhat.com>
5401 * objects/UML/class_dialog.c (class_read_from_dialog)
5402 (class_fill_in_dialog), (class_create_page): add the font selector and
5403 the font size selector.
5405 * objects/UML/class.c (umlclass_draw): uses each font_height.
5406 (umlclass_calculate_data): ditto.
5407 (fill_in_fontdata): add initial value of new font_height.
5408 (umlclass_copy): add new font_height.
5410 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
5412 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
5414 * lib/font.c: calculate font metrics properly and stop guessing at
5417 2002-02-28 Akira TAGOH <tagoh@redhat.com>
5419 * configure.in: changed gtk_advancement value to dia_talks_utf8.
5420 right now Dia is working with UTF-8 internally. it means Dia probably
5421 support most languages also including the languages which heretofore
5422 didn't work correctly.
5424 2002-02-26 Akira TAGOH <tagoh@redhat.com>
5426 * objects/FS/function.c: add related text properties.
5427 (function_get_props), (function_set_props): add handling attribute.
5429 * objects/FS/flow.c: add related text properties.
5430 (flow_get_props), (flow_set_props): add handling attribute.
5432 * objects/FS/flow-ortho.c: add related text properties.
5433 (orthflow_set_props), (orthflow_get_props): add handling attribute.
5435 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
5437 * objects/ER/entity.c: ditto.
5439 * objects/ER/attribute.c: ditto.
5441 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
5443 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
5445 * autogen.sh: add a check for missing intltoolize.
5447 2002-02-20 Akira TAGOH <tagoh@redhat.com>
5449 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
5450 charcode, it was registered the duplicate item to HashTable. fix.
5452 * app/render_gnomeprint.c (get_width_string): add new function.
5453 (draw_string): fix non-multibyte specific code.
5455 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
5457 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
5459 * lib/font.c: do not try to search paths that do not begin with
5460 '/', like X Font Server addresses.
5462 * objects/UML/message.c (message_draw): free mname when not
5463 message->text but CREATE or DESTROY.
5465 * objects/UML/uml.h:
5466 * objects/UML/uml.c:
5467 * objects/UML/class_dialog.c: added code to handle a stereotype
5468 attribute for operations.
5470 2002-02-19 Akira TAGOH <tagoh@redhat.com>
5472 * lib/Makefile.am: add LIBART_CFLAGS.
5474 2002-02-15 Hans Breuer <hans@breuer.org>
5476 * lib/font.c (font_get_suck_font): the black and white pixel values
5477 need to be taken from a 1 bit colormap rather than the default colormap.
5478 (fixed again, last time was 2000-05-26)
5480 Also handle the case where GTK_TALKS_UTF8 and expects all strings
5481 passed in to be in this encoding.
5483 * lib/libdia.def : export suck_font_free()
5485 * lib/text.c (text_draw) : avoid circular dependency to ../app
5486 at least for the !USE_XIM case, where it is unnecessary.
5488 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
5490 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
5492 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
5493 * sheets/Circuit.sheet.in: added new shape microphone
5494 * shapes/Circuit/speaker_de.shape: Added a connection point.
5496 2002-02-13 Akira TAGOH <tagoh@redhat.com>
5498 * app/render_libart.c (draw_string): fixed build issue for Win32.
5500 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
5503 * configure.in: fixed testing gtk_advancement.
5505 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
5507 2002-02-12 Akira TAGOH <tagoh@redhat.com>
5509 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
5512 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
5514 * app/group.c (group_copy): Made new object properly initialized
5517 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
5519 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
5521 2002-02-10 Akira TAGOH <tagoh@redhat.com>
5523 * lib/text.c (text_draw): fixed XIM transaction.
5525 * app/interface.c (create_display_shell): add signal for
5528 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
5530 (set_input_dialog): remove.
5531 (ddisplay_canvas_events): remove XIM transaction. it can't transact
5532 correctly on this function.
5534 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5537 * app/export_png.c: Added checks for interactivity (maybe this
5538 should be a hook after all?).
5540 * app/filedlg.c (file_export_callback): Made export dialog add
5541 suffix when reopened.
5543 * app/export_png.c: Added dialog asking for export size.
5545 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5547 * lib/widgets.c: Fixed font reselection problem and first font
5550 * objects/UML/actor.c (actor_update_data): Changed to have
5551 connection points below text.
5553 2002-02-08 Akira TAGOH <tagoh@redhat.com>
5555 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
5558 2002-02-07 Akira TAGOH <tagoh@redhat.com>
5560 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
5561 strings which is given.
5562 (suck_font): remove. it's any longer needed.
5564 * app/render_libart.c (set_font): don't get suckfont.
5565 (draw_string): get suckfont only which is needed for now.
5567 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5569 * lib/text.c: Fixes for misunderstood width functions.
5571 2002-02-05 Hans Breuer <hans@breuer.org>
5573 * lib/dia_xml.c : use g_strconcat() instead of
5574 malloc, strcpy, strcat dance
5575 * app/properties.c : same here and plug memory leak
5576 (gtk functions don't eat strings)
5578 * objects/UML/message.c : there is no g_sprintf()
5579 use g_strdup_printf() instead ...
5581 2002-02-05 Akira TAGOH <tagoh@redhat.com>
5583 * lib/message.c (gtk_message_internal): doesn't need to convert to
5586 * app/render_libart.c (draw_string): fixed transaction for UTF-8
5588 (get_text_width): ditto.
5590 * app/Makefile.am (EXTRA_DIST):
5591 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
5593 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
5594 This function needs ifdef HAVE_FREETYPE because don't use it for
5597 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
5599 * NEWS: updated with the new dependencies.
5601 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
5603 * objects/UML/class.h:
5604 * objects/UML/class.c:
5605 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
5606 property using a GtkMenu. Options are Undefined, In, Out, In & Out
5608 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
5610 * app/render_libart.c: Slow but working libart freetype renderer,
5613 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5615 * app/render_gdk.c (draw_string): Fixed gc_function bug.
5617 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
5619 * lib/font.c (freetype_render_string):
5622 * app/render_gdk.h: Changed freetype_render_string to use
5623 callback. Rendering is broken.
5625 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
5627 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
5629 * objects/UML/uml.h:
5630 * objects/UML/uml.c: added UMLInheritanceType and isQuery
5631 (constant) UML Operation attributes. UMLInheritanceType is either
5632 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
5634 * objects/UML/class.h:
5635 * objects/UML/class.c:
5636 * objetcs/UML/class_dialog.c: added code to handle new
5637 UMLOperation attributes via a GtkMenu and a checkbox.
5639 2002-02-03 Akira TAGOH <tagoh@redhat.com>
5641 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
5642 several client doesn't work with previous codes.
5644 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
5646 * lib/font.c (freetype_render_string): Kerning. Very few fonts
5649 2002-02-02 Akira TAGOH <tagoh@redhat.com>
5651 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
5652 when doing the operation like invert the objects after active view is
5653 destroyed. when changes focus, it needs to set active_display.
5655 * app/layer_dialog.c (dia_layer_update_from_layer):
5656 (layer_dialog_edit_layer): need to convert to locale encoding
5657 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
5658 (edit_layer_ok_callback):
5659 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
5661 * lib/diagramdata.c (new_diagram_data): ditto.
5663 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
5665 * lib/diagramdata.c (new_layer): use utfchar instead of char for
5668 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
5669 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
5670 it's needed for now. also this function needs prototype declaration.
5672 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
5674 * lib/widgets.c: Style now functional on font selector. Some leak
5675 possible, but doesn't show up under stress test.
5677 2002-01-31 Akira TAGOH <tagoh@redhat.com>
5679 * app/plugin-manager.c (clist_select_row): name and description needs to
5680 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
5681 (get_plugin_manager): ditto.
5683 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
5685 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
5688 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
5689 when prop->string_data is NULL.
5691 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5694 * lib/widgets.h: New font selector separating font and style.
5695 Style not functional yet.
5697 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
5700 * app/render_gdk.c (draw_string): More freetype support, now
5701 renders text. Still broken is font selection and exporting.
5703 2002-01-30 Akira TAGOH <tagoh@redhat.com>
5705 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
5708 * objects/chronogram/chronoline.c (chronoline_create): ditto.
5710 * objects/UML/usecase.c (usecase_create): ditto.
5712 * objects/UML/state.c (state_create): ditto.
5714 * objects/UML/object.c (objet_create): ditto.
5716 * objects/UML/node.c (node_create): ditto.
5718 * objects/UML/message.c (message_create): ditto.
5720 * objects/UML/component.c (component_create): ditto.
5722 * objects/UML/classicon.c (classicon_create): ditto.
5724 * objects/UML/actor.c (actor_create): ditto.
5726 * objects/SADT/box.c (sadtbox_create): ditto.
5728 * objects/SADT/annotation.c (annotation_create): ditto.
5730 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
5732 * objects/GRAFCET/step.c (STEP_FONT):
5733 * (step_create): ditto.
5735 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
5737 * objects/GRAFCET/action.c (ACTION_FONT):
5738 (action_create): ditto.
5740 * objects/FS/function.c (function_create): ditto.
5742 * objects/FS/flow.c (flow_create):
5744 (flow_apply_defaults): ditto.
5746 * objects/FS/flow-poly.c (flow_create):
5748 (flow_apply_defaults): ditto.
5750 * objects/FS/flow-ortho.c (orthflow_create):
5752 (orthflow_apply_defaults): ditto.
5754 * objects/ER/relationship.c: use utfchar instead of char for structure.
5755 (relationship_create): name needs to convert to UTF-8.
5757 * objects/ER/attribute.c: use utfchar instead of char for structure.
5758 (attribute_create): name needs to convert to UTF-8.
5760 * objects/ER/entity.c: use utfchar instead of char for structure.
5761 (entity_create): name needs to convert to UTF-8.
5763 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
5764 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
5765 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
5766 items. if GTK_TALKS_UTF8 isn't defined.
5768 2002-01-29 Akira TAGOH <tagoh@redhat.com>
5770 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
5771 it was my careless mistake...
5773 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
5774 a font name, because there are strings which isn't shown by "Courier".
5775 We need to consider a way to feel free to choose a font at runtime.
5777 * lib/render_object.c (render_object_load): ditto.
5779 * lib/text.c (data_text): ditto.
5781 * objects/EML/instantiation.c (instantiation_create): ditto.
5783 * objects/EML/interaction-ortho.c (interaction_ortho_create):
5784 (interaction_ortho_load): ditto.
5786 * objects/EML/interaction.c (interaction_create):
5787 (interaction_load): ditto.
5789 * objects/EML/process.c (fill_in_fontdata): ditto.
5791 * objects/ER/attribute.c (attribute_create):
5792 (attribute_load): ditto.
5794 * objects/ER/entity.c (entity_create):
5795 (entity_load): ditto.
5797 * objects/ER/relationship.c (relationship_create):
5798 (relationship_load): ditto.
5800 * objects/UML/association.c (association_create):
5801 (association_load): ditto.
5803 * objects/UML/class.c (fill_in_fontdata): ditto.
5805 * objects/UML/constraint.c (constraint_create): ditto.
5807 * objects/UML/dependency.c (dependency_create): ditto.
5809 * objects/UML/generalization.c (generalization_create): ditto.
5811 * objects/UML/implements.c (implements_create): ditto.
5813 * objects/UML/large_package.c (largepackage_create): ditto.
5815 * objects/UML/note.c (note_create): ditto.
5817 * objects/UML/realizes.c (realizes_create): ditto.
5819 * objects/UML/small_package.c (smallpackage_create): ditto.
5821 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
5823 * objects/custom/custom_object.c (custom_create): ditto.
5825 * objects/network/antenna.c (render_to_store): ditto.
5827 * objects/network/computer.c (render_to_store): ditto.
5829 * objects/network/disc.c (render_to_store): ditto.
5831 * objects/network/flash.c (render_to_store): ditto.
5833 * objects/network/hub.c (render_to_store): ditto.
5835 * objects/network/modem.c (render_to_store): ditto.
5837 * objects/network/modularswitch.c (render_to_store): ditto.
5839 * objects/network/monitor.c (render_to_store): ditto.
5841 * objects/network/printer.c (render_to_store): ditto.
5843 * objects/network/rj45plug.c (render_to_store): ditto.
5845 * objects/network/scead-plug.c (render_to_store): ditto.
5847 * objects/standard/textobj.c (textobj_load): ditto.
5849 * objects/sybase/client.c (render_to_store): ditto.
5851 * objects/sybase/dataserver.c (render_to_store): ditto.
5853 * objects/sybase/ltm.c (render_to_store): ditto.
5855 * objects/sybase/repserver.c (render_to_store): ditto.
5857 * objects/sybase/rsm.c (render_to_store): ditto.
5859 * objects/sybase/stableq.c (render_to_store): ditto.
5861 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
5863 * objects/UML/uml.h (UML_STEREOTYPE_START):
5864 (UML_STEREOTYPE_END): changes default strings.
5866 2002-01-28 Akira TAGOH <tagoh@redhat.com>
5868 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
5869 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
5870 which is given to arguments isn't UTF-8. so don't need to convert it.
5871 if GTK+ handle UTF-8, also don't need to convert it.
5873 (bracketted_to_string): fixed transaction for UTF-8 support.
5874 also start/end bracket is not necessarily 1 character. so that when use
5875 strend(), it doesn't work correctly.
5876 (string_to_stereotype): use utfchar instead of char.
5877 (remove_stereotype_from_string): ditto.
5878 (stereotype_to_string): ditto.
5880 * objects/UML/stereotype.h: ditto.
5882 * objects/UML/message.c: use utfchar instead of char for structure.
5883 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
5885 * objects/UML/small_package.c: use utfchar instead of char for structure.
5887 * objects/UML/realizes.c: ditto.
5889 * objects/UML/object.c: ditto.
5891 * objects/UML/large_package.c: ditto.
5893 * objects/UML/implements.c: ditto.
5895 * objects/UML/generalization.c: ditto.
5897 * objects/UML/dependency.c: ditto.
5899 * objects/UML/constraint.c: ditto.
5901 * objects/UML/component.c: ditto.
5903 * objects/UML/class_dialog.c (attributes_get_current_values):
5904 (attributes_list_new_callback, attributes_fill_in_dialog):
5905 (parameters_set_values, parameters_get_values):
5906 (parameters_get_current_values, parameters_list_new_callback):
5907 (operations_set_values, operations_get_values):
5908 (operations_get_current_values, operations_list_new_callback):
5909 (operations_fill_in_dialog, templates_set_values):
5910 (templates_get_values, templates_get_current_values):
5911 (templates_list_new_callback, templates_fill_in_dialog):
5912 fixed transaction for UTF-8 support.
5914 2002-01-27 Akira TAGOH <tagoh@redhat.com>
5916 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
5918 * objects/UML/class_dialog.c (class_read_from_dialog):
5919 (class_fill_in_dialog):
5920 (attributes_get_values): ditto.
5922 * objects/UML/actor.c (actor_create): ditto.
5924 * objects/UML/class.c (umlclass_calculate_data): ditto.
5926 * objects/UML/association.c (association_apply_properties):
5927 (fill_in_dialog): ditto.
5929 * objects/UML/uml.c (uml_get_attribute_string):
5930 (uml_get_operation_string):
5931 (uml_get_parameter_string):
5932 (uml_get_formalparameter_string): use utfchar instead of char.
5934 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
5937 * objects/UML/class.h: use utfchar instead of char.
5939 * lib/dia_xml.c (data_add_string): ditto.
5941 * lib/text.c (text_insert_char): fixed characters# calculation
5942 when includes multibytes character in strings.
5944 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
5946 Patch from Richard Rowell <rwrowell@bellsouth.net>:
5948 * app/lineprops_area.c:
5951 * lib/widgets.c: added crow foot arrow and cross arrow
5953 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
5955 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
5957 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
5959 * po/update.pl (REMOVED):
5960 * po/update.sh (REMOVED):
5961 * xml-i18n-merge.in.kg (REMOVED):
5962 * xml-i18n-update.in.kg (REMOVED):
5963 * sheets/Makefile.am:
5966 * configure.in: converted from xml-i18n-tools to intltools
5968 This looks like it fixes the build bugs of the snapshot tarballs,
5969 and it supersedes #69611.
5971 2002-01-25 Akira TAGOH <tagoh@redhat.com>
5973 * lib/text.c (text_insert_char): fixed characters# calculation.
5974 it's not string length.
5976 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
5977 is defined, needs to convert a description to UTF-8.
5979 * app/render_gdk.c (get_text_width): fixed transaction for
5980 UTF-8 support. also should uses gdk_text_width_wc() instead
5981 of gdk_text_width().
5983 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
5984 is defined, needs to convert to locale encoding for display.
5985 Also use utfchar instead of char for argument.
5987 2002-01-24 Hans Breuer <hans@breuer.org>
5989 * app/commands.c(edit_paste_callback and more) :
5990 call diagram_modified(ddisp->diagram) to fix #68083
5991 (help_menu_callback) : plug a DIR leak
5993 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
5994 GTK_TALKS_UTF8_WE_DONT
5996 * app/render_gdk.c(get_text_with) : it's a bad idea to use
5997 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
5998 gdk_text_width(). The length value is still questionable ...
6000 * lib/charconv.c : use functions already available in early
6001 GLIB-1.3 days whiches API hasn't changed since, to avoid
6002 version problems with the win32 build
6004 * lib/font.c : finally fix #58045 and #68208
6006 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
6008 2002-01-24 Akira TAGOH <tagoh@redhat.com>
6010 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
6011 no strings, fixed transaction.
6013 * lib/charconv.h: fixed typo.
6015 * app/menus.c: fixed typo.
6017 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
6019 * objects/UML/object.c: attrib's type uses utfchar instead of char.
6021 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
6023 * lib/text.c (text_create_change): use unichar instead of char.
6025 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
6026 use utfchar instead of char.
6028 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
6031 * lib/charconv.c (charconv_utf8_get_char): add new function.
6033 2002-01-23 Akira TAGOH <tagoh@redhat.com>
6035 * lib/text.c (text_delete_forward, text_delete_backward,
6036 text_split_line): fixed transaction for UTF-8 support.
6038 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
6039 strlen[] has string length for UTF-8, so has to use alloclen[].
6043 * .cvsignore: add dia.pot.
6045 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
6047 * configure.in: Added "sk" to ALL_LINGUAS.
6049 2002-01-22 Akira TAGOH <tagoh@redhat.com>
6051 * lib/text.c (text_set_string, new_text, text_copy,
6052 text_get_string_copy, text_join_lines): use utfchar instead of gchar
6055 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
6058 * lib/charconv.c (charconv_utf8_strchr): add new function.
6060 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
6062 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
6064 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
6065 strings to the appropriate encoding.
6067 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
6069 * app/object_ops.c (object_list_align_[hv]): Leak fix.
6071 * lib/Makefile.am (INCLUDES): Added debug flags.
6073 * app/object_ops.c: Fixed ordering problem of align equi-distant &
6076 2002-01-21 Akira TAGOH <tagoh@redhat.com>
6078 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
6081 * objects/GRAFCET/boolequation.c: fixed invalid comment.
6083 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
6084 when defined UNICODE_WORK_IN_PROGRESS.
6086 * lib/dia_xml.c (data_add_string): fixed typo.
6088 2002-01-20 Akira TAGOH <tagoh@redhat.com>
6090 * configure.in: fixed test gtk_advancement.
6092 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
6094 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
6097 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
6099 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
6100 tool tips, preferences, and arbitrarily long ~/.dia/history
6102 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
6103 removed 'Open Recent'; added new separators for recent documents on
6106 * app/interface.[ch] (interface_get_toolbox_shell): new function
6108 * app/diagram.c: added new parameter to recent_file_history_add() call
6110 * app/preferences.[ch]: added new 'Recent documents list size'
6113 2002-01-18 Akira TAGOH <tagoh@redhat.com>
6115 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
6116 if it failed, should be used gdk_font_load ().
6118 * lib/font.c (font_data): added the font entries for CJK.
6120 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
6122 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
6124 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
6126 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
6128 Patch from Martin Cracauer <cracauer@cons.org>:
6130 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
6133 2002-01-01 Hans Breuer <hans@breuer.org>
6135 * app/command.c : optional use GDI printing on windoze
6137 * app/preferences.[hc] : add option 'prefer_psprint' to
6138 select the print engine to use (could be used for Dia/Gnome
6141 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
6142 wmf plug-in with the common win32 print api. Now printing
6143 should work almost as expected from a windows program :-)
6145 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
6146 to .edit_delete to avoid clashes with C++
6148 * app/makefile.msc : updated for GDI printing
6150 * plug-ins/wmf/wmf.cpp : some small modifications to support
6151 GDI printing. Also swap R and B channel in draw_image()
6153 * app/makefile.am : added windows only files to EXTRA_DIST
6155 * objects/uml/class.c(umlclass_set_props) : force recalculation
6156 when applying properties
6158 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
6159 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
6160 many incompatible changes (and would force a gtk update)
6162 * objects/makefile.msc : don't build C-Objects which are
6163 already available as 'pure shape'
6165 * plug-ins/makefile.msc : remove diaimport from build. It was
6166 only available via mailing-list and is broken since the
6170 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
6172 * app/preferences.[hc] : tweaked preferences.c to make
6173 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
6174 added some more DiagramTree prefererences and their own
6177 * app/diagram_tree.[hc] : allow to sort by object type or name
6178 and hide by type ...
6179 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
6180 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
6182 * app/diagram_tree_window.c : handle hidden types and window
6185 2001-12-20 Hans Breuer <hans@breuer.org>
6187 * plug-ins/python/Makefile.am : patch from Peter Moulder
6188 <pmoulder@csse.monash.edu.au> to make the python plug-in
6189 compile on *nix too.
6191 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
6193 Patch from Alan <horkana@tcd.ie>:
6195 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
6197 2001-11-20 Hans Breuer <hans@breuer.org>
6199 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
6201 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
6203 * app/diagram_tree.[hc] : Added new functions and types for
6204 sorting diagram and objects, and attaching the popup menus.
6206 * app/preferences.h: Added more diagram tree preferences, using a
6207 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
6208 height and width of the diagram tree window and the default sort
6209 orders for diagrams and objects.
6211 * app/preferences.c (prefs_data): Added new entries for the new
6212 diagram tree preferences.
6214 * app/preferences.c (prefs_tabs): New tab for diagram tree
6217 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
6218 * app/diagram_tree_window.c (diagram_tree_window_new):
6219 * app/interface.c (create_tree_window): The diagram tree window is
6220 initialised using the DiagramTreeConfig part of prefs.
6223 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
6225 * app/diagram_tree_menu.[hc]: New files. Functions to create the
6226 diagram tree popup menus.
6228 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
6229 the diagram tree popup menus.
6231 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
6234 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
6236 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
6237 double-clicking a diagram tree node raises the diagram window
6238 to the foreground (and, if a object node was clicked, selects the
6239 object in the diagram).
6241 * app/diagram_tree.c (select_tree_widget): selecting an object
6242 node with single click simply updates it (no raise).
6244 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
6245 These changes make the diagram tree lazy: it is not created unless
6246 the diagram tree window is requested.
6248 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
6249 function for creating the tree window.
6251 * app/interface.c (create_tree_window): call
6252 create_diagram_tree_window() instead of diagram_window().
6254 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
6255 (diagram_tree_update, diagram_tree_update_name)
6256 (diagram_tree_add_object, diagram_tree_add_objects)
6257 (diagram_tree_remove_object, diagram_tree_remove_objects)
6258 (diagram_tree_update_object): accept a NULL tree as a nominal
6259 argument (and do nothing in this case!), so that the diagram tree
6260 is not initialised if not used.
6262 * app/diagram_tree_window.c (diagram_tree): do not create the
6263 diagram tree until diagram_window() or diagtree_show_callback()
6266 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
6267 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
6269 * app/diagram_tree_window.[hc] : (new files) implementation of
6270 the diagram tree window, a container for a diagram tree. [Removed
6271 the horizontal scroll bar glitch by disableing it]
6273 * app/diagram_tree.[hc] : (new files) implementation of the
6274 diagram tree widget. [Don't rely on the layers GPtrArray to be
6275 NULL terminated, but use its ->len field]
6277 * app/Makefile.am (dia_core_files): added new files
6278 diagram_tree.[hc] and diagram_tree_window.[hc]
6280 * app/interface.[hc] : (create_tree_window): this function
6281 creates the new diagram tree window widget
6283 * app/undo.c (delete_objects_apply) (delete_objects_revert)
6284 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
6285 (ungroup_objects_apply) (ungroup_objects_revert):
6286 every time that an undoable command modifies a diagram
6287 adding/removing/(un)grouping objects, a diagram_tree_something() is
6288 invoked to keep the diagram tree window in sync
6290 * app/properties.c (properties_apply): call to
6291 diagram_object_modified(), which updates the diagram tree window
6292 when the properties of an object are modified
6294 * app/preferences.[hc] : new "show_diagram_tree" configuration option
6295 (whether the diagram tree window should be shown on dia startup)
6297 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
6299 * app/diagram.h (diagram_object_modified): callback notifying of a
6300 diagram object modification
6302 * app/diagram.c (diagram_load_into): added call to
6303 diagram_tree_add() to add newly loaded diagrams to the diagram
6305 (diagram_destroy): call to diagram_tree_remove() to remove a
6306 destroyed diagram from the diagram tree window
6307 (diagram_add_object): call to diagram_tree_add_object() to add an
6308 object to the diagram tree window
6309 (diagram_add_object_list): as above, but with an object list
6310 (diagram_selected_break_external): deletion of objects from the
6311 diagram is detected here, and diagram_tree_remove_object() is
6312 invoked to remove the object from the diagram tree window (it
6313 would be nice to have a diagram_remove_object() in the Diagram
6315 (diagram_set_filename): update the diagram tree window when a
6316 diagram's filename changes
6318 * app/commands.c (file_new_callback): added call to
6319 diagram_tree_add() to add newly created diagrams to the diagram
6322 * app/app_procs.c (app_init): added call to create_tree_window()
6324 * app/makefile.msc : updated
6326 2001-10-28 Hans Breuer <hans@breuer.org>
6328 * app/preferences.h (DiaPreferences):
6329 * app/preferences.c (prefs_data): new "show_diagram_tree"
6330 configuration option (whether the diagram tree window should be
6331 shown on dia startup)
6333 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
6334 entry (both for GNOME and gtk)
6336 * app/diagram.h (diagram_object_modified): callback notifying of a
6337 diagram object modification
6339 * app/diagram.c (diagram_load_into): added call to
6340 diagram_tree_add() to add newly loaded diagrams to the diagram
6342 (diagram_destroy): call to diagram_tree_remove() to remove a
6343 destroyed diagram from the diagram tree window
6344 (diagram_add_object): call to diagram_tree_add_object() to add an
6345 object to the diagram tree window
6346 (diagram_add_object_list): as above, but with an object list
6347 (diagram_selected_break_external): deletion of objects from the
6348 diagram is detected here, and diagram_tree_remove_object() is
6349 invoked to remove the object from the diagram tree window (it
6350 would be nice to have a diagram_remove_object() in the Diagram
6352 (diagram_set_filename): update the diagram tree window when a
6353 diagram's filename changes
6355 * app/commands.c (file_new_callback): added call to
6356 diagram_tree_add() to add newly created diagrams to the diagram
6359 * app/app_procs.c (app_init): added call to create_tree_window()
6361 2001-10-28 Hans Breuer <hans@breuer.org>
6363 * plug-ins/python/pydia-property.c : apparently I missed
6364 to commit this last time. Now it has some more SetAttr
6365 support (apply from property)
6367 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
6369 * plug-ins/python/pydia-text.[ch] : new files
6371 2001-10-14 Hans Breuer <hans@breuer.org>
6373 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
6374 strings. Use g_strdup() for these.
6376 libxml2 does not produce 'any extra indentation when saving a tree'
6377 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
6378 libxml(1). To get human readable XML some extra tweaking is required.
6379 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
6380 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
6381 * app/preferences.[ch] : initialize 'pretty_formated_xml'
6383 * lib/libdia.def : updated externals
6385 * lib/properties.h : add prototype for prop_list_from_single ()
6387 * plug-ins/makefile.msc : build metapost plug-in
6389 * plug-ins/metapost/render_metapost.c : msvc does not like
6390 switch labels without operation 'default: }'. Added a noop.
6392 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
6393 * plug-ins/python/diamodule.c : added PyDiaText
6394 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
6395 Although the python plug-in does not use libxml at all, the
6396 headers are required to use the lib/prop*.h headers
6398 * plug-ins/python/pydia-diagramdata.c : added wrappers for
6399 update_extents and get_sorted_selected (should I duplicate
6400 more functions from PyDiaDiagram or should they be moved?)
6402 * plug-ins/python/pydia-properties.c : allow to set (some) properties
6403 through the dictionary api
6404 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
6405 * plug-ins/python/pydia-property.c : implement it (currently only
6406 string properties can be set)
6408 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
6409 Quoting myself: 'Still not convinced that this is better than an
6410 integral property->type and some casting ...
6411 It is trading a straightforward 40 lines switch statement to
6412 this nice 'type safe' function mapping (about 125 lines)'
6413 (But now it works again, better than changing the News file :)
6415 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
6417 patch from <robert.young@dsto.defence.gov.au>:
6418 * objects/UML/component.c: remember to set font in UML component
6419 object (fixes #62132)
6421 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
6423 * plug-ins/metapost/metapost.c:
6424 * plug-ins/metapost/Makefile.am:
6425 * plug-ins/metapost/render_metapost.c:
6426 * plug-ins/metapost/render_metapost.h:
6427 Metapost renderer from Chris Sperandio
6429 2001-09-14 Hans Breuer <hans@breuer.org>
6431 * app/render_gdk.c : reflect the fact, that GTK already talks
6432 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
6435 * app/render_libart.c : trying to fix #58045 but it appears
6436 to be an Gdk/win32, too.
6438 * lib/charconv.c : handle utf8 conversion with the help of
6439 glib-1.3 even in the !HAVE_UNICODE case.
6441 * lib/dia_xml.c : reduce complaing about missing encoding, by
6442 detecting if the default (utf8) would break the file.
6444 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
6446 * lib/charconv.c: (get_local_charset): at least please try to not
6447 silently change the logic, while avoiding crashes.
6449 * lib/font.c: (suck_font): put a #error, we have a nasty something
6450 to fix there before we switch to Gtk 2.0.
6452 2001-09-09 Hans Breuer <hans@breuer.org>
6454 * **/makefile.mingw : Approach to compile Dia with mingw.
6455 Compiling mostly works but running does not (yet) ...
6458 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
6459 Apparently mingw needs it too.
6460 - enable 'normalization' of a null verctor. Otherwise the beziergon
6461 bounding box calculation would be broken at least with msvc. What's
6462 the mathematical correct result of 0.0/0.0 ?
6464 * lib/dia_xml.c : isinf() for mingw too.
6466 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
6469 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
6472 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
6474 * lib/libdia.def : updated externals. Apparently mingw needs
6475 them to produce the right mangling.
6477 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
6480 2001-09-08 Wang Jian <lark@linux.net.cn>
6482 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
6484 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
6486 * lib/dia_xml_libxml.h:
6487 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
6488 libxml1's code, to rework the output file before it gets committed
6489 to disk. This is rubbish, and will be removed when libxml2
6490 switches from discouraged to mandatory.
6491 All in all, this fixes #60152.
6494 * lib/charconv.c: (charconv_unichar_to_utf8):
6495 made the type of the input parameter explicitly an unsigned long.
6497 * configure.in: Added a check for libz (we must now include it
6498 explicitly, for xmlDiaSaveFile).
6500 * app/load_save.c: (diagram_data_save):
6501 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
6502 (dia_pluginrc_write):
6503 * plug-ins/shape/shape-export.c: (new_shape_renderer),
6504 (end_render), (draw_string):
6505 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
6508 Made sure we always write UTF-8 XML files, and through
6511 * NEWS: documented that fact.
6513 2001-09-07 James Henstridge <james@daa.com.au>
6515 * configure.in (found_libxml): refactor the check for libxml a
6516 little so that it handles finding both libxml1 and 2 better.
6518 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
6520 * app/app_procs.c: removed a spurious } which caused a compilation
6521 error in the (!HAVE_GNOME && HAVE_POPT_H) case
6523 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
6524 don't know what ANSI X3.4-1968 is. I didn't know until this day,
6525 but it's just plain old ASCII. Added a check to shield the poor
6528 Patches from <robert.young@dsto.defence.gov.au>:
6530 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
6531 width and height of text before calculating bounds. Fixes #59928
6533 * app/preferences.c: Moved grid related items into Grid Tab.
6535 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
6537 * app/interface.c: (create_zoom_widget): connected one more signal
6538 to the Zoom selector combo's list. Fixes #59879.
6540 * app/app_procs.[ch]: (app_init) (do_convert)
6541 (build_output_file_name): brought back into the main executable
6542 the rare useful bits of the ill-fated diaconv. This means we have
6543 one new feature : --export-to-format (-t), which should make
6544 writing conversion scripts easier, and a crude implementation of
6545 -t and -e for the poptless argument parsing, which means the Win32
6546 port should be able to take advantage of it (that should make
6547 resolving #58197 possible).
6549 * app/diaconv.c: kept the poor duck compiling (but that's about
6552 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
6555 * NEWS: updated about the new feature above, and documented the
6556 "missing encoding specification" complaint.
6558 2001-09-01 Abel Cheung <maddog@linux.org.hk>
6560 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
6562 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
6564 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
6567 2001-09-01 James Henstridge <james@daa.com.au>
6569 * */Makefile.am: various changes to include missing files, and fix
6570 sheets dir to handle building with builddir != srcdir.
6572 * autogen.sh: unconditionally pass the --enable-maintainer-mode
6573 and --enable-db2html flags so that builds from CVS work correctly.
6575 * configure.in: increment version number. Also add an
6576 --enable-db2html flag. Without the flag, db2html won't be run (if
6577 the flag is passed and db2html is not present, do nothing).
6579 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
6581 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
6582 even compiled. It's really too bad there is no lint tool easily
6583 available (or a more cautious, pedandic, paranoid and verbose
6584 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
6586 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
6589 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
6590 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
6592 * app/menu.c: added ellipsis(...) to diagram properties menu item.
6593 * app/dia-props.c: diagram properties dialog contents did not
6594 represent current diagram settings.
6595 * app/dia-props.[ch]:
6596 * app/display.c: diagram properties contents now follows currently
6598 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
6600 * AUTHORS: added Robert Young.
6602 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
6604 * app/modify_tool.c: (modify_button_release): Patch from
6605 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
6606 #59090: if selection dragging was released outside of the window,
6607 artifacts of the selection box remained.
6609 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
6611 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
6613 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
6616 * sheets/Makefile.am: prepared the terrain for the Version of
6617 xml-i18n-tools Which Comes After 0.9 (and which will feature at
6618 last a sane behaviour with XML files). Some reasonible delay
6619 before enforcing that version *will* be given.
6621 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
6623 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
6624 becomes a nonexistent symbol.
6626 2001-08-18 Hans Breuer <hans@breuer.org>
6628 * app/app_procs.c : made it compile without ENABLE_NLS
6630 * app/diap_callbacks.c : strcmp isn't guaranteed to work
6635 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
6637 xmlGetProp, ... -> xmlFree
6638 malloc, strdup -> free
6639 g_new, g_malloc, g_strdup - > g_free
6641 * app/win32print.c : some more error checking, still not
6644 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
6646 * lib/dia_xml.c : msvc still has no unistd.h
6649 * lib/sheets.c : temporary resolved libxml include brokeness
6651 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
6652 changes. Compiles again, but doesn't do anything useful anymore.
6653 (see THE_PROP_TYPE_IS_INTEGRAL)
6655 * **/makefile.msc : updated to use LIBXML2
6657 * lib/libdia.def : reflect api changes
6659 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
6661 * config.h.win32: added defines telling that gtk speaks UTF8.
6662 Hans, I believe this reflects what GTK on Win32 does.
6664 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
6666 * lib/prop_inttypes.c:
6668 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
6671 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
6672 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
6673 search for plug-ins is done.
6674 * app/Makefile.am: made app/run_dia.sh use the // capability. No
6675 need to update this anymore if we get a new plug-in library (or
6678 * lib/dia_xml.c: #include <unistd.h> was missing.
6681 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
6682 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
6685 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
6687 * sheets/civil.sheet: removed duplicate "Danish" entries.
6692 * sheets/Makefile.am:
6694 * Makefile.am: applied the xml-i18n-tools README's instructions.
6696 * po/(da de fr hu nl nn no sl).po: merged the translations from
6697 the sheet files into the .po files. I hope I haven't mixed
6699 * sheets/*.sheet (REMOVED):
6700 * sheets/*.sheet.in (NEW): moved the sheet files sans
6701 translations into .sheet.in files.
6703 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
6704 because we don't yet want to force all translators to work using
6705 UTF-8 editors. We'll want to do that sometime (sooner rather than
6706 later). Okay, I sing a slightly different tune in po/ChangeLog...
6708 * dia.desktop (REMOVED):
6709 * dia.desktop.in (NEW): used also the x18t infrastructure for
6712 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
6713 "official" version of x18t with support for .sheet files is available.
6714 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
6715 "official" version of x18t which doesn't corrupt UTF-8 data in XML
6718 ** yes, we are now using xml-i18n-tools to manage the sheet
6719 translations. For the Win32 build, Nemo stores snapshots of
6720 translated strings next to the CVS snapshots. **
6722 * sheets/checktrans.py: suddenly, some sheets have lots of
6723 translations (objects which existed before sheets, mostly).
6724 Adapted the formatting.
6726 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
6728 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
6729 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
6730 <robert.young@dsto.defence.gov.au>, to fix #59090.
6732 * app/display.c: (ddisplay_scroll): While at it, added some
6733 margin, so that autoscrolling can happen within a margin outside
6734 the diagram's extents.
6738 * app/disp_callbacks.c: Robert "forced" me to go when I usually
6739 don't, namely the app/ directory. So while I was there, I
6740 scratched a long-time itch. If no object has focus, pressing the
6741 space bar will select back the tool which was selected before the
6742 current one (I find this especially useful with "reset after create" !)
6744 * lib/proplist.c: (prop_list_from_single): Renamed
6745 prop_list_singleton() to avoid confusion with the Singleton
6746 pattern (which it definitely is not).
6748 * lib/propobject.c: (object_prop_by_name_type),
6749 (object_prop_by_name): The "flags" parameter was not necessary.
6750 These don't return synthetic properties, but properties built from
6751 a real property description list; therefore, we don't call
6752 make_new_prop() but use the existing property descriptor, which
6753 has perfectly valid (and meaningful) flags.
6755 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
6756 new predicates better reflect the reason why properties exist when
6757 they're created by make_new_prop() or object_prop_by_name().
6759 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
6760 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
6763 * lib/properties.h: reflects all the above changes.
6765 * objects/SADT/arrow.c:
6766 * objects/SADT/annotation.c:
6767 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
6770 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
6773 * lib/proplist.c: (prop_list_singleton):
6774 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
6775 Added these, to simplify interactions of plug-ins with the StdProp
6780 * lib/dia_xml_libxml.h (NEW):
6785 * objects/custom/shape_info.c: A few prototypes were causing
6786 #include hell, because we generally attempt to not pull the whole
6787 libxml header set when we include dia_xml.h. Moved those
6788 prototypes away for the rare cases they're necessary.
6790 2001-08-15 Hans Breuer <hans@breuer.org>
6792 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
6795 * lib/makefile.msc : updated
6797 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
6798 use G_GNUC_FUNCTION instead.
6800 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
6802 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
6803 msvc instead of cleaning missing includes
6805 * plug-ins/wmf/wmf.cpp :
6806 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
6808 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
6815 * objects/custom/shape_info.c:
6816 * plug-ins/shape/shape-export.c:
6817 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
6818 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
6819 removed xmlKeepBlanksDefault(0) in favour for proper
6820 xmlIsBlankNode() testing. Lots of other fixups to use the
6821 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
6822 make libxml1 output correct files.
6824 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
6825 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
6826 packages). If both devel packages are found, the build will stop
6827 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
6829 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
6830 allocate the first handle :-)
6832 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
6833 a cast and a sizeof.</gratuitous>
6835 * objects/custom/custom_object.c: (custom_copy): don't call
6836 text_get_attrbutes if the shape has no text...
6837 (custom_update_data): The info->resize_with_text code was a bit
6838 directive; basically, the shape's bounding box was forced to be
6839 proportional to the text's bounding box.... This fixes #57187.
6841 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
6842 default for info->aspect_ratio; unobfuscated a line about
6843 info->resize_with_text;
6845 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
6847 * lib/properties.h: added comments next to the PROP_TYPEs to tell
6848 which C Property subclass to use.
6850 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
6851 cast-ridden form of setting properties in a list, in favour for
6852 the "local pointers" form. I'll take any better offer...
6854 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
6856 * lib/font.c: fprintf(...) --> fprintf(format...)
6858 * configure.in: added a disabled versioned test for glib.
6859 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
6860 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
6861 g_critical() with a simple g_error(). Proper fix is to implement
6864 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
6868 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
6869 * lib/proplist.c: (find_prop_by_name_and_type):
6870 * lib/prop_basic.c: (make_new_prop), (initialize_property):
6871 * lib/propoffsets.c: (do_set_props_from_offsets),
6872 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
6873 Added a type_quark member to PropDescription, Property and
6874 PropOffset. Used it to implement a safety in
6875 do_[sg]et_props_from_offsets().
6877 * objects/flowchart/diamond.c: the diamond's text was not saved,
6878 and thus not even copied (c&p).
6879 * objects/standard/textobj.c: ditto.
6881 Most of the above changes thanks to Robert Young's testing. Thanks !
6883 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
6885 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
6888 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
6890 * lib/proplist.c (prop_list_from_descs): added a call to
6891 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
6892 too embarrassing to tell.
6894 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
6895 while loop to a for loop, for symmetry with
6896 prop_offset_list_calculate_quarks().
6898 * lib/geometry.h: new inline function, rectangle_equals.
6900 * lib/diagramdata.[ch]: refactored a bit the diagram extents
6901 computation logic, and changed it to always be the union of the
6902 visible layers' extents. This should close #58882 (Debian
6903 #107167), and fixes #55498.
6905 * app/display.c: made the initial visible box more coherent with
6906 the diagram being loaded's extents.
6908 * app/prop_attr.c: don't set the font (from offset) if font_data
6909 is NULL. Two brainos in colorprop_load() and fontprop_load().
6911 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
6913 * lib/properties.[ch]: split in a lot of pieces:
6915 * lib/prop_*.[ch] (NEW): all property types are now first-class
6916 objects, inheriting from the original abstract Property type.
6917 * lib/propdesc.c (NEW): property description handling routines
6918 * lib/propoffsets.c (NEW): property offset handling routines
6919 * lib/proplist.c (NEW): property list handling routines
6920 * lib/propobject.c (NEW): property list <-> object routines
6921 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
6923 * lib/propinternals.h: prototypes for stuff not usually needed by
6924 the outside of StdProps.
6925 * lib/Makefile.am: a lot of new files have been added...
6927 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
6928 BOTH INTERFACES AND RUN-TIME STABILITY.
6930 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
6932 * lib/object.h: removed the incestuous relationship with
6933 properties.h' contents. Now a Property list is a GPtrArray -->
6934 object interface change !
6936 * app/app_procs.c/app_init(): removed a disabled call to a
6937 non-existent routine. Added a call to stdprops_init().
6939 * objects/Makefile.am: disabled the construction of EML. I'm not
6940 touching these until a certain issue is solved (or this module
6943 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
6944 objects to the interface changes.
6946 * app/disp_callbacks.c: killed a warning.
6947 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
6950 The macros PROP_VALUE_* have disappeared. Adapted to using the new
6953 * plug-ins/dxf/dxf-import.c:
6954 * plug-ins/xfig/xfig-import.c:
6955 PROP_VALUE_* macros have been removed. Converted to the new API.
6957 * plug-ins/python/**/*: I gave up converting this; I can't
6958 compile --with-python (problems with object.h defined both by us
6959 and by Python). I'll gladly help whomever cares to fix it !
6960 (or, fix it myself if someone tells me how to compile it).
6962 * configure.in: added the UNICODE-related progress defines.
6965 * lib/geometry.h: On Solaris and perhaps other systems, finite()
6966 is defined in ieeefp.h rather than in math.h. Patch from Andrew
6967 Halper <ashalper@acm.org> with further modifications, isinf() is
6968 provided by -lsunmath (sunmath.h).
6970 * lib/font.c: conditionally disabled Lars' debugging messages.
6971 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
6973 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
6975 * lib/bezier_conn.h:
6976 * objects/standard/bezier.c (bezierline_create):
6977 * lib/bezier_conn.c (bezierconn_init):
6978 Preparations for use of userdata for bezier lines.
6980 * objects/standard/polygon.c:
6981 * objects/standard/create.h:
6984 * plug-ins/xfig/xfig-import.c:
6985 Use of user_data for polygon as well, including adding
6986 polyshape_set_points. Include file for non-interactive
6987 creation of standard objects, objects/standard/create.h
6989 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
6996 More preliminary freetype support. Not at all functional, crashes
7001 * objects/standard/polyline.c:
7002 Support for creating polyline objects with more than two points.
7003 This includes an extra function and a prototype change in the
7004 poly_conn lib object.
7006 * lib/object.c (object_copy): Fixed memory leak of handles and
7009 2001-08-08 Abel Cheung <maddog@linux.org.hk>
7011 * dia.desktop: added traditional Chinese strings
7013 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
7015 * NEWS: updated to reflect build-time dependencies.
7017 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
7018 around obj->ops->describe_props(obj). Quarks are none of an
7019 object's business in the general case...
7020 * lib/text.c: Added an apply_textattr_properties() function to
7021 factor out some common code related to applying a dialog's text
7022 attribute properties to a (Text *) which wasn't edited there.
7023 Ditto for textstr, for the string part of an objet.
7025 * objects/GRAFCET/action.c:
7026 * objects/SADT/annotation.c:
7027 * objects/SADT/box.c: used apply_textattr_properties().
7029 * objects/UML/actor.c:
7030 * objects/UML/branch.c:
7031 * objects/UML/component.c:
7032 * objects/UML/constraint.c:
7033 * objects/UML/small_package.c:
7034 * objects/UML/state.c:
7035 * objects/UML/usecase.c:
7036 * objects/UML/large_package.c:
7037 * objects/UML/note.c:
7038 * objects/UML/node.c:
7039 * objects/UML/message.c:
7040 * objects/UML/classicon.c:
7041 * objects/UML/object.c:
7042 * objects/UML/realizes.c:
7043 * objects/UML/dependency.c:
7044 * objects/UML/implements.c:
7045 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
7046 (most objects were already using StdProps to some extent ; this
7047 systematises usage and removes some dead wood).
7049 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
7050 * objects/UML/uml.[ch]: audited for UTF-8.
7052 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
7053 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
7054 private (ISO-8859-1) definition.
7056 * lib/charconv.c: Added a warning if we didn't run
7057 nl_langinfo(CODESET) but rely instead on a hardcoded default.
7059 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
7062 * app/disp_callbacks.c: added a way for an object to cause an
7063 already realised menu to be destroyed (for instance if it changes
7066 * objects/custom/custom_object.c: used the above to fix #55073.
7068 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7070 * configure.in: Remove 2.50 prereq.
7072 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
7074 * po-checktrans.py: under some circumstances, there was one column
7075 more than what was supposed to be, thus breaking the formatting.
7077 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
7079 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
7081 * NEWS: updated with new stuff since 0.88
7083 * shapes/network/antenna.shape: the text was misplaced ; fixed.
7085 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
7086 firewall router (upon request from Cyril Lacoux
7087 <clacoux@easter-eggs.com>)
7089 * configure.in (didn't rename to configure.ac): autoconf 2.50
7090 constructs were used ; added an AC_PREREQ call to guard against
7093 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
7095 * lib/properties.c: minor clean-ups with the event delivery code.
7097 * EML/instantiation.c: brought this object back from stone and ice
7100 * app/diaconv.c(NEW): added a command-line conversion tool. Still
7101 lacks a man page and correctness. In fact, it doesn't work. Please
7102 see #58196 if you want to finish it.
7104 * lib/message.[ch]: redefined things a little so that a different
7105 message_internal routine could be passed.
7106 applications can use that to fit themselves to the display model.
7108 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
7110 * objects/SADT/box.c:
7111 * objects/GRAFCET/action.c: spelling in property descriptors (name
7113 * objects/SADT/annotation.c: ditto, plus a temporary test of the
7114 event delivery code (try to click on the "click me !" button !).
7117 * lib/properties.[ch]: improved (fixed) support for group event
7118 handlers. Fixed various things from yesterday's code to make it
7119 not too obviously crash.
7121 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
7123 * app/group.c: added delivery of events to the first member of the
7124 group which is able to process it.
7126 * lib/properties.c(prop_desc_lists_intersection): properties
7127 don't match if they don't have identical event handler.
7128 * lib/properties.h: simplified the PropEventHandler signature.
7130 Event delivery code is still untested so far, but should be
7133 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
7135 * lib/properties.[ch]: Added (untested !) property event handler
7136 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
7137 generating such events. This stuff compiles, and should lurk
7138 around silently as long as you don't declare property descriptors
7139 with events (AFAICT).
7140 In object_create_props_dialog() and friends:
7141 attached a single structure with lots of data instead of lots of
7142 little attachments of data to the dialog widget.
7144 * lib/object.h: fixed mild typedef breakage introduced by the above.
7146 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
7148 * lots of files: Changed Font to DiaFont
7149 * */Makefile.am: Added FREETYPE_LIBS
7150 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
7152 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
7154 * configure.in: Added "nn" to ALL_LINGUAS.
7156 2001-07-09 Alex Larsson <alexl@redhat.com>
7158 * app/disp_callbacks.c:
7159 Add gdk_im_ready() calls to XIM code.
7161 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
7163 * lib/properties.[ch]: splitted prop_get_widget() into
7164 prop_get_widget() (gives a widget but doesn't fill it) and
7165 prop_reset_widget() (fills an existing widget with a property's value).
7167 * lib/widgets.[ch]: const enforcement police work.
7169 * shapes/network/antenna.shape: added a connection point at top,
7170 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
7172 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
7174 * intl/*: tested with gettext-0.10.38
7175 * configure.in: moved a macro call around (AM_PROG_CC) to keep
7176 some of autogen.sh from complaining.
7177 * INSTALL: added a warning against gettext older than at least 0.10.36
7179 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
7181 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
7182 AM_ICONV (both provided by gettext)
7184 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
7186 * lib/charconv.c: corrected the degraded mode for when
7187 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
7189 * objects/chronoline/chronoline_events.c: UTF8 compliance.
7191 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
7193 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
7194 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
7195 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
7198 * objects/chronogram/chronoline.c:
7199 * objects/chronogram/chronoref.c: took advantage of the above to
7200 make nicer looking dialogs.
7202 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
7203 from libunicode's internals).
7204 * lib/message.c: convert strings to local encoding prior to
7205 display (UNICODE_WORK_IN_PROGRESS)
7206 * lib/properties.[ch]: convert strings to local encoding prior to
7207 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
7208 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
7209 * lib/stringprerenderer.[ch]: ditto
7211 (lib/text.c has been audited for UTF8, but the size of the changes
7212 make them inappropriate for commit before 0.89)
7214 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
7216 * objects/boolequation.h (<save|load>_boolequation): made the
7217 prototypes for match the .c file.
7219 * samples/grafcet.dia: minor non-conformance with IEC-848
7220 fixed (in the transition from step 100 to step 101).
7222 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
7223 disallow editing of properties if the object is part of a group.
7225 * objects/chronogram/chronoline.c:
7226 * objects/SADT/annotation.c:
7227 * objects/SADT/box.c:
7228 * objects/GRAFCET/step.c:
7229 * objects/GRAFCET/transition.c:
7230 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
7232 2001-06-12 Hans Breuer <hans@breuer.org>
7234 * lib/libdia.def : removed lazyprop exports
7235 * lib/makefile.msc : removed lazyprop.obj
7237 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
7238 and avoid crashes by always creating a custom->text,
7239 when (custom->info->has_text)
7241 * objects/makefile.msc : removed sybase from build
7243 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
7244 ObjectNode is a pointer already, which is what we want
7245 instead of a pointer pointer.
7247 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
7248 and implemented working export for images
7250 * shapes/network/zip-disk.shape : added connection points
7252 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
7254 * objects/SADT/box.c: removed lazyprops for standard props.
7255 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
7256 * objects/chronograms/chronoref.c: ditto
7260 * lib/connpoint_line.c:
7261 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
7262 * lib/properties.[ch]: new property types:
7263 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
7264 - PROP_TYPE_MULTISTRING: same as string, but renders as a
7265 multi-line entry box.
7266 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
7267 in a tabbed-notebook style (this is a bit complicated to use;
7268 see objects/chronograms/chronoline.c for an example).
7270 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
7272 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
7273 * objects/GRAFCET/step.c: ditto.
7274 * objects/GRAFCET/vector.c: ditto.
7275 * objects/SADT/annotation.c: ditto.
7276 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
7278 * lib/properties.[ch]: two more non-visible types
7279 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
7281 * lib/neworthconn.[ch]:
7282 * lib/orthconn.[ch]: added support for manipulation through
7283 standard properties.
7285 * configure.in: removed -fomit-frame-pointer, this seems to
7286 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
7289 * charconv.[ch]: more functions from unicode.h.
7290 get_local_charset() wasn't working properly, fixed now.
7291 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
7294 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
7295 * lib/lazyprops.[ch]: put a big fat warning in.
7297 * app/render_eps.c: one line mysteriously went away, causing a
7298 variable to be used uninitialised....
7300 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
7302 * app/app_procs.c: commented out the call to
7303 bind_textdomain_codeset(): it's premature.
7305 * lib/connpoint_line.c: a NULL point can be given to
7306 connpointline_adjust_count(), in case there's not really a clicked
7309 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
7310 #include order troubles. #included by lib/text.h, so there is no
7311 impact outside lib/.
7312 * lib/properties.[ch]: added support for CONNPOINT_LINE and
7313 (nonvisible) TEXT properties.
7315 * objects/GRAFCET/action.c:
7316 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
7319 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
7320 standard properties code). Grafted a dynamic number of connection
7321 points (heavily inspired from what Vergent does). This is the real
7324 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
7326 * lib/fonts.c: some hardening (mostly g_assert())
7327 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
7329 * app/app_procs.c (app_init): added a call to
7330 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
7331 (UNICODE_WORK_IN_PROGRESS).
7333 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
7335 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
7337 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
7338 (fixes #55863) : some clean-ups in the handling of connection
7339 points. Now the total number of connection points is just a
7340 #define (the proper solution is to retrofit the GRAFCET Vergent's
7341 dynamic behaviour wrt connection points).
7343 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
7345 * app/app_procs.c (app_init): added a call to unicode_init() (only
7346 if HAVE_UNICODE, of course).
7348 * lib/charconv.c: simplified the code which detects the local
7349 charset. No need to use <langinfo.h>, libunicode already takes the
7350 burden of figuring that out. Also, if local charset is utf8, no
7351 conversion will take place.
7352 Exposed a way to get the current charset (similar to
7353 unicode_get_charset() but actually working, hopefully).
7355 * lib/charconv.h: Added a partial non-UTF8 implementation of
7356 unicode.h if !HAVE_UNICODE (actually, all the time for the
7357 moment). The UTF8 implementation is just macros on libunicode (use
7358 the functions prefixed by uni_, as defined by charconv.h, not
7359 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
7360 From now on, all strings which don't *need* to be ASCII should be
7361 utfchar *, not gchar *. Just include charconv.h, let it sort out
7362 the details (such as: "is libunicode available and enabled?")
7364 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
7365 "API" instead of directly libunicode. Removed the now unnecessary
7366 speculative clustering of characters in encoding pages.
7368 * app/render_eps.c: made the local8->utf8 conversions dependent of
7369 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
7370 boundary will be when this WIP is done).
7372 * lib/dia_xml.c (data_point): fixed a format string typo.
7374 * po/POTFILES.in: added all C files from lib/
7376 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
7378 * app/disp_callbacks.c: make sure the objects' connected objects
7379 are updated when the objects' size changes after a keypress event
7382 * configure.in: added a big warning about the possible future
7383 non-optionality of --enable-unicode.
7385 * TODO: removed entries which look like done ; added a few ones
7386 (Bugzilla "enhancement" bugs may be a better way to keep track of
7389 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
7391 * objects/UML/message.c: got rid of #55564 and of message_copy()
7392 by using more standard properties (are the message_state_*()
7393 functions still necessary ?)
7395 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
7398 * objecs/custom/shape_info.c:
7399 * plug-ins/shape/shape-export.c:
7400 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
7401 use xmlChar instead of obsolete CHAR.
7403 2001-06-03 Hans Breuer <hans@breuer.org>
7405 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
7406 * app/commands.c : give the right number of parameters
7407 to diagram_update_menu_sensitivity ()
7409 * app/preferences.c : do proper initialization for DiaPrefsData:
7410 render_bounding_boxes. It would be a real surprise if 'hidden'
7411 properties would have ever worked before.
7412 Don't try to access the widgets of hidden property, it does not
7415 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
7416 it is defined in libdia, but initialized from dia app, which
7417 otherwise gave nice start-up crashes.
7419 * lib/diagramdata.c : initialize the color for rendering bounding
7420 boxes in the Dia range (0 .. 1.0)
7422 * lib/libdia.def : added *_bbox functions for export
7424 * lib/makefile.msc : added new sources
7426 * objects/custom/custom_object.c : use HAVE_UNISTD_H
7428 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
7431 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
7432 removes a translation of menus (in a place where there shouldn't
7433 have been), which gets rid of a waterfall of warnings if LANG!=C,
7434 and a fix to #55047.
7436 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
7438 * lib/charconv.c : added #include <errno.h>
7440 * app/dia_embedd.c : updated menus_get_item_from_path usage
7442 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
7444 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
7445 Added a special case for Symbol strings, so that they're not
7446 re-encoded using the LN encoding (we use the bare Adobe encoding
7449 * objects/custom/custom_object.c: Now that #52912 is fixed,
7450 I could remove the ugly hack I wrote to squash the shape bounding box
7451 problem shown by Ben A. Hetland a few months ago, and fix it
7454 * lib/text.c: enlarged a little the bounding box to account for
7455 the cursor in rightmost position.
7457 * lib/diagramdata.c: draw bounding boxes only if the relevant
7458 variable is set (as before), but also only if the rendere is
7459 interactive (ie, don't bother rendering bounding boxes on
7461 Made the bounding box's line width a fixed value, 0.01
7463 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
7464 and assymmetric control beziers. Implemented ellipse_bbox().
7466 * Makefile.am: incantations to get po/dia.pot build, as suggested
7467 by Hubert in #55075.
7469 * shapes/network/computer.shape: typo fixed.
7470 * shapes/network/antenna.shape: fixed #55074 (antenna is now
7471 properly translucent, except for its base where it makes sense. It
7472 doesn't look that ugly anymore if transparent mode is on).
7474 * configure.in: --enable-unicode is now the default. This
7475 still currently affects only printing.
7477 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
7479 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
7480 The overshoot code is buggy, and the bounding boxes for polyshapes
7481 looks a bit cheezy. To be done ASAP.
7483 2001-05-26 James Henstridge <james@daa.com.au>
7485 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
7486 This should clear up some of the build problems people have been
7489 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
7491 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
7494 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
7495 box code (beginning with lines, polylines and polybeziers), into a
7496 more generic facility. While at it, a better shot at correctly
7497 computing the bounding box of a Bezieroid (should take care of
7498 #53424, #51233 and of course is part 1 of #52912).
7500 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
7501 into a hidden preference (set render_bounding_boxes in diarc).
7502 * app/preferences.[ch]: Added support for hidden preferences.
7504 * lib/geometry.[ch]: sprinkled with "const" modifiers.
7506 * lib/bezier_conn.[ch]:
7507 * lib/beziershape.[ch]:
7508 * lib/connection.[ch]:
7510 * lib/poly_conn.[ch]:
7511 * lib/orth_conn.[ch]:
7512 * lib/neworth_conn.[ch]:
7513 * lib/polyshape.[ch]: adapted to take advantage of
7514 boundingbox.[ch] instead of relying on private (duplicate) code.
7517 * object/GRAFCET/action.c:
7518 * objects/GRAFCET/condition.c:
7519 * objects/GRAFCET/vergent.c:
7520 * objects/GRAFCET/vector.c:
7521 * objects/SADT/annotation.c:
7522 * objects/SADT/arrow.c:
7523 * objects/ER/participation.c:
7524 * objects/UML/constraint.c:
7525 * objects/UML/implements.c:
7526 * objects/UML/lifeline.c:
7527 * objects/UML/message.c:
7528 * objects/UML/realizes.c:
7529 * objects/UML/generalization.c:
7530 * objects/UML/association.c:
7531 * objects/UML/dependency.c:
7532 * objects/FS/flow-ortho.c:
7533 * objects/network/bus.c:
7534 * objects/standard/arc.c:
7535 * objects/standard/bezier.c:
7536 * objects/standard/beziergon.c:
7537 * objects/standard/line.c:
7538 * objects/standard/polygon.c:
7539 * objects/standard/zigzagline.c:
7541 * objects/standard/polyline.c: Some *BBExtras structures changed
7542 names while moving to boundingbox.[ch]. A trivial mass-renaming.
7544 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
7546 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
7547 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
7549 * app/display.c (ddisplay_update_scrollbars): from Patrick's
7550 suggestion, remove the extra scrollable area (it was only visible
7551 to the scrollbars). This is experimental.
7553 * objects/custom/custom_object.c: If a shape's icon file doesn't
7554 exist, warn and substitute a default icon, instead of crashing.
7557 * objects/network/network.c:
7558 * shapes/network/modularswitch.(shape|xpm) (NEW):
7559 * shapes/network/printer.(shape|xpm) (NEW):
7560 * shapes/network/genmonitor.(shape|xpm) (NEW):
7561 * shapes/network/computer.(shape|xpm) (NEW):
7562 * shapes/network/Makefile.am: four less objects, four more shapes.
7563 These were the last known RenderObjects. (phew !)
7567 * objects/sybase/Makefile.am:
7568 * objects/network/Makefile.am: Removed the older Renderobjects
7569 from the build, and their infrastructure (not yet deleted,
7572 * shapes/network/sceadplug.shape:
7573 * shapes/network/antenna.shape:
7574 * shapes/network/modem.shape:
7575 * shapes/network/hub.shape:
7576 * shapes/network/rj45plug.shape:
7577 * shapes/sybase/client.shape:
7578 * shapes/sybase/dataserver.shape:
7579 * shapes/sybase/ltm.shape:
7580 * shapes/sybase/repserver.shape:
7581 * shapes/sybase/rsm.shape:
7582 * shapes/sybase/stableq.shape: Minor corrections (line widths were
7583 ten times too narrow).
7585 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
7587 * objects/network/network.c:
7588 * shapes/network/sceadplug.(shape|xpm) (NEW):
7589 * shapes/network/antenna.(shape|xpm) (NEW):
7590 * shapes/network/modem.(shape|xpm) (NEW):
7591 * shapes/network/Makefile.am: four less objects, four more shapes.
7594 * lib/diagramdata.c:
7596 * lib/string_prerenderer.[ch] (NEW):
7597 Add a new renderer primitive, predraw_string() (does nothing, to be
7598 used as a hook to optimise the character encodings if needed).
7599 Added a string pre-renderer, which can be viewed as a filter
7600 renderer (to route draw_string() to predraw_string() and ignore
7601 the rest, in a first rendering pass)
7603 * app/render_eps.c: Took advantage of the above to make wholly
7604 optimised Postscript encoding page(s), even (especially) with
7605 non-latin1 code (HAVE_UNICODE must be true).
7607 (#53512 in fact is wholly resolved).
7609 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
7611 * lib/charconv.c: steps towards resolution of #53512 (inspired by
7612 Alexey Novodvorsky <aen@logic.ru>'s patch).
7614 * app/menus.c (dia_menu_signal_proxy): checked that the signal
7615 handler is not NULL before transferring control to it... (fixes #52836)
7617 * app/app_procs.c (app_init): removed non-constant initialiser
7620 * objects/custom/custom_object.c:
7621 * objects/custom/shape_info.[ch]:
7622 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
7623 <skh@mathstar.com>. This add support for a <svg:text> shape
7624 element, and some related style properties (font, font height,
7627 * doc/custom_shapes: a precision about the meaning of case in a
7628 SVG path (closes #52364)
7630 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
7631 fixed by <drk@sgi.com>)
7633 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
7635 * objects/network/network.c:
7636 * shapes/network/Makefile.am:
7637 * shapes/network/hub.(shape|xpm) (NEW):
7638 * shapes/network/flash.(shape|xpm) (NEW):
7639 * shapes/network/rj45plug.(shape|xpm) (NEW):
7640 More shapes, less renderobjects.
7642 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
7644 * plug-ins/svg/render_svg.c: typo made exported ellipses
7645 corrupted (zero Y pseudo-radius).
7647 * objects/network/network.c:
7648 * objects/network/disc.c:
7649 * shapes/network/disc.(shape|xpm): Converted the first
7650 Renderobject into a shape. Normally, old diagrams should reload
7651 without problems (please check this against your diagrams). More
7652 flexibility should be gained that way. I intend to hunt and
7653 eradicate all renderobjects as I can commit cycles to that.
7655 * objects/Makefile.am:
7658 * objects/sybase/sybase.c:
7659 * shapes/sybase/Makefile.am(NEW):
7660 * shapes/sybase/client.(xpm|shape) (NEW):
7661 * shapes/sybase/dataserver.(xpm|shape) (NEW):
7662 * shapes/sybase/ltm.(xpm|shape) (NEW):
7663 * shapes/sybase/repserver.(xpm|shape) (NEW):
7664 * shapes/sybase/rsm.(xpm|shape) (NEW):
7665 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
7666 renderobjects into shapes. The Sybase objects are now not compiled
7667 anymore, and ready to be nuked if nobody objects in the next few weeks.
7671 * app/disp_callbacks.c:
7673 * app/interface.[ch]:
7675 * app/modify_tool.c:
7676 * app/preferences.[ch]:
7677 * app/recent_files.c:
7678 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
7679 a menu bar reflecting the popup menu, to each display window. This
7680 is optional (changing the preference currently doesn't affect
7681 already opened windows; a few other rough edges to cut).
7683 * plug-ins/wpg/wpg.c:
7684 * plug-ins/xfig/xfig-import.c:
7685 * plug-ins/python/pydia-property.c:
7686 * plug-ins/python/pydia-properties.c:
7687 * plug-ins/python/pydia-geometry.c:
7688 * plug-ins/pstricks/render_pstricks.c:
7690 * objects/EML/dbox.c:
7691 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
7694 * lib/ps-utf8.c: improved the clustering of alphabetic character
7695 definitions in custom encodings pages.
7697 2001-05-02 Hans Breuer <hans@breuer.org>
7699 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
7700 of 'obj_bb' to PROP_TYPE_RECT
7702 * objects/custom/custom_object.c : take all quarks into account,
7703 not only 4 as copy&paste suggests
7705 * objects/uml/objects.c : completed the implementation of the
7706 property api to avoid reading of totally bogus data. Removed
7707 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
7708 there was too much but too less ...
7710 The above changes removed all known crashes (mentioned below)
7711 from the Property API. Property access is still incomplete though.
7713 * objects/flowchart/box.c :
7714 * objects/flowchart/diamond.c :
7715 * objects/flowchart/ellipse.c :
7716 * objects/flowchart/parallelogram.c :
7717 * objects/uml/classicon.c :
7718 * objects/uml/state.c : calculate number of quarks from quark array
7719 size instead of using hardcoded values for consistence and to avoid
7720 future bugs like the above
7722 * objects/eml/nlist.c : include <string.h> for strcmp()
7724 * lib/dia_xml.c : relax g_warning for values, which
7725 appear to be too small. There is nothing which prevents
7728 * plug-ins/python/pydia-geometry.c : changed stringifying of
7729 geometry objects accept BezPoint back to %f, which does not
7730 crash anymore, because all the data is intialized now and it
7731 simply is more readable than %e ...
7733 * plug-ins/python/python-startup.py : removed dependency
7734 to PyGtk, because it isn't required here and probably won't
7735 in i.e.: export filters.
7737 * plug-ins/python/gtkcons.py : create the gtkoutfile even
7738 if sys.stderr.fileno() isn't supported
7740 * app/makefile.msc : make version 0.88
7741 * plug-ins/makefile.msc : make version 0.88 an added new
7744 2001-05-11 James Henstridge <james@daa.com.au>
7746 * NEWS: remember to add news items this time.
7748 * dia.spec: update spec file for 0.88 release.
7750 * configure.in: up version number to 0.88
7752 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
7753 preventing any of the useful python scripts from being
7756 * sheets/Makefile.am (sheet-translation-report): fix bustage I
7757 introduced in my fixups for the 0.87 release :(
7759 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
7761 * plug-ins/xfig/xfig-import.c: Finally got groups working.
7763 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
7765 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
7768 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
7771 * lib/Makefile.am: fix makefile breakage which led to not
7772 including ps-utf8.[ch] in the released tarballs.
7774 2001-05-09 James Henstridge <james@daa.com.au>
7776 * Makefile.am (core-translation-report): dist scripts needed for
7777 this target, and change to $(srcdir) before running.
7779 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
7780 files aren't automatically included in the tarball by automake
7781 because they could be generated files.
7783 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
7785 * doc/en/Makefile.am (install-data-hook): fix up where graphics
7788 * configure.in: up version number to 0.87
7790 * plug-ins/python/*.py: no longer necessary to explicitly set
7791 sys.argv, as python.c does it for us now (like it should).
7793 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
7796 * plug-ins/python/python-startup.py: startup script that imports
7797 all modules in $(datadir)/dia/python and ~/.dia/python.
7799 * plug-ins/python/python.c (dia_plugin_init): change so that it
7800 only runs the $(datadir)/dia/python-startup.py script. Make sure
7801 that sys.argv and __main__.__file__ are set when calling the
7804 * plug-ins/python/Makefile.am: update makefile. Make it install
7805 gtkcons.py plugin. I haven't set any other plugins to install, as
7806 they look like they are mainly for debugging purposes.
7808 * configure.in: add tests to detect if python is available, so we
7809 can build the python plugin. Only run if --with-python passed to
7812 2001-05-08 James Henstridge <james@daa.com.au>
7814 * acinclude.m4: add macros for detecting python.
7816 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
7817 at GNOME_APP_UI_SUBTREE entries.
7818 (menus_add_path): function to add a menu item to the menubars.
7819 Uses a hash table to keep track of extra menu items it adds. Also
7820 notifies the item factory about the entries so that accels can be
7822 (menus_add_path): implement gtk only version.
7823 (menus_init): use menus_add_path() to add the menu.
7824 (plugin_callback): simplify.
7826 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
7828 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
7830 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
7832 * plug-ins/xfig/xfig-export.c:
7833 * plug-ins/xfig/xfig-common.c:
7834 * plug-ins/xfig/xfig-import.c:
7835 * plug-ins/xfig/xfig.c:
7836 * plug-ins/xfig/xfig.h:
7837 * app/Makefile.am: Added support for exporting to Fig format
7838 (except splits, which are less powerful in Fig). Some refactoring
7841 2001-05-02 Hans Breuer <hans@breuer.org>
7843 * plug-ins/python/debug_objects.py : added another
7844 test to get massive crashes from the Property API due
7845 to unintialized data.
7847 * app/menu.c : the callback_action wasn't incremented
7848 (should have checked my last optimization). Now more
7849 than one plug-in callback is supported again.
7851 * plug-ins/python/pydia-geometry.c : avoid crashes from
7852 glib, when trying to g_strdup_printf unintialized floats.
7854 * plug-ins/python/pydia-property.c : avoid crashes from
7855 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
7857 2001-05-01 Hans Breuer <hans@breuer.org>
7859 * objects/makefile.msc : added eml
7860 * objects/eml/instantiation.c : initialize 'inst' pointer
7861 before using, zero initialization for objects
7862 * objects/eml/interaction-ortho.c :
7863 * objects/eml/interaction.c : zero initialization for objects
7865 * app/menus.c : removed Gimp mru stuff which slipped in at
7866 2000-08-15, was never activated and will never be needed,
7867 because of Steffens recent file list patch added at 2001-01-05.
7869 * objects/eml/*.c : some more zero initialization of objects
7870 to avoid infinite (uninitialized) bounding boxes
7872 Implemented a callback api which allows plug-ins to register
7873 menu call backs. Dia for Gnome should compile, but will need
7874 some extra tweaking to make it work because I can't test it.
7876 * plug-ins/python/pydia-error.h :
7877 * plug-ins/python/pydia-render.c : moved Pxthon function return
7878 value handling from pydia-render.c to pydia-error.h, to make it
7880 * plug-ins/python/diamodule.c : implement callback function
7881 registration from and relaying to Python code
7883 * app/menus.c : register and use plug-in menu callbacks
7885 * lib/filter.[hc] : implement filter_register_callback() and
7886 filter_get_callbacks() for the above
7887 * lib/libdia.def : export them
7889 * plug-ins/python/debug_objects.py (new file):
7890 sample using the above
7892 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
7894 * plug-ins/shape/shape-export.c (new_shape_renderer):
7895 The name of a shape is now taken from the dir, to conform with
7898 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
7900 * app/properties.c (properties_show): Added title containing
7901 object type, plus (hopefully) fix of the ghost properties dialog.
7903 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
7905 * app/display.c: remove the display idle handler in case we
7906 destroy the ddisplay (caused crashes in ddd, probably random
7911 * Makefile.am: hack around gettext-0.10.36's new "features".
7913 * lib/properties.[ch]: added new function object_copy_props().
7914 Added new property type PROP_TYPE_ENDPOINTS
7916 * lib/connection.h: added support for load/saving through the
7917 properties interface.
7919 * lib/object.[ch]: object_load/save/copy_using_properties()
7920 support functions (code factorisations).
7922 * objects/GRAFCET/boolequation.c: check against null values in
7923 boolequation_set_value() and boolequation_destroy().
7925 * objects/GRAFCET/transition.c: Converted from lazyprops to
7926 standard properties. 31% less (x86) code !
7928 * objects/GRAFCET/condition.c: also converted from lazyprops to
7929 standard properties. Also killed lots of code.
7931 2001-04-13 Hans Breuer <hans@breuer.org>
7933 * plug-ins/wmf/wmf.cpp : changed text conversion from
7934 g_utf8_utf16 to g_convert usage. The latter function is already
7935 available in tml's last "official" Gtk+ version (2000-12-26).
7936 This change allows to use recent Dia with either the official
7937 version or the latest cvs "gtk-1-3-win32-production"-branch.
7939 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
7941 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
7942 * app/disp_callbacks.c:
7943 - Allow submenus in DiaMenus.
7944 - Don't require DiaMenu.title to be non-null (so that
7945 submenus aren't required to have titles)
7947 * objects/FS/function.c:
7948 - object menu now has submenus, an almost complete list of
7949 standard-basis verbs, and a start on nouns.
7950 - box padding, dash length, and other visual attributes are
7951 scaled by the font size... eventually font height will be
7952 a function property.
7953 - draw functions with smaller font to make initial view hold
7954 a reasonable number of functions.
7956 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
7959 * sheets/chronogram.sheet:
7960 * sheets/jigsaw.sheet:
7961 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
7962 Wieers <dag@wieers.com>
7964 2001-04-13 Hans Breuer <hans@breuer.org>
7966 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
7967 to ensure that all the deinitialization is only done once. Fixes
7968 recent app exit crash on win32
7970 * lib/dia_xml.c : provide isinf() replacement for msc which does only
7973 * lib/libdia.def : updated
7975 * objects/makefile.msc : added wanlink.c
7977 * objects/network/wanlink.c : added M_PI_2 definition for poor
7978 platforms which don't have one
7980 * objects/standard/arc.c :
7981 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
7982 initialized which led to rather huge bounding boxes (try Ctrl^A on
7983 diagrams with Arcs or ZigZagLines).
7984 * objects/*/*.c : to avoid further bugs like the above changed all
7985 object initializations to g_malloc0 or g_new0
7988 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
7990 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
7991 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
7993 * objects/UML/class.c:
7994 * objects/UML/usecase.c:
7995 * objects/UML/large_package.c:
7996 * objects/UML/message.c:
7997 * objects/UML/object.c:
7998 * objects/UML/lifeline.c:
7999 * objects/FS/flow.c:
8000 * objects/FS/flow-ortho.c:
8001 * objects/FS/function.c:
8002 * objects/custom/custom_object.c:
8003 * objects/GRAFCET/vergent.c:
8004 * objects/chronogram/chronoref.c:
8005 * objects/SADT/box.c:
8006 * objects/SADT/annotation.c:
8007 * plug-ins/dxf/dxf-import.c:
8008 * plug-ins/xfig/xfig-import.c:
8009 * plug-ins/wpg/wpg.c:
8012 * app/display.c: /* certainly more WIP than dead code there */
8013 Unused variables, unused static function definitions, forgotten or
8014 incomplete prototypes added or fixed, lack of const or unwanted const,
8015 etc. (mostly clean-ups of leftovers of the pre-properties era).
8016 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
8019 * app/lineprops_area.c: More of the same. Missing prototypes
8020 added, and functions unused outside made static.
8022 * app/recent_files.c:
8024 * app/defaults.c: some variables are used only when doing a GNOME
8027 * app/magnify.c: missing #include <stdlib.h>.
8029 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
8031 These are a lot of clean-ups (by the way, this compiles and runs
8032 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
8033 for DEAD_CODE, and if it's yours, judge it.
8035 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
8037 * plug-ins/dxf-import.c: some progress with the arcs; still some
8038 clean-ups to do and line width scaling issues to figure out.
8040 * objects/standard/arc.c: start_point and end_point properties
8041 (duplicated from standard/line.c)
8043 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
8046 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
8048 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
8049 preliminary support for arcs (doesn't work). Circles and ellipses are
8050 now transparent. Coordinate and width scaling are now a common
8051 static constant (probably before morphing into a preference).
8053 * sheet/checktrans.py: improved error reporting. Made checktrans
8054 count lack of <name xml:lang="code"> as a lack of translation for
8055 language "code" (no, it's not a plot to bring down other
8056 language's scores !)
8058 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
8059 in the header, and have <name xml:lang="fr"> components.
8061 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
8063 * objects/custom/custom_object.c: temporary hack to fix the shape
8064 bounding box reported by Ben A. Hetland. Proper fix isn't .87
8065 material, see bugzilla #52912.
8067 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
8069 * objects/standard/image.c (get_directory): Now uses
8070 G_SEPARATOR_CHAR_S instead of "/"
8072 * sheets/network.sheet:
8073 * sheets/Logic.sheet:
8074 * sheets/Flowchart.sheet:
8075 * sheets/Electric.sheet:
8076 * sheets/Circuit.sheet:
8078 * sheets/Pneumatic.sheet:
8081 * sheets/GRAFCET.sheet:
8083 * sheets/chronogram.sheet:
8084 * sheets/civil.sheet:
8085 * sheets/network.sheet:
8086 Danish translations.
8088 * objects/standard/image.c (get_directory): Changed get_directory
8089 to use g_dirname to find the directory part.
8091 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
8094 * sheets/Electric.sheet:
8095 * sheets/Flowchart.sheet:
8096 * sheets/Logic.sheet:
8097 * sheets/network.sheet: More Dutch translations from Dag Wieers.
8099 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
8101 * sheets/checktrans.py: now emits a warning when two descriptions
8102 for a single language code are found.
8105 * sheets/Makefile.am: -translation-reports now also depend on their
8108 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
8110 * sheets/Circuit.sheet:
8111 * sheets/Contact.sheet:
8112 * sheets/Logic.sheet:
8113 * sheets/chronogram.sheet:
8114 * sheets/sybase.sheet:
8115 Dutch translations from Dag Wieers <dag@wieers.com>
8117 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
8119 * po-checktrans.py: Now shows the detailed counts alongside the
8120 percentage of translations.
8122 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
8125 * po-checktrans (NEW):
8126 * po-checktrans.py (NEW): builds core-translation-report:
8127 percentages of core (gettext) translations done [Not placed into
8128 po/ where that should belong, because of integration fear^Wissues
8131 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
8132 sheets/sheet-translation-report probably ought to be copied on the
8133 user's /usr/share/doc/dia (or equivalent) directory.
8135 * sheets/Makefile.am: sheet-translation-report now a simple
8136 EXTRA_DIST; make install won't install it by default.
8138 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
8140 * app/preferences.c: changed the default grid colour to something
8143 * shapes/SDL/*.shape:
8144 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
8145 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
8146 DIA FILES (well, for files using SDL), see the mailing list
8147 archive "SDL (ab)using the global shape namespace" for a script to
8150 * sheets/SDL.sheet: translated into French
8151 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
8153 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
8155 * lib/dia_xml.c: made data_point() more paranoid
8157 * sheets/Makefile.am:
8158 * sheets/checktrans (NEW):
8159 * sheets/checktrans.py: Made checktrans handle more gracefully the
8160 absence of python and python-xml packages, and made the error
8161 message more helpful.
8163 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
8165 * lib/render_object.c (new_render_object): Made initial handles
8166 behave like on most other objects.
8168 * app/load_save.c (read_objects): Fixed premature free'ing ofr
8169 typestr causing garbage.
8171 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8173 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
8174 accouting for handle ordering through copy and save. (#51479)
8176 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
8178 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
8180 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
8182 * sheets/Circuit.sheet
8184 * sheets/network.sheet: Updated German translations
8186 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
8189 * app/lineprops_area.c: The return of the revenge of the arrow
8190 heads. Now all types covered by ISO 10303-201 should be covered.
8192 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
8194 * sheets/Flowchart.sheet: translations in probably Hungarian were
8195 a victim of cut-n-paste from the German one. Fixed (hopefully).
8196 * sheet/UML.sheet: translation in probably Norwegian was a victim
8197 of cut-n-paste from the French one. Fixed (hopefully).
8198 * sheets/Logic.sheet: French translation not tagged with
8201 * sheets/checktrans.py:
8202 * sheets/Makefile.am: new file, sheet-translation-report, to be
8203 installed along the sheets, show how much of them has been
8204 translated into which language (I wish the result was prettier...)
8206 * po/README: most translators don't read this file, but anyway...
8208 * sheets/.cvsignore:
8209 * objects/network/.cvsignore: the usual negotiation with CVS.
8211 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
8213 * sheets/*.sheet: French translations
8215 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
8217 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
8219 ** objects/network/network.c:
8220 ** objects/network/wanlink.c:
8221 ** objects/network/pixmaps/wanlink.c:
8222 ** sheets/network.sheet:
8223 ** objects/network/Makefile.am: a better object to use instead of
8224 the older WAN Connection.
8226 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
8228 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
8231 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
8232 Arc; kept the C file name (because CVS wouldn't like it), and
8233 still registering the older object name (but advertising the newer
8234 one in sheets/GRAFCET.sheet).
8236 2001-03-24 Hans Breuer <hans@breuer.org>
8238 * app/dia.def : some plug-ins (currently only python, xfig) are using
8239 functions from the dia executable. To get them working these functions
8240 need to be explicit exported on win32. IMO the much cleaner way would
8241 be to move these functions to libdia, but that would require some
8242 long term restructuring ...
8244 * lib/libdia.def : updated
8246 * plug-ins/makefile.msc : build xfig plug-in
8248 2001-03-24 Hans Breuer <hans@breuer.org>
8250 * app/diagram.c : g_strdup (dia->filename) because it will be
8253 * app/display.c : set ddisp->renderer to NULL after destruction.
8254 This may solve or help to identify erroneous access to it after
8257 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
8258 get 'umlauts' working
8260 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
8262 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
8263 were reversed... (look for the patch, and drink a beer to my
8266 2001-03-23 Hans Breuer <hans@breuer.org>
8268 * app/app_procs.c : don't g_error () if the config directory
8269 can't be created (at least not on windoze) because it's quite
8270 common that the user don't read or understand the FAQ ...
8272 * app/cursor.c : use ddisplay_active () instead of active_display
8275 * app/display.[hc] : made active_display var static and provide
8276 an accessor funtion ddisplay_active_diagram ()
8278 * app/dia-props.c : don't store the active_diagram, but ask
8279 for it everytime it needed.
8281 * lib/properties.h : #include "intl.h"
8283 * lib/makefile.msc : need to take care of inclusion order to
8284 avoid clashes with gtk+2.0's gdk-pixbuf
8286 * objects/makefile.msc : added uml/stereotype.c to build
8288 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
8290 * **/*.c: Added config.h to the remaining .c files, and changed
8291 all to be <config.h>.
8293 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
8298 * app/lineprops_area.c: added new arrow types with double
8301 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
8303 * shapes/Civil/civil_gas_bottle.xpm
8304 * shapes/Civil/civil_gas_bottle.shape
8305 * sheets/civil.sheet
8306 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
8309 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
8311 * objects/custom/shape_info.c (load_shape_info):
8312 * objects/custom/shape_info.h:
8313 * objects/custom/custom_object.c (custom_update_data):
8314 Better support for text outside the box -- new attributes 'resize'
8315 and 'align' for text entity. Align not fully supported yet.
8317 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
8319 2001-03-20 James Henstridge <james@daa.com.au>
8321 * app/interface.c (display_data_received_callback): comment out
8324 2001-03-19 James Henstridge <james@daa.com.au>
8326 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
8328 * objects/UML/realizes.c: similar here.
8330 * objects/UML/implements.c: similar here.
8332 * objects/UML/component.c: similar here.
8334 * objects/UML/generalization.c: same here.
8336 * objects/UML/dependency.c: allow NULL for ->name and
8337 ->stereotype. This fixes a number of problems in loading saved
8340 * lib/properties.c: various changes so that NULL string properties
8343 * objects/standard/line.c (line_update_data):
8344 line->extra.start_long and line->extra.end_long were not being
8345 initialised. This fixes potential problems with the bounding box
8346 of "Standard - Line" objects.
8348 2001-03-19 Hans Breuer <hans@breuer.org>
8350 * app/commands.c : added win32 specific code to display a html
8351 file. #include "text.h" for text_delete_all prototype.
8354 * app/dia.rc : (new) to give Dia win32 an icon
8356 * app/win32print.[ch] : new files to support direct postscript
8357 file printing on win32. Beware: it *requires* a ps-printer!
8359 * app/paginate_psprint.c : disable the signal code for win32 build
8360 and added small specific changes to support win32print.
8362 * app/makefile.msc : added win32print and linking shell32.lib
8364 * lib/libdia.def : updated
8366 2001-03-18 Kevin Breit <battery841@mediaone.net>
8368 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
8371 2001-03-17 James Henstridge <james@daa.com.au>
8373 * app/paginate_psprint.c (diagram_print_ps): add code that traps
8374 SIGPIPEs during printing. This gets rid of a number of crashes
8375 caused by printing (eg. typing an incorrect print command).
8377 * dia.spec (%install): gzip the manpage.
8379 * lib/beziershape.c (beziershape_save): fix off by one error in
8380 beziershape save code, which was adding an extra segment to the
8383 * app/menus.c: add a separator in the gnome version of the help
8386 * app/app_procs.c (app_init): add a --nosplash argument which
8387 disables the splash screen.
8389 * app/dia_embedd.c (main): don't leave the splash screen open for
8390 embeddable component.
8392 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
8393 didn't seem to be showing the splash screen like expected, so I
8394 have replaced it with some code that calls gtk_main() until the
8395 first exposure of the window.
8397 2001-03-16 James Henstridge <james@daa.com.au>
8399 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
8401 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
8404 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
8406 * app/Makefile.am (dia_core_files): remove splash.h from file
8407 list, as it doesn't exist.
8409 * doc/en/Makefile.am (uninstall-local): remove the docdir on
8412 * doc/Makefile.am (uninstall-local): target to remove the C
8415 * dia.spec (%files): include the documentation in the package.
8417 * app/menus.c (toolbox_menu_items): add menu item for manual,
8418 which calls help_manual_callback.
8420 * app/commands.c (help_manual_callback): find help file and load
8421 netscape to view it.
8423 * app/commands.h: add prototype for help_manual_callback()
8425 * doc/Makefile.am (helpdir): similar here.
8427 * doc/en/Makefile.am (helpdir): make the helpdir
8428 $(pkgdatadir)/help/en in the non gnome case.
8430 * configure.in (HAVE_GNOME): add conditional.
8432 * doc/en/Makefile.am: handle the graphics in a more general way,
8433 so it is easier for Kevin to add them to the build (just add them
8434 to the GRAPHICS var).
8436 * app/Makefile.am (embed_extra_print_files): make the case of
8437 building without gnome-print support but with bonobo support work.
8438 dia-embedd needs to be include the gnome-print
8440 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
8442 * samples/Makefile.am: included all samples in the distribution....
8444 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
8446 * configure.in: removed premature test for DPS. Added -*- m4 -*-
8447 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
8448 vanished, removed it from ALL_LINGUAS.
8450 * lib/charconv.[ch] (NEW): a very small wrapper around
8451 unicode_iconv to convert strings between utf8 and local charset
8452 (actually, ISO-8859-1, though one can do
8453 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
8455 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
8456 library to help build Postscript streams which use as many custom
8457 font encodings as necessary to correctly represent all characters
8458 used (testing from users with non-latin1 and/or more than 256
8459 characters in routine use *very* welcome).
8461 * app/Makefile.am, lib/Makefile.am: integrated these into the
8464 * shapes/Logic/.cvsignore (NEW): .cvsignore
8466 * app/render_eps.h: forwarded some changes Lars forgot to include.
8467 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
8470 2001-03-08 Kevin Breit <battery841@mediaone.net>
8472 * doc/en/home_network.png: Added file.
8473 * doc/en/line_props.png: Added file.
8474 * doc/en/usage-objects.sgml: Added two graphics to file.
8475 * doc/en/usage-quickstart.sgml: Added one graphic to file.
8477 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
8479 * app/grid.h: Place comment around text after #endif.
8480 * lib/bezier_conn.c: #include <string.h>.
8481 * lib/beziershape.c: #include <string.h>.
8482 * lib/connpoint_line.h: Comment after #endif.
8483 * lib/dia_dirs.c: #include <string.h>.
8484 * lib/element.c: Same.
8485 * lib/lazyprops.c: #include <config.h> and "intl.h".
8486 * lib/lazyprops.h: Comment out text after #endif.
8487 * lib/neworth_conn.c: #include <string.h>
8488 * lib/orth_conn.c: Same here.
8489 * lib/poly_conn.c: Here too.
8490 * lib/polyshape.c: And here.
8491 * lib/properties.c: Remove #include "intl.h" from here and add
8492 an array of static strings to work around bug in gettext that
8493 makes it miss strings in a #define body.
8494 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
8495 * objects/GRAFCET/boolequation.h: Same here.
8496 * objects/chronogram/chronoline_event.h: Add prototype for
8499 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
8501 * objects/FS/function.c:
8502 * objects/FS/flow.c:
8503 * objects/FS/flow-ortho.c:
8504 Updated to use properties.
8506 2001-03-03 James Henstridge <james@daa.com.au>
8508 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
8509 button labels when creating them.
8511 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
8513 * objects/UML/actor.c
8514 * objects/UML/realizes.c
8515 * objects/UML/implements.c
8516 * objects/UML/generalization.c
8517 * objects/UML/dependency.c
8518 * objects/UML/constraint.c
8519 Updated to use properties.
8521 * objects/UML/stereotype.c
8522 * objects/UML/stereotype.h
8523 Generalized to any kind of bracketting.
8525 2001-02-28 James Henstridge <james@daa.com.au>
8527 * app/menus.c: add help entry to the help menu. Need to get this
8528 working for the non GNOME case as well (maybe put help under
8529 $(datadir)/dia/help for non GNOME?)
8531 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
8533 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
8534 this element so that we get a meaningful filename in the html
8537 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
8540 * configure.in (DB2HTML): add a check for the db2html program, and
8541 set an automake conditional if it is found.
8543 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
8544 and descend into doc/ directory while building.
8546 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
8547 we need more complex rules for building the docs.
8549 2001-02-25 Hans Breuer <hans@breuer.org>
8551 * config.h.win32 : some cleanup
8553 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
8554 are deprecated since glib-1.3.2. Sorry needing to use them
8555 contionally, but there is no glib-1.2 for win32
8557 * app/recent_files.c : use g_strescape (params) conditionally
8559 * lib/connection.c : include string.h for memcpy
8561 * lib/geometry.h : added some stuff for compatibility with
8562 msvc, which previously came from included config.h
8564 * lib/libdia.def : updated
8566 * objects/makefile.msc : updated
8568 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
8569 'extra' used without having been initialized
8571 * objects/network/bus.c(658) : initialize 'extra'
8573 * plug-ins/makefile.msc : updated
8575 * plug-ins/cgm/cgm.c :
8576 * plug-ins/pstricks/render_pstricks.c :
8577 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
8580 * plug-ins/python/python.c : use HAVE_DIRENT_H
8582 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
8584 * lib/connection.c (connection_update_boundingbox):
8585 Made the BB shrink on right and lower sides, too.
8587 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
8589 * */*.c: #incude <config.h> at the top.
8590 * */*.h: Remove include of "config.h" since it should only
8591 be included in .c files and at the very top for things to
8593 * sheets/*.sheet: Updated Norwegian translations.
8595 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
8597 * objects/UML/small_package.c:
8598 * objects/UML/class.c:
8599 * objects/UML/node.c:
8600 * objects/UML/usecase.c:
8601 * objects/UML/lifeline.c:
8602 * objects/UML/message.c:
8603 Various cleanup of properties in particular. Now much more use of
8604 standard properties.
8606 * lib/diagramdata.c (layer_render): Visualization of bounding
8607 boxes, for debugging purpoises.
8609 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
8612 * lib/connection.[ch]:
8613 * lib/poly_conn.[ch]:
8614 * lib/polyshape.[ch]:
8615 * lib/bezier_conn.[ch]:
8616 * lib/beziershape.[ch]:
8617 * lib/orth_conn.[ch]:
8618 * lib/neworth_conn.[ch]:
8619 * lib/element.[ch]: Changed a bit the _update_boundingbox()
8620 interface. Now the parent elements have an extra_spacing
8621 structure, which child objects just need to fill, to take care of
8622 most arrow & line width extra space needs.
8624 * objects/**/*.c: updated all objects to the new interface.
8625 While at it, killed all instances of (Object *) downcasts (phew !)
8627 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
8628 doesn't speak about.
8630 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
8632 * sheets/Logic.sheet: New sheet for Logic symbols.
8634 2001-02-21 James Henstridge <james@daa.com.au>
8636 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
8637 widget by its path name. Walks the GnomeUIInfo heirachy rather
8638 than widget tree, compares untranslated label names and ignores
8639 underscores in the labels.
8640 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
8641 lookups are not dependent on the current locale, as with
8642 gnome_app_find_menu_pos.
8644 * acconfig.h: guard against multiple inclusion of config.h.
8646 * app/select.c (select_style_callback): simply set the selection
8647 style to the value of action.
8649 * app/menus.c (menus_init): simplify the item factory based menu
8650 code a bit. It looks like it was using some code cut and pasted
8651 from the gimp, which looked a bit unnecessary. Things work fine
8653 (selectmenu): set the action to the type of selection mode
8655 (display_menu_items): use the symbolic enumeration values for the
8658 * app/plugin-manager.c:
8659 * app/plugin-manager.h:
8663 * app/select.h: change prototypes.
8665 * app/commands.c: update all callback prototypes, and get rid of
8666 some #ifdef GNOME's.
8668 * app/commands.h: change function prototypes.
8670 * app/dia_embedd.c (save_fn):
8671 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
8673 * app/menus.c (menus_init): for gnome menus, use
8674 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
8675 structure that proxies the callbacks to have the same signature as
8676 GtkItemFactory type 1 callbacks.
8677 (menus_init): for GTK menus, change from callback type 2 to type
8679 (display_menu_items): add back tearoffs. I don't know who removed
8680 these for the gtk menu case.
8682 2001-02-20 Kevin Breit <battery841@mediaone.net>
8684 * doc/en/usage-objects-special.sgml: Fixed a few of the special
8685 object descriptions. More to come in the next few days.
8687 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
8689 * app/render_eps.c: Fixed for internationalized floating point
8692 * objects/UML/note.c: Fixed properties -- was missing
8693 Get/ApplyPropertiesFunc. Also improved update to recalculate text
8696 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
8698 * plug-ins/xfig/xfig-import.c:
8699 File added importing xfig files. Still very rough, but good
8700 enough to let others hack on it.
8702 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
8705 * app/linewidth_area.c:
8709 * objects/ER/attribute.c:
8710 * objects/ER/entity.c:
8711 * objects/ER/relationship.c:
8712 * objects/custom/custom_object.c:
8713 * objects/flowchart/box.c:
8714 * objects/flowchart/diamond.c:
8715 * objects/flowchart/ellipse.c:
8716 * objects/flowchart/parallelogram.c:
8717 * objects/standard/box.c:
8718 * objects/standard/textobj.c: per Vlad Harchev's request, made
8719 page sizes of gtk_adjustments different than their step sizes.
8720 When sensible values of page size weren't found (overwhelming
8721 majority of cases), page sizes were set to 10.0 * respective step
8724 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
8726 * objects/network/hub.c:
8727 Patch from Hubert Figuiere applied, adding connection points.
8729 2001-02-02 James Henstridge <james@daa.com.au>
8731 * app/display.c (new_display): set update id to 0 here.
8732 (ddisplay_update_handler): rename from ddisplay_flush, and set
8733 update_id to 0 at end of processing.
8734 (ddisplay_flush): new implementation that simply sets an idle
8735 handler to perform the actual drawing.
8737 * app/display.h: add structure member to hold the redraw idle
8740 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
8742 * objects/standard/ellipse.c (ellipse_copy):
8743 * objects/standard/zigzagline.c (zigzagline_copy):
8744 Fix of copying provided by Martin Hawlisch.
8746 2001-01-23 Kevin Breit <battery841@mediaone.net>
8748 * doc/en/graphics/: added directory
8750 * doc/en/graphics/greendots.png: added file
8752 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
8755 2001-01-23 Kevin Breit <battery841@mediaone.net>
8757 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
8758 thanks to John Fleck!
8760 2001-01-21 Kevin Breit <battery841@mediaone.net>
8762 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
8764 2001-01-12 Michael Meeks <michael@helixcode.com>
8766 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
8767 so our POA gets setup properly.
8769 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
8772 * configure.in: Use bonobox_print.
8774 * app/dia_embedd.c (embeddable_factory): add print interface.
8775 (object_print): impl.
8777 2001-01-11 Michael Meeks <michael@helixcode.com>
8779 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
8780 (load_fn, save_fn): impl.
8781 (view_factory): hide modified status bar, & use activate fn.
8782 (refresh_view): force redraws of the views.
8783 (view_show_hide): split from
8784 (dia_view_activate): here.
8786 * app/diagram.c (diagram_load_into): split from diagram_load.
8787 (new_diagram): simplify bu splittin stuff into
8788 (diagram_init): here.
8790 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
8792 * shapes/jigsaw/*.shape: replaced #000000 with foreground
8793 and #ffffff with background
8795 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
8797 *configure.in: GTK+-build was broken due to missing
8800 2001-01-06 Michael Meeks <michael@helixcode.com>
8802 * app/dia_embedd.c (main): add running context support.
8803 (dia_embeddable_destroy): remove old running object counting.
8804 (embeddable_factory): ditto.
8805 (view_factory): comment out menu path hiding.
8807 * lib/sheet.c (load_register_sheet): use free to free
8808 stuff from libxml not g_free.
8810 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
8812 * configure.in: remove USE_OAF checks, check for a precice
8813 Bonobo version >= 0.31, revamp bits.
8815 * app/dia_embedd.c (init_server_factory): upd.
8816 (init_dia_factory): remove OAF conditionals, everything uses
8819 * app/GNOME_Dia.oafinfo: rename OAFIIDs
8821 * app/Makefile.am: remove ancient gnorba code.
8822 rename dia.oafinfo to GNOME_Dia.oafinfo
8824 2001-01-07 Hans Breuer <Hans@Breuer.Org>
8828 * readme.win32 : some more files required or useful to build
8831 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
8832 fill_bezier implementation, boundary drawing in fill mode, etc.
8833 Next one complaining gets the source, uncommented ...
8835 * shapes/network/router-symbol.xpm
8836 * shapes/network/switch-atm-symbol.xpm
8837 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
8838 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
8839 the files as XPMs. Maybe the X versions of these functions are more
8842 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
8844 * plug-ins/python/Makefile.am: added libart path
8846 * plug-ins/python/python.c: added dirent.h
8848 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
8850 2001-01-06 Hans Breuer <Hans@Breuer.Org>
8852 * objects/uml/actor.c
8853 * objects/uml/branch.c
8854 * objects/uml/class.c
8855 * objects/uml/classicon.c
8856 * objects/uml/component.c
8857 * objects/uml/large_package.c
8858 * objects/uml/node.c
8859 * objects/uml/note.c
8860 * objects/uml/object.c
8861 * objects/uml/small_package.c
8862 * objects/uml/state.c
8863 * objects/uml/usecase.c : started to implement the generic property
8864 interface for the uml objects. Would appreciate some help on how
8865 to implement properties which are list of properties themselves,
8866 e.g. member functions and their parameters of UMLClass.
8868 2001-01-06 Hans Breuer <Hans@Breuer.Org>
8870 * plug-ins/python/diamodule.c : finally ported to win32.
8871 Added new objects and implemented register_export function.
8873 * plug-ins/python/pydia-object.h
8874 * plug-ins/python/pydia-display.c
8875 * plug-ins/python/pydia-handle.c
8876 PyObject_HEAD_INIT needs some tweakink on win32. Done in
8877 pydia-object.h; others files simply using it.
8879 * plug-ins/python/pydia-layer.c : reflect
8880 layer_find_closest_connection(_)point renaming
8882 * plug-ins/python/pydia-object.c : add property properties.
8883 Also change bounding_box to DiaRectangle.
8885 * plug-ins/python/python.c : extended error reporting; use
8886 all *.py files from Dia's plug-in dir instead of hardcoded
8887 test.py. This sollution should be fine with Win32, but on
8888 Unix it may need some tweaking (dunno) ...
8890 * plug-ins/python/export-object.py
8891 * plug-ins/python/export-render.py : test and documentation
8892 implementations for export filter implementations in Python
8894 * plug-ins/python/pydia-color.[hc]
8895 * plug-ins/python/pydia-diagramdata.[hc]
8896 * plug-ins/python/pydia-error.[hc]
8897 * plug-ins/python/pydia-export.[hc]
8898 * plug-ins/python/pydia-font.[hc]
8899 * plug-ins/python/pydia-geometry.[hc]
8900 * plug-ins/python/pydia-image.[hc]
8901 * plug-ins/python/pydia-properties.[hc]
8902 * plug-ins/python/pydia-property.c
8903 * plug-ins/python/pydia-render.c : new objects in new files
8905 * plug-ins/python/makefile.am : added new files but can't test it
8907 * plug-ins/python/pydia.def
8908 * plug-ins/python/makefile.msc : for win32 build
8910 * plug-ins/cgm/cgm.c
8911 * plug-ins/dxf/dxf-import.c
8912 * plug-ins/dxf/dxf-export.c
8913 * plug-ins/hpgl/hpgl.c : reflect export API change
8915 * plug-ins/shape/shape-export.c : reflect export API change
8916 and check for libart (better the availibility of a png exporter)
8917 at run-time instead of compile-time.
8919 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
8921 * app/recent_files.h was missing from Hans's commit
8923 * plug-ins/shape/shape_export.c: shape export was broken
8924 due to interface changes
8926 2001-01-05 Hans Breuer <Hans@Breuer.Org>
8928 Applied Steffen's recent file list patch :
8929 * app/Makefile.am : added recent_files.[hc]
8930 * app/diagram.c : add files to recent file list
8931 * app/menus.c : add recent file menu
8932 * app/app_procs.c : changed initialization order to
8933 make recent file list work with command line processing.
8935 The Filter export()/import() functions have got an additional
8936 parameter to allow multiple filters via one C callback (required
8937 for Python bindings)
8939 * app/commands.[hc] : corrected the signature for gtk menu callback
8940 functions, which actually use the second or third parameter. This
8941 is the absolute minimum change to make these functions/menu entries
8942 work again. Using the other possible gtk menu callback signature
8943 would have required one more function to change. (see mailing list
8944 thread "Objects/Align/Equal Distance" for more information.
8946 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
8947 zoom-combo focus patch
8950 * app/interface.c : wrapped the Zoom Combo code into
8951 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
8952 improvement but cluttering the user interface. Also it wasn't
8953 compiling on Win32 anyway. The win32 version does define
8954 WITHOUT_ZOOM_COMBO to keep the old look.
8955 There are plans to use the statusbar to display size and placement
8956 of selected objects, whereas the Zoom Combo would need to get out
8959 Added "Save Changes?" to diagram close dialog. Hopefuly the
8960 Yes/No/Cancel option isn't too much windoze like. IHMO this is
8961 an useability improvement.
8966 * app/layer_dialog.c
8967 * app/paginate_psprint.c
8969 - reflect signature changing of filter->export function
8970 - replaced '/' with G_DIR_SEPARARTOR where appropriate
8972 * app/diaunitspinner.c
8973 * app/render_libart.c
8974 added misssing headers like <string.h>
8976 * app/object_ops.c : fixed copy&paste bug in dialog string
8978 * app/splash.c : gdk_widget_show_now () does not ensure actual
8979 drawing of the splash screen, at least not on win32. Reuse the
8980 previous implementation with gtk_main_iteration() again.
8982 * */makefile.msc : make use of the build module (available in
8983 gnome-cvs/build. Updated for other source changes
8985 * lib/filter.h : added an user_data pointer to <ex/im>port()
8986 function signature and Dia<Im/Ex>portFilter to allow different
8987 filters to reuse the same callback function
8989 * lib/font.c : #include <string.h>
8994 * lib/neworth_conn.c
8995 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
8997 * */*.def : export function definition files required by win32 build
8999 * objects/custom/custom.c : #include <string.h>
9001 * plug-ins/pstricks/render_pstricks.c
9002 * plug-ins/shape/shape_export.c
9003 * plug-ins/svg/render_svg.c
9004 reflect changes to filter export function signature
9006 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
9007 mostly work as expected
9008 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
9009 to build the wmf plug-in because on the one hand the GDI emulation
9010 isn't finished and on the other hand it isn't required when building
9011 for win32. Is there anybody out there, who wants to save WMF on non
9014 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
9015 offset into account.
9017 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
9019 * app/Makefile.am: added missing plug-ins to run_dia.sh
9021 * lib/paper.c: added paper sizes A0, A1, A2
9023 * objects/UML/class.c
9025 objects/UML/class_dialog.c: added support for colored UML
9028 2000-12-30 Kevin Breit <battery841@mediaone.net>
9030 * doc/en/usage-customization.sgml: added more content
9032 2000-12-24 Kevin Breit <battery841@mediaone.net>
9034 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
9035 <remy.viard@laposte.net>
9037 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
9039 * added limiting lines to Civil Engineering sheet,
9040 fixed vertical pump icon
9042 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
9044 * updated/additional Civil Engineering shapes: better icons,
9045 shapes use foreground/background colors now and are filled
9047 2000-12-03 Kevin Breit <battery841@mediaone.net>
9049 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
9050 the selection <sect1>
9052 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
9054 * app/load_save.c (diagram_data_save): avoid using obsoleted
9055 libxml calls (only matters when compiling with libxml2)
9057 2000-11-25 James Henstridge <james@daa.com.au>
9059 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
9060 handle the tool drops on the canvas.
9062 * app/interface.c (display_data_received_callback): do the check
9063 to make sure that the drag is from a local toolbox here as well.
9065 * app/interface.c (create_tools): unref the pixmap/mask after
9066 creating the GtkPixmap.
9067 (tool_setup_drag_source): function to set up a drag source for
9068 create object tool buttons.
9069 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
9070 (fill_sheet_wbox): same here.
9071 (create_display_shell): set up the display canvas as a drag
9073 (display_drop_callback, display_data_received_callback): functions
9074 to handle drops of tool buttons.
9076 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
9077 does weird shit to the user_data pointer for a menu item. Object
9078 alignment should work again now.
9080 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
9081 NULL, and mark this function static.
9082 (app_splash_init): use gtk_widget_show_now() instead of the
9083 gtk_main_iteration loop.
9084 (app_splash_init): connecting gtk_widget_destroy to the destroy
9085 signal of a widget seems pretty useless.
9087 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
9089 * doc/en/dia-manual.sgml:
9090 Added sect1 for advanced object types. Starting development
9093 2000-11-18 Kevin Breit <battery841@mediaone.net>
9095 * doc/en/dia-manual.sgml:
9096 Stupid spelling fixes.
9098 2000-11-18 Kevin Breit <battery841@mediaone.net>
9100 * doc/en/dia-manual.sgml:
9101 Just some small changes I made. Props to Greg LeBlanc on the
9104 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
9107 (ddisplay_add_display_area): Clip input rectangle to
9108 the visible part of the display.
9109 (ddisplay_scroll): Optimization, don't scroll and
9110 redraw if moving to the same position as before.
9112 * app/render_libart.c (renderer_libart_copy_to_window):
9113 Removed sanity check. Now moved to ddisplay_add_display_area().
9116 Added return at end of file.
9118 2000-11-13 Kevin Breit <battery841@mypad.com>
9119 * doc/en/dia-manual.sgml
9120 Commited manual changes from Henry House <hajhouse@houseag.com>
9122 2000-10-21 Hans Breuer <Hans@Breuer.Org>
9123 * lib/beziershape.c :
9124 The previous code was accessing unowned memory due to IHMO
9125 wrong index calculation. Now it appears to be fixed.
9129 * plug-ins/makefile.msc
9130 * objects/makefile.msc
9131 * app/makefile.msc: (new files)
9132 Makefiles for Dia on Win32, Micro$oft VC only.
9134 * plug-ins/pstricks/render_pstricks.c
9135 * plug-ins/dxf/dxf-import.c
9136 * plug-ins/shape/shape-export.c
9137 * plug-ins/svg/render_svg.c
9144 * objects/custom/custom.c
9145 * objects/standard/image.c
9146 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
9147 where appropriate, add missing prototypes like <string.h>
9149 * plug-ins/wmf/wmf_gdi.cpp
9150 * plug-ins/wmf/wmf_gdi.h:
9151 start of wmf write functions for non Win32 platform. Not
9152 finished yet. The other way to get it working maybe to
9153 link the plug-in against wine libs.
9155 * plug-ins/wpg/wpg.c : add missing brace
9158 Handling for unknown objects at load time. Previously Dia
9159 was crashing, if you try to load a file referencing objects
9160 whiches plug-ins aren't installed/available. Now it spits out
9161 a warning and ignores the unknown objects.
9164 toolbox DND support for files like The Gimp does it.
9168 Simple splash screen support and usage.
9171 Splash screen, portability fixes, dont' g_error if there is
9172 g_get_homedir return NULL. This may remove the one and only
9176 Make it compile without ENABLE_NLS
9178 * app/render_libart.c :
9179 Sanity check to avoid calling libart with wrong window coordinates.
9180 They come from the update handler. Direct Gdk is dealing nicely
9181 with coordinates out of range, libart does access un-owned memory
9182 in this case, mostly causing crashes.
9184 * app/winmain.c: (new file) Export the Win32 Gui version of the
9185 main function. This file is only required for Windoze.
9187 * app/splash.c: (new file) splash screen implementation
9191 * lib/diavar.h: (new file)
9192 moved special variable export code to diavar.h, because it is
9193 needed in color.h and font.h
9196 M$VC cann't export inlined functions. Quick hack to let it
9197 link again. Probably the glib mechanics should be used here?
9199 * objects/UML/lifeline.c : initialize var before usage
9201 * objects/GRAFCET/step.c : removed unused var
9203 2000-10-14 James Henstridge <james@daa.com.au>
9205 * app/render_gnomeprint.c (draw_image): change code so images
9206 don't get flipped when printing.
9208 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
9209 sure that the return value of
9210 gnome_print_context_new_with_paper_size is not NULL.
9212 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
9213 into a series of bezier segments.
9214 (fill_arc): similar code to handle filled arc segments.
9216 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
9223 * app/disp_callbacks.c
9225 * app/linewidth_area.c
9226 * app/paginate_psprint.c
9231 * app/neworth_conn.c
9233 * objects/standard/box.c: various small changes to get rid of
9234 annoying warnings (eg faulty prototypes and unused variables)
9236 * app/disp_callbacks.c
9239 * app/magnify.h: update magnify tool icon when pressing/releasing
9240 shift. I will try to make something more general so that similar
9241 things can be used by other tools.
9243 * shapes/SDL/inout.shape
9244 * shapes/SDL/return.shape: fixed some typos
9246 2000-10-09 James Henstridge <james@daa.com.au>
9248 * objects/custom/shape_info.c (parse_path): apply patch from
9249 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
9252 2000-10-08 James Henstridge <james@daa.com.au>
9254 * objects/standard/image.c (image_set_props): if the file could not
9255 be loaded, show the broken image icon.
9257 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
9259 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
9261 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
9262 object icon when loading from a file. This allows you to have PNG
9263 icon files for shapes.
9265 2000-10-07 James Henstridge <james@daa.com.au>
9267 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
9269 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
9270 GDK_IMLIB_CFLAGS reference.
9272 * app/commands.c (help_about_callback): remove imlib code.
9274 * lib/dia_image.c: only include the pixbuf version of the image
9277 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
9279 * configure.in (CPPFLAGS): remove the check for imlib, as we now
9282 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
9283 conditionally define \setfont as well.
9285 2000-10-05 James Henstridge <james@daa.com.au>
9287 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
9288 preamble so that we define \setlinejoinmode and \setlinecaps
9289 commands conditionally on them being undefined. This way, the
9290 pstricks output files should work without modification, and will
9291 support the commands when they are implemented in pstricks.
9293 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
9295 * dia.desktop: added hungarian translations to dia.desktop
9297 2000-10-04 James Henstridge <james@daa.com.au>
9299 * sheets/UML.sheet: fix typo.
9301 * objects/custom/shape_info.c: use strtod instead of g_strtod.
9302 (parse_path): actually call setlocale around strtod calls.
9304 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
9305 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
9306 the g_strtod wrapper.
9308 * shapes/SDL/: add SDL shapes from Rubens Ramos
9309 <rubens_ramos@yahoo.com>
9311 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
9313 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
9315 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
9316 W. Michael Petullo <mike@flyn.org>.
9318 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
9319 from the 0.86 tarball) and jigsaw.sheet.
9321 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
9323 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
9325 * shapes/network/: add network-additional shapes here.
9327 * sheets/network.sheet: add the network-additional shapes from
9328 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
9331 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
9333 * configure.in: Updated ALL_LINGUAS
9335 * po/nl.po: Removed newline from translation
9337 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
9339 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
9340 logo filename generation.
9342 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
9343 Avoiding "//dia_logo.png".
9345 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
9347 * app/filedlg.c: add include <sys/types.h> to
9348 remove warning. (OS/2)
9350 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
9352 * objects/chronogram/chronoline_event.c (reparse_clevent):
9353 the __checksum routine was simply bogus. Redone it in a slightly
9354 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
9356 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
9358 * app/create_object.c (create_object_button_press):
9359 * app/modify_tool.c (click_select_object):
9360 * lib/object.h: select renamed to selectf to prevent
9361 compiler problems with function select(). OS/2 version.
9363 2000-09-08 Karsten Weiss <knweiss@gmx.de>
9365 * po/de.po: Updated.
9367 2000-09-07 Karsten Weiss <knweiss@gmx.de>
9369 * dia.desktop: Added German translation
9370 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
9372 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
9374 * configure.in (ALL_LINGUAS): added "es"
9376 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
9381 * app/scroll_tool.c:
9382 Standardized cursor function get_cursor(). Magnify now has
9383 looking-glass cursor with + and -.
9385 * app/create_object.c (create_object_button_press):
9386 Newly created connections now snap to connection points even when
9389 2000-08-17 Daniel Egger <egger@suse.de>
9391 * app/menus.c: #ifdef'ed some code for the none GNOME
9393 * app/dia_embedd.c: Changed obvious hackery. Can anyone
9394 please have a look at the GNOME UI menu creation? The
9395 gnome-app-helper code is ages old and plainly broken!
9397 2000-08-15 Daniel Egger <egger@suse.de>
9404 * app/select.c: First big patch to get the menus
9405 working again in the international version. Copied
9406 some code written by Sven and me from GIMP and
9407 thus implemented automatic tearoffmenu creation and
9408 proper translation. I also removed that pseudo
9409 radiomenu hack and cleaned up several translation
9410 hacks which have never really worked. All in all
9411 this is part I of the big menu patch. Enjoy and tell
9412 me if you detect any problems.
9414 2000-08-14 Daniel Egger <egger@suse.de>
9416 * sheets/UML.sheet: Changed one German translation as
9417 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
9419 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
9421 * app/diapagelayout.c:
9422 * lib/diagramdata.c:
9423 * lib/diagramdata.h:
9426 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
9427 selecting paper size for a new diagram. TODO: Use libpaper if
9428 available and use gnome_paper-stuff if using GNOME.
9430 * sheets/Electric.sheet: fixed typo.
9432 2000-08-08 James Henstridge <james@daa.com.au>
9434 * po/README: added a readme file to tell translators to translate
9435 the .sheet files as well.
9437 * app/commands.c (help_about_callback): fix small bug where we tried
9438 to gdk_bitmap_unref() the mask for the about box image, even though
9439 it was NULL. Now check for a NULL mask.
9441 2000-08-07 Daniel Egger <egger@suse.de>
9443 * sheets/*.sheet: Added translations for the name
9444 in the toolbar tab. Brushed up some descriptions
9445 and some translations a bit.
9447 2000-08-06 James Henstridge <james@daa.com.au>
9449 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
9450 identifier and dtd url for SVG output.
9451 (new_svg_renderer): fix the output of the viewBox output. The
9452 second two numbers are the width and height -- not the right
9453 and bottom sides of the box.
9455 * shapes/*/*.shape: update svg namespace URI.
9457 * objects/custom/shape_info.c (load_shape_info): change the
9458 namespace URI for custom shapes yet again to match the Candidate
9459 Recommedation. It looks like this one will probably be the final
9462 * app/display.c (new_display): remove the code that sets ic and
9463 ic_attr members to NULL, as one of the previous function calls
9464 causes the display to be realised. This means that the ic gets
9465 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
9468 2000-08-06 James Henstridge <james@daa.com.au>
9470 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
9472 * NEWS: fixed date in NEWS file, as I will release today.
9474 * README: updated the README a little. Added note that Dia is now
9477 * dia.spec: fix up spec file.
9479 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
9481 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
9482 get heaps of warnings when you turn off debugging.
9483 Also made a few other warning fixes.
9485 2000-08-02 James Henstridge <james@daa.com.au>
9487 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
9489 * configure.in: update version number.
9491 2000-08-01 James Henstridge <james@daa.com.au>
9493 * app/commands.c (help_about_callback): add Hans to about dialog.
9495 * doc/shape.dtd: dtd for shape file format.
9497 * doc/custom-shapes: update doc file about creating custom shapes.
9499 * shapes/*/*.shape: change namespace URI for the SVG portion to the
9500 one for the latest draft.
9502 * shapes/*/*.shape: fix up rect definitions.
9504 * objects/custom/shape_info.c (load_shape_info): recognise newer
9505 namespace tag for SVG.
9506 (parse_svg_node): the rect element should take attributes x, y, width
9507 and height -- not x1,y1,x2,y2.
9509 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
9510 output to use the newest draft DTD.
9512 * plug-ins/svg/svg.c: initialisation code for plugin.
9514 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
9516 * plug-ins/svg/Makefile.am: makefile for svg plugin.
9518 * app/app_procs.c (internal_plugin_init): don't register the svg
9521 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
9523 2000-07-31 James Henstridge <james@daa.com.au>
9525 * objects/standard/textobj.c (textobj_get_defaults):
9526 * objects/standard/polygon.c (polygon_get_defaults):
9527 * objects/standard/image.c (image_get_defaults):
9528 * objects/standard/ellipse.c (ellipse_get_defaults):
9529 * objects/standard/box.c (box_get_defaults):
9530 * objects/standard/beziergon.c (beziergon_get_defaults):
9531 * objects/flowchart/parallelogram.c (pgram_get_defaults):
9532 * objects/flowchart/ellipse.c (ellipse_get_defaults):
9533 * objects/flowchart/diamond.c (diamond_get_defaults):
9534 * objects/flowchart/box.c (box_get_defaults):
9535 * objects/custom/custom_object.c (custom_get_defaults):
9536 * objects/FS/flow.c (flow_get_defaults):
9537 * objects/FS/flow-poly.c (flow_get_defaults):
9538 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
9541 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
9542 widgets for various object types.
9543 (create_dialog): ref and sink the no_defaults_dialog.
9545 * app/preferences.c (prefs_create_dialog): change
9546 gtk_container_border_width call to gtk_container_set_border_width.
9548 2000-07-29 James Henstridge <james@daa.com.au>
9550 * app/commands.c (view_aa_callback): show a warning dialog if
9553 * app/interface.c (fill_sheet_menu): don't add a menu item for
9556 2000-07-26 James Henstridge <james@daa.com.au>
9558 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
9560 * app/menus.c: remove edit grid menu item.
9562 * app/commands.[ch] (view_edit_grid_callback): removed.
9564 * app/display.c (new_display): don't initialise removed Grid members.
9566 * app/grid.c: remove unused functions.
9568 * app/grid.h: remove dialog related stuff from Grid structure.
9569 Remove prototypes for dialog functions.
9571 * app/menus.c: add to menus
9573 * app/commands.[ch] (view_diagram_properties_callback): new command
9574 for showing the diagram properties dialog.
9576 * app/dia-props.[ch]: a new diagram properties dialog. To replace
9577 the edit grid dialog.
9579 2000-07-25 James Henstridge <james@daa.com.au>
9581 * app/grid.c (grid_x_update):
9582 (grid_y_update): as the grid setting is stored with the diagram,
9583 update all displays when a change is made.
9585 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
9587 * app/create_object.c (create_object_button_press):
9588 (create_object_motion): use new snap_to_grid signature.
9590 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
9591 and handle invisible grid lines.
9592 (snap_to_grid): use new grid settings. Also changed signature to
9593 take a DDisplay rather than Grid pointer.
9594 (grid_show_dialog): get the defaults from the correct place.
9596 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
9598 * app/diagram.c (new_diagram): set the grid size defaults from the
9601 * app/load_save.c (diagram_data_save): save grid and guide info to
9603 (diagram_data_load): add guide and grid load support.
9605 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
9608 * lib/diagramdata.h: add members to DiagramData for grid and guide
9611 * configure.in (BONOBO_LIBS): update configure scripts
9613 * app/dia.oafinfo: oafinfo file for dia embeddables.
9615 * app/dia_embedd.c: add OAF support.
9617 2000-07-24 James Henstridge <james@daa.com.au>
9619 * plug-ins/wpg/Makefile.am:
9620 * plug-ins/pstricks/Makefile.am:
9621 * plug-ins/hpgl/Makefile.am:
9622 * plug-ins/dxf/Makefile.am: same here.
9624 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
9625 the required libraries, and the link line was causing libtool not
9626 to build a shared library on some systems :(
9628 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
9629 be checking x, not n.
9631 2000-07-23 James Henstridge <james@daa.com.au>
9633 * app/preferences.c (prefs_data): set the "reset tools after
9634 create" preference to true by default. That seems to be what most
9637 * app/interface.c (create_sheets): instead of a notebook, use an
9638 option menu that updates the sheet tools. The notebook tabs were
9639 getting a bit unwieldly, so the option menu should fix that. This
9640 also reduces the number of widgets in the tools radio button
9641 group, which should make the UI a little more responsive.
9643 2000-07-19 Fatih Demir <kabalak@gmx.net>
9645 * configure.in: Added tr to ALL_LINGUAS.
9646 [ Yeah, we're now having a Turkish translation,
9649 * dia.desktop: Added the Turkish entries.
9651 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
9653 * doc/diagram.dtd: changed string-element so it conforms to the
9656 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
9658 * configure.in: added chinese.
9659 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
9667 objects/custom/shape_info.c:
9668 shapes/Circuit/npn.shape:
9669 shapes/Circuit/pnp.shape:
9670 sheets/*.sheet: dia now works with libxml2.
9671 Libxml2 is a bit more picky when parsing xml and reported errors on all
9672 sheet files because they use non ascii characters (added
9673 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
9674 I commented out these.
9676 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
9678 * configure.in (ALL_LINGUAS): added Italian
9680 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
9682 * configure.in (ALL_LINGUAS): added Korean
9684 2000-06-25 James Henstridge <james@daa.com.au>
9686 * objects/flowchart/parallelogram.c (pgram_create): use default font
9687 and add properties interface support.
9689 * objects/flowchart/ellipse.c (ellipse_create): use default font and
9690 add properties interface support.
9692 * objects/flowchart/diamond.c (diamond_create): use default font and
9693 add properties interface code.
9695 * objects/flowchart/box.c (box_create): use default font.
9697 * objects/custom/custom_object.c (custom_create): use default font
9700 * objects/standard/textobj.c (textobj_create): update to use default
9703 * lib/attributes.c: add implementations.
9705 * lib/attributes.h (attributes_[gs]et_default_font): add function
9706 prototypes for setting/getting a default font.
9708 2000-06-24 James Henstridge <james@daa.com.au>
9710 * app/paginate_gnomeprint.h: updated prototype.
9712 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
9713 diagram page settings.
9715 * objects/standard/beziergon.c (beziergon_copy): same here.
9717 * objects/standard/polygon.c (polygon_copy): copy the fill colour
9721 * app/tool.h (tool_options_dialog_show):
9722 * app/scroll_tool.h (free_scroll_tool):
9724 * app/render_libart.h (renderer_libart_copy_to_window):
9725 * app/render_gdk.h (renderer_gdk_copy_to_window):
9726 * app/properties.h (properties_hide_if_shown):
9727 * app/preferences.h (prefs_load):
9729 * app/modify_tool.h (free_modify_tool):
9730 * app/magnify.h (free_magnify_tool):
9731 * app/linewidth_area.h (linewidth_area_create):
9732 * app/layer_dialog.h:
9733 * app/handle_ops.h (handle_is_clicked):
9735 * app/grid.h (grid_destroy_dialog):
9736 * app/defaults.h (defaults_show):
9737 * app/cut_n_paste.h (cnp_exist_stored_objects):
9738 * app/create_object.h (free_create_object_tool):
9739 * app/connectionpoint_ops.h (diagram_unconnect_selected):
9741 * app/color_area.h (color_area_create):
9742 * app/app_procs.h (app_is_embedded): remove extern keyword from
9743 function prototypes.
9746 * lib/sheet.h (load_all_sheets):
9747 * lib/render_store.h:
9748 * lib/render_object.h (render_object_load):
9749 * lib/polyshape.h (polyshape_closest_segment):
9750 * lib/poly_conn.h (polyconn_closest_segment):
9753 * lib/objchange.h (new_object_state_change):
9754 * lib/neworth_conn.h (neworthconn_add_segment):
9755 * lib/message.h (message_error):
9758 * lib/font.h (font_descent):
9759 * lib/focus.h (remove_focus):
9761 * lib/diagramdata.h:
9762 * lib/dia_xml.h (data_add_composite):
9764 * lib/connpoint_line.h:
9765 * lib/connection.h (connection_move_handle):
9767 * lib/attributes.h (attributes_set_default_line_style):
9768 * lib/arrows.h (arrow_draw): remove extern keyword from function
9769 definitions. It is not required for functions.
9771 * plug-ins/dxf/Makefile.am (INCLUDES):
9772 * plug-ins/pstricks/Makefile.am (INCLUDES):
9773 * plug-ins/cgm/Makefile.am (INCLUDES):
9774 * objects/SADT/Makefile.am (INCLUDES):
9775 * objects/chronogram/Makefile.am (INCLUDES):
9776 * objects/GRAFCET/Makefile.am (INCLUDES):
9777 * objects/flowchart/Makefile.am (INCLUDES):
9778 * objects/sybase/Makefile.am (INCLUDES):
9779 * objects/FS/Makefile.am (INCLUDES):
9780 * objects/standard/Makefile.am (INCLUDES):
9781 * objects/network/Makefile.am (INCLUDES):
9782 * objects/UML/Makefile.am (INCLUDES): same here.
9784 * objects/ER/Makefile.am: changed inclusion of some macros to
9787 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
9788 handle the plug in extension, rather than have all the #ifdef's in
9791 * plug-ins/Makefile.am: add renderer.inc to dist.
9793 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
9795 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
9797 * lib/plug-ins.c: Handle OS/2 dll's too.
9799 2000-06-07 James Henstridge <james@daa.com.au>
9801 * app/plugin-manager.c (get_plugin_manager): set some table
9802 packing options to make it look a little nicer.
9804 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
9805 makefiles for these plug-ins.
9807 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
9809 * configure.in: added hpgl and wpg directories to build. Added
9810 note about whether gnome-print support was enabled, and noted that
9811 it is not recommended.
9813 2000-06-06 James Henstridge <james@daa.com.au>
9815 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
9816 a little work, but I am checking them in so I don't lose them.
9818 2000-06-01 James Henstridge <james@daa.com.au>
9820 * objects/standard/arc.c: added extra properties.
9822 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
9823 was using the wrong index into the handles array. This gets corner
9824 type changing working correctly.
9826 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
9827 to properties code (no editing or loading yet though). Also added
9828 support for point array manipulation through the offsets interfaces.
9830 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
9832 * app/interface.c (origin_button_press): changes so the origin
9833 button doesn't grab the pointer when we pop up the menu.
9835 * app/commands.c (help_about_callback): fix small memory leak in
9838 * app/menus.c (menus_init): fixed breakage I introduced in the non
9839 gnome menus when I was doing the menu changes. The tearoffs work
9840 really nicely in plain gtk mode as well.
9842 * objects/standard/beziergon.c (beziergon_create): changed the
9843 returned handles to match the handle numbering changes. Now
9844 segment addition and removal works correctly with undo!
9846 * lib/beziershape.c: various changes to the code. Changed the
9847 numbering of handles, and fixed the segment removal code.
9849 2000-05-31 James Henstridge <james@daa.com.au>
9851 * objects/standard/beziergon.c: remove connection point handling.
9852 There is still a bit of work to be done to get adding and removing
9853 of segments working correctly.
9855 * lib/beziershape.c: add connection point handling to beziershape.
9856 I set it for two connection points per segment.
9858 2000-05-30 James Henstridge <james@daa.com.au>
9860 * objects/standard/polygon.c: don't do connectionpoint handling.
9862 * lib/polyshape.c: changed to handle connection points internally.
9863 Also, don't worry about connections to handles on polyshape, as
9864 all handles are non connectable.
9866 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
9868 * configure.in: Added finnish
9870 2000-05-30 James Henstridge <james@daa.com.au>
9872 * sheets/*.sheet: translation updates to the .sheet files.
9874 * po/fr.po: updated po file from Christophe Merlet.
9876 * menus.h: removed prototypes for functions which have been removed.
9878 2000-05-29 James Henstridge <james@daa.com.au>
9880 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
9881 item in the option menu when changing selected diagram.
9883 * app/dia_embedd.c (view_factory): fix up function to work with new
9886 * app/disp_callbacks.c (ddisplay_realize): remove call to
9887 display_set_active from here.
9888 (ddisplay_canvas_events): move call here. This gets rid of all the
9889 warnings, as the renderer has been fully set up correctly at this
9892 * app/menus.c (menus_init): add the tearoff item to the start of the
9895 * app/app_procs.c (create_user_dirs): we don't need to create the
9896 menus directory anymore.
9898 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
9899 necessary to update the menu state here, as it was done when the
9900 active display was set.
9902 * app/display.c (display_set_active): update the menu state when
9903 changing active displays.
9905 * app/interface.c (origin_button_press): set the display as active
9906 when a click is made on the menu button.
9908 * app/menus.c (menus_init): set up a quit function to save the accels
9910 Add tearoff items for the non GNOME menus, add accelerators for
9911 several GNOME menus.
9913 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
9914 menus_get_image_menu().
9916 * app/menus.c (menus_get_item_from_path): use display_menus here
9917 rather than ddisp->popup.
9919 * app/display.h: remove the popup member in the DDisplay structure.
9921 * app/interface.c: remove option of not using wrap box.
9922 (create_toolbox): change to always use menus_get_toolbox_menubar
9923 even when using gnome menus.
9924 (create_display_shell): use menus_get_image_menu to load accelerators
9925 only -- not the actual popup menu.
9927 * app/menus.c (menus_init): new function to create the menus.
9928 (menus_get_toolbox_menubar): use this function whether gnome is
9929 in use or not. Changed to use menus_init.
9930 (menus_get_image_menu): same here. Also, now this function always
9931 returns the same menu, rather than a new one each time.
9932 (menus_init): read a menurc file to load accelerators here.
9934 2000-05-28 James Henstridge <james@daa.com.au>
9936 * app/display.c (ddisplay_really_destroy): unset active display if
9937 active display is destroyed.
9938 (ddisplay_active): simplify function to return active_display as set
9939 by display_set_active. This allows using a pinned menu with any
9940 display -- not just the one it was popped up from.
9941 (display_set_active): notify the layer dialog of change of diagrams
9942 when active diagram changes.
9944 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
9945 on button and key presses.
9946 (ddisplay_realize): set active display on realize.
9948 * app/display.c (display_set_active): simple implementation of this
9951 * app/display.h (display_set_active): add prototype for setting
9954 * app/interface.c (create_display_shell): don't give focus to the
9957 * app/menus.c: fix up menus for Beziergon.
9959 * app/interface.c (create_display_shell): make the widget in the
9960 top left corner a button that can be used to pop up the right click
9961 menu, like in gimp and sketch.
9963 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
9966 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
9967 add code to set corner types for beziergon.
9969 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
9971 (beziershape_move_handle): use the previous corner type for right
9974 * app/interface.c (tool_data): add beziergon to toolbox.
9976 * objects/standard/standard.c (dia_plugin_init): initialise the new
9977 Beziergon object type.
9979 * objects/standard/beziergon.c: an object based on BezierShape.
9981 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
9983 * lib/beziershape.[ch]: new files implementing a bezier shape.
9985 2000-05-26 James Henstridge <james@daa.com.au>
9987 * lib/text.c (text_key_event): handle multibyte inserts.
9988 (text_key_event): also add home and end keybindings.
9990 * app/interface.c (create_display_shell): connect handlers for
9991 focus_in_event, focus_out_event, realize and unrealize signals.
9993 * app/display.[ch] (new_display): initialise input context members.
9995 * app/disp_callbacks.[ch]: added XIM support here.
9997 * lib/font.c (suck_font): the black and white pixel values should be
9998 taken from a 1 bit colormap rather than the default colormap.
10000 Hans Breuer's Windows patches ...
10002 * lib/font.c: use Courier New for fixed width font on windows
10005 * lib/dia_image.h: change to "struct _DiaImage".
10007 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
10009 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
10010 mouse button for object menu. This will make two button mouse owners
10013 2000-05-25 James Henstridge <james@daa.com.au>
10015 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
10017 * app/app_procs.c (app_init): add extra NULL argument to call of
10020 * app/load_save.h: remove prototype.
10022 * app/load_save.c: remove diagram_data function here.
10024 * app/diagram.h: added prototype.
10026 * app/diagram.c (diagram_load): new function here, which uses import
10029 * plug-ins/dxf/dxf.c: register the import filter as well.
10031 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
10032 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
10034 * objects/standard/line.c: add start_point and end_point properties
10035 to standard line object.
10037 2000-05-21 James Henstridge <james@daa.com.au>
10039 * app/paginate_psprint.c: added missing include of locale.h.
10041 * objects/custom/custom_object.c (custom_draw): use fabs rather than
10042 abs for scaling factors.
10043 (custom_distance_from): same here.
10045 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
10047 2000-05-18 James Henstridge <james@daa.com.au>
10049 * po/POTFILES.in: updated POTFILES.in.
10051 * dia.spec: incremented version number in spec file.
10053 * NEWS: added (lots of) news items for the 0.85 release.
10055 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
10058 * configure.in: updated version number here.
10060 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
10062 2000-05-17 James Henstridge <james@daa.com.au>
10064 * app/app_procs.c (internal_plugin_init): register the native import
10067 * app/load_save.c (diagram_data_load, diagram_load): split this
10068 function into two -- one that does all the work on the DiagramData
10069 structure, and the other that provides compatibility with the old
10071 (dia_import_filter): use diagram_data_load to define an import
10074 * app/diagram.h (new_diagram): added const to prototype.
10076 * app/filedlg.c (file_open_callback): change to use new import filter
10079 * lib/filter.c: added import filter management functions.
10081 * lib/filter.h: added prototypes for import filter interface.
10083 * app/commands.c (help_about_callback): updated about dialog to
10084 contain a few more names.
10086 2000-05-16 James Henstridge <james@daa.com.au>
10088 * configure.in (Configuration): added a status message to the end of
10089 the configure script to give the user some idea of what was
10092 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
10094 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
10097 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
10100 * configure.in (AM_PATH_LIBART): use the check function provided
10101 with libart rather than our own code. It is more reliable, and
10102 it only requires that people who build out of CVS have libart.m4
10103 installed (not necessarily all of libart).
10104 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
10106 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
10108 * dia.desktop: Added Swedish translation.
10110 2000-05-09 James Henstridge <james@daa.com.au>
10112 * lib/dia_xml.c: you can't free a const pointer, so remove const
10113 from variable definitions.
10115 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
10116 initialised correctly.
10118 * app/render_svg.c (export_svg): set locale to C.
10120 * app/paginate_psprint.c (paginate_psprint): set locale to C.
10122 * app/render_eps.c (export_eps): set locale to C for EPS export.
10124 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
10125 (data_add_point): same here.
10126 (data_add_rectangle): same here.
10127 (data_real): use g_strtod to convert strings to real numbers, so that
10128 locales are taken into account.
10129 (data_point): same here.
10130 (data_rectangle): same here.
10132 * AUTHORS: added Henk and Jacek to authors file.
10134 Daniel Egger's code cleanups.
10136 * app/select.c (select_invert_callback): remove unused variable.
10138 * app/plugin-manager.c (get_plugin_manager): fix typo.
10140 * app/load_save.c (read_connections, write_objects):
10141 (write_connections): made some functions static.
10143 * app/interface.c (toolbox_delete, toolbox_destroy): made some
10146 * app/filedlg.c (file_export_callback): remove unused variable.
10148 * app/app_procs.c: various warning fixes.
10150 Integrating Jacek Pliszka's pstricks export filter.
10152 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
10154 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
10155 renderer (with a few small modifications by me).
10157 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
10159 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
10161 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
10164 * sheets/Makefile.am:
10165 * shapes/Makefile.am:
10166 * shapes/Civil/Makefile.am:
10167 * sheets/civil.sheet:
10169 Added civil/hydraulic/structural engineering objects from
10170 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
10172 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
10174 * objects/FS/flow-poly.c:
10175 * objects/FS/flow.c:
10176 Fix division by zero in point_normalize().
10177 Patch by David Thompson <dcthomp@mail.utexas.edu>
10179 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
10182 * lib/bezier_conn.c:
10183 * lib/connpoint_line.c:
10184 Added checks for zero-length lines before calls to point_normalize.
10186 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10188 * app/preferences.c (prefs_data): Changed
10189 reversed_dragging_intersects to not make the dialog ridiculously
10192 2000-04-22 James Henstridge <james@daa.com.au>
10194 Hans's win32 patches:
10196 * app/export_png.c: include message.h
10197 * app/interface.c: include dia_dirs.h
10198 * app/linewidth_area.c: check for rint
10199 * app/main.c: include interface.h
10200 * app/paginate_psprint.c: remove unused variable.
10201 * app/preferences.c: include message.h
10202 * app/render_svg.c: include stdlib.h
10203 * app/select.c: include object_ops.h
10204 * lib/dia_dirs.c: miscelaneous fixes for win32.
10205 * lib/dia_image.c: include string.h
10206 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
10207 * lib/properties.c: include stdlib.h
10208 * lib/properties.h: define extra data for standard properties as
10209 static variables on win32 (to get around dynamic linker problems).
10210 * objects/standard/polygon.c: polygon_create_change missing return
10213 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
10215 * configure.in (ALL_LINGUAS): added Catalan
10217 2000-04-18 James Henstridge <james@daa.com.au>
10219 * objects/standard/bezier.c (bezierline_get_object_menu): add a
10220 separator to the object menu between the add/remove segment items
10221 and the corner type items.
10222 (bezierline_get_object_menu): add code to disable the menu item for
10223 the current corner type. Really just a cosmetic change.
10225 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
10226 a NULL for the label or with no associated callback.
10228 * objects/standard/bezier.c (bezierline_menu_items): use the
10229 enumeration values rather than numeric values for the corner types.
10231 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
10232 structure, and add code to handle it. Also, don't save the corner
10233 types inline in the bez_points node. The way it is conditionally
10234 including the element just feels like it will break.
10236 * lib/geometry.h (BezPoint): removed the corner_type stuff from
10237 BezPoint. The corner type stuff is a user interface level idea rather
10238 than something required by the renderer, so should be taken care of
10239 at the object level.
10241 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10243 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
10244 checks. Weren't able to reproduce original bug, tough.
10246 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
10248 * sheets/Electric.sheet:
10249 * sheets/Contact.sheet:
10250 * sheets/Pneumatic.sheet:
10251 * sheets/Circuit.sheet: sprayed some <br/>'s around.
10252 (added a few French translations in the last file)
10254 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10257 * lib/bezier_conn.h:
10258 * objects/standard/bezier.c:
10259 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
10260 bezier points. Only one minor problem known: Menus are active
10261 for endpoints minor handles.
10262 11:28: Save and load now works, too.
10263 (bezierconn_closest_major_handle): 12:03: New function to get the
10264 non-control point handle associated with the nearest control
10266 Also fixed the menu activation problem, and made remove_segment
10267 not remove the endpoint.
10269 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10271 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
10274 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
10276 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
10277 <sys/stat.h>. OS/2 patch.
10279 2000-04-15 James Henstridge <james@daa.com.au>
10281 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
10282 Thompson's patch that adds undo support to the function structure
10285 2000-04-14 James Henstridge <james@daa.com.au>
10287 * objects/custom/custom_object.c (custom_distance_from): new
10288 implementation of distance algorithm that actually takes the
10289 display list into account when calculating the distance. Much nicer
10290 than a simple bounding box.
10292 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
10294 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
10296 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10298 * objects/standard/polygon.c: Start of polygons own changes (for
10299 connectionpoints). Need to do seperate changes in polyshape, too,
10300 rather than reuse the bezier changes.
10302 2000-04-13 James Henstridge <james@daa.com.au>
10304 * lib/dia_image.c (dia_image_draw): use the new enumeration values
10305 from after the gdk-pixbuf cleanup.
10307 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
10308 on for loop. Last set of coefficients were not beeing calculated,
10309 which caused a bit of breakage.
10311 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
10312 functions in geometry.c for calculating the closest segment.
10313 (bezierconn_distance_from): use distance_bez_line_point to calculate
10316 * lib/geometry.c (distance_bez_line_point): new function to calculate
10317 the distance from an open bezier line to a point.
10318 (distance_bez_shape_point): new function to calculate the distance
10319 from a closed bezier shape.
10320 (distance_ellipse_point): new function to calculate the distance from
10321 a filled ellipse to a point.
10323 * lib/geometry.h (BezPoint): moved this structure here from render.h
10325 2000-04-12 James Henstridge <james@daa.com.au>
10327 * lib/geometry.c (distance_bez_seg_point): new function to calculate
10328 the distance from a bezier segment.
10330 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
10331 to calculate the distance from the object.
10333 * lib/geometry.c (distance_polygon_point): function for calculating
10334 the distance from a polygon to a point.
10336 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
10339 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
10340 breaks can be inserted in the tool box.
10342 * doc/sheet.dtd: updated the DTD
10343 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
10345 2000-04-12 James Henstridge <james@daa.com.au>
10347 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
10348 macro if the dialog is a GtkDialog :(
10350 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10352 * objects/standard/polygon.c: Connectionpoints now properly
10353 managed in a GList. As far as I can tell, this will not dieturb
10354 the order (but I have the nagging doubt...)
10356 * lib/polyshape.c: No longer knows about connectionpoints.
10358 2000-04-11 James Henstridge <james@daa.com.au>
10360 * app/Makefile.am: fix makefile for bonobo build.
10362 * configure.in: fix checks for bonobo.
10364 * app/menus.c: added entries for the plugin manager.
10366 * app/Makefile.am (dia_core_files): added plugin manager to files
10369 * app/plugin-manager.[ch]: the plugin manager dialog.
10371 * app/display.c (display_update_menu_state): set the antialiased
10372 menu entry to the correct value.
10374 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
10376 * objects/custom/custom_object.c: not all renderers like ellipses with
10377 negative dimensions. This could cause ellipses to disappear when using
10378 the flip_h and flip_v functions.
10380 * samples/grafcet.dia: fixed speling and correctness.
10382 2000-04-11 James Henstridge <james@daa.com.au>
10384 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
10385 exposed the dia_plugin_load and dia_plugin_unload functions.
10387 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
10388 already created PluginInfo structure.
10390 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
10393 * lib/sheet.c: fix up call to dia_config_filename.
10395 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
10396 file. This would save information such as which plugins not to
10397 load during startup.
10399 2000-04-09 James Henstridge <james@daa.com.au>
10401 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
10403 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
10405 * lib/plug-ins.c (dia_register_plugins):
10406 Don't free the value returned from g_getenv.
10408 2000-04-09 Anders Carlsson <andersca@gnu.org>
10410 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
10412 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
10414 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
10415 right to left, select objects that intersect the rubberbanding rectangle
10416 instead of selecting objects that are in the rectangle.
10418 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
10420 * lib/diagramdata.h: Likewise.
10423 2000-04-09 James Henstridge <james@daa.com.au>
10425 * lib/plug-ins.[ch]: add copyright messages to files.
10427 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
10430 * objects/sybase/sybase.c (dia_plugin_init):
10431 * objects/network/network.c (dia_plugin_init):
10432 * objects/flowchart/flowchart.c (dia_plugin_init):
10433 * objects/custom/custom.c (dia_plugin_init):
10434 * objects/chronogram/chronogram.c (dia_plugin_init):
10435 * objects/UML/uml.c (dia_plugin_init):
10436 * objects/SADT/sadt.c (dia_plugin_init):
10437 * objects/GRAFCET/grafcet.c (dia_plugin_init):
10438 * objects/FS/fs.c (dia_plugin_init):
10439 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
10442 * objects/standard/standard.c (dia_plugin_init): change over to new
10445 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
10446 the version checker for plugins.
10448 * app/app_procs.c: remove plugin loading code from here, and use
10449 code from plug-ins.[ch]. Also move registration of internal
10450 objects/filters to a `builtin' plugin.
10452 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
10454 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
10456 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
10457 defined variable in EXTRA_DIST.
10459 * app/preferences.h: removed dia_config_filename from header.
10461 * app/preferences.c: removed dia_config_filename function.
10463 * lib/dia_dirs.c (dia_config_filename): moved function over to this
10464 file. Also changed implementation slightly so that it should work
10465 on the win32 port correctly (and use NT home directories).
10467 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
10468 it should have been.
10470 * lib/plug-ins.[ch]: new plugin loading code.
10472 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10474 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
10476 * lib/polyshape.c: Fix closest segment finding, exposes deeper
10477 bugs in adding corners to 'wraparound' segment.
10479 * objects/standard/polygon.c: Added connection points (fixed so
10480 far), set menu sensitivity.
10482 * lib/polyshape.c: Changed to box-style handles, fixed for start
10483 and ends not being special, added initial connections,
10485 * lib/dummy_dep.h: Added polyshape (gotcha!)
10487 * objects/standard/pixmaps/ellipse.xpm:
10488 * objects/standard/pixmaps/box.xpm:
10489 Filled element pixmaps with white.
10492 * objects/standard/polygon.c:
10494 * objects/standard/standard.c:
10495 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
10496 * lib/Makefile.am (libdia_a_SOURCES):
10498 * app/interface.c (tool_data):
10499 Added Standard/Polygon object and PolyShape lib object. Still
10500 needs inside grab and connection points.
10502 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
10505 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
10508 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
10509 if (argv) outside ifdefs.
10511 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10513 * objects/standard/image.c (image_set_props):
10514 Aspect ratio is back in town.
10516 * app/Makefile.am (dia_LDADD):
10519 Check for gdk_pixbuf (by default disabled, for now)
10521 * app/render_eps.c (draw_image):
10522 * app/render_libart.c (draw_image):
10523 * app/render_gnomeprint.c (draw_image):
10524 Support for alpha mask in rendering. Color postscript, too.
10528 Support for gdk_pixbuf and proper masking for exports.
10530 2000-04-01 Kjartan Maraas <kmaraas@online.no>
10532 * sheets/*.sheets: Updated Norwegian translations.
10534 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10536 * lib/text.c (text_insert_char):
10537 * lib/render_store.c (add_data):
10538 Made realloc double the alloced space rather than add
10539 a fixed amount, to reduce memory stress.
10541 * app/select.c: Added new select method 'Transitive'
10542 that select every reachable (by connections) object.
10544 2000-03-27 Kjartan Maraas <kmaraas@online.no>
10546 * dia.desktop: Added Norwegian translation.
10548 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
10550 * app/render_eps.c:
10551 * app/render_svg.c:
10552 Don't dereference NULL pointer if the renderer
10553 couldn't open the file. Fix by Lars Clausen.
10554 Bug reported by Martin Chisholm <b1mt@unb.ca>
10556 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
10560 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
10562 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
10564 * app/dia.gnorba (location_info):
10565 Changed to correct executable name.
10567 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
10570 Don't do any argument parsing or initialization
10573 * app/dia_embedd.c:
10574 Call init_server_factroy before app_init.
10575 Call app_init with argv==NULL
10576 Now we don't get any critical error on startup.
10579 Add Electric and Pneumatic to makefile list.
10581 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
10583 * shapes/Electric/*:
10584 * sheets/Electric.sheet:
10585 Add some Electric circuit shapes.
10587 * shapes/Pneumatic/*:
10588 * sheets/Pneumatic.sheet:
10589 Add some Pneumatic & Hydraulic circuit shapes
10590 (both sheets are still incomplete, though feature enough
10591 things for basic circuits).
10593 * shapes/Contact/l_*.(xpm|shape):
10594 * sheets/Contact.sheet
10595 * shapes/Contact/Makefile.am
10596 made the older electric circuit shapes in Contact obsolete (disabled
10597 them in the sheet, made that sheet Ladder only). Fixed the makefile
10598 for forgotten items.
10600 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
10603 Add support for Dia bonobo component.
10604 Currently a bit raw, so it's commented out.
10606 * app/dia_embedd.c:
10608 New files for embedding dia.
10609 The menu disabling hack is a bit gross. Esp. for GNOME.
10612 Add new function app_is_embedded();
10615 Don't destroy diagram when last display is destroyed if embedded.
10618 Change initialization of display so it works with embedding.
10621 Clarify comment about display destruction.
10623 * app/interface.[ch]:
10624 Added top_level_window argument to create_display_shell.
10625 Don't open a top-level window if embedding.
10626 Don't quit app if trying to close toolbox window when embedding.
10627 Add toolbox_show() and toolbox_hide().
10630 Added app_is_embedded() function (just returns false).
10631 Added toolbox_show() call in main().
10634 Added code for getting toolbox menus. This is used to
10635 hide some menu items when running embedded.
10638 Include sheet.h to remove warning.
10640 * objects/UML/association.c:
10641 Clarify association direction text.
10643 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
10646 Fixed man page so whatis parsing works.
10648 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
10650 * app/render_libart.c (new_libart_renderer):
10651 Fix from segg <segg@infonet.ca> to compile without libart.
10652 I forgot to change the stub for new_libart_renderer when doing
10653 the interactive renderer stuff for libart.
10655 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
10657 * dia.desktop: Added Irish translation.
10659 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
10661 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
10663 * app/load_save.c (fchmod): OS/2 defines only.
10665 2000-03-07 James Henstridge <james@daa.com.au>
10667 * lib/properties.c (prop_get_widget): set the position in the option
10670 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
10673 * app/export_png.c:
10674 * app/render_libart.[ch]:
10675 Don't export png:s with an interactive libart renderer.
10677 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
10679 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
10681 2000-03-02 James Henstridge <james@daa.com.au>
10683 * dia.spec (%build): unset LINGUAS before running configure. This
10684 ensures that all translations get included in the RPM.
10686 * lib/properties.c (object_create_props_dialog): put in a check for
10687 a NULL return from the describe_props() object method.
10688 (prop_desc_lists_union): make sure that the returned array is not
10690 (prop_desc_lists_intersection): same here.
10692 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
10694 * objects/ER/Makefile.am:
10695 * objects/FS/Makefile.am:
10696 * objects/UML/Makefile.am:
10697 Don't link object libs with gtk.
10699 2000-02-29 James Henstridge <james@daa.com.au>
10701 * app/preferences.c (prefs_save): check to see if the file could
10702 be opened before writing the prefs.
10704 * app/disp_callbacks.c (popup_object_menu): pass the button event
10705 to gtk_menu_popup. This allows you to click and release to open
10707 (ddisplay_canvas_events): same here.
10708 (create_object_menu): set the object type menu item in the object
10709 menu to be insensitive.
10711 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
10712 as we are now requiring a new version of libxml.
10714 * dia.spec: updated version number. Added requirement for
10717 * configure.in: incremented version number to 0.84.
10718 Added check for libxml >= 1.8.5. This will prevent some of the
10719 problems people have had with broken libxml versions.
10721 * NEWS: added news items.
10723 * app/interface.c (create_color_area): removed call to realize parent
10724 widget. Segg <segg@infonet.ca> reported that it caused a warning,
10725 but I haven't seen it on my copy of dia.
10727 2000-02-28 James Henstridge <james@daa.com.au>
10729 * app/export_png.c: added copyright notice, and made the band height
10732 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
10734 * lib/font.c (suck_font):
10735 Fixed off-by one bug in font pixmap height.
10736 Fixes the problem with garbage at the bottom of some text in aa mode
10737 and in png exported files.
10739 2000-02-27 James Henstridge <james@daa.com.au>
10741 * app/app_procs.c: add the png export filter if it was compiled in.
10743 * app/export_png.c (export_png): new PNG export filter. This requires
10744 the libart renderer to work as it needs a renderer that renders to a
10747 * configure.in: add check for libpng.
10749 * lib/message.c (message_internal): use a GNOME dialog here as well.
10751 * app/display.c (ddisplay_close): use a GNOME dialog here.
10753 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
10754 when exporting to EPS. This is because some people said the EPS
10755 output was too large
10757 2000-02-26 James Henstridge <james@daa.com.au>
10759 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
10762 * app/app_procs.c (app_exit): use a GNOME dialog here.
10764 * app/preferences.c (prefs_create_dialog): if GNOME support is
10765 enabled, show a GNOME dialog.
10767 * app/grid.c (grid_draw): use preferences when drawing page break
10770 * app/preferences.c: add page break preferences to dialog.
10772 * app/preferences.h: added page break preferences.
10774 2000-02-25 James Henstridge <james@daa.com.au>
10776 * sheets/UML.sheet: added new objects.
10778 * objects/UML/uml.c: link in the two new objects.
10780 * objects/UML/node.c:
10781 * objects/UML/branch.c: new UML objects from Stfan Seefeld
10782 <seefelds@magellan.umontreal.ca>.
10784 2000-02-24 James Henstridge <james@daa.com.au>
10786 * objects/custom/custom_object.c: converted to use the properties
10787 interface. In the future, it would be nice to add support for
10788 defining custom properties for custom objects, but that can wait.
10790 2000-02-22 James Henstridge <james@daa.com.au>
10792 * sheets/Circuit.sheet: added new circuit shapes to sheet.
10794 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
10795 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
10796 and adds a few new features.
10798 2000-02-21 Daniel Egger <egger@suse.de>
10800 * sheets/*.sheets: Added German translations and made some
10801 corrections to the others.
10803 2000-02-21 James Henstridge <james@daa.com.au>
10805 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
10807 * shapes/Circuit/...: added new shapes from Erik Janssens.
10809 2000-02-20 James Henstridge <james@daa.com.au>
10811 * app/interface.c (create_color_area): realize the parent window
10814 * objects/standard/image.c: properties patch for standard image
10815 object, from Lars Clausen.
10817 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
10819 * lib/properties.h (PropType): added file property type.
10821 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
10824 * app/interface.c: use wrap box for toolbox.
10826 * app/Makefile.am: added new files.
10828 * app/gtk*wrapbox.[ch]: added wrap box widget.
10830 2000-02-19 James Henstridge <james@daa.com.au>
10832 * sheets/network.sheet: added extra shapes to networks sheet.
10834 * configure.in (AC_OUTPUT): added shapes/network/Makefile
10836 * shapes/network/*: added shapes that were posted to the list a while
10839 * shapes/Makefile.am (SUBDIRS): added network subdirectory
10841 * app/menus.c (toolbox_menu_items): don't right justify help menu for
10842 gtk+ version of menus.
10844 * app/properties.c (create_dialog): use a GnomeDialog if we happen
10847 2000-02-18 James Henstridge <james@daa.com.au>
10849 * objects/flowchart/box.c: set extra data for corner radius and text
10850 padding properties.
10852 * objects/standard/box.c: set extra data for corner radius property.
10854 * lib/properties.h: set extra data in some standard properties.
10856 * lib/properties.c (prop_get_widget): look at the extra data for
10857 int, real and enum property types. They now use GtkSpinButton and
10858 GtkOptionMenu respectively.
10860 * lib/properties.h: extra data members for creating property setting
10863 2000-02-17 James Henstridge <james@daa.com.au>
10865 * objects/flowchart/box.c: reverted load/save functions back to
10866 previous implementations. Made box use standard property names.
10868 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
10870 * app/grid.c: add more digits to the grid edit dialog. This patch
10871 was also from Lars Clausen.
10873 * objects/standard/zigzagline.c:
10874 * objects/standard/textobj.c:
10875 * objects/standard/polyline.c:
10876 * objects/standard/line.c:
10877 * objects/standard/ellipse.c:
10878 * objects/standard/box.c:
10879 * objects/standard/bezier.c:
10880 * objects/standard/arc.c: patches to add properties code to standard
10881 objects. Based on patches from Lars Clausen. I have also removed
10882 some dead code from the files.
10884 * lib/properties.h (PROP_STD_*): define a number of standard
10885 properties. Where appropriate, objects should include these
10886 properties in their PropDescription list. This way, the intersection
10887 of properties of two different shapes will be greater.
10889 2000-02-14 James Henstridge <james@daa.com.au>
10891 * objects/flowchart/box.c (box_load, box_save): use property save
10892 routines. Make sure that any props not handled by object_load_props
10893 are loaded before calling object_load_props, or we get errors because
10894 update_data is called.
10896 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
10897 error that could cause properties to be loaded incorrectly.
10898 (object_set_props_from_offsets): similar here.
10900 * lib/properties.[ch] (prop_{load,save}): functions for loading
10901 or saving a property in Dia's XML file format.
10902 (object_{load,save}_props): load or save some properties of an
10903 object. These functions should help simplify the load/save methods
10904 of objects that implement the properties interface.
10906 2000-02-13 James Henstridge <james@daa.com.au>
10908 * objects/flowchart/box.c: use offset code to simplify property
10911 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
10913 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
10915 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
10917 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
10919 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
10922 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
10925 Add the custom object to DIA_LIB_PATH in run_dia.sh
10927 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
10929 * sheets/Circuit.sheet:
10930 * shapes/l_sout* (NEW):
10931 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
10932 variants of simple, inverted, set and reset outputs.
10933 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
10934 probably a split of Contact and Ladder sheets. And then a major
10935 revamping of the Contact sheet.
10937 2000-02-10 James Henstridge <james@daa.com.au>
10939 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
10941 * app/app_procs.c (register_all_objects): don't explicitely
10942 register the custom objects library -- let it be loaded by the
10943 normal plugin loading methods.
10945 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
10947 * objects/custom/Makefile.am: build libcustom_objects as a shared
10950 * objects/custom/shape_info.[ch]: don't read the description field
10951 of custom shapes. It makes more sense to have these in the sheet
10952 file to localise the parts of dia that translators have to deal
10955 * objects/custom/custom_object.c (custom_object_new): do not
10956 create the sheet object for the new custom shape -- this is
10957 handled by the custom sheet code.
10959 * objects/custom/custom.c: change over to being a normal plug-in
10960 rather than being linked with the main dia executable.
10962 2000-02-09 James Henstridge <james@daa.com.au>
10964 * sheets/Circuit.sheet:
10965 * sheets/Flowchart.sheet:
10966 * sheets/Contact.sheet: fixed up sheets.
10968 * objects/custom/custom_object.c (custom_object_new): set the
10969 extra ObjectType fields.
10971 * lib/sheet.c: use extra ObjectType fields when creating sheet
10972 objects. Give a warning if <shape> tags are found in a sheet
10973 file. Now the custom sheet code does not know about custom
10974 shapes -- they look like any other object type.
10976 * lib/object.h (ObjectType): added extra members
10978 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
10980 * app/linewidth_area.c:
10981 Added code to set arbitrary line width.
10982 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
10984 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
10986 * app/linewidth_area.c:
10988 Add support for font-sucking.
10989 Implementation borrowed from gnome-canvas.
10991 * app/render_libart.[ch]:
10992 Implement text rendering.
10994 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
10996 * app/properties.c (create_dialog):
10997 ref and sink no_properties_dialog.
10999 2000-02-07 James Henstridge <james@daa.com.au>
11001 * app/group.c (group_describe_props): new function. Return the
11002 intersection of the properties of the contained objects that
11003 implement the describe_props interface.
11004 (group_get_props): implement by iterating through contained objects
11005 and calling their get_props method until all properties have been
11006 set. Maybe this should go through all objects all the time??
11007 (group_set_props): implement by calling set_props method on all
11009 (group_ops): use standard props dialog creation routines.
11011 * lib/properties.c (prop_desc_lists_intersection): fix implementation
11012 of intersection -- I was using i++ instead of i-- in a for loop :(
11014 * objects/custom/custom.c (custom_register_objects): fix usage
11015 of dia_get_data_directory again.
11017 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
11018 actually read the sheets.
11020 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
11022 Win32 port by Hans Breuer <Hans@Breuer.org>
11025 Remove DATADIR and LIBDIR defines.
11028 Add dia_dirs.c and dia_dirs.h
11029 Added DATADIR and LIBDIR defines.
11031 * lib/dia_dirs.[ch]:
11032 New files for handling special directories.
11037 * objects/custom/custom.c:
11038 Fix warnings. Use directory functions.
11041 Add prototype for diagram_redraw_all.
11043 * app/diaunitspinner.c:
11046 * app/preferences.c:
11050 Win32 doesn't have mkstemp and fchmod.
11052 * app/paginate_psprint.c:
11053 Win32 calls popen _popen and pclose _pclose.
11056 Win32 calls finite _finite.
11059 Win32 needs to dllexport the color vars.
11061 * objects/GRAFCET/step.c:
11062 * objects/chronogram/chronoref.c:
11063 snprintf -> g_snprintf
11065 2000-02-05 James Henstridge <james@daa.com.au>
11067 * lib/properties.c: more fixes so that it doesn't crash when using
11068 properties. The undo/redo stuff also works!!
11070 * objects/flowchart/box.c (box_{describe, get, set}_props): test
11071 object where I have implemented the new properties interface
11072 complete with automatic properties dialog generation.
11074 * lib/properties.c (object_apply_props): fixed stupid error when
11075 creating the old_props array. Also, it no longer frees the props
11076 array -- you will have to do that yourself.
11078 2000-02-04 James Henstridge <james@daa.com.au>
11080 * app/properties.c (properties_apply): pass object_part to
11083 * lib/object.h (ApplyPropertiesFunc): added widget argument.
11085 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
11086 created this way as well.
11088 * objects/*/*.c: ref and sink the properties dialog window for each
11089 widget. It can't rely on ref count being incremented by
11090 properties_show anymore.
11092 * app/properties.c (properties_show): don't ref the widget before
11093 removing it, or its ref count will increase each time you open the
11094 properties dialog. Don't unparent the widget, as container_remove
11097 * lib/object.h: fixed up prototypes for new object methods.
11099 * lib/properties.[ch]: added functions for automatically creating
11100 a properties dialog from the output of describe_props, get_props and
11102 (object_apply_props): apply properties and return an ObjectChange
11103 structure that can be used for undo.
11105 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
11107 * objects/GRAFCET/transition.c: minor leak plugged.
11109 * sheets/GRAFCET.sheet:
11110 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
11111 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
11113 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
11114 new ones (for condition.c).
11115 * objects/GRAFCET/action.c: added connection points for the conditions.
11116 * samples/grafcet.dia: updated the sample to improve conformance to
11117 IEC 848 and take advantage of dia's new features.
11119 * lib/geometry.h: (point_get_normed) fixed a typo.
11121 2000-02-02 James Henstridge <james@daa.com.au>
11123 * lib/object.h: added object functions describe_props, get_props and
11124 set_props. Do type definitions so that object.h doesn't need to
11125 include properties.h, since properties.h includes object.h.
11127 * lib/properties.[ch]: more hacking.
11129 * po/de.po: updated po file.
11131 2000-01-30 James Henstridge <james@daa.com.au>
11133 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
11134 check to see if the C compiler accepts the flag beforehand.
11136 * lib/properties.[ch]: start of properties code.
11138 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
11140 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
11142 * sheets/GRAFCET.sheet:
11143 * sheets/GRAFCET/etapemc.xpm: (NEW)
11144 * sheets/GRAFCET/etapesp.xpm: (NEW)
11145 * objects/GRAFCET/step.c: Added the macro and
11146 sub-program call step types.
11148 * objects/GRAFCET/receptivity.[ch]: renamed to
11149 objects/GRAFCET/boolequation.[ch].
11150 * objects/GRAFCET/transition.c: changed (Receptivity *) to
11153 * lib/connpoint_line.[ch]:
11154 * objects/chronogram/chronoline.c:
11155 * objects/chronogram/chronoref.c:
11156 * objects/GRAFCET/vergent.c:
11157 * objects/standard/line.c:
11158 * objects/SADT/box.c: Minor CPL interface changes, factored out the
11159 point count adjustment code into the CPL object.
11161 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
11163 * app/render_libart.c:
11164 Added support for images and bezier curves.
11165 Only text/fonts missing now.
11167 * app/render_gdk.c:
11168 Removed old erronous comment.
11170 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
11172 * objects/chronogram/chronoline_event.c: removed references to
11173 lround(). Please don't insist, I'm already red of shame.
11175 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
11177 * app/render_libart.[ch]:
11179 Non-finished libart renderer.
11182 Added HAVE_LIBART flag
11188 Call gdk_rbg_init().
11190 * app/connectionpoint_ops.c:
11191 * app/disp_callbacks.c:
11193 * app/handle_ops.c:
11195 * app/modify_tool.c:
11196 Change ddisp->renderer type from RendererGdk * to Renderer *
11197 Draw zoom and select rects in ddisp->canvas->window instead
11198 of ddisp->renderer->renderer->pixmap.
11200 * app/display.[ch]:
11201 Add aa_renderer to DDisplay, and support for it.
11202 New function ddisplay_set_renderer() for changing renderer.
11203 Add ddisplay_transform_coords_double() function, used by aa renderer.
11204 Change ddisp->renderer type from RendererGdk * to Renderer *
11207 Add antialias to menu.
11209 * app/commands.[ch]:
11210 add view_aa_callback function
11211 Change ddisp->renderer type from RendererGdk * to Renderer *
11213 * lib/geometry.[ch]:
11214 Added IntRectangle and int_rectangle_union.
11216 2000-01-28 James Henstridge <james@daa.com.au>
11218 * app/commands.h: removed prototypes.
11220 * app/commands.c: removed the functions that have been moved to
11223 * app/filedlg.h: added new prototypes.
11225 * app/filedlg.c (file_open_callback): move open dialog to this
11226 file. This implementation should remember the current directory
11227 between file loads.
11228 (file_save_as_callback): moved this dialog as well.
11229 (file_save_callback): moved this function here.
11231 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
11232 align page boundaries to the origin.
11234 * app/diagram.c (diagram_update_extents): redraw the diagram if the
11235 scaling factor changes while updating the extents. This is so the
11236 page breaks get redrawn correctly.
11238 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
11241 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
11242 For normal mode, use (0,0) as the origin. For `fit to' mode, use
11243 the corner of the bounding box.
11245 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
11246 into page setup dialog.
11247 (pagesetup_apply): apply new `fit to' attributes to the diagram.
11249 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
11250 (diagram_data_save): save `fit to' data.
11252 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
11253 (data_update_extents): when in `fit to' mode, update scale factor
11254 when we update the extents.
11256 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
11259 * .../.cvsignore: added some cvsignore files to quieten cvs.
11261 * app/pagesetup.c (pagesetup_changed): added code to change the
11262 scaling/fit to values as you change the options in the page setup
11263 dialog. I haven't added code so that the fit to options are saved
11266 * app/diapagelayout.[ch]: changed the scaling portion of the widget
11267 to make it easier to set a `fit to' style scaling factor.
11269 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
11270 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
11271 but connpoint_line-based, so that there's a connection point at the
11272 middle of each segment. Currently only the SADT arrow uses this.
11274 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
11276 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
11277 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
11278 saving and editing of properties (and default properties).
11279 See the new objects (GRAFCET, SADT, chonograms) for examples.
11280 For already too hairy stuff, see objects/chronogram/chronoline.c.
11282 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
11283 evenly spaced connection points, which the user can add or remove at
11284 will. An object can own several connection point lines. See the SADT
11285 Box, or the GRAFCET vergents for examples.
11287 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
11288 quiet about unused stuff.
11290 * objects/GRAFCET (NEW):
11291 * samples/grafcet.dia (NEW):
11292 Added support for GRAFCET charts.
11294 * objects/chronogram (NEW):
11295 * samples/chronograms.dia (NEW):
11296 Added support for chronograms (feature requested by Ronald L. Chichest;
11297 I found I'd use it often, too).
11299 * objects/standard/line.c: Replace the middle connectionpoint by
11300 a whole connection point line, which defaults to one point (hint,
11301 hint). New Line object menu to take advantage of this.
11302 "Bothwards" compatibility is preserved (although you may loose
11303 connections if you load a newer file in a older dia).
11305 * app/lineprops_area.c:
11307 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
11308 (feature requested by Benjamin Kahn).
11309 Merged in Steffen Macke's slashed arrow head type.
11311 * app/Makefile.am (app/run_dia.sh actually):
11312 Added $DEBUGGER in front of dia's invocation, so that
11313 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
11314 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
11315 "EFENCE=-lefence" to link with Electric Fence.
11317 * configure.in: Made gcc do more aggressive optimisations on i386, and
11320 2000-01-24 James Henstridge <james@daa.com.au>
11322 * lib/geometry.[ch]: added inline versions of functions. Used
11323 glib's G_INLINE_FUNC stuff, so it should still work on systems
11324 without inline funcs.
11326 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
11327 it outputs the correct element id for the ellipse objects.
11329 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
11331 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
11332 object_add_handle_at. Message typo fixed.
11334 * lib/sheet.c (load_register_sheet):
11335 potential bug fixed (warning hunt).
11337 * objects/custom/custom.c (custom_object_load): disabled an assertion
11338 which made dia abort upon failure to load a shape file. Fixed a
11341 * objects/custom/shape_info.c (load_shape_info): Made the custom
11342 shape load code ignore XML comments between <?xml ...?> and the
11343 root object (mostly useful to put the emacs magic comments).
11345 * app/load_save.c: Made dia do backup copies of files when saving,
11346 and complain in case of failure.
11348 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
11350 * AUTHORS: fixed my address (ISP thought it was a great idea to change
11355 * shapes/Contact/*:
11356 * sheets/Contact.sheet:
11357 * sheets/Makefile.am:
11358 Added support for Contact and LADDER charts.
11360 * dia.desktop: Added a French translation.
11362 2000-01-23 James Henstridge <james@daa.com.au>
11364 * app/commands.c (help_about_callback): don't die if can't load
11367 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
11368 out NaN's when performing bezier curve subdivision.
11370 * objects/custom/custom_object.c: initialise memory of Custom structs
11373 * app/render_svg.c (draw_image): added image support to the XML
11374 output filter. The image is just referenced, rather than being
11375 included inline, so if you copy the SVG file somewhere else, you
11376 may need to move the images or fix up the links.
11378 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
11379 so the text is not just displayed in black all the time.
11381 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
11383 * configure.in: fixed libpopt test so we wont try to build with
11386 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
11388 * configure.in: Added "uk" to ALL_LINGUAS.
11390 1999-12-24 James Henstridge <james@daa.com.au>
11392 * po/ru.po: updated russian translation from Valek Filippov.
11394 * app/render_svg.c (new_svg_renderer): make output use 19991203
11395 version of SVG DTD. Use viewBox to set the extents of the view.
11397 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
11398 ftp.gnome.org as the download.
11400 * TODO (TODO): weeded out completed todo items and added a few extra.
11402 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
11404 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
11405 be good to get rid of the object/shape distinction and separate
11406 the custom shape code out from the main application.
11408 * objects/custom/README, diagram.dtd: moved to new doc directory.
11409 Renamed the custom shapes README to custom-shapes. Also updated
11410 custom shape docs a bit and removed the section on sheet files, as
11411 that has changed a bit.
11413 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
11414 of the image data is larger than the maximum cell array. I should
11415 add code to break scan lines down further in this case, but for now
11416 an error message is better than an infinite loop.
11418 * app/filedlg.c (file_export_ok_callback): show a dialog if we
11419 couldn't determine the export filter to use.
11421 * app/commands.c (help_about_callback): fixed up about box logo
11422 expose bug. Now just use a GtkPixmap widget rather than a
11423 GtkDrawingArea and calling gdk_imlib_paste_image.
11425 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
11426 because automake does not always get things right.
11428 * configure.in: updated version number to 0.83.
11430 * app/preferences.c (prefs_save):
11431 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
11432 for fopen. Text is the default file mode anyway.
11434 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
11435 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
11436 * app/load_save.c (write_objects, write_connections):
11437 * app/filedlg.c (file_export_ok_callback):
11438 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
11439 * lib/dia_xml.c (data_add_point, data_add_rectangle):
11440 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
11441 snprintf to calls to g_snprintf.
11443 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
11444 as the picture name.
11446 1999-12-23 James Henstridge <james@daa.com.au>
11448 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
11449 negative numbers. This fixes the upside down text problem I was
11451 (draw_image): implemented the image code. It will try to split the
11452 image data up into bands if it is too big to fit into a single
11453 cgm cell array element. It will have problems if you try to insert
11454 an image wider than about 10,000 pixels though.
11456 * Makefile.am: use gnomedatadir for the files that need to be
11457 installed in gnome's datadir. This is mainly to help people doing
11458 packages for weird setups.
11460 1999-12-22 James Henstridge <james@daa.com.au>
11462 * plug-ins/cgm/cgm.c: added support for text. Now only images and
11463 beziers are left to do. The text seems to be the wrong way up
11464 still. This is probably a problem with character orientation
11465 element, but I have used what the settings given in the standard.
11466 Other than this, the CGMs dia produces are readable (and displayable)
11467 by ralcgm and corel draw.
11468 (draw_string): subtract from the X coord rather than the Y coord for
11469 center and right aligned text.
11471 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
11472 the size of a real number, and changed name of write_double to
11473 write_real. Consider changing to fixed real encoding. Also, now
11474 all element headers are correct. Once the real number encoding is
11475 fixed, only text, beziers and images are left to do.
11477 1999-12-21 James Henstridge <james@daa.com.au>
11479 * Makefile.am (SUBDIRS): recurse into plug-ins.
11481 * configure.in: add plug-ins directory makefiles to list.
11483 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
11484 not done yet. Also, the output files are not quite correct.
11486 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
11487 font. It doesn't work if you do.
11489 1999-12-20 James Henstridge <james@daa.com.au>
11491 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
11492 export the files. Instead, use filter_guess_export_filter to
11493 guess the correct format to save in and use the appropriate filter.
11494 It defaults to postscript for compatibility.
11496 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
11499 * app/commands.[ch]: removed export to eps functions.
11501 * app/menus.c: removed export to eps menu items.
11503 * app/app_procs.c: register new export filters.
11505 * app/load_save.[ch]: define dia native export filter.
11507 * app/render_eps.[ch]: define eps export filter.
11509 * lib/filter.h: added diafilename argument to the DiaExportFunc
11510 prototype. This is useful for putting the source of the diagram
11511 into the output file for instance.
11513 * app/app_procs.c (app_init): register the SVG export filter. Have
11514 to get EPS code converted to this API, and maybe also allow saving in
11515 DIA's native format from the export dialog. In fact, it is now
11516 possible to load an export filter from a shared library and it will
11517 integrate into the interface correctly.
11519 * app/menus.c: removed references to the SVG renderer.
11521 * app/commands.[ch]: removed svg stuff.
11523 * app/diagram.[ch]: removed diagram_export_to_svg function.
11525 * app/render_svg.[ch]: added a DiaExportFilter structure for this
11528 * app/filedlg.[ch]: code for the new export diagram dialog. Will
11529 probably move the open/save dialogs to this file as well.
11531 1999-12-19 James Henstridge <james@daa.com.au>
11533 * lib/filter.[ch]: start of interface for generalised handling of
11534 filters. I have only done code for export filters so far. I still
11535 need to do the gui for this, and convert the current SVG and EPS
11536 filters to the new API.
11538 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
11539 weren't setting the last handle correctly. It was actually assigning
11540 to the wrong position in the handles array, so the last handle was
11541 left as NULL, which caused the segfault.
11543 * objects/standard/image.c (image_copy): modified routine so that
11544 it just adds a reference to the DiaImage structure in the new image
11545 object. This seems to have cleared up the problems with copying
11548 * dia.spec: spec file additions from John Gotts.
11550 1999-12-12 James Henstridge <james@daa.com.au>
11552 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
11553 has not been released yet though.
11555 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
11558 The following based on a patch from Lars Clausen:
11560 * objects/standard/bezier.c (bezierline_move_handle): when performing
11561 the initial drag of the bezierline, move the control points to keep
11564 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
11565 make the new control points a bit closer to the major point.
11567 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
11568 as the reason for the move.
11569 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
11572 * lib/handle.h: new handle move reasons.
11574 1999-12-09 James Henstridge <james@daa.com.au>
11576 * dia.spec: include the new files in RPMs.
11578 * Makefile.am: install these new files.
11580 * dia.keys.in: file describing actions and icon for dia diagrams for
11581 use in the gnome file manager.
11583 * dia.mime: a file defining the application/x-dia-diagram mime type.
11585 * dia-diagram.png: an icon for dia diagrams.
11587 1999-12-08 James Henstridge <james@daa.com.au>
11589 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
11591 * plug-ins/python/pydia-display.[ch]: wrapper for display.
11593 * objects/standard/ellipse.c: applied Lars's patch to optionally not
11594 draw the background of the ellipse.
11596 * app/load_save.c (read_connections): do some sanity checking on the
11597 handle and connection point numbers before performing the object
11600 * lib/bezier_conn.c (bezierconn_load): give the correct number of
11601 handles when loading a BezierConn.
11603 1999-12-07 Kjartan Maraas <kmaraas@online.no>
11605 * sheets/*.sheet: Finished Norwegian translations.
11607 1999-12-07 James Henstridge <james@daa.com.au>
11609 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
11610 (PyDia_GetObjectType): find object type function.
11612 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
11613 method for diagrams.
11615 * plug-ins/python/pydia-object.c: added methods for DiaObject and
11618 * AUTHORS: added Lars and Cyrille to the authors file.
11620 * objects/standard/bezier.c (bezierline_add_segment_callback): place
11621 new point correctly.
11623 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
11625 * lib/bezier_conn.c: applied Lars's patch for placement of the new
11626 point when adding a segment to a BezierConn.
11628 1999-12-06 James Henstridge <james@daa.com.au>
11630 * plug-ins/python/test.py: test script for the python plug-in.
11632 * plug-ins/python/python.c: this file contains the plug-in startup
11633 code for the python plugin. Right now, it just initialises the
11634 dia module and executes a script.
11636 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
11638 * objects/standard/bezier.c (bezierline_draw): draw control lines for
11639 bezier curve if we are using an interactive renderer (ie. only if
11640 displaying to the screen).
11642 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
11643 to draw control lines on to a bezier curve. Based on implementation
11646 * objects/standard/bezier.c (bezierline_delete_segment_callback):
11647 calculate segment number using closest_segment rather than
11648 closest_handle. Sometimes the closest handle is part of a different
11650 (bezierline_draw): use correct size for start arrow.
11652 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
11653 * lib/geometry.c (distance_line_point): added notes to documentation
11655 * app/object_ops.c (object_list_align_v):
11656 (object_list_align_h): fix of by one error when calculating free space
11657 for equal distance alignment.
11658 * app/menus.c (objects_align_h, objects_align_v): include align
11659 adjacent menu items in the gnome version of the menus.
11660 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
11661 align adjacent menu items correctly.
11664 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
11667 * objects/standard/bezier.c: converted bezierline to use BezierConn.
11668 Still a few bugs. It crashes on deleting line segments.
11670 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
11672 1999-12-05 James Henstridge <james@daa.com.au>
11674 * lib/bezier_conn.[ch]: start of BezierConn object
11676 * app/interface.c: add bezierline to toolbox.
11678 * objects/standard/standard.c: initialise bezierline.
11680 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
11681 made a few modifications to get it working nicely. It still needs
11682 a bit of work though. Maybe create a BezierConn object in lib.
11684 1999-12-02 James Henstridge <james@daa.com.au>
11686 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
11688 * plug-ins/python/Makefile.am: tried building everything. It is
11689 building as a library at the moment. I will have to convert it
11690 to a libtool library and add some initialisation code.
11692 * plug-ins/python/diamodule.c: start of the dia module, using the
11693 other object wrappers. Not complete.
11695 1999-12-01 James Henstridge <james@daa.com.au>
11697 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
11698 the handles and connections attributes.
11700 * plug-ins/python/pydia-layer.c: added functions that use
11703 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
11705 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
11707 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
11708 I am currently wrapping the basic elements in the diagram in python
11709 objects -- nothing to see or play with yet.
11711 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
11715 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
11717 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
11721 Added russian translation from Valek Filippov <frob@df.ru>
11723 1999-11-24 James Henstridge <james@daa.com.au>
11726 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
11727 discussed with Alex. Also added extra makefiles so that make install
11730 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
11732 * app/preferences.[ch]:
11734 Added snap to grid preference.
11735 Patch from Michael Leslie <mles@springboardwireless.com>
11737 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
11743 * objects/custom/shape_info.c:
11744 All strings returned by libxml must be freed with free, not
11745 g_free, or there will be problems if you use memory debugging
11748 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
11750 * app/create_object.[ch]:
11753 * app/commands.[ch]:
11755 * app/interface.[ch]:
11756 Reverted the tool menu patch. It has some 'issues'.
11757 I liked it though, so it'll probably return.
11759 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
11761 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
11762 <bruce@cybersight.com> for some purify runs and analysis.
11763 Also a great thank you to Owen Taylor for creating MemProf, a
11764 free memory leak detector that was used to find and verify a
11765 lot of these fixes.
11768 * app/paginate_psprint.c:
11769 * app/render_eps.[ch]:
11770 * app/render_svg.[ch]:
11774 Don't add a reference to ddisp->shell. Why was this done in
11781 Free all strings returned from xmlGetProp
11783 * app/modify_tool.c:
11786 * objects/custom/custom.c:
11787 Use closedir() after opendir().
11789 * objects/custom/shape_info.c:
11790 User g_free() instead of "if (tmp) free(tmp)".
11793 Add newline at end of file.
11796 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
11798 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
11799 Adds tool menu and keyboard shortcuts.
11801 * app/create_object.[ch]:
11802 Use tool_set() instead of tool_reset().
11803 create_create_object_tool() takes extra type argument
11809 Moved tool_data here, export it.
11810 Add separate tool type for all create objects tools.
11811 new functions tool_set().
11814 New callback tool_set_callback.
11817 Moved some pixmaps to interface.c.
11820 Remove tool_data array (moved to tool.c).
11821 Use the tool_data from tool.c.
11822 Remove modify_tool_button global var.
11824 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
11826 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
11829 Interprets command-line arguments as files to open even when
11830 HAVE_POPT is not defined.
11833 Shift-clicking when zooming zooms out, like the Gimp.
11836 Has hotkeys for zoom-100% and snap-to-grid.
11838 1999-11-17 James Henstridge <james@daa.com.au>
11840 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
11841 that it is not jumpy.
11843 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
11845 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
11846 scrolling by pressing the shift key when using the scroll tool.
11848 * sheets/Makefile.am: fixed makefile so that install actually works
11849 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
11851 (SHEETS): install Circuit.sheet
11853 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
11854 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
11856 * sheets/Circuit.sheet:
11859 * sheets/Flowchart.sheet:
11860 * sheets/UML.sheet:
11861 * sheets/network.sheet:
11862 * sheets/sybase.sheet:
11865 * sheets/Circuit.sheet:
11866 added some missing French translations
11869 killed the temporary sheet namespace
11871 * objects/custom/custom.c:
11872 obsolete comment cleaned up
11874 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
11878 Added portugese translation from Pedro Morais
11879 <pmmm@rnl.ist.utl.pt>
11881 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
11883 Changed all sheets to be specified in xml.
11884 All sheet objects removed from the C code.
11885 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
11890 Updated version to 0.81cvs.
11893 Update run_dia.sh with sheet-dir.
11896 Load all sheets on startup.
11897 Create sheet directory first time.
11898 Don't call custom_register_sheets().
11901 Add sheetdir define
11904 Remove custom_register_sheets().
11907 Add sheet loading code.
11909 * sheet/Circuit.sheet:
11912 * sheet/Flowchart.sheet:
11914 * sheet/network.sheet:
11915 * sheet/sybase.sheet:
11918 * sheet/ER/weakentity.xpm:
11919 * sheet/UML/aggregation.xpm
11920 * sheet/UML/umlclass_template.xpm
11921 Added sheet pixmaps.
11922 These are moved from their old places.
11924 * sheet/.cvsignore:
11928 Removed sheet objects and sheet registration.
11930 * objects/ER/Makefile.am:
11931 * objects/ER/pixmaps/weakentity.xpm:
11932 * objects/UML/Makefile.am:
11933 * objects/UML/pixmaps/aggregation.xpm:
11934 * objects/UML/pixmaps/umlclass_template.xpm:
11935 Removed alternative pixmaps. (Moved to sheet).
11937 * objects/custom/Makefile.am:
11938 * objects/custom/load_sheet.[ch]:
11939 Removed old sheet loading code.
11941 * objects/custom/custom.c:
11942 Load all shapes instead of sheets.
11943 Removed custom_register_sheets().
11945 * objects/custom/custom_object.c:
11948 * objects/custom/shape_info.[ch]:
11949 Added shape_info_getbyname().
11951 * objects/flowchart/Makefile.am:
11952 * objects/flowchart/collate.shape
11953 * objects/flowchart/delay.shape
11954 * objects/flowchart/display.shape
11955 * objects/flowchart/document.shape
11956 * objects/flowchart/extract.shape
11957 * objects/flowchart/flowchart.c
11958 * objects/flowchart/intstorage.shape
11959 * objects/flowchart/magdisk.shape
11960 * objects/flowchart/magdrum.shape
11961 * objects/flowchart/magtape.shape
11962 * objects/flowchart/manualinput.shape
11963 * objects/flowchart/manualop.shape
11964 * objects/flowchart/merge.shape
11965 * objects/flowchart/offlinestore.shape
11966 * objects/flowchart/offpageconn.shape
11967 * objects/flowchart/or.shape
11968 * objects/flowchart/predefdproc.shape
11969 * objects/flowchart/preparation.shape
11970 * objects/flowchart/punchedcard.shape
11971 * objects/flowchart/punchedtape.shape
11972 * objects/flowchart/sort.shape
11973 * objects/flowchart/sumjunction.shape
11974 * objects/flowchart/terminal.shape
11975 * objects/flowchart/transaction.shape
11976 * objects/flowchart/transmittape.shape
11977 * objects/flowchart/pixmaps/collate.xpm
11978 * objects/flowchart/pixmaps/delay.xpm
11979 * objects/flowchart/pixmaps/display.xpm
11980 * objects/flowchart/pixmaps/document.xpm
11981 * objects/flowchart/pixmaps/extract.xpm
11982 * objects/flowchart/pixmaps/intstorage.xpm
11983 * objects/flowchart/pixmaps/magdisk.xpm
11984 * objects/flowchart/pixmaps/magdrum.xpm
11985 * objects/flowchart/pixmaps/magtape.xpm
11986 * objects/flowchart/pixmaps/manualinput.xpm
11987 * objects/flowchart/pixmaps/manualop.xpm
11988 * objects/flowchart/pixmaps/merge.xpm
11989 * objects/flowchart/pixmaps/offlinestore.xpm
11990 * objects/flowchart/pixmaps/offpageconn.xpm
11991 * objects/flowchart/pixmaps/or.xpm
11992 * objects/flowchart/pixmaps/predefdproc.xpm
11993 * objects/flowchart/pixmaps/preparation.xpm
11994 * objects/flowchart/pixmaps/punchedcard.xpm
11995 * objects/flowchart/pixmaps/punchedtape.xpm
11996 * objects/flowchart/pixmaps/sort.xpm
11997 * objects/flowchart/pixmaps/sumjunction.xpm
11998 * objects/flowchart/pixmaps/terminal.xpm
11999 * objects/flowchart/pixmaps/transaction.xpm
12000 * objects/flowchart/pixmaps/transmittape.xpm
12001 Moved shapes and their pixmaps to shapes/flowchart
12003 * shapes/Circuit/Makefile.am:
12004 * shapes/Circuit/index.sheet:
12005 Removed index.sheet.
12007 * shapes/Makefile.am:
12008 * shapes/flowchart/Makefile.am:
12009 * shapes/flowchart/*.shape:
12010 * shapes/flowchart/*.xpm:
12011 Added flowchart shapes. (Moved from objects/flowchart)
12014 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
12016 * app/app_procs.c: Fixed popt stuff.
12018 1999-11-01 James Henstridge <james@daa.com.au>
12020 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
12023 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
12027 Update version to 0.81.
12030 Update with news for 0.81.
12032 * shapes/Circuit/*:
12033 * shapes/Circuit_eu/*:
12034 Moved european circuit objects to Circuit sheet.
12036 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
12038 * lib/diagramdata.[ch]:
12039 Added layer_set_object_list() function.
12042 Added support for undo of reordered objects.
12043 Fix the undo of delete to keep the right order on undo.
12046 changed loop to object_add_updates_list() calls.
12047 Added undo support to bring to front/back.
12049 * app/disp_callbacks.c:
12050 * app/paginate_psprint.c:
12053 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
12055 This plugs some leaks. Thanks to
12056 Bruce Mitchener <bruce@cybersight.com> for running
12057 Dia through purify for me.
12060 Free displays and diagrams on exit.
12062 * app/modify_tool.c:
12063 Free gc when freeing tool.
12065 * lib/diagramdata.c:
12069 Free update and display lists when destroying display.
12071 * lib/diagramdata.c:
12072 Don't leak layer name.
12074 * objects/custom/load_sheet.c:
12075 * objects/custom/shape_info.c:
12076 Free loaded xml documents.
12078 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
12081 * app/object_ops.[ch]:
12082 Add undo handling to alignment ops.
12083 Based partially on patch by Dan Cohn <dan@internap.com>.
12085 * objects/standard/image.c (image_move_handle):
12086 Don't divide by zero for small images.
12087 Patch by Dan Cohn <dan@internap.com>.
12089 * objects/UML/class.c (umlclass_destroy):
12090 * objects/custom/custom_object.c (custom_destroy):
12091 Don't free connectionpoints before calling element_destroy
12092 which unconnects them.
12094 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
12096 * objects/custom/custom_object.c:
12097 Load and save padding too. Fixes strange load crashes.
12099 * app/group.c (group_destroy):
12100 Don't unconnect already freed connectionpoints when
12101 destroying group. Probably fixes bug reported by
12102 Elliot Lee <sopwith@redhat.com>.
12104 * app/render_gdk.c:
12105 Don't crash on zero-size (broken) bezier curves.
12106 Different sort of fix. This should work on closed bezier curves
12109 * objects/standard/textobj.c:
12110 Activate default properties dialog for Text objects.
12112 * app/render_eps.c:
12114 * app/preferences.c:
12115 * app/render_svg.c:
12116 fopen files in binary or text mode.
12118 1999-10-26 Alexander Larsson <alex@cendio.se>
12120 * app/render_gdk.c (bezier_add_lines):
12121 Don't crash on zero-size (broken) bezier curves.
12122 Fixes a crashing bug.
12124 1999-10-25 James Henstridge <james@daa.com.au>
12126 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
12127 before it is installed.
12129 * objects/flowchart/flowchart.c: use relative paths to find shapes.
12131 * objects/custom/custom.c (custom_object_load): take file names
12132 relative to $(pkgdatadir)/shape-internal, and check an environment
12133 variable for an alternative directory.
12135 * app/...: added copyright messages to the top of my new code.
12137 * app/paginate_psprint.c: some general clean ups. Also, give an error
12138 dialog if we can't open the command or output file for writing.
12140 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
12141 function so it would set orientation to landscape correctly.
12143 * app/paginate_psprint.c: use the paper settings that come with
12144 the diagram. Also implemented landscape printing.
12146 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
12149 * app/commands.[ch] (file_pagesetup_callback): added callback for
12150 the page setup dialog.
12152 * app/menus.c: added page setup menu item.
12154 * app/pagesetup.[ch]: implementation of the page setup dialog.
12156 * app/diapagelayout.[ch]: added accessors for the scaling factor.
12158 * app/load_save.c (diagram_load): load paper information from save
12160 (diagram_save): save the paper info.
12162 * lib/diagramdata.c (new_diagram_data): initialise paper info section
12163 of DiagramData structure.
12164 (diagram_data_destroy): free the paper name.
12166 * lib/diagramdata.h: added a paper member to the DiagramData structure
12167 that holds the page layout info for a diagram.
12169 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
12171 * objects/flowchart/box.c:
12172 * objects/flowchart/ellipse.c:
12173 * objects/flowchart/diamond.c:
12174 * objects/flowchart/parallelogram.c:
12175 Load and save padding too. Fixes strange load crashes.
12177 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
12179 * app/app_procs.c (name_is_lib):
12180 .dll, .sl and .so.0.0.0 are also libraries.
12182 1999-10-20 James Henstridge <james@daa.com.au>
12184 * configure.in: added extra makefile.
12186 * shapes/Circuit_eu/*: a new set of european circuit shapes from
12187 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
12188 (added fuses to makefile, fill the area of some of the components).
12190 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
12194 Add GDK_IMLIB_CFLAGS to includes.
12195 Changed --export-dynamic to -export-dynamic
12198 * objects/UML/message.c:
12199 Removed c++ comment.
12201 * lib/render_store.[ch]:
12202 Don't use empty structure. That is not Ansi C.
12204 1999-10-19 James Henstridge <james@daa.com.au>
12206 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
12207 the margin entries, as they allow interpretation of units.
12208 (paper_size_change): display the current page dimensions.
12210 * app/diaunitspinner.[ch]: a widget derived from the standard
12211 GtkSpinButton that tries to take units into account. So if you enter
12212 "1in" into the entry, it will convert it to 2.54cm.
12214 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
12217 Removed include of dlfcn.h
12219 1999-10-18 James Henstridge <james@daa.com.au>
12221 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
12222 bound on margin widths. It is set to the paper width/height.
12224 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
12225 routine for the diamond. This bug was found and fixed by Daniel Wang
12226 <danwang@CS.Princeton.EDU>
12228 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
12230 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
12231 remove warning (OS/2 version).
12233 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
12236 Put a pointer to objects/custom/README.
12238 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
12241 Updated version to 0.80
12244 Updated version to 0.80cvs
12246 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
12248 * Released Dia 0.80
12249 Tag called DIA_0_80
12251 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
12255 * objects/UML/Makefile.am
12256 * objects/ER/Makefile.am
12257 * objects/network/Makefile.am
12258 * objects/standard/Makefile.am
12259 * objects/FS/Makefile.am
12260 * objects/sybase/Makefile.am
12261 * objects/flowchart/Makefile.am
12262 * objects/custom/Makefile.am
12263 Added -I$(top_srcdir)/intl which is needed for
12264 --with-included-gettext.
12270 Updated swedish translation.
12272 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
12275 Updated version number to 0.80.
12281 Updated. Moved bugs to KNOWN_BUGS.
12284 Updated with 0.80 release notes.
12286 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
12289 For backwards compatibility, make sure handle 0 and 1 are the
12290 first and last handle. Fixes compatibility with 0.41, breaks
12291 compatibility with cvs version.
12292 Fixed bug in undo/redo of adding deleting endpoint segments
12293 when the endpoint was connected.
12294 Start OrthConn objects with three segments.
12296 1999-10-16 James Henstridge <james@daa.com.au>
12298 * objects/custom/custom_object.c (custom_update_data): changed
12299 resizing behaviour a bit so that shapes don't grow huge when you try
12300 to resize them to smaller than the size required by the text box.
12301 Also, now shapes will not grow with fixed aspect ratio when you enter
12302 text into them unless the shape has the fixed aspect ratio flag set.
12304 1999-10-15 James Henstridge <james@daa.com.au>
12306 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
12308 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
12310 * objects/flowchart/magdrum.shape:
12311 * objects/flowchart/offlinestore.shape:
12312 * objects/flowchart/punchedtape.shape:
12313 * objects/flowchart/transmittape.shape:
12314 * objects/flowchart/punchedcard.shape: new shapes.
12316 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
12318 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
12320 * objects/flowchart/collate.shape:
12321 * objects/flowchart/delay.shape:
12322 * objects/flowchart/extract.shape:
12323 * objects/flowchart/intstorage.shape:
12324 * objects/flowchart/magdisk.shape:
12325 * objects/flowchart/magtape.shape:
12326 * objects/flowchart/merge.shape:
12327 * objects/flowchart/or.shape:
12328 * objects/flowchart/sort.shape:
12329 * objects/flowchart/sumjunction.shape: new shapes.
12331 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
12335 Entering an erronous command as print command
12338 * app/paginate_psprint.c:
12339 Save all print dialog values for next time.
12342 Remove custom lib from DIA_LIB_PATH.
12344 1999-10-14 James Henstridge <james@daa.com.au>
12346 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
12348 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
12350 * objects/flowchart/offpageconn.shape:
12351 * objects/flowchart/manualop.shape:
12352 * objects/flowchart/preparation.shape:
12353 * objects/flowchart/manualinput.shape:
12354 * objects/flowchart/predefdproc.shape:
12355 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
12357 1999-10-13 James Henstridge <james@daa.com.au>
12359 * app/diapagelayout.[ch]: added accessors to paper information. The
12360 widget should be just about complete now.
12362 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
12363 It actually does something now.
12365 1999-10-12 James Henstridge <james@daa.com.au>
12367 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
12368 for the page layout widget.
12370 * app/diapagelayout.[ch]: start of page layout widget. Not actually
12371 built yet as it is not complete.
12373 * objects/flowchart/flowchart.c: added new shapes to sheet.
12375 * objects/flowchart/display.shape:
12376 * objects/flowchart/transaction.shape: new shapes.
12378 * AUTHORS: added my name to the spec file.
12380 * dia.spec: include the dia desktop entry to the spec file.
12382 * Makefile.am: install the dia.desktop file.
12384 * dia.desktop: added a gnome desktop entry so you can start dia
12385 from the gnome panel menu.
12387 1999-10-11 James Henstridge <james@daa.com.au>
12389 * objects/custom/custom_object.c:
12390 * objects/custom/shape_info.c: warning fixes.
12392 * objects/flowchart/document.shape: a shape file for the `document'
12395 * lib/custom.h: new header with the custom shape prototypes.
12397 * app/app_procs.c: register custom objects as well.
12398 (register_objects_in): close shared libraries if they don't load
12399 correctly, and call g_module_make_resident on libraries that load
12402 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
12404 * objects/custom/custom.c: removed get_version, added custom_ prefix
12405 to register_objects and register_sheets.
12407 * objects/custom/Makefile.am: converted to a normal library.
12409 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
12411 * app/lineprops_area.c:
12412 * app/render_svg.c:
12414 * objects/custom/shape_info.c:
12415 * objects/flowchart/box.c:
12416 * objects/flowchart/diamond.c:
12417 * objects/flowchart/ellipse.c:
12418 * objects/flowchart/parallelogram.c:
12419 * objects/network/flash.c:
12420 * objects/network/scead-plug.c:
12421 * objects/sybase/client.c:
12422 Removed -Wall warnings.
12424 * objects/network/bus.c:
12425 Removed unused functions.
12427 * objects/FS/flow-ortho.c:
12428 * objects/FS/flow-poly.c:
12429 * objects/FS/flow.c:
12430 * objects/FS/function.c:
12432 Implemented "non-implemented" undo for FS objects.
12433 Now at least it won't crash.
12435 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
12437 * objects/network/bus.c:
12439 Handles are now added and removed using the object menu.
12440 Default to 6 handles instead of 10.
12441 Changed name from "Standard - Bus" to "Network - Bus". Kept old
12442 name for backwards compatibility.
12444 * objects/network/network.c:
12445 Changed name from "Standard - Bus" to "Network - Bus". Kept old
12446 name for backwards compatibility.
12448 * app/properties.[ch]:
12450 Update properties in properties dialog if the shown object
12451 is part of and ObjectChange (undo or redo).
12454 Remove old known bugs list.
12456 * objects/UML/class_dialog.c:
12457 Removed debug printf's.
12459 1999-10-10 James Henstridge <james@daa.com.au>
12461 * objects/custom/custom.c (custom_object_load): new function that
12462 provides a nice entry point to the custom shape code for when it
12463 gets used by other libraries.
12465 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
12466 speeds builds up a bit.
12468 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
12469 (SUBDIRS): do not descend into pixmaps subdirs.
12471 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
12472 This speeds up build process.
12474 * objects/custom/custom.c (sheets): made variable static.
12476 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
12479 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
12481 * objects/custom/custom.c: look in ~/.shapes instead of
12482 ~/.dia_shapes as the per-user shapes directory.
12484 * app/preferences.c (prefs_save): save config to ~/.diarc.
12485 (prefs_load): load configuration from ~/.diarc. If the file
12486 does not exist, fallback on the old ~/.diarc location.
12488 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
12490 (register_all_objects): look for user specific objects in
12491 ~/.objects rather than ~/.dia_libs.
12493 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
12497 * objects/flowchart/box.c
12498 * objects/flowchart/ellipse.c
12499 * objects/flowchart/flowchart.c
12500 Use gmodule for dynamic linking. As gmodule is using
12501 RTLD_GLOBAL i had to change flowchart box and ellipse
12502 so the typenames doesn't conflict with the standard
12507 Use button box to make dialogs look better.
12509 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
12511 * objects/UML/class_dialog.c:
12512 * objects/UML/class.h:
12513 Implemented undo for "UML - Class" objects.
12514 Not 100% tested yet.
12516 * objects/UML/classicon.c:
12517 * objects/UML/constraint.c:
12518 * objects/UML/dependency.c:
12519 * objects/UML/generalization.c:
12520 * objects/UML/implements.c:
12521 * objects/UML/large_package.c:
12522 * objects/UML/lifeline.c:
12523 * objects/UML/message.c:
12524 * objects/UML/object.c:
12525 * objects/UML/realizes.c:
12526 * objects/UML/state.c:
12527 * objects/UML/usecase.c:
12530 * lib/connectionpoint.h:
12533 1999-10-09 James Henstridge <james@daa.com.au>
12535 * objects/custom/*.[ch]: added copyright notices to custom object
12538 * shapes/Circuit/hdiode.shape:
12539 * shapes/Circuit/hzener.shape:
12540 * shapes/Circuit/opamp.shape:
12541 * shapes/Circuit/vdiode.shape:
12542 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
12543 shapes look nice after the custom shape code changes.
12545 * objects/custom/README: updated docs to cover changes to drawing
12548 * objects/custom/custom_object.c (custom_draw): honour the line
12549 properties when drawing the shape.
12551 * objects/custom/shape_info.[ch]: added support for setting line
12552 properties for individual drawing elements in a custom shape. You
12553 can set the dash style, dash length, cap style and join style.
12555 1999-10-07 James Henstridge <james@daa.com.au>
12557 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
12558 for foreground and background.
12560 * objects/custom/custom_object.c (custom_draw): use the new style
12561 information when drawing the object.
12563 * objects/custom/shape_info.[ch]: store all shape style info in the
12564 GraphicStyle structure. This makes adding support for extra CSS
12565 attributes easier -- we don't have to keep adding extra arguments to
12566 a lot of functions.
12568 1999-10-05 James Henstridge <james@daa.com.au>
12570 * lib/intl.c (unalias_lang): merged in changes from the i18n code
12571 swiped from gnome-libs.
12573 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
12575 * objects/standard/image.c (get_directory):
12576 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
12578 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
12580 * lib/poly_conn.c (polyconn_destroy):
12581 Fix bug. Access of freed memory.
12582 Rememeber, you can't free the handles of an object
12583 before calling object_destroy(), as it unconnects the handles
12584 therefore referencing them.
12586 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
12589 undo_clear() didn't set stack->depth to zero.
12590 This made other undo functions crash after this had been called
12594 Slightly modified by Chris Love <clove@exactis.com>
12596 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
12598 * objects/UML/class.h:
12599 * objects/UML/class_dialog.c:
12600 Retrun NULL ObjectChange on class property change.
12601 This means no crashes, but "UML - Class" doesn't support undo yet.
12603 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
12608 * objects/UML/classicon.c:
12609 * objects/UML/dependency.c:
12610 * objects/UML/generalization.c:
12611 * objects/UML/implements.c:
12612 * objects/UML/large_package.c:
12613 * objects/UML/lifeline.c:
12614 * objects/UML/message.c:
12615 * objects/UML/object.c:
12616 * objects/UML/realizes.c:
12617 * objects/UML/state.c:
12618 * objects/UML/usecase.c:
12619 Update to new undo (w. get/set_state).
12620 Add object menu to add/delete segments.
12622 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
12625 Add equal distance alignment.
12627 * app/object_ops.c:
12628 Add equal distance alignment.
12629 Fix bug in adjacent alignment.
12631 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
12633 * objects/UML/constraint.c:
12634 Update to new undo (w. get/set_state).
12636 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
12638 * app/paginate_psprint.c:
12639 Save (parts, more todo) of the info in the print dialog to the
12640 next time it's opened.
12641 Patch from Yo Ric Dude <ricdude@toad.net>
12643 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
12646 Updated version string to 0.41cvs.
12648 * objects/UML/assocition.c:
12649 Update to new undo (w. get/set_state).
12650 Add object menu to add/delete segments.
12653 Added function debug_break() and called it after all
12654 objects and sheets are loaded. Place a breakpoint here if you
12655 want to debug objects. All symbols should be loaded.
12657 1999-09-12 James Henstridge <james@daa.com.au>
12659 * app/menus.c (display_menu_items): added print menu item.
12660 (filemenu): always add print menu item -- even if gnome-print is
12663 * app/commands.h, app/commands.c (file_print_callback): the print
12664 menu item is now available for both gnome-print and non gnome-print
12667 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
12668 print with the non gnome-print driver.
12670 1999-09-11 James Henstridge <james@daa.com.au>
12672 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
12673 printer dialog code out of commands.c.
12675 * app/paginate_psprint.c: new file containing the pagination code for
12678 * app/render_eps.c: made a few modifications so as well as producing
12679 EPS files, this renderer can be set up to do postscript printing.
12680 This basically entailed adding an extra function to create a RenderEPS
12681 renderer which did not bother setting the viewport for the document.
12682 That was left for the pagination code.
12684 1999-09-10 James Henstridge <james@daa.com.au>
12686 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
12687 gnome-print does not support elliptic arcs at the moment, approximate
12688 the ellipse with eight bezier curves. This gives a pretty good
12689 match to a true ellipse.
12691 1999-09-09 James Henstridge <james@daa.com.au>
12693 * app/commands.c (file_gnome_print_callback): added support for
12694 scaling the diagram. Also fixed a few other bugs.
12696 * app/paginate_gnomeprint.c (print_page): added ability to scale
12697 document. Fixed up test to see if the page has no objects on it.
12698 This should prevent some blank pages being printed. Non square
12699 objects such as lines could still cause problems.
12701 1999-09-08 James Henstridge <james@daa.com.au>
12703 * app/commands.c (file_gnome_print_callback): changed from using the
12704 standard printer selection dialog to one that also has a paper size
12707 * commands.[ch]: added callbacks for the print menu item. Currently
12708 it only does A4 output. I will make it configurable soon.
12710 * app/menus.c: add a print diagram menu item if gnome-print support
12713 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
12714 bit higher level than the gnome-print renderer. It splits the
12715 diagram into page size chunks and then renders them. For each
12716 page, it only renders the objects whose bounding box intersects
12717 the page, and it sets the clip mask so that the diagram does not
12718 overlap the margins.
12720 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
12721 that uses gnome-print as its back end.
12723 * configure.in: added a check for gnome-print. It is disabled by
12724 default because the code is not really working correctly yet.
12726 * app/menus.c: the delete object menu item was missing from the
12727 GnomeUIInfo style menus.
12729 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
12732 Added japanese to ALL_LINGUAS.
12733 Fix for Linux on Alpha.
12735 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
12737 * app/create_object.c (create_object_button_press):
12738 Always initialize tool->obj. Otherwise we store a null
12739 in the undo Change.
12742 Set linestyle before drawing cursor.
12743 Fix undo of backwards delete.
12745 1999-09-05 James Henstridge <james@daa.com.au>
12747 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
12749 * app/render_svg.c (draw_image): some fixes so that the appropriate
12750 style attributes are set. Before it was setting line styles on
12751 fill_* functions. Now it only does this for the draw_* variants.
12753 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
12754 variable so that custom shapes can be loaded.
12756 * shapes/: new directory for custom shapes. The Circuit sheet has
12759 1999-09-02 James Henstridge <james@daa.com.au>
12761 * TODO: removed a few todo items that have been implemented.
12763 * app/interface.c (create_sheets): enabled the popup page menu to the
12764 notebook. This can make it easier to select different sheets.
12766 * object/custom/Circuit/: added diode, zener diode, ground point and
12767 operational amplifier shapes.
12769 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
12770 if you want the output.
12772 * objects/custom/shape_info.c (parse_path): same here.
12774 * objects/custom/load_sheet.c (load_with_readdir): don't print so
12775 much debugging output. To get the previous level of output, define
12778 * objects/custom/shape_info.c (parse_svg_node): polygons were being
12779 recorded as polylines in the ShapeInfo structure.
12781 * objects/custom/README: some notes on writing new custom shapes.
12783 1999-09-01 James Henstridge <james@daa.com.au>
12785 * objects/custom/Circuit/hinductor.*:
12786 * objects/custom/Circuit/vinductor.*: added inductor shapes that
12787 also test out the bezier curve and SVG path support.
12789 * objects/custom/custom_object.c (custom_draw): added support for
12790 drawing bezier paths and filled shapes.
12792 * objects/custom/shape_info.c (parse_path): new function to parse
12793 SVG path elements. It does not do quadratic beziers or elliptic
12794 arcs though. Only moves, lines and cubic beziers.
12795 (*): added support for paths.
12797 1999-08-31 James Henstridge <james@daa.com.au>
12799 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
12801 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
12804 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
12807 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
12810 * lib/render_store.[ch]: use newer bezier functions.
12812 * lib/render.h: changed the bezier drawing functions to use an array
12813 of BezPoint structures instead of normal Point structures to allow
12814 lineto's mixed in with the curveto's.
12816 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
12818 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
12819 xpm images for different shapes to Makefile.
12821 * objects/custom/custom_object.c (custom_object_new): set the icon
12822 for the sheet button if there is one. Otherwise fall back on the
12823 default custom object icon.
12825 * objects/custom/shape_info.c (load_shape_info): read the sheet
12826 icon name from the shape file.
12828 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
12829 check the pixmap_file field for the name of a pixmap file to load
12832 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
12833 at the end of the structure, and it isn't used if the pixmap field
12834 is non NULL, so it should not break binary compatibility.
12836 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
12837 added support for the use of an index.sheet file so you can specify
12838 the ordering of the shapes in the sheet, and also internationalise
12839 the sheet name and actually be able to give a description. The old
12840 readdir based sheet loading code acts as a fallback if an index.sheet
12841 file can not be found.
12843 * objects/custom/custom_util.[ch]: new file containing useful routines
12844 needed by the custom object code. Currently only contains a simple
12845 routine for resolving relative paths.
12847 * objects/custom/custom_object.c (custom_draw): fixed problem with
12848 drawing rectangles if the shape has been flipped.
12850 1999-08-30 James Henstridge <james@daa.com.au>
12852 * objects/custom/custom_object.c (custom_get_object_menu): allow
12853 flipping of custom shapes. This uses the miggle click object
12856 * objects/custom/Circuit/npn.shape: fix aspect ratio.
12858 * objects/custom/custom_object.c (custom_update_data): honour the
12859 aspect ratio constraints.
12861 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
12862 tag parsing, so you can specify a free, fixed or a range for aspect
12863 ratios for the shape.
12865 1999-08-29 James Henstridge <james@daa.com.au>
12867 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
12868 up shape namespace tag.
12870 * objects/custom/shape_info.c (load_shape_info): check xml:lang
12871 attribute on <description> elements to support i18n for custom
12872 shape descriptions.
12873 Also changed the shape namespace for custom shapes to something
12874 a little more sensible.
12876 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
12878 * lib/intl.c: new file containing some functions for i18n stuff.
12880 * app/layer_dialog.c (create_button_box): fixed a warning.
12882 * objects/custom/custom_object.c: use current line style. Save dash
12885 * objects/flowchart/diamond.c: use current line style. Save dash
12888 * objects/flowchart/parallelogram.c: use current line style. Save
12891 * objects/flowchart/ellipse.c: use current line style. Save dash
12894 * objects/flowchart/box.c: use current line style. Save dash length.
12896 * objects/standard/ellipse.c: make ellipse use current line style.
12898 * objects/standard/box.c: use the line style set in the toolbox for
12899 new boxes, and remember the dash length.
12901 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
12904 1999-08-24 James Henstridge <james@daa.com.au>
12906 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
12907 to try to stop ellipse to get infinite width/height when we resize,
12908 while trying to keep the text inside the ellipse.
12910 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
12911 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
12912 resizing behaviour, so that you can't push objects round the screen
12913 with the resize handles.
12915 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
12916 get the OK buttons in the dialogs to take default clicks.
12918 * objects/custom/custom_object.c: added code so that resizing the
12919 shape does not end up pushing it round the screen.
12921 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
12923 * app/display.[ch]:
12924 Generate rectangle with the union of the damaged regions.
12925 This is used to optimize the grid paint and the object rendering.
12926 display_render_pixmap passes this info to grid_draw() and data_render().
12929 grid_draw doesn't draw grid lines outside of damaged rectangle.
12930 Sets dashlength when drawing non-solid grid.
12932 * lib/diagramdata.[ch]:
12933 data_render() and layer_render() takes an optional damaged rectangle
12934 argument. No objects not intersecting this are drawn.
12938 Call data_render with NULL update rectangle.
12940 1999-08-23 James Henstridge <james@daa.com.au>
12942 * objects/custom/custom_object.c (custom_update_data): if the aspect
12943 ratio is fixed, make sure the shape is not distorted.
12945 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
12946 a <fixaspectratio/> tag is given in the shape file.
12948 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
12949 added support for stroke-width, stroke and fill CSS attributes
12950 specified in style attributes of the SVG elements. The line width
12951 is relative to the user specified line width. The stroke and fill
12952 attributes can only be used to swap the foreground/background
12955 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
12956 sensitivity on the dash length selector when this function is called.
12958 * objects/standard/arc.c: same. Also handle dash length.
12959 * objects/standard/zigzagline.c: same.
12960 * objects/standard/polyline.c: same. Also handle dash length.
12961 * objects/standard/line.c: use default arrow/line styles.
12963 * app/interface.c: added callbacks to set the default attributes.
12965 * lib/attributes.c: added implementations of these functions.
12967 * lib/attributes.h: added extra prototypes for the new line properties
12968 area in the toolbox.
12970 * app/interface.c (create_lineprops_area): added line properties
12971 area to bottom of toolbox.
12973 * app/lineprops_area.h: a header exporting a few routines of the
12974 line properties area widgets.
12976 * app/lineprops_area.c: new file containing a selector for arrows
12977 and line styles to go in the main toolbox.
12979 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
12982 Update Gtk+ 1.0.5 comment to 1.2.0.
12991 Make sure we don't propagate -ldl and -lpopt to all LIBS
12992 by adding new var APP_LIBS that only app/dia links with.
12995 Update run_dia.sh to load custom and flowchart objects.
12997 * objects/ER/Makefile.am:
12998 * objects/FS/Makefile.am:
12999 * objects/UML/Makefile.am:
13000 * objects/network/Makefile.am:
13001 * objects/standard/Makefile.am:
13002 * objects/sybase/Makefile.am:
13003 Don't build versioned libs.
13005 1999-08-22 James Henstridge <james@daa.com.au>
13007 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
13010 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
13011 should actually work a bit now.
13013 * objects/custom/Circuit/*: a test sheet for the custom shape code.
13014 It is a small collection of circuit elements.
13016 * objects/custom/shape_info.c: fixed up loading of polylines and
13017 polygons. Before it was removing negative signs :(
13019 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
13020 placeholder was here before. I still need to work out how to set
13021 icons for individual custom shapes.
13023 * objects/custom/custom.c: added code to load the shapes into sheets
13024 properly. The shape files should be arranged into directories, and
13025 each directory represents a different sheet in the toolbox. This
13026 will make it very easy to distribute a collection of dia shapes as
13027 a tarball. I still need to work out internationalisation, and maybe
13028 also shape ordering in the sheet.
13030 * objects/custom/custom_object.c: fixed up dialogs for these objects.
13031 (custom_create): fix for objects without text areas.
13033 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
13034 and saving of custom object works correctly now.
13036 1999-08-21 James Henstridge <james@daa.com.au>
13038 * objects/flowchart/ellipse.c:
13039 * objects/flowchart/diamond.c:
13040 * objects/flowchart/parallelogram.c:
13041 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
13042 copying or loading these object types. Not all the connection
13043 points would be initialised correctly.
13045 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
13048 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
13049 build a versioned library. It will only ever be dlopen'd, so this
13052 * objects/custom/custom_object.c (custom_distance_from): allow
13053 selecting the object by clicking on the text. This fixes problems
13054 where the text box is outside the graphic.
13056 * objects/custom/shape_info.c (load_shape_info): fixed up reading
13057 of connections points. It should be possible to add connections
13058 to custom objects now.
13060 * objects/custom/custom_object.c (custom_update_data): fixed resizing
13061 due to changes to text.
13063 * configure.in: added extra makefiles.
13065 * objects/custom/shape_info.[ch]:
13066 * objects/custom/custom_object.c:
13067 * objects/custom/custom.c: the starts of custom shape support in dia.
13068 This is not built by default at the moment, since it is not quite
13069 complete. When it is, it will let you create more shapes for dia
13070 without writing a line of C. Its implementation includes buzzwords
13071 such as XML and SVG, so it must be good :)
13073 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
13075 * app/app_procs.c (app_exit): Use button labels "Quit" and
13076 "Cancel" instead of "Yes" and "No".
13077 Set default action to "Cancel" instead of "Quit".
13079 1999-08-19 James Henstridge <james@daa.com.au>
13081 * objects/flowchart/flowchart.c: added ellipse object.
13083 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
13085 1999-08-18 James Henstridge <james@daa.com.au>d
13087 * app/color_area.c (color_area_edit): small fix to prevent dia from
13088 segfaulting when you try to change the default foreground/background.
13090 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
13092 * app/diagram.[ch] (diagram_redraw_all):
13093 Added function that redraws all diagrams.
13095 * app/preferences.c (prefs_apply):
13096 Call diagram_redraw_all when prefs are changed.
13098 * app/render_svg.c:
13099 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
13100 older libxml's, and the old version works good enought here.
13102 1999-08-17 James Henstridge <james@daa.com.au>
13104 * lib/widgets.c: changed handlers that were connected to the GtkButton
13105 "pressed" signal to connect to the "clicked" signal. This removes the
13106 problem where dialogs are inactive until you click a mouse button
13107 after using a colour selector.
13109 * configure.in: added extra makefiles to AC_OUTPUT list.
13111 * objects/Makefile.am (SUBDIRS): added flowchart module
13113 * objects/flowchart/*: a collection of shapes for use in flowcharts.
13115 * app/color_area.c (color_area_events): similar here.
13117 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
13118 event is recieved with event->width == 0, which causes a warning if we
13119 try to create a pixmap of that width.
13121 * app/preferences.c, app/preferences.h, app/grid.c: added code to
13122 allow you to configure the colour of the grid, and also lets you
13123 set the grid to use dotted lines instead of solid ones.
13125 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
13126 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
13128 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
13129 export filter. It is not quite complete, but for most shapes it
13130 works as expected. Fonts still need a bit of work.
13132 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
13134 * configure.in: Added "en_GB" to ALL_LINGUAS.
13136 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
13139 Added Undo and Redo to GNOME menus.
13141 * objects/ER/attribute.c:
13142 * objects/ER/entity.c:
13143 * objects/ER/participation.c:
13144 * objects/ER/relationship.c:
13145 Added get/set_state functions.
13147 * objects/ER/participation.c:
13148 Added add/delete segment.
13151 Updated Swedish translation.
13153 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
13155 * app/preferences.[hc]:
13156 Added undo_depth pref.
13159 Never grow stack larger than pref.undo_depth.
13160 undo_depth == 0 means unlimited.
13161 Converted printfs to conditionally compiled DEBUG_PRINTFs.
13163 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
13168 * lib/render_object.c:
13169 * objects/ER/attribute.c:
13170 * objects/ER/entity.c:
13171 * objects/ER/participation.c:
13172 * objects/ER/relationship.c:
13173 * objects/FS/flow-ortho.c:
13174 * objects/FS/flow-poly.c:
13175 * objects/FS/flow.c:
13176 * objects/FS/function.c:
13177 * objects/UML/actor.c:
13178 * objects/UML/association.c:
13179 * objects/UML/class.c:
13180 * objects/UML/classicon.c:
13181 * objects/UML/component.c:
13182 * objects/UML/constraint.c:
13183 * objects/UML/dependency.c:
13184 * objects/UML/generalization.c:
13185 * objects/UML/implements.c:
13186 * objects/UML/large_package.c:
13187 * objects/UML/lifeline.c:
13188 * objects/UML/message.c:
13189 * objects/UML/note.c:
13190 * objects/UML/object.c:
13191 * objects/UML/realizes.c:
13192 * objects/UML/small_package.c:
13193 * objects/UML/state.c:
13194 * objects/UML/usecase.c:
13195 * objects/network/bus.c:
13196 * objects/standard/arc.c:
13197 * objects/standard/box.c:
13198 * objects/standard/ellipse.c:
13199 * objects/standard/image.c:
13200 * objects/standard/line.c:
13201 * objects/standard/polyline.c:
13202 * objects/standard/textobj.c:
13203 * objects/standard/zigzagline.c:
13204 Removed all traces of is_empty(). It doesn't work in an
13207 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
13212 Undoable grouping and ungrouping.
13214 * app/layer_dialog.c:
13215 * lib/diagramdata.[ch]:
13216 Undoable layer ops.
13218 * app/modify_tool.c:
13219 Undoable unconnect on handle move.
13221 * lib/orth_conn.[ch]:
13222 Working undoable add/remove segment.
13223 Removed endpoint_handles from OrthConn, renamed
13224 midpoint_handles to handles and put the endpoint
13227 * objects/standard/zigzagline.c:
13228 * objects/ER/participation.c:
13229 * objects/UML/association.c:
13230 * objects/UML/dependency.c:
13231 * objects/UML/generalization.c:
13232 * objects/UML/realizes.c:
13233 Update for the changes in OrthConn
13235 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
13237 * configure.in: Added "de" to ALL_LINGUAS.
13239 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
13251 Don't have the <Display> etc part of the menu strings
13252 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
13255 Don't have the <Display> etc part of the menu strings
13256 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
13257 Don't remove is_empty() objects, that don't work with undo.
13259 * lib/objchange.[ch]:
13261 Definition of ObjectChange. This is essentially an Change
13262 exported to the object libs. It encapsulates a change made
13263 to an objects internals. It can be applied, reverted and freed.
13264 There are also utility functions for doing ObjectChanges that
13265 only get/set the whole state of an object to store the change.
13266 This cannot be used when the object change deletes or adds a
13267 object which has references from other objects, eg. Handles which
13268 might be connected.
13271 Added objchange.c and objchange.h.
13274 Return NULL when loading fails.
13277 Menu callbacks return an ObjectChange.
13280 Reference objchange.o
13283 Key events return ObjectChange if they modify the object.
13287 Added object_add_handle_at() function.
13288 Apply properties returns an ObjectChange.
13289 Remove ObjectState and the get/set state functions, these
13290 don't always work. Use the new ObjectChange instead.
13293 Added object_add_handle_at() function implementation.
13295 * lib/orth_conn.[ch]:
13296 Use ObjectChange. Not finished yet.
13297 Removed get/set/free state functions
13299 * lib/poly_conn.[ch]:
13301 Don't remove segments that are small.
13302 Removed get/set/free state functions
13306 Added functions to get/set all text attributes.
13308 * objects/standard/arc.c:
13309 * objects/standard/box.c:
13310 * objects/standard/ellipse.c:
13311 * objects/standard/image.c:
13312 * objects/standard/line.c:
13313 * objects/standard/polyline.c:
13314 * objects/standard/textobj.c:
13315 * objects/standard/zigzagline.c:
13317 fixed bug in image_set_state.
13318 zigzagline.c not finished yet.
13320 * app/disp_callbacks.c:
13321 Use ObjectChange that are returned from menu callbacks and
13322 key_events for undo.
13324 * app/properties.c:
13325 Use ObjectChange that are returned from properties apply
13330 New undo type: ObjectChangeChange. This wraps a change to the
13331 internals of an object (and ObjectChange) in code that does
13332 app specific stuff (object_add_updates etc.)
13334 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
13336 * lib/orth_conn.[ch]:
13337 Added code for add/delete segment.
13339 * objects/standard/zigzagline.c:
13340 Use the new orth_conn code.
13343 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
13345 * objects/FS/Makefile.am
13346 Removed fs.h from sources.
13352 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
13354 * app/disp_callbacks.c (ddisplay_canvas_events):
13355 Fix for bug. Every other arrow-key press got lost.
13356 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
13359 change automake.sh to autogen.sh
13361 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
13364 Don't remove 'empty' objects.
13365 This violent destruction of objects won't work
13366 with the new undo framework.
13368 * app/disp_callbacks.c:
13369 Save undo info for object menu calls and key_events.
13371 * app/properties.c:
13372 Save undo info on properties apply.
13374 * lib/dia_image.[ch]:
13375 Add refcounting for images.
13377 * app/render_eps.c:
13378 * app/render_gdk.c:
13380 DiaImage * -> DiaImage
13383 Add undo functions for object state changes.
13387 change of semntics for focus->key_event.
13388 Now returns TRUE if the object recieving the event
13394 * lib/orth_conn.[ch]:
13395 Don't automatically create and delete segments when
13396 handles are moved. This is incompatible with undo.
13397 Added state get, set and free functions.
13399 * lib/orth_conn.[ch]:
13400 Added state get, set and free functions.
13402 * objects/UML/object.c:
13403 * objects/UML/uml.c:
13404 Fixed typo "UML - Objet" -> "UML - Object".
13405 Saved old for backwards compatibility.
13407 * objects/standard/arc.c:
13408 * objects/standard/box.c:
13409 * objects/standard/ellipse.c:
13410 * objects/standard/image.c:
13411 * objects/standard/line.c:
13412 * objects/standard/polyline.c:
13413 * objects/standard/textobj.c:
13414 * objects/standard/zigzagline.c:
13415 Added get/set state functions.
13416 Textobj has a redo crash-bug.
13417 Zigzagline needs object menus to add segments.
13420 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
13422 * app/render_eps.c (set_dashlength):
13423 Don't generate eps files with zero dash-length.
13425 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
13428 * app/create_object.c:
13430 Finished undo for create and paste.
13433 Started properties undo.
13435 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
13438 Added resizeable groups.
13441 Removed unused variable.
13445 Undo/redo for cut/delete done.
13447 * app/create_object.c:
13448 * app/modify_tool.c:
13449 * lib/diagramdata.[ch]:
13450 * app/diagram.[ch]:
13451 renamed diagram_add_selected -> diagram_select
13452 renamed diagram_remove_selected -> diagram_unselect
13454 * app/properties.[ch]:
13455 Added properties_hide_if_shown() function.
13457 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
13463 * app/commands.[ch]
13464 * app/modify_tool.[ch]
13465 * app/object_ops.[ch]
13466 * app/connectionpoint_ops.c
13468 Use undo functions.
13469 WARNING: Not finished. Will break.
13470 Finished: move object, move handle.
13473 Added diagram_selected_break_external() function.
13474 It removes all connections between selected objects
13476 Add undo stack to Diagram.
13478 * lib/diagramdata.[ch]
13479 Added layer_remove_objects() function
13481 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
13483 * objects/FS/Makefile.am
13484 * objects/sybase/Makefile.am
13485 Now uses GNOME_CFLAGS.
13488 Now compiles with GNOME even if popt.h isn't available.
13490 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
13493 * objects/Makefile.am
13495 First version of sybase objects from
13496 Brian Bruns <camber@umcc.ais.org>
13498 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
13501 Added fr to ALL_LINGUAS
13503 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
13507 Popt-code is activated if popt is available.
13509 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
13511 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
13513 * lib/orth_conn.[ch]:
13514 Added orthconn_get_middle_handle()
13517 Added text_set_cursor_at_end()
13520 Added first version of functions structure diagrams.
13522 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
13524 * app/modify_tool.c:
13525 Include math.h to remove warning.
13527 * app/commands.c (dialogs_properties_callback):
13528 Bring up correct properties dialog when selected
13530 From Dan Cohn <dan@internap.com>
13532 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
13534 Patch from Lars R. Clausen
13536 * app/modify_tool.c:
13537 Changed abs to fabs.
13539 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
13545 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
13547 Patches from Dan Cohn <dan@internap.com>
13549 * app/commands.[ch]:
13550 * app/display.[ch]:
13552 * app/preferences.[ch]:
13553 Implements ability to turn on/off connection points in
13554 current drawing and in global prefs.
13556 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
13558 * lib/widgets.c (dia_line_style_selector_init):
13561 * lib/diagramdata.c (layer_update_extents):
13562 Fixed uninitialized variable error.
13564 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
13567 Made some changes to the gdk_imlib visual+colormap setup.
13569 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
13571 * objects/UML/usecase.c:
13572 * objects/UML/lifeline.c
13575 * objects/UML/object.c:
13576 * objects/UML/message.c:
13577 Changed font from Courier to Helvetica.
13581 Added dash lenth to the LineStyle widget.
13583 * objects/standard/ellipse.c :
13584 * objects/standard/zigzagline.c:
13585 * objects/standard/line.c:
13586 Added dash lenght property.
13588 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
13590 * app/render_eps.c:
13591 First shot at latin1 encoded eps files.
13592 Works, but the eps files get a bit large.
13594 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
13596 * objects/UML/class.[ch]:
13597 * objects/UML/uml.[ch]:
13598 Reverted the line wrap changes.
13599 Some day this might return, but it has to be selectable and
13600 default to off for loaded objects, otherwise it breaks file
13601 format compatibility.
13602 There was also some complains about how it looked, so a making it
13603 selectable is good for this too.
13605 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
13607 * objects/UML/class.[ch]:
13608 Some indentation cleanup.
13609 Added wrap_lines variable to class.
13610 I'll fix the line break stuff tomorrow.
13612 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
13615 Added ref to poly_conn.o.
13617 * objects/standard/polyline.c (polyline_draw):
13618 * objects/standard/zigzagline.c (zigzagline_draw):
13619 * objects/standard/arc.c (arc_draw):
13620 * objects/standard/line.c (line_draw):
13621 Draw lines before arrows. This makes hollow arrows not
13624 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
13626 Changes from Kim Peasley <kpeasley@ior.com>
13628 * objects/UML/class.c:
13629 Break lines with long operations so classes won't be
13632 * objects/UML/uml.[ch]:
13633 Helperfunctions for the above.
13635 * objects/UML/objects.c:
13636 Fix bug that duplicated the text in the attributes
13637 textwidget each time the object was selected.
13639 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
13641 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
13643 * app/modify_tool.c:
13644 * app/modify_tool.h:
13645 Control-drag is restricted to vertical/horizontal movement
13648 ModifierKeys argument added to object_move_handle
13650 * app/connectionpoint_ops.c:
13651 * app/create_object.c:
13652 * app/object_ops.c:
13653 * objects/ER/attribute.c:
13654 * objects/ER/entity.c:
13655 * objects/ER/participation.c:
13656 * objects/ER/relationship.c:
13657 * objects/UML/actor.c:
13658 * objects/UML/association.c:
13659 * objects/UML/class.c:
13660 * objects/UML/classicon.c:
13661 * objects/UML/component.c:
13662 * objects/UML/constraint.c:
13663 * objects/UML/dependency.c:
13664 * objects/UML/generalization.c:
13665 * objects/UML/implements.c:
13666 * objects/UML/large_package.c:
13667 * objects/UML/lifeline.c:
13668 * objects/UML/message.c:
13669 * objects/UML/note.c:
13670 * objects/UML/object.c:
13671 * objects/UML/realizes.c:
13672 * objects/UML/small_package.c:
13673 * objects/UML/state.c:
13674 * objects/UML/usecase.c:
13675 * objects/network/bus.c:
13676 * objects/standard/arc.c:
13677 * objects/standard/box.c:
13678 * objects/standard/ellipse.c:
13679 * objects/standard/image.c:
13680 * objects/standard/line.c:
13681 * objects/standard/polyline.c:
13682 * objects/standard/textobj.c:
13683 * objects/standard/zigzagline.c:
13684 Changed calls to move_handle to pass the new argument.
13688 Default line width, color etc #define'd
13691 Updates of danish menus
13693 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
13696 * dia_gnome_icon.png
13697 * dia_gnome_menu_icon.png
13699 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
13702 About dialog shows dia_logo.png. Removed the GNOME about dialog.
13705 Distribute the icons and install logo in pkgdatadir.
13708 Added DATADIR-define.
13710 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
13711 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
13714 Updated version number, made setup quiet, can build from cvs,
13715 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
13718 * objects/ER/Makefile.am
13719 * objects/UML/Makefile.am
13720 * objects/network/Makefile.am
13721 * objects/standard/Makefile.am
13722 now builds better with gnome
13724 * objects/UML/class_dialog.c
13725 Fixed typo -> po files must be updated too!!
13727 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
13730 Added reference so that widgets.o gets linked to the app.
13732 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
13734 * objects/UML/classicon.c:
13737 * objects/UML/actor.c:
13738 Changed position of 'snap-to-grid' so connection points are
13741 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
13743 * objects/UML/classicon.c:
13744 Changed position of 'snap-to-grid'.
13745 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
13747 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
13749 * objects/network/antenna.c
13750 * objects/network/flash.c
13751 * objects/network/hub.c
13752 * objects/network/modem.c
13753 * objects/network/modularswitch.c
13754 * objects/network/rj45plug.c
13755 * objects/network/scead-plug.c
13756 * objects/network/network.c
13757 * objects/network/Makefile.am
13758 * objects/network/pixmaps/antenna.xpm
13759 * objects/network/pixmaps/flash.xpm
13760 * objects/network/pixmaps/hub.xpm
13761 * objects/network/pixmaps/modem.xpm
13762 * objects/network/pixmaps/modularswitch.xpm
13763 * objects/network/pixmaps/rj45plug.xpm
13764 * objects/network/pixmaps/sceadplug.xpm
13765 * objects/network/pixmaps/Makefile.am
13766 Lots of new network objects from
13767 Roland Steinbach <roland@support-system.com>.
13769 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
13771 * objects/UML/classicon.c:
13772 Fixed connection positions, saved type as int (it has 3 states),
13773 and other small fixes.
13775 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
13777 * app/preferences.c:
13779 Added preference compress_save. It lets dia save uncompressed
13782 * objects/UML/class.c:
13783 Fixed bug with size calculation on methods that had class scope.
13785 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
13787 * objects/UML/usecase.c:
13788 Added collaboration mode
13789 Fixed connection points with text > ellipse bug and other
13792 * objects/UML/state.c:
13793 Fixed bug of bad position of text after being either end
13794 or begin, moved and returned to text
13796 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
13798 * app/preferences.c: Add prototype declaration for prefs_apply.
13800 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
13802 * app/preferences.c:
13804 Apply don't hide window.
13806 * app/properties.c:
13809 * objects/UML/object.c:
13810 * objdcts/UML/state.c:
13811 Some data was not copied on copy.
13814 Ben Hochstedler <benh@eeyore.moneng.mei.com>
13816 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
13819 Changed link order between X and libxml.
13820 Some people had problems with an old libz in their
13823 1999-04-09 Kjartan Maraas <kmaraas@online.no>
13825 * po/no.po: updated translation.
13827 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
13829 * lib/message.c (message_error):
13832 * app/commands.[ch]:
13833 * app/diagram.[ch]:
13834 Added begining of xfig importing
13836 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
13838 * objects/UML/pixmaps/state.xpm:
13839 * objects/UML/state.c:
13840 New UML object state machine.
13842 * objects/UML/uml.c:
13843 * objects/UML/Makefile.am:
13844 * objects/UML/pixmaps/Makefile.am:
13845 Added the state object.
13847 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
13849 * objects/UML/usecase.c:
13850 Added dialog to allow move text outside the ellipse.
13852 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
13854 * Released Dia 0.41
13855 Tag called DIA_0_41
13860 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
13863 Updated version number to 0.41
13868 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
13871 Changed errormessage for --export-to-ps. Removed call to
13872 g_log_set_always_fatal().
13875 * app/disp_callbacks.c
13877 (i18n) Removed gettext from some debugmessages.
13880 Small fix in GNOME-menus. Added warning that will help track
13881 problems with translations.
13884 (i18n) Updated swedish translation.
13886 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
13891 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
13897 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
13900 (i18n) Updated the danish translation.
13901 From Lars R. Clausen.
13903 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
13906 (i18n) The popup menu is translated now.
13909 (i18n) Updated swedish translation.
13911 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
13913 * Released Dia 0.40
13914 Tag called DIA_0_40
13917 Updated for new release
13919 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
13921 * objects/network/bus.c:
13922 Added initialization of properties dialog to NULL.
13924 * app/commands.c (edit_cut_callback):
13925 Update menu sensitivity when cut object.
13927 * app/modify_tool.c (click_select_object):
13928 * app/modify_tool.c (modify_button_release):
13929 Call diagram_update_menu_sensitivity() when
13930 selecting objects to update stuff that depends
13931 on selected/not selected.
13933 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
13936 Change order of subdir so that libintl.a builds.
13937 Now passed make distcheck.
13939 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
13941 * lib/font.c (init_x11_font):
13944 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
13946 * objects/UML/pixmaps/classicon.xpm:
13947 * objects/UML/classicon.c:
13948 * objects/UML/uml.c:
13949 Added the class stereotype icon objects.
13952 Changed default ps extension from .ps to .eps.
13954 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
13957 Added diamenu.h and intl.h
13962 * objects/UML/pixmaps/Makefile.am:
13965 * objects/standard/pixmaps/Makefile.am:
13968 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
13971 Use a scalable font before fixed when real font not found.
13976 * objects/standard/image.c:
13977 Better handling of loading/saving of images.
13980 Added some text about cvs, fonts and rewrote some parts.
13983 Updated with new stuff.
13986 Bump up version number to 0.40.
13988 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
13991 Moved diagram_add_ddisplay() call into new_display().
13992 Fixed new_display to not use uninitialized variables
13993 causing loaded files to show up as black (or garbage).
13997 Removed unneeded calls to diagram_add_ddisplay().
13999 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
14001 * objects/UML/lifeline.c:
14003 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
14005 * objects/UML/message.c:
14006 Fixed bug loading messages with null-text.
14007 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
14009 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
14012 Updated swedish translation.
14015 (GNOME) Removed help-browser from help menu. Fixed typo.
14018 (GNOME) Accelerators in diagrams should work now.
14020 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
14025 * app/disp_callbacks.c
14029 * app/preferences.c
14031 * lib/diagramdata.c
14037 * objects/network/*.c
14038 * objects/standard/*.c
14039 * po/update_pofiles_in.sh
14041 More i18n. All strings (expect rare debug messages) can be
14042 translated now. Moved intl.h from app to lib. Updated
14043 update_pofiles_in.sh to check all .c-files.
14045 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
14047 * app/disp_callbacks.c (ddisplay_canvas_events):
14048 Don't drop keys while num-lock, scroll-lock etc is on.
14050 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
14052 * app/render_eps.c (draw_image):
14053 Fixed exporting of images.
14054 Still not perfect, but not outright buggy.
14056 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
14060 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
14063 Added $* to the dia call in run_dia.sh
14065 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14068 Added color_equals() call.
14070 * objects/standard/arc.c:
14071 * objects/standard/line.c:
14072 Don't save unneccesary data.
14074 * objects/standard/box.c:
14075 * objects/standard/ellipse.c:
14076 * objects/standard/image.c:
14077 * objects/standard/polyline.c:
14078 * objects/standard/zigzagline.c:
14079 Share properties dialog.
14080 Don't save unneccesary data.
14082 1999-03-22 Seth Alves <alves@hungry.com>
14087 small changes so that gnome menus aren't broken
14089 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
14092 Added danish translation from lrclause@cs.uiuc.edu.
14097 * po/update_pofiles_in.sh:
14098 Added script that updates POFILES.in.
14099 This should probably be run automatically from somewhere.
14101 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
14103 * app/diagram.[ch]:
14104 Added function diagram_update_menu_sensitivity() which
14105 sets the sensitivity of some menu items. This function
14106 is called at each diagram state change (from diagram_modified()).
14107 This is needed because otherwise the keyboard accelerators
14108 don't work correctly.
14110 * app/display.[ch]:
14111 Changed display_set_menu_sensitivity() to display_update_menu_state().
14112 Moved lots of code to diagram_update_menu_sensitivity() in
14113 diagram.c. Optimized to only look up menu-items from path:s once.
14115 * app/disp_callbacks.c:
14117 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
14118 Need to set GDK_FOCUS_CHANGE_MASK.
14120 * app/create_object.c:
14121 Call diagram_modified when an object has been created and
14122 selected so that the menu sensitivity is updated.
14125 removed menus_set_sensitive() and menus_set_state(). Exported
14126 renamed function menus_get_item_from_path().
14128 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
14130 * app/disp_callbacks.c:
14131 Show (empty) object menus on object that has none.
14132 Show title on object menus.
14135 Set zoom factor correctly when opening new displays.
14136 Better setting of scrollbars.
14140 Some reformating cleanup.
14143 Added title to object menus.
14146 Added object menu method (NULL-valued) to all objects.
14148 * objects/standard/polyline.c:
14149 Added title to object menu.
14151 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
14153 * app/preferences.[ch]:
14154 New files. Implements the preferences dialog and
14155 loading/saving of ~/.diarc.
14158 Added preferences.[ch].
14161 Load preferences on startup.
14163 * app/commands.[ch]:
14164 Added file_preferences_callback to show the preferences dialog.
14166 * app/create_object.c:
14167 Update extents when creating object.
14168 Use the reset_tools_after_create preferences setting.
14171 Use preferences when creating new display.
14174 Add preferences to menu.
14177 * app/layer_dialog.c:
14178 * app/properties.c:
14179 Don't allow shrinking of dialog.
14180 Add i18n of some strings.
14182 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
14184 Norwegian translation added.
14186 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
14188 * objects/standard/line.c:
14189 * objects/standard/arc.c:
14190 * objects/standard/polyline.c:
14191 * objects/standard/zigzagline.c:
14192 Loading of arrow data fixed.
14194 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
14197 Update extents when saving and exporting to postscript.
14198 Fixes a bug with postscript bounding-box being wrong.
14201 Changed border width from 5 to 2.
14204 Move grouped objects by the move-point of the first object.
14205 Fixes bug that made all objects in the group be off-grid
14206 when moving the group, even though all objects was on-grid.
14208 * app/layer_dialog.c:
14209 Update extents when changing layer.
14211 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14213 * objects/UML/uml.c:
14214 * objects/UML/component.c:
14215 * objects/UML/pixmaps/component.xpm:
14216 Added the UML component object
14218 1999-03-04 Seth Alves <alves@hungry.com>
14220 * objects/UML/generalization.c (generalization_create): avoid
14221 math on uninitialized genlz->text_width (NaN causes sigfpe)
14223 * objects/UML/realizes.c (realizes_create): same
14225 * objects/UML/dependency.c (dependency_create): same
14227 1999-03-01 Seth Alves <alves@hungry.com>
14229 * app/display.c (ddisplay_active): don't fly a warning panel
14230 if ddisplay_active is called when no views are open.
14232 * app/commands.c (set_default_file_selection_directory): set
14233 file selector's default directory if there is already
14236 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
14239 New info about imlib requirements.
14242 Added lib/pixmaps/Makefile to created makefiles.
14246 Change from obsoleted to newer gtk calls.
14249 Pass filename of the diagram when loading and saving.
14250 This creates better oportunities to handle filename saving.
14253 Pass filenames to load and save methods.
14255 * lib/dia_image.[ch]:
14256 Added dia_image_get_broken() call that returns a image which
14257 is used for 'broken' images.
14259 * lib/pixmaps/.cvsignore:
14260 * lib/pixmaps/Makefile.am:
14261 * lib/pixmaps/broken.xpm:
14262 New files for the broken image bitmap.
14265 Fixed bug with double destroyed filedialog.
14268 Updated load and save prototypes to use the new filename argument.
14271 Render broken image instead of line when got no image.
14272 Use the new filename in load and save to save (if possible)
14273 relative pathnames and to better try to find loaded images.
14275 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
14278 Some updates to the todo file.
14282 Place over/place over => sent to back/bring to front.
14283 Added some keyboard shortcuts to menus.
14285 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
14288 Changed string saving/loading to a new method. This should
14289 be much better att handling &,<,> and whitespaces.
14290 Loading strings of the old kind is still supported for backwards
14293 * samples/ER-demo.dia:
14294 * samples/UML-demo.dia:
14295 Updated to use the new strings.
14298 statusbar modified update fix.
14300 1999-02-27 Seth Alves <alves@hungry.com>
14302 * app/app_procs.c (app_init): added a --export-to-ps option
14303 which will cause dia to load a dia file and save it as ps
14304 and then exit. this is a little bogus, because it still
14305 pops up a window. this option only shows up if --enable-gnome
14308 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
14309 menu when built with --enable-gnome
14311 * app/interface.c (create_display_shell): build status bar
14312 even if --enable-gnome is used
14314 * app/menus.c: menu fixes for --enable-gnome
14316 * app/commands.c (file_open_dialog_ok_callback): fixed up
14317 menus when --enable-gnome is used
14318 (file_export_to_eps_callback): set a default file name
14319 when dialog is created
14321 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
14323 * objects/UML/association.c (association_create):
14324 Fixed usage of not initialized variable.
14325 Pointed out by Seth Alves <alves@hungry.com>.
14327 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
14330 Fixed detection of gnome-xml.
14331 From Valtteri Vuorikoski <vuori@k.notcom.org>.
14334 Fixed error detection on dlsym calls.
14335 From Valtteri Vuorikoski <vuori@k.notcom.org>.
14337 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
14339 * objects/UML/message.c (fill_in_dialog):
14342 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14344 * objects/standard/zigzagline.c:
14345 * objects/standard/polyline.c:
14346 * objects/standard/line.c:
14347 * objects/standard/arc.c:
14351 Support for sizeable arrows.
14353 * objects/standard/box.c:
14354 * objects/standard/ellipse.c:
14355 * objects/standard/image.c:
14356 Changed creation handle to lower-right.
14357 Transparent box/ellipse.
14359 * objects/standard/image.c:
14360 Better layout of properties boxes.
14362 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14364 * objects/UML/message.c (fill_in_dialog):
14365 Fixed dialog fill in. Common dialog for all messages.
14367 * objects/UML/object.c:
14368 Added multiple instance. Dialog related bugs fixed.
14369 Common dialog for all instances. Completed copy and destroy.
14371 * objects/UML/lifeline.c (lifeline_load):
14372 Conn initialization bug fixed and few bad loading prevention flags.
14373 Common dialog for all lifeline objects.
14375 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14377 * lib/dia_image.[ch]:
14378 More work on the DiaImage abstraction.
14381 * app/render_eps.c:
14382 * app/render_gdk.c:
14383 * objects/standard/image.c:
14384 Use the new DiaImage calls.
14386 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14390 Reversed the meaning of align horizontal/vertical.
14392 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14394 * app/load_save.c (diagram_load):
14395 Statusbar update fix.
14397 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14399 * app/interface.c (create_display_shell):
14400 Fixed status bar size.
14402 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14404 * lib/dia_image.[ch]:
14405 Added extern declaration for dia_image_release.
14406 Removed dia_image_draw, as it's not neseccary.
14408 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14410 * app/object_ops.c:
14412 Added equal distance alignment both vertical and horizontal.
14414 * objects/UML/object.c:
14415 Added a couple of attributes to load/read that were missing.
14417 * objects/UML/lifeline.c:
14418 Better handling of handles. Fixed another bug I forgot to add
14421 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
14423 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14425 * lib/dia_image.[ch]:
14427 New files. DiaImage wraps the GdkImlibImage.
14430 * app/render_eps.c:
14431 * app/render_gdk.c:
14432 * lib/render_store.[ch]:
14433 * objects/standard/image.c:
14434 Use the new DiaImagetype.
14437 Removed unused variable to eliminate warning.
14439 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
14441 * objects/standard/box.c:
14442 Added rounded corners on the box object.
14444 * lib/widgets.[ch]:
14445 Updated the DiaFileSelector widget.
14447 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14449 * objects/UML/object.c (objet_draw):
14450 Completed underlining of all object name lines.
14452 * objects/UML/message.c (fill_in_dialog):
14453 Fixed a bug that filled incorrectly the message's dialog.
14455 * objects/UML/lifeline.c (lifeline_load):
14456 Some cleanning and fixed a couple of bugs that caused
14457 crashes after reading diagrams with lifelines.
14460 Added flags to prevent crash with void strings
14462 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
14463 * app/display.[ch]:
14464 Added statusbar to the display widget. Currently shows the zoom
14465 factor and modified flag of the viewed diagram. The statusbar is
14466 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
14467 This caused the following additions:
14469 * app/diagram.[ch]:
14470 Added function diagram_set_modified. Calls
14471 ddisplay_update_statusbar for all displays showing the modified diagram.
14472 Changed diagram_modified to call diagram_set_modified.
14475 Added the creation of the statusbar.
14478 diagram_save now calls diagram_set_modified instead of setting
14479 dia->modified. Needed to force call to display_update_statusbar
14482 Changed the way view_show_all works. Now calls ddisplay_zoom
14483 instead of directly setting the zoom_factor, so the zoom factor is
14484 correctly shown in the statusbar.
14487 Fixed rubberband zoom to use ddisplay_zoom().
14489 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
14492 Rudimentary GNOME session management.
14494 * app/disp_callbacks.c
14498 GNOME menus. Problems:
14499 Callbacks doesn't get user_data.
14500 Weird warnings when creating popup menus.
14501 menus_set_sensitive(), menus_set_state() doesn't work.
14503 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14506 Add AM_PATH_GDK_IMLIB() call.
14509 Add gdk_imlib to linking flags.
14513 Print library-loading error messages on stdout too.
14516 Add standard image to toolbox.
14518 * app/render_eps.c:
14519 Set a more reasonable dot length. Fixed
14520 missing initialization of dot length.
14521 Added draw_image methods.
14523 * app/render_gdk.c (new_gdk_renderer):
14524 Dot a bit wider. Looks good in normal mode now.
14526 * objects/standard/image.c:
14527 * objects/standard/pixmaps/image.xpm:
14528 New files. Standard object for images.
14530 * app/render_eps.c (set_linestyle):
14531 * app/render_gdk.c (set_linestyle):
14532 * lib/widgets.c (dia_line_style_selector_init):
14534 New line style DOTTED.
14537 * lib/render_store.c:
14538 Change DrawImage call to use gdk_imlib.
14540 * lib/widgets.[ch]:
14541 Added widgets for selecting files.
14542 Added dotted to the linestyle selector.
14544 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
14546 * objects/network/printer.c:
14547 * objects/network/network.c:
14548 * objects/network/pixmaps/printer.xpm:
14549 * objects/network/.cvsignore:
14550 * objects/network/Makefile.am:
14551 * objects/network/pixmaps/Makefile.am:
14552 New printer object in network.
14553 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
14556 Added known XML bug.
14558 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
14562 Reverted back from #include <gnome-xml/tree.h> to
14563 #include <tree.h> as this is fixed by the xml-config program.
14564 The former way broke for some people.
14565 Reported by blizzard@redhat.com.
14567 * objects/UML/lifeline.c:
14568 * objects/UML/message.c:
14569 * objects/UML/object.c:
14570 Removed some warnings.
14572 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14574 * objects/UML/lifeline.c:
14575 Fixed connection points over the life line when the focus of
14576 control is not drawn.
14578 * objects/UML/message.c:
14579 Now a recursive message can be freely resized using the handles.
14581 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14583 * objects/UML/lifeline.c:
14584 Added connection points.
14585 Added properties dialog with the option to draw/hide focus of control
14586 box and destruction mark.
14588 * objects/UML/object.c:
14589 Added properties dialog and stereotype, explicit state and attributes.
14590 It's also possible to mark the object as active.
14592 * objects/UML/pixmaps/object.xpm:
14595 * objects/UML/message.c:
14596 Added "recursive" message type (was not necessary to use OrthConn).
14598 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
14600 * objects/standard/arc.c:
14601 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
14603 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
14605 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
14609 Update xml includes to gnome-xml/*.h.
14611 * objects/standard/arc.c:
14612 Only one property dialog per type.
14613 Fix arrows directions.
14615 * objects/standard/box.c:
14616 * objects/standard/ellipse.c:
14617 * objects/standard/textobj.c
14618 Added default properties dialog.
14621 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14623 * objects/UML/Makefile.am:
14624 * objects/UML/uml.c:
14625 * objects/UML/lifeline.c:
14626 * objects/UML/object.c:
14627 * objects/UML/message.c:
14628 * objects/UML/pixmaps/lifeline.xpm:
14629 * objects/UML/pixmaps/object.xpm:
14630 * objects/UML/pixmaps/message.xpm:
14631 Added 3 new UML objects for dynamic modeling. To avoid internal
14632 conflicts, the name "objet" is used for object "object".
14635 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
14638 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
14640 * app/display.[ch]:
14641 * app/modify_tool.c:
14642 Added autoscrolling while doing rubber-band select.
14643 This patch from Matthias Köster
14644 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
14647 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
14649 * app/defaults.[ch]:
14650 New files, deals with default properties dialog.
14653 New file. Contains definitions for the new object menu.
14655 * lib/poly_conn.[ch]:
14656 New file. Base class for poly-line like objects.
14658 * objects/standard/polyline.c:
14659 * objects/standard/pixmaps/polyline.xpm:
14660 New files. Polyline object.
14663 Fixed bug with infinite loop when registering sheets.
14666 Removed unneccesary stuff.
14668 * app/disp_callbacks.c:
14669 Support for object menus.
14672 Added polyline to toolbox.
14673 Added call to tool_options_dialog_show() when double clicking on
14677 New function tool_options_dialog_show() for tool properties.
14683 Added ObjectType methods for handling object default dialogs.
14684 Added Object method for handling object_menu.
14685 Added unused methods to ObjectTypeOps for future binary
14688 * lib/widgets.[ch]:
14689 Added DiaArrowTypeSelector widget.
14691 * objects/standard/arc.c:
14692 * objects/standard/zigzagline.c:
14693 Added support for default properties.
14695 * objects/standard/line.c:
14696 Added support for default properties.
14697 Just use one properties dialog for all line objects. NOTE: This
14698 seems to have a bug. We're working on it.
14700 * standard/standard.c:
14701 Add the polyline object.
14703 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
14705 * app/modify_tool.c:
14706 Commented out buggy transitive select function. It wasn't really
14707 meant to go into cvs.
14710 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
14722 Swedish translation. Not completed.
14726 Added possibility to enable GNOME specific code with configure.
14729 Added possibility to set debug level with configure.
14732 Added about dialog.
14738 Added some GNOME specific code. Not ready for use.
14740 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
14743 Added text about needing gtk 1.1.13 and gnome-xml.
14746 Described changes since last version (0.20).
14748 Released version 0.30, tagged DIA_0_30.
14750 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
14752 * app/magnify.c (magnify_button_release):
14753 Fixed a problem when zooming in on a very small box would
14754 not release the grabbed pointer-focus.
14756 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
14758 * app/load_save.c (diagram_load):
14759 Be somewhat more robust when loading files that
14762 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
14766 * objects/UML/uml.c:
14767 * objects/network/network.c:
14768 * objects/standard/standard.c:
14769 Added versioning of object libraries.
14771 * app/create_object.c:
14772 Don't change tool when an object is created.
14774 * objects/network/network.c:
14779 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
14782 Updated gtk requirement to Gtk+ 1.1.13.
14785 Always add one screenful of scrolling space on
14786 each side of a diagram window.
14788 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
14791 Tell automake to auto-install missing files.
14794 Renamed deprecated Gtk+ function.
14796 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
14800 * samples/Makefile.am:
14801 * samples/ER-demo.dia:
14802 * samples/UML-demo.dia:
14803 Added samples directory.
14804 Added samples for ER and UML.
14807 * app/disp_callbacks.c:
14809 Zoom is done by sqrt(2) instead of 2.
14810 Lots of more zoom options in the menu.
14812 * objects/ER/relationship.c:
14813 Relationships have 8 connectionpoints instead of 4.
14815 * objects/UML/class.c:
14816 UML class name font a bit smaller.
14817 Fixed stupid bug in the copy operation.
14820 Displays are opened at 500x400 instead of 256x256.
14823 Fixup of internal error message.
14825 * app/color_area.c:
14827 * app/modify_tool.c:
14829 Removed debug printf's.
14832 Added new known bug.
14834 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
14838 Fixed so accelerator groups work in all windows.
14839 Updated to new gtk function names.
14845 Updated to new gtk function names.
14846 Set sensitivity of the align menu items.
14848 * objects/ER/pixmaps/Makefile.am:
14849 * objects/UML/pixmaps/Makefile.am:
14850 * objects/network/pixmaps/Makefile.am:
14851 Fix so that make dist works.
14854 * app/color_area.c:
14858 * app/layer_dialog.c:
14860 * app/object_ops.c:
14861 * app/properties.c:
14862 * lib/diagramdata.[ch]:
14864 * lib/objects/ER/attribute.c:
14865 * lib/objects/ER/entity.c:
14866 * lib/objects/ER/participation.c:
14867 * lib/objects/ER/relationship.c:
14868 * lib/objects/ER/.c:
14869 * objects/UML/actor.c:
14870 * objects/UML/association.c:
14871 * objects/UML/class_dialog.c:
14872 * objects/UML/dependency.c:
14873 * objects/UML/generalization.c:
14874 * objects/UML/large_package.c:
14875 * objects/UML/realizes.c:
14878 Updated to new gtk function names.
14881 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
14887 Fixed loading of diagrams specified as arguments.
14889 * objects/ER/attribute.c:
14890 * objects/ER/entity.c:
14892 * objects/ER/participation.c:
14893 * objects/ER/relationship.c:
14894 Updated the ER objects.
14897 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
14901 * objects/Makefile.am:
14902 * objects/ER/attribute.c:
14903 * objects/ER/entity.c:
14905 * objects/ER/participation.c:
14906 * objects/ER/relationship.c:
14907 * objects/ER/pixmaps/Makefile.am:
14908 * objects/ER/pixmaps/attribute.xpm:
14909 * objects/ER/pixmaps/entity.xpm:
14910 * objects/ER/pixmaps/participation.xpm:
14911 * objects/ER/pixmaps/relationship.xpm:
14912 * objects/ER/pixmaps/weakentity.xpm:
14913 First commit of entity relationship objects.
14914 These were done by hallon@lysator.liu.se.
14915 There are still stuff to do on these.
14917 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
14922 * app/diagram.[ch]:
14923 Change diagram_remove_all_selected to take new argument
14924 delete_empty. Empty objects are deleted only if it is TRUE.
14925 Removed call to close_eps_renderer. This is now done in end_render
14926 in the eps renderer.
14928 * app/create_object.c:
14929 * app/layer_dialog.c:
14930 Update calls to diagram_remove_all_selected.
14933 Update calls to diagram_remove_all_selected.
14934 Some code reformating.
14935 Changed order of adding updates i align_h and align_v.
14937 * app/modify_tool.c:
14938 Update calls to diagram_remove_all_selected.
14939 Added pointer grab when doing rubber-band selection, this fixes
14940 the bug when draging the box over to another window.
14942 * app/connectionpoint_ops.[ch]:
14943 diagram_update_connections_object changed to take an argument
14944 update_nonmoved. This lets connections that has not moved, but
14945 the stuff they're connected to has been moved work.
14946 Update calls to the new diagram_update_connections_object.
14948 * app/properties.c:
14949 Update calls to the new diagram_update_connections_object.
14950 Update extents when properties are applied.
14952 * app/disp_callbacks.c:
14953 Added support for zooming with the '+' and '-' keys.
14956 Removed old keyboard shortcuts for zoom.
14959 Added calls begin_render and end_render to renderer.
14960 These can be used for setup and cleanup.
14962 * lib/diagramdata.c:
14963 Added calls to begin_render and end_render in data_render.
14965 * app/render_gdk.c:
14966 Added begin_render and end_render.
14968 * app/render_eps.[ch]:
14969 Added begin_render and end_render.
14970 Moved close_eps_renderer code to end_render.
14971 Various fixes to the generated eps code. This fixes importing
14972 generated eps into LYX.
14974 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
14980 Menus for alignment updated.
14982 * app/object_ops.[ch]:
14983 Functions for object alignment updated.
14985 * app/commands.[ch]:
14986 Object alignment callbacks updated.
14987 New diagrams are called Untitled-<nr>.
14989 * app/layer_dialog.c:
14990 Active layer selected when showing layers from new
14994 Compress xml files when saving.
14995 Use xml namespace 'dia'.
14998 Minor comment update.
15000 * objects/UML/class_dialog.c:
15001 Cleanup of the gkt_list_item moving code.
15002 Fixed bug with update of operation when moving parameters.
15004 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
15006 * app/layer_dialog.[ch]:
15007 Fixed the rest of the layers dialog.
15010 Added call to redo layer dialogs diagram list when changing
15013 * lib/diagramdata.[ch]:
15014 Added data_raise_layer and data_lower_layer functions for
15015 raising/lowering layers. Added data_add_layer_at for adding a
15016 layer at a specified index.
15018 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
15020 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
15023 Added support for reading diagrams from the command line.
15025 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
15027 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
15029 * app/commands.[ch]:
15030 Added objects_align_callback().
15033 Added align objects to menu.
15035 * app/object_ops.[ch]:
15036 Add object_list_align().
15038 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
15039 * app/layer_dialog.[ch]:
15040 New files. Handles the layers dialog. Needs a bugfix for glib to
15041 work. Sent patch to gtk-list.
15043 * app/pixmaps/new.xpm:
15044 * app/pixmaps/eye.xbm:
15045 * app/pixmaps/lower.xpm:
15046 * app/pixmaps/raise.xpm:
15047 * app/pixmaps/delete.xpm:
15048 New files. Images for the layer dialog buttons.
15050 * lib/diagramdata.h
15051 * lib/diagramdata.c
15052 New files for the DiagramData and Layer structures and functions.
15055 Added call to create_layer_dialog() on startup.
15057 * app/commands.[ch]:
15058 New callbacks for showing the properties and layout dialog.
15059 Changes for the new DiagramData structure.
15061 * app/connectionpoint_ops.c:
15062 * app/cut_n_paste.c:
15063 * app/diagram.[ch]:
15064 * app/display.[ch]:
15066 * app/modify_tool.c:
15067 * app/object_ops.[ch]:
15068 * app/render_eps.c:
15070 Changes for the new DiagramData structure.
15073 * app/properties.c:
15074 Set correct wmclasses.
15077 Fix load and save of layers.
15080 Update DTD for layers.
15083 New menus for dialogs.
15089 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
15092 Removed the gtk 1.1.5 stuff.
15095 Updated gtk check to version 1.1.5.
15096 Updated version from 0.20 to 0.30
15098 * app/commands.[ch]:
15099 Updated some callbacks to be of type GtkItemFactoryCallback1.
15100 Not all are done yet, but it works anyway.
15103 Removed Gtk 1.0.0 GtkAcceleratorTable references.
15107 Update to Gtk 1.1.x functions.
15108 Use ItemFactory instead of MenuFactory.
15110 * app/render_gdk.c:
15111 Removed Gtk 1.0.0 references.
15113 * objects/UML/class_dialog.c:
15114 Scrolled window updates for Gtk 1.1.5.
15117 Removed ugly fix for gnome-xml bug. Make sure you get the
15118 newest version of gnome-xml from CVS.
15120 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
15123 Removed the xml load/save line.
15129 Removed building of files.c
15132 * lib/connection.c:
15136 * lib/render_object.c:
15137 * objects/UML/actor.c:
15138 * objects/UML/association.c:
15139 * objects/UML/class.c:
15140 * objects/UML/constraint.c:
15141 * objects/UML/dependency.c:
15142 * objects/UML/generalization.c:
15143 * objects/UML/implements.c:
15144 * objects/UML/large_package.c:
15145 * objects/UML/note.c:
15146 * objects/UML/realizes.c:
15147 * objects/UML/small_package.c:
15148 * objects/UML/uml.c:
15149 * objects/UML/usecase.c:
15150 * objects/network/bus.c:
15151 * objects/standard/arc.c:
15152 * objects/standard/box.c:
15153 * objects/standard/ellipse.c:
15154 * objects/standard/line.c:
15155 * objects/standard/textobj.c:
15156 * objects/standard/zigzagline.c:
15157 Removed all includes of files.h
15160 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
15163 Made the val property of string be implied.
15164 This makes it possible to save strings that
15165 are NULL. Just leave out val.
15167 * objects/lib/dia_xml.c:
15168 Fixed string so that it is possible to save strings
15169 that are NULL. Also made an ugly workaround of a
15170 bug in gnome-xml which removes empty properties.
15172 * objects/lib/orth_conn.c:
15173 Fixed a bug in saving. Forgot to step through the
15176 * objects/UML/association.c:
15177 * objects/UML/class.c:
15178 * objects/UML/constraint.c:
15179 * objects/UML/dependency.c:
15180 * objects/UML/generalization.c:
15181 * objects/UML/implements.c:
15182 * objects/UML/large_package.c:
15183 * objects/UML/note.c:
15184 * objects/UML/small_package.c:
15185 * objects/UML/realizes.c:
15186 * objects/UML/usecase.c:
15187 * objects/UML/actor.c:
15188 Fixed UML objects to save as xml.
15189 The last two were done by asierra@servidor.unam.mx (asierra-981204)
15191 * objects/UML/uml.[ch]:
15192 Updated *_write() and *_read() functions to use xml.
15194 * objects/network/bus.c:
15195 * objects/network/computer.c:
15196 * objects/network/disc.c:
15197 * objects/network/monitor.c:
15198 Updated network diagrams to use xml.
15200 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
15203 New file. DTD that describes the xml file format
15206 * lib/dia_xml.[ch]:
15207 New files. Support for saving object to xml files.
15212 Added check for and usage of gnome-xml library.
15215 Major chages. Now saves/loads diagrams as xml.
15218 * lib/element.[ch]:
15219 * lib/connection.[ch]:
15220 * lib/orth_conn.[ch]:
15221 * lib/render_object.[ch]:
15223 Updated object support load/save functions for xml:
15225 * object/standard/arc.c:
15226 * object/standard/box.c:
15227 * object/standard/ellipse.c:
15228 * object/standard/line.c:
15229 * object/standard/textobj.c:
15230 * object/standard/zigzagline.c:
15231 Updated all standard objects to use xml.
15234 Only the standard objects are converted right now, don't
15235 save or load uml or network diagrams yet. Also, since this
15236 is new code it is deemed a bit unstable.
15241 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
15243 * objects/UML/class.c:
15244 Changed classname font to Helvetica.
15245 Added more space above the classname
15247 * objects/UML/usecase.c:
15248 Correct placements of connectionpoints on ellipse.
15249 Better algorithm for deciding aspect ration on
15252 These changes were made by Alejandro Aguilar Sierra
15253 <asierra@servidor.unam.mx>. (asierra-981201)
15255 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
15257 * objects/UML/actor.c:
15258 Changed the extents and alignment of the element
15261 * objects/UML/.cvsignore:
15262 Added usecase.lo and actor.lo.
15264 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
15266 * objects/UML/actor.c:
15267 * objects/UML/usecase.c:
15268 * objects/UML/pixmaps/actor.xpm:
15269 * objects/UML/pixmaps/case.xpm:
15270 New files. Implements usecase and actor UML objects.
15271 These objects are done by Alejandro Aguilar Sierra
15272 <asierra@servidor.unam.mx>.
15274 * objects/UML/Makefile.am:
15275 * objects/UML/pixmaps/Makefile.am:
15276 Added usecase and actor to makefile.
15279 Added Alejandro and Jerome to autors list.
15281 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
15283 * objects/UML/class.c (umlclass_load):
15284 Fixed typo. Reported by Jerome.Abela@solsoft.fr
15286 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
15288 * app/properties.c:
15289 Update connections when doing apply in the properties window.
15291 * objects/UML/uml.[ch]:
15292 * objects/UML/class.[ch]:
15293 * objects/UML/class_dialog.c:
15294 Added connection points on both sides of attributes and
15295 operations in UML classes.
15296 Based on idea from Jerome.Abela@solsoft.fr
15298 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
15301 Some new documentation about handles and connectionpoints.
15304 Added functions object_add_connectionpoint and
15305 object_remove_connectionpoint for handling a dynamic
15306 number of connectionpoints.
15308 * objects/UML/class.c:
15309 Only reserve space for stereotype when it is shown.
15311 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
15313 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
15315 * app/connectionpoint_ops.c:
15317 * app/disp_callbacks.c:
15318 * app/display.[ch]:
15320 * app/handle_ops.c:
15322 * app/modify_tool.c:
15323 * app/render_gdk.[ch]:
15325 Huge cleanup of internal rendering system.
15326 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
15327 This gives a few new methods for Interactive Renderers for setting
15328 clipping regions and drawing pixel based lines and rects.
15329 Updated the rest of the code to use the new stuff.
15331 * app/render_eps.c:
15335 * objects/standard/zigzagline.c
15336 Fixed unused variable warnings.
15339 Fixedbug with stringwidth where width==0.
15344 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
15346 * lib/widgets.[ch]:
15347 Added suppot for setting the font of a
15348 DiaFontSelector widget.
15349 Also fixed some typos in the header.
15352 Added a comment about the GetPRoperties method call.
15353 You have to make sure to update widget state when
15354 this method is called. (Not all objects do this yet,
15360 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
15363 Fixed problem with height of ascent and descent for fonts.
15364 It didn't use the whole height (==ascent+descent) when calculatine
15365 ascent_ratio and descent_ratio.
15367 * objects/standard/textobj.c:
15368 * objects/standard/box.c:
15369 * objects/standard/ellipse.c:
15370 * objects/standard/line.c:
15371 * objects/standard/arc.c:
15372 Updated and added property dialogs for these objects.
15373 Also added line width/color/style to those objects
15374 that didn't have it.
15375 This change breaks fileformat compatibility for these objects.
15377 * objects/standard/zigzagline.c:
15378 Changed zigzagline to be based on OrthConn, much nicer.
15379 Also added line style and color to properties.
15380 This change breaks fileformat compatibility for zigzagline.
15383 Fixed bug in message(). Forgot a pair of '&'.
15385 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
15387 * lib/widgets.[ch]:
15388 Added DiaColorSelector widget.
15389 This is a colored button that pops up a color selection
15390 dialog when pressed.
15392 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
15394 * lib/widgets.[ch]:
15396 New files, added widgets for selecting fonts, alignment
15397 and line-style. Will be used later.
15399 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
15403 * objects/UML/Makefile.am:
15404 * objects/network/Makefile.am:
15405 * objects/standard/Makefile.am:
15406 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
15407 in all Makefile.am.
15409 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
15411 * app/handle_ops.c (handle_draw):
15412 connected HANDLE_MINOR_CONTROL also becomes red.
15414 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
15417 removed -ldl from linking. This is added if needed by configure.
15420 Open dlls with RTLD_LAZY if it is defined.
15421 Some cleanups: char *error -> const char *error
15422 Added fprintf()'s to where we exited because of errors.
15425 Include <sys/types.h>
15427 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
15432 Detect dlopen better.
15433 Detect wether dlopen needs an underscore in the identifier.
15434 This code was mostly borrowed from guile.
15438 * objects/standard/standard.c:
15439 * objects/network/network.c:
15440 * objects/UML/uml.c:
15442 Changed the way sheets reference objects to use just the
15443 name. Changed module loading to a two stage model:
15444 First register_objects() is called for all modules.
15445 Then register_sheets() is called. This means that
15446 sheets can safely include objects from other modules.
15449 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
15451 * objects/network/bus.c:
15452 * objects/network/network.c:
15453 * objects/network/Makefile.am:
15454 New file bus.c. Added new object: Ethernet bus.
15456 * objects/standard/box.c:
15457 Added call to gtk_spin_button_set_numeric for linewidth spinner
15458 in property dialog.
15460 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
15462 * app/connectionpoint_ops.c:
15463 * app/create_object.c:
15465 * app/handle_ops.c:
15466 * app/modify_tool.c:
15467 * lib/connection.c:
15472 * loads of objects:
15473 Changed handle->connectable to handle->connect_type.
15474 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
15475 that their connections don't break when moving objects.
15478 Always select the last handle in an object that has
15479 the closest distance.
15481 * lib/geometry.[ch]:
15482 Added rectangle_add_point function.
15485 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
15487 * app/properties.[ch]: New files. Handles the new properties
15490 * app/modify_tool.c: Changed to use new properties dialog.
15492 * app/object_ops.[ch]: Removed object_changed_callback, as it's
15493 not needed anymore. This is now handled differently in
15497 Changed the properties ops for objects. Removed typedefs
15498 ChangedObjectTime and ObjectChangedFunc needed for the old way.
15499 Added object_return_null function.
15502 * lib/render_object.c:
15504 Changed objects to use the new properties dialog.
15507 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
15509 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
15512 * autogen.sh: New file. Copied from gtk and added a call to
15513 libtoolize. Anyone knows why this isn't done in gtk?
15515 * Removed autogenerated files.
15517 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
15519 * Added call setlocale(LC_NUMERIC, "C") so that formating of
15520 floating-point numbers in postscript output will be correct.
15521 * Did some cleanup of generated postscript files.