1 2002-12-07 Hans Breuer <hans@breuer.org>
3 * lib/widgets.c : g_file_get_contents() silently assumes
4 a binary file. Reflect when creating the font_menu file
5 to get rid of junk in font menus
7 2002-12-06 Hans Breuer <hans@breuer.org>
9 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
10 removed 0xD 0xD 0xA line ends which get created by
11 cvs if windoze line ends 0xD 0xA are checked in from
12 *nix and checked out on win32.
14 * app/preferences.c : changed toolbox_on_top default to
15 false. It is currently not possible to change the behaviour
16 at runtime, at least not on win32.
18 * lib/dialibartrenderer.c : bug #94791 'rendering to
19 bitmap without PangoFt2' got delayed to milestone future
20 so wrap libart text rendering into PANGO_WIN32_FUTURE.
21 It is not available without my Pango patch in bugzilla.
23 * lib/font.c : added comment to global_size_one and adapt
24 the arbitrary size scaling in dia_font_build_layout() for
25 win32, too. This is needed to get an acceptable font size
26 approximation for Dia 0.90 and earlier files.
27 Also #include "message.h".
29 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
30 reflect movement of group.[hc]
31 * lib/group.h : export group_type which gets used by app/*
33 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
34 to get the GtkTypeInfo definition
36 * plug-ins/makefile.msc : dxf and xfig don't need to link
37 against app/ anymore now that group is moved to lib/
39 * plug-ins/python/pydia-render.c : remove massive leaking
40 of self, i.e. PyDiaRenderer
42 * plug-ins/python/makefile.msc : remove linking against
45 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
47 * objects/standard/line.c: Removed properties options for gaps,
48 until release is done.
50 * configure.in: Check for freetype version.
52 * lib/text.c (text_insert_char): Fixed small buffer overflow for
55 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
57 * app/diapsft2renderer.h:
58 * app/diapsft2renderer.c:
59 * app/diapsrenderer.h:
60 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
62 * app/render_eps.c (export_eps, new_psprint_renderer): Using
63 PS_FT2 renderer when available. Old render stuff killed. Yay!
65 * lib/properties.h: Fixed bad frame end def.
67 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
69 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
71 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
73 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
75 * lib/font.c: Now checking for the proper dia-style standard fonts.
78 * app/Makefile.am: Moving group.[ch]
80 * plug-ins/dxf/dxf-import.c:
81 * plug-ins/xfig/xfig-import.c:
82 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
86 * lib/object.c (object_list_move_delta, object_copy_list):
87 * lib/object.h: Moved some object-related functions from
88 object_ops to object to assist moving group.c.
90 * lib/diatypes.h: Added Group typedef.
93 * lib/group.c: Moved from app to lib to a) resolve plug-ins
94 references, and b) make groups more "real" objects.
96 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
98 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
100 * lib/font.c (dia_font_init): Added check that the three standard
103 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
106 * app/load_save.c: Linebreaks in dia files, no indentation.
107 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
110 * objects/standard/line.c: Small but important fixes to the line
114 * lib/dia_xml.c (diaXmlNewChild):
115 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
116 XML prettyprinting wrapper.
118 2002-12-03 Steffen Macke <sdteffen@web.de>
120 * shapes/Cisco/Makefile.am:
121 * shapes/Cisco/*.shape: finished conversion of Cisco icons
124 2002-12-02 Steffen Macke <sdteffen@web.de>
126 * doc/en/Makefile.am:
127 * doc/en/usage-objects.sgml:
128 * doc/en/graphics/line_icon.png: (new) added line icon
130 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
132 * objects/standard/line.c: Binary search object edge line gap.
134 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
136 * configure.in: Added Cisco makefile, sorted Makefiles list.
138 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
140 * configure.in: Now checks for availability of PangoFT2 and
141 FreeType, raising an error if not found.
143 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
146 2002-12-01 Steffen Macke <sdteffen@web.de>
148 * doc/en/usage-loadsave.sgml: updated information on import
151 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
153 * app/commands.c (edit_copy_callback): Freeing copy_list.
155 2002-11-28 Steffen Macke <sdteffen@web.de>
157 * app/render_libart.c: art_config.h was included twice
159 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
161 * sheets/.cvsignore: More ignorance.
163 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
165 * lib/prop_widgets.h: Two (currently unused) settings for frame
168 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
169 (by default) foldable.
171 * lib/propinternals.h:
172 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
173 widgets in a more controlled manner.
175 * objects/standard/line.c (line_update_data): Line gap things
176 inserted. Can do xeyes now:)
178 2002-11-26 Christian Neumair <chris@gnome-de.org>
180 * .cvsignore: Changed.
181 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
182 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
185 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
187 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
189 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
190 passing to font hash.
192 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
193 utf-8 or locale-convertible before adding to dialog text. This
194 probably needs done in a number of places where we get text from
195 the environment and send it to GTK to display.
197 * lib/widgets.c: Fixed case problems for font menu entries.
199 * objects/SADT/annotation.c: Don't run the event test (but leave
200 it here for inspiration).
203 * lib/widgets.h: Allowing setting preview text for fonts.
205 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
207 * objects/bondgraph/Makefile.am:
208 * objects/bondgraph/bondgraph.c:
210 * objects/Makefile.am: Added bond graph dir.
212 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
214 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
216 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
218 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
221 * app/diapsrenderer.c: Freetype rendering is back in force.
223 * app/disp_callbacks.c: Added missing updates for pre-text-change.
225 2002-11-25 David Hoover <jazzdaq@yahoo.com>
227 * app/render_libart.c: Added missing #include line for libart.
230 * lib/geometry.c: Added point_convex function. This computes
231 points inside a line segment (0 <= alpha <= 1) or outside the
232 line segment (alpha < 0 | alpha > 1).
234 * objects/standard/line.c: Line now has additional code/attributes
235 which permit the line to extend past the line anchors (gap < 0) or
236 leave a gap without reaching the anchor (gap > 0). If no gap is
237 specified, the default gap of 0 will result in identical line
238 behavior as before. If the 'fractional' attributes are TRUE, the
239 gap length is not fixed, but a percentage of the line length. I
240 did not know how create the GTK widgets so the gap code currently
241 cannot be used without adding XML attributes by hand.
243 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
245 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
247 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
249 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
251 * lib/font.c: Debugging functionality in separate functions.
253 * lib/widgets.c: Using fontsel with context.
255 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
257 * objects/custom/custom_object.c: Orientation handling for shapes,
258 patch thanks to Martin Hans <opfinder@gmx.net>.
260 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
261 work on even better orientation handling.
263 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
264 casting NULL pointers. Should be unnecessary in an upcoming GTK
267 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
271 * lib/widgets.c: Now uses correct context to get font families.
273 * lib/diagdkrenderer.c (get_text_width, draw_string):
274 * lib/dialibartrenderer.c (draw_string):
276 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
277 (dia_font_build_layout): Unified the twiddle factors into a use of
278 global_size_one. But I deeply distrust Pango for seeming to
279 change size of fonts every time I turn my back.
284 * app/menus.h: Updated some more methods to also be more specific
288 * app/recent_files.c:
289 Changed to return most specific type, to avoid run-time type errors.
291 * app/menus.c (menus_get_item_from_path): Non-gnome version now
292 gets menu_item rather than widget, which works better.
294 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
296 * app/display.c: (new_display):
297 * app/menus.c: (menus_get_item_from_path):
298 Relying on the tearoff to locate the input methods menu wasn't a
299 good idea: tearoffs seem to be an endangered species nowadays.
300 Anyway, the IM menu seems to be working now.
302 * app/interface.c: hinted the window manager that the toolbox window
303 is a toolbox window. Not that my (fairly default configuration)
304 sawfish cares, but other NETWM compliant WMs may.
311 * app/layer_dialog.c:
312 * app/linewidth_area.c:
314 * app/sheets_dialog.c:
317 The GTK doc says to avoir gtk_window_set_wmclass() and
318 gtk_window_set_policy(), and use gtk_window_set_role() and
319 gtk_window_set_resizable(), respectively.
321 * app/preferences.c: (prefs_create_dialog):
323 * app/display.c: (display_set_active):
324 Added a preference to have the toolbox hover over diagram windows.
326 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
328 * lib/diagdkrenderer.c (get_text_width, draw_string):
329 Freetype-based string drawing now works. Not very fast, though.
330 I wish I could use the graphics card for this:( I'm doing three
331 bitmap loops where I should be doing one. The size is not correct
332 either, despite having get_text_width give the right thing.
334 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
336 * app/connectionpoint_ops.c (diagram_update_connections_object):
337 Allows more than one connectionpoint on an object to be moved at a
340 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
342 * configure.in: Added cs to ALL_LINGUAS.
344 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
346 * app/paginate_psprint.c: Removed unnecessary decl of autosave
349 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
351 * app/export_png.c (export_png_ok): Saving more variables from the
354 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
356 * lib/dialibartrenderer.c (begin_render):
357 (end_render): Correct pushing and popping of font contexts.
358 (draw_string): Double zooming eliminated, strange twiddle factor
359 introduced (grumble). Close to working now, but there are still
360 strange differences from font to font. In particular, some fonts
361 really mess with the cursor and extents.
363 * app/render_eps.c (export_eps):
364 * app/diapsrenderer.c (dia_ps_renderer_finalize):
365 Fixed file closing confusion, no longer dependent on PS/EPS.
367 * app/diagram.c (diagram_place_down_selected)
368 (diagram_place_up_selected): Now implemented.
370 * lib/font.c (dia_font_init):
372 Redesigned the font init/context pushing code. Start of fix for
373 font name differences.
375 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
377 * app/sheets_dialog_callbacks.c: Fix a typo.
379 2002-10-15 Hans Breuer <hans@breuer.org>
381 * app/diapsrenderer.[hc] : (new files, old content :-)
382 simple base class for post script rendering. Does neither
383 use Pango/FT2 nor does it handle non latin1 characters.
384 The fancy stuff which nowadays appears to be needed should
385 probably be done in derived class(es)
387 * app/makefile.msc app/Makefile.am : added new files
389 * app/paginate_psrint.c : re-enabled and used as test
390 for the simple ps renderer above.
392 * app/render_eps.[hc] : ripped out common ps code and
393 moved to DiaPsRenderer. The rest of the file is mostly
394 disabled. And I don't understand enough of it to
397 * app/diaepsrenderer.h : short lived, removed.
399 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
401 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
402 as a plugin (thanks to Torben Nielsen).
404 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
406 * app/diaepsrenderer.h:
408 * app/paginate_psprint.c:
409 #ifdef'd out enough ps stuff to allow compile. Now we just need
412 2002-10-12 Hans Breuer <hans@breuer.org>
414 [last plug-in ported]
416 * plug-ins/xfig/xfig-export.c : ported to new renderer api
418 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
419 scale color values to [0..1.0] to properly reconstruct
422 * plug-ins/xfig/xfig-common.c : some cleaning
424 2002-10-12 Hans Breuer <hans@breuer.org>
426 [decrease inter-plug-in-dependencies]
428 * objects/custom/shape_info.[hc] : move parse_style()
429 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
430 the related structs and constants.
431 * objects/custom/custom_object.c : reflect namespace
434 * lib/dia_svg.[hc] : new files
435 * lib/makefile.msc lib/Makefile.am : add new files
436 * lib/libdia.def : updated externals
438 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
440 * plug-ins/svg/svg.c : enable svg import for win32 (and
441 probably for other non ELF builds)
443 * plug-ins/makefile.msc : enable svg import
445 2002-10-11 Hans Breuer <hans@breuer.org>
447 * plug-ins/metapost/render_metapost.[hc] : ported
449 * plug-ins/pstricks/render_pstricks.[hc] : dito
451 2002-10-11 Hans Breuer <hans@breuer.org>
453 * plug-ins/cgm/cgm.c : ported, appears to work as before,
454 but graphic apps available to me can't import the generated
455 files (the could not with Dia-0.90 cgm as well) ...
457 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
458 Removed all those function which did emulate 'complex'
459 drawing ops with basic ones (e.g. rect by line) cause this
460 stuff is already provided by the base class
461 * plug-ins/dxf/dxf-import.c : removed render.h include
463 * plug-ins/python/pydia-font.[hc]
464 plug-ins/python/pydia-text.c : finally ported to new font api
466 * plug-ins/python/pydia-layer.c : add extra parameter
467 to layer_find_closest_connectionpoint()
469 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
471 * plug-ins/python/python.c : added missing copyright notice
473 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
474 actually use the renderers set_font implementation
476 * plug-ins/renderer.inc : unused now, removed
477 * plug-ins/Makefile.am : reflect it
479 2002-10-08 Hans Breuer <hans@breuer.org>
481 * app/render_gdk.c : don't add the InteractiveRenderer
482 interface multiple times (it's added to the type, not
484 * app/render_libart.c : dito. It's currently added
485 unconditional cause eport_png uses it, but claims
486 to be non-interactive. Probably set_size should be moved
487 to the DiaRenderer interface.
489 * lib/dialibartrenderer.c : add implementations for
490 get_<width|height>_pixels. Libart rendering works again.
491 DiaLibartRenderer::draw_image : use dia_image_rowstride()
494 * lib/diatransform.c(dia_transform_coords_double) :
495 don't ROUND() the returned values
497 * plug-ins/pixbuf/pixbuf.c : added import function. It
498 simply creates a wrapping "Standard - Image" object.
500 * plug-ins/shape/shape-export.c : use the more direct
501 method to call base class methods
503 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
505 * lib/font.c (dia_font_init): Changed dia_font_init to return old
506 pango context, to allow stacked contexts (for printing while
515 * lib/connectionpoint.h
518 * lib/diagdkrenderer.h
520 * lib/dialibartrenderer.h
523 * lib/diasvgrenderer.h
546 Moved all externally visible struct typedefs into diatypes.h, as
547 per Hans' suggestions.
549 2002-10-07 Steffen Macke <sdteffen@web.de>
551 * lib/Makefile.am: removed a '\' causing problems
553 2002-10-07 Hans Breuer <hans@breuer.org>
555 [Libart Renderer resurrected; almost it's compiling but
556 almost instantly crashing :-]
558 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
559 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
560 * lib/diatransform.[hc] : added dia_transform_coords_double()
562 * app/display.c : the right parameters for new_renderer_libart()
563 * app/export_png.c : ported, removed the blind Display hack
565 * app/makefile.msc lib/makefile.msc
566 lib/Makefile.am : updated
568 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
570 2002-10-06 Hans Breuer <hans@breuer.org>
573 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
575 * lib/dia-enums.h lib/diatransform.[hc]
576 lib/diarenderer.[hc] lib/diainteractiverenderer.c
577 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
580 * lib/makefile.msc lib/makefile.am : added new files
582 * lib/plug-ins.c : g_module_error() returns a locale
583 string, convert to utf8 before further usage
585 * lib/render.h : #error out. Everything including this
587 * lib/*.[hc] : ported to new renderer api
589 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
590 just to make the rest compile
591 * app/render_eps.c : temporary disabled all of this
592 * app/render_eps.h : removed RendererEPS
594 * app/render_gdk.[hc] : a small wrapper around the new
595 DiaGdkRenderer form lib/*
597 * app/render_libart.h : removed RenderLibart definition
598 * app/render_libart.c : not yet ported to new DiaRenderer
599 but having an implementation to untie form FT2 dependency
600 at least on win32. It is using new Pango api form bug #94791
602 * app/render_pixmap.[hc] : a small wrapper around the new
603 DiaGdkRenderer form lib/*
605 * app/display.h : removed render_*.h includes
606 * app/display.c : the only place where specific
607 renderers need to be known
609 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
610 use new DiaInteractiveRenderer interface
612 * app/*.c : ported to new renderer api
613 * object/*/*.c : ported to new renderer api
614 s/render.h/diarenderer.h/
615 s/Renderer/DiaRenderer/
616 s/renderer->ops/renderer_ops/
617 add in every draw method:
618 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
620 * plug-ins/hpgl/hpgl.c :
622 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
623 * plug-ins/shape/shape-export.c
624 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
625 (nice how small these files became :-)
627 2002-09-28 Hans Breuer <hans@breuer.org>
629 * */makefile.msc : updated
631 * app/defaults.c : don't gdk_invalidate_rect(NULL)
632 * app/disp_callbacks.c :
633 can't cast GtkWindow to GdkWindow, use shell->window
634 (ddisplay_unrealize) don't use already unrefed im_context
636 can't cast from GtkMenu to GtkMenuItem
637 (ddisp_destroy) : mark im_context as unrefed
639 * lib/dia_xml (data_font) : prefer new font format over old one
640 (data_add_font) : write the legacy name to allow file exchange
641 with pre Pango versions of Dia, which would otherwise crash
642 on missing font 'name' attribute.
643 * lib/font.c (dia_font_get_legacy_name) : improved implementation
644 to get a better match.
646 * lib/libdia.def : updated
648 * lib/messages.c : don't gdk_widget_show(NULL)
650 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
652 [make Dia compile, link _and_ work with mingw/gcc3.2]
654 * config.h.win32 : #define LIBXML, this gets defined from libxml
655 header but only for _MSC_VER. The mingw build did access an
656 unitialized function pointer for xmlFree.
658 * */makefile.mingw : updated (some plug-ins have build issues)
660 * lib/handle.h lib/object.h : there appears to be no
661 forward declaration of the form
662 typedef enum _HandleId HandleId
663 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
664 use of enum `_HandleId' without previous declaration
666 * app/paginate_gdiprint.cpp : added a hack to avoid g++
667 naming conflict on 'export'
669 * app/paginate_gdiprint.h : forward declare Diagram
671 * objects/SADT/annotaion.c : use g_random_double()
673 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
675 * app/modify_tool.c: Made motion not happen until sufficiently
676 large or past double-click interval, to avoid accidental moving
677 when doubleclicking. Got the double-click time right, and fixed
678 some issues with release. There are some corner cases that may
679 exhibit strange behaviour, will look at those later. Nah, let's
680 not care about those, they are rare and not dangerous.
682 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
684 * app/layer_dialog.c:
686 * plug-ins/dxf/dxf-import.c:
687 * plug-ins/python/pydia-diagram.c:
690 Improved the consistency of the obj->parent_layer backlinks (esp.
695 * lib/dynamic_obj.[ch] (NEW):
698 * app/dynamic_refresh.[ch] (NEW):
699 * objects/Misc/analog_clock.c:
700 Added support for dynamic refresh (animated objects).
702 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
704 Patch from Owen Taylor <otaylor@redhat.com>:
705 * doc/en/Makefile.am:
706 * doc/en/dia-manual.sgml:
707 * doc/en/usage-objects.sgml:
708 * doc/en/usage-quickstart.sgml:
709 * doc/pl/Makefile.am:
710 * doc/pl/dia-manual.sgml:
711 * doc/pl/usage-objects.sgml:
712 * doc/pl/usage-quickstart.sgml:
714 - Change the DTD declration from an outdated GNOME one to a
717 - Remove close tags for <graphics> which aren't allowed for
720 - A hacky fix for a problem where some versions of db2html don't
721 create *.css files. (If *.css doesn't match anything, then you get
722 the global explicitely.)
726 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
728 * objects/custom/custom_object.c:
729 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
730 were never properly prepared for use when reloading a shape with
731 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
732 reporting the problem and coming up with a fix! (Closes: #93974)
734 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
735 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
738 * app/display.c: updated menu item paths Alan's patch had moved.
740 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
741 load the sheet-provided icon (libpng versions mismatch, grrr.).
744 * objects/Makefile.am:
745 * objects/Misc/Makefile.am (NEW):
746 * objects/Misc/libmisc.c (NEW):
747 * objects/Misc/analog_clock.c (NEW):
748 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
749 * sheets/Misc.sheet.in: just a little experiment...
751 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
753 * plug-ins/xlst/Makefile.am: found a way to silence automake while
754 not forcing everyone to build using libxslt.
758 * lib/object_defaults.c:
761 * lib/properties.[ch]:
763 * objects/standard/box.c:
764 * objects/UML/state_term.c:
766 * objects/FS/flow-ortho.c:
770 * app/diagram_tree.c:
772 * app/disp_callbacks.c:
775 * app/lineprops_area.c:
780 * app/sheets_dialog_callbacks.c:
781 * plug-ins/xslt/xslt.c:
782 * plug-ins/metapost/render_metapost.c:
783 * plug-ins/xfig/xfig-export.c:
784 * plug-ins/shape/shape-export.c:
786 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
787 unused variables, mostly)
790 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
792 * app/Makefile.am: modified run_dia.sh so that we recover the
793 ability to run a debugger despite libtool's hacks.
795 * plug-ins/dxf/Makefile.am:
797 "make distcheck" fixes.
799 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
801 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
802 <mfranzoni@madd.it>: Check for the type being NULL.
804 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
806 * app/render_eps.c (set_font): Re-tweaked font size for printing.
808 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
810 Patch from Angus Ainslie <angusa@deltatee.com>:
811 * plug-ins/dxf/dxf-import.c:
812 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
814 (plus a couple extra fixes by me, such as the removal of printf's,
815 adapting for recent changes, and killed a couple warnings)
817 * app/authors.h: a 60K patch isn't insignificant, is it?
819 2002-09-09 Tor Lillqvist <tml@iki.fi>
821 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
822 as before) and -lfreetype (using AC_CHECK_LIB). At least on
823 Solaris with Sun's compiler (Forte C), you need to link also the
824 dia application with -lfreetype, even if it is implicitly linked
825 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
826 which is what they actually mean. Use FREETYPE_LIBS for
829 Don't look for libsunmath if isinf() is not found in math.h (as on
830 Solaris). The sunmath library is part of Forte C and not present
831 on all machines. Besides, even if isinf was found in libsunmath,
832 we didn't use it in the Makefile.am.
834 Fix a couple of bashisms.
836 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
837 too, on Solaris with Forte C.
839 Don't try to use the gcc flags with other compilers.
840 DIA_CHECK_CFLAG gives a false indication that Forte C understands
841 the gcc -f switches, but in fact they get interpreted meaning
842 something completely different.
844 Define the automake conditional HAVE_CGC.
846 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
848 Use -export-dynamic only with gcc.
851 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
852 PANGOFT2_CFLAGS rename.
854 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
856 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
859 * lib/paper.c: Workaround for gccism: Can't use inline this way with
862 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
864 * lib/text.c(set_string): fixed a memory leak (char* ain't no
865 std::auto_ptr<char> !).
868 * app/interface.[ch]:
869 * app/ddisp_callbacks.[ch]: Added some basic support for input
870 methods (GtkIMContext-based)
873 * app/Makefile.am: made libdia a shared object (per Tor
874 Lillqvist's suggestion/request), to cope for platforms with a less
875 than par dynamic library loader.
877 * app/display.c: disabled the input method menu (I really don't
878 see where and how to put them. Blame Frozen Bubble )
880 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
882 * objects/flowchart/box.c (box_update_data): Made resizing
883 possible again (only set width & height when resized too small).
885 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
887 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
890 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
892 * app/authors.h: now showing Akira TAGOH's name in the native script.
894 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
896 * plug-ins/xslt/xslt.c: Removed glib warning for unset
899 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
901 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
902 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
905 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
907 * objects/UML/class.c: Fixed showing of empty stereotypes and got
908 the string placed correctly.
910 2002-08-30 Hans Breuer <hans@breuer.org>
912 * lib/font.c (dia_font_get_style) : don't shift already
913 shifted DIA_FONT values.
915 * lib/libdia.def : updated externals
917 * app/disp_callbacks.c : on win32 GdkEventKey::string already
918 is in UTF-8. (Longterm this probably should be handled on the
921 * app/command.[hc] app/display.[hc] app/menus.c : add code to
922 switch display renderers again. The libart renderer is very
923 useful for win9x with it's limited GDI.
925 * app/render_gdk.c : use g_warning instead of printf which gets
926 nowhere on win32 (non console apps)
928 * app/render_libart.c : make it compile without FREETYPE
930 * objects/makefile.msc plug-ins/makefile.msc : added clean target
932 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
934 * app/render_eps.c (postscript_draw_contour): Debugging statement
935 that allowed me to figure out font problems.
937 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
938 items for font styles.
940 * objects/FS/flow-poly.c:
941 * objects/FS/flow-ortho.c:
942 * objects/FS/flow.c: Further conversion away from GTK dialogs.
943 Can't set a default label right now:(
945 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
947 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
948 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
950 * Makefile.am: rules relating to AUTHORS and THANKS
952 * AUTHORS: file content changed to more accurately
953 reflect guideline requirements.
954 * TODO: warning added about Gnome BTS.
955 * KNOWN_BUGS: warning added about Gnome BTS.
959 * AUTHORS: added full copyright info.
960 * mkauthors-placeholder: (removed)
962 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
964 * app/paginate_psprint.c (print_page): Fixed text printing after
965 tip from Dov Grobgeld.
967 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
969 * app/paginate_psprint.c (print_page): Fixed color of clip
972 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
974 * sheets/Makefile.am: enabled intltool-merge translation cache for
978 * mkauthors-placeholder:
979 * AUTHORS: revived that file (in a placeholder form) so that
980 automake stops yelling.
981 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
984 Heh, by the way, thanks Christophe. I feel better now.
986 2002-08-25 Christophe Merlet <christophe@merlet.net>
988 * app/command.c: Removed invalid multibyte sequence in Chepelov.
990 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
992 * lib/dia_image.c (dia_image_rgb_data):
993 Bugfixes in image data retrieval.
995 * app/render_eps.c: Refactoring of new_*_renderer.
997 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
1001 * lib/dia_image.c: Support for rowstride != width (odd width images)
1003 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
1005 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
1006 * plug-ins/xfig/xfig-import.c: Removed assertion.
1008 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
1010 * lib/paper.c: Removed app/preferences.h reference.
1012 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
1014 * plug-ins/svg/svg-import.c:
1015 * plug-ins/xfig/xfig-import.c:
1016 * lib/Makefile.am (libdia_a_SOURCES):
1017 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
1019 * objects/standard/create.h:
1020 * objects/standard/polygon.c (polygon_create):
1021 * objects/standard/polyline.c (polyline_create):
1022 * objects/standard/beziergon.c (beziergon_create):
1023 * objects/standard/bezier.c (bezierline_create):
1024 Moving create.h into lib.
1026 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
1028 * app/render_libart.[ch]: Work on PNG font export. Something's
1029 still fishy with the scaling, I don't get it.
1032 * app/interface.c: Replaced broken zoom combo with entry+menu.
1033 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
1035 * app/render_gdk.c (get_text_width): Checks for validity of text.
1036 Temporary help while debugging input -- should only activate on
1039 * objects/SADT/annotation.c:
1040 * objects/GRAFCET/transition.c:
1041 * objects/FS/function.c: Removal of gtk.h include.
1043 * objects/UML/state.c (state_load): Warnings about using State
1044 object for initial/final states.
1046 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
1048 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
1050 * app/render_eps.c: Text rendering that scales correctly. Too bad
1051 the standard fonts don't get selected right.
1053 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
1055 * lib/diagramdata.h:
1056 * lib/paper.c (get_paper_info):
1058 * plug-ins/xfig/xfig-import.c:
1059 Committed before testing. I am so embarrased. This compiles, now
1060 that the includes are in the right order.
1062 * app/diagram.c (diagram_init):
1063 * app/app_procs.c (do_convert):
1064 * app/preferences.h:
1065 * lib/diagramdata.h:
1066 * lib/diagramdata.c (new_diagram_data):
1068 * lib/paper.c (get_paper_info):
1069 Moved new_diagram part of prefs into lib/diagramdata.h. More
1070 could be done in new_diagram_data() now.
1072 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
1074 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
1076 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
1078 * configure.in: removed silly user-visible comment
1080 (actually, this is a dummy entry before I manually run nemo; for
1081 some dist-upgrade related reason, this morning's run aborted before
1082 the snapshots were created)
1084 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
1086 * objects/network/wanlink.c:
1087 * objects/network/bus.c:
1090 * objects/custom/custom_object.c:
1091 * objects/network/wanlink.c:
1092 * objects/flowchart/parallelogram.c:
1093 * objects/flowchart/ellipse.c:
1094 * objects/flowchart/diamond.c:
1095 * objects/flowchart/box.c:
1096 Removed GTK defaults stuff.
1098 * objects/UML/fork.c:
1099 * objects/UML/object.c:
1100 * objects/UML/lifeline.c:
1101 * objects/UML/branch.c:
1102 * objects/GRAFCET/transition.c:
1103 * objects/FS/function.c: Removed GTK include.
1105 * objects/FS/flow-ortho.c:
1106 * objects/FS/flow.c: Made the label behave again.
1107 Also removed GTK defaults stuff.
1109 2002-08-06 Hans Breuer <hans@breuer.org>
1111 * app/autosave.c : ported to GDir which is the improved
1112 cross platform replacement for <dirent.h>
1114 * app/makefile.msc : build autosave.obj
1116 * app/font.c : some (bad?) code calls
1117 dia_font_scaled_decent() not only with empty string but
1118 with NULL. Handle it gracefully.
1120 * lib/paper.c : don't depend on ../app. Although IMO
1121 this shouldn't be allowed on any platform it is only
1122 disabled for win32, where it simply doesn't work
1125 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
1127 * objects/fs/flow.c : conditionalize debug spew, disabled
1128 and 'ported' to use g_print. Simple printf won't work with
1129 standard win32 gui apps, may even crash them.
1131 * plug-ins/makefile.msc : DISABLED svg-import cause it
1132 depends on ../objects/custom. This not only break the
1133 build for all non ELF systems but IMO also isn't acceptable
1134 from a design point of view. See dia-list mail on subject.
1136 * plug-ins/python/makefile.msc :
1137 plug-ins/python/python.c : remove all references to dirent
1139 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
1141 * configure.in: added ro to ALL_LINGUAS
1145 * ../translation-graphs/transgraph.py: added support for fuzzy
1146 translations. Enlarged the graphs.
1148 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
1150 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
1151 key events according to locale. No clue if this works for
1154 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
1156 * lib/text.c: Various UTF8 related fixes, in particular in
1157 deleting. Text_insert_char is fine, far as I can tell.
1159 * app/interface.c (create_display_shell):
1160 * app/commands.c: Now uses gtk_clipboard functions, for they are
1161 much simpler. Also handles Win32 clipboard. Non-ascii chars
1162 don't seem to get handled correctly by text_insert_char in
1165 * app/commands.c (received_selection_handler): Got utf8 handling
1166 on paste, and individual char handling out of commands.c. Pasting
1167 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
1169 * lib/message.c (gtk_message_internal): Message dialog re-shown
1170 when new message appears. Maybe it should even move to top?
1174 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
1175 (again) and case-insensitive.
1177 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
1180 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
1182 * app/commands.c (edit_cut_text_callback):
1183 * lib/text.c (text_delete_all): Now functioning undo for text cut.
1185 * app/commands.c (edit_cut_text_callback): Now removes text.
1186 Undo is broken, though.
1188 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
1190 * app/diagram.c (diagram_update_menu_sensitivity):
1191 Making cut_text active.
1194 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
1195 clipboard. Also removed AA callback.
1197 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
1199 * objects/chronogram/chronoref.c:
1200 * objects/chronogram/chronoline.c:
1201 * objects/SADT/annotation.c:
1202 * objects/SADT/arrow.c:
1203 * objects/SADT/box.c:
1204 * objects/GRAFCET/vergent.c:
1205 * objects/GRAFCET/vector.c:
1206 * objects/GRAFCET/step.c:
1207 * objects/GRAFCET/condition.c:
1208 * objects/GRAFCET/action.c:
1209 * objects/ER/participation.c:
1210 * objects/ER/relationship.c:
1211 * objects/ER/entity.c:
1212 * objects/ER/attribute.c:
1213 Removing unnecessary GTK references.
1215 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
1217 * objects/standard/image.c:
1218 * objects/standard/textobj.c:
1219 * objects/standard/ellipse.c:
1220 * objects/standard/polygon.c:
1221 * objects/standard/beziergon.c:
1222 * objects/standard/box.c:
1223 Making default default properties.
1225 * objects/standard/image.c:
1226 * objects/standard/arc.c:
1227 * objects/standard/box.c:
1228 * objects/standard/zigzagline.c:
1229 * objects/standard/polyline.c:
1230 * objects/standard/line.c:
1231 * objects/standard/ellipse.c:
1232 * objects/standard/polygon.c:
1233 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
1235 * lib/object_defaults.c (dia_object_default_create):
1238 * lib/object.c (object_copy_using_properties):
1239 * lib/propdialogs.c:
1240 * lib/propinternals.h:
1241 * lib/propobject.c (object_create_props_dialog)
1242 (object_copy_props):
1243 Removing the standard (toolbox) properties from defaults dialogs.
1245 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
1247 * lib/font.c (dia_font_scaled_string_width)
1248 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
1250 * lib/text.c (text_calc_boundingbox): Take descent into account.
1252 * objects/standard/bezier.c (bezierline_draw):
1253 * lib/render.c (draw_bezier_with_arrows):
1254 Better arrow drawing for beziers. Doesn't change the mouse-click
1257 * lib/arrows.h: Some const-ness.
1259 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
1261 * lib/render.c (draw_arc_with_arrows):
1262 * objects/standard/arc.c (arc_draw): Better arrow drawing for
1263 arcs. Doesn't change the mouse-click area yet.
1265 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
1271 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
1273 * app/group.c (group_draw): Forgotten commit: Groups to draw as
1274 objects (using default routines).
1278 * lib/diagramdata.h:
1279 * lib/diagramdata.c (layer_find_closest_connectionpoint):
1280 * objects/standard/zigzagline.c (zigzagline_move_handle):
1281 * app/diagram.c (diagram_find_closest_connectionpoint):
1282 * plug-ins/python/pydia-diagram.c
1283 (PyDiaDiagram_FindClosestConnectionPoint):
1284 * app/object_ops.c (object_connect_display)
1285 (object_find_connectpoint_display)
1286 * app/create_object.c (create_object_button_press)
1287 (create_object_motion):
1288 * app/modify_tool.c (modify_motion):
1289 Adding object param to allow connectionpoint and handle coinciding.
1291 * objects/standard/zigzagline.c (zigzagline_check_orientation):
1292 Fixing minor problems.
1294 * objects/standard/ellipse.c (ellipse_update_data):
1295 Added direction hints.
1297 * lib/diagramdata.c:
1300 * lib/diagramdata.h:
1301 * objects/standard/zigzagline.c:
1302 First working example of zigzagline hints, currently only between
1305 2002-07-27 Steffen Macke <sdteffen@web.de>
1307 * plug-ins/svg/render_svg.c: added support for rounded
1308 rectangles (fixes #69053 if compile with
1310 * object/custom/shape_info.[c|h]: made parse_style and
1311 parse_path accessible for svg plug-in
1312 * plug-ins/svg/Makefile.am:
1313 * plug-ins/svg/svg.c:
1314 * plug-ins/svg/svg-import.c(new): added SVG import filter
1316 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
1318 * objects/standard/box.c:
1319 * objects/standard/zigzagline.c (zigzagline_move):
1320 More work on zigzagline hints.
1322 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
1323 * lib/connectionpoint.h:
1324 Hints for zigzaglines.
1326 * app/properties.c (properties_show):
1327 * app/defaults.c (defaults_show):
1329 * lib/propobject.c (object_create_props_dialog):
1331 * objects/FS/flow-poly.c:
1332 * objects/network/wanlink.c:
1333 * objects/network/bus.c:
1334 * objects/UML/class.h:
1335 * objects/UML/class_dialog.c:
1336 * objects/UML/association.c:
1337 Start of removing toolbox props from props dialogs.
1341 * app/lineprops_area.c (dia_arrow_chooser_new):
1342 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
1344 * app/create_object.c:
1345 * app/modify_tool.c:
1350 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
1352 * app/preferences.c:
1354 * app/diapagelayout.c:
1355 New prefs selector kind PREF_CHOICE chooses between a list of
1356 strings. Used for picking default paper.
1358 * app/preferences.c (prefs_data):
1359 * lib/paper.c (get_paper_info): Added prefs setting for
1362 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
1363 line segments at the ends (bug #86603).
1365 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
1367 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
1368 #60324: Now calls update_data after copy.
1370 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
1371 Now doesn't steal selection from non-object tools.
1373 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
1375 * app/commands.c (help_manual_callback): Uses BROWSER environment
1376 variable when available.
1378 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
1380 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
1381 object from the new sheet when changing.
1383 * app/app_procs.c (app_init): Uses more standard size icon, from
1384 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
1386 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
1388 * objects/UML/implements.c (implements_update_data):
1389 * objects/UML/realizes.c (realizes_update_data):
1390 * objects/UML/dependency.c (dependency_update_data):
1391 Test for null strings before calling on ascent.
1393 * objects/UML/realizes.c (realizes_draw):
1394 * objects/UML/message.c (message_draw):
1395 * objects/UML/generalization.c (generalization_draw):
1396 * objects/UML/dependency.c (dependency_draw)
1397 * objects/UML/constraint.c (constraint_draw):
1398 * objects/GRAFCET/condition.c (condition_draw):
1399 * objects/UML/association.c (association_draw):
1400 * objects/FS/flow-ortho.c (orthflow_draw):
1401 * objects/FS/flow.c (flow_draw): Change to use
1402 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
1405 * lib/arrows.c (calculate_arrow_point):
1408 * objects/standard/zigzagline.c:
1409 * objects/standard/polyline.c:
1410 * objects/standard/line.c: Work towards better arrow drawing.
1412 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
1414 * objects/UML/state.c: Starting phase-out of State object as
1415 initial/final state (which never worked right).
1417 * app/app_procs.c (app_init): --version command line option for
1420 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
1422 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
1424 * app/render_eps.c: Removed debugging info.
1426 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
1427 Kludge to make ascent and descent work for empty strings. Won't
1428 work when using non-ASCII fonts. Better would be to get a
1429 PangoFont and ask directly.
1431 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
1434 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
1437 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
1439 * plug-ins/xfig/xfig-export.c: First use of draw_object render
1440 function: All shapes are now groups in XFig export.
1442 * lib/diagramdata.c (normal_render):
1445 * app/display.c (ddisplay_obj_render):
1446 New render function for drawing objects, allows renderers to group
1447 or otherwise specially handle objects. We may want to reconsider
1448 calling it in app/display.c, as we 'know' the object draw function
1449 is the default one there.
1451 * lib/Makefile.am: Removed extra \ that broke stuff.
1453 * plug-ins/xfig/xfig-import.c:
1454 Spline import for xfig. Not perfect.
1456 * objects/standard/create.h:
1457 * objects/standard/bezier.c (bezierline_create):
1458 * lib/bezier_conn.c:
1459 * lib/beziershape.c (beziershape_set_points):
1460 * lib/bezier_conn.h:
1461 * lib/beziershape.h:
1462 Support for creating beziers non-interactively.
1464 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
1466 * plug-ins/xfig/xfig-import.c: Support for polygons and
1467 polylines. Special warning handling system removed.
1469 * lib/message.c (gtk_message_internal): Fixed bug involving
1470 closing message window and then getting repeated message.
1474 * configure.in (GETTEXT_PACKAGE):
1475 Update based on bug #88199. Hopefully this doesn't break too much
1478 * dia.desktop.in (_Comment): Changed after suggestion from
1479 calum.benson@ireland.sun.com (bug 88345)
1481 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
1482 <loli@unsa.edu.ar> that makes user/system distinction better.
1484 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
1486 * app/render_libart.c: Got the context right, removed crashes.
1496 Remove libart #defines from most places (still around for png export).
1498 * app/render_libart.h:
1499 * app/render_libart.c:
1500 * configure.in (HAVE_LIBART):
1501 Starting on update of libart stuff for png export (without X).
1503 * app/autosave.h (autosave_check_autosave):
1506 * app/Makefile.am (dia_core_files):
1508 * app/diagram.c (diagram_set_modified):
1510 * app/app_procs.c (app_init):
1511 Autosave support. No automatic restore yet.
1513 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
1515 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
1518 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
1520 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
1522 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
1524 * Fix for 'make dist' etc. --- problem caused by
1525 previous AUTHORS patch.
1527 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
1529 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
1531 (set_font): NULL check.
1533 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
1535 * app/disp_callbacks.c:
1537 Addition to the object menus allows check menu items.
1539 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
1541 * HACKING: completely changed to bring up-to-date.
1542 * AUTHORS: file needs REMOVING from CVS as now
1543 dynamically generated.
1544 * app/authors.h: split into subcategories for original
1545 authors, maintainers, etc.
1546 * app/app_procs.c: --credits rewritten to support new
1548 * app/commands.c: no changes to about box code, comment
1550 * Makefile.am: added rule for AUTHORS. I'm still
1551 inexperienced with automake, it seems to work, but
1552 for AUTHORS-related bugs, look at this change first.
1554 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
1556 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
1557 work. Back to including xslt dir always.
1559 * objects/UML/uml.c:
1560 * objects/UML/class.h:
1561 * objects/UML/class_dialog.c:
1562 * objects/UML/class.c: Patch from
1563 <mattam@netcourrier.com>: Adds comment visibility switch, also
1566 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
1567 for state/fork/activity stuff.
1568 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
1569 * objects/UML/Makefile.am:
1570 * objects/UML/uml.c:
1571 * sheets/UML.sheet.in: Added new objects activity, fork,
1573 * objects/UML/pixmaps/state_term.xpm:
1574 * objects/UML/state_term.c: New, only initial/final states.
1575 * objects/UML/pixmaps/activity.xpm:
1576 * objects/UML/activity.c: New, activity state.
1577 * objects/UML/pixmaps/fork.xpm:
1578 * objects/UML/fork.c: New, fork/join bar.
1579 * objects/UML/pixmaps/state.xpm: state icon.
1583 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
1584 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
1587 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
1589 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
1592 * app/Makefile.am: Commented out the diaconv parts while it's not
1593 used anyway. To come back later.
1595 * configure.in (HAVE_FREETYPE):
1598 * app/render_eps.c: Support for printing with freetype, better
1599 encapsulated now. Renders the text nicely, but ignores font
1600 setting. Requires pangoft2 to get the font outline, but non-text
1601 objects can still be rendered without it.
1604 * app/commands.c (objects_place_up_callback)
1605 (objects_place_down_callback):
1607 * app/diagram.c (diagram_place_down_selected)
1608 (diagram_place_up_selected): Starting support for moving objects
1611 * app/menus.c: Removed character/numeral shortcuts.
1613 2002-07-06 Hans Breuer <hans@breuer.org>
1615 * makefile.am app/makefile.am lib/makefile.am
1616 objects/makefile.am plug-ins/makefile.am
1617 plug-ins/python/makefile.am :
1618 added required files for win32 build to EXTRA_DIST
1620 * app/paginate_psprint.c app/render_eps.c
1622 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
1623 on Pango as currently is on win32 => no PostScript
1626 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
1627 use '/* noop */;' for empty case labels; replace
1628 debug spew printf with g_print which is guaranteed
1629 to work on win32, too.
1631 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
1632 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
1633 in the pango_font_description_set_weight() api documentation
1634 Take care for them in dia_font_get_style() too.
1636 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
1637 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
1638 rename Obliquity to Slant which appears to be the usual name,
1639 also rename dia_font_get_style_string -> dia_font_get_slant_string
1641 * plug-ins/wmf/wmf.cpp : finally ported to new font api
1643 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
1645 * objects/uml/association.c class.c large_package.c message.c
1646 if g_free() is used g_strdup needs to be used.
1647 * objects/custom/shape_info.c
1648 objects/ER/attribute.c entity.c
1649 objects/standard/image.c
1650 app/sheets_dialog_callbacks.c : more strdup cleaning
1652 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
1654 * app/render_eps.c: Non-crashing printing (made the right
1655 context). Font output still fscked up.
1657 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
1659 * app/authors.h: Added file --- now master
1660 location for contributors data.
1661 * app/app_procs.c: Added --credits option.
1662 * app/commands.c: Modified about box to use
1665 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
1667 * app/render_eps.c: First stab at EPS rendering using the contour
1668 code from PAPS. Crashes.
1670 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
1672 * app/recent_files.c (recent_file_history_remove):
1673 Fixed call to g_list_delete_link discarding return value.
1675 * lib/widgets.c (dia_font_selector_set_styles):
1676 * lib/font.h (DiaFontWeight):
1677 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
1679 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
1681 Contribution from Alan Horkan <horkana@tcd.ie>:
1684 * sheets/Assorted.sheet:
1685 A set of 40 assorted geometric shapes.
1687 * sheets/Assorted.sheet.in:
1688 * sheets/Makefile.am
1689 * shapes/Assorted/Makefile.am:
1690 * shapes/Makefile.am:
1693 Done the integration job of Alan's shapes. (Translators: have fun!)
1695 * po/dia.pot: refreshed the main potfile.
1697 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
1699 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
1701 * objects/UML/class.[ch]:
1702 * objects/UML/class_dialog.c:
1703 changed the number of connection points from a hardcoded value of
1704 8 to a #defined constant
1706 (I changed the constant back from 20 to 8, until we better know
1707 how we'll handle more connection points on the UML class in the
1708 future -- but Tim's patch is a welcome clean-up).
1710 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
1712 * shapes/MSE/demultiplexer.xpm:
1713 * shapes/MSE/node_center.xpm:
1714 * shapes/MSE/multiplexer.xpm:
1715 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
1716 Horkan <horkana@tcd.ie>
1718 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
1720 * lib/widgets.c: Total rehash of font selector, with font dialog
1721 option, expanding list (not LRU yet), and stuff.
1723 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
1727 Added a set of new setter/getters, some of them more specially for
1730 * plug-ins/shape/shape-export.c: (new_shape_renderer),
1731 (destroy_shape_renderer), (set_font), (draw_string):
1732 * plug-ins/svg/render_svg.c: (new_svg_renderer),
1733 (destroy_svg_renderer), (set_font), (draw_string):
1735 Actually exported the font face, style, weight and size (sodipodi
1736 agrees with dia on how a small sample should look like (a sample
1737 0.90 would not even display anyways). Yay !)
1739 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
1741 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
1743 (end of ChangeLog-less patch)
1745 * objects/custom/shape_info.c (parse_style): now understands the
1746 font-style and font-weight attributes as well. Does not use
1747 anymore dia_font_new_from_legacy_name().
1749 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
1751 * objects/standard/textobj.c: Now uses stdprops for defaults.
1753 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
1754 * lib/font.c (dia_font_get_style): Style now linear and conversion
1757 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
1760 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
1762 * plug-ins/dxf/dxf-import.c:
1763 using dia_font_new_from_style()
1765 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
1767 * objects/UML/class.[ch]: Added a comment field to class
1768 * objects/UML/uml.[ch]: Added a comment field to attributes,
1769 operations and parameters.
1770 * objects/UML/class_dialog.c: Added code for the new comment
1772 * plug-ins/xslt/*.xsl: Added some code to handle comments.
1773 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
1774 Added a $directory parameter for stylesheets so the output is
1775 in the good place (not in the $PWD).
1779 * AUTHORS: added contributors, updated maintainers. Removed the
1780 specific areas of action.
1782 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
1783 from a patch by Xing Wang <quixon@gnuchina.org>:
1785 * app/commands.c: help_about_callback now supports
1786 new-style GNOME about box as well as old GTK style.
1787 code also tidied (Closes: #85726)
1791 * app/commands.c: fixed the copyright (it's not all FSF), and
1792 maintainers. Synced contributors list with AUTHORS.
1794 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
1796 * lib/message.c: More work on repeating messages, now with
1799 2002-06-24 Hans Breuer <hans@breuer.org>
1801 * lib/widget.c : some more bits in place, at least
1802 it does something useful instead of crashing. Much
1803 better - but not all ok :-)
1805 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
1807 * lib/message.c (gtk_message_internal): First stab at repeating
1810 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
1813 * objects/GRAFCET/*.c:
1815 * objects/UML/association.c: (one instance forgotten)
1816 * objects/UML/large_package.c:
1817 * objects/standard/textobj.c:
1820 using dia_font_new_from_style()
1822 2002-06-23 Hans Breuer <hans@breuer.org>
1824 * lib/font.c : giving some love to
1825 dia_font_new_from_legacy_name() that is making
1826 import of old files as painless as possible and
1827 provide an almost exact match where possible.
1828 It does not yet fully work because it interfers
1829 with the Style to DiaStyle conversion which comes
1832 [Changing these files is only allowed with Dia-0.90]
1833 * broken-files/fonts-0.90.dia : including the
1834 common hard-coded fonts from Dia-0.90. It also
1835 has drawn bounding-boxes for win32 as they were calculated
1836 from the former version (they were all too big).
1837 * broken-files/fonts-0.90-full.dia : all hardcoded
1838 fonts including the asian versions. On my machine
1839 this gives _a lot_ complaining about missing fonts
1840 and a finally a broken file display. Anyone having
1843 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
1845 * objects/chronogram/*.c:
1846 * objects/custom/custom_object.c:
1848 using dia_font_new_from_style()
1850 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
1852 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
1853 font selector (stability, insensitivity).
1855 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
1856 stretching scheme for tweaking, and made scaling scheme faster
1858 (dia_font_dia_style_to_pango): Oops, % != /.
1860 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
1863 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
1865 * plug-ins/xslt : Added an XSLT plugin to export dia files using
1866 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
1867 It includes a small config file to tell it what stylesheets to use.
1871 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
1872 GTK2.0/HIG compliant (the labels could be slightly more verbose,
1873 perhaps). Added back a couple forgotten _(). Removed //-style
1876 2002-06-23 Hans Breuer <hans@breuer.org>
1879 (dia_plugin_get_name) : don't crash plugin_manager
1881 (dia_plugin_load) : reuse the description field to
1882 store the error string if loading fails.
1884 * lib/font.[hc] : starting to beautify the new
1885 font api: proper namespacing, adding convenience
1886 functions like dia_font_new_from_style(), ...
1888 * objects/uml/*.c : use the new convenience functions.
1890 [Next thing I plan to do is changing the other font
1891 functions to take DiaStyle and make Style and
1892 BASIC_*_FONT vanish. As well as giving some love to
1893 dia_font_new_from_legacy_name().
1894 If anyone want's to help on converting the other
1895 objects to the new api during that, I would highly
1898 2002-06-23 Hans Breuer <hans@breuer.org>
1900 * lib/font.c : made it compile and small indent fixes.
1901 Is there a code-has-no-effect-so-needs-not-be-valid
1904 * lib/widgets.c : use g_strcasecmp
1906 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
1910 * lib/widgets.c: Font names sorted, style selector widget
1911 reappeared. Doesn't select the old style yet.
1913 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
1915 * lib/font.c: one who expects a text's font to be changed shall
1916 actually request the attributes to apply to the whole range of the
1919 * lib/font.c: extents computation was wrong.
1921 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
1922 if a last NULL parameter is added...
1924 * lib/font.c: extents computation was completely wrong. This looks
1925 much better this time.
1927 * objects/UML/class.c: fixed the various strings positions.
1929 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
1930 macros to get the hardcoded base fonts.
1932 * objects/ER/relationship.c: wasn't converted to DiaFont*
1934 2002-06-22 Hans Breuer <hans@breuer.org>
1936 * lib/widget.c : dont use backend specific functions
1937 to get on the font_families. Including it would mean
1938 including <windows.h> which breaks due to namespace
1941 * lib/libdia.def : updated externals
1943 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
1945 * lib/font.c : added empty dia_font_init_instance function,
1946 reformatting of dia_fon_unref to allow to set breakpoint,
1947 dia_fon_build_layout() : dont crash on string==NULL
1949 * lib/text.c (text_set_attributes) : don't unref the wrong font
1951 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
1952 stores lowercased font names, but dia_font_get_family()
1955 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
1958 * app/render_gdk.c: Patch from Hans Breuer.
1960 * app/Makefile.am (dia_core_files): diaconv commented out for now.
1962 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
1964 * lib/all files touched yesterday: took into account some of Hans
1966 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
1968 * objects/chronogram/*:
1971 * objects/flowchart/*:
1973 * objects/GRAFCET/*:
1975 * objects/standard/textobj.?:
1977 converted to the new DiaFonts.
1980 * plug-ins/pstricks/*:
1984 Made minimalistic conversions so that they'd at least compile.
1987 * app/render_pixmap.c:
1988 Converted to the new DiaFonts.
1993 made the minimal changes so that it would at least build.
1995 *** At this point, the thing builds on my machine, but segfaults
1998 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
2000 * configure.in: removed the backend-specific pango pkg_modules
2001 (trivial to add back if needed, when actually needed)
2004 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
2005 renderer. The APIs will have completely changed when we get around
2006 to redo a renderer for it, anyways.
2008 * font.[ch]: rewrote everything from scratch, with a Pango
2009 implementation. Normally, only backend-neutral things should go in
2012 **WARNING**: new rules for managing DiaFont* pointers: these are
2013 reference-counted GObjects. One >must< diafont_ref() and
2014 diafont_unref() as appropriate. I wish I could overload operator=()...
2016 lib/plug-ins.h: bumped up the plug-in API.
2021 lib/object_defaults:
2022 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
2023 again tomorrow with GObject.
2025 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
2027 **** The rest of the tree should be updated as well ****
2029 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
2033 * app/render_pixmap.c:
2034 * app/render_pixmap.h:
2035 * app/render_libart.h:
2036 * app/render_libart.c:
2038 * lib/font.c: Removed freetype stuff (still around in
2039 lib/widgets.c 'cause we might want the font selector widget).
2041 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
2043 * shapes/network/laptop.(xml|shape):
2044 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
2045 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
2047 2002-06-17 Hans Breuer <hans@breuer.org>
2049 * lib/object_defaults.c : #include <libxml/tree.h> not
2050 <tree.h> pointed out by Xing Wang
2052 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
2054 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
2056 * app/color_area.c: Update to
2057 gtk_color_selection_*_current_color() fixed bad crash issues, plus
2058 updated color conversions.
2060 * sheets/ER/weakentity.xpm: Accepted patch from
2061 quixon@gnuchina.org to make icon match actual appearance.
2063 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
2064 quixon@gnuchina.org.
2066 2002-06-16 Hans Breuer <hans@breuer.org>
2068 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
2069 good tradition of information hiding. Add new function
2070 dia_plugin_get_symbol()
2071 * app/sheets.c app/sheets_dialog_callbacks.c : use it
2073 * app/sheets.c : stop complaining about object_get_type()
2074 returning NULL. This is a consequence of e.g. disabling
2075 plug-ins at runtime _and_ it was and is gracefully handled.
2076 Spitting out g_warning for it isn't appropriate.
2078 * lib/object.[ch] : removed dead code
2080 * app/plugin-mangager.c : almost complete rewrite for gtk2
2081 using GtkListStore/GtkTreeView
2083 * lib/libdia.def : updated externals
2085 * todo.gtk2 : updated, that is removed already done steps
2087 2002-06-15 Hans Breuer <hans@breuer.org>
2089 * objects/uml/class_dialog.c : clean some left-over
2090 utf8-mess, return 0 from "focus_out_event" handlers
2091 to avoid asserting in gtk (#78305). Reconstruct
2092 stereotype/NULL behaviour to avoid rendering empty
2093 stereotypes on classes and member functions
2095 [#56109 - Provide object defaults for StdProp objects,
2096 some remaining issues are discussed in bugzilla]
2098 * lib/object_defaults.c : (new file) manage default properties
2099 of dia objects. The serialization is done with standard
2100 object methods in a diagram compatible format.
2102 * lib/object.c : add object_registry_foreach() which allows
2103 to iterate over all registered object types
2105 * lib/object.h : added prototypes object_default*() and
2106 object_registry_foreach()
2108 * lib/makefile.am lib/makefile.msc : add new file to build
2110 * lib/libdia.def : export new functions
2112 * app/defaults.c : provide StdProp based defaults if the
2113 ObjectType doesn't implement it's own default functions
2115 * app/create_object.c : through dia_object_default_create()
2116 * app/disp_callbacks.c : same here
2118 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
2120 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
2121 sensitivity for deleting segments.
2123 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
2125 * app/color_area.c: (color_area_events):
2126 * app/diagram.c: (diagram_destroy):
2127 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
2129 * app/load_save.c: (diagram_data_load):
2130 * app/menus.c: (menus_get_item_from_path):
2131 * app/preferences.c: (prefs_load):
2132 * app/render_gdk.c: (get_text_width):
2134 * lib/color.c: (color_convert):
2135 * lib/dia_dirs.c: (dia_config_filename):
2136 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
2137 * lib/intl.c: (intl_get_language_list):
2138 * lib/message.c: (message):
2140 * lib/paper.c: (get_default_paper):
2141 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
2142 * lib/widgets.c: (dia_file_selector_get_file):
2144 * objects/standard/image.c: (get_directory):
2148 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
2150 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
2152 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
2154 * app/interface.c: sscanf now returns EOF on empty string, so
2155 handle no match for zoom factor better => correct zoom at start.
2157 * app/sheets.c (create_object_pixmap): Tried to display empty error.
2158 (sheets_optionmenu_create): Died when not finding specified
2159 sheet. Don't think it should.
2161 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
2162 (bug #84367) to place the text better.
2164 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
2166 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
2168 * app/commands.c: Removed unnecessary gnome include. Removed
2169 GNOME-Print support.
2171 * app/menus.h: Removed now unnecessary gnome include.
2173 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
2174 GNOME-specific stock buttons
2176 2002-06-09 Hans Breuer <hans@breuer.org>
2178 * app/app_procs.c : convert 'Modified diagrams exits'
2179 dialog to use GtkMessageDialog. That gives us:
2180 - icons without Gnome dependency
2181 - much less code, also cross platform
2182 - improved useability ?
2184 * app/color_area.c : the Color Selection Widget looked
2185 quite wrong (alpha problems). Fix it by merging in required
2186 changes stolen from The Gimp cvs
2187 * app/color_area.h : to get the right appearance the maskes
2188 needed to be taken into account
2189 * app/interface.c : adapt to color_area_create changes.
2190 Also remove some dead code and finally remove cvs autexpansion,
2191 I was bothered enough by irrelevant differences :-)
2193 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
2194 api, i.e stocks and response to make the GnomeDialog usage
2195 obsolete. Also fixed the issue with closing the 'parent'
2196 before closing the dialog
2198 * app/display.[ch] : removed some dead code and conversion
2199 to new GtkDialog api. Also trying to conform to new HIG
2200 standard http://developer.gnome.org/projects/gup/hig/
2202 2002-06-09 Hans Breuer <hans@breuer.org>
2204 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
2207 * lib/dia_image.c : gtk_widget_set_default_visual()
2208 remove. It does nothing with Gtk2.
2210 * lib/libdia.def : added ps_unicoder exports
2212 * lib/message.c : remove #GNOME use GtkMessageDialog.
2213 Yeah, Dia gets dialogs wit icons cross-platform.
2215 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
2216 to gtk_spin_button_get_value()
2218 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
2220 add #undef GTK_DISABLE_DEPRECATED to still use ...
2221 * lib/prop_text.c : ... GtkText
2222 * lib/prop_widgets.c : ... GtkList
2223 * lib/prop_dialogs.c : ... gtk_signal_connect and more
2224 * lib/widgets.c : ... (too much to list here)
2226 * lib/ps-utf8.c : #include <string.h>
2228 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
2231 * Makefile.am: Adapted for gtk2.
2232 Removed dependencies on libunicode, on iconv(), on langinfo().
2234 * acconfig.h: removed (now obsolete)
2236 * lib/charconv.[ch]: removed (superceded by glib)
2237 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
2239 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
2240 libunicode types for their glib counterparts. Fixed the include
2241 paths for libxml2. Removed all traces of libxml1 or non-UTF8
2242 support (there were remains in objects/uml).
2245 2002-06-08 Hans Breuer <hans@breuer.org>
2247 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
2248 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
2249 Also use g_strdup()'s handling of NULL by returning NULL
2250 again at all places I found (remove unnecessary if's)
2252 * todo.gtk2 : new file to keep notes about gtk2 porting,
2253 further issues and thoughts and some status information.
2254 Also sent to dia-list ('Dia goes Gtk2 ...').
2256 [make it compile with GTK+ 2.0]
2258 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
2259 removed definition of S_ISDIR, S_ISREG and getlogin
2261 * */makefile.msc : Use GTK2 and libxml2
2262 BEWARE: makefile.am, configure.in not yet ported !
2264 * app/app_procs.c app/diagram.c : remove
2265 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
2266 but set use gtk_menu_set_accel_path() on menu creation
2268 * app/color_area.c lib/widgets.c :
2269 make use of gtk_color_selection_set_has_palette ()
2271 * app/commands.c : gdk_pixbuf_new_from_file wants an
2272 extra argument. Convert from DIR to GDir usage.
2274 * app/diagram_tree.c(button_press_callback) : need to return
2275 FALSE in the signal handler to let gtk process it further.
2276 (get_object_name) : don't leak 'prop'
2278 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
2279 dia_page_layout_destroy() getting called more than once
2281 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
2284 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
2286 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
2287 IIRC this code will not compile unchanged when USE_XIM is defined ...
2289 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
2291 * app/interface.c : there is no widget->klass anymore in Gtk,
2292 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
2293 parameter. Some tweaking of GtkWrapBox usage to get four tools in
2295 switch off GTK's double buffering on Dia's canvas. Otherwise we would
2296 get triple buffering and flicker.
2297 Replace call to GTK private function _gtk_accel_group_attach()
2298 with public gtk_window_add_accel_group()
2300 * app/layer_dialog.c : adapt to GtkTypeInfo changes
2302 * app/load_save.c lib/plug-ins.c lib/sheet.c
2303 objects/custom/custom.c :
2304 simplified by using g_file_test()
2306 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
2307 to gtk_accel_map_<save|load>. Also added common stock-icons
2310 * app/preferences.c : use gtk_button_set_label() instead
2311 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
2313 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
2314 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
2317 * app/recent_files.c : removed GLIB_CHECK_VERSION
2320 plug-ins/metapost/render_metapost.c
2321 plug-ins/pstricks/render_pstricks.c
2322 plug-ins/svg/render_svg.c :
2323 replace getlogin() with g_get_user_name() which always
2326 * app/render_gdk.c : gdk_region_union_with_rect() modifies
2327 inplace now and returns nothing, also less #hell
2329 * app/render_libart.c : some initial #hell cleaning, SuckFont
2330 still needs to vanish
2332 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
2333 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
2335 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
2336 * app/sheets_dialog_callbacks.c : some #hell and adaptions
2337 needed to GtkWrapBox api changes
2340 * lib/charconv.[hc] : removed from build
2341 [changed appropriate]
2342 * lib/prop_inttypes.c lib/prop_text.c :
2344 * lib/text.c : ported from HEAD but keep original indent
2345 intact. Original was done by Akira TAGOH.
2347 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
2349 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
2351 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
2352 same on all platforms now!
2354 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
2356 * lib/message.c : remove "charconv.h"
2358 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
2361 * lib/sheet.c : convert from DIR to GDir usage
2363 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
2365 * lib/widgets.h : include gtk<label|colorseldialog>.h
2368 * objects/fs/flow.c :
2369 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
2371 * objects/custom/custom.c : convert from DIR to GDir usage
2374 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
2377 2002-05-03 Hans Breuer <hans@breuer.org>
2379 * lib/dia_xml.c : make the well formed utf8 check
2380 actually work for û (non 7-bit ascii encoding)
2381 and fixed the file re-writing if the check fails.
2382 Thanks to Vitaly Lipatov for noticing the misbehaviour.
2384 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
2385 comment on last ressort font. Thanks to Maxim Sobolev.
2387 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
2389 * sheets/network.sheet.in: corrected a typo in plotter invocation.
2391 2002-06-03 Steffen Macke <sdteffen@web.de>
2393 * shapes/network/digitizing_board.png:
2394 * shapes/network/digitizing_board.shape:
2395 * shapes/network/plotter.png:
2396 * shapes/network/plotter.shape:
2397 * shapes/network/Makefile.am
2398 * sheets/network.sheet.in: added new plotter and digitizing
2401 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
2403 * lib/font.c: made a symptomatic fix to a segfault reported by
2404 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
2405 won't prevent dia from terminating, but should give more
2406 user-friendly information about why did it terminate.
2408 Two patches from <robert.young@dsto.defence.gov.au>:
2410 * app/display.c: fix the size of the canvas area which gets
2411 redrawn. There was an off-by one error (Closes #83659)
2413 * app/display.c: make sure we redraw all screen only when we
2414 really have to (some update_areas were mistakenly ignored) (Closes
2417 * NEWS: added a new entry for the future. Put there a reminder to
2418 update the dependencies.
2420 * configure.in: put in notes about what will change shortly.
2421 upped the version to 0.90+cvs (did also in config.h.win32)
2422 upped the minimum version for intltools (now 0.21)
2424 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
2430 bumped up version number to 0.90. Yay!
2432 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
2434 * doc/pl/Makefile.am:
2435 * doc/en/Makefile.am: fixed a "make install" problem when db2html
2436 is not present (Reported by Andrew Ferrier
2437 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
2438 problem which prevented me from ever seeing the problem in doc/en...
2440 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
2442 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
2443 way to read the font path from the XFS configuration files in
2444 order to enable FreeType (fixes #83098).
2446 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
2453 bumped up version number to 0.90.RC3
2455 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
2457 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
2458 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
2459 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
2460 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
2461 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
2462 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
2463 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
2464 Added Polish documentation.
2466 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
2468 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
2469 format for the UML State object. Now there's a hack to reload
2470 older files, and get them converted on the fly.
2471 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
2475 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
2476 and adapter the proplist predicates. A LOAD_ONLY property is for
2477 when you have legacy to support but can't resist moving your
2478 fields around... (was needed to support the above state.c fix).
2480 If the in-core of your object changes and you need a LOAD_ONLY
2481 property for the old format, you must keep some spare room in your
2482 object's struct to accomodate for the potential old-style
2483 attributes. Then in foo_load(), after having called
2484 object_load_using_properties(), you must inspect the old-style
2485 fields and act accordingly. Don't ever change the on-disk formats...
2487 * objects/UML/object.c:
2488 * objects/UML/small_package.c: added a check against empty
2489 stereotypes still consuming space. Reported by Dolores Alia de
2490 Saravia <loli@unsa.edu.ar>. Thanks!
2492 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
2494 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
2495 using libtool on an AFS partition.
2497 * po/update_potfiles_in.sh: now simply calls the recent intltools
2498 features; they work better than hand-crafted half-ignorant
2499 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
2502 * po/POTFILES.in: added back two files update_potfiles_in.sh
2503 didn't take into account. Now this file is not automatically
2505 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
2506 (the usual suspects, in fact).
2508 * configure.in: improved the isinf() / isfinite() detection on
2509 Solaris (MÃ¥rten Svantesson)
2511 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
2513 * configure.in: one expression was replacing $CFLAGS, removing
2514 whatever was previously in.
2515 Added more checks for isinf() and finite() on Solaris.
2517 * lib/geometry.h: added a macro defintion for isinf() if not
2518 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
2521 * app/commands.c: "cut" did not set the 'modified' bit (paste has
2522 been for a little while). Fixes #82994.
2524 * Makefile.am: added more stuff to distclean-local. This should make
2525 "make distcheck" pass! Thanks to the author of
2526 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
2527 ... I wonder who this Henstridge guy is ... ;-)
2528 Darn. Still doesn't pass. I give up for tonight.
2530 * po/update_potfiles_in.sh: updated to take care of sheet files,
2531 and to filter out the EML plug-in.
2532 * po/POTFILES.in: updated with all .c and all .sheet.in files
2534 * po/dia.pot, po/*.po: again updated all .po files with all
2535 strings (with the updated POTFILES). Now with the up-to-date
2536 POTFILES, just all languages have some fuzzy or untranslated
2537 strings (not that the 100% team was that large beforehand...)
2539 * po-checktrans: removed the comment about .po files not holding
2540 all translatable stuff, since now they do.
2542 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
2548 bumped up version number to 0.90.RC2
2550 2002-05-20 Hans Breuer <hans@breuer.org>
2552 * app/load_save.c : starting to increase
2553 Dias tolerance on incomplete/broken files. The
2554 corresponding bug is #56233. But the patch there does
2555 neither apply anymore nor does it really fix the problem
2556 but only delays it, e.g. even if it would be allowed
2557 to read a file without any layers, the later code can't
2559 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
2560 handle passing in NULL for the node gracefully.
2562 * shapes/network/printer.shape : added two more connection
2563 points - one at each side - to fix bug #60359
2565 * app/commands.c (edit_copy_callback) :
2566 add ddisplay_do_update_menu_sensitivity() to make
2567 sequence select-copy-paste work.
2569 2002-05-20 Hans Breuer <hans@breuer.org>
2571 * app/create_object.c (create_object_button_press) :
2572 added a call to ddisplay_do_update_menu_sensitivity()
2573 to make Ctrl^D etc work after object creation.
2576 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
2578 * objects/ER/entity.c:
2579 * objects/ER/attribute.c:
2580 * objects/ER/relationship.c: Patch to allow text size change from
2581 Celso Tetsuo Nagase Suzuki.
2583 2002-05-18 Steffen Macke <sdteffen@web.de>
2585 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
2587 * doc/en/graphics/greendots.png:
2588 * doc/en/home_network.png:
2589 * doc/en/line_props.png:
2591 * dia_gnome_icon.png:
2592 * dia_gnome_menu_icon.png:
2594 * shapes/network/telephone.png:
2595 * shapes/Logic/and.png:
2596 * shapes/Logic/buffer.png:
2597 * shapes/Logic/connector.png:
2598 * shapes/Logic/inverter.png:
2599 * shapes/Logic/nand.png:
2600 * shapes/Logic/nor.png:
2601 * shapes/Logic/not.png:
2602 * shapes/Logic/or.png:
2603 * shapes/logic/xor.png:
2604 * samples/ER-demo.dia:
2606 * samples/UML-demo.dia:
2607 * samples/chronograms.dia:
2608 * samples/grafcet.dia: re-added as binary files
2610 2002-05-17 Hans Breuer <hans@breuer.org>
2612 * lib/libdia.def : reflect removing of render_store.[ch]
2614 * */makefile.mingw : remove VERSION definition it's
2615 done in config.h.win32. Dia still doesn't work if
2616 build with mingw ...
2618 * RELEASE-PROCESS : removed */makefile.mingw
2620 * app/sheets_dialog_callbacks.c : if we use those
2621 ugly charconv_gtk_* functions lib/charconv.h needs to
2623 * lib/charconv.h : ... and needs to contain the
2624 necesseray prototypes _and_ #defines
2626 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
2627 is deprecated and does nothing but spit a warning. This broke
2628 the shape format writing. Fixed.
2629 Also with libxml2 pretty formatted xml isn't the default
2630 anymore, but needs to be enabled explicit: It is done now
2631 for shape files, which almost always needed to be edited by
2634 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
2635 from stderr - which is invalid on Dia/win32 - to g_print -
2636 which opens up a console window if necessary. This way
2637 a xml-deprecation-error shouldn't stay unnoticed next time
2639 2002-05-17 Steffen Macke <sdteffen@web.de>
2641 * shapes/Misc/folder.png:
2642 * shapes/Misc/file.png: re-added as binary files
2644 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
2646 * lib/font.c: Fixed segfault for fonts without family_name.
2648 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
2650 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
2652 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
2653 Lars' request, minor cosmetic stuff (mostly _() of human-readable
2654 XML comments in .sheet files; one translator booby-trap disarmed).
2656 * lib/charconv.c: moved #hell inside the body of the new
2657 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
2660 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
2662 * plug-ins/wpg/Makefile.am (INCLUDES):
2663 * plug-ins/shape/Makefile.am (INCLUDES):
2664 * plug-ins/svg/Makefile.am (INCLUDES):
2665 * plug-ins/pstricks/Makefile.am (INCLUDES):
2666 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
2667 and DEBUG_CFLAGS in some missing places.
2669 * MAINTAINERS: New file containing list of known package
2673 * lib/charconv.c: Charconv versions of some common gtk calls.
2675 * app/sheets_dialog_callbacks.c
2676 (on_sheets_new_dialog_button_ok_clicked),
2677 (on_sheets_dialog_button_edit_clicked),
2678 (on_sheets_dialog_button_remove_clicked),
2679 (on_sheets_edit_dialog_button_ok_clicked):
2680 * app/sheets.c (sheets_optionmenu_create),
2681 (sheets_optionmenu_create): Added utf8 translations.
2683 * app/sheets_dialog.c:
2685 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
2687 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
2689 * po/POTFILES.in: added app/sheets_dialog.c
2691 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
2693 * lib/charconv.c: (charconv_local8_to_utf8),
2694 (charconv_utf8_to_local8): tweaked the warnings to get more
2696 * lib/font.c: (font_get_suckfont): handled a potential case of
2697 uninitialised data being used (just paranoid)
2699 * objects/GRAFCET/boolequation.c: (opstring),
2700 (opblock_get_boundingbox), (opblock_draw),
2701 (boolequation_calc_boundingbox): some extra hoops needed now dia
2702 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
2703 symbols can't yet be used with their proper Unicode cells, since
2704 gtk will demand them in the Symbol font, expressed in the local
2707 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
2708 the fix just above).
2710 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
2712 * app/diagram_tree.c (get_object_name): Check that name property
2713 doesn't have null string.
2715 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
2717 * autogen.sh (DIE): Added conditional --force to gettextize.
2719 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
2722 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
2724 * RELEASE-PROCESS: added James' notes on how to properly make the
2727 * configure.in: removed macro nesting related to libpng.h, which
2728 was causing some problems on some systems (like mine, which made
2731 Made --enable-unicode, previously an option, the mandatory case.
2733 * app/Makefile.am: updated EXTRA_DIST
2736 * app/makefile.mingw:
2738 * doc/en/dia-manual.sgml:
2739 * plug-ins/makefile.mingw:
2740 * configure.in: bumped up the version number to 0.90.RC1
2742 * lib/render_objects.[ch]:
2743 * po/POTFILES.in: removed render_objects from the build.
2745 * plug-ins/Makefile.am:
2746 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
2747 so we keep its source in the tarball.
2749 * objects/network/*.c, Makefile.am:
2750 * objects/sybase/*.c, Makefile.am:
2751 * po/POTFILES.in: cleaned up the non-existent files from the po
2754 * plug-ins/Makefile.am: re-enabled metapost plug-in.
2756 2002-05-13 Steffen Macke <sdteffen@web.de>
2759 * app/command.c: added M. C. Nelson to the Authors
2760 * sheets/Circuit/Makefile.am: added firewall shape to build
2761 * sheets/network/Makefile.am: added telephone and microphone
2764 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
2766 * RELEASE-PROCESS: Added list of files that contain the release
2767 number or should otherwise be changed at each release.
2769 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
2771 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
2772 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
2774 2002-05-12 Hans Breuer <hans@breuer.org>
2776 * config.h.win32 : changed VERSION to 0.90.RC1
2778 * app/makefile.msc lib/makefile.msc : use renamed
2779 gdk-pixbuf version (same content but renamed because
2780 all the other gtk+ dlls are renamed) to avoid trouble
2781 mixing gtk versions (of which one would not
2784 * app/app_procs.c : removed recently unneeded
2785 inclusion of "sheets.h"
2787 * app/render_gdk.c : removed my own debug spew
2788 which should never made it to cvs
2790 * lib/render_object.[hc] : added
2791 #error "File not used anymore."
2793 * lib/libdia.def : updated externals
2795 * app/interface.c : dropped filenames need to be
2796 converted from uri with Gtk+2.0
2798 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
2800 * RELEASE-PROCESS (new): a draft document about how to release. To
2801 be discussed. (already with some input from Hans Breuer)
2803 2002-05-12 Steffen Macke <sdteffen@web.de>
2805 * sheets/Makefile.am: re-added Misc sheet to make process
2807 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
2809 * objects/FS/function.c: Added comments to humungous list of menu
2810 items, to aid translators.
2812 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
2814 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
2816 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
2818 * app/interface.c (create_toolbox): Disallow shrinking beyond
2819 requested size. Fixes bug #59439, and confirms to GTK guidelines
2820 (see gtk_window_set_policy).
2821 (create_sheets): Removed now unnecessary set_usize call.
2823 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
2825 * lib/beziershape.c (remove_handles): Fixing removal of last
2826 segment. Undo of removal still hokey.
2828 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
2830 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
2832 * lib/beziershape.c (beziershape_init): Removed early call to
2833 beziershape_update_data where points aren't set yet.
2834 (beziershape_add_segment): Use segment 0 instead of overflowing
2835 points array with segment+1.
2836 (beziershape_remove_segment): Proper offset for fixing
2838 (remove_handles): Proper offset.
2840 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
2842 * objects/GRAFCET/action.c (action_update_data): Init x value of
2843 click point for call to connpointlist_adjust_count.
2845 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
2847 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
2848 setting to where values are inited.
2850 * lib/polyshape.c (polyshape_init): Removed call to
2851 polyshape_update_data that tried to use uninitialized data.
2853 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
2855 * app/sheets_dialog.c: Mass removal of //-style comments. The
2856 Irix compiler doesn't like them:( I do...
2858 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
2860 * app/render_libart.c (draw_string): Bail out when no GDK font is
2862 (set_font): Give error when font not found.
2863 (set_fillstyle): Intlized error msg.
2865 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
2866 modified when applied (and ok only does apply if apply is set
2867 sensitive). Fixes bug #75623.
2869 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
2871 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
2873 2002-05-05 Steffen Macke <sdteffen@web.de>
2875 * app/Makefile.am: added $(UNICODE_CFLAGS)
2877 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
2879 * app/commands.c (help_manual_callback): Check return value of
2882 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
2884 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
2887 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
2889 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
2891 * objects/UML/uml.c (uml_operation_read): Fix of UML default
2894 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
2896 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
2897 Added button to toggle diagram compression.
2899 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
2901 * lib/font.c: Support for loading extra kerning files, plus got
2902 rid of rounding errors. Bounding box mostly perfect for freetype
2904 (font_string_width): Fudge factor to get around nonlinearity of
2907 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
2909 * lib/font.c (font_string_width): YA font calculation scheme, with
2912 * objects/UML/class.c (umlclass_calculate_data): Uses the same
2913 font for drawing and calculating now.
2915 * configure.in: Added utime.h check.
2917 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
2918 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
2920 2002-04-26 Hans Breuer <hans@breuer.org>
2922 [ Instead of fixing about 70 occurances in 20 files
2923 where GTK_TALKS_UTF8_WE_DONT needed to be handled
2924 Dia on win32 from now on uses glib-2.0 and not
2925 only talks utf-8 with gtk-1.3 but also internally.
2926 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
2929 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
2930 #undef GTK_TALKS_UTF8_WE_DONT
2932 * */makefile.msc : changes to use glib-2.0 (still
2933 using gtk+1.3(win32-production)
2935 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
2936 adapt kevent->string handling, add <string.h>
2937 * app/render_gdk.c (get_text_width) : the length given
2938 is in chars, gdk_text_width() needs bytes
2940 * app/render_libart.c :
2941 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
2942 (could simplify the same way as done in render_gdk.c)
2944 * app/diagram_tree.c app/paginate_gdiprint.cpp
2946 * lib/prop_basic.c lib/prop_geomtypes.c
2947 lib/propdialgs.c lib/propobject.c :
2948 added <string.h> which is now removed from charconv.h
2950 * lib/charconv.h : optional use infrastructure from
2951 glib-2.0 -> only five direct function mapping left
2953 * lib/charconv.c : avoid to build this with glib-2.0
2955 * lib/font.c : no string conversion needed anymore
2956 when Dia and Gtk talk utf-8, also code adaptions
2957 for GLIB_CHECK_VERSION(2,0,0)
2959 * lib/libdia.def : removed charconv functions
2961 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
2962 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
2964 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
2965 removed GTK_TALKS_UTF8_WE_DONT
2967 * lib/text.c : finally(?) fixed cursor <place|move>ment
2968 for Umlauts. Also fixed char insertion, still wondering
2969 how this could ever work. Does realloc on Linux
2970 initialize the memory with zeros ?
2972 * objects/chronogram/chronoline_event.c
2973 objects/grafcet/boolequation.c :
2974 there is no uni_get_utf8 when building for glib-2.0.
2975 Replace with g_utf8_get_char() and g_utf8_next_char().
2977 * objects/uml/stereotype.c (bracketted_to_string) :
2978 simplify while adding code for glib-2.0 build
2980 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
2982 * app/diagram.h: Autosave field
2983 * app/diagram.c (diagram_set_modified): Sets autosave field.
2985 * objects/UML/usecase.c (usecase_update_data):
2986 * objects/flowchart/ellipse.c (ellipse_update_data):
2987 * objects/flowchart/parallelogram.c (pgram_update_data):
2988 * objects/flowchart/diamond.c (diamond_update_data):
2989 * objects/custom/custom_object.c (custom_update_data):
2990 * objects/UML/state.c (state_update_data):
2991 * objects/UML/small_package.c (smallpackage_update_data):
2992 * objects/UML/object.c (objet_update_data):
2993 * objects/UML/note.c (note_update_data):
2994 * objects/UML/node.c (node_update_data):
2995 * objects/UML/component.c (component_update_data):
2996 * objects/UML/classicon.c (classicon_update_data):
2997 * objects/UML/actor.c (actor_update_data):
2998 * objects/SADT/box.c (sadtbox_update_data):
2999 * objects/FS/function.c (function_update_data):
3000 All now update text boundaries from update_data.
3002 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
3005 2002-04-26 Hans Breuer <hans@breuer.org>
3007 * config.h.win32 : added VERSION definition here
3008 (and removed from makefile.msc's)
3010 * app/makefile.msc : added new files
3012 * app/app_procs.c (app_init): remove sheets_dialog_create()
3013 from start-up and ...
3015 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
3016 sheet_dialog here when it is really needed.
3017 #include "../lib/message.h", make sheets_dialog_create()
3018 return it's success or failing on (!custom_type_symbol).
3019 Although editing shapes is nice IMHO it isn't crucial enough
3020 to abort() Dia if it isn't possible.
3022 * app/sheet.h : adapt create_sheet_dialog() prototype
3024 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
3026 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
3027 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
3028 name space corrections for utime() and utim_buf #ifdef
3031 * lib/libdia.def : export new sheet functions
3033 * lib/makefile.msc : added new files
3035 * lib/render.c : don't put draw_bezier_with_arrows() in
3036 the DrawLineWithArrowsFunc slot
3038 * objects/custom/custom_object.c : #include <gmodule.h>
3039 and export 'custom_type' via G_MODULE_EXPORT
3041 * objects/uml/class_dialog.c : removed 'incompatible
3042 types' warnings. Some refactoring while making it fit
3043 on screen with 800x600 again.
3045 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
3047 * plug-ins/python/pydia-handle.h : extra parameter to
3048 PyDiaHandle_New to store the owner of the handle
3049 * plug-ins/python/pydia-handle.c : store handle owner
3050 on construction and use it in new method .connect()
3051 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
3052 adapt to changed prototype
3054 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
3056 * lib/text.c (text_calc_boundingbox): Will now return early if box
3059 * objects/flowchart/box.c (box_update_data): Now updates text
3060 width info from update_data.
3062 2002-04-23 Steffen Macke <sdteffen@web.de>
3064 * plug-ins/xfig/xfig-import.c: fixed text import
3066 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
3068 * app/export_png.c: Moved dialog functions to their own file.
3069 * app/dialogs.[ch]: New files with standard functions for creating
3070 small, transient dialogs (e.g. export options).
3071 * app/Makefile.am: Added dialogs.[ch]
3073 2002-04-19 Steffen Macke <sdteffen@web.de>
3075 * shapes/Misc/folder.*:
3076 * shapes/Misc/file.*:
3077 * shapes/Misc/Makefile.am:
3078 * shapes/Makefile.am:
3079 * sheets/Misc.sheet.in:
3080 * sheets/Makefile.am:
3081 * configure.in: added new Misc sheet containing filesystem shapes
3083 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
3085 * app/lineprops_area.c: Arrow selector in toolbox changed to use
3086 standard arrowdraw code. Line is thinner to make some arrowheads
3089 2002-04-18 Steffen Macke <sdteffen@web.de>
3091 * sheets/network.sheet.in:
3092 * shapes/network/telephone.shape:
3093 * shapes/network/Makefile.am: added telephone shape
3095 2002-04-16 Steffen Macke <sdteffen@web.de>
3097 * sheets/EML.sheet.in: commented out unavailable shapes
3099 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
3101 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
3102 variable assignment.
3104 2002-04-15 Steffen Macke <sdteffen@web.de>
3106 * plug-ins/dxf/dxf-import.c: text import works again
3107 * shapes/Pneumatic/Makefile.am: added compush shape
3108 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
3111 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
3113 * All these modifications are for the 'Sheets and Objects' dialog
3116 * app/pixmaps/line_break.xpm: new icon representing a line break.
3118 * app/pixmaps/n_a.xpm: new empty icon representing not available.
3120 * app/Makefile.am: added sheets_*.[ch] files to compile list.
3122 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
3124 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
3126 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
3128 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
3130 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
3132 * app/sheets_dialog_callbacks.h: [new file] support for " " "
3134 * app/interface.c: added 'interface_current_sheet_name' global to
3135 fill_sheet_wbox(); made fill_sheet_menu() non-static
3137 * app/interface.h: added extern declaration for aboves.
3139 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
3141 * app/sheets.h: [new file] declarations for backing store structures
3143 * lib/sheet.c: modification of new_sheet() parameters; introduction
3144 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
3145 changes to load_register_sheet().
3147 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
3148 added 'has_icon_on_sheet' flag to SheetObject structure; added
3149 'filename', 'scope', 'shadowing' fields to Sheet structure.
3151 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
3154 * lib/plug-isn.h: see above.
3156 * lib/object.c: added 'sheet.h' to include list; added several
3158 to detect objects which are not found on any sheet (for future use)
3159 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
3160 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
3162 * lib/object.h: added public declarations for above functions where
3165 * objects/custom/custom.c: made custom_object_load() non-static so we
3166 can load and interpret .shape files from the Sheets & Objects dialog
3168 * objects/custom/custom_object.c: made 'custom_type' non-static so
3169 we can differentiate between SVG shapes and other types.a
3171 2002-04-07 Hans Breuer <hans@breuer.org>
3173 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
3174 from 2002-01-22 to not destroy diagram->data->selected.
3175 Avoids to crash on Objects/Align/Vertical/Top
3177 * app/render_eps.c (draw_string) : un-const buffer
3178 It isn't at all const (g_malloc(), assignment, g_free()).
3179 Doesn't gcc catch such ?
3181 * lib/arrows.h : prototype calculate_arrow_point()
3183 * lib/font.c (font_get_suckfont) : no need to
3184 special case gdk_draw_string() with GTK_TALKS_UTF8,
3185 cause all the parameter differences are handled above
3187 * lib/libdia.def : updated externals
3189 * lib/makefile.msc : removed string_prerenderer, added render
3191 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
3192 is expected. [Sometimes it's good to read compiler warnings.]
3194 * objects/standard/image.c : simplified by use of g_strconcat()
3196 * plug-ins/python/makefile.msc : updated for Python 2.2
3198 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
3200 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
3201 directionality problem for zero-length line segments.
3203 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
3205 * app/diagram.c (diagram_ungroup_selected)
3206 (diagram_update_menu_sensitivity): Now allows ungrouping of
3207 several groups at once.
3209 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
3211 * lib/render.c, all renderers: Binary incompatibility, change to
3212 expandable renderops structure.
3214 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
3216 * objects/standard/Makefile.am:
3217 * objects/network/Makefile.am:
3218 * objects/UML/Makefile.am:
3219 * objects/ER/Makefile.am:
3220 * objects/FS/Makefile.am:
3221 * objects/flowchart/Makefile.am:
3222 * objects/custom/Makefile.am:
3223 * objects/GRAFCET/Makefile.am:
3224 * objects/chronogram/Makefile.am:
3225 * objects/SADT/Makefile.am:
3226 * plug-ins/cgm/Makefile.am:
3227 * plug-ins/pstricks/Makefile.am:
3228 * plug-ins/hpgl/Makefile.am:
3229 * plug-ins/wpg/Makefile.am:
3230 * plug-ins/svg/Makefile.am:
3231 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
3233 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
3235 * app/render_eps.c: Support for dumping TrueType fonts (taken from
3238 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
3240 * lib/render.c: New abstract super class for renderers.
3242 2002-03-07 Akira TAGOH <tagoh@redhat.com>
3244 * objects/ER/attribute.c (attribute_save): save a font property.
3245 (attribute_load): load a font property, and if can't load it, it's
3248 * objects/ER/entity.c (entity_save): save a font property.
3249 (entity_load): load a font property, and if can't load it, it's
3252 * objects/ER/relationship.c (relationship_save): save a font property.
3253 (relationship_load): load a font property, and if can't load it, it's
3256 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
3258 (umlclass_save): save the font and the font size properties.
3259 (umlclass_load): load the font and the font size properties.
3261 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
3263 * lib/string_prerenderer.[ch] (REMOVED):
3265 * lib/diagramdata.c:
3267 * app/render_eps.c: got rid of the string-specific string
3268 prerenderer, transitioned its functionality towards Lars'
3271 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
3273 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
3274 may need to rerun aclocal.
3276 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
3278 * lib/font.c: First attempt at Unicodeness for Freetype.
3280 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
3282 * lib/font.c (font_string_width): Fixed font_string_width for
3283 freetype. BB is now almost right.
3285 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
3288 * app/paginate_psprint.c (paginate_psprint):
3290 * app/render_eps.c: Support for dumping postscript fonts into
3291 postscript files with freetype. Fairly primitive, but works.
3292 Unicode version may have problems.
3294 2002-02-28 Akira TAGOH <tagoh@redhat.com>
3296 * objects/UML/class_dialog.c (class_read_from_dialog)
3297 (class_fill_in_dialog), (class_create_page): add the font selector and
3298 the font size selector.
3300 * objects/UML/class.c (umlclass_draw): uses each font_height.
3301 (umlclass_calculate_data): ditto.
3302 (fill_in_fontdata): add initial value of new font_height.
3303 (umlclass_copy): add new font_height.
3305 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
3307 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
3309 * lib/font.c: calculate font metrics properly and stop guessing at
3312 2002-02-28 Akira TAGOH <tagoh@redhat.com>
3314 * configure.in: changed gtk_advancement value to dia_talks_utf8.
3315 right now Dia is working with UTF-8 internally. it means Dia probably
3316 support most languages also including the languages which heretofore
3317 didn't work correctly.
3319 2002-02-26 Akira TAGOH <tagoh@redhat.com>
3321 * objects/FS/function.c: add related text properties.
3322 (function_get_props), (function_set_props): add handling attribute.
3324 * objects/FS/flow.c: add related text properties.
3325 (flow_get_props), (flow_set_props): add handling attribute.
3327 * objects/FS/flow-ortho.c: add related text properties.
3328 (orthflow_set_props), (orthflow_get_props): add handling attribute.
3330 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
3332 * objects/ER/entity.c: ditto.
3334 * objects/ER/attribute.c: ditto.
3336 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
3338 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
3340 * autogen.sh: add a check for missing intltoolize.
3342 2002-02-20 Akira TAGOH <tagoh@redhat.com>
3344 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
3345 charcode, it was registered the duplicate item to HashTable. fix.
3347 * app/render_gnomeprint.c (get_width_string): add new function.
3348 (draw_string): fix non-multibyte specific code.
3350 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
3352 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
3354 * lib/font.c: do not try to search paths that do not begin with
3355 '/', like X Font Server addresses.
3357 * objects/UML/message.c (message_draw): free mname when not
3358 message->text but CREATE or DESTROY.
3360 * objects/UML/uml.h:
3361 * objects/UML/uml.c:
3362 * objects/UML/class_dialog.c: added code to handle a stereotype
3363 attribute for operations.
3365 2002-02-19 Akira TAGOH <tagoh@redhat.com>
3367 * lib/Makefile.am: add LIBART_CFLAGS.
3369 2002-02-15 Hans Breuer <hans@breuer.org>
3371 * lib/font.c (font_get_suck_font): the black and white pixel values
3372 need to be taken from a 1 bit colormap rather than the default colormap.
3373 (fixed again, last time was 2000-05-26)
3375 Also handle the case where GTK_TALKS_UTF8 and expects all strings
3376 passed in to be in this encoding.
3378 * lib/libdia.def : export suck_font_free()
3380 * lib/text.c (text_draw) : avoid circular dependency to ../app
3381 at least for the !USE_XIM case, where it is unnecessary.
3383 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
3385 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
3387 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
3388 * sheets/Circuit.sheet.in: added new shape microphone
3389 * shapes/Circuit/speaker_de.shape: Added a connection point.
3391 2002-02-13 Akira TAGOH <tagoh@redhat.com>
3393 * app/render_libart.c (draw_string): fixed build issue for Win32.
3395 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
3398 * configure.in: fixed testing gtk_advancement.
3400 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
3402 2002-02-12 Akira TAGOH <tagoh@redhat.com>
3404 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
3407 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
3409 * app/group.c (group_copy): Made new object properly initialized
3412 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
3414 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
3416 2002-02-10 Akira TAGOH <tagoh@redhat.com>
3418 * lib/text.c (text_draw): fixed XIM transaction.
3420 * app/interface.c (create_display_shell): add signal for
3423 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
3425 (set_input_dialog): remove.
3426 (ddisplay_canvas_events): remove XIM transaction. it can't transact
3427 correctly on this function.
3429 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
3432 * app/export_png.c: Added checks for interactivity (maybe this
3433 should be a hook after all?).
3435 * app/filedlg.c (file_export_callback): Made export dialog add
3436 suffix when reopened.
3438 * app/export_png.c: Added dialog asking for export size.
3440 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
3442 * lib/widgets.c: Fixed font reselection problem and first font
3445 * objects/UML/actor.c (actor_update_data): Changed to have
3446 connection points below text.
3448 2002-02-08 Akira TAGOH <tagoh@redhat.com>
3450 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
3453 2002-02-07 Akira TAGOH <tagoh@redhat.com>
3455 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
3456 strings which is given.
3457 (suck_font): remove. it's any longer needed.
3459 * app/render_libart.c (set_font): don't get suckfont.
3460 (draw_string): get suckfont only which is needed for now.
3462 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
3464 * lib/text.c: Fixes for misunderstood width functions.
3466 2002-02-05 Hans Breuer <hans@breuer.org>
3468 * lib/dia_xml.c : use g_strconcat() instead of
3469 malloc, strcpy, strcat dance
3470 * app/properties.c : same here and plug memory leak
3471 (gtk functions don't eat strings)
3473 * objects/UML/message.c : there is no g_sprintf()
3474 use g_strdup_printf() instead ...
3476 2002-02-05 Akira TAGOH <tagoh@redhat.com>
3478 * lib/message.c (gtk_message_internal): doesn't need to convert to
3481 * app/render_libart.c (draw_string): fixed transaction for UTF-8
3483 (get_text_width): ditto.
3485 * app/Makefile.am (EXTRA_DIST):
3486 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
3488 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
3489 This function needs ifdef HAVE_FREETYPE because don't use it for
3492 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
3494 * NEWS: updated with the new dependencies.
3496 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
3498 * objects/UML/class.h:
3499 * objects/UML/class.c:
3500 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
3501 property using a GtkMenu. Options are Undefined, In, Out, In & Out
3503 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
3505 * app/render_libart.c: Slow but working libart freetype renderer,
3508 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
3510 * app/render_gdk.c (draw_string): Fixed gc_function bug.
3512 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
3514 * lib/font.c (freetype_render_string):
3517 * app/render_gdk.h: Changed freetype_render_string to use
3518 callback. Rendering is broken.
3520 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
3522 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
3524 * objects/UML/uml.h:
3525 * objects/UML/uml.c: added UMLInheritanceType and isQuery
3526 (constant) UML Operation attributes. UMLInheritanceType is either
3527 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
3529 * objects/UML/class.h:
3530 * objects/UML/class.c:
3531 * objetcs/UML/class_dialog.c: added code to handle new
3532 UMLOperation attributes via a GtkMenu and a checkbox.
3534 2002-02-03 Akira TAGOH <tagoh@redhat.com>
3536 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
3537 several client doesn't work with previous codes.
3539 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
3541 * lib/font.c (freetype_render_string): Kerning. Very few fonts
3544 2002-02-02 Akira TAGOH <tagoh@redhat.com>
3546 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
3547 when doing the operation like invert the objects after active view is
3548 destroyed. when changes focus, it needs to set active_display.
3550 * app/layer_dialog.c (dia_layer_update_from_layer):
3551 (layer_dialog_edit_layer): need to convert to locale encoding
3552 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
3553 (edit_layer_ok_callback):
3554 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
3556 * lib/diagramdata.c (new_diagram_data): ditto.
3558 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
3560 * lib/diagramdata.c (new_layer): use utfchar instead of char for
3563 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
3564 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
3565 it's needed for now. also this function needs prototype declaration.
3567 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
3569 * lib/widgets.c: Style now functional on font selector. Some leak
3570 possible, but doesn't show up under stress test.
3572 2002-01-31 Akira TAGOH <tagoh@redhat.com>
3574 * app/plugin-manager.c (clist_select_row): name and description needs to
3575 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
3576 (get_plugin_manager): ditto.
3578 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
3580 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
3583 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
3584 when prop->string_data is NULL.
3586 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
3589 * lib/widgets.h: New font selector separating font and style.
3590 Style not functional yet.
3592 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
3595 * app/render_gdk.c (draw_string): More freetype support, now
3596 renders text. Still broken is font selection and exporting.
3598 2002-01-30 Akira TAGOH <tagoh@redhat.com>
3600 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
3603 * objects/chronogram/chronoline.c (chronoline_create): ditto.
3605 * objects/UML/usecase.c (usecase_create): ditto.
3607 * objects/UML/state.c (state_create): ditto.
3609 * objects/UML/object.c (objet_create): ditto.
3611 * objects/UML/node.c (node_create): ditto.
3613 * objects/UML/message.c (message_create): ditto.
3615 * objects/UML/component.c (component_create): ditto.
3617 * objects/UML/classicon.c (classicon_create): ditto.
3619 * objects/UML/actor.c (actor_create): ditto.
3621 * objects/SADT/box.c (sadtbox_create): ditto.
3623 * objects/SADT/annotation.c (annotation_create): ditto.
3625 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
3627 * objects/GRAFCET/step.c (STEP_FONT):
3628 * (step_create): ditto.
3630 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
3632 * objects/GRAFCET/action.c (ACTION_FONT):
3633 (action_create): ditto.
3635 * objects/FS/function.c (function_create): ditto.
3637 * objects/FS/flow.c (flow_create):
3639 (flow_apply_defaults): ditto.
3641 * objects/FS/flow-poly.c (flow_create):
3643 (flow_apply_defaults): ditto.
3645 * objects/FS/flow-ortho.c (orthflow_create):
3647 (orthflow_apply_defaults): ditto.
3649 * objects/ER/relationship.c: use utfchar instead of char for structure.
3650 (relationship_create): name needs to convert to UTF-8.
3652 * objects/ER/attribute.c: use utfchar instead of char for structure.
3653 (attribute_create): name needs to convert to UTF-8.
3655 * objects/ER/entity.c: use utfchar instead of char for structure.
3656 (entity_create): name needs to convert to UTF-8.
3658 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
3659 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
3660 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
3661 items. if GTK_TALKS_UTF8 isn't defined.
3663 2002-01-29 Akira TAGOH <tagoh@redhat.com>
3665 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
3666 it was my careless mistake...
3668 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
3669 a font name, because there are strings which isn't shown by "Courier".
3670 We need to consider a way to feel free to choose a font at runtime.
3672 * lib/render_object.c (render_object_load): ditto.
3674 * lib/text.c (data_text): ditto.
3676 * objects/EML/instantiation.c (instantiation_create): ditto.
3678 * objects/EML/interaction-ortho.c (interaction_ortho_create):
3679 (interaction_ortho_load): ditto.
3681 * objects/EML/interaction.c (interaction_create):
3682 (interaction_load): ditto.
3684 * objects/EML/process.c (fill_in_fontdata): ditto.
3686 * objects/ER/attribute.c (attribute_create):
3687 (attribute_load): ditto.
3689 * objects/ER/entity.c (entity_create):
3690 (entity_load): ditto.
3692 * objects/ER/relationship.c (relationship_create):
3693 (relationship_load): ditto.
3695 * objects/UML/association.c (association_create):
3696 (association_load): ditto.
3698 * objects/UML/class.c (fill_in_fontdata): ditto.
3700 * objects/UML/constraint.c (constraint_create): ditto.
3702 * objects/UML/dependency.c (dependency_create): ditto.
3704 * objects/UML/generalization.c (generalization_create): ditto.
3706 * objects/UML/implements.c (implements_create): ditto.
3708 * objects/UML/large_package.c (largepackage_create): ditto.
3710 * objects/UML/note.c (note_create): ditto.
3712 * objects/UML/realizes.c (realizes_create): ditto.
3714 * objects/UML/small_package.c (smallpackage_create): ditto.
3716 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
3718 * objects/custom/custom_object.c (custom_create): ditto.
3720 * objects/network/antenna.c (render_to_store): ditto.
3722 * objects/network/computer.c (render_to_store): ditto.
3724 * objects/network/disc.c (render_to_store): ditto.
3726 * objects/network/flash.c (render_to_store): ditto.
3728 * objects/network/hub.c (render_to_store): ditto.
3730 * objects/network/modem.c (render_to_store): ditto.
3732 * objects/network/modularswitch.c (render_to_store): ditto.
3734 * objects/network/monitor.c (render_to_store): ditto.
3736 * objects/network/printer.c (render_to_store): ditto.
3738 * objects/network/rj45plug.c (render_to_store): ditto.
3740 * objects/network/scead-plug.c (render_to_store): ditto.
3742 * objects/standard/textobj.c (textobj_load): ditto.
3744 * objects/sybase/client.c (render_to_store): ditto.
3746 * objects/sybase/dataserver.c (render_to_store): ditto.
3748 * objects/sybase/ltm.c (render_to_store): ditto.
3750 * objects/sybase/repserver.c (render_to_store): ditto.
3752 * objects/sybase/rsm.c (render_to_store): ditto.
3754 * objects/sybase/stableq.c (render_to_store): ditto.
3756 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
3758 * objects/UML/uml.h (UML_STEREOTYPE_START):
3759 (UML_STEREOTYPE_END): changes default strings.
3761 2002-01-28 Akira TAGOH <tagoh@redhat.com>
3763 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
3764 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
3765 which is given to arguments isn't UTF-8. so don't need to convert it.
3766 if GTK+ handle UTF-8, also don't need to convert it.
3768 (bracketted_to_string): fixed transaction for UTF-8 support.
3769 also start/end bracket is not necessarily 1 character. so that when use
3770 strend(), it doesn't work correctly.
3771 (string_to_stereotype): use utfchar instead of char.
3772 (remove_stereotype_from_string): ditto.
3773 (stereotype_to_string): ditto.
3775 * objects/UML/stereotype.h: ditto.
3777 * objects/UML/message.c: use utfchar instead of char for structure.
3778 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
3780 * objects/UML/small_package.c: use utfchar instead of char for structure.
3782 * objects/UML/realizes.c: ditto.
3784 * objects/UML/object.c: ditto.
3786 * objects/UML/large_package.c: ditto.
3788 * objects/UML/implements.c: ditto.
3790 * objects/UML/generalization.c: ditto.
3792 * objects/UML/dependency.c: ditto.
3794 * objects/UML/constraint.c: ditto.
3796 * objects/UML/component.c: ditto.
3798 * objects/UML/class_dialog.c (attributes_get_current_values):
3799 (attributes_list_new_callback, attributes_fill_in_dialog):
3800 (parameters_set_values, parameters_get_values):
3801 (parameters_get_current_values, parameters_list_new_callback):
3802 (operations_set_values, operations_get_values):
3803 (operations_get_current_values, operations_list_new_callback):
3804 (operations_fill_in_dialog, templates_set_values):
3805 (templates_get_values, templates_get_current_values):
3806 (templates_list_new_callback, templates_fill_in_dialog):
3807 fixed transaction for UTF-8 support.
3809 2002-01-27 Akira TAGOH <tagoh@redhat.com>
3811 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
3813 * objects/UML/class_dialog.c (class_read_from_dialog):
3814 (class_fill_in_dialog):
3815 (attributes_get_values): ditto.
3817 * objects/UML/actor.c (actor_create): ditto.
3819 * objects/UML/class.c (umlclass_calculate_data): ditto.
3821 * objects/UML/association.c (association_apply_properties):
3822 (fill_in_dialog): ditto.
3824 * objects/UML/uml.c (uml_get_attribute_string):
3825 (uml_get_operation_string):
3826 (uml_get_parameter_string):
3827 (uml_get_formalparameter_string): use utfchar instead of char.
3829 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
3832 * objects/UML/class.h: use utfchar instead of char.
3834 * lib/dia_xml.c (data_add_string): ditto.
3836 * lib/text.c (text_insert_char): fixed characters# calculation
3837 when includes multibytes character in strings.
3839 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
3841 Patch from Richard Rowell <rwrowell@bellsouth.net>:
3843 * app/lineprops_area.c:
3846 * lib/widgets.c: added crow foot arrow and cross arrow
3848 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
3850 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
3852 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
3854 * po/update.pl (REMOVED):
3855 * po/update.sh (REMOVED):
3856 * xml-i18n-merge.in.kg (REMOVED):
3857 * xml-i18n-update.in.kg (REMOVED):
3858 * sheets/Makefile.am:
3861 * configure.in: converted from xml-i18n-tools to intltools
3863 This looks like it fixes the build bugs of the snapshot tarballs,
3864 and it supersedes #69611.
3866 2002-01-25 Akira TAGOH <tagoh@redhat.com>
3868 * lib/text.c (text_insert_char): fixed characters# calculation.
3869 it's not string length.
3871 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
3872 is defined, needs to convert a description to UTF-8.
3874 * app/render_gdk.c (get_text_width): fixed transaction for
3875 UTF-8 support. also should uses gdk_text_width_wc() instead
3876 of gdk_text_width().
3878 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
3879 is defined, needs to convert to locale encoding for display.
3880 Also use utfchar instead of char for argument.
3882 2002-01-24 Hans Breuer <hans@breuer.org>
3884 * app/commands.c(edit_paste_callback and more) :
3885 call diagram_modified(ddisp->diagram) to fix #68083
3886 (help_menu_callback) : plug a DIR leak
3888 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
3889 GTK_TALKS_UTF8_WE_DONT
3891 * app/render_gdk.c(get_text_with) : it's a bad idea to use
3892 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
3893 gdk_text_width(). The length value is still questionable ...
3895 * lib/charconv.c : use functions already available in early
3896 GLIB-1.3 days whiches API hasn't changed since, to avoid
3897 version problems with the win32 build
3899 * lib/font.c : finally fix #58045 and #68208
3901 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
3903 2002-01-24 Akira TAGOH <tagoh@redhat.com>
3905 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
3906 no strings, fixed transaction.
3908 * lib/charconv.h: fixed typo.
3910 * app/menus.c: fixed typo.
3912 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
3914 * objects/UML/object.c: attrib's type uses utfchar instead of char.
3916 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
3918 * lib/text.c (text_create_change): use unichar instead of char.
3920 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
3921 use utfchar instead of char.
3923 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
3926 * lib/charconv.c (charconv_utf8_get_char): add new function.
3928 2002-01-23 Akira TAGOH <tagoh@redhat.com>
3930 * lib/text.c (text_delete_forward, text_delete_backward,
3931 text_split_line): fixed transaction for UTF-8 support.
3933 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
3934 strlen[] has string length for UTF-8, so has to use alloclen[].
3938 * .cvsignore: add dia.pot.
3940 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
3942 * configure.in: Added "sk" to ALL_LINGUAS.
3944 2002-01-22 Akira TAGOH <tagoh@redhat.com>
3946 * lib/text.c (text_set_string, new_text, text_copy,
3947 text_get_string_copy, text_join_lines): use utfchar instead of gchar
3950 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
3953 * lib/charconv.c (charconv_utf8_strchr): add new function.
3955 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
3957 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
3959 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
3960 strings to the appropriate encoding.
3962 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
3964 * app/object_ops.c (object_list_align_[hv]): Leak fix.
3966 * lib/Makefile.am (INCLUDES): Added debug flags.
3968 * app/object_ops.c: Fixed ordering problem of align equi-distant &
3971 2002-01-21 Akira TAGOH <tagoh@redhat.com>
3973 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
3976 * objects/GRAFCET/boolequation.c: fixed invalid comment.
3978 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
3979 when defined UNICODE_WORK_IN_PROGRESS.
3981 * lib/dia_xml.c (data_add_string): fixed typo.
3983 2002-01-20 Akira TAGOH <tagoh@redhat.com>
3985 * configure.in: fixed test gtk_advancement.
3987 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
3989 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
3992 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
3994 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
3995 tool tips, preferences, and arbitrarily long ~/.dia/history
3997 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
3998 removed 'Open Recent'; added new separators for recent documents on
4001 * app/interface.[ch] (interface_get_toolbox_shell): new function
4003 * app/diagram.c: added new parameter to recent_file_history_add() call
4005 * app/preferences.[ch]: added new 'Recent documents list size'
4008 2002-01-18 Akira TAGOH <tagoh@redhat.com>
4010 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
4011 if it failed, should be used gdk_font_load ().
4013 * lib/font.c (font_data): added the font entries for CJK.
4015 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
4017 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
4019 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
4021 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
4023 Patch from Martin Cracauer <cracauer@cons.org>:
4025 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
4028 2002-01-01 Hans Breuer <hans@breuer.org>
4030 * app/command.c : optional use GDI printing on windoze
4032 * app/preferences.[hc] : add option 'prefer_psprint' to
4033 select the print engine to use (could be used for Dia/Gnome
4036 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
4037 wmf plug-in with the common win32 print api. Now printing
4038 should work almost as expected from a windows program :-)
4040 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
4041 to .edit_delete to avoid clashes with C++
4043 * app/makefile.msc : updated for GDI printing
4045 * plug-ins/wmf/wmf.cpp : some small modifications to support
4046 GDI printing. Also swap R and B channel in draw_image()
4048 * app/makefile.am : added windows only files to EXTRA_DIST
4050 * objects/uml/class.c(umlclass_set_props) : force recalculation
4051 when applying properties
4053 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
4054 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
4055 many incompatible changes (and would force a gtk update)
4057 * objects/makefile.msc : don't build C-Objects which are
4058 already available as 'pure shape'
4060 * plug-ins/makefile.msc : remove diaimport from build. It was
4061 only available via mailing-list and is broken since the
4065 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
4067 * app/preferences.[hc] : tweaked preferences.c to make
4068 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
4069 added some more DiagramTree prefererences and their own
4072 * app/diagram_tree.[hc] : allow to sort by object type or name
4073 and hide by type ...
4074 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
4075 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
4077 * app/diagram_tree_window.c : handle hidden types and window
4080 2001-12-20 Hans Breuer <hans@breuer.org>
4082 * plug-ins/python/Makefile.am : patch from Peter Moulder
4083 <pmoulder@csse.monash.edu.au> to make the python plug-in
4084 compile on *nix too.
4086 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
4088 Patch from Alan <horkana@tcd.ie>:
4090 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
4092 2001-11-20 Hans Breuer <hans@breuer.org>
4094 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
4096 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
4098 * app/diagram_tree.[hc] : Added new functions and types for
4099 sorting diagram and objects, and attaching the popup menus.
4101 * app/preferences.h: Added more diagram tree preferences, using a
4102 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
4103 height and width of the diagram tree window and the default sort
4104 orders for diagrams and objects.
4106 * app/preferences.c (prefs_data): Added new entries for the new
4107 diagram tree preferences.
4109 * app/preferences.c (prefs_tabs): New tab for diagram tree
4112 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
4113 * app/diagram_tree_window.c (diagram_tree_window_new):
4114 * app/interface.c (create_tree_window): The diagram tree window is
4115 initialised using the DiagramTreeConfig part of prefs.
4118 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
4120 * app/diagram_tree_menu.[hc]: New files. Functions to create the
4121 diagram tree popup menus.
4123 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
4124 the diagram tree popup menus.
4126 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
4129 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
4131 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
4132 double-clicking a diagram tree node raises the diagram window
4133 to the foreground (and, if a object node was clicked, selects the
4134 object in the diagram).
4136 * app/diagram_tree.c (select_tree_widget): selecting an object
4137 node with single click simply updates it (no raise).
4139 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
4140 These changes make the diagram tree lazy: it is not created unless
4141 the diagram tree window is requested.
4143 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
4144 function for creating the tree window.
4146 * app/interface.c (create_tree_window): call
4147 create_diagram_tree_window() instead of diagram_window().
4149 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
4150 (diagram_tree_update, diagram_tree_update_name)
4151 (diagram_tree_add_object, diagram_tree_add_objects)
4152 (diagram_tree_remove_object, diagram_tree_remove_objects)
4153 (diagram_tree_update_object): accept a NULL tree as a nominal
4154 argument (and do nothing in this case!), so that the diagram tree
4155 is not initialised if not used.
4157 * app/diagram_tree_window.c (diagram_tree): do not create the
4158 diagram tree until diagram_window() or diagtree_show_callback()
4161 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
4162 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
4164 * app/diagram_tree_window.[hc] : (new files) implementation of
4165 the diagram tree window, a container for a diagram tree. [Removed
4166 the horizontal scroll bar glitch by disableing it]
4168 * app/diagram_tree.[hc] : (new files) implementation of the
4169 diagram tree widget. [Don't rely on the layers GPtrArray to be
4170 NULL terminated, but use its ->len field]
4172 * app/Makefile.am (dia_core_files): added new files
4173 diagram_tree.[hc] and diagram_tree_window.[hc]
4175 * app/interface.[hc] : (create_tree_window): this function
4176 creates the new diagram tree window widget
4178 * app/undo.c (delete_objects_apply) (delete_objects_revert)
4179 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
4180 (ungroup_objects_apply) (ungroup_objects_revert):
4181 every time that an undoable command modifies a diagram
4182 adding/removing/(un)grouping objects, a diagram_tree_something() is
4183 invoked to keep the diagram tree window in sync
4185 * app/properties.c (properties_apply): call to
4186 diagram_object_modified(), which updates the diagram tree window
4187 when the properties of an object are modified
4189 * app/preferences.[hc] : new "show_diagram_tree" configuration option
4190 (whether the diagram tree window should be shown on dia startup)
4192 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
4194 * app/diagram.h (diagram_object_modified): callback notifying of a
4195 diagram object modification
4197 * app/diagram.c (diagram_load_into): added call to
4198 diagram_tree_add() to add newly loaded diagrams to the diagram
4200 (diagram_destroy): call to diagram_tree_remove() to remove a
4201 destroyed diagram from the diagram tree window
4202 (diagram_add_object): call to diagram_tree_add_object() to add an
4203 object to the diagram tree window
4204 (diagram_add_object_list): as above, but with an object list
4205 (diagram_selected_break_external): deletion of objects from the
4206 diagram is detected here, and diagram_tree_remove_object() is
4207 invoked to remove the object from the diagram tree window (it
4208 would be nice to have a diagram_remove_object() in the Diagram
4210 (diagram_set_filename): update the diagram tree window when a
4211 diagram's filename changes
4213 * app/commands.c (file_new_callback): added call to
4214 diagram_tree_add() to add newly created diagrams to the diagram
4217 * app/app_procs.c (app_init): added call to create_tree_window()
4219 * app/makefile.msc : updated
4221 2001-10-28 Hans Breuer <hans@breuer.org>
4223 * app/preferences.h (DiaPreferences):
4224 * app/preferences.c (prefs_data): new "show_diagram_tree"
4225 configuration option (whether the diagram tree window should be
4226 shown on dia startup)
4228 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
4229 entry (both for GNOME and gtk)
4231 * app/diagram.h (diagram_object_modified): callback notifying of a
4232 diagram object modification
4234 * app/diagram.c (diagram_load_into): added call to
4235 diagram_tree_add() to add newly loaded diagrams to the diagram
4237 (diagram_destroy): call to diagram_tree_remove() to remove a
4238 destroyed diagram from the diagram tree window
4239 (diagram_add_object): call to diagram_tree_add_object() to add an
4240 object to the diagram tree window
4241 (diagram_add_object_list): as above, but with an object list
4242 (diagram_selected_break_external): deletion of objects from the
4243 diagram is detected here, and diagram_tree_remove_object() is
4244 invoked to remove the object from the diagram tree window (it
4245 would be nice to have a diagram_remove_object() in the Diagram
4247 (diagram_set_filename): update the diagram tree window when a
4248 diagram's filename changes
4250 * app/commands.c (file_new_callback): added call to
4251 diagram_tree_add() to add newly created diagrams to the diagram
4254 * app/app_procs.c (app_init): added call to create_tree_window()
4256 2001-10-28 Hans Breuer <hans@breuer.org>
4258 * plug-ins/python/pydia-property.c : apparently I missed
4259 to commit this last time. Now it has some more SetAttr
4260 support (apply from property)
4262 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
4264 * plug-ins/python/pydia-text.[ch] : new files
4266 2001-10-14 Hans Breuer <hans@breuer.org>
4268 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
4269 strings. Use g_strdup() for these.
4271 libxml2 does not produce 'any extra indentation when saving a tree'
4272 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
4273 libxml(1). To get human readable XML some extra tweaking is required.
4274 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
4275 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
4276 * app/preferences.[ch] : initialize 'pretty_formated_xml'
4278 * lib/libdia.def : updated externals
4280 * lib/properties.h : add prototype for prop_list_from_single ()
4282 * plug-ins/makefile.msc : build metapost plug-in
4284 * plug-ins/metapost/render_metapost.c : msvc does not like
4285 switch labels without operation 'default: }'. Added a noop.
4287 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
4288 * plug-ins/python/diamodule.c : added PyDiaText
4289 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
4290 Although the python plug-in does not use libxml at all, the
4291 headers are required to use the lib/prop*.h headers
4293 * plug-ins/python/pydia-diagramdata.c : added wrappers for
4294 update_extents and get_sorted_selected (should I duplicate
4295 more functions from PyDiaDiagram or should they be moved?)
4297 * plug-ins/python/pydia-properties.c : allow to set (some) properties
4298 through the dictionary api
4299 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
4300 * plug-ins/python/pydia-property.c : implement it (currently only
4301 string properties can be set)
4303 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
4304 Quoting myself: 'Still not convinced that this is better than an
4305 integral property->type and some casting ...
4306 It is trading a straightforward 40 lines switch statement to
4307 this nice 'type safe' function mapping (about 125 lines)'
4308 (But now it works again, better than changing the News file :)
4310 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
4312 patch from <robert.young@dsto.defence.gov.au>:
4313 * objects/UML/component.c: remember to set font in UML component
4314 object (fixes #62132)
4316 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
4318 * plug-ins/metapost/metapost.c:
4319 * plug-ins/metapost/Makefile.am:
4320 * plug-ins/metapost/render_metapost.c:
4321 * plug-ins/metapost/render_metapost.h:
4322 Metapost renderer from Chris Sperandio
4324 2001-09-14 Hans Breuer <hans@breuer.org>
4326 * app/render_gdk.c : reflect the fact, that GTK already talks
4327 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
4330 * app/render_libart.c : trying to fix #58045 but it appears
4331 to be an Gdk/win32, too.
4333 * lib/charconv.c : handle utf8 conversion with the help of
4334 glib-1.3 even in the !HAVE_UNICODE case.
4336 * lib/dia_xml.c : reduce complaing about missing encoding, by
4337 detecting if the default (utf8) would break the file.
4339 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
4341 * lib/charconv.c: (get_local_charset): at least please try to not
4342 silently change the logic, while avoiding crashes.
4344 * lib/font.c: (suck_font): put a #error, we have a nasty something
4345 to fix there before we switch to Gtk 2.0.
4347 2001-09-09 Hans Breuer <hans@breuer.org>
4349 * **/makefile.mingw : Approach to compile Dia with mingw.
4350 Compiling mostly works but running does not (yet) ...
4353 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
4354 Apparently mingw needs it too.
4355 - enable 'normalization' of a null verctor. Otherwise the beziergon
4356 bounding box calculation would be broken at least with msvc. What's
4357 the mathematical correct result of 0.0/0.0 ?
4359 * lib/dia_xml.c : isinf() for mingw too.
4361 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
4364 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
4367 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
4369 * lib/libdia.def : updated externals. Apparently mingw needs
4370 them to produce the right mangling.
4372 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
4375 2001-09-08 Wang Jian <lark@linux.net.cn>
4377 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
4379 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
4381 * lib/dia_xml_libxml.h:
4382 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
4383 libxml1's code, to rework the output file before it gets committed
4384 to disk. This is rubbish, and will be removed when libxml2
4385 switches from discouraged to mandatory.
4386 All in all, this fixes #60152.
4389 * lib/charconv.c: (charconv_unichar_to_utf8):
4390 made the type of the input parameter explicitly an unsigned long.
4392 * configure.in: Added a check for libz (we must now include it
4393 explicitly, for xmlDiaSaveFile).
4395 * app/load_save.c: (diagram_data_save):
4396 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
4397 (dia_pluginrc_write):
4398 * plug-ins/shape/shape-export.c: (new_shape_renderer),
4399 (end_render), (draw_string):
4400 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
4403 Made sure we always write UTF-8 XML files, and through
4406 * NEWS: documented that fact.
4408 2001-09-07 James Henstridge <james@daa.com.au>
4410 * configure.in (found_libxml): refactor the check for libxml a
4411 little so that it handles finding both libxml1 and 2 better.
4413 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
4415 * app/app_procs.c: removed a spurious } which caused a compilation
4416 error in the (!HAVE_GNOME && HAVE_POPT_H) case
4418 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
4419 don't know what ANSI X3.4-1968 is. I didn't know until this day,
4420 but it's just plain old ASCII. Added a check to shield the poor
4423 Patches from <robert.young@dsto.defence.gov.au>:
4425 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
4426 width and height of text before calculating bounds. Fixes #59928
4428 * app/preferences.c: Moved grid related items into Grid Tab.
4430 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
4432 * app/interface.c: (create_zoom_widget): connected one more signal
4433 to the Zoom selector combo's list. Fixes #59879.
4435 * app/app_procs.[ch]: (app_init) (do_convert)
4436 (build_output_file_name): brought back into the main executable
4437 the rare useful bits of the ill-fated diaconv. This means we have
4438 one new feature : --export-to-format (-t), which should make
4439 writing conversion scripts easier, and a crude implementation of
4440 -t and -e for the poptless argument parsing, which means the Win32
4441 port should be able to take advantage of it (that should make
4442 resolving #58197 possible).
4444 * app/diaconv.c: kept the poor duck compiling (but that's about
4447 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
4450 * NEWS: updated about the new feature above, and documented the
4451 "missing encoding specification" complaint.
4453 2001-09-01 Abel Cheung <maddog@linux.org.hk>
4455 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
4457 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
4459 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
4462 2001-09-01 James Henstridge <james@daa.com.au>
4464 * */Makefile.am: various changes to include missing files, and fix
4465 sheets dir to handle building with builddir != srcdir.
4467 * autogen.sh: unconditionally pass the --enable-maintainer-mode
4468 and --enable-db2html flags so that builds from CVS work correctly.
4470 * configure.in: increment version number. Also add an
4471 --enable-db2html flag. Without the flag, db2html won't be run (if
4472 the flag is passed and db2html is not present, do nothing).
4474 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
4476 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
4477 even compiled. It's really too bad there is no lint tool easily
4478 available (or a more cautious, pedandic, paranoid and verbose
4479 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
4481 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
4484 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
4485 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
4487 * app/menu.c: added ellipsis(...) to diagram properties menu item.
4488 * app/dia-props.c: diagram properties dialog contents did not
4489 represent current diagram settings.
4490 * app/dia-props.[ch]:
4491 * app/display.c: diagram properties contents now follows currently
4493 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
4495 * AUTHORS: added Robert Young.
4497 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
4499 * app/modify_tool.c: (modify_button_release): Patch from
4500 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
4501 #59090: if selection dragging was released outside of the window,
4502 artifacts of the selection box remained.
4504 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
4506 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
4508 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
4511 * sheets/Makefile.am: prepared the terrain for the Version of
4512 xml-i18n-tools Which Comes After 0.9 (and which will feature at
4513 last a sane behaviour with XML files). Some reasonible delay
4514 before enforcing that version *will* be given.
4516 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
4518 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
4519 becomes a nonexistent symbol.
4521 2001-08-18 Hans Breuer <hans@breuer.org>
4523 * app/app_procs.c : made it compile without ENABLE_NLS
4525 * app/diap_callbacks.c : strcmp isn't guaranteed to work
4530 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
4532 xmlGetProp, ... -> xmlFree
4533 malloc, strdup -> free
4534 g_new, g_malloc, g_strdup - > g_free
4536 * app/win32print.c : some more error checking, still not
4539 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
4541 * lib/dia_xml.c : msvc still has no unistd.h
4544 * lib/sheets.c : temporary resolved libxml include brokeness
4546 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
4547 changes. Compiles again, but doesn't do anything useful anymore.
4548 (see THE_PROP_TYPE_IS_INTEGRAL)
4550 * **/makefile.msc : updated to use LIBXML2
4552 * lib/libdia.def : reflect api changes
4554 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
4556 * config.h.win32: added defines telling that gtk speaks UTF8.
4557 Hans, I believe this reflects what GTK on Win32 does.
4559 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
4561 * lib/prop_inttypes.c:
4563 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
4566 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
4567 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
4568 search for plug-ins is done.
4569 * app/Makefile.am: made app/run_dia.sh use the // capability. No
4570 need to update this anymore if we get a new plug-in library (or
4573 * lib/dia_xml.c: #include <unistd.h> was missing.
4576 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
4577 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
4580 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
4582 * sheets/civil.sheet: removed duplicate "Danish" entries.
4587 * sheets/Makefile.am:
4589 * Makefile.am: applied the xml-i18n-tools README's instructions.
4591 * po/(da de fr hu nl nn no sl).po: merged the translations from
4592 the sheet files into the .po files. I hope I haven't mixed
4594 * sheets/*.sheet (REMOVED):
4595 * sheets/*.sheet.in (NEW): moved the sheet files sans
4596 translations into .sheet.in files.
4598 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
4599 because we don't yet want to force all translators to work using
4600 UTF-8 editors. We'll want to do that sometime (sooner rather than
4601 later). Okay, I sing a slightly different tune in po/ChangeLog...
4603 * dia.desktop (REMOVED):
4604 * dia.desktop.in (NEW): used also the x18t infrastructure for
4607 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
4608 "official" version of x18t with support for .sheet files is available.
4609 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
4610 "official" version of x18t which doesn't corrupt UTF-8 data in XML
4613 ** yes, we are now using xml-i18n-tools to manage the sheet
4614 translations. For the Win32 build, Nemo stores snapshots of
4615 translated strings next to the CVS snapshots. **
4617 * sheets/checktrans.py: suddenly, some sheets have lots of
4618 translations (objects which existed before sheets, mostly).
4619 Adapted the formatting.
4621 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
4623 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
4624 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
4625 <robert.young@dsto.defence.gov.au>, to fix #59090.
4627 * app/display.c: (ddisplay_scroll): While at it, added some
4628 margin, so that autoscrolling can happen within a margin outside
4629 the diagram's extents.
4633 * app/disp_callbacks.c: Robert "forced" me to go when I usually
4634 don't, namely the app/ directory. So while I was there, I
4635 scratched a long-time itch. If no object has focus, pressing the
4636 space bar will select back the tool which was selected before the
4637 current one (I find this especially useful with "reset after create" !)
4639 * lib/proplist.c: (prop_list_from_single): Renamed
4640 prop_list_singleton() to avoid confusion with the Singleton
4641 pattern (which it definitely is not).
4643 * lib/propobject.c: (object_prop_by_name_type),
4644 (object_prop_by_name): The "flags" parameter was not necessary.
4645 These don't return synthetic properties, but properties built from
4646 a real property description list; therefore, we don't call
4647 make_new_prop() but use the existing property descriptor, which
4648 has perfectly valid (and meaningful) flags.
4650 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
4651 new predicates better reflect the reason why properties exist when
4652 they're created by make_new_prop() or object_prop_by_name().
4654 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
4655 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
4658 * lib/properties.h: reflects all the above changes.
4660 * objects/SADT/arrow.c:
4661 * objects/SADT/annotation.c:
4662 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
4665 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
4668 * lib/proplist.c: (prop_list_singleton):
4669 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
4670 Added these, to simplify interactions of plug-ins with the StdProp
4675 * lib/dia_xml_libxml.h (NEW):
4680 * objects/custom/shape_info.c: A few prototypes were causing
4681 #include hell, because we generally attempt to not pull the whole
4682 libxml header set when we include dia_xml.h. Moved those
4683 prototypes away for the rare cases they're necessary.
4685 2001-08-15 Hans Breuer <hans@breuer.org>
4687 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
4690 * lib/makefile.msc : updated
4692 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
4693 use G_GNUC_FUNCTION instead.
4695 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
4697 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
4698 msvc instead of cleaning missing includes
4700 * plug-ins/wmf/wmf.cpp :
4701 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
4703 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
4710 * objects/custom/shape_info.c:
4711 * plug-ins/shape/shape-export.c:
4712 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
4713 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
4714 removed xmlKeepBlanksDefault(0) in favour for proper
4715 xmlIsBlankNode() testing. Lots of other fixups to use the
4716 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
4717 make libxml1 output correct files.
4719 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
4720 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
4721 packages). If both devel packages are found, the build will stop
4722 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
4724 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
4725 allocate the first handle :-)
4727 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
4728 a cast and a sizeof.</gratuitous>
4730 * objects/custom/custom_object.c: (custom_copy): don't call
4731 text_get_attrbutes if the shape has no text...
4732 (custom_update_data): The info->resize_with_text code was a bit
4733 directive; basically, the shape's bounding box was forced to be
4734 proportional to the text's bounding box.... This fixes #57187.
4736 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
4737 default for info->aspect_ratio; unobfuscated a line about
4738 info->resize_with_text;
4740 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
4742 * lib/properties.h: added comments next to the PROP_TYPEs to tell
4743 which C Property subclass to use.
4745 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
4746 cast-ridden form of setting properties in a list, in favour for
4747 the "local pointers" form. I'll take any better offer...
4749 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
4751 * lib/font.c: fprintf(...) --> fprintf(format...)
4753 * configure.in: added a disabled versioned test for glib.
4754 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
4755 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
4756 g_critical() with a simple g_error(). Proper fix is to implement
4759 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
4763 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
4764 * lib/proplist.c: (find_prop_by_name_and_type):
4765 * lib/prop_basic.c: (make_new_prop), (initialize_property):
4766 * lib/propoffsets.c: (do_set_props_from_offsets),
4767 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
4768 Added a type_quark member to PropDescription, Property and
4769 PropOffset. Used it to implement a safety in
4770 do_[sg]et_props_from_offsets().
4772 * objects/flowchart/diamond.c: the diamond's text was not saved,
4773 and thus not even copied (c&p).
4774 * objects/standard/textobj.c: ditto.
4776 Most of the above changes thanks to Robert Young's testing. Thanks !
4778 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
4780 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
4783 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
4785 * lib/proplist.c (prop_list_from_descs): added a call to
4786 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
4787 too embarrassing to tell.
4789 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
4790 while loop to a for loop, for symmetry with
4791 prop_offset_list_calculate_quarks().
4793 * lib/geometry.h: new inline function, rectangle_equals.
4795 * lib/diagramdata.[ch]: refactored a bit the diagram extents
4796 computation logic, and changed it to always be the union of the
4797 visible layers' extents. This should close #58882 (Debian
4798 #107167), and fixes #55498.
4800 * app/display.c: made the initial visible box more coherent with
4801 the diagram being loaded's extents.
4803 * app/prop_attr.c: don't set the font (from offset) if font_data
4804 is NULL. Two brainos in colorprop_load() and fontprop_load().
4806 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
4808 * lib/properties.[ch]: split in a lot of pieces:
4810 * lib/prop_*.[ch] (NEW): all property types are now first-class
4811 objects, inheriting from the original abstract Property type.
4812 * lib/propdesc.c (NEW): property description handling routines
4813 * lib/propoffsets.c (NEW): property offset handling routines
4814 * lib/proplist.c (NEW): property list handling routines
4815 * lib/propobject.c (NEW): property list <-> object routines
4816 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
4818 * lib/propinternals.h: prototypes for stuff not usually needed by
4819 the outside of StdProps.
4820 * lib/Makefile.am: a lot of new files have been added...
4822 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
4823 BOTH INTERFACES AND RUN-TIME STABILITY.
4825 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
4827 * lib/object.h: removed the incestuous relationship with
4828 properties.h' contents. Now a Property list is a GPtrArray -->
4829 object interface change !
4831 * app/app_procs.c/app_init(): removed a disabled call to a
4832 non-existent routine. Added a call to stdprops_init().
4834 * objects/Makefile.am: disabled the construction of EML. I'm not
4835 touching these until a certain issue is solved (or this module
4838 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
4839 objects to the interface changes.
4841 * app/disp_callbacks.c: killed a warning.
4842 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
4845 The macros PROP_VALUE_* have disappeared. Adapted to using the new
4848 * plug-ins/dxf/dxf-import.c:
4849 * plug-ins/xfig/xfig-import.c:
4850 PROP_VALUE_* macros have been removed. Converted to the new API.
4852 * plug-ins/python/**/*: I gave up converting this; I can't
4853 compile --with-python (problems with object.h defined both by us
4854 and by Python). I'll gladly help whomever cares to fix it !
4855 (or, fix it myself if someone tells me how to compile it).
4857 * configure.in: added the UNICODE-related progress defines.
4860 * lib/geometry.h: On Solaris and perhaps other systems, finite()
4861 is defined in ieeefp.h rather than in math.h. Patch from Andrew
4862 Halper <ashalper@acm.org> with further modifications, isinf() is
4863 provided by -lsunmath (sunmath.h).
4865 * lib/font.c: conditionally disabled Lars' debugging messages.
4866 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
4868 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
4870 * lib/bezier_conn.h:
4871 * objects/standard/bezier.c (bezierline_create):
4872 * lib/bezier_conn.c (bezierconn_init):
4873 Preparations for use of userdata for bezier lines.
4875 * objects/standard/polygon.c:
4876 * objects/standard/create.h:
4879 * plug-ins/xfig/xfig-import.c:
4880 Use of user_data for polygon as well, including adding
4881 polyshape_set_points. Include file for non-interactive
4882 creation of standard objects, objects/standard/create.h
4884 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
4891 More preliminary freetype support. Not at all functional, crashes
4896 * objects/standard/polyline.c:
4897 Support for creating polyline objects with more than two points.
4898 This includes an extra function and a prototype change in the
4899 poly_conn lib object.
4901 * lib/object.c (object_copy): Fixed memory leak of handles and
4904 2001-08-08 Abel Cheung <maddog@linux.org.hk>
4906 * dia.desktop: added traditional Chinese strings
4908 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
4910 * NEWS: updated to reflect build-time dependencies.
4912 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
4913 around obj->ops->describe_props(obj). Quarks are none of an
4914 object's business in the general case...
4915 * lib/text.c: Added an apply_textattr_properties() function to
4916 factor out some common code related to applying a dialog's text
4917 attribute properties to a (Text *) which wasn't edited there.
4918 Ditto for textstr, for the string part of an objet.
4920 * objects/GRAFCET/action.c:
4921 * objects/SADT/annotation.c:
4922 * objects/SADT/box.c: used apply_textattr_properties().
4924 * objects/UML/actor.c:
4925 * objects/UML/branch.c:
4926 * objects/UML/component.c:
4927 * objects/UML/constraint.c:
4928 * objects/UML/small_package.c:
4929 * objects/UML/state.c:
4930 * objects/UML/usecase.c:
4931 * objects/UML/large_package.c:
4932 * objects/UML/note.c:
4933 * objects/UML/node.c:
4934 * objects/UML/message.c:
4935 * objects/UML/classicon.c:
4936 * objects/UML/object.c:
4937 * objects/UML/realizes.c:
4938 * objects/UML/dependency.c:
4939 * objects/UML/implements.c:
4940 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
4941 (most objects were already using StdProps to some extent ; this
4942 systematises usage and removes some dead wood).
4944 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
4945 * objects/UML/uml.[ch]: audited for UTF-8.
4947 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
4948 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
4949 private (ISO-8859-1) definition.
4951 * lib/charconv.c: Added a warning if we didn't run
4952 nl_langinfo(CODESET) but rely instead on a hardcoded default.
4954 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
4957 * app/disp_callbacks.c: added a way for an object to cause an
4958 already realised menu to be destroyed (for instance if it changes
4961 * objects/custom/custom_object.c: used the above to fix #55073.
4963 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
4965 * configure.in: Remove 2.50 prereq.
4967 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
4969 * po-checktrans.py: under some circumstances, there was one column
4970 more than what was supposed to be, thus breaking the formatting.
4972 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
4974 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
4976 * NEWS: updated with new stuff since 0.88
4978 * shapes/network/antenna.shape: the text was misplaced ; fixed.
4980 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
4981 firewall router (upon request from Cyril Lacoux
4982 <clacoux@easter-eggs.com>)
4984 * configure.in (didn't rename to configure.ac): autoconf 2.50
4985 constructs were used ; added an AC_PREREQ call to guard against
4988 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
4990 * lib/properties.c: minor clean-ups with the event delivery code.
4992 * EML/instantiation.c: brought this object back from stone and ice
4995 * app/diaconv.c(NEW): added a command-line conversion tool. Still
4996 lacks a man page and correctness. In fact, it doesn't work. Please
4997 see #58196 if you want to finish it.
4999 * lib/message.[ch]: redefined things a little so that a different
5000 message_internal routine could be passed.
5001 applications can use that to fit themselves to the display model.
5003 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
5005 * objects/SADT/box.c:
5006 * objects/GRAFCET/action.c: spelling in property descriptors (name
5008 * objects/SADT/annotation.c: ditto, plus a temporary test of the
5009 event delivery code (try to click on the "click me !" button !).
5012 * lib/properties.[ch]: improved (fixed) support for group event
5013 handlers. Fixed various things from yesterday's code to make it
5014 not too obviously crash.
5016 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
5018 * app/group.c: added delivery of events to the first member of the
5019 group which is able to process it.
5021 * lib/properties.c(prop_desc_lists_intersection): properties
5022 don't match if they don't have identical event handler.
5023 * lib/properties.h: simplified the PropEventHandler signature.
5025 Event delivery code is still untested so far, but should be
5028 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
5030 * lib/properties.[ch]: Added (untested !) property event handler
5031 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
5032 generating such events. This stuff compiles, and should lurk
5033 around silently as long as you don't declare property descriptors
5034 with events (AFAICT).
5035 In object_create_props_dialog() and friends:
5036 attached a single structure with lots of data instead of lots of
5037 little attachments of data to the dialog widget.
5039 * lib/object.h: fixed mild typedef breakage introduced by the above.
5041 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
5043 * lots of files: Changed Font to DiaFont
5044 * */Makefile.am: Added FREETYPE_LIBS
5045 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
5047 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
5049 * configure.in: Added "nn" to ALL_LINGUAS.
5051 2001-07-09 Alex Larsson <alexl@redhat.com>
5053 * app/disp_callbacks.c:
5054 Add gdk_im_ready() calls to XIM code.
5056 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
5058 * lib/properties.[ch]: splitted prop_get_widget() into
5059 prop_get_widget() (gives a widget but doesn't fill it) and
5060 prop_reset_widget() (fills an existing widget with a property's value).
5062 * lib/widgets.[ch]: const enforcement police work.
5064 * shapes/network/antenna.shape: added a connection point at top,
5065 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
5067 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
5069 * intl/*: tested with gettext-0.10.38
5070 * configure.in: moved a macro call around (AM_PROG_CC) to keep
5071 some of autogen.sh from complaining.
5072 * INSTALL: added a warning against gettext older than at least 0.10.36
5074 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
5076 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
5077 AM_ICONV (both provided by gettext)
5079 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
5081 * lib/charconv.c: corrected the degraded mode for when
5082 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
5084 * objects/chronoline/chronoline_events.c: UTF8 compliance.
5086 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
5088 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
5089 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
5090 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
5093 * objects/chronogram/chronoline.c:
5094 * objects/chronogram/chronoref.c: took advantage of the above to
5095 make nicer looking dialogs.
5097 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
5098 from libunicode's internals).
5099 * lib/message.c: convert strings to local encoding prior to
5100 display (UNICODE_WORK_IN_PROGRESS)
5101 * lib/properties.[ch]: convert strings to local encoding prior to
5102 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
5103 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
5104 * lib/stringprerenderer.[ch]: ditto
5106 (lib/text.c has been audited for UTF8, but the size of the changes
5107 make them inappropriate for commit before 0.89)
5109 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
5111 * objects/boolequation.h (<save|load>_boolequation): made the
5112 prototypes for match the .c file.
5114 * samples/grafcet.dia: minor non-conformance with IEC-848
5115 fixed (in the transition from step 100 to step 101).
5117 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
5118 disallow editing of properties if the object is part of a group.
5120 * objects/chronogram/chronoline.c:
5121 * objects/SADT/annotation.c:
5122 * objects/SADT/box.c:
5123 * objects/GRAFCET/step.c:
5124 * objects/GRAFCET/transition.c:
5125 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
5127 2001-06-12 Hans Breuer <hans@breuer.org>
5129 * lib/libdia.def : removed lazyprop exports
5130 * lib/makefile.msc : removed lazyprop.obj
5132 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
5133 and avoid crashes by always creating a custom->text,
5134 when (custom->info->has_text)
5136 * objects/makefile.msc : removed sybase from build
5138 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
5139 ObjectNode is a pointer already, which is what we want
5140 instead of a pointer pointer.
5142 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
5143 and implemented working export for images
5145 * shapes/network/zip-disk.shape : added connection points
5147 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
5149 * objects/SADT/box.c: removed lazyprops for standard props.
5150 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
5151 * objects/chronograms/chronoref.c: ditto
5155 * lib/connpoint_line.c:
5156 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
5157 * lib/properties.[ch]: new property types:
5158 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
5159 - PROP_TYPE_MULTISTRING: same as string, but renders as a
5160 multi-line entry box.
5161 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
5162 in a tabbed-notebook style (this is a bit complicated to use;
5163 see objects/chronograms/chronoline.c for an example).
5165 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
5167 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
5168 * objects/GRAFCET/step.c: ditto.
5169 * objects/GRAFCET/vector.c: ditto.
5170 * objects/SADT/annotation.c: ditto.
5171 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
5173 * lib/properties.[ch]: two more non-visible types
5174 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
5176 * lib/neworthconn.[ch]:
5177 * lib/orthconn.[ch]: added support for manipulation through
5178 standard properties.
5180 * configure.in: removed -fomit-frame-pointer, this seems to
5181 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
5184 * charconv.[ch]: more functions from unicode.h.
5185 get_local_charset() wasn't working properly, fixed now.
5186 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
5189 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
5190 * lib/lazyprops.[ch]: put a big fat warning in.
5192 * app/render_eps.c: one line mysteriously went away, causing a
5193 variable to be used uninitialised....
5195 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
5197 * app/app_procs.c: commented out the call to
5198 bind_textdomain_codeset(): it's premature.
5200 * lib/connpoint_line.c: a NULL point can be given to
5201 connpointline_adjust_count(), in case there's not really a clicked
5204 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
5205 #include order troubles. #included by lib/text.h, so there is no
5206 impact outside lib/.
5207 * lib/properties.[ch]: added support for CONNPOINT_LINE and
5208 (nonvisible) TEXT properties.
5210 * objects/GRAFCET/action.c:
5211 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
5214 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
5215 standard properties code). Grafted a dynamic number of connection
5216 points (heavily inspired from what Vergent does). This is the real
5219 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
5221 * lib/fonts.c: some hardening (mostly g_assert())
5222 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
5224 * app/app_procs.c (app_init): added a call to
5225 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
5226 (UNICODE_WORK_IN_PROGRESS).
5228 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
5230 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
5232 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
5233 (fixes #55863) : some clean-ups in the handling of connection
5234 points. Now the total number of connection points is just a
5235 #define (the proper solution is to retrofit the GRAFCET Vergent's
5236 dynamic behaviour wrt connection points).
5238 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
5240 * app/app_procs.c (app_init): added a call to unicode_init() (only
5241 if HAVE_UNICODE, of course).
5243 * lib/charconv.c: simplified the code which detects the local
5244 charset. No need to use <langinfo.h>, libunicode already takes the
5245 burden of figuring that out. Also, if local charset is utf8, no
5246 conversion will take place.
5247 Exposed a way to get the current charset (similar to
5248 unicode_get_charset() but actually working, hopefully).
5250 * lib/charconv.h: Added a partial non-UTF8 implementation of
5251 unicode.h if !HAVE_UNICODE (actually, all the time for the
5252 moment). The UTF8 implementation is just macros on libunicode (use
5253 the functions prefixed by uni_, as defined by charconv.h, not
5254 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
5255 From now on, all strings which don't *need* to be ASCII should be
5256 utfchar *, not gchar *. Just include charconv.h, let it sort out
5257 the details (such as: "is libunicode available and enabled?")
5259 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
5260 "API" instead of directly libunicode. Removed the now unnecessary
5261 speculative clustering of characters in encoding pages.
5263 * app/render_eps.c: made the local8->utf8 conversions dependent of
5264 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
5265 boundary will be when this WIP is done).
5267 * lib/dia_xml.c (data_point): fixed a format string typo.
5269 * po/POTFILES.in: added all C files from lib/
5271 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
5273 * app/disp_callbacks.c: make sure the objects' connected objects
5274 are updated when the objects' size changes after a keypress event
5277 * configure.in: added a big warning about the possible future
5278 non-optionality of --enable-unicode.
5280 * TODO: removed entries which look like done ; added a few ones
5281 (Bugzilla "enhancement" bugs may be a better way to keep track of
5284 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
5286 * objects/UML/message.c: got rid of #55564 and of message_copy()
5287 by using more standard properties (are the message_state_*()
5288 functions still necessary ?)
5290 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
5293 * objecs/custom/shape_info.c:
5294 * plug-ins/shape/shape-export.c:
5295 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
5296 use xmlChar instead of obsolete CHAR.
5298 2001-06-03 Hans Breuer <hans@breuer.org>
5300 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
5301 * app/commands.c : give the right number of parameters
5302 to diagram_update_menu_sensitivity ()
5304 * app/preferences.c : do proper initialization for DiaPrefsData:
5305 render_bounding_boxes. It would be a real surprise if 'hidden'
5306 properties would have ever worked before.
5307 Don't try to access the widgets of hidden property, it does not
5310 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
5311 it is defined in libdia, but initialized from dia app, which
5312 otherwise gave nice start-up crashes.
5314 * lib/diagramdata.c : initialize the color for rendering bounding
5315 boxes in the Dia range (0 .. 1.0)
5317 * lib/libdia.def : added *_bbox functions for export
5319 * lib/makefile.msc : added new sources
5321 * objects/custom/custom_object.c : use HAVE_UNISTD_H
5323 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
5326 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
5327 removes a translation of menus (in a place where there shouldn't
5328 have been), which gets rid of a waterfall of warnings if LANG!=C,
5329 and a fix to #55047.
5331 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
5333 * lib/charconv.c : added #include <errno.h>
5335 * app/dia_embedd.c : updated menus_get_item_from_path usage
5337 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
5339 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
5340 Added a special case for Symbol strings, so that they're not
5341 re-encoded using the LN encoding (we use the bare Adobe encoding
5344 * objects/custom/custom_object.c: Now that #52912 is fixed,
5345 I could remove the ugly hack I wrote to squash the shape bounding box
5346 problem shown by Ben A. Hetland a few months ago, and fix it
5349 * lib/text.c: enlarged a little the bounding box to account for
5350 the cursor in rightmost position.
5352 * lib/diagramdata.c: draw bounding boxes only if the relevant
5353 variable is set (as before), but also only if the rendere is
5354 interactive (ie, don't bother rendering bounding boxes on
5356 Made the bounding box's line width a fixed value, 0.01
5358 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
5359 and assymmetric control beziers. Implemented ellipse_bbox().
5361 * Makefile.am: incantations to get po/dia.pot build, as suggested
5362 by Hubert in #55075.
5364 * shapes/network/computer.shape: typo fixed.
5365 * shapes/network/antenna.shape: fixed #55074 (antenna is now
5366 properly translucent, except for its base where it makes sense. It
5367 doesn't look that ugly anymore if transparent mode is on).
5369 * configure.in: --enable-unicode is now the default. This
5370 still currently affects only printing.
5372 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
5374 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
5375 The overshoot code is buggy, and the bounding boxes for polyshapes
5376 looks a bit cheezy. To be done ASAP.
5378 2001-05-26 James Henstridge <james@daa.com.au>
5380 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
5381 This should clear up some of the build problems people have been
5384 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
5386 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
5389 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
5390 box code (beginning with lines, polylines and polybeziers), into a
5391 more generic facility. While at it, a better shot at correctly
5392 computing the bounding box of a Bezieroid (should take care of
5393 #53424, #51233 and of course is part 1 of #52912).
5395 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
5396 into a hidden preference (set render_bounding_boxes in diarc).
5397 * app/preferences.[ch]: Added support for hidden preferences.
5399 * lib/geometry.[ch]: sprinkled with "const" modifiers.
5401 * lib/bezier_conn.[ch]:
5402 * lib/beziershape.[ch]:
5403 * lib/connection.[ch]:
5405 * lib/poly_conn.[ch]:
5406 * lib/orth_conn.[ch]:
5407 * lib/neworth_conn.[ch]:
5408 * lib/polyshape.[ch]: adapted to take advantage of
5409 boundingbox.[ch] instead of relying on private (duplicate) code.
5412 * object/GRAFCET/action.c:
5413 * objects/GRAFCET/condition.c:
5414 * objects/GRAFCET/vergent.c:
5415 * objects/GRAFCET/vector.c:
5416 * objects/SADT/annotation.c:
5417 * objects/SADT/arrow.c:
5418 * objects/ER/participation.c:
5419 * objects/UML/constraint.c:
5420 * objects/UML/implements.c:
5421 * objects/UML/lifeline.c:
5422 * objects/UML/message.c:
5423 * objects/UML/realizes.c:
5424 * objects/UML/generalization.c:
5425 * objects/UML/association.c:
5426 * objects/UML/dependency.c:
5427 * objects/FS/flow-ortho.c:
5428 * objects/network/bus.c:
5429 * objects/standard/arc.c:
5430 * objects/standard/bezier.c:
5431 * objects/standard/beziergon.c:
5432 * objects/standard/line.c:
5433 * objects/standard/polygon.c:
5434 * objects/standard/zigzagline.c:
5436 * objects/standard/polyline.c: Some *BBExtras structures changed
5437 names while moving to boundingbox.[ch]. A trivial mass-renaming.
5439 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
5441 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
5442 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
5444 * app/display.c (ddisplay_update_scrollbars): from Patrick's
5445 suggestion, remove the extra scrollable area (it was only visible
5446 to the scrollbars). This is experimental.
5448 * objects/custom/custom_object.c: If a shape's icon file doesn't
5449 exist, warn and substitute a default icon, instead of crashing.
5452 * objects/network/network.c:
5453 * shapes/network/modularswitch.(shape|xpm) (NEW):
5454 * shapes/network/printer.(shape|xpm) (NEW):
5455 * shapes/network/genmonitor.(shape|xpm) (NEW):
5456 * shapes/network/computer.(shape|xpm) (NEW):
5457 * shapes/network/Makefile.am: four less objects, four more shapes.
5458 These were the last known RenderObjects. (phew !)
5462 * objects/sybase/Makefile.am:
5463 * objects/network/Makefile.am: Removed the older Renderobjects
5464 from the build, and their infrastructure (not yet deleted,
5467 * shapes/network/sceadplug.shape:
5468 * shapes/network/antenna.shape:
5469 * shapes/network/modem.shape:
5470 * shapes/network/hub.shape:
5471 * shapes/network/rj45plug.shape:
5472 * shapes/sybase/client.shape:
5473 * shapes/sybase/dataserver.shape:
5474 * shapes/sybase/ltm.shape:
5475 * shapes/sybase/repserver.shape:
5476 * shapes/sybase/rsm.shape:
5477 * shapes/sybase/stableq.shape: Minor corrections (line widths were
5478 ten times too narrow).
5480 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
5482 * objects/network/network.c:
5483 * shapes/network/sceadplug.(shape|xpm) (NEW):
5484 * shapes/network/antenna.(shape|xpm) (NEW):
5485 * shapes/network/modem.(shape|xpm) (NEW):
5486 * shapes/network/Makefile.am: four less objects, four more shapes.
5489 * lib/diagramdata.c:
5491 * lib/string_prerenderer.[ch] (NEW):
5492 Add a new renderer primitive, predraw_string() (does nothing, to be
5493 used as a hook to optimise the character encodings if needed).
5494 Added a string pre-renderer, which can be viewed as a filter
5495 renderer (to route draw_string() to predraw_string() and ignore
5496 the rest, in a first rendering pass)
5498 * app/render_eps.c: Took advantage of the above to make wholly
5499 optimised Postscript encoding page(s), even (especially) with
5500 non-latin1 code (HAVE_UNICODE must be true).
5502 (#53512 in fact is wholly resolved).
5504 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
5506 * lib/charconv.c: steps towards resolution of #53512 (inspired by
5507 Alexey Novodvorsky <aen@logic.ru>'s patch).
5509 * app/menus.c (dia_menu_signal_proxy): checked that the signal
5510 handler is not NULL before transferring control to it... (fixes #52836)
5512 * app/app_procs.c (app_init): removed non-constant initialiser
5515 * objects/custom/custom_object.c:
5516 * objects/custom/shape_info.[ch]:
5517 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
5518 <skh@mathstar.com>. This add support for a <svg:text> shape
5519 element, and some related style properties (font, font height,
5522 * doc/custom_shapes: a precision about the meaning of case in a
5523 SVG path (closes #52364)
5525 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
5526 fixed by <drk@sgi.com>)
5528 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
5530 * objects/network/network.c:
5531 * shapes/network/Makefile.am:
5532 * shapes/network/hub.(shape|xpm) (NEW):
5533 * shapes/network/flash.(shape|xpm) (NEW):
5534 * shapes/network/rj45plug.(shape|xpm) (NEW):
5535 More shapes, less renderobjects.
5537 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
5539 * plug-ins/svg/render_svg.c: typo made exported ellipses
5540 corrupted (zero Y pseudo-radius).
5542 * objects/network/network.c:
5543 * objects/network/disc.c:
5544 * shapes/network/disc.(shape|xpm): Converted the first
5545 Renderobject into a shape. Normally, old diagrams should reload
5546 without problems (please check this against your diagrams). More
5547 flexibility should be gained that way. I intend to hunt and
5548 eradicate all renderobjects as I can commit cycles to that.
5550 * objects/Makefile.am:
5553 * objects/sybase/sybase.c:
5554 * shapes/sybase/Makefile.am(NEW):
5555 * shapes/sybase/client.(xpm|shape) (NEW):
5556 * shapes/sybase/dataserver.(xpm|shape) (NEW):
5557 * shapes/sybase/ltm.(xpm|shape) (NEW):
5558 * shapes/sybase/repserver.(xpm|shape) (NEW):
5559 * shapes/sybase/rsm.(xpm|shape) (NEW):
5560 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
5561 renderobjects into shapes. The Sybase objects are now not compiled
5562 anymore, and ready to be nuked if nobody objects in the next few weeks.
5566 * app/disp_callbacks.c:
5568 * app/interface.[ch]:
5570 * app/modify_tool.c:
5571 * app/preferences.[ch]:
5572 * app/recent_files.c:
5573 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
5574 a menu bar reflecting the popup menu, to each display window. This
5575 is optional (changing the preference currently doesn't affect
5576 already opened windows; a few other rough edges to cut).
5578 * plug-ins/wpg/wpg.c:
5579 * plug-ins/xfig/xfig-import.c:
5580 * plug-ins/python/pydia-property.c:
5581 * plug-ins/python/pydia-properties.c:
5582 * plug-ins/python/pydia-geometry.c:
5583 * plug-ins/pstricks/render_pstricks.c:
5585 * objects/EML/dbox.c:
5586 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
5589 * lib/ps-utf8.c: improved the clustering of alphabetic character
5590 definitions in custom encodings pages.
5592 2001-05-02 Hans Breuer <hans@breuer.org>
5594 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
5595 of 'obj_bb' to PROP_TYPE_RECT
5597 * objects/custom/custom_object.c : take all quarks into account,
5598 not only 4 as copy&paste suggests
5600 * objects/uml/objects.c : completed the implementation of the
5601 property api to avoid reading of totally bogus data. Removed
5602 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
5603 there was too much but too less ...
5605 The above changes removed all known crashes (mentioned below)
5606 from the Property API. Property access is still incomplete though.
5608 * objects/flowchart/box.c :
5609 * objects/flowchart/diamond.c :
5610 * objects/flowchart/ellipse.c :
5611 * objects/flowchart/parallelogram.c :
5612 * objects/uml/classicon.c :
5613 * objects/uml/state.c : calculate number of quarks from quark array
5614 size instead of using hardcoded values for consistence and to avoid
5615 future bugs like the above
5617 * objects/eml/nlist.c : include <string.h> for strcmp()
5619 * lib/dia_xml.c : relax g_warning for values, which
5620 appear to be too small. There is nothing which prevents
5623 * plug-ins/python/pydia-geometry.c : changed stringifying of
5624 geometry objects accept BezPoint back to %f, which does not
5625 crash anymore, because all the data is intialized now and it
5626 simply is more readable than %e ...
5628 * plug-ins/python/python-startup.py : removed dependency
5629 to PyGtk, because it isn't required here and probably won't
5630 in i.e.: export filters.
5632 * plug-ins/python/gtkcons.py : create the gtkoutfile even
5633 if sys.stderr.fileno() isn't supported
5635 * app/makefile.msc : make version 0.88
5636 * plug-ins/makefile.msc : make version 0.88 an added new
5639 2001-05-11 James Henstridge <james@daa.com.au>
5641 * NEWS: remember to add news items this time.
5643 * dia.spec: update spec file for 0.88 release.
5645 * configure.in: up version number to 0.88
5647 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
5648 preventing any of the useful python scripts from being
5651 * sheets/Makefile.am (sheet-translation-report): fix bustage I
5652 introduced in my fixups for the 0.87 release :(
5654 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
5656 * plug-ins/xfig/xfig-import.c: Finally got groups working.
5658 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
5660 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
5663 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
5666 * lib/Makefile.am: fix makefile breakage which led to not
5667 including ps-utf8.[ch] in the released tarballs.
5669 2001-05-09 James Henstridge <james@daa.com.au>
5671 * Makefile.am (core-translation-report): dist scripts needed for
5672 this target, and change to $(srcdir) before running.
5674 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
5675 files aren't automatically included in the tarball by automake
5676 because they could be generated files.
5678 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
5680 * doc/en/Makefile.am (install-data-hook): fix up where graphics
5683 * configure.in: up version number to 0.87
5685 * plug-ins/python/*.py: no longer necessary to explicitly set
5686 sys.argv, as python.c does it for us now (like it should).
5688 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
5691 * plug-ins/python/python-startup.py: startup script that imports
5692 all modules in $(datadir)/dia/python and ~/.dia/python.
5694 * plug-ins/python/python.c (dia_plugin_init): change so that it
5695 only runs the $(datadir)/dia/python-startup.py script. Make sure
5696 that sys.argv and __main__.__file__ are set when calling the
5699 * plug-ins/python/Makefile.am: update makefile. Make it install
5700 gtkcons.py plugin. I haven't set any other plugins to install, as
5701 they look like they are mainly for debugging purposes.
5703 * configure.in: add tests to detect if python is available, so we
5704 can build the python plugin. Only run if --with-python passed to
5707 2001-05-08 James Henstridge <james@daa.com.au>
5709 * acinclude.m4: add macros for detecting python.
5711 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
5712 at GNOME_APP_UI_SUBTREE entries.
5713 (menus_add_path): function to add a menu item to the menubars.
5714 Uses a hash table to keep track of extra menu items it adds. Also
5715 notifies the item factory about the entries so that accels can be
5717 (menus_add_path): implement gtk only version.
5718 (menus_init): use menus_add_path() to add the menu.
5719 (plugin_callback): simplify.
5721 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
5723 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
5725 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
5727 * plug-ins/xfig/xfig-export.c:
5728 * plug-ins/xfig/xfig-common.c:
5729 * plug-ins/xfig/xfig-import.c:
5730 * plug-ins/xfig/xfig.c:
5731 * plug-ins/xfig/xfig.h:
5732 * app/Makefile.am: Added support for exporting to Fig format
5733 (except splits, which are less powerful in Fig). Some refactoring
5736 2001-05-02 Hans Breuer <hans@breuer.org>
5738 * plug-ins/python/debug_objects.py : added another
5739 test to get massive crashes from the Property API due
5740 to unintialized data.
5742 * app/menu.c : the callback_action wasn't incremented
5743 (should have checked my last optimization). Now more
5744 than one plug-in callback is supported again.
5746 * plug-ins/python/pydia-geometry.c : avoid crashes from
5747 glib, when trying to g_strdup_printf unintialized floats.
5749 * plug-ins/python/pydia-property.c : avoid crashes from
5750 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
5752 2001-05-01 Hans Breuer <hans@breuer.org>
5754 * objects/makefile.msc : added eml
5755 * objects/eml/instantiation.c : initialize 'inst' pointer
5756 before using, zero initialization for objects
5757 * objects/eml/interaction-ortho.c :
5758 * objects/eml/interaction.c : zero initialization for objects
5760 * app/menus.c : removed Gimp mru stuff which slipped in at
5761 2000-08-15, was never activated and will never be needed,
5762 because of Steffens recent file list patch added at 2001-01-05.
5764 * objects/eml/*.c : some more zero initialization of objects
5765 to avoid infinite (uninitialized) bounding boxes
5767 Implemented a callback api which allows plug-ins to register
5768 menu call backs. Dia for Gnome should compile, but will need
5769 some extra tweaking to make it work because I can't test it.
5771 * plug-ins/python/pydia-error.h :
5772 * plug-ins/python/pydia-render.c : moved Pxthon function return
5773 value handling from pydia-render.c to pydia-error.h, to make it
5775 * plug-ins/python/diamodule.c : implement callback function
5776 registration from and relaying to Python code
5778 * app/menus.c : register and use plug-in menu callbacks
5780 * lib/filter.[hc] : implement filter_register_callback() and
5781 filter_get_callbacks() for the above
5782 * lib/libdia.def : export them
5784 * plug-ins/python/debug_objects.py (new file):
5785 sample using the above
5787 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
5789 * plug-ins/shape/shape-export.c (new_shape_renderer):
5790 The name of a shape is now taken from the dir, to conform with
5793 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
5795 * app/properties.c (properties_show): Added title containing
5796 object type, plus (hopefully) fix of the ghost properties dialog.
5798 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
5800 * app/display.c: remove the display idle handler in case we
5801 destroy the ddisplay (caused crashes in ddd, probably random
5806 * Makefile.am: hack around gettext-0.10.36's new "features".
5808 * lib/properties.[ch]: added new function object_copy_props().
5809 Added new property type PROP_TYPE_ENDPOINTS
5811 * lib/connection.h: added support for load/saving through the
5812 properties interface.
5814 * lib/object.[ch]: object_load/save/copy_using_properties()
5815 support functions (code factorisations).
5817 * objects/GRAFCET/boolequation.c: check against null values in
5818 boolequation_set_value() and boolequation_destroy().
5820 * objects/GRAFCET/transition.c: Converted from lazyprops to
5821 standard properties. 31% less (x86) code !
5823 * objects/GRAFCET/condition.c: also converted from lazyprops to
5824 standard properties. Also killed lots of code.
5826 2001-04-13 Hans Breuer <hans@breuer.org>
5828 * plug-ins/wmf/wmf.cpp : changed text conversion from
5829 g_utf8_utf16 to g_convert usage. The latter function is already
5830 available in tml's last "official" Gtk+ version (2000-12-26).
5831 This change allows to use recent Dia with either the official
5832 version or the latest cvs "gtk-1-3-win32-production"-branch.
5834 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
5836 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
5837 * app/disp_callbacks.c:
5838 - Allow submenus in DiaMenus.
5839 - Don't require DiaMenu.title to be non-null (so that
5840 submenus aren't required to have titles)
5842 * objects/FS/function.c:
5843 - object menu now has submenus, an almost complete list of
5844 standard-basis verbs, and a start on nouns.
5845 - box padding, dash length, and other visual attributes are
5846 scaled by the font size... eventually font height will be
5847 a function property.
5848 - draw functions with smaller font to make initial view hold
5849 a reasonable number of functions.
5851 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
5854 * sheets/chronogram.sheet:
5855 * sheets/jigsaw.sheet:
5856 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
5857 Wieers <dag@wieers.com>
5859 2001-04-13 Hans Breuer <hans@breuer.org>
5861 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
5862 to ensure that all the deinitialization is only done once. Fixes
5863 recent app exit crash on win32
5865 * lib/dia_xml.c : provide isinf() replacement for msc which does only
5868 * lib/libdia.def : updated
5870 * objects/makefile.msc : added wanlink.c
5872 * objects/network/wanlink.c : added M_PI_2 definition for poor
5873 platforms which don't have one
5875 * objects/standard/arc.c :
5876 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
5877 initialized which led to rather huge bounding boxes (try Ctrl^A on
5878 diagrams with Arcs or ZigZagLines).
5879 * objects/*/*.c : to avoid further bugs like the above changed all
5880 object initializations to g_malloc0 or g_new0
5883 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
5885 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
5886 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
5888 * objects/UML/class.c:
5889 * objects/UML/usecase.c:
5890 * objects/UML/large_package.c:
5891 * objects/UML/message.c:
5892 * objects/UML/object.c:
5893 * objects/UML/lifeline.c:
5894 * objects/FS/flow.c:
5895 * objects/FS/flow-ortho.c:
5896 * objects/FS/function.c:
5897 * objects/custom/custom_object.c:
5898 * objects/GRAFCET/vergent.c:
5899 * objects/chronogram/chronoref.c:
5900 * objects/SADT/box.c:
5901 * objects/SADT/annotation.c:
5902 * plug-ins/dxf/dxf-import.c:
5903 * plug-ins/xfig/xfig-import.c:
5904 * plug-ins/wpg/wpg.c:
5907 * app/display.c: /* certainly more WIP than dead code there */
5908 Unused variables, unused static function definitions, forgotten or
5909 incomplete prototypes added or fixed, lack of const or unwanted const,
5910 etc. (mostly clean-ups of leftovers of the pre-properties era).
5911 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
5914 * app/lineprops_area.c: More of the same. Missing prototypes
5915 added, and functions unused outside made static.
5917 * app/recent_files.c:
5919 * app/defaults.c: some variables are used only when doing a GNOME
5922 * app/magnify.c: missing #include <stdlib.h>.
5924 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
5926 These are a lot of clean-ups (by the way, this compiles and runs
5927 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
5928 for DEAD_CODE, and if it's yours, judge it.
5930 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
5932 * plug-ins/dxf-import.c: some progress with the arcs; still some
5933 clean-ups to do and line width scaling issues to figure out.
5935 * objects/standard/arc.c: start_point and end_point properties
5936 (duplicated from standard/line.c)
5938 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
5941 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
5943 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
5944 preliminary support for arcs (doesn't work). Circles and ellipses are
5945 now transparent. Coordinate and width scaling are now a common
5946 static constant (probably before morphing into a preference).
5948 * sheet/checktrans.py: improved error reporting. Made checktrans
5949 count lack of <name xml:lang="code"> as a lack of translation for
5950 language "code" (no, it's not a plot to bring down other
5951 language's scores !)
5953 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
5954 in the header, and have <name xml:lang="fr"> components.
5956 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
5958 * objects/custom/custom_object.c: temporary hack to fix the shape
5959 bounding box reported by Ben A. Hetland. Proper fix isn't .87
5960 material, see bugzilla #52912.
5962 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
5964 * objects/standard/image.c (get_directory): Now uses
5965 G_SEPARATOR_CHAR_S instead of "/"
5967 * sheets/network.sheet:
5968 * sheets/Logic.sheet:
5969 * sheets/Flowchart.sheet:
5970 * sheets/Electric.sheet:
5971 * sheets/Circuit.sheet:
5973 * sheets/Pneumatic.sheet:
5976 * sheets/GRAFCET.sheet:
5978 * sheets/chronogram.sheet:
5979 * sheets/civil.sheet:
5980 * sheets/network.sheet:
5981 Danish translations.
5983 * objects/standard/image.c (get_directory): Changed get_directory
5984 to use g_dirname to find the directory part.
5986 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
5989 * sheets/Electric.sheet:
5990 * sheets/Flowchart.sheet:
5991 * sheets/Logic.sheet:
5992 * sheets/network.sheet: More Dutch translations from Dag Wieers.
5994 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
5996 * sheets/checktrans.py: now emits a warning when two descriptions
5997 for a single language code are found.
6000 * sheets/Makefile.am: -translation-reports now also depend on their
6003 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
6005 * sheets/Circuit.sheet:
6006 * sheets/Contact.sheet:
6007 * sheets/Logic.sheet:
6008 * sheets/chronogram.sheet:
6009 * sheets/sybase.sheet:
6010 Dutch translations from Dag Wieers <dag@wieers.com>
6012 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
6014 * po-checktrans.py: Now shows the detailed counts alongside the
6015 percentage of translations.
6017 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
6020 * po-checktrans (NEW):
6021 * po-checktrans.py (NEW): builds core-translation-report:
6022 percentages of core (gettext) translations done [Not placed into
6023 po/ where that should belong, because of integration fear^Wissues
6026 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
6027 sheets/sheet-translation-report probably ought to be copied on the
6028 user's /usr/share/doc/dia (or equivalent) directory.
6030 * sheets/Makefile.am: sheet-translation-report now a simple
6031 EXTRA_DIST; make install won't install it by default.
6033 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
6035 * app/preferences.c: changed the default grid colour to something
6038 * shapes/SDL/*.shape:
6039 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
6040 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
6041 DIA FILES (well, for files using SDL), see the mailing list
6042 archive "SDL (ab)using the global shape namespace" for a script to
6045 * sheets/SDL.sheet: translated into French
6046 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
6048 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
6050 * lib/dia_xml.c: made data_point() more paranoid
6052 * sheets/Makefile.am:
6053 * sheets/checktrans (NEW):
6054 * sheets/checktrans.py: Made checktrans handle more gracefully the
6055 absence of python and python-xml packages, and made the error
6056 message more helpful.
6058 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
6060 * lib/render_object.c (new_render_object): Made initial handles
6061 behave like on most other objects.
6063 * app/load_save.c (read_objects): Fixed premature free'ing ofr
6064 typestr causing garbage.
6066 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6068 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
6069 accouting for handle ordering through copy and save. (#51479)
6071 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
6073 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
6075 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
6077 * sheets/Circuit.sheet
6079 * sheets/network.sheet: Updated German translations
6081 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
6084 * app/lineprops_area.c: The return of the revenge of the arrow
6085 heads. Now all types covered by ISO 10303-201 should be covered.
6087 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
6089 * sheets/Flowchart.sheet: translations in probably Hungarian were
6090 a victim of cut-n-paste from the German one. Fixed (hopefully).
6091 * sheet/UML.sheet: translation in probably Norwegian was a victim
6092 of cut-n-paste from the French one. Fixed (hopefully).
6093 * sheets/Logic.sheet: French translation not tagged with
6096 * sheets/checktrans.py:
6097 * sheets/Makefile.am: new file, sheet-translation-report, to be
6098 installed along the sheets, show how much of them has been
6099 translated into which language (I wish the result was prettier...)
6101 * po/README: most translators don't read this file, but anyway...
6103 * sheets/.cvsignore:
6104 * objects/network/.cvsignore: the usual negotiation with CVS.
6106 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
6108 * sheets/*.sheet: French translations
6110 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
6112 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
6114 ** objects/network/network.c:
6115 ** objects/network/wanlink.c:
6116 ** objects/network/pixmaps/wanlink.c:
6117 ** sheets/network.sheet:
6118 ** objects/network/Makefile.am: a better object to use instead of
6119 the older WAN Connection.
6121 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
6123 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
6126 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
6127 Arc; kept the C file name (because CVS wouldn't like it), and
6128 still registering the older object name (but advertising the newer
6129 one in sheets/GRAFCET.sheet).
6131 2001-03-24 Hans Breuer <hans@breuer.org>
6133 * app/dia.def : some plug-ins (currently only python, xfig) are using
6134 functions from the dia executable. To get them working these functions
6135 need to be explicit exported on win32. IMO the much cleaner way would
6136 be to move these functions to libdia, but that would require some
6137 long term restructuring ...
6139 * lib/libdia.def : updated
6141 * plug-ins/makefile.msc : build xfig plug-in
6143 2001-03-24 Hans Breuer <hans@breuer.org>
6145 * app/diagram.c : g_strdup (dia->filename) because it will be
6148 * app/display.c : set ddisp->renderer to NULL after destruction.
6149 This may solve or help to identify erroneous access to it after
6152 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
6153 get 'umlauts' working
6155 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
6157 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
6158 were reversed... (look for the patch, and drink a beer to my
6161 2001-03-23 Hans Breuer <hans@breuer.org>
6163 * app/app_procs.c : don't g_error () if the config directory
6164 can't be created (at least not on windoze) because it's quite
6165 common that the user don't read or understand the FAQ ...
6167 * app/cursor.c : use ddisplay_active () instead of active_display
6170 * app/display.[hc] : made active_display var static and provide
6171 an accessor funtion ddisplay_active_diagram ()
6173 * app/dia-props.c : don't store the active_diagram, but ask
6174 for it everytime it needed.
6176 * lib/properties.h : #include "intl.h"
6178 * lib/makefile.msc : need to take care of inclusion order to
6179 avoid clashes with gtk+2.0's gdk-pixbuf
6181 * objects/makefile.msc : added uml/stereotype.c to build
6183 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
6185 * **/*.c: Added config.h to the remaining .c files, and changed
6186 all to be <config.h>.
6188 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
6193 * app/lineprops_area.c: added new arrow types with double
6196 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
6198 * shapes/Civil/civil_gas_bottle.xpm
6199 * shapes/Civil/civil_gas_bottle.shape
6200 * sheets/civil.sheet
6201 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
6204 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
6206 * objects/custom/shape_info.c (load_shape_info):
6207 * objects/custom/shape_info.h:
6208 * objects/custom/custom_object.c (custom_update_data):
6209 Better support for text outside the box -- new attributes 'resize'
6210 and 'align' for text entity. Align not fully supported yet.
6212 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
6214 2001-03-20 James Henstridge <james@daa.com.au>
6216 * app/interface.c (display_data_received_callback): comment out
6219 2001-03-19 James Henstridge <james@daa.com.au>
6221 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
6223 * objects/UML/realizes.c: similar here.
6225 * objects/UML/implements.c: similar here.
6227 * objects/UML/component.c: similar here.
6229 * objects/UML/generalization.c: same here.
6231 * objects/UML/dependency.c: allow NULL for ->name and
6232 ->stereotype. This fixes a number of problems in loading saved
6235 * lib/properties.c: various changes so that NULL string properties
6238 * objects/standard/line.c (line_update_data):
6239 line->extra.start_long and line->extra.end_long were not being
6240 initialised. This fixes potential problems with the bounding box
6241 of "Standard - Line" objects.
6243 2001-03-19 Hans Breuer <hans@breuer.org>
6245 * app/commands.c : added win32 specific code to display a html
6246 file. #include "text.h" for text_delete_all prototype.
6249 * app/dia.rc : (new) to give Dia win32 an icon
6251 * app/win32print.[ch] : new files to support direct postscript
6252 file printing on win32. Beware: it *requires* a ps-printer!
6254 * app/paginate_psprint.c : disable the signal code for win32 build
6255 and added small specific changes to support win32print.
6257 * app/makefile.msc : added win32print and linking shell32.lib
6259 * lib/libdia.def : updated
6261 2001-03-18 Kevin Breit <battery841@mediaone.net>
6263 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
6266 2001-03-17 James Henstridge <james@daa.com.au>
6268 * app/paginate_psprint.c (diagram_print_ps): add code that traps
6269 SIGPIPEs during printing. This gets rid of a number of crashes
6270 caused by printing (eg. typing an incorrect print command).
6272 * dia.spec (%install): gzip the manpage.
6274 * lib/beziershape.c (beziershape_save): fix off by one error in
6275 beziershape save code, which was adding an extra segment to the
6278 * app/menus.c: add a separator in the gnome version of the help
6281 * app/app_procs.c (app_init): add a --nosplash argument which
6282 disables the splash screen.
6284 * app/dia_embedd.c (main): don't leave the splash screen open for
6285 embeddable component.
6287 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
6288 didn't seem to be showing the splash screen like expected, so I
6289 have replaced it with some code that calls gtk_main() until the
6290 first exposure of the window.
6292 2001-03-16 James Henstridge <james@daa.com.au>
6294 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
6296 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
6299 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
6301 * app/Makefile.am (dia_core_files): remove splash.h from file
6302 list, as it doesn't exist.
6304 * doc/en/Makefile.am (uninstall-local): remove the docdir on
6307 * doc/Makefile.am (uninstall-local): target to remove the C
6310 * dia.spec (%files): include the documentation in the package.
6312 * app/menus.c (toolbox_menu_items): add menu item for manual,
6313 which calls help_manual_callback.
6315 * app/commands.c (help_manual_callback): find help file and load
6316 netscape to view it.
6318 * app/commands.h: add prototype for help_manual_callback()
6320 * doc/Makefile.am (helpdir): similar here.
6322 * doc/en/Makefile.am (helpdir): make the helpdir
6323 $(pkgdatadir)/help/en in the non gnome case.
6325 * configure.in (HAVE_GNOME): add conditional.
6327 * doc/en/Makefile.am: handle the graphics in a more general way,
6328 so it is easier for Kevin to add them to the build (just add them
6329 to the GRAPHICS var).
6331 * app/Makefile.am (embed_extra_print_files): make the case of
6332 building without gnome-print support but with bonobo support work.
6333 dia-embedd needs to be include the gnome-print
6335 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
6337 * samples/Makefile.am: included all samples in the distribution....
6339 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
6341 * configure.in: removed premature test for DPS. Added -*- m4 -*-
6342 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
6343 vanished, removed it from ALL_LINGUAS.
6345 * lib/charconv.[ch] (NEW): a very small wrapper around
6346 unicode_iconv to convert strings between utf8 and local charset
6347 (actually, ISO-8859-1, though one can do
6348 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
6350 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
6351 library to help build Postscript streams which use as many custom
6352 font encodings as necessary to correctly represent all characters
6353 used (testing from users with non-latin1 and/or more than 256
6354 characters in routine use *very* welcome).
6356 * app/Makefile.am, lib/Makefile.am: integrated these into the
6359 * shapes/Logic/.cvsignore (NEW): .cvsignore
6361 * app/render_eps.h: forwarded some changes Lars forgot to include.
6362 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
6365 2001-03-08 Kevin Breit <battery841@mediaone.net>
6367 * doc/en/home_network.png: Added file.
6368 * doc/en/line_props.png: Added file.
6369 * doc/en/usage-objects.sgml: Added two graphics to file.
6370 * doc/en/usage-quickstart.sgml: Added one graphic to file.
6372 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
6374 * app/grid.h: Place comment around text after #endif.
6375 * lib/bezier_conn.c: #include <string.h>.
6376 * lib/beziershape.c: #include <string.h>.
6377 * lib/connpoint_line.h: Comment after #endif.
6378 * lib/dia_dirs.c: #include <string.h>.
6379 * lib/element.c: Same.
6380 * lib/lazyprops.c: #include <config.h> and "intl.h".
6381 * lib/lazyprops.h: Comment out text after #endif.
6382 * lib/neworth_conn.c: #include <string.h>
6383 * lib/orth_conn.c: Same here.
6384 * lib/poly_conn.c: Here too.
6385 * lib/polyshape.c: And here.
6386 * lib/properties.c: Remove #include "intl.h" from here and add
6387 an array of static strings to work around bug in gettext that
6388 makes it miss strings in a #define body.
6389 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
6390 * objects/GRAFCET/boolequation.h: Same here.
6391 * objects/chronogram/chronoline_event.h: Add prototype for
6394 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
6396 * objects/FS/function.c:
6397 * objects/FS/flow.c:
6398 * objects/FS/flow-ortho.c:
6399 Updated to use properties.
6401 2001-03-03 James Henstridge <james@daa.com.au>
6403 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
6404 button labels when creating them.
6406 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
6408 * objects/UML/actor.c
6409 * objects/UML/realizes.c
6410 * objects/UML/implements.c
6411 * objects/UML/generalization.c
6412 * objects/UML/dependency.c
6413 * objects/UML/constraint.c
6414 Updated to use properties.
6416 * objects/UML/stereotype.c
6417 * objects/UML/stereotype.h
6418 Generalized to any kind of bracketting.
6420 2001-02-28 James Henstridge <james@daa.com.au>
6422 * app/menus.c: add help entry to the help menu. Need to get this
6423 working for the non GNOME case as well (maybe put help under
6424 $(datadir)/dia/help for non GNOME?)
6426 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
6428 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
6429 this element so that we get a meaningful filename in the html
6432 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
6435 * configure.in (DB2HTML): add a check for the db2html program, and
6436 set an automake conditional if it is found.
6438 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
6439 and descend into doc/ directory while building.
6441 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
6442 we need more complex rules for building the docs.
6444 2001-02-25 Hans Breuer <hans@breuer.org>
6446 * config.h.win32 : some cleanup
6448 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
6449 are deprecated since glib-1.3.2. Sorry needing to use them
6450 contionally, but there is no glib-1.2 for win32
6452 * app/recent_files.c : use g_strescape (params) conditionally
6454 * lib/connection.c : include string.h for memcpy
6456 * lib/geometry.h : added some stuff for compatibility with
6457 msvc, which previously came from included config.h
6459 * lib/libdia.def : updated
6461 * objects/makefile.msc : updated
6463 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
6464 'extra' used without having been initialized
6466 * objects/network/bus.c(658) : initialize 'extra'
6468 * plug-ins/makefile.msc : updated
6470 * plug-ins/cgm/cgm.c :
6471 * plug-ins/pstricks/render_pstricks.c :
6472 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
6475 * plug-ins/python/python.c : use HAVE_DIRENT_H
6477 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
6479 * lib/connection.c (connection_update_boundingbox):
6480 Made the BB shrink on right and lower sides, too.
6482 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
6484 * */*.c: #incude <config.h> at the top.
6485 * */*.h: Remove include of "config.h" since it should only
6486 be included in .c files and at the very top for things to
6488 * sheets/*.sheet: Updated Norwegian translations.
6490 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
6492 * objects/UML/small_package.c:
6493 * objects/UML/class.c:
6494 * objects/UML/node.c:
6495 * objects/UML/usecase.c:
6496 * objects/UML/lifeline.c:
6497 * objects/UML/message.c:
6498 Various cleanup of properties in particular. Now much more use of
6499 standard properties.
6501 * lib/diagramdata.c (layer_render): Visualization of bounding
6502 boxes, for debugging purpoises.
6504 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
6507 * lib/connection.[ch]:
6508 * lib/poly_conn.[ch]:
6509 * lib/polyshape.[ch]:
6510 * lib/bezier_conn.[ch]:
6511 * lib/beziershape.[ch]:
6512 * lib/orth_conn.[ch]:
6513 * lib/neworth_conn.[ch]:
6514 * lib/element.[ch]: Changed a bit the _update_boundingbox()
6515 interface. Now the parent elements have an extra_spacing
6516 structure, which child objects just need to fill, to take care of
6517 most arrow & line width extra space needs.
6519 * objects/**/*.c: updated all objects to the new interface.
6520 While at it, killed all instances of (Object *) downcasts (phew !)
6522 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
6523 doesn't speak about.
6525 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
6527 * sheets/Logic.sheet: New sheet for Logic symbols.
6529 2001-02-21 James Henstridge <james@daa.com.au>
6531 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
6532 widget by its path name. Walks the GnomeUIInfo heirachy rather
6533 than widget tree, compares untranslated label names and ignores
6534 underscores in the labels.
6535 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
6536 lookups are not dependent on the current locale, as with
6537 gnome_app_find_menu_pos.
6539 * acconfig.h: guard against multiple inclusion of config.h.
6541 * app/select.c (select_style_callback): simply set the selection
6542 style to the value of action.
6544 * app/menus.c (menus_init): simplify the item factory based menu
6545 code a bit. It looks like it was using some code cut and pasted
6546 from the gimp, which looked a bit unnecessary. Things work fine
6548 (selectmenu): set the action to the type of selection mode
6550 (display_menu_items): use the symbolic enumeration values for the
6553 * app/plugin-manager.c:
6554 * app/plugin-manager.h:
6558 * app/select.h: change prototypes.
6560 * app/commands.c: update all callback prototypes, and get rid of
6561 some #ifdef GNOME's.
6563 * app/commands.h: change function prototypes.
6565 * app/dia_embedd.c (save_fn):
6566 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
6568 * app/menus.c (menus_init): for gnome menus, use
6569 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
6570 structure that proxies the callbacks to have the same signature as
6571 GtkItemFactory type 1 callbacks.
6572 (menus_init): for GTK menus, change from callback type 2 to type
6574 (display_menu_items): add back tearoffs. I don't know who removed
6575 these for the gtk menu case.
6577 2001-02-20 Kevin Breit <battery841@mediaone.net>
6579 * doc/en/usage-objects-special.sgml: Fixed a few of the special
6580 object descriptions. More to come in the next few days.
6582 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
6584 * app/render_eps.c: Fixed for internationalized floating point
6587 * objects/UML/note.c: Fixed properties -- was missing
6588 Get/ApplyPropertiesFunc. Also improved update to recalculate text
6591 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
6593 * plug-ins/xfig/xfig-import.c:
6594 File added importing xfig files. Still very rough, but good
6595 enough to let others hack on it.
6597 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
6600 * app/linewidth_area.c:
6604 * objects/ER/attribute.c:
6605 * objects/ER/entity.c:
6606 * objects/ER/relationship.c:
6607 * objects/custom/custom_object.c:
6608 * objects/flowchart/box.c:
6609 * objects/flowchart/diamond.c:
6610 * objects/flowchart/ellipse.c:
6611 * objects/flowchart/parallelogram.c:
6612 * objects/standard/box.c:
6613 * objects/standard/textobj.c: per Vlad Harchev's request, made
6614 page sizes of gtk_adjustments different than their step sizes.
6615 When sensible values of page size weren't found (overwhelming
6616 majority of cases), page sizes were set to 10.0 * respective step
6619 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
6621 * objects/network/hub.c:
6622 Patch from Hubert Figuiere applied, adding connection points.
6624 2001-02-02 James Henstridge <james@daa.com.au>
6626 * app/display.c (new_display): set update id to 0 here.
6627 (ddisplay_update_handler): rename from ddisplay_flush, and set
6628 update_id to 0 at end of processing.
6629 (ddisplay_flush): new implementation that simply sets an idle
6630 handler to perform the actual drawing.
6632 * app/display.h: add structure member to hold the redraw idle
6635 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6637 * objects/standard/ellipse.c (ellipse_copy):
6638 * objects/standard/zigzagline.c (zigzagline_copy):
6639 Fix of copying provided by Martin Hawlisch.
6641 2001-01-23 Kevin Breit <battery841@mediaone.net>
6643 * doc/en/graphics/: added directory
6645 * doc/en/graphics/greendots.png: added file
6647 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
6650 2001-01-23 Kevin Breit <battery841@mediaone.net>
6652 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
6653 thanks to John Fleck!
6655 2001-01-21 Kevin Breit <battery841@mediaone.net>
6657 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
6659 2001-01-12 Michael Meeks <michael@helixcode.com>
6661 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
6662 so our POA gets setup properly.
6664 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
6667 * configure.in: Use bonobox_print.
6669 * app/dia_embedd.c (embeddable_factory): add print interface.
6670 (object_print): impl.
6672 2001-01-11 Michael Meeks <michael@helixcode.com>
6674 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
6675 (load_fn, save_fn): impl.
6676 (view_factory): hide modified status bar, & use activate fn.
6677 (refresh_view): force redraws of the views.
6678 (view_show_hide): split from
6679 (dia_view_activate): here.
6681 * app/diagram.c (diagram_load_into): split from diagram_load.
6682 (new_diagram): simplify bu splittin stuff into
6683 (diagram_init): here.
6685 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
6687 * shapes/jigsaw/*.shape: replaced #000000 with foreground
6688 and #ffffff with background
6690 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
6692 *configure.in: GTK+-build was broken due to missing
6695 2001-01-06 Michael Meeks <michael@helixcode.com>
6697 * app/dia_embedd.c (main): add running context support.
6698 (dia_embeddable_destroy): remove old running object counting.
6699 (embeddable_factory): ditto.
6700 (view_factory): comment out menu path hiding.
6702 * lib/sheet.c (load_register_sheet): use free to free
6703 stuff from libxml not g_free.
6705 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
6707 * configure.in: remove USE_OAF checks, check for a precice
6708 Bonobo version >= 0.31, revamp bits.
6710 * app/dia_embedd.c (init_server_factory): upd.
6711 (init_dia_factory): remove OAF conditionals, everything uses
6714 * app/GNOME_Dia.oafinfo: rename OAFIIDs
6716 * app/Makefile.am: remove ancient gnorba code.
6717 rename dia.oafinfo to GNOME_Dia.oafinfo
6719 2001-01-07 Hans Breuer <Hans@Breuer.Org>
6723 * readme.win32 : some more files required or useful to build
6726 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
6727 fill_bezier implementation, boundary drawing in fill mode, etc.
6728 Next one complaining gets the source, uncommented ...
6730 * shapes/network/router-symbol.xpm
6731 * shapes/network/switch-atm-symbol.xpm
6732 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
6733 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
6734 the files as XPMs. Maybe the X versions of these functions are more
6737 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
6739 * plug-ins/python/Makefile.am: added libart path
6741 * plug-ins/python/python.c: added dirent.h
6743 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
6745 2001-01-06 Hans Breuer <Hans@Breuer.Org>
6747 * objects/uml/actor.c
6748 * objects/uml/branch.c
6749 * objects/uml/class.c
6750 * objects/uml/classicon.c
6751 * objects/uml/component.c
6752 * objects/uml/large_package.c
6753 * objects/uml/node.c
6754 * objects/uml/note.c
6755 * objects/uml/object.c
6756 * objects/uml/small_package.c
6757 * objects/uml/state.c
6758 * objects/uml/usecase.c : started to implement the generic property
6759 interface for the uml objects. Would appreciate some help on how
6760 to implement properties which are list of properties themselves,
6761 e.g. member functions and their parameters of UMLClass.
6763 2001-01-06 Hans Breuer <Hans@Breuer.Org>
6765 * plug-ins/python/diamodule.c : finally ported to win32.
6766 Added new objects and implemented register_export function.
6768 * plug-ins/python/pydia-object.h
6769 * plug-ins/python/pydia-display.c
6770 * plug-ins/python/pydia-handle.c
6771 PyObject_HEAD_INIT needs some tweakink on win32. Done in
6772 pydia-object.h; others files simply using it.
6774 * plug-ins/python/pydia-layer.c : reflect
6775 layer_find_closest_connection(_)point renaming
6777 * plug-ins/python/pydia-object.c : add property properties.
6778 Also change bounding_box to DiaRectangle.
6780 * plug-ins/python/python.c : extended error reporting; use
6781 all *.py files from Dia's plug-in dir instead of hardcoded
6782 test.py. This sollution should be fine with Win32, but on
6783 Unix it may need some tweaking (dunno) ...
6785 * plug-ins/python/export-object.py
6786 * plug-ins/python/export-render.py : test and documentation
6787 implementations for export filter implementations in Python
6789 * plug-ins/python/pydia-color.[hc]
6790 * plug-ins/python/pydia-diagramdata.[hc]
6791 * plug-ins/python/pydia-error.[hc]
6792 * plug-ins/python/pydia-export.[hc]
6793 * plug-ins/python/pydia-font.[hc]
6794 * plug-ins/python/pydia-geometry.[hc]
6795 * plug-ins/python/pydia-image.[hc]
6796 * plug-ins/python/pydia-properties.[hc]
6797 * plug-ins/python/pydia-property.c
6798 * plug-ins/python/pydia-render.c : new objects in new files
6800 * plug-ins/python/makefile.am : added new files but can't test it
6802 * plug-ins/python/pydia.def
6803 * plug-ins/python/makefile.msc : for win32 build
6805 * plug-ins/cgm/cgm.c
6806 * plug-ins/dxf/dxf-import.c
6807 * plug-ins/dxf/dxf-export.c
6808 * plug-ins/hpgl/hpgl.c : reflect export API change
6810 * plug-ins/shape/shape-export.c : reflect export API change
6811 and check for libart (better the availibility of a png exporter)
6812 at run-time instead of compile-time.
6814 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
6816 * app/recent_files.h was missing from Hans's commit
6818 * plug-ins/shape/shape_export.c: shape export was broken
6819 due to interface changes
6821 2001-01-05 Hans Breuer <Hans@Breuer.Org>
6823 Applied Steffen's recent file list patch :
6824 * app/Makefile.am : added recent_files.[hc]
6825 * app/diagram.c : add files to recent file list
6826 * app/menus.c : add recent file menu
6827 * app/app_procs.c : changed initialization order to
6828 make recent file list work with command line processing.
6830 The Filter export()/import() functions have got an additional
6831 parameter to allow multiple filters via one C callback (required
6832 for Python bindings)
6834 * app/commands.[hc] : corrected the signature for gtk menu callback
6835 functions, which actually use the second or third parameter. This
6836 is the absolute minimum change to make these functions/menu entries
6837 work again. Using the other possible gtk menu callback signature
6838 would have required one more function to change. (see mailing list
6839 thread "Objects/Align/Equal Distance" for more information.
6841 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
6842 zoom-combo focus patch
6845 * app/interface.c : wrapped the Zoom Combo code into
6846 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
6847 improvement but cluttering the user interface. Also it wasn't
6848 compiling on Win32 anyway. The win32 version does define
6849 WITHOUT_ZOOM_COMBO to keep the old look.
6850 There are plans to use the statusbar to display size and placement
6851 of selected objects, whereas the Zoom Combo would need to get out
6854 Added "Save Changes?" to diagram close dialog. Hopefuly the
6855 Yes/No/Cancel option isn't too much windoze like. IHMO this is
6856 an useability improvement.
6861 * app/layer_dialog.c
6862 * app/paginate_psprint.c
6864 - reflect signature changing of filter->export function
6865 - replaced '/' with G_DIR_SEPARARTOR where appropriate
6867 * app/diaunitspinner.c
6868 * app/render_libart.c
6869 added misssing headers like <string.h>
6871 * app/object_ops.c : fixed copy&paste bug in dialog string
6873 * app/splash.c : gdk_widget_show_now () does not ensure actual
6874 drawing of the splash screen, at least not on win32. Reuse the
6875 previous implementation with gtk_main_iteration() again.
6877 * */makefile.msc : make use of the build module (available in
6878 gnome-cvs/build. Updated for other source changes
6880 * lib/filter.h : added an user_data pointer to <ex/im>port()
6881 function signature and Dia<Im/Ex>portFilter to allow different
6882 filters to reuse the same callback function
6884 * lib/font.c : #include <string.h>
6889 * lib/neworth_conn.c
6890 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
6892 * */*.def : export function definition files required by win32 build
6894 * objects/custom/custom.c : #include <string.h>
6896 * plug-ins/pstricks/render_pstricks.c
6897 * plug-ins/shape/shape_export.c
6898 * plug-ins/svg/render_svg.c
6899 reflect changes to filter export function signature
6901 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
6902 mostly work as expected
6903 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
6904 to build the wmf plug-in because on the one hand the GDI emulation
6905 isn't finished and on the other hand it isn't required when building
6906 for win32. Is there anybody out there, who wants to save WMF on non
6909 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
6910 offset into account.
6912 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
6914 * app/Makefile.am: added missing plug-ins to run_dia.sh
6916 * lib/paper.c: added paper sizes A0, A1, A2
6918 * objects/UML/class.c
6920 objects/UML/class_dialog.c: added support for colored UML
6923 2000-12-30 Kevin Breit <battery841@mediaone.net>
6925 * doc/en/usage-customization.sgml: added more content
6927 2000-12-24 Kevin Breit <battery841@mediaone.net>
6929 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
6930 <remy.viard@laposte.net>
6932 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
6934 * added limiting lines to Civil Engineering sheet,
6935 fixed vertical pump icon
6937 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
6939 * updated/additional Civil Engineering shapes: better icons,
6940 shapes use foreground/background colors now and are filled
6942 2000-12-03 Kevin Breit <battery841@mediaone.net>
6944 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
6945 the selection <sect1>
6947 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
6949 * app/load_save.c (diagram_data_save): avoid using obsoleted
6950 libxml calls (only matters when compiling with libxml2)
6952 2000-11-25 James Henstridge <james@daa.com.au>
6954 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
6955 handle the tool drops on the canvas.
6957 * app/interface.c (display_data_received_callback): do the check
6958 to make sure that the drag is from a local toolbox here as well.
6960 * app/interface.c (create_tools): unref the pixmap/mask after
6961 creating the GtkPixmap.
6962 (tool_setup_drag_source): function to set up a drag source for
6963 create object tool buttons.
6964 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
6965 (fill_sheet_wbox): same here.
6966 (create_display_shell): set up the display canvas as a drag
6968 (display_drop_callback, display_data_received_callback): functions
6969 to handle drops of tool buttons.
6971 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
6972 does weird shit to the user_data pointer for a menu item. Object
6973 alignment should work again now.
6975 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
6976 NULL, and mark this function static.
6977 (app_splash_init): use gtk_widget_show_now() instead of the
6978 gtk_main_iteration loop.
6979 (app_splash_init): connecting gtk_widget_destroy to the destroy
6980 signal of a widget seems pretty useless.
6982 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
6984 * doc/en/dia-manual.sgml:
6985 Added sect1 for advanced object types. Starting development
6988 2000-11-18 Kevin Breit <battery841@mediaone.net>
6990 * doc/en/dia-manual.sgml:
6991 Stupid spelling fixes.
6993 2000-11-18 Kevin Breit <battery841@mediaone.net>
6995 * doc/en/dia-manual.sgml:
6996 Just some small changes I made. Props to Greg LeBlanc on the
6999 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
7002 (ddisplay_add_display_area): Clip input rectangle to
7003 the visible part of the display.
7004 (ddisplay_scroll): Optimization, don't scroll and
7005 redraw if moving to the same position as before.
7007 * app/render_libart.c (renderer_libart_copy_to_window):
7008 Removed sanity check. Now moved to ddisplay_add_display_area().
7011 Added return at end of file.
7013 2000-11-13 Kevin Breit <battery841@mypad.com>
7014 * doc/en/dia-manual.sgml
7015 Commited manual changes from Henry House <hajhouse@houseag.com>
7017 2000-10-21 Hans Breuer <Hans@Breuer.Org>
7018 * lib/beziershape.c :
7019 The previous code was accessing unowned memory due to IHMO
7020 wrong index calculation. Now it appears to be fixed.
7024 * plug-ins/makefile.msc
7025 * objects/makefile.msc
7026 * app/makefile.msc: (new files)
7027 Makefiles for Dia on Win32, Micro$oft VC only.
7029 * plug-ins/pstricks/render_pstricks.c
7030 * plug-ins/dxf/dxf-import.c
7031 * plug-ins/shape/shape-export.c
7032 * plug-ins/svg/render_svg.c
7039 * objects/custom/custom.c
7040 * objects/standard/image.c
7041 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
7042 where appropriate, add missing prototypes like <string.h>
7044 * plug-ins/wmf/wmf_gdi.cpp
7045 * plug-ins/wmf/wmf_gdi.h:
7046 start of wmf write functions for non Win32 platform. Not
7047 finished yet. The other way to get it working maybe to
7048 link the plug-in against wine libs.
7050 * plug-ins/wpg/wpg.c : add missing brace
7053 Handling for unknown objects at load time. Previously Dia
7054 was crashing, if you try to load a file referencing objects
7055 whiches plug-ins aren't installed/available. Now it spits out
7056 a warning and ignores the unknown objects.
7059 toolbox DND support for files like The Gimp does it.
7063 Simple splash screen support and usage.
7066 Splash screen, portability fixes, dont' g_error if there is
7067 g_get_homedir return NULL. This may remove the one and only
7071 Make it compile without ENABLE_NLS
7073 * app/render_libart.c :
7074 Sanity check to avoid calling libart with wrong window coordinates.
7075 They come from the update handler. Direct Gdk is dealing nicely
7076 with coordinates out of range, libart does access un-owned memory
7077 in this case, mostly causing crashes.
7079 * app/winmain.c: (new file) Export the Win32 Gui version of the
7080 main function. This file is only required for Windoze.
7082 * app/splash.c: (new file) splash screen implementation
7086 * lib/diavar.h: (new file)
7087 moved special variable export code to diavar.h, because it is
7088 needed in color.h and font.h
7091 M$VC cann't export inlined functions. Quick hack to let it
7092 link again. Probably the glib mechanics should be used here?
7094 * objects/UML/lifeline.c : initialize var before usage
7096 * objects/GRAFCET/step.c : removed unused var
7098 2000-10-14 James Henstridge <james@daa.com.au>
7100 * app/render_gnomeprint.c (draw_image): change code so images
7101 don't get flipped when printing.
7103 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
7104 sure that the return value of
7105 gnome_print_context_new_with_paper_size is not NULL.
7107 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
7108 into a series of bezier segments.
7109 (fill_arc): similar code to handle filled arc segments.
7111 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
7118 * app/disp_callbacks.c
7120 * app/linewidth_area.c
7121 * app/paginate_psprint.c
7126 * app/neworth_conn.c
7128 * objects/standard/box.c: various small changes to get rid of
7129 annoying warnings (eg faulty prototypes and unused variables)
7131 * app/disp_callbacks.c
7134 * app/magnify.h: update magnify tool icon when pressing/releasing
7135 shift. I will try to make something more general so that similar
7136 things can be used by other tools.
7138 * shapes/SDL/inout.shape
7139 * shapes/SDL/return.shape: fixed some typos
7141 2000-10-09 James Henstridge <james@daa.com.au>
7143 * objects/custom/shape_info.c (parse_path): apply patch from
7144 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
7147 2000-10-08 James Henstridge <james@daa.com.au>
7149 * objects/standard/image.c (image_set_props): if the file could not
7150 be loaded, show the broken image icon.
7152 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
7154 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
7156 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
7157 object icon when loading from a file. This allows you to have PNG
7158 icon files for shapes.
7160 2000-10-07 James Henstridge <james@daa.com.au>
7162 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
7164 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
7165 GDK_IMLIB_CFLAGS reference.
7167 * app/commands.c (help_about_callback): remove imlib code.
7169 * lib/dia_image.c: only include the pixbuf version of the image
7172 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
7174 * configure.in (CPPFLAGS): remove the check for imlib, as we now
7177 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
7178 conditionally define \setfont as well.
7180 2000-10-05 James Henstridge <james@daa.com.au>
7182 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
7183 preamble so that we define \setlinejoinmode and \setlinecaps
7184 commands conditionally on them being undefined. This way, the
7185 pstricks output files should work without modification, and will
7186 support the commands when they are implemented in pstricks.
7188 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
7190 * dia.desktop: added hungarian translations to dia.desktop
7192 2000-10-04 James Henstridge <james@daa.com.au>
7194 * sheets/UML.sheet: fix typo.
7196 * objects/custom/shape_info.c: use strtod instead of g_strtod.
7197 (parse_path): actually call setlocale around strtod calls.
7199 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
7200 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
7201 the g_strtod wrapper.
7203 * shapes/SDL/: add SDL shapes from Rubens Ramos
7204 <rubens_ramos@yahoo.com>
7206 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
7208 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
7210 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
7211 W. Michael Petullo <mike@flyn.org>.
7213 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
7214 from the 0.86 tarball) and jigsaw.sheet.
7216 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
7218 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
7220 * shapes/network/: add network-additional shapes here.
7222 * sheets/network.sheet: add the network-additional shapes from
7223 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
7226 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
7228 * configure.in: Updated ALL_LINGUAS
7230 * po/nl.po: Removed newline from translation
7232 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
7234 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
7235 logo filename generation.
7237 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
7238 Avoiding "//dia_logo.png".
7240 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
7242 * app/filedlg.c: add include <sys/types.h> to
7243 remove warning. (OS/2)
7245 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
7247 * objects/chronogram/chronoline_event.c (reparse_clevent):
7248 the __checksum routine was simply bogus. Redone it in a slightly
7249 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
7251 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
7253 * app/create_object.c (create_object_button_press):
7254 * app/modify_tool.c (click_select_object):
7255 * lib/object.h: select renamed to selectf to prevent
7256 compiler problems with function select(). OS/2 version.
7258 2000-09-08 Karsten Weiss <knweiss@gmx.de>
7260 * po/de.po: Updated.
7262 2000-09-07 Karsten Weiss <knweiss@gmx.de>
7264 * dia.desktop: Added German translation
7265 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
7267 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
7269 * configure.in (ALL_LINGUAS): added "es"
7271 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
7276 * app/scroll_tool.c:
7277 Standardized cursor function get_cursor(). Magnify now has
7278 looking-glass cursor with + and -.
7280 * app/create_object.c (create_object_button_press):
7281 Newly created connections now snap to connection points even when
7284 2000-08-17 Daniel Egger <egger@suse.de>
7286 * app/menus.c: #ifdef'ed some code for the none GNOME
7288 * app/dia_embedd.c: Changed obvious hackery. Can anyone
7289 please have a look at the GNOME UI menu creation? The
7290 gnome-app-helper code is ages old and plainly broken!
7292 2000-08-15 Daniel Egger <egger@suse.de>
7299 * app/select.c: First big patch to get the menus
7300 working again in the international version. Copied
7301 some code written by Sven and me from GIMP and
7302 thus implemented automatic tearoffmenu creation and
7303 proper translation. I also removed that pseudo
7304 radiomenu hack and cleaned up several translation
7305 hacks which have never really worked. All in all
7306 this is part I of the big menu patch. Enjoy and tell
7307 me if you detect any problems.
7309 2000-08-14 Daniel Egger <egger@suse.de>
7311 * sheets/UML.sheet: Changed one German translation as
7312 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
7314 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
7316 * app/diapagelayout.c:
7317 * lib/diagramdata.c:
7318 * lib/diagramdata.h:
7321 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
7322 selecting paper size for a new diagram. TODO: Use libpaper if
7323 available and use gnome_paper-stuff if using GNOME.
7325 * sheets/Electric.sheet: fixed typo.
7327 2000-08-08 James Henstridge <james@daa.com.au>
7329 * po/README: added a readme file to tell translators to translate
7330 the .sheet files as well.
7332 * app/commands.c (help_about_callback): fix small bug where we tried
7333 to gdk_bitmap_unref() the mask for the about box image, even though
7334 it was NULL. Now check for a NULL mask.
7336 2000-08-07 Daniel Egger <egger@suse.de>
7338 * sheets/*.sheet: Added translations for the name
7339 in the toolbar tab. Brushed up some descriptions
7340 and some translations a bit.
7342 2000-08-06 James Henstridge <james@daa.com.au>
7344 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
7345 identifier and dtd url for SVG output.
7346 (new_svg_renderer): fix the output of the viewBox output. The
7347 second two numbers are the width and height -- not the right
7348 and bottom sides of the box.
7350 * shapes/*/*.shape: update svg namespace URI.
7352 * objects/custom/shape_info.c (load_shape_info): change the
7353 namespace URI for custom shapes yet again to match the Candidate
7354 Recommedation. It looks like this one will probably be the final
7357 * app/display.c (new_display): remove the code that sets ic and
7358 ic_attr members to NULL, as one of the previous function calls
7359 causes the display to be realised. This means that the ic gets
7360 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
7363 2000-08-06 James Henstridge <james@daa.com.au>
7365 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
7367 * NEWS: fixed date in NEWS file, as I will release today.
7369 * README: updated the README a little. Added note that Dia is now
7372 * dia.spec: fix up spec file.
7374 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
7376 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
7377 get heaps of warnings when you turn off debugging.
7378 Also made a few other warning fixes.
7380 2000-08-02 James Henstridge <james@daa.com.au>
7382 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
7384 * configure.in: update version number.
7386 2000-08-01 James Henstridge <james@daa.com.au>
7388 * app/commands.c (help_about_callback): add Hans to about dialog.
7390 * doc/shape.dtd: dtd for shape file format.
7392 * doc/custom-shapes: update doc file about creating custom shapes.
7394 * shapes/*/*.shape: change namespace URI for the SVG portion to the
7395 one for the latest draft.
7397 * shapes/*/*.shape: fix up rect definitions.
7399 * objects/custom/shape_info.c (load_shape_info): recognise newer
7400 namespace tag for SVG.
7401 (parse_svg_node): the rect element should take attributes x, y, width
7402 and height -- not x1,y1,x2,y2.
7404 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
7405 output to use the newest draft DTD.
7407 * plug-ins/svg/svg.c: initialisation code for plugin.
7409 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
7411 * plug-ins/svg/Makefile.am: makefile for svg plugin.
7413 * app/app_procs.c (internal_plugin_init): don't register the svg
7416 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
7418 2000-07-31 James Henstridge <james@daa.com.au>
7420 * objects/standard/textobj.c (textobj_get_defaults):
7421 * objects/standard/polygon.c (polygon_get_defaults):
7422 * objects/standard/image.c (image_get_defaults):
7423 * objects/standard/ellipse.c (ellipse_get_defaults):
7424 * objects/standard/box.c (box_get_defaults):
7425 * objects/standard/beziergon.c (beziergon_get_defaults):
7426 * objects/flowchart/parallelogram.c (pgram_get_defaults):
7427 * objects/flowchart/ellipse.c (ellipse_get_defaults):
7428 * objects/flowchart/diamond.c (diamond_get_defaults):
7429 * objects/flowchart/box.c (box_get_defaults):
7430 * objects/custom/custom_object.c (custom_get_defaults):
7431 * objects/FS/flow.c (flow_get_defaults):
7432 * objects/FS/flow-poly.c (flow_get_defaults):
7433 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
7436 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
7437 widgets for various object types.
7438 (create_dialog): ref and sink the no_defaults_dialog.
7440 * app/preferences.c (prefs_create_dialog): change
7441 gtk_container_border_width call to gtk_container_set_border_width.
7443 2000-07-29 James Henstridge <james@daa.com.au>
7445 * app/commands.c (view_aa_callback): show a warning dialog if
7448 * app/interface.c (fill_sheet_menu): don't add a menu item for
7451 2000-07-26 James Henstridge <james@daa.com.au>
7453 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
7455 * app/menus.c: remove edit grid menu item.
7457 * app/commands.[ch] (view_edit_grid_callback): removed.
7459 * app/display.c (new_display): don't initialise removed Grid members.
7461 * app/grid.c: remove unused functions.
7463 * app/grid.h: remove dialog related stuff from Grid structure.
7464 Remove prototypes for dialog functions.
7466 * app/menus.c: add to menus
7468 * app/commands.[ch] (view_diagram_properties_callback): new command
7469 for showing the diagram properties dialog.
7471 * app/dia-props.[ch]: a new diagram properties dialog. To replace
7472 the edit grid dialog.
7474 2000-07-25 James Henstridge <james@daa.com.au>
7476 * app/grid.c (grid_x_update):
7477 (grid_y_update): as the grid setting is stored with the diagram,
7478 update all displays when a change is made.
7480 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
7482 * app/create_object.c (create_object_button_press):
7483 (create_object_motion): use new snap_to_grid signature.
7485 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
7486 and handle invisible grid lines.
7487 (snap_to_grid): use new grid settings. Also changed signature to
7488 take a DDisplay rather than Grid pointer.
7489 (grid_show_dialog): get the defaults from the correct place.
7491 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
7493 * app/diagram.c (new_diagram): set the grid size defaults from the
7496 * app/load_save.c (diagram_data_save): save grid and guide info to
7498 (diagram_data_load): add guide and grid load support.
7500 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
7503 * lib/diagramdata.h: add members to DiagramData for grid and guide
7506 * configure.in (BONOBO_LIBS): update configure scripts
7508 * app/dia.oafinfo: oafinfo file for dia embeddables.
7510 * app/dia_embedd.c: add OAF support.
7512 2000-07-24 James Henstridge <james@daa.com.au>
7514 * plug-ins/wpg/Makefile.am:
7515 * plug-ins/pstricks/Makefile.am:
7516 * plug-ins/hpgl/Makefile.am:
7517 * plug-ins/dxf/Makefile.am: same here.
7519 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
7520 the required libraries, and the link line was causing libtool not
7521 to build a shared library on some systems :(
7523 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
7524 be checking x, not n.
7526 2000-07-23 James Henstridge <james@daa.com.au>
7528 * app/preferences.c (prefs_data): set the "reset tools after
7529 create" preference to true by default. That seems to be what most
7532 * app/interface.c (create_sheets): instead of a notebook, use an
7533 option menu that updates the sheet tools. The notebook tabs were
7534 getting a bit unwieldly, so the option menu should fix that. This
7535 also reduces the number of widgets in the tools radio button
7536 group, which should make the UI a little more responsive.
7538 2000-07-19 Fatih Demir <kabalak@gmx.net>
7540 * configure.in: Added tr to ALL_LINGUAS.
7541 [ Yeah, we're now having a Turkish translation,
7544 * dia.desktop: Added the Turkish entries.
7546 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
7548 * doc/diagram.dtd: changed string-element so it conforms to the
7551 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
7553 * configure.in: added chinese.
7554 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
7562 objects/custom/shape_info.c:
7563 shapes/Circuit/npn.shape:
7564 shapes/Circuit/pnp.shape:
7565 sheets/*.sheet: dia now works with libxml2.
7566 Libxml2 is a bit more picky when parsing xml and reported errors on all
7567 sheet files because they use non ascii characters (added
7568 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
7569 I commented out these.
7571 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
7573 * configure.in (ALL_LINGUAS): added Italian
7575 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
7577 * configure.in (ALL_LINGUAS): added Korean
7579 2000-06-25 James Henstridge <james@daa.com.au>
7581 * objects/flowchart/parallelogram.c (pgram_create): use default font
7582 and add properties interface support.
7584 * objects/flowchart/ellipse.c (ellipse_create): use default font and
7585 add properties interface support.
7587 * objects/flowchart/diamond.c (diamond_create): use default font and
7588 add properties interface code.
7590 * objects/flowchart/box.c (box_create): use default font.
7592 * objects/custom/custom_object.c (custom_create): use default font
7595 * objects/standard/textobj.c (textobj_create): update to use default
7598 * lib/attributes.c: add implementations.
7600 * lib/attributes.h (attributes_[gs]et_default_font): add function
7601 prototypes for setting/getting a default font.
7603 2000-06-24 James Henstridge <james@daa.com.au>
7605 * app/paginate_gnomeprint.h: updated prototype.
7607 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
7608 diagram page settings.
7610 * objects/standard/beziergon.c (beziergon_copy): same here.
7612 * objects/standard/polygon.c (polygon_copy): copy the fill colour
7616 * app/tool.h (tool_options_dialog_show):
7617 * app/scroll_tool.h (free_scroll_tool):
7619 * app/render_libart.h (renderer_libart_copy_to_window):
7620 * app/render_gdk.h (renderer_gdk_copy_to_window):
7621 * app/properties.h (properties_hide_if_shown):
7622 * app/preferences.h (prefs_load):
7624 * app/modify_tool.h (free_modify_tool):
7625 * app/magnify.h (free_magnify_tool):
7626 * app/linewidth_area.h (linewidth_area_create):
7627 * app/layer_dialog.h:
7628 * app/handle_ops.h (handle_is_clicked):
7630 * app/grid.h (grid_destroy_dialog):
7631 * app/defaults.h (defaults_show):
7632 * app/cut_n_paste.h (cnp_exist_stored_objects):
7633 * app/create_object.h (free_create_object_tool):
7634 * app/connectionpoint_ops.h (diagram_unconnect_selected):
7636 * app/color_area.h (color_area_create):
7637 * app/app_procs.h (app_is_embedded): remove extern keyword from
7638 function prototypes.
7641 * lib/sheet.h (load_all_sheets):
7642 * lib/render_store.h:
7643 * lib/render_object.h (render_object_load):
7644 * lib/polyshape.h (polyshape_closest_segment):
7645 * lib/poly_conn.h (polyconn_closest_segment):
7648 * lib/objchange.h (new_object_state_change):
7649 * lib/neworth_conn.h (neworthconn_add_segment):
7650 * lib/message.h (message_error):
7653 * lib/font.h (font_descent):
7654 * lib/focus.h (remove_focus):
7656 * lib/diagramdata.h:
7657 * lib/dia_xml.h (data_add_composite):
7659 * lib/connpoint_line.h:
7660 * lib/connection.h (connection_move_handle):
7662 * lib/attributes.h (attributes_set_default_line_style):
7663 * lib/arrows.h (arrow_draw): remove extern keyword from function
7664 definitions. It is not required for functions.
7666 * plug-ins/dxf/Makefile.am (INCLUDES):
7667 * plug-ins/pstricks/Makefile.am (INCLUDES):
7668 * plug-ins/cgm/Makefile.am (INCLUDES):
7669 * objects/SADT/Makefile.am (INCLUDES):
7670 * objects/chronogram/Makefile.am (INCLUDES):
7671 * objects/GRAFCET/Makefile.am (INCLUDES):
7672 * objects/flowchart/Makefile.am (INCLUDES):
7673 * objects/sybase/Makefile.am (INCLUDES):
7674 * objects/FS/Makefile.am (INCLUDES):
7675 * objects/standard/Makefile.am (INCLUDES):
7676 * objects/network/Makefile.am (INCLUDES):
7677 * objects/UML/Makefile.am (INCLUDES): same here.
7679 * objects/ER/Makefile.am: changed inclusion of some macros to
7682 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
7683 handle the plug in extension, rather than have all the #ifdef's in
7686 * plug-ins/Makefile.am: add renderer.inc to dist.
7688 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
7690 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
7692 * lib/plug-ins.c: Handle OS/2 dll's too.
7694 2000-06-07 James Henstridge <james@daa.com.au>
7696 * app/plugin-manager.c (get_plugin_manager): set some table
7697 packing options to make it look a little nicer.
7699 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
7700 makefiles for these plug-ins.
7702 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
7704 * configure.in: added hpgl and wpg directories to build. Added
7705 note about whether gnome-print support was enabled, and noted that
7706 it is not recommended.
7708 2000-06-06 James Henstridge <james@daa.com.au>
7710 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
7711 a little work, but I am checking them in so I don't lose them.
7713 2000-06-01 James Henstridge <james@daa.com.au>
7715 * objects/standard/arc.c: added extra properties.
7717 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
7718 was using the wrong index into the handles array. This gets corner
7719 type changing working correctly.
7721 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
7722 to properties code (no editing or loading yet though). Also added
7723 support for point array manipulation through the offsets interfaces.
7725 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
7727 * app/interface.c (origin_button_press): changes so the origin
7728 button doesn't grab the pointer when we pop up the menu.
7730 * app/commands.c (help_about_callback): fix small memory leak in
7733 * app/menus.c (menus_init): fixed breakage I introduced in the non
7734 gnome menus when I was doing the menu changes. The tearoffs work
7735 really nicely in plain gtk mode as well.
7737 * objects/standard/beziergon.c (beziergon_create): changed the
7738 returned handles to match the handle numbering changes. Now
7739 segment addition and removal works correctly with undo!
7741 * lib/beziershape.c: various changes to the code. Changed the
7742 numbering of handles, and fixed the segment removal code.
7744 2000-05-31 James Henstridge <james@daa.com.au>
7746 * objects/standard/beziergon.c: remove connection point handling.
7747 There is still a bit of work to be done to get adding and removing
7748 of segments working correctly.
7750 * lib/beziershape.c: add connection point handling to beziershape.
7751 I set it for two connection points per segment.
7753 2000-05-30 James Henstridge <james@daa.com.au>
7755 * objects/standard/polygon.c: don't do connectionpoint handling.
7757 * lib/polyshape.c: changed to handle connection points internally.
7758 Also, don't worry about connections to handles on polyshape, as
7759 all handles are non connectable.
7761 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
7763 * configure.in: Added finnish
7765 2000-05-30 James Henstridge <james@daa.com.au>
7767 * sheets/*.sheet: translation updates to the .sheet files.
7769 * po/fr.po: updated po file from Christophe Merlet.
7771 * menus.h: removed prototypes for functions which have been removed.
7773 2000-05-29 James Henstridge <james@daa.com.au>
7775 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
7776 item in the option menu when changing selected diagram.
7778 * app/dia_embedd.c (view_factory): fix up function to work with new
7781 * app/disp_callbacks.c (ddisplay_realize): remove call to
7782 display_set_active from here.
7783 (ddisplay_canvas_events): move call here. This gets rid of all the
7784 warnings, as the renderer has been fully set up correctly at this
7787 * app/menus.c (menus_init): add the tearoff item to the start of the
7790 * app/app_procs.c (create_user_dirs): we don't need to create the
7791 menus directory anymore.
7793 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
7794 necessary to update the menu state here, as it was done when the
7795 active display was set.
7797 * app/display.c (display_set_active): update the menu state when
7798 changing active displays.
7800 * app/interface.c (origin_button_press): set the display as active
7801 when a click is made on the menu button.
7803 * app/menus.c (menus_init): set up a quit function to save the accels
7805 Add tearoff items for the non GNOME menus, add accelerators for
7806 several GNOME menus.
7808 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
7809 menus_get_image_menu().
7811 * app/menus.c (menus_get_item_from_path): use display_menus here
7812 rather than ddisp->popup.
7814 * app/display.h: remove the popup member in the DDisplay structure.
7816 * app/interface.c: remove option of not using wrap box.
7817 (create_toolbox): change to always use menus_get_toolbox_menubar
7818 even when using gnome menus.
7819 (create_display_shell): use menus_get_image_menu to load accelerators
7820 only -- not the actual popup menu.
7822 * app/menus.c (menus_init): new function to create the menus.
7823 (menus_get_toolbox_menubar): use this function whether gnome is
7824 in use or not. Changed to use menus_init.
7825 (menus_get_image_menu): same here. Also, now this function always
7826 returns the same menu, rather than a new one each time.
7827 (menus_init): read a menurc file to load accelerators here.
7829 2000-05-28 James Henstridge <james@daa.com.au>
7831 * app/display.c (ddisplay_really_destroy): unset active display if
7832 active display is destroyed.
7833 (ddisplay_active): simplify function to return active_display as set
7834 by display_set_active. This allows using a pinned menu with any
7835 display -- not just the one it was popped up from.
7836 (display_set_active): notify the layer dialog of change of diagrams
7837 when active diagram changes.
7839 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
7840 on button and key presses.
7841 (ddisplay_realize): set active display on realize.
7843 * app/display.c (display_set_active): simple implementation of this
7846 * app/display.h (display_set_active): add prototype for setting
7849 * app/interface.c (create_display_shell): don't give focus to the
7852 * app/menus.c: fix up menus for Beziergon.
7854 * app/interface.c (create_display_shell): make the widget in the
7855 top left corner a button that can be used to pop up the right click
7856 menu, like in gimp and sketch.
7858 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
7861 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
7862 add code to set corner types for beziergon.
7864 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
7866 (beziershape_move_handle): use the previous corner type for right
7869 * app/interface.c (tool_data): add beziergon to toolbox.
7871 * objects/standard/standard.c (dia_plugin_init): initialise the new
7872 Beziergon object type.
7874 * objects/standard/beziergon.c: an object based on BezierShape.
7876 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
7878 * lib/beziershape.[ch]: new files implementing a bezier shape.
7880 2000-05-26 James Henstridge <james@daa.com.au>
7882 * lib/text.c (text_key_event): handle multibyte inserts.
7883 (text_key_event): also add home and end keybindings.
7885 * app/interface.c (create_display_shell): connect handlers for
7886 focus_in_event, focus_out_event, realize and unrealize signals.
7888 * app/display.[ch] (new_display): initialise input context members.
7890 * app/disp_callbacks.[ch]: added XIM support here.
7892 * lib/font.c (suck_font): the black and white pixel values should be
7893 taken from a 1 bit colormap rather than the default colormap.
7895 Hans Breuer's Windows patches ...
7897 * lib/font.c: use Courier New for fixed width font on windows
7900 * lib/dia_image.h: change to "struct _DiaImage".
7902 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
7904 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
7905 mouse button for object menu. This will make two button mouse owners
7908 2000-05-25 James Henstridge <james@daa.com.au>
7910 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
7912 * app/app_procs.c (app_init): add extra NULL argument to call of
7915 * app/load_save.h: remove prototype.
7917 * app/load_save.c: remove diagram_data function here.
7919 * app/diagram.h: added prototype.
7921 * app/diagram.c (diagram_load): new function here, which uses import
7924 * plug-ins/dxf/dxf.c: register the import filter as well.
7926 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
7927 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
7929 * objects/standard/line.c: add start_point and end_point properties
7930 to standard line object.
7932 2000-05-21 James Henstridge <james@daa.com.au>
7934 * app/paginate_psprint.c: added missing include of locale.h.
7936 * objects/custom/custom_object.c (custom_draw): use fabs rather than
7937 abs for scaling factors.
7938 (custom_distance_from): same here.
7940 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
7942 2000-05-18 James Henstridge <james@daa.com.au>
7944 * po/POTFILES.in: updated POTFILES.in.
7946 * dia.spec: incremented version number in spec file.
7948 * NEWS: added (lots of) news items for the 0.85 release.
7950 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
7953 * configure.in: updated version number here.
7955 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
7957 2000-05-17 James Henstridge <james@daa.com.au>
7959 * app/app_procs.c (internal_plugin_init): register the native import
7962 * app/load_save.c (diagram_data_load, diagram_load): split this
7963 function into two -- one that does all the work on the DiagramData
7964 structure, and the other that provides compatibility with the old
7966 (dia_import_filter): use diagram_data_load to define an import
7969 * app/diagram.h (new_diagram): added const to prototype.
7971 * app/filedlg.c (file_open_callback): change to use new import filter
7974 * lib/filter.c: added import filter management functions.
7976 * lib/filter.h: added prototypes for import filter interface.
7978 * app/commands.c (help_about_callback): updated about dialog to
7979 contain a few more names.
7981 2000-05-16 James Henstridge <james@daa.com.au>
7983 * configure.in (Configuration): added a status message to the end of
7984 the configure script to give the user some idea of what was
7987 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
7989 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
7992 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
7995 * configure.in (AM_PATH_LIBART): use the check function provided
7996 with libart rather than our own code. It is more reliable, and
7997 it only requires that people who build out of CVS have libart.m4
7998 installed (not necessarily all of libart).
7999 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
8001 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
8003 * dia.desktop: Added Swedish translation.
8005 2000-05-09 James Henstridge <james@daa.com.au>
8007 * lib/dia_xml.c: you can't free a const pointer, so remove const
8008 from variable definitions.
8010 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
8011 initialised correctly.
8013 * app/render_svg.c (export_svg): set locale to C.
8015 * app/paginate_psprint.c (paginate_psprint): set locale to C.
8017 * app/render_eps.c (export_eps): set locale to C for EPS export.
8019 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
8020 (data_add_point): same here.
8021 (data_add_rectangle): same here.
8022 (data_real): use g_strtod to convert strings to real numbers, so that
8023 locales are taken into account.
8024 (data_point): same here.
8025 (data_rectangle): same here.
8027 * AUTHORS: added Henk and Jacek to authors file.
8029 Daniel Egger's code cleanups.
8031 * app/select.c (select_invert_callback): remove unused variable.
8033 * app/plugin-manager.c (get_plugin_manager): fix typo.
8035 * app/load_save.c (read_connections, write_objects):
8036 (write_connections): made some functions static.
8038 * app/interface.c (toolbox_delete, toolbox_destroy): made some
8041 * app/filedlg.c (file_export_callback): remove unused variable.
8043 * app/app_procs.c: various warning fixes.
8045 Integrating Jacek Pliszka's pstricks export filter.
8047 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
8049 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
8050 renderer (with a few small modifications by me).
8052 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
8054 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
8056 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
8059 * sheets/Makefile.am:
8060 * shapes/Makefile.am:
8061 * shapes/Civil/Makefile.am:
8062 * sheets/civil.sheet:
8064 Added civil/hydraulic/structural engineering objects from
8065 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
8067 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
8069 * objects/FS/flow-poly.c:
8070 * objects/FS/flow.c:
8071 Fix division by zero in point_normalize().
8072 Patch by David Thompson <dcthomp@mail.utexas.edu>
8074 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
8077 * lib/bezier_conn.c:
8078 * lib/connpoint_line.c:
8079 Added checks for zero-length lines before calls to point_normalize.
8081 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8083 * app/preferences.c (prefs_data): Changed
8084 reversed_dragging_intersects to not make the dialog ridiculously
8087 2000-04-22 James Henstridge <james@daa.com.au>
8089 Hans's win32 patches:
8091 * app/export_png.c: include message.h
8092 * app/interface.c: include dia_dirs.h
8093 * app/linewidth_area.c: check for rint
8094 * app/main.c: include interface.h
8095 * app/paginate_psprint.c: remove unused variable.
8096 * app/preferences.c: include message.h
8097 * app/render_svg.c: include stdlib.h
8098 * app/select.c: include object_ops.h
8099 * lib/dia_dirs.c: miscelaneous fixes for win32.
8100 * lib/dia_image.c: include string.h
8101 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
8102 * lib/properties.c: include stdlib.h
8103 * lib/properties.h: define extra data for standard properties as
8104 static variables on win32 (to get around dynamic linker problems).
8105 * objects/standard/polygon.c: polygon_create_change missing return
8108 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
8110 * configure.in (ALL_LINGUAS): added Catalan
8112 2000-04-18 James Henstridge <james@daa.com.au>
8114 * objects/standard/bezier.c (bezierline_get_object_menu): add a
8115 separator to the object menu between the add/remove segment items
8116 and the corner type items.
8117 (bezierline_get_object_menu): add code to disable the menu item for
8118 the current corner type. Really just a cosmetic change.
8120 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
8121 a NULL for the label or with no associated callback.
8123 * objects/standard/bezier.c (bezierline_menu_items): use the
8124 enumeration values rather than numeric values for the corner types.
8126 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
8127 structure, and add code to handle it. Also, don't save the corner
8128 types inline in the bez_points node. The way it is conditionally
8129 including the element just feels like it will break.
8131 * lib/geometry.h (BezPoint): removed the corner_type stuff from
8132 BezPoint. The corner type stuff is a user interface level idea rather
8133 than something required by the renderer, so should be taken care of
8134 at the object level.
8136 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8138 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
8139 checks. Weren't able to reproduce original bug, tough.
8141 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
8143 * sheets/Electric.sheet:
8144 * sheets/Contact.sheet:
8145 * sheets/Pneumatic.sheet:
8146 * sheets/Circuit.sheet: sprayed some <br/>'s around.
8147 (added a few French translations in the last file)
8149 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8152 * lib/bezier_conn.h:
8153 * objects/standard/bezier.c:
8154 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
8155 bezier points. Only one minor problem known: Menus are active
8156 for endpoints minor handles.
8157 11:28: Save and load now works, too.
8158 (bezierconn_closest_major_handle): 12:03: New function to get the
8159 non-control point handle associated with the nearest control
8161 Also fixed the menu activation problem, and made remove_segment
8162 not remove the endpoint.
8164 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8166 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
8169 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
8171 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
8172 <sys/stat.h>. OS/2 patch.
8174 2000-04-15 James Henstridge <james@daa.com.au>
8176 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
8177 Thompson's patch that adds undo support to the function structure
8180 2000-04-14 James Henstridge <james@daa.com.au>
8182 * objects/custom/custom_object.c (custom_distance_from): new
8183 implementation of distance algorithm that actually takes the
8184 display list into account when calculating the distance. Much nicer
8185 than a simple bounding box.
8187 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
8189 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
8191 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8193 * objects/standard/polygon.c: Start of polygons own changes (for
8194 connectionpoints). Need to do seperate changes in polyshape, too,
8195 rather than reuse the bezier changes.
8197 2000-04-13 James Henstridge <james@daa.com.au>
8199 * lib/dia_image.c (dia_image_draw): use the new enumeration values
8200 from after the gdk-pixbuf cleanup.
8202 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
8203 on for loop. Last set of coefficients were not beeing calculated,
8204 which caused a bit of breakage.
8206 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
8207 functions in geometry.c for calculating the closest segment.
8208 (bezierconn_distance_from): use distance_bez_line_point to calculate
8211 * lib/geometry.c (distance_bez_line_point): new function to calculate
8212 the distance from an open bezier line to a point.
8213 (distance_bez_shape_point): new function to calculate the distance
8214 from a closed bezier shape.
8215 (distance_ellipse_point): new function to calculate the distance from
8216 a filled ellipse to a point.
8218 * lib/geometry.h (BezPoint): moved this structure here from render.h
8220 2000-04-12 James Henstridge <james@daa.com.au>
8222 * lib/geometry.c (distance_bez_seg_point): new function to calculate
8223 the distance from a bezier segment.
8225 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
8226 to calculate the distance from the object.
8228 * lib/geometry.c (distance_polygon_point): function for calculating
8229 the distance from a polygon to a point.
8231 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
8234 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
8235 breaks can be inserted in the tool box.
8237 * doc/sheet.dtd: updated the DTD
8238 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
8240 2000-04-12 James Henstridge <james@daa.com.au>
8242 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
8243 macro if the dialog is a GtkDialog :(
8245 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8247 * objects/standard/polygon.c: Connectionpoints now properly
8248 managed in a GList. As far as I can tell, this will not dieturb
8249 the order (but I have the nagging doubt...)
8251 * lib/polyshape.c: No longer knows about connectionpoints.
8253 2000-04-11 James Henstridge <james@daa.com.au>
8255 * app/Makefile.am: fix makefile for bonobo build.
8257 * configure.in: fix checks for bonobo.
8259 * app/menus.c: added entries for the plugin manager.
8261 * app/Makefile.am (dia_core_files): added plugin manager to files
8264 * app/plugin-manager.[ch]: the plugin manager dialog.
8266 * app/display.c (display_update_menu_state): set the antialiased
8267 menu entry to the correct value.
8269 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
8271 * objects/custom/custom_object.c: not all renderers like ellipses with
8272 negative dimensions. This could cause ellipses to disappear when using
8273 the flip_h and flip_v functions.
8275 * samples/grafcet.dia: fixed speling and correctness.
8277 2000-04-11 James Henstridge <james@daa.com.au>
8279 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
8280 exposed the dia_plugin_load and dia_plugin_unload functions.
8282 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
8283 already created PluginInfo structure.
8285 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
8288 * lib/sheet.c: fix up call to dia_config_filename.
8290 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
8291 file. This would save information such as which plugins not to
8292 load during startup.
8294 2000-04-09 James Henstridge <james@daa.com.au>
8296 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
8298 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
8300 * lib/plug-ins.c (dia_register_plugins):
8301 Don't free the value returned from g_getenv.
8303 2000-04-09 Anders Carlsson <andersca@gnu.org>
8305 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
8307 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
8309 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
8310 right to left, select objects that intersect the rubberbanding rectangle
8311 instead of selecting objects that are in the rectangle.
8313 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
8315 * lib/diagramdata.h: Likewise.
8318 2000-04-09 James Henstridge <james@daa.com.au>
8320 * lib/plug-ins.[ch]: add copyright messages to files.
8322 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
8325 * objects/sybase/sybase.c (dia_plugin_init):
8326 * objects/network/network.c (dia_plugin_init):
8327 * objects/flowchart/flowchart.c (dia_plugin_init):
8328 * objects/custom/custom.c (dia_plugin_init):
8329 * objects/chronogram/chronogram.c (dia_plugin_init):
8330 * objects/UML/uml.c (dia_plugin_init):
8331 * objects/SADT/sadt.c (dia_plugin_init):
8332 * objects/GRAFCET/grafcet.c (dia_plugin_init):
8333 * objects/FS/fs.c (dia_plugin_init):
8334 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
8337 * objects/standard/standard.c (dia_plugin_init): change over to new
8340 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
8341 the version checker for plugins.
8343 * app/app_procs.c: remove plugin loading code from here, and use
8344 code from plug-ins.[ch]. Also move registration of internal
8345 objects/filters to a `builtin' plugin.
8347 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
8349 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
8351 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
8352 defined variable in EXTRA_DIST.
8354 * app/preferences.h: removed dia_config_filename from header.
8356 * app/preferences.c: removed dia_config_filename function.
8358 * lib/dia_dirs.c (dia_config_filename): moved function over to this
8359 file. Also changed implementation slightly so that it should work
8360 on the win32 port correctly (and use NT home directories).
8362 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
8363 it should have been.
8365 * lib/plug-ins.[ch]: new plugin loading code.
8367 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8369 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
8371 * lib/polyshape.c: Fix closest segment finding, exposes deeper
8372 bugs in adding corners to 'wraparound' segment.
8374 * objects/standard/polygon.c: Added connection points (fixed so
8375 far), set menu sensitivity.
8377 * lib/polyshape.c: Changed to box-style handles, fixed for start
8378 and ends not being special, added initial connections,
8380 * lib/dummy_dep.h: Added polyshape (gotcha!)
8382 * objects/standard/pixmaps/ellipse.xpm:
8383 * objects/standard/pixmaps/box.xpm:
8384 Filled element pixmaps with white.
8387 * objects/standard/polygon.c:
8389 * objects/standard/standard.c:
8390 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
8391 * lib/Makefile.am (libdia_a_SOURCES):
8393 * app/interface.c (tool_data):
8394 Added Standard/Polygon object and PolyShape lib object. Still
8395 needs inside grab and connection points.
8397 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
8400 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
8403 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
8404 if (argv) outside ifdefs.
8406 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8408 * objects/standard/image.c (image_set_props):
8409 Aspect ratio is back in town.
8411 * app/Makefile.am (dia_LDADD):
8414 Check for gdk_pixbuf (by default disabled, for now)
8416 * app/render_eps.c (draw_image):
8417 * app/render_libart.c (draw_image):
8418 * app/render_gnomeprint.c (draw_image):
8419 Support for alpha mask in rendering. Color postscript, too.
8423 Support for gdk_pixbuf and proper masking for exports.
8425 2000-04-01 Kjartan Maraas <kmaraas@online.no>
8427 * sheets/*.sheets: Updated Norwegian translations.
8429 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
8431 * lib/text.c (text_insert_char):
8432 * lib/render_store.c (add_data):
8433 Made realloc double the alloced space rather than add
8434 a fixed amount, to reduce memory stress.
8436 * app/select.c: Added new select method 'Transitive'
8437 that select every reachable (by connections) object.
8439 2000-03-27 Kjartan Maraas <kmaraas@online.no>
8441 * dia.desktop: Added Norwegian translation.
8443 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
8447 Don't dereference NULL pointer if the renderer
8448 couldn't open the file. Fix by Lars Clausen.
8449 Bug reported by Martin Chisholm <b1mt@unb.ca>
8451 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
8455 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
8457 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
8459 * app/dia.gnorba (location_info):
8460 Changed to correct executable name.
8462 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
8465 Don't do any argument parsing or initialization
8469 Call init_server_factroy before app_init.
8470 Call app_init with argv==NULL
8471 Now we don't get any critical error on startup.
8474 Add Electric and Pneumatic to makefile list.
8476 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
8478 * shapes/Electric/*:
8479 * sheets/Electric.sheet:
8480 Add some Electric circuit shapes.
8482 * shapes/Pneumatic/*:
8483 * sheets/Pneumatic.sheet:
8484 Add some Pneumatic & Hydraulic circuit shapes
8485 (both sheets are still incomplete, though feature enough
8486 things for basic circuits).
8488 * shapes/Contact/l_*.(xpm|shape):
8489 * sheets/Contact.sheet
8490 * shapes/Contact/Makefile.am
8491 made the older electric circuit shapes in Contact obsolete (disabled
8492 them in the sheet, made that sheet Ladder only). Fixed the makefile
8493 for forgotten items.
8495 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
8498 Add support for Dia bonobo component.
8499 Currently a bit raw, so it's commented out.
8503 New files for embedding dia.
8504 The menu disabling hack is a bit gross. Esp. for GNOME.
8507 Add new function app_is_embedded();
8510 Don't destroy diagram when last display is destroyed if embedded.
8513 Change initialization of display so it works with embedding.
8516 Clarify comment about display destruction.
8518 * app/interface.[ch]:
8519 Added top_level_window argument to create_display_shell.
8520 Don't open a top-level window if embedding.
8521 Don't quit app if trying to close toolbox window when embedding.
8522 Add toolbox_show() and toolbox_hide().
8525 Added app_is_embedded() function (just returns false).
8526 Added toolbox_show() call in main().
8529 Added code for getting toolbox menus. This is used to
8530 hide some menu items when running embedded.
8533 Include sheet.h to remove warning.
8535 * objects/UML/association.c:
8536 Clarify association direction text.
8538 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
8541 Fixed man page so whatis parsing works.
8543 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
8545 * app/render_libart.c (new_libart_renderer):
8546 Fix from segg <segg@infonet.ca> to compile without libart.
8547 I forgot to change the stub for new_libart_renderer when doing
8548 the interactive renderer stuff for libart.
8550 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
8552 * dia.desktop: Added Irish translation.
8554 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
8556 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
8558 * app/load_save.c (fchmod): OS/2 defines only.
8560 2000-03-07 James Henstridge <james@daa.com.au>
8562 * lib/properties.c (prop_get_widget): set the position in the option
8565 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
8569 * app/render_libart.[ch]:
8570 Don't export png:s with an interactive libart renderer.
8572 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
8574 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
8576 2000-03-02 James Henstridge <james@daa.com.au>
8578 * dia.spec (%build): unset LINGUAS before running configure. This
8579 ensures that all translations get included in the RPM.
8581 * lib/properties.c (object_create_props_dialog): put in a check for
8582 a NULL return from the describe_props() object method.
8583 (prop_desc_lists_union): make sure that the returned array is not
8585 (prop_desc_lists_intersection): same here.
8587 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
8589 * objects/ER/Makefile.am:
8590 * objects/FS/Makefile.am:
8591 * objects/UML/Makefile.am:
8592 Don't link object libs with gtk.
8594 2000-02-29 James Henstridge <james@daa.com.au>
8596 * app/preferences.c (prefs_save): check to see if the file could
8597 be opened before writing the prefs.
8599 * app/disp_callbacks.c (popup_object_menu): pass the button event
8600 to gtk_menu_popup. This allows you to click and release to open
8602 (ddisplay_canvas_events): same here.
8603 (create_object_menu): set the object type menu item in the object
8604 menu to be insensitive.
8606 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
8607 as we are now requiring a new version of libxml.
8609 * dia.spec: updated version number. Added requirement for
8612 * configure.in: incremented version number to 0.84.
8613 Added check for libxml >= 1.8.5. This will prevent some of the
8614 problems people have had with broken libxml versions.
8616 * NEWS: added news items.
8618 * app/interface.c (create_color_area): removed call to realize parent
8619 widget. Segg <segg@infonet.ca> reported that it caused a warning,
8620 but I haven't seen it on my copy of dia.
8622 2000-02-28 James Henstridge <james@daa.com.au>
8624 * app/export_png.c: added copyright notice, and made the band height
8627 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
8629 * lib/font.c (suck_font):
8630 Fixed off-by one bug in font pixmap height.
8631 Fixes the problem with garbage at the bottom of some text in aa mode
8632 and in png exported files.
8634 2000-02-27 James Henstridge <james@daa.com.au>
8636 * app/app_procs.c: add the png export filter if it was compiled in.
8638 * app/export_png.c (export_png): new PNG export filter. This requires
8639 the libart renderer to work as it needs a renderer that renders to a
8642 * configure.in: add check for libpng.
8644 * lib/message.c (message_internal): use a GNOME dialog here as well.
8646 * app/display.c (ddisplay_close): use a GNOME dialog here.
8648 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
8649 when exporting to EPS. This is because some people said the EPS
8650 output was too large
8652 2000-02-26 James Henstridge <james@daa.com.au>
8654 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
8657 * app/app_procs.c (app_exit): use a GNOME dialog here.
8659 * app/preferences.c (prefs_create_dialog): if GNOME support is
8660 enabled, show a GNOME dialog.
8662 * app/grid.c (grid_draw): use preferences when drawing page break
8665 * app/preferences.c: add page break preferences to dialog.
8667 * app/preferences.h: added page break preferences.
8669 2000-02-25 James Henstridge <james@daa.com.au>
8671 * sheets/UML.sheet: added new objects.
8673 * objects/UML/uml.c: link in the two new objects.
8675 * objects/UML/node.c:
8676 * objects/UML/branch.c: new UML objects from Stfan Seefeld
8677 <seefelds@magellan.umontreal.ca>.
8679 2000-02-24 James Henstridge <james@daa.com.au>
8681 * objects/custom/custom_object.c: converted to use the properties
8682 interface. In the future, it would be nice to add support for
8683 defining custom properties for custom objects, but that can wait.
8685 2000-02-22 James Henstridge <james@daa.com.au>
8687 * sheets/Circuit.sheet: added new circuit shapes to sheet.
8689 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
8690 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
8691 and adds a few new features.
8693 2000-02-21 Daniel Egger <egger@suse.de>
8695 * sheets/*.sheets: Added German translations and made some
8696 corrections to the others.
8698 2000-02-21 James Henstridge <james@daa.com.au>
8700 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
8702 * shapes/Circuit/...: added new shapes from Erik Janssens.
8704 2000-02-20 James Henstridge <james@daa.com.au>
8706 * app/interface.c (create_color_area): realize the parent window
8709 * objects/standard/image.c: properties patch for standard image
8710 object, from Lars Clausen.
8712 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
8714 * lib/properties.h (PropType): added file property type.
8716 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
8719 * app/interface.c: use wrap box for toolbox.
8721 * app/Makefile.am: added new files.
8723 * app/gtk*wrapbox.[ch]: added wrap box widget.
8725 2000-02-19 James Henstridge <james@daa.com.au>
8727 * sheets/network.sheet: added extra shapes to networks sheet.
8729 * configure.in (AC_OUTPUT): added shapes/network/Makefile
8731 * shapes/network/*: added shapes that were posted to the list a while
8734 * shapes/Makefile.am (SUBDIRS): added network subdirectory
8736 * app/menus.c (toolbox_menu_items): don't right justify help menu for
8737 gtk+ version of menus.
8739 * app/properties.c (create_dialog): use a GnomeDialog if we happen
8742 2000-02-18 James Henstridge <james@daa.com.au>
8744 * objects/flowchart/box.c: set extra data for corner radius and text
8747 * objects/standard/box.c: set extra data for corner radius property.
8749 * lib/properties.h: set extra data in some standard properties.
8751 * lib/properties.c (prop_get_widget): look at the extra data for
8752 int, real and enum property types. They now use GtkSpinButton and
8753 GtkOptionMenu respectively.
8755 * lib/properties.h: extra data members for creating property setting
8758 2000-02-17 James Henstridge <james@daa.com.au>
8760 * objects/flowchart/box.c: reverted load/save functions back to
8761 previous implementations. Made box use standard property names.
8763 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
8765 * app/grid.c: add more digits to the grid edit dialog. This patch
8766 was also from Lars Clausen.
8768 * objects/standard/zigzagline.c:
8769 * objects/standard/textobj.c:
8770 * objects/standard/polyline.c:
8771 * objects/standard/line.c:
8772 * objects/standard/ellipse.c:
8773 * objects/standard/box.c:
8774 * objects/standard/bezier.c:
8775 * objects/standard/arc.c: patches to add properties code to standard
8776 objects. Based on patches from Lars Clausen. I have also removed
8777 some dead code from the files.
8779 * lib/properties.h (PROP_STD_*): define a number of standard
8780 properties. Where appropriate, objects should include these
8781 properties in their PropDescription list. This way, the intersection
8782 of properties of two different shapes will be greater.
8784 2000-02-14 James Henstridge <james@daa.com.au>
8786 * objects/flowchart/box.c (box_load, box_save): use property save
8787 routines. Make sure that any props not handled by object_load_props
8788 are loaded before calling object_load_props, or we get errors because
8789 update_data is called.
8791 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
8792 error that could cause properties to be loaded incorrectly.
8793 (object_set_props_from_offsets): similar here.
8795 * lib/properties.[ch] (prop_{load,save}): functions for loading
8796 or saving a property in Dia's XML file format.
8797 (object_{load,save}_props): load or save some properties of an
8798 object. These functions should help simplify the load/save methods
8799 of objects that implement the properties interface.
8801 2000-02-13 James Henstridge <james@daa.com.au>
8803 * objects/flowchart/box.c: use offset code to simplify property
8806 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
8808 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
8810 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
8812 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
8814 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
8817 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
8820 Add the custom object to DIA_LIB_PATH in run_dia.sh
8822 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
8824 * sheets/Circuit.sheet:
8825 * shapes/l_sout* (NEW):
8826 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
8827 variants of simple, inverted, set and reset outputs.
8828 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
8829 probably a split of Contact and Ladder sheets. And then a major
8830 revamping of the Contact sheet.
8832 2000-02-10 James Henstridge <james@daa.com.au>
8834 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
8836 * app/app_procs.c (register_all_objects): don't explicitely
8837 register the custom objects library -- let it be loaded by the
8838 normal plugin loading methods.
8840 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
8842 * objects/custom/Makefile.am: build libcustom_objects as a shared
8845 * objects/custom/shape_info.[ch]: don't read the description field
8846 of custom shapes. It makes more sense to have these in the sheet
8847 file to localise the parts of dia that translators have to deal
8850 * objects/custom/custom_object.c (custom_object_new): do not
8851 create the sheet object for the new custom shape -- this is
8852 handled by the custom sheet code.
8854 * objects/custom/custom.c: change over to being a normal plug-in
8855 rather than being linked with the main dia executable.
8857 2000-02-09 James Henstridge <james@daa.com.au>
8859 * sheets/Circuit.sheet:
8860 * sheets/Flowchart.sheet:
8861 * sheets/Contact.sheet: fixed up sheets.
8863 * objects/custom/custom_object.c (custom_object_new): set the
8864 extra ObjectType fields.
8866 * lib/sheet.c: use extra ObjectType fields when creating sheet
8867 objects. Give a warning if <shape> tags are found in a sheet
8868 file. Now the custom sheet code does not know about custom
8869 shapes -- they look like any other object type.
8871 * lib/object.h (ObjectType): added extra members
8873 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
8875 * app/linewidth_area.c:
8876 Added code to set arbitrary line width.
8877 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
8879 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
8881 * app/linewidth_area.c:
8883 Add support for font-sucking.
8884 Implementation borrowed from gnome-canvas.
8886 * app/render_libart.[ch]:
8887 Implement text rendering.
8889 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
8891 * app/properties.c (create_dialog):
8892 ref and sink no_properties_dialog.
8894 2000-02-07 James Henstridge <james@daa.com.au>
8896 * app/group.c (group_describe_props): new function. Return the
8897 intersection of the properties of the contained objects that
8898 implement the describe_props interface.
8899 (group_get_props): implement by iterating through contained objects
8900 and calling their get_props method until all properties have been
8901 set. Maybe this should go through all objects all the time??
8902 (group_set_props): implement by calling set_props method on all
8904 (group_ops): use standard props dialog creation routines.
8906 * lib/properties.c (prop_desc_lists_intersection): fix implementation
8907 of intersection -- I was using i++ instead of i-- in a for loop :(
8909 * objects/custom/custom.c (custom_register_objects): fix usage
8910 of dia_get_data_directory again.
8912 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
8913 actually read the sheets.
8915 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
8917 Win32 port by Hans Breuer <Hans@Breuer.org>
8920 Remove DATADIR and LIBDIR defines.
8923 Add dia_dirs.c and dia_dirs.h
8924 Added DATADIR and LIBDIR defines.
8926 * lib/dia_dirs.[ch]:
8927 New files for handling special directories.
8932 * objects/custom/custom.c:
8933 Fix warnings. Use directory functions.
8936 Add prototype for diagram_redraw_all.
8938 * app/diaunitspinner.c:
8941 * app/preferences.c:
8945 Win32 doesn't have mkstemp and fchmod.
8947 * app/paginate_psprint.c:
8948 Win32 calls popen _popen and pclose _pclose.
8951 Win32 calls finite _finite.
8954 Win32 needs to dllexport the color vars.
8956 * objects/GRAFCET/step.c:
8957 * objects/chronogram/chronoref.c:
8958 snprintf -> g_snprintf
8960 2000-02-05 James Henstridge <james@daa.com.au>
8962 * lib/properties.c: more fixes so that it doesn't crash when using
8963 properties. The undo/redo stuff also works!!
8965 * objects/flowchart/box.c (box_{describe, get, set}_props): test
8966 object where I have implemented the new properties interface
8967 complete with automatic properties dialog generation.
8969 * lib/properties.c (object_apply_props): fixed stupid error when
8970 creating the old_props array. Also, it no longer frees the props
8971 array -- you will have to do that yourself.
8973 2000-02-04 James Henstridge <james@daa.com.au>
8975 * app/properties.c (properties_apply): pass object_part to
8978 * lib/object.h (ApplyPropertiesFunc): added widget argument.
8980 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
8981 created this way as well.
8983 * objects/*/*.c: ref and sink the properties dialog window for each
8984 widget. It can't rely on ref count being incremented by
8985 properties_show anymore.
8987 * app/properties.c (properties_show): don't ref the widget before
8988 removing it, or its ref count will increase each time you open the
8989 properties dialog. Don't unparent the widget, as container_remove
8992 * lib/object.h: fixed up prototypes for new object methods.
8994 * lib/properties.[ch]: added functions for automatically creating
8995 a properties dialog from the output of describe_props, get_props and
8997 (object_apply_props): apply properties and return an ObjectChange
8998 structure that can be used for undo.
9000 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
9002 * objects/GRAFCET/transition.c: minor leak plugged.
9004 * sheets/GRAFCET.sheet:
9005 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
9006 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
9008 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
9009 new ones (for condition.c).
9010 * objects/GRAFCET/action.c: added connection points for the conditions.
9011 * samples/grafcet.dia: updated the sample to improve conformance to
9012 IEC 848 and take advantage of dia's new features.
9014 * lib/geometry.h: (point_get_normed) fixed a typo.
9016 2000-02-02 James Henstridge <james@daa.com.au>
9018 * lib/object.h: added object functions describe_props, get_props and
9019 set_props. Do type definitions so that object.h doesn't need to
9020 include properties.h, since properties.h includes object.h.
9022 * lib/properties.[ch]: more hacking.
9024 * po/de.po: updated po file.
9026 2000-01-30 James Henstridge <james@daa.com.au>
9028 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
9029 check to see if the C compiler accepts the flag beforehand.
9031 * lib/properties.[ch]: start of properties code.
9033 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
9035 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
9037 * sheets/GRAFCET.sheet:
9038 * sheets/GRAFCET/etapemc.xpm: (NEW)
9039 * sheets/GRAFCET/etapesp.xpm: (NEW)
9040 * objects/GRAFCET/step.c: Added the macro and
9041 sub-program call step types.
9043 * objects/GRAFCET/receptivity.[ch]: renamed to
9044 objects/GRAFCET/boolequation.[ch].
9045 * objects/GRAFCET/transition.c: changed (Receptivity *) to
9048 * lib/connpoint_line.[ch]:
9049 * objects/chronogram/chronoline.c:
9050 * objects/chronogram/chronoref.c:
9051 * objects/GRAFCET/vergent.c:
9052 * objects/standard/line.c:
9053 * objects/SADT/box.c: Minor CPL interface changes, factored out the
9054 point count adjustment code into the CPL object.
9056 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
9058 * app/render_libart.c:
9059 Added support for images and bezier curves.
9060 Only text/fonts missing now.
9063 Removed old erronous comment.
9065 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
9067 * objects/chronogram/chronoline_event.c: removed references to
9068 lround(). Please don't insist, I'm already red of shame.
9070 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
9072 * app/render_libart.[ch]:
9074 Non-finished libart renderer.
9077 Added HAVE_LIBART flag
9083 Call gdk_rbg_init().
9085 * app/connectionpoint_ops.c:
9086 * app/disp_callbacks.c:
9090 * app/modify_tool.c:
9091 Change ddisp->renderer type from RendererGdk * to Renderer *
9092 Draw zoom and select rects in ddisp->canvas->window instead
9093 of ddisp->renderer->renderer->pixmap.
9096 Add aa_renderer to DDisplay, and support for it.
9097 New function ddisplay_set_renderer() for changing renderer.
9098 Add ddisplay_transform_coords_double() function, used by aa renderer.
9099 Change ddisp->renderer type from RendererGdk * to Renderer *
9102 Add antialias to menu.
9104 * app/commands.[ch]:
9105 add view_aa_callback function
9106 Change ddisp->renderer type from RendererGdk * to Renderer *
9108 * lib/geometry.[ch]:
9109 Added IntRectangle and int_rectangle_union.
9111 2000-01-28 James Henstridge <james@daa.com.au>
9113 * app/commands.h: removed prototypes.
9115 * app/commands.c: removed the functions that have been moved to
9118 * app/filedlg.h: added new prototypes.
9120 * app/filedlg.c (file_open_callback): move open dialog to this
9121 file. This implementation should remember the current directory
9123 (file_save_as_callback): moved this dialog as well.
9124 (file_save_callback): moved this function here.
9126 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
9127 align page boundaries to the origin.
9129 * app/diagram.c (diagram_update_extents): redraw the diagram if the
9130 scaling factor changes while updating the extents. This is so the
9131 page breaks get redrawn correctly.
9133 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
9136 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
9137 For normal mode, use (0,0) as the origin. For `fit to' mode, use
9138 the corner of the bounding box.
9140 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
9141 into page setup dialog.
9142 (pagesetup_apply): apply new `fit to' attributes to the diagram.
9144 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
9145 (diagram_data_save): save `fit to' data.
9147 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
9148 (data_update_extents): when in `fit to' mode, update scale factor
9149 when we update the extents.
9151 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
9154 * .../.cvsignore: added some cvsignore files to quieten cvs.
9156 * app/pagesetup.c (pagesetup_changed): added code to change the
9157 scaling/fit to values as you change the options in the page setup
9158 dialog. I haven't added code so that the fit to options are saved
9161 * app/diapagelayout.[ch]: changed the scaling portion of the widget
9162 to make it easier to set a `fit to' style scaling factor.
9164 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
9165 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
9166 but connpoint_line-based, so that there's a connection point at the
9167 middle of each segment. Currently only the SADT arrow uses this.
9169 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
9171 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
9172 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
9173 saving and editing of properties (and default properties).
9174 See the new objects (GRAFCET, SADT, chonograms) for examples.
9175 For already too hairy stuff, see objects/chronogram/chronoline.c.
9177 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
9178 evenly spaced connection points, which the user can add or remove at
9179 will. An object can own several connection point lines. See the SADT
9180 Box, or the GRAFCET vergents for examples.
9182 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
9183 quiet about unused stuff.
9185 * objects/GRAFCET (NEW):
9186 * samples/grafcet.dia (NEW):
9187 Added support for GRAFCET charts.
9189 * objects/chronogram (NEW):
9190 * samples/chronograms.dia (NEW):
9191 Added support for chronograms (feature requested by Ronald L. Chichest;
9192 I found I'd use it often, too).
9194 * objects/standard/line.c: Replace the middle connectionpoint by
9195 a whole connection point line, which defaults to one point (hint,
9196 hint). New Line object menu to take advantage of this.
9197 "Bothwards" compatibility is preserved (although you may loose
9198 connections if you load a newer file in a older dia).
9200 * app/lineprops_area.c:
9202 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
9203 (feature requested by Benjamin Kahn).
9204 Merged in Steffen Macke's slashed arrow head type.
9206 * app/Makefile.am (app/run_dia.sh actually):
9207 Added $DEBUGGER in front of dia's invocation, so that
9208 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
9209 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
9210 "EFENCE=-lefence" to link with Electric Fence.
9212 * configure.in: Made gcc do more aggressive optimisations on i386, and
9215 2000-01-24 James Henstridge <james@daa.com.au>
9217 * lib/geometry.[ch]: added inline versions of functions. Used
9218 glib's G_INLINE_FUNC stuff, so it should still work on systems
9219 without inline funcs.
9221 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
9222 it outputs the correct element id for the ellipse objects.
9224 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
9226 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
9227 object_add_handle_at. Message typo fixed.
9229 * lib/sheet.c (load_register_sheet):
9230 potential bug fixed (warning hunt).
9232 * objects/custom/custom.c (custom_object_load): disabled an assertion
9233 which made dia abort upon failure to load a shape file. Fixed a
9236 * objects/custom/shape_info.c (load_shape_info): Made the custom
9237 shape load code ignore XML comments between <?xml ...?> and the
9238 root object (mostly useful to put the emacs magic comments).
9240 * app/load_save.c: Made dia do backup copies of files when saving,
9241 and complain in case of failure.
9243 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
9245 * AUTHORS: fixed my address (ISP thought it was a great idea to change
9251 * sheets/Contact.sheet:
9252 * sheets/Makefile.am:
9253 Added support for Contact and LADDER charts.
9255 * dia.desktop: Added a French translation.
9257 2000-01-23 James Henstridge <james@daa.com.au>
9259 * app/commands.c (help_about_callback): don't die if can't load
9262 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
9263 out NaN's when performing bezier curve subdivision.
9265 * objects/custom/custom_object.c: initialise memory of Custom structs
9268 * app/render_svg.c (draw_image): added image support to the XML
9269 output filter. The image is just referenced, rather than being
9270 included inline, so if you copy the SVG file somewhere else, you
9271 may need to move the images or fix up the links.
9273 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
9274 so the text is not just displayed in black all the time.
9276 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
9278 * configure.in: fixed libpopt test so we wont try to build with
9281 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
9283 * configure.in: Added "uk" to ALL_LINGUAS.
9285 1999-12-24 James Henstridge <james@daa.com.au>
9287 * po/ru.po: updated russian translation from Valek Filippov.
9289 * app/render_svg.c (new_svg_renderer): make output use 19991203
9290 version of SVG DTD. Use viewBox to set the extents of the view.
9292 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
9293 ftp.gnome.org as the download.
9295 * TODO (TODO): weeded out completed todo items and added a few extra.
9297 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
9299 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
9300 be good to get rid of the object/shape distinction and separate
9301 the custom shape code out from the main application.
9303 * objects/custom/README, diagram.dtd: moved to new doc directory.
9304 Renamed the custom shapes README to custom-shapes. Also updated
9305 custom shape docs a bit and removed the section on sheet files, as
9306 that has changed a bit.
9308 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
9309 of the image data is larger than the maximum cell array. I should
9310 add code to break scan lines down further in this case, but for now
9311 an error message is better than an infinite loop.
9313 * app/filedlg.c (file_export_ok_callback): show a dialog if we
9314 couldn't determine the export filter to use.
9316 * app/commands.c (help_about_callback): fixed up about box logo
9317 expose bug. Now just use a GtkPixmap widget rather than a
9318 GtkDrawingArea and calling gdk_imlib_paste_image.
9320 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
9321 because automake does not always get things right.
9323 * configure.in: updated version number to 0.83.
9325 * app/preferences.c (prefs_save):
9326 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
9327 for fopen. Text is the default file mode anyway.
9329 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
9330 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
9331 * app/load_save.c (write_objects, write_connections):
9332 * app/filedlg.c (file_export_ok_callback):
9333 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
9334 * lib/dia_xml.c (data_add_point, data_add_rectangle):
9335 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
9336 snprintf to calls to g_snprintf.
9338 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
9339 as the picture name.
9341 1999-12-23 James Henstridge <james@daa.com.au>
9343 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
9344 negative numbers. This fixes the upside down text problem I was
9346 (draw_image): implemented the image code. It will try to split the
9347 image data up into bands if it is too big to fit into a single
9348 cgm cell array element. It will have problems if you try to insert
9349 an image wider than about 10,000 pixels though.
9351 * Makefile.am: use gnomedatadir for the files that need to be
9352 installed in gnome's datadir. This is mainly to help people doing
9353 packages for weird setups.
9355 1999-12-22 James Henstridge <james@daa.com.au>
9357 * plug-ins/cgm/cgm.c: added support for text. Now only images and
9358 beziers are left to do. The text seems to be the wrong way up
9359 still. This is probably a problem with character orientation
9360 element, but I have used what the settings given in the standard.
9361 Other than this, the CGMs dia produces are readable (and displayable)
9362 by ralcgm and corel draw.
9363 (draw_string): subtract from the X coord rather than the Y coord for
9364 center and right aligned text.
9366 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
9367 the size of a real number, and changed name of write_double to
9368 write_real. Consider changing to fixed real encoding. Also, now
9369 all element headers are correct. Once the real number encoding is
9370 fixed, only text, beziers and images are left to do.
9372 1999-12-21 James Henstridge <james@daa.com.au>
9374 * Makefile.am (SUBDIRS): recurse into plug-ins.
9376 * configure.in: add plug-ins directory makefiles to list.
9378 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
9379 not done yet. Also, the output files are not quite correct.
9381 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
9382 font. It doesn't work if you do.
9384 1999-12-20 James Henstridge <james@daa.com.au>
9386 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
9387 export the files. Instead, use filter_guess_export_filter to
9388 guess the correct format to save in and use the appropriate filter.
9389 It defaults to postscript for compatibility.
9391 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
9394 * app/commands.[ch]: removed export to eps functions.
9396 * app/menus.c: removed export to eps menu items.
9398 * app/app_procs.c: register new export filters.
9400 * app/load_save.[ch]: define dia native export filter.
9402 * app/render_eps.[ch]: define eps export filter.
9404 * lib/filter.h: added diafilename argument to the DiaExportFunc
9405 prototype. This is useful for putting the source of the diagram
9406 into the output file for instance.
9408 * app/app_procs.c (app_init): register the SVG export filter. Have
9409 to get EPS code converted to this API, and maybe also allow saving in
9410 DIA's native format from the export dialog. In fact, it is now
9411 possible to load an export filter from a shared library and it will
9412 integrate into the interface correctly.
9414 * app/menus.c: removed references to the SVG renderer.
9416 * app/commands.[ch]: removed svg stuff.
9418 * app/diagram.[ch]: removed diagram_export_to_svg function.
9420 * app/render_svg.[ch]: added a DiaExportFilter structure for this
9423 * app/filedlg.[ch]: code for the new export diagram dialog. Will
9424 probably move the open/save dialogs to this file as well.
9426 1999-12-19 James Henstridge <james@daa.com.au>
9428 * lib/filter.[ch]: start of interface for generalised handling of
9429 filters. I have only done code for export filters so far. I still
9430 need to do the gui for this, and convert the current SVG and EPS
9431 filters to the new API.
9433 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
9434 weren't setting the last handle correctly. It was actually assigning
9435 to the wrong position in the handles array, so the last handle was
9436 left as NULL, which caused the segfault.
9438 * objects/standard/image.c (image_copy): modified routine so that
9439 it just adds a reference to the DiaImage structure in the new image
9440 object. This seems to have cleared up the problems with copying
9443 * dia.spec: spec file additions from John Gotts.
9445 1999-12-12 James Henstridge <james@daa.com.au>
9447 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
9448 has not been released yet though.
9450 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
9453 The following based on a patch from Lars Clausen:
9455 * objects/standard/bezier.c (bezierline_move_handle): when performing
9456 the initial drag of the bezierline, move the control points to keep
9459 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
9460 make the new control points a bit closer to the major point.
9462 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
9463 as the reason for the move.
9464 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
9467 * lib/handle.h: new handle move reasons.
9469 1999-12-09 James Henstridge <james@daa.com.au>
9471 * dia.spec: include the new files in RPMs.
9473 * Makefile.am: install these new files.
9475 * dia.keys.in: file describing actions and icon for dia diagrams for
9476 use in the gnome file manager.
9478 * dia.mime: a file defining the application/x-dia-diagram mime type.
9480 * dia-diagram.png: an icon for dia diagrams.
9482 1999-12-08 James Henstridge <james@daa.com.au>
9484 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
9486 * plug-ins/python/pydia-display.[ch]: wrapper for display.
9488 * objects/standard/ellipse.c: applied Lars's patch to optionally not
9489 draw the background of the ellipse.
9491 * app/load_save.c (read_connections): do some sanity checking on the
9492 handle and connection point numbers before performing the object
9495 * lib/bezier_conn.c (bezierconn_load): give the correct number of
9496 handles when loading a BezierConn.
9498 1999-12-07 Kjartan Maraas <kmaraas@online.no>
9500 * sheets/*.sheet: Finished Norwegian translations.
9502 1999-12-07 James Henstridge <james@daa.com.au>
9504 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
9505 (PyDia_GetObjectType): find object type function.
9507 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
9508 method for diagrams.
9510 * plug-ins/python/pydia-object.c: added methods for DiaObject and
9513 * AUTHORS: added Lars and Cyrille to the authors file.
9515 * objects/standard/bezier.c (bezierline_add_segment_callback): place
9516 new point correctly.
9518 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
9520 * lib/bezier_conn.c: applied Lars's patch for placement of the new
9521 point when adding a segment to a BezierConn.
9523 1999-12-06 James Henstridge <james@daa.com.au>
9525 * plug-ins/python/test.py: test script for the python plug-in.
9527 * plug-ins/python/python.c: this file contains the plug-in startup
9528 code for the python plugin. Right now, it just initialises the
9529 dia module and executes a script.
9531 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
9533 * objects/standard/bezier.c (bezierline_draw): draw control lines for
9534 bezier curve if we are using an interactive renderer (ie. only if
9535 displaying to the screen).
9537 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
9538 to draw control lines on to a bezier curve. Based on implementation
9541 * objects/standard/bezier.c (bezierline_delete_segment_callback):
9542 calculate segment number using closest_segment rather than
9543 closest_handle. Sometimes the closest handle is part of a different
9545 (bezierline_draw): use correct size for start arrow.
9547 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
9548 * lib/geometry.c (distance_line_point): added notes to documentation
9550 * app/object_ops.c (object_list_align_v):
9551 (object_list_align_h): fix of by one error when calculating free space
9552 for equal distance alignment.
9553 * app/menus.c (objects_align_h, objects_align_v): include align
9554 adjacent menu items in the gnome version of the menus.
9555 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
9556 align adjacent menu items correctly.
9559 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
9562 * objects/standard/bezier.c: converted bezierline to use BezierConn.
9563 Still a few bugs. It crashes on deleting line segments.
9565 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
9567 1999-12-05 James Henstridge <james@daa.com.au>
9569 * lib/bezier_conn.[ch]: start of BezierConn object
9571 * app/interface.c: add bezierline to toolbox.
9573 * objects/standard/standard.c: initialise bezierline.
9575 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
9576 made a few modifications to get it working nicely. It still needs
9577 a bit of work though. Maybe create a BezierConn object in lib.
9579 1999-12-02 James Henstridge <james@daa.com.au>
9581 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
9583 * plug-ins/python/Makefile.am: tried building everything. It is
9584 building as a library at the moment. I will have to convert it
9585 to a libtool library and add some initialisation code.
9587 * plug-ins/python/diamodule.c: start of the dia module, using the
9588 other object wrappers. Not complete.
9590 1999-12-01 James Henstridge <james@daa.com.au>
9592 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
9593 the handles and connections attributes.
9595 * plug-ins/python/pydia-layer.c: added functions that use
9598 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
9600 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
9602 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
9603 I am currently wrapping the basic elements in the diagram in python
9604 objects -- nothing to see or play with yet.
9606 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
9610 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
9612 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
9616 Added russian translation from Valek Filippov <frob@df.ru>
9618 1999-11-24 James Henstridge <james@daa.com.au>
9621 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
9622 discussed with Alex. Also added extra makefiles so that make install
9625 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
9627 * app/preferences.[ch]:
9629 Added snap to grid preference.
9630 Patch from Michael Leslie <mles@springboardwireless.com>
9632 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
9638 * objects/custom/shape_info.c:
9639 All strings returned by libxml must be freed with free, not
9640 g_free, or there will be problems if you use memory debugging
9643 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
9645 * app/create_object.[ch]:
9648 * app/commands.[ch]:
9650 * app/interface.[ch]:
9651 Reverted the tool menu patch. It has some 'issues'.
9652 I liked it though, so it'll probably return.
9654 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
9656 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
9657 <bruce@cybersight.com> for some purify runs and analysis.
9658 Also a great thank you to Owen Taylor for creating MemProf, a
9659 free memory leak detector that was used to find and verify a
9663 * app/paginate_psprint.c:
9664 * app/render_eps.[ch]:
9665 * app/render_svg.[ch]:
9669 Don't add a reference to ddisp->shell. Why was this done in
9676 Free all strings returned from xmlGetProp
9678 * app/modify_tool.c:
9681 * objects/custom/custom.c:
9682 Use closedir() after opendir().
9684 * objects/custom/shape_info.c:
9685 User g_free() instead of "if (tmp) free(tmp)".
9688 Add newline at end of file.
9691 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
9693 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
9694 Adds tool menu and keyboard shortcuts.
9696 * app/create_object.[ch]:
9697 Use tool_set() instead of tool_reset().
9698 create_create_object_tool() takes extra type argument
9704 Moved tool_data here, export it.
9705 Add separate tool type for all create objects tools.
9706 new functions tool_set().
9709 New callback tool_set_callback.
9712 Moved some pixmaps to interface.c.
9715 Remove tool_data array (moved to tool.c).
9716 Use the tool_data from tool.c.
9717 Remove modify_tool_button global var.
9719 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
9721 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
9724 Interprets command-line arguments as files to open even when
9725 HAVE_POPT is not defined.
9728 Shift-clicking when zooming zooms out, like the Gimp.
9731 Has hotkeys for zoom-100% and snap-to-grid.
9733 1999-11-17 James Henstridge <james@daa.com.au>
9735 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
9736 that it is not jumpy.
9738 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
9740 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
9741 scrolling by pressing the shift key when using the scroll tool.
9743 * sheets/Makefile.am: fixed makefile so that install actually works
9744 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
9746 (SHEETS): install Circuit.sheet
9748 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
9749 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
9751 * sheets/Circuit.sheet:
9754 * sheets/Flowchart.sheet:
9756 * sheets/network.sheet:
9757 * sheets/sybase.sheet:
9760 * sheets/Circuit.sheet:
9761 added some missing French translations
9764 killed the temporary sheet namespace
9766 * objects/custom/custom.c:
9767 obsolete comment cleaned up
9769 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
9773 Added portugese translation from Pedro Morais
9774 <pmmm@rnl.ist.utl.pt>
9776 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
9778 Changed all sheets to be specified in xml.
9779 All sheet objects removed from the C code.
9780 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
9785 Updated version to 0.81cvs.
9788 Update run_dia.sh with sheet-dir.
9791 Load all sheets on startup.
9792 Create sheet directory first time.
9793 Don't call custom_register_sheets().
9799 Remove custom_register_sheets().
9802 Add sheet loading code.
9804 * sheet/Circuit.sheet:
9807 * sheet/Flowchart.sheet:
9809 * sheet/network.sheet:
9810 * sheet/sybase.sheet:
9813 * sheet/ER/weakentity.xpm:
9814 * sheet/UML/aggregation.xpm
9815 * sheet/UML/umlclass_template.xpm
9816 Added sheet pixmaps.
9817 These are moved from their old places.
9823 Removed sheet objects and sheet registration.
9825 * objects/ER/Makefile.am:
9826 * objects/ER/pixmaps/weakentity.xpm:
9827 * objects/UML/Makefile.am:
9828 * objects/UML/pixmaps/aggregation.xpm:
9829 * objects/UML/pixmaps/umlclass_template.xpm:
9830 Removed alternative pixmaps. (Moved to sheet).
9832 * objects/custom/Makefile.am:
9833 * objects/custom/load_sheet.[ch]:
9834 Removed old sheet loading code.
9836 * objects/custom/custom.c:
9837 Load all shapes instead of sheets.
9838 Removed custom_register_sheets().
9840 * objects/custom/custom_object.c:
9843 * objects/custom/shape_info.[ch]:
9844 Added shape_info_getbyname().
9846 * objects/flowchart/Makefile.am:
9847 * objects/flowchart/collate.shape
9848 * objects/flowchart/delay.shape
9849 * objects/flowchart/display.shape
9850 * objects/flowchart/document.shape
9851 * objects/flowchart/extract.shape
9852 * objects/flowchart/flowchart.c
9853 * objects/flowchart/intstorage.shape
9854 * objects/flowchart/magdisk.shape
9855 * objects/flowchart/magdrum.shape
9856 * objects/flowchart/magtape.shape
9857 * objects/flowchart/manualinput.shape
9858 * objects/flowchart/manualop.shape
9859 * objects/flowchart/merge.shape
9860 * objects/flowchart/offlinestore.shape
9861 * objects/flowchart/offpageconn.shape
9862 * objects/flowchart/or.shape
9863 * objects/flowchart/predefdproc.shape
9864 * objects/flowchart/preparation.shape
9865 * objects/flowchart/punchedcard.shape
9866 * objects/flowchart/punchedtape.shape
9867 * objects/flowchart/sort.shape
9868 * objects/flowchart/sumjunction.shape
9869 * objects/flowchart/terminal.shape
9870 * objects/flowchart/transaction.shape
9871 * objects/flowchart/transmittape.shape
9872 * objects/flowchart/pixmaps/collate.xpm
9873 * objects/flowchart/pixmaps/delay.xpm
9874 * objects/flowchart/pixmaps/display.xpm
9875 * objects/flowchart/pixmaps/document.xpm
9876 * objects/flowchart/pixmaps/extract.xpm
9877 * objects/flowchart/pixmaps/intstorage.xpm
9878 * objects/flowchart/pixmaps/magdisk.xpm
9879 * objects/flowchart/pixmaps/magdrum.xpm
9880 * objects/flowchart/pixmaps/magtape.xpm
9881 * objects/flowchart/pixmaps/manualinput.xpm
9882 * objects/flowchart/pixmaps/manualop.xpm
9883 * objects/flowchart/pixmaps/merge.xpm
9884 * objects/flowchart/pixmaps/offlinestore.xpm
9885 * objects/flowchart/pixmaps/offpageconn.xpm
9886 * objects/flowchart/pixmaps/or.xpm
9887 * objects/flowchart/pixmaps/predefdproc.xpm
9888 * objects/flowchart/pixmaps/preparation.xpm
9889 * objects/flowchart/pixmaps/punchedcard.xpm
9890 * objects/flowchart/pixmaps/punchedtape.xpm
9891 * objects/flowchart/pixmaps/sort.xpm
9892 * objects/flowchart/pixmaps/sumjunction.xpm
9893 * objects/flowchart/pixmaps/terminal.xpm
9894 * objects/flowchart/pixmaps/transaction.xpm
9895 * objects/flowchart/pixmaps/transmittape.xpm
9896 Moved shapes and their pixmaps to shapes/flowchart
9898 * shapes/Circuit/Makefile.am:
9899 * shapes/Circuit/index.sheet:
9900 Removed index.sheet.
9902 * shapes/Makefile.am:
9903 * shapes/flowchart/Makefile.am:
9904 * shapes/flowchart/*.shape:
9905 * shapes/flowchart/*.xpm:
9906 Added flowchart shapes. (Moved from objects/flowchart)
9909 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
9911 * app/app_procs.c: Fixed popt stuff.
9913 1999-11-01 James Henstridge <james@daa.com.au>
9915 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
9918 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
9922 Update version to 0.81.
9925 Update with news for 0.81.
9928 * shapes/Circuit_eu/*:
9929 Moved european circuit objects to Circuit sheet.
9931 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
9933 * lib/diagramdata.[ch]:
9934 Added layer_set_object_list() function.
9937 Added support for undo of reordered objects.
9938 Fix the undo of delete to keep the right order on undo.
9941 changed loop to object_add_updates_list() calls.
9942 Added undo support to bring to front/back.
9944 * app/disp_callbacks.c:
9945 * app/paginate_psprint.c:
9948 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
9950 This plugs some leaks. Thanks to
9951 Bruce Mitchener <bruce@cybersight.com> for running
9952 Dia through purify for me.
9955 Free displays and diagrams on exit.
9957 * app/modify_tool.c:
9958 Free gc when freeing tool.
9960 * lib/diagramdata.c:
9964 Free update and display lists when destroying display.
9966 * lib/diagramdata.c:
9967 Don't leak layer name.
9969 * objects/custom/load_sheet.c:
9970 * objects/custom/shape_info.c:
9971 Free loaded xml documents.
9973 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
9976 * app/object_ops.[ch]:
9977 Add undo handling to alignment ops.
9978 Based partially on patch by Dan Cohn <dan@internap.com>.
9980 * objects/standard/image.c (image_move_handle):
9981 Don't divide by zero for small images.
9982 Patch by Dan Cohn <dan@internap.com>.
9984 * objects/UML/class.c (umlclass_destroy):
9985 * objects/custom/custom_object.c (custom_destroy):
9986 Don't free connectionpoints before calling element_destroy
9987 which unconnects them.
9989 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
9991 * objects/custom/custom_object.c:
9992 Load and save padding too. Fixes strange load crashes.
9994 * app/group.c (group_destroy):
9995 Don't unconnect already freed connectionpoints when
9996 destroying group. Probably fixes bug reported by
9997 Elliot Lee <sopwith@redhat.com>.
10000 Don't crash on zero-size (broken) bezier curves.
10001 Different sort of fix. This should work on closed bezier curves
10004 * objects/standard/textobj.c:
10005 Activate default properties dialog for Text objects.
10007 * app/render_eps.c:
10009 * app/preferences.c:
10010 * app/render_svg.c:
10011 fopen files in binary or text mode.
10013 1999-10-26 Alexander Larsson <alex@cendio.se>
10015 * app/render_gdk.c (bezier_add_lines):
10016 Don't crash on zero-size (broken) bezier curves.
10017 Fixes a crashing bug.
10019 1999-10-25 James Henstridge <james@daa.com.au>
10021 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
10022 before it is installed.
10024 * objects/flowchart/flowchart.c: use relative paths to find shapes.
10026 * objects/custom/custom.c (custom_object_load): take file names
10027 relative to $(pkgdatadir)/shape-internal, and check an environment
10028 variable for an alternative directory.
10030 * app/...: added copyright messages to the top of my new code.
10032 * app/paginate_psprint.c: some general clean ups. Also, give an error
10033 dialog if we can't open the command or output file for writing.
10035 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
10036 function so it would set orientation to landscape correctly.
10038 * app/paginate_psprint.c: use the paper settings that come with
10039 the diagram. Also implemented landscape printing.
10041 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
10044 * app/commands.[ch] (file_pagesetup_callback): added callback for
10045 the page setup dialog.
10047 * app/menus.c: added page setup menu item.
10049 * app/pagesetup.[ch]: implementation of the page setup dialog.
10051 * app/diapagelayout.[ch]: added accessors for the scaling factor.
10053 * app/load_save.c (diagram_load): load paper information from save
10055 (diagram_save): save the paper info.
10057 * lib/diagramdata.c (new_diagram_data): initialise paper info section
10058 of DiagramData structure.
10059 (diagram_data_destroy): free the paper name.
10061 * lib/diagramdata.h: added a paper member to the DiagramData structure
10062 that holds the page layout info for a diagram.
10064 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
10066 * objects/flowchart/box.c:
10067 * objects/flowchart/ellipse.c:
10068 * objects/flowchart/diamond.c:
10069 * objects/flowchart/parallelogram.c:
10070 Load and save padding too. Fixes strange load crashes.
10072 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
10074 * app/app_procs.c (name_is_lib):
10075 .dll, .sl and .so.0.0.0 are also libraries.
10077 1999-10-20 James Henstridge <james@daa.com.au>
10079 * configure.in: added extra makefile.
10081 * shapes/Circuit_eu/*: a new set of european circuit shapes from
10082 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
10083 (added fuses to makefile, fill the area of some of the components).
10085 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
10089 Add GDK_IMLIB_CFLAGS to includes.
10090 Changed --export-dynamic to -export-dynamic
10093 * objects/UML/message.c:
10094 Removed c++ comment.
10096 * lib/render_store.[ch]:
10097 Don't use empty structure. That is not Ansi C.
10099 1999-10-19 James Henstridge <james@daa.com.au>
10101 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
10102 the margin entries, as they allow interpretation of units.
10103 (paper_size_change): display the current page dimensions.
10105 * app/diaunitspinner.[ch]: a widget derived from the standard
10106 GtkSpinButton that tries to take units into account. So if you enter
10107 "1in" into the entry, it will convert it to 2.54cm.
10109 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
10112 Removed include of dlfcn.h
10114 1999-10-18 James Henstridge <james@daa.com.au>
10116 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
10117 bound on margin widths. It is set to the paper width/height.
10119 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
10120 routine for the diamond. This bug was found and fixed by Daniel Wang
10121 <danwang@CS.Princeton.EDU>
10123 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
10125 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
10126 remove warning (OS/2 version).
10128 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
10131 Put a pointer to objects/custom/README.
10133 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
10136 Updated version to 0.80
10139 Updated version to 0.80cvs
10141 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
10143 * Released Dia 0.80
10144 Tag called DIA_0_80
10146 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
10150 * objects/UML/Makefile.am
10151 * objects/ER/Makefile.am
10152 * objects/network/Makefile.am
10153 * objects/standard/Makefile.am
10154 * objects/FS/Makefile.am
10155 * objects/sybase/Makefile.am
10156 * objects/flowchart/Makefile.am
10157 * objects/custom/Makefile.am
10158 Added -I$(top_srcdir)/intl which is needed for
10159 --with-included-gettext.
10165 Updated swedish translation.
10167 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
10170 Updated version number to 0.80.
10176 Updated. Moved bugs to KNOWN_BUGS.
10179 Updated with 0.80 release notes.
10181 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
10184 For backwards compatibility, make sure handle 0 and 1 are the
10185 first and last handle. Fixes compatibility with 0.41, breaks
10186 compatibility with cvs version.
10187 Fixed bug in undo/redo of adding deleting endpoint segments
10188 when the endpoint was connected.
10189 Start OrthConn objects with three segments.
10191 1999-10-16 James Henstridge <james@daa.com.au>
10193 * objects/custom/custom_object.c (custom_update_data): changed
10194 resizing behaviour a bit so that shapes don't grow huge when you try
10195 to resize them to smaller than the size required by the text box.
10196 Also, now shapes will not grow with fixed aspect ratio when you enter
10197 text into them unless the shape has the fixed aspect ratio flag set.
10199 1999-10-15 James Henstridge <james@daa.com.au>
10201 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
10203 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
10205 * objects/flowchart/magdrum.shape:
10206 * objects/flowchart/offlinestore.shape:
10207 * objects/flowchart/punchedtape.shape:
10208 * objects/flowchart/transmittape.shape:
10209 * objects/flowchart/punchedcard.shape: new shapes.
10211 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
10213 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
10215 * objects/flowchart/collate.shape:
10216 * objects/flowchart/delay.shape:
10217 * objects/flowchart/extract.shape:
10218 * objects/flowchart/intstorage.shape:
10219 * objects/flowchart/magdisk.shape:
10220 * objects/flowchart/magtape.shape:
10221 * objects/flowchart/merge.shape:
10222 * objects/flowchart/or.shape:
10223 * objects/flowchart/sort.shape:
10224 * objects/flowchart/sumjunction.shape: new shapes.
10226 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
10230 Entering an erronous command as print command
10233 * app/paginate_psprint.c:
10234 Save all print dialog values for next time.
10237 Remove custom lib from DIA_LIB_PATH.
10239 1999-10-14 James Henstridge <james@daa.com.au>
10241 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
10243 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
10245 * objects/flowchart/offpageconn.shape:
10246 * objects/flowchart/manualop.shape:
10247 * objects/flowchart/preparation.shape:
10248 * objects/flowchart/manualinput.shape:
10249 * objects/flowchart/predefdproc.shape:
10250 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
10252 1999-10-13 James Henstridge <james@daa.com.au>
10254 * app/diapagelayout.[ch]: added accessors to paper information. The
10255 widget should be just about complete now.
10257 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
10258 It actually does something now.
10260 1999-10-12 James Henstridge <james@daa.com.au>
10262 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
10263 for the page layout widget.
10265 * app/diapagelayout.[ch]: start of page layout widget. Not actually
10266 built yet as it is not complete.
10268 * objects/flowchart/flowchart.c: added new shapes to sheet.
10270 * objects/flowchart/display.shape:
10271 * objects/flowchart/transaction.shape: new shapes.
10273 * AUTHORS: added my name to the spec file.
10275 * dia.spec: include the dia desktop entry to the spec file.
10277 * Makefile.am: install the dia.desktop file.
10279 * dia.desktop: added a gnome desktop entry so you can start dia
10280 from the gnome panel menu.
10282 1999-10-11 James Henstridge <james@daa.com.au>
10284 * objects/custom/custom_object.c:
10285 * objects/custom/shape_info.c: warning fixes.
10287 * objects/flowchart/document.shape: a shape file for the `document'
10290 * lib/custom.h: new header with the custom shape prototypes.
10292 * app/app_procs.c: register custom objects as well.
10293 (register_objects_in): close shared libraries if they don't load
10294 correctly, and call g_module_make_resident on libraries that load
10297 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
10299 * objects/custom/custom.c: removed get_version, added custom_ prefix
10300 to register_objects and register_sheets.
10302 * objects/custom/Makefile.am: converted to a normal library.
10304 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
10306 * app/lineprops_area.c:
10307 * app/render_svg.c:
10309 * objects/custom/shape_info.c:
10310 * objects/flowchart/box.c:
10311 * objects/flowchart/diamond.c:
10312 * objects/flowchart/ellipse.c:
10313 * objects/flowchart/parallelogram.c:
10314 * objects/network/flash.c:
10315 * objects/network/scead-plug.c:
10316 * objects/sybase/client.c:
10317 Removed -Wall warnings.
10319 * objects/network/bus.c:
10320 Removed unused functions.
10322 * objects/FS/flow-ortho.c:
10323 * objects/FS/flow-poly.c:
10324 * objects/FS/flow.c:
10325 * objects/FS/function.c:
10327 Implemented "non-implemented" undo for FS objects.
10328 Now at least it won't crash.
10330 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
10332 * objects/network/bus.c:
10334 Handles are now added and removed using the object menu.
10335 Default to 6 handles instead of 10.
10336 Changed name from "Standard - Bus" to "Network - Bus". Kept old
10337 name for backwards compatibility.
10339 * objects/network/network.c:
10340 Changed name from "Standard - Bus" to "Network - Bus". Kept old
10341 name for backwards compatibility.
10343 * app/properties.[ch]:
10345 Update properties in properties dialog if the shown object
10346 is part of and ObjectChange (undo or redo).
10349 Remove old known bugs list.
10351 * objects/UML/class_dialog.c:
10352 Removed debug printf's.
10354 1999-10-10 James Henstridge <james@daa.com.au>
10356 * objects/custom/custom.c (custom_object_load): new function that
10357 provides a nice entry point to the custom shape code for when it
10358 gets used by other libraries.
10360 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
10361 speeds builds up a bit.
10363 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
10364 (SUBDIRS): do not descend into pixmaps subdirs.
10366 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
10367 This speeds up build process.
10369 * objects/custom/custom.c (sheets): made variable static.
10371 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
10374 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
10376 * objects/custom/custom.c: look in ~/.shapes instead of
10377 ~/.dia_shapes as the per-user shapes directory.
10379 * app/preferences.c (prefs_save): save config to ~/.diarc.
10380 (prefs_load): load configuration from ~/.diarc. If the file
10381 does not exist, fallback on the old ~/.diarc location.
10383 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
10385 (register_all_objects): look for user specific objects in
10386 ~/.objects rather than ~/.dia_libs.
10388 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
10392 * objects/flowchart/box.c
10393 * objects/flowchart/ellipse.c
10394 * objects/flowchart/flowchart.c
10395 Use gmodule for dynamic linking. As gmodule is using
10396 RTLD_GLOBAL i had to change flowchart box and ellipse
10397 so the typenames doesn't conflict with the standard
10402 Use button box to make dialogs look better.
10404 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
10406 * objects/UML/class_dialog.c:
10407 * objects/UML/class.h:
10408 Implemented undo for "UML - Class" objects.
10409 Not 100% tested yet.
10411 * objects/UML/classicon.c:
10412 * objects/UML/constraint.c:
10413 * objects/UML/dependency.c:
10414 * objects/UML/generalization.c:
10415 * objects/UML/implements.c:
10416 * objects/UML/large_package.c:
10417 * objects/UML/lifeline.c:
10418 * objects/UML/message.c:
10419 * objects/UML/object.c:
10420 * objects/UML/realizes.c:
10421 * objects/UML/state.c:
10422 * objects/UML/usecase.c:
10425 * lib/connectionpoint.h:
10428 1999-10-09 James Henstridge <james@daa.com.au>
10430 * objects/custom/*.[ch]: added copyright notices to custom object
10433 * shapes/Circuit/hdiode.shape:
10434 * shapes/Circuit/hzener.shape:
10435 * shapes/Circuit/opamp.shape:
10436 * shapes/Circuit/vdiode.shape:
10437 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
10438 shapes look nice after the custom shape code changes.
10440 * objects/custom/README: updated docs to cover changes to drawing
10443 * objects/custom/custom_object.c (custom_draw): honour the line
10444 properties when drawing the shape.
10446 * objects/custom/shape_info.[ch]: added support for setting line
10447 properties for individual drawing elements in a custom shape. You
10448 can set the dash style, dash length, cap style and join style.
10450 1999-10-07 James Henstridge <james@daa.com.au>
10452 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
10453 for foreground and background.
10455 * objects/custom/custom_object.c (custom_draw): use the new style
10456 information when drawing the object.
10458 * objects/custom/shape_info.[ch]: store all shape style info in the
10459 GraphicStyle structure. This makes adding support for extra CSS
10460 attributes easier -- we don't have to keep adding extra arguments to
10461 a lot of functions.
10463 1999-10-05 James Henstridge <james@daa.com.au>
10465 * lib/intl.c (unalias_lang): merged in changes from the i18n code
10466 swiped from gnome-libs.
10468 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
10470 * objects/standard/image.c (get_directory):
10471 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
10473 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
10475 * lib/poly_conn.c (polyconn_destroy):
10476 Fix bug. Access of freed memory.
10477 Rememeber, you can't free the handles of an object
10478 before calling object_destroy(), as it unconnects the handles
10479 therefore referencing them.
10481 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
10484 undo_clear() didn't set stack->depth to zero.
10485 This made other undo functions crash after this had been called
10489 Slightly modified by Chris Love <clove@exactis.com>
10491 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
10493 * objects/UML/class.h:
10494 * objects/UML/class_dialog.c:
10495 Retrun NULL ObjectChange on class property change.
10496 This means no crashes, but "UML - Class" doesn't support undo yet.
10498 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
10503 * objects/UML/classicon.c:
10504 * objects/UML/dependency.c:
10505 * objects/UML/generalization.c:
10506 * objects/UML/implements.c:
10507 * objects/UML/large_package.c:
10508 * objects/UML/lifeline.c:
10509 * objects/UML/message.c:
10510 * objects/UML/object.c:
10511 * objects/UML/realizes.c:
10512 * objects/UML/state.c:
10513 * objects/UML/usecase.c:
10514 Update to new undo (w. get/set_state).
10515 Add object menu to add/delete segments.
10517 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
10520 Add equal distance alignment.
10522 * app/object_ops.c:
10523 Add equal distance alignment.
10524 Fix bug in adjacent alignment.
10526 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
10528 * objects/UML/constraint.c:
10529 Update to new undo (w. get/set_state).
10531 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
10533 * app/paginate_psprint.c:
10534 Save (parts, more todo) of the info in the print dialog to the
10535 next time it's opened.
10536 Patch from Yo Ric Dude <ricdude@toad.net>
10538 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
10541 Updated version string to 0.41cvs.
10543 * objects/UML/assocition.c:
10544 Update to new undo (w. get/set_state).
10545 Add object menu to add/delete segments.
10548 Added function debug_break() and called it after all
10549 objects and sheets are loaded. Place a breakpoint here if you
10550 want to debug objects. All symbols should be loaded.
10552 1999-09-12 James Henstridge <james@daa.com.au>
10554 * app/menus.c (display_menu_items): added print menu item.
10555 (filemenu): always add print menu item -- even if gnome-print is
10558 * app/commands.h, app/commands.c (file_print_callback): the print
10559 menu item is now available for both gnome-print and non gnome-print
10562 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
10563 print with the non gnome-print driver.
10565 1999-09-11 James Henstridge <james@daa.com.au>
10567 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
10568 printer dialog code out of commands.c.
10570 * app/paginate_psprint.c: new file containing the pagination code for
10573 * app/render_eps.c: made a few modifications so as well as producing
10574 EPS files, this renderer can be set up to do postscript printing.
10575 This basically entailed adding an extra function to create a RenderEPS
10576 renderer which did not bother setting the viewport for the document.
10577 That was left for the pagination code.
10579 1999-09-10 James Henstridge <james@daa.com.au>
10581 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
10582 gnome-print does not support elliptic arcs at the moment, approximate
10583 the ellipse with eight bezier curves. This gives a pretty good
10584 match to a true ellipse.
10586 1999-09-09 James Henstridge <james@daa.com.au>
10588 * app/commands.c (file_gnome_print_callback): added support for
10589 scaling the diagram. Also fixed a few other bugs.
10591 * app/paginate_gnomeprint.c (print_page): added ability to scale
10592 document. Fixed up test to see if the page has no objects on it.
10593 This should prevent some blank pages being printed. Non square
10594 objects such as lines could still cause problems.
10596 1999-09-08 James Henstridge <james@daa.com.au>
10598 * app/commands.c (file_gnome_print_callback): changed from using the
10599 standard printer selection dialog to one that also has a paper size
10602 * commands.[ch]: added callbacks for the print menu item. Currently
10603 it only does A4 output. I will make it configurable soon.
10605 * app/menus.c: add a print diagram menu item if gnome-print support
10608 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
10609 bit higher level than the gnome-print renderer. It splits the
10610 diagram into page size chunks and then renders them. For each
10611 page, it only renders the objects whose bounding box intersects
10612 the page, and it sets the clip mask so that the diagram does not
10613 overlap the margins.
10615 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
10616 that uses gnome-print as its back end.
10618 * configure.in: added a check for gnome-print. It is disabled by
10619 default because the code is not really working correctly yet.
10621 * app/menus.c: the delete object menu item was missing from the
10622 GnomeUIInfo style menus.
10624 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
10627 Added japanese to ALL_LINGUAS.
10628 Fix for Linux on Alpha.
10630 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
10632 * app/create_object.c (create_object_button_press):
10633 Always initialize tool->obj. Otherwise we store a null
10634 in the undo Change.
10637 Set linestyle before drawing cursor.
10638 Fix undo of backwards delete.
10640 1999-09-05 James Henstridge <james@daa.com.au>
10642 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
10644 * app/render_svg.c (draw_image): some fixes so that the appropriate
10645 style attributes are set. Before it was setting line styles on
10646 fill_* functions. Now it only does this for the draw_* variants.
10648 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
10649 variable so that custom shapes can be loaded.
10651 * shapes/: new directory for custom shapes. The Circuit sheet has
10654 1999-09-02 James Henstridge <james@daa.com.au>
10656 * TODO: removed a few todo items that have been implemented.
10658 * app/interface.c (create_sheets): enabled the popup page menu to the
10659 notebook. This can make it easier to select different sheets.
10661 * object/custom/Circuit/: added diode, zener diode, ground point and
10662 operational amplifier shapes.
10664 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
10665 if you want the output.
10667 * objects/custom/shape_info.c (parse_path): same here.
10669 * objects/custom/load_sheet.c (load_with_readdir): don't print so
10670 much debugging output. To get the previous level of output, define
10673 * objects/custom/shape_info.c (parse_svg_node): polygons were being
10674 recorded as polylines in the ShapeInfo structure.
10676 * objects/custom/README: some notes on writing new custom shapes.
10678 1999-09-01 James Henstridge <james@daa.com.au>
10680 * objects/custom/Circuit/hinductor.*:
10681 * objects/custom/Circuit/vinductor.*: added inductor shapes that
10682 also test out the bezier curve and SVG path support.
10684 * objects/custom/custom_object.c (custom_draw): added support for
10685 drawing bezier paths and filled shapes.
10687 * objects/custom/shape_info.c (parse_path): new function to parse
10688 SVG path elements. It does not do quadratic beziers or elliptic
10689 arcs though. Only moves, lines and cubic beziers.
10690 (*): added support for paths.
10692 1999-08-31 James Henstridge <james@daa.com.au>
10694 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
10696 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
10699 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
10702 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
10705 * lib/render_store.[ch]: use newer bezier functions.
10707 * lib/render.h: changed the bezier drawing functions to use an array
10708 of BezPoint structures instead of normal Point structures to allow
10709 lineto's mixed in with the curveto's.
10711 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
10713 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
10714 xpm images for different shapes to Makefile.
10716 * objects/custom/custom_object.c (custom_object_new): set the icon
10717 for the sheet button if there is one. Otherwise fall back on the
10718 default custom object icon.
10720 * objects/custom/shape_info.c (load_shape_info): read the sheet
10721 icon name from the shape file.
10723 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
10724 check the pixmap_file field for the name of a pixmap file to load
10727 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
10728 at the end of the structure, and it isn't used if the pixmap field
10729 is non NULL, so it should not break binary compatibility.
10731 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
10732 added support for the use of an index.sheet file so you can specify
10733 the ordering of the shapes in the sheet, and also internationalise
10734 the sheet name and actually be able to give a description. The old
10735 readdir based sheet loading code acts as a fallback if an index.sheet
10736 file can not be found.
10738 * objects/custom/custom_util.[ch]: new file containing useful routines
10739 needed by the custom object code. Currently only contains a simple
10740 routine for resolving relative paths.
10742 * objects/custom/custom_object.c (custom_draw): fixed problem with
10743 drawing rectangles if the shape has been flipped.
10745 1999-08-30 James Henstridge <james@daa.com.au>
10747 * objects/custom/custom_object.c (custom_get_object_menu): allow
10748 flipping of custom shapes. This uses the miggle click object
10751 * objects/custom/Circuit/npn.shape: fix aspect ratio.
10753 * objects/custom/custom_object.c (custom_update_data): honour the
10754 aspect ratio constraints.
10756 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
10757 tag parsing, so you can specify a free, fixed or a range for aspect
10758 ratios for the shape.
10760 1999-08-29 James Henstridge <james@daa.com.au>
10762 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
10763 up shape namespace tag.
10765 * objects/custom/shape_info.c (load_shape_info): check xml:lang
10766 attribute on <description> elements to support i18n for custom
10767 shape descriptions.
10768 Also changed the shape namespace for custom shapes to something
10769 a little more sensible.
10771 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
10773 * lib/intl.c: new file containing some functions for i18n stuff.
10775 * app/layer_dialog.c (create_button_box): fixed a warning.
10777 * objects/custom/custom_object.c: use current line style. Save dash
10780 * objects/flowchart/diamond.c: use current line style. Save dash
10783 * objects/flowchart/parallelogram.c: use current line style. Save
10786 * objects/flowchart/ellipse.c: use current line style. Save dash
10789 * objects/flowchart/box.c: use current line style. Save dash length.
10791 * objects/standard/ellipse.c: make ellipse use current line style.
10793 * objects/standard/box.c: use the line style set in the toolbox for
10794 new boxes, and remember the dash length.
10796 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
10799 1999-08-24 James Henstridge <james@daa.com.au>
10801 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
10802 to try to stop ellipse to get infinite width/height when we resize,
10803 while trying to keep the text inside the ellipse.
10805 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
10806 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
10807 resizing behaviour, so that you can't push objects round the screen
10808 with the resize handles.
10810 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
10811 get the OK buttons in the dialogs to take default clicks.
10813 * objects/custom/custom_object.c: added code so that resizing the
10814 shape does not end up pushing it round the screen.
10816 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
10818 * app/display.[ch]:
10819 Generate rectangle with the union of the damaged regions.
10820 This is used to optimize the grid paint and the object rendering.
10821 display_render_pixmap passes this info to grid_draw() and data_render().
10824 grid_draw doesn't draw grid lines outside of damaged rectangle.
10825 Sets dashlength when drawing non-solid grid.
10827 * lib/diagramdata.[ch]:
10828 data_render() and layer_render() takes an optional damaged rectangle
10829 argument. No objects not intersecting this are drawn.
10833 Call data_render with NULL update rectangle.
10835 1999-08-23 James Henstridge <james@daa.com.au>
10837 * objects/custom/custom_object.c (custom_update_data): if the aspect
10838 ratio is fixed, make sure the shape is not distorted.
10840 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
10841 a <fixaspectratio/> tag is given in the shape file.
10843 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
10844 added support for stroke-width, stroke and fill CSS attributes
10845 specified in style attributes of the SVG elements. The line width
10846 is relative to the user specified line width. The stroke and fill
10847 attributes can only be used to swap the foreground/background
10850 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
10851 sensitivity on the dash length selector when this function is called.
10853 * objects/standard/arc.c: same. Also handle dash length.
10854 * objects/standard/zigzagline.c: same.
10855 * objects/standard/polyline.c: same. Also handle dash length.
10856 * objects/standard/line.c: use default arrow/line styles.
10858 * app/interface.c: added callbacks to set the default attributes.
10860 * lib/attributes.c: added implementations of these functions.
10862 * lib/attributes.h: added extra prototypes for the new line properties
10863 area in the toolbox.
10865 * app/interface.c (create_lineprops_area): added line properties
10866 area to bottom of toolbox.
10868 * app/lineprops_area.h: a header exporting a few routines of the
10869 line properties area widgets.
10871 * app/lineprops_area.c: new file containing a selector for arrows
10872 and line styles to go in the main toolbox.
10874 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
10877 Update Gtk+ 1.0.5 comment to 1.2.0.
10886 Make sure we don't propagate -ldl and -lpopt to all LIBS
10887 by adding new var APP_LIBS that only app/dia links with.
10890 Update run_dia.sh to load custom and flowchart objects.
10892 * objects/ER/Makefile.am:
10893 * objects/FS/Makefile.am:
10894 * objects/UML/Makefile.am:
10895 * objects/network/Makefile.am:
10896 * objects/standard/Makefile.am:
10897 * objects/sybase/Makefile.am:
10898 Don't build versioned libs.
10900 1999-08-22 James Henstridge <james@daa.com.au>
10902 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
10905 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
10906 should actually work a bit now.
10908 * objects/custom/Circuit/*: a test sheet for the custom shape code.
10909 It is a small collection of circuit elements.
10911 * objects/custom/shape_info.c: fixed up loading of polylines and
10912 polygons. Before it was removing negative signs :(
10914 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
10915 placeholder was here before. I still need to work out how to set
10916 icons for individual custom shapes.
10918 * objects/custom/custom.c: added code to load the shapes into sheets
10919 properly. The shape files should be arranged into directories, and
10920 each directory represents a different sheet in the toolbox. This
10921 will make it very easy to distribute a collection of dia shapes as
10922 a tarball. I still need to work out internationalisation, and maybe
10923 also shape ordering in the sheet.
10925 * objects/custom/custom_object.c: fixed up dialogs for these objects.
10926 (custom_create): fix for objects without text areas.
10928 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
10929 and saving of custom object works correctly now.
10931 1999-08-21 James Henstridge <james@daa.com.au>
10933 * objects/flowchart/ellipse.c:
10934 * objects/flowchart/diamond.c:
10935 * objects/flowchart/parallelogram.c:
10936 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
10937 copying or loading these object types. Not all the connection
10938 points would be initialised correctly.
10940 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
10943 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
10944 build a versioned library. It will only ever be dlopen'd, so this
10947 * objects/custom/custom_object.c (custom_distance_from): allow
10948 selecting the object by clicking on the text. This fixes problems
10949 where the text box is outside the graphic.
10951 * objects/custom/shape_info.c (load_shape_info): fixed up reading
10952 of connections points. It should be possible to add connections
10953 to custom objects now.
10955 * objects/custom/custom_object.c (custom_update_data): fixed resizing
10956 due to changes to text.
10958 * configure.in: added extra makefiles.
10960 * objects/custom/shape_info.[ch]:
10961 * objects/custom/custom_object.c:
10962 * objects/custom/custom.c: the starts of custom shape support in dia.
10963 This is not built by default at the moment, since it is not quite
10964 complete. When it is, it will let you create more shapes for dia
10965 without writing a line of C. Its implementation includes buzzwords
10966 such as XML and SVG, so it must be good :)
10968 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
10970 * app/app_procs.c (app_exit): Use button labels "Quit" and
10971 "Cancel" instead of "Yes" and "No".
10972 Set default action to "Cancel" instead of "Quit".
10974 1999-08-19 James Henstridge <james@daa.com.au>
10976 * objects/flowchart/flowchart.c: added ellipse object.
10978 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
10980 1999-08-18 James Henstridge <james@daa.com.au>d
10982 * app/color_area.c (color_area_edit): small fix to prevent dia from
10983 segfaulting when you try to change the default foreground/background.
10985 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
10987 * app/diagram.[ch] (diagram_redraw_all):
10988 Added function that redraws all diagrams.
10990 * app/preferences.c (prefs_apply):
10991 Call diagram_redraw_all when prefs are changed.
10993 * app/render_svg.c:
10994 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
10995 older libxml's, and the old version works good enought here.
10997 1999-08-17 James Henstridge <james@daa.com.au>
10999 * lib/widgets.c: changed handlers that were connected to the GtkButton
11000 "pressed" signal to connect to the "clicked" signal. This removes the
11001 problem where dialogs are inactive until you click a mouse button
11002 after using a colour selector.
11004 * configure.in: added extra makefiles to AC_OUTPUT list.
11006 * objects/Makefile.am (SUBDIRS): added flowchart module
11008 * objects/flowchart/*: a collection of shapes for use in flowcharts.
11010 * app/color_area.c (color_area_events): similar here.
11012 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
11013 event is recieved with event->width == 0, which causes a warning if we
11014 try to create a pixmap of that width.
11016 * app/preferences.c, app/preferences.h, app/grid.c: added code to
11017 allow you to configure the colour of the grid, and also lets you
11018 set the grid to use dotted lines instead of solid ones.
11020 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
11021 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
11023 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
11024 export filter. It is not quite complete, but for most shapes it
11025 works as expected. Fonts still need a bit of work.
11027 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
11029 * configure.in: Added "en_GB" to ALL_LINGUAS.
11031 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
11034 Added Undo and Redo to GNOME menus.
11036 * objects/ER/attribute.c:
11037 * objects/ER/entity.c:
11038 * objects/ER/participation.c:
11039 * objects/ER/relationship.c:
11040 Added get/set_state functions.
11042 * objects/ER/participation.c:
11043 Added add/delete segment.
11046 Updated Swedish translation.
11048 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
11050 * app/preferences.[hc]:
11051 Added undo_depth pref.
11054 Never grow stack larger than pref.undo_depth.
11055 undo_depth == 0 means unlimited.
11056 Converted printfs to conditionally compiled DEBUG_PRINTFs.
11058 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
11063 * lib/render_object.c:
11064 * objects/ER/attribute.c:
11065 * objects/ER/entity.c:
11066 * objects/ER/participation.c:
11067 * objects/ER/relationship.c:
11068 * objects/FS/flow-ortho.c:
11069 * objects/FS/flow-poly.c:
11070 * objects/FS/flow.c:
11071 * objects/FS/function.c:
11072 * objects/UML/actor.c:
11073 * objects/UML/association.c:
11074 * objects/UML/class.c:
11075 * objects/UML/classicon.c:
11076 * objects/UML/component.c:
11077 * objects/UML/constraint.c:
11078 * objects/UML/dependency.c:
11079 * objects/UML/generalization.c:
11080 * objects/UML/implements.c:
11081 * objects/UML/large_package.c:
11082 * objects/UML/lifeline.c:
11083 * objects/UML/message.c:
11084 * objects/UML/note.c:
11085 * objects/UML/object.c:
11086 * objects/UML/realizes.c:
11087 * objects/UML/small_package.c:
11088 * objects/UML/state.c:
11089 * objects/UML/usecase.c:
11090 * objects/network/bus.c:
11091 * objects/standard/arc.c:
11092 * objects/standard/box.c:
11093 * objects/standard/ellipse.c:
11094 * objects/standard/image.c:
11095 * objects/standard/line.c:
11096 * objects/standard/polyline.c:
11097 * objects/standard/textobj.c:
11098 * objects/standard/zigzagline.c:
11099 Removed all traces of is_empty(). It doesn't work in an
11102 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
11107 Undoable grouping and ungrouping.
11109 * app/layer_dialog.c:
11110 * lib/diagramdata.[ch]:
11111 Undoable layer ops.
11113 * app/modify_tool.c:
11114 Undoable unconnect on handle move.
11116 * lib/orth_conn.[ch]:
11117 Working undoable add/remove segment.
11118 Removed endpoint_handles from OrthConn, renamed
11119 midpoint_handles to handles and put the endpoint
11122 * objects/standard/zigzagline.c:
11123 * objects/ER/participation.c:
11124 * objects/UML/association.c:
11125 * objects/UML/dependency.c:
11126 * objects/UML/generalization.c:
11127 * objects/UML/realizes.c:
11128 Update for the changes in OrthConn
11130 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
11132 * configure.in: Added "de" to ALL_LINGUAS.
11134 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
11146 Don't have the <Display> etc part of the menu strings
11147 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
11150 Don't have the <Display> etc part of the menu strings
11151 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
11152 Don't remove is_empty() objects, that don't work with undo.
11154 * lib/objchange.[ch]:
11156 Definition of ObjectChange. This is essentially an Change
11157 exported to the object libs. It encapsulates a change made
11158 to an objects internals. It can be applied, reverted and freed.
11159 There are also utility functions for doing ObjectChanges that
11160 only get/set the whole state of an object to store the change.
11161 This cannot be used when the object change deletes or adds a
11162 object which has references from other objects, eg. Handles which
11163 might be connected.
11166 Added objchange.c and objchange.h.
11169 Return NULL when loading fails.
11172 Menu callbacks return an ObjectChange.
11175 Reference objchange.o
11178 Key events return ObjectChange if they modify the object.
11182 Added object_add_handle_at() function.
11183 Apply properties returns an ObjectChange.
11184 Remove ObjectState and the get/set state functions, these
11185 don't always work. Use the new ObjectChange instead.
11188 Added object_add_handle_at() function implementation.
11190 * lib/orth_conn.[ch]:
11191 Use ObjectChange. Not finished yet.
11192 Removed get/set/free state functions
11194 * lib/poly_conn.[ch]:
11196 Don't remove segments that are small.
11197 Removed get/set/free state functions
11201 Added functions to get/set all text attributes.
11203 * objects/standard/arc.c:
11204 * objects/standard/box.c:
11205 * objects/standard/ellipse.c:
11206 * objects/standard/image.c:
11207 * objects/standard/line.c:
11208 * objects/standard/polyline.c:
11209 * objects/standard/textobj.c:
11210 * objects/standard/zigzagline.c:
11212 fixed bug in image_set_state.
11213 zigzagline.c not finished yet.
11215 * app/disp_callbacks.c:
11216 Use ObjectChange that are returned from menu callbacks and
11217 key_events for undo.
11219 * app/properties.c:
11220 Use ObjectChange that are returned from properties apply
11225 New undo type: ObjectChangeChange. This wraps a change to the
11226 internals of an object (and ObjectChange) in code that does
11227 app specific stuff (object_add_updates etc.)
11229 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
11231 * lib/orth_conn.[ch]:
11232 Added code for add/delete segment.
11234 * objects/standard/zigzagline.c:
11235 Use the new orth_conn code.
11238 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
11240 * objects/FS/Makefile.am
11241 Removed fs.h from sources.
11247 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
11249 * app/disp_callbacks.c (ddisplay_canvas_events):
11250 Fix for bug. Every other arrow-key press got lost.
11251 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
11254 change automake.sh to autogen.sh
11256 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
11259 Don't remove 'empty' objects.
11260 This violent destruction of objects won't work
11261 with the new undo framework.
11263 * app/disp_callbacks.c:
11264 Save undo info for object menu calls and key_events.
11266 * app/properties.c:
11267 Save undo info on properties apply.
11269 * lib/dia_image.[ch]:
11270 Add refcounting for images.
11272 * app/render_eps.c:
11273 * app/render_gdk.c:
11275 DiaImage * -> DiaImage
11278 Add undo functions for object state changes.
11282 change of semntics for focus->key_event.
11283 Now returns TRUE if the object recieving the event
11289 * lib/orth_conn.[ch]:
11290 Don't automatically create and delete segments when
11291 handles are moved. This is incompatible with undo.
11292 Added state get, set and free functions.
11294 * lib/orth_conn.[ch]:
11295 Added state get, set and free functions.
11297 * objects/UML/object.c:
11298 * objects/UML/uml.c:
11299 Fixed typo "UML - Objet" -> "UML - Object".
11300 Saved old for backwards compatibility.
11302 * objects/standard/arc.c:
11303 * objects/standard/box.c:
11304 * objects/standard/ellipse.c:
11305 * objects/standard/image.c:
11306 * objects/standard/line.c:
11307 * objects/standard/polyline.c:
11308 * objects/standard/textobj.c:
11309 * objects/standard/zigzagline.c:
11310 Added get/set state functions.
11311 Textobj has a redo crash-bug.
11312 Zigzagline needs object menus to add segments.
11315 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
11317 * app/render_eps.c (set_dashlength):
11318 Don't generate eps files with zero dash-length.
11320 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
11323 * app/create_object.c:
11325 Finished undo for create and paste.
11328 Started properties undo.
11330 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
11333 Added resizeable groups.
11336 Removed unused variable.
11340 Undo/redo for cut/delete done.
11342 * app/create_object.c:
11343 * app/modify_tool.c:
11344 * lib/diagramdata.[ch]:
11345 * app/diagram.[ch]:
11346 renamed diagram_add_selected -> diagram_select
11347 renamed diagram_remove_selected -> diagram_unselect
11349 * app/properties.[ch]:
11350 Added properties_hide_if_shown() function.
11352 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
11358 * app/commands.[ch]
11359 * app/modify_tool.[ch]
11360 * app/object_ops.[ch]
11361 * app/connectionpoint_ops.c
11363 Use undo functions.
11364 WARNING: Not finished. Will break.
11365 Finished: move object, move handle.
11368 Added diagram_selected_break_external() function.
11369 It removes all connections between selected objects
11371 Add undo stack to Diagram.
11373 * lib/diagramdata.[ch]
11374 Added layer_remove_objects() function
11376 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
11378 * objects/FS/Makefile.am
11379 * objects/sybase/Makefile.am
11380 Now uses GNOME_CFLAGS.
11383 Now compiles with GNOME even if popt.h isn't available.
11385 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
11388 * objects/Makefile.am
11390 First version of sybase objects from
11391 Brian Bruns <camber@umcc.ais.org>
11393 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
11396 Added fr to ALL_LINGUAS
11398 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
11402 Popt-code is activated if popt is available.
11404 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
11406 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
11408 * lib/orth_conn.[ch]:
11409 Added orthconn_get_middle_handle()
11412 Added text_set_cursor_at_end()
11415 Added first version of functions structure diagrams.
11417 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
11419 * app/modify_tool.c:
11420 Include math.h to remove warning.
11422 * app/commands.c (dialogs_properties_callback):
11423 Bring up correct properties dialog when selected
11425 From Dan Cohn <dan@internap.com>
11427 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
11429 Patch from Lars R. Clausen
11431 * app/modify_tool.c:
11432 Changed abs to fabs.
11434 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
11440 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
11442 Patches from Dan Cohn <dan@internap.com>
11444 * app/commands.[ch]:
11445 * app/display.[ch]:
11447 * app/preferences.[ch]:
11448 Implements ability to turn on/off connection points in
11449 current drawing and in global prefs.
11451 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
11453 * lib/widgets.c (dia_line_style_selector_init):
11456 * lib/diagramdata.c (layer_update_extents):
11457 Fixed uninitialized variable error.
11459 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
11462 Made some changes to the gdk_imlib visual+colormap setup.
11464 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
11466 * objects/UML/usecase.c:
11467 * objects/UML/lifeline.c
11470 * objects/UML/object.c:
11471 * objects/UML/message.c:
11472 Changed font from Courier to Helvetica.
11476 Added dash lenth to the LineStyle widget.
11478 * objects/standard/ellipse.c :
11479 * objects/standard/zigzagline.c:
11480 * objects/standard/line.c:
11481 Added dash lenght property.
11483 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
11485 * app/render_eps.c:
11486 First shot at latin1 encoded eps files.
11487 Works, but the eps files get a bit large.
11489 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
11491 * objects/UML/class.[ch]:
11492 * objects/UML/uml.[ch]:
11493 Reverted the line wrap changes.
11494 Some day this might return, but it has to be selectable and
11495 default to off for loaded objects, otherwise it breaks file
11496 format compatibility.
11497 There was also some complains about how it looked, so a making it
11498 selectable is good for this too.
11500 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
11502 * objects/UML/class.[ch]:
11503 Some indentation cleanup.
11504 Added wrap_lines variable to class.
11505 I'll fix the line break stuff tomorrow.
11507 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
11510 Added ref to poly_conn.o.
11512 * objects/standard/polyline.c (polyline_draw):
11513 * objects/standard/zigzagline.c (zigzagline_draw):
11514 * objects/standard/arc.c (arc_draw):
11515 * objects/standard/line.c (line_draw):
11516 Draw lines before arrows. This makes hollow arrows not
11519 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
11521 Changes from Kim Peasley <kpeasley@ior.com>
11523 * objects/UML/class.c:
11524 Break lines with long operations so classes won't be
11527 * objects/UML/uml.[ch]:
11528 Helperfunctions for the above.
11530 * objects/UML/objects.c:
11531 Fix bug that duplicated the text in the attributes
11532 textwidget each time the object was selected.
11534 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
11536 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
11538 * app/modify_tool.c:
11539 * app/modify_tool.h:
11540 Control-drag is restricted to vertical/horizontal movement
11543 ModifierKeys argument added to object_move_handle
11545 * app/connectionpoint_ops.c:
11546 * app/create_object.c:
11547 * app/object_ops.c:
11548 * objects/ER/attribute.c:
11549 * objects/ER/entity.c:
11550 * objects/ER/participation.c:
11551 * objects/ER/relationship.c:
11552 * objects/UML/actor.c:
11553 * objects/UML/association.c:
11554 * objects/UML/class.c:
11555 * objects/UML/classicon.c:
11556 * objects/UML/component.c:
11557 * objects/UML/constraint.c:
11558 * objects/UML/dependency.c:
11559 * objects/UML/generalization.c:
11560 * objects/UML/implements.c:
11561 * objects/UML/large_package.c:
11562 * objects/UML/lifeline.c:
11563 * objects/UML/message.c:
11564 * objects/UML/note.c:
11565 * objects/UML/object.c:
11566 * objects/UML/realizes.c:
11567 * objects/UML/small_package.c:
11568 * objects/UML/state.c:
11569 * objects/UML/usecase.c:
11570 * objects/network/bus.c:
11571 * objects/standard/arc.c:
11572 * objects/standard/box.c:
11573 * objects/standard/ellipse.c:
11574 * objects/standard/image.c:
11575 * objects/standard/line.c:
11576 * objects/standard/polyline.c:
11577 * objects/standard/textobj.c:
11578 * objects/standard/zigzagline.c:
11579 Changed calls to move_handle to pass the new argument.
11583 Default line width, color etc #define'd
11586 Updates of danish menus
11588 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
11591 * dia_gnome_icon.png
11592 * dia_gnome_menu_icon.png
11594 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
11597 About dialog shows dia_logo.png. Removed the GNOME about dialog.
11600 Distribute the icons and install logo in pkgdatadir.
11603 Added DATADIR-define.
11605 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
11606 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
11609 Updated version number, made setup quiet, can build from cvs,
11610 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
11613 * objects/ER/Makefile.am
11614 * objects/UML/Makefile.am
11615 * objects/network/Makefile.am
11616 * objects/standard/Makefile.am
11617 now builds better with gnome
11619 * objects/UML/class_dialog.c
11620 Fixed typo -> po files must be updated too!!
11622 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
11625 Added reference so that widgets.o gets linked to the app.
11627 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
11629 * objects/UML/classicon.c:
11632 * objects/UML/actor.c:
11633 Changed position of 'snap-to-grid' so connection points are
11636 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
11638 * objects/UML/classicon.c:
11639 Changed position of 'snap-to-grid'.
11640 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
11642 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
11644 * objects/network/antenna.c
11645 * objects/network/flash.c
11646 * objects/network/hub.c
11647 * objects/network/modem.c
11648 * objects/network/modularswitch.c
11649 * objects/network/rj45plug.c
11650 * objects/network/scead-plug.c
11651 * objects/network/network.c
11652 * objects/network/Makefile.am
11653 * objects/network/pixmaps/antenna.xpm
11654 * objects/network/pixmaps/flash.xpm
11655 * objects/network/pixmaps/hub.xpm
11656 * objects/network/pixmaps/modem.xpm
11657 * objects/network/pixmaps/modularswitch.xpm
11658 * objects/network/pixmaps/rj45plug.xpm
11659 * objects/network/pixmaps/sceadplug.xpm
11660 * objects/network/pixmaps/Makefile.am
11661 Lots of new network objects from
11662 Roland Steinbach <roland@support-system.com>.
11664 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
11666 * objects/UML/classicon.c:
11667 Fixed connection positions, saved type as int (it has 3 states),
11668 and other small fixes.
11670 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
11672 * app/preferences.c:
11674 Added preference compress_save. It lets dia save uncompressed
11677 * objects/UML/class.c:
11678 Fixed bug with size calculation on methods that had class scope.
11680 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
11682 * objects/UML/usecase.c:
11683 Added collaboration mode
11684 Fixed connection points with text > ellipse bug and other
11687 * objects/UML/state.c:
11688 Fixed bug of bad position of text after being either end
11689 or begin, moved and returned to text
11691 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
11693 * app/preferences.c: Add prototype declaration for prefs_apply.
11695 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
11697 * app/preferences.c:
11699 Apply don't hide window.
11701 * app/properties.c:
11704 * objects/UML/object.c:
11705 * objdcts/UML/state.c:
11706 Some data was not copied on copy.
11709 Ben Hochstedler <benh@eeyore.moneng.mei.com>
11711 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
11714 Changed link order between X and libxml.
11715 Some people had problems with an old libz in their
11718 1999-04-09 Kjartan Maraas <kmaraas@online.no>
11720 * po/no.po: updated translation.
11722 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
11724 * lib/message.c (message_error):
11727 * app/commands.[ch]:
11728 * app/diagram.[ch]:
11729 Added begining of xfig importing
11731 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
11733 * objects/UML/pixmaps/state.xpm:
11734 * objects/UML/state.c:
11735 New UML object state machine.
11737 * objects/UML/uml.c:
11738 * objects/UML/Makefile.am:
11739 * objects/UML/pixmaps/Makefile.am:
11740 Added the state object.
11742 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
11744 * objects/UML/usecase.c:
11745 Added dialog to allow move text outside the ellipse.
11747 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
11749 * Released Dia 0.41
11750 Tag called DIA_0_41
11755 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
11758 Updated version number to 0.41
11763 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
11766 Changed errormessage for --export-to-ps. Removed call to
11767 g_log_set_always_fatal().
11770 * app/disp_callbacks.c
11772 (i18n) Removed gettext from some debugmessages.
11775 Small fix in GNOME-menus. Added warning that will help track
11776 problems with translations.
11779 (i18n) Updated swedish translation.
11781 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
11786 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
11792 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
11795 (i18n) Updated the danish translation.
11796 From Lars R. Clausen.
11798 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
11801 (i18n) The popup menu is translated now.
11804 (i18n) Updated swedish translation.
11806 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
11808 * Released Dia 0.40
11809 Tag called DIA_0_40
11812 Updated for new release
11814 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
11816 * objects/network/bus.c:
11817 Added initialization of properties dialog to NULL.
11819 * app/commands.c (edit_cut_callback):
11820 Update menu sensitivity when cut object.
11822 * app/modify_tool.c (click_select_object):
11823 * app/modify_tool.c (modify_button_release):
11824 Call diagram_update_menu_sensitivity() when
11825 selecting objects to update stuff that depends
11826 on selected/not selected.
11828 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
11831 Change order of subdir so that libintl.a builds.
11832 Now passed make distcheck.
11834 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
11836 * lib/font.c (init_x11_font):
11839 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
11841 * objects/UML/pixmaps/classicon.xpm:
11842 * objects/UML/classicon.c:
11843 * objects/UML/uml.c:
11844 Added the class stereotype icon objects.
11847 Changed default ps extension from .ps to .eps.
11849 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
11852 Added diamenu.h and intl.h
11857 * objects/UML/pixmaps/Makefile.am:
11860 * objects/standard/pixmaps/Makefile.am:
11863 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
11866 Use a scalable font before fixed when real font not found.
11871 * objects/standard/image.c:
11872 Better handling of loading/saving of images.
11875 Added some text about cvs, fonts and rewrote some parts.
11878 Updated with new stuff.
11881 Bump up version number to 0.40.
11883 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
11886 Moved diagram_add_ddisplay() call into new_display().
11887 Fixed new_display to not use uninitialized variables
11888 causing loaded files to show up as black (or garbage).
11892 Removed unneeded calls to diagram_add_ddisplay().
11894 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
11896 * objects/UML/lifeline.c:
11898 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
11900 * objects/UML/message.c:
11901 Fixed bug loading messages with null-text.
11902 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
11904 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
11907 Updated swedish translation.
11910 (GNOME) Removed help-browser from help menu. Fixed typo.
11913 (GNOME) Accelerators in diagrams should work now.
11915 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
11920 * app/disp_callbacks.c
11924 * app/preferences.c
11926 * lib/diagramdata.c
11932 * objects/network/*.c
11933 * objects/standard/*.c
11934 * po/update_pofiles_in.sh
11936 More i18n. All strings (expect rare debug messages) can be
11937 translated now. Moved intl.h from app to lib. Updated
11938 update_pofiles_in.sh to check all .c-files.
11940 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
11942 * app/disp_callbacks.c (ddisplay_canvas_events):
11943 Don't drop keys while num-lock, scroll-lock etc is on.
11945 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
11947 * app/render_eps.c (draw_image):
11948 Fixed exporting of images.
11949 Still not perfect, but not outright buggy.
11951 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
11955 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
11958 Added $* to the dia call in run_dia.sh
11960 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11963 Added color_equals() call.
11965 * objects/standard/arc.c:
11966 * objects/standard/line.c:
11967 Don't save unneccesary data.
11969 * objects/standard/box.c:
11970 * objects/standard/ellipse.c:
11971 * objects/standard/image.c:
11972 * objects/standard/polyline.c:
11973 * objects/standard/zigzagline.c:
11974 Share properties dialog.
11975 Don't save unneccesary data.
11977 1999-03-22 Seth Alves <alves@hungry.com>
11982 small changes so that gnome menus aren't broken
11984 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
11987 Added danish translation from lrclause@cs.uiuc.edu.
11992 * po/update_pofiles_in.sh:
11993 Added script that updates POFILES.in.
11994 This should probably be run automatically from somewhere.
11996 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
11998 * app/diagram.[ch]:
11999 Added function diagram_update_menu_sensitivity() which
12000 sets the sensitivity of some menu items. This function
12001 is called at each diagram state change (from diagram_modified()).
12002 This is needed because otherwise the keyboard accelerators
12003 don't work correctly.
12005 * app/display.[ch]:
12006 Changed display_set_menu_sensitivity() to display_update_menu_state().
12007 Moved lots of code to diagram_update_menu_sensitivity() in
12008 diagram.c. Optimized to only look up menu-items from path:s once.
12010 * app/disp_callbacks.c:
12012 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
12013 Need to set GDK_FOCUS_CHANGE_MASK.
12015 * app/create_object.c:
12016 Call diagram_modified when an object has been created and
12017 selected so that the menu sensitivity is updated.
12020 removed menus_set_sensitive() and menus_set_state(). Exported
12021 renamed function menus_get_item_from_path().
12023 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
12025 * app/disp_callbacks.c:
12026 Show (empty) object menus on object that has none.
12027 Show title on object menus.
12030 Set zoom factor correctly when opening new displays.
12031 Better setting of scrollbars.
12035 Some reformating cleanup.
12038 Added title to object menus.
12041 Added object menu method (NULL-valued) to all objects.
12043 * objects/standard/polyline.c:
12044 Added title to object menu.
12046 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
12048 * app/preferences.[ch]:
12049 New files. Implements the preferences dialog and
12050 loading/saving of ~/.diarc.
12053 Added preferences.[ch].
12056 Load preferences on startup.
12058 * app/commands.[ch]:
12059 Added file_preferences_callback to show the preferences dialog.
12061 * app/create_object.c:
12062 Update extents when creating object.
12063 Use the reset_tools_after_create preferences setting.
12066 Use preferences when creating new display.
12069 Add preferences to menu.
12072 * app/layer_dialog.c:
12073 * app/properties.c:
12074 Don't allow shrinking of dialog.
12075 Add i18n of some strings.
12077 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
12079 Norwegian translation added.
12081 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
12083 * objects/standard/line.c:
12084 * objects/standard/arc.c:
12085 * objects/standard/polyline.c:
12086 * objects/standard/zigzagline.c:
12087 Loading of arrow data fixed.
12089 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
12092 Update extents when saving and exporting to postscript.
12093 Fixes a bug with postscript bounding-box being wrong.
12096 Changed border width from 5 to 2.
12099 Move grouped objects by the move-point of the first object.
12100 Fixes bug that made all objects in the group be off-grid
12101 when moving the group, even though all objects was on-grid.
12103 * app/layer_dialog.c:
12104 Update extents when changing layer.
12106 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
12108 * objects/UML/uml.c:
12109 * objects/UML/component.c:
12110 * objects/UML/pixmaps/component.xpm:
12111 Added the UML component object
12113 1999-03-04 Seth Alves <alves@hungry.com>
12115 * objects/UML/generalization.c (generalization_create): avoid
12116 math on uninitialized genlz->text_width (NaN causes sigfpe)
12118 * objects/UML/realizes.c (realizes_create): same
12120 * objects/UML/dependency.c (dependency_create): same
12122 1999-03-01 Seth Alves <alves@hungry.com>
12124 * app/display.c (ddisplay_active): don't fly a warning panel
12125 if ddisplay_active is called when no views are open.
12127 * app/commands.c (set_default_file_selection_directory): set
12128 file selector's default directory if there is already
12131 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
12134 New info about imlib requirements.
12137 Added lib/pixmaps/Makefile to created makefiles.
12141 Change from obsoleted to newer gtk calls.
12144 Pass filename of the diagram when loading and saving.
12145 This creates better oportunities to handle filename saving.
12148 Pass filenames to load and save methods.
12150 * lib/dia_image.[ch]:
12151 Added dia_image_get_broken() call that returns a image which
12152 is used for 'broken' images.
12154 * lib/pixmaps/.cvsignore:
12155 * lib/pixmaps/Makefile.am:
12156 * lib/pixmaps/broken.xpm:
12157 New files for the broken image bitmap.
12160 Fixed bug with double destroyed filedialog.
12163 Updated load and save prototypes to use the new filename argument.
12166 Render broken image instead of line when got no image.
12167 Use the new filename in load and save to save (if possible)
12168 relative pathnames and to better try to find loaded images.
12170 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
12173 Some updates to the todo file.
12177 Place over/place over => sent to back/bring to front.
12178 Added some keyboard shortcuts to menus.
12180 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
12183 Changed string saving/loading to a new method. This should
12184 be much better att handling &,<,> and whitespaces.
12185 Loading strings of the old kind is still supported for backwards
12188 * samples/ER-demo.dia:
12189 * samples/UML-demo.dia:
12190 Updated to use the new strings.
12193 statusbar modified update fix.
12195 1999-02-27 Seth Alves <alves@hungry.com>
12197 * app/app_procs.c (app_init): added a --export-to-ps option
12198 which will cause dia to load a dia file and save it as ps
12199 and then exit. this is a little bogus, because it still
12200 pops up a window. this option only shows up if --enable-gnome
12203 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
12204 menu when built with --enable-gnome
12206 * app/interface.c (create_display_shell): build status bar
12207 even if --enable-gnome is used
12209 * app/menus.c: menu fixes for --enable-gnome
12211 * app/commands.c (file_open_dialog_ok_callback): fixed up
12212 menus when --enable-gnome is used
12213 (file_export_to_eps_callback): set a default file name
12214 when dialog is created
12216 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
12218 * objects/UML/association.c (association_create):
12219 Fixed usage of not initialized variable.
12220 Pointed out by Seth Alves <alves@hungry.com>.
12222 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
12225 Fixed detection of gnome-xml.
12226 From Valtteri Vuorikoski <vuori@k.notcom.org>.
12229 Fixed error detection on dlsym calls.
12230 From Valtteri Vuorikoski <vuori@k.notcom.org>.
12232 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
12234 * objects/UML/message.c (fill_in_dialog):
12237 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
12239 * objects/standard/zigzagline.c:
12240 * objects/standard/polyline.c:
12241 * objects/standard/line.c:
12242 * objects/standard/arc.c:
12246 Support for sizeable arrows.
12248 * objects/standard/box.c:
12249 * objects/standard/ellipse.c:
12250 * objects/standard/image.c:
12251 Changed creation handle to lower-right.
12252 Transparent box/ellipse.
12254 * objects/standard/image.c:
12255 Better layout of properties boxes.
12257 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
12259 * objects/UML/message.c (fill_in_dialog):
12260 Fixed dialog fill in. Common dialog for all messages.
12262 * objects/UML/object.c:
12263 Added multiple instance. Dialog related bugs fixed.
12264 Common dialog for all instances. Completed copy and destroy.
12266 * objects/UML/lifeline.c (lifeline_load):
12267 Conn initialization bug fixed and few bad loading prevention flags.
12268 Common dialog for all lifeline objects.
12270 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
12272 * lib/dia_image.[ch]:
12273 More work on the DiaImage abstraction.
12276 * app/render_eps.c:
12277 * app/render_gdk.c:
12278 * objects/standard/image.c:
12279 Use the new DiaImage calls.
12281 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
12285 Reversed the meaning of align horizontal/vertical.
12287 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
12289 * app/load_save.c (diagram_load):
12290 Statusbar update fix.
12292 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
12294 * app/interface.c (create_display_shell):
12295 Fixed status bar size.
12297 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
12299 * lib/dia_image.[ch]:
12300 Added extern declaration for dia_image_release.
12301 Removed dia_image_draw, as it's not neseccary.
12303 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
12305 * app/object_ops.c:
12307 Added equal distance alignment both vertical and horizontal.
12309 * objects/UML/object.c:
12310 Added a couple of attributes to load/read that were missing.
12312 * objects/UML/lifeline.c:
12313 Better handling of handles. Fixed another bug I forgot to add
12316 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
12318 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
12320 * lib/dia_image.[ch]:
12322 New files. DiaImage wraps the GdkImlibImage.
12325 * app/render_eps.c:
12326 * app/render_gdk.c:
12327 * lib/render_store.[ch]:
12328 * objects/standard/image.c:
12329 Use the new DiaImagetype.
12332 Removed unused variable to eliminate warning.
12334 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
12336 * objects/standard/box.c:
12337 Added rounded corners on the box object.
12339 * lib/widgets.[ch]:
12340 Updated the DiaFileSelector widget.
12342 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
12344 * objects/UML/object.c (objet_draw):
12345 Completed underlining of all object name lines.
12347 * objects/UML/message.c (fill_in_dialog):
12348 Fixed a bug that filled incorrectly the message's dialog.
12350 * objects/UML/lifeline.c (lifeline_load):
12351 Some cleanning and fixed a couple of bugs that caused
12352 crashes after reading diagrams with lifelines.
12355 Added flags to prevent crash with void strings
12357 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
12358 * app/display.[ch]:
12359 Added statusbar to the display widget. Currently shows the zoom
12360 factor and modified flag of the viewed diagram. The statusbar is
12361 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
12362 This caused the following additions:
12364 * app/diagram.[ch]:
12365 Added function diagram_set_modified. Calls
12366 ddisplay_update_statusbar for all displays showing the modified diagram.
12367 Changed diagram_modified to call diagram_set_modified.
12370 Added the creation of the statusbar.
12373 diagram_save now calls diagram_set_modified instead of setting
12374 dia->modified. Needed to force call to display_update_statusbar
12377 Changed the way view_show_all works. Now calls ddisplay_zoom
12378 instead of directly setting the zoom_factor, so the zoom factor is
12379 correctly shown in the statusbar.
12382 Fixed rubberband zoom to use ddisplay_zoom().
12384 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
12387 Rudimentary GNOME session management.
12389 * app/disp_callbacks.c
12393 GNOME menus. Problems:
12394 Callbacks doesn't get user_data.
12395 Weird warnings when creating popup menus.
12396 menus_set_sensitive(), menus_set_state() doesn't work.
12398 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
12401 Add AM_PATH_GDK_IMLIB() call.
12404 Add gdk_imlib to linking flags.
12408 Print library-loading error messages on stdout too.
12411 Add standard image to toolbox.
12413 * app/render_eps.c:
12414 Set a more reasonable dot length. Fixed
12415 missing initialization of dot length.
12416 Added draw_image methods.
12418 * app/render_gdk.c (new_gdk_renderer):
12419 Dot a bit wider. Looks good in normal mode now.
12421 * objects/standard/image.c:
12422 * objects/standard/pixmaps/image.xpm:
12423 New files. Standard object for images.
12425 * app/render_eps.c (set_linestyle):
12426 * app/render_gdk.c (set_linestyle):
12427 * lib/widgets.c (dia_line_style_selector_init):
12429 New line style DOTTED.
12432 * lib/render_store.c:
12433 Change DrawImage call to use gdk_imlib.
12435 * lib/widgets.[ch]:
12436 Added widgets for selecting files.
12437 Added dotted to the linestyle selector.
12439 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
12441 * objects/network/printer.c:
12442 * objects/network/network.c:
12443 * objects/network/pixmaps/printer.xpm:
12444 * objects/network/.cvsignore:
12445 * objects/network/Makefile.am:
12446 * objects/network/pixmaps/Makefile.am:
12447 New printer object in network.
12448 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
12451 Added known XML bug.
12453 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
12457 Reverted back from #include <gnome-xml/tree.h> to
12458 #include <tree.h> as this is fixed by the xml-config program.
12459 The former way broke for some people.
12460 Reported by blizzard@redhat.com.
12462 * objects/UML/lifeline.c:
12463 * objects/UML/message.c:
12464 * objects/UML/object.c:
12465 Removed some warnings.
12467 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
12469 * objects/UML/lifeline.c:
12470 Fixed connection points over the life line when the focus of
12471 control is not drawn.
12473 * objects/UML/message.c:
12474 Now a recursive message can be freely resized using the handles.
12476 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
12478 * objects/UML/lifeline.c:
12479 Added connection points.
12480 Added properties dialog with the option to draw/hide focus of control
12481 box and destruction mark.
12483 * objects/UML/object.c:
12484 Added properties dialog and stereotype, explicit state and attributes.
12485 It's also possible to mark the object as active.
12487 * objects/UML/pixmaps/object.xpm:
12490 * objects/UML/message.c:
12491 Added "recursive" message type (was not necessary to use OrthConn).
12493 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
12495 * objects/standard/arc.c:
12496 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
12498 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
12500 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
12504 Update xml includes to gnome-xml/*.h.
12506 * objects/standard/arc.c:
12507 Only one property dialog per type.
12508 Fix arrows directions.
12510 * objects/standard/box.c:
12511 * objects/standard/ellipse.c:
12512 * objects/standard/textobj.c
12513 Added default properties dialog.
12516 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
12518 * objects/UML/Makefile.am:
12519 * objects/UML/uml.c:
12520 * objects/UML/lifeline.c:
12521 * objects/UML/object.c:
12522 * objects/UML/message.c:
12523 * objects/UML/pixmaps/lifeline.xpm:
12524 * objects/UML/pixmaps/object.xpm:
12525 * objects/UML/pixmaps/message.xpm:
12526 Added 3 new UML objects for dynamic modeling. To avoid internal
12527 conflicts, the name "objet" is used for object "object".
12530 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
12533 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
12535 * app/display.[ch]:
12536 * app/modify_tool.c:
12537 Added autoscrolling while doing rubber-band select.
12538 This patch from Matthias Köster
12539 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
12542 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
12544 * app/defaults.[ch]:
12545 New files, deals with default properties dialog.
12548 New file. Contains definitions for the new object menu.
12550 * lib/poly_conn.[ch]:
12551 New file. Base class for poly-line like objects.
12553 * objects/standard/polyline.c:
12554 * objects/standard/pixmaps/polyline.xpm:
12555 New files. Polyline object.
12558 Fixed bug with infinite loop when registering sheets.
12561 Removed unneccesary stuff.
12563 * app/disp_callbacks.c:
12564 Support for object menus.
12567 Added polyline to toolbox.
12568 Added call to tool_options_dialog_show() when double clicking on
12572 New function tool_options_dialog_show() for tool properties.
12578 Added ObjectType methods for handling object default dialogs.
12579 Added Object method for handling object_menu.
12580 Added unused methods to ObjectTypeOps for future binary
12583 * lib/widgets.[ch]:
12584 Added DiaArrowTypeSelector widget.
12586 * objects/standard/arc.c:
12587 * objects/standard/zigzagline.c:
12588 Added support for default properties.
12590 * objects/standard/line.c:
12591 Added support for default properties.
12592 Just use one properties dialog for all line objects. NOTE: This
12593 seems to have a bug. We're working on it.
12595 * standard/standard.c:
12596 Add the polyline object.
12598 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
12600 * app/modify_tool.c:
12601 Commented out buggy transitive select function. It wasn't really
12602 meant to go into cvs.
12605 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
12617 Swedish translation. Not completed.
12621 Added possibility to enable GNOME specific code with configure.
12624 Added possibility to set debug level with configure.
12627 Added about dialog.
12633 Added some GNOME specific code. Not ready for use.
12635 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
12638 Added text about needing gtk 1.1.13 and gnome-xml.
12641 Described changes since last version (0.20).
12643 Released version 0.30, tagged DIA_0_30.
12645 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
12647 * app/magnify.c (magnify_button_release):
12648 Fixed a problem when zooming in on a very small box would
12649 not release the grabbed pointer-focus.
12651 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
12653 * app/load_save.c (diagram_load):
12654 Be somewhat more robust when loading files that
12657 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
12661 * objects/UML/uml.c:
12662 * objects/network/network.c:
12663 * objects/standard/standard.c:
12664 Added versioning of object libraries.
12666 * app/create_object.c:
12667 Don't change tool when an object is created.
12669 * objects/network/network.c:
12674 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
12677 Updated gtk requirement to Gtk+ 1.1.13.
12680 Always add one screenful of scrolling space on
12681 each side of a diagram window.
12683 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
12686 Tell automake to auto-install missing files.
12689 Renamed deprecated Gtk+ function.
12691 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
12695 * samples/Makefile.am:
12696 * samples/ER-demo.dia:
12697 * samples/UML-demo.dia:
12698 Added samples directory.
12699 Added samples for ER and UML.
12702 * app/disp_callbacks.c:
12704 Zoom is done by sqrt(2) instead of 2.
12705 Lots of more zoom options in the menu.
12707 * objects/ER/relationship.c:
12708 Relationships have 8 connectionpoints instead of 4.
12710 * objects/UML/class.c:
12711 UML class name font a bit smaller.
12712 Fixed stupid bug in the copy operation.
12715 Displays are opened at 500x400 instead of 256x256.
12718 Fixup of internal error message.
12720 * app/color_area.c:
12722 * app/modify_tool.c:
12724 Removed debug printf's.
12727 Added new known bug.
12729 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
12733 Fixed so accelerator groups work in all windows.
12734 Updated to new gtk function names.
12740 Updated to new gtk function names.
12741 Set sensitivity of the align menu items.
12743 * objects/ER/pixmaps/Makefile.am:
12744 * objects/UML/pixmaps/Makefile.am:
12745 * objects/network/pixmaps/Makefile.am:
12746 Fix so that make dist works.
12749 * app/color_area.c:
12753 * app/layer_dialog.c:
12755 * app/object_ops.c:
12756 * app/properties.c:
12757 * lib/diagramdata.[ch]:
12759 * lib/objects/ER/attribute.c:
12760 * lib/objects/ER/entity.c:
12761 * lib/objects/ER/participation.c:
12762 * lib/objects/ER/relationship.c:
12763 * lib/objects/ER/.c:
12764 * objects/UML/actor.c:
12765 * objects/UML/association.c:
12766 * objects/UML/class_dialog.c:
12767 * objects/UML/dependency.c:
12768 * objects/UML/generalization.c:
12769 * objects/UML/large_package.c:
12770 * objects/UML/realizes.c:
12773 Updated to new gtk function names.
12776 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
12782 Fixed loading of diagrams specified as arguments.
12784 * objects/ER/attribute.c:
12785 * objects/ER/entity.c:
12787 * objects/ER/participation.c:
12788 * objects/ER/relationship.c:
12789 Updated the ER objects.
12792 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
12796 * objects/Makefile.am:
12797 * objects/ER/attribute.c:
12798 * objects/ER/entity.c:
12800 * objects/ER/participation.c:
12801 * objects/ER/relationship.c:
12802 * objects/ER/pixmaps/Makefile.am:
12803 * objects/ER/pixmaps/attribute.xpm:
12804 * objects/ER/pixmaps/entity.xpm:
12805 * objects/ER/pixmaps/participation.xpm:
12806 * objects/ER/pixmaps/relationship.xpm:
12807 * objects/ER/pixmaps/weakentity.xpm:
12808 First commit of entity relationship objects.
12809 These were done by hallon@lysator.liu.se.
12810 There are still stuff to do on these.
12812 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
12817 * app/diagram.[ch]:
12818 Change diagram_remove_all_selected to take new argument
12819 delete_empty. Empty objects are deleted only if it is TRUE.
12820 Removed call to close_eps_renderer. This is now done in end_render
12821 in the eps renderer.
12823 * app/create_object.c:
12824 * app/layer_dialog.c:
12825 Update calls to diagram_remove_all_selected.
12828 Update calls to diagram_remove_all_selected.
12829 Some code reformating.
12830 Changed order of adding updates i align_h and align_v.
12832 * app/modify_tool.c:
12833 Update calls to diagram_remove_all_selected.
12834 Added pointer grab when doing rubber-band selection, this fixes
12835 the bug when draging the box over to another window.
12837 * app/connectionpoint_ops.[ch]:
12838 diagram_update_connections_object changed to take an argument
12839 update_nonmoved. This lets connections that has not moved, but
12840 the stuff they're connected to has been moved work.
12841 Update calls to the new diagram_update_connections_object.
12843 * app/properties.c:
12844 Update calls to the new diagram_update_connections_object.
12845 Update extents when properties are applied.
12847 * app/disp_callbacks.c:
12848 Added support for zooming with the '+' and '-' keys.
12851 Removed old keyboard shortcuts for zoom.
12854 Added calls begin_render and end_render to renderer.
12855 These can be used for setup and cleanup.
12857 * lib/diagramdata.c:
12858 Added calls to begin_render and end_render in data_render.
12860 * app/render_gdk.c:
12861 Added begin_render and end_render.
12863 * app/render_eps.[ch]:
12864 Added begin_render and end_render.
12865 Moved close_eps_renderer code to end_render.
12866 Various fixes to the generated eps code. This fixes importing
12867 generated eps into LYX.
12869 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
12875 Menus for alignment updated.
12877 * app/object_ops.[ch]:
12878 Functions for object alignment updated.
12880 * app/commands.[ch]:
12881 Object alignment callbacks updated.
12882 New diagrams are called Untitled-<nr>.
12884 * app/layer_dialog.c:
12885 Active layer selected when showing layers from new
12889 Compress xml files when saving.
12890 Use xml namespace 'dia'.
12893 Minor comment update.
12895 * objects/UML/class_dialog.c:
12896 Cleanup of the gkt_list_item moving code.
12897 Fixed bug with update of operation when moving parameters.
12899 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
12901 * app/layer_dialog.[ch]:
12902 Fixed the rest of the layers dialog.
12905 Added call to redo layer dialogs diagram list when changing
12908 * lib/diagramdata.[ch]:
12909 Added data_raise_layer and data_lower_layer functions for
12910 raising/lowering layers. Added data_add_layer_at for adding a
12911 layer at a specified index.
12913 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
12915 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
12918 Added support for reading diagrams from the command line.
12920 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
12922 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
12924 * app/commands.[ch]:
12925 Added objects_align_callback().
12928 Added align objects to menu.
12930 * app/object_ops.[ch]:
12931 Add object_list_align().
12933 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
12934 * app/layer_dialog.[ch]:
12935 New files. Handles the layers dialog. Needs a bugfix for glib to
12936 work. Sent patch to gtk-list.
12938 * app/pixmaps/new.xpm:
12939 * app/pixmaps/eye.xbm:
12940 * app/pixmaps/lower.xpm:
12941 * app/pixmaps/raise.xpm:
12942 * app/pixmaps/delete.xpm:
12943 New files. Images for the layer dialog buttons.
12945 * lib/diagramdata.h
12946 * lib/diagramdata.c
12947 New files for the DiagramData and Layer structures and functions.
12950 Added call to create_layer_dialog() on startup.
12952 * app/commands.[ch]:
12953 New callbacks for showing the properties and layout dialog.
12954 Changes for the new DiagramData structure.
12956 * app/connectionpoint_ops.c:
12957 * app/cut_n_paste.c:
12958 * app/diagram.[ch]:
12959 * app/display.[ch]:
12961 * app/modify_tool.c:
12962 * app/object_ops.[ch]:
12963 * app/render_eps.c:
12965 Changes for the new DiagramData structure.
12968 * app/properties.c:
12969 Set correct wmclasses.
12972 Fix load and save of layers.
12975 Update DTD for layers.
12978 New menus for dialogs.
12984 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
12987 Removed the gtk 1.1.5 stuff.
12990 Updated gtk check to version 1.1.5.
12991 Updated version from 0.20 to 0.30
12993 * app/commands.[ch]:
12994 Updated some callbacks to be of type GtkItemFactoryCallback1.
12995 Not all are done yet, but it works anyway.
12998 Removed Gtk 1.0.0 GtkAcceleratorTable references.
13002 Update to Gtk 1.1.x functions.
13003 Use ItemFactory instead of MenuFactory.
13005 * app/render_gdk.c:
13006 Removed Gtk 1.0.0 references.
13008 * objects/UML/class_dialog.c:
13009 Scrolled window updates for Gtk 1.1.5.
13012 Removed ugly fix for gnome-xml bug. Make sure you get the
13013 newest version of gnome-xml from CVS.
13015 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
13018 Removed the xml load/save line.
13024 Removed building of files.c
13027 * lib/connection.c:
13031 * lib/render_object.c:
13032 * objects/UML/actor.c:
13033 * objects/UML/association.c:
13034 * objects/UML/class.c:
13035 * objects/UML/constraint.c:
13036 * objects/UML/dependency.c:
13037 * objects/UML/generalization.c:
13038 * objects/UML/implements.c:
13039 * objects/UML/large_package.c:
13040 * objects/UML/note.c:
13041 * objects/UML/realizes.c:
13042 * objects/UML/small_package.c:
13043 * objects/UML/uml.c:
13044 * objects/UML/usecase.c:
13045 * objects/network/bus.c:
13046 * objects/standard/arc.c:
13047 * objects/standard/box.c:
13048 * objects/standard/ellipse.c:
13049 * objects/standard/line.c:
13050 * objects/standard/textobj.c:
13051 * objects/standard/zigzagline.c:
13052 Removed all includes of files.h
13055 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
13058 Made the val property of string be implied.
13059 This makes it possible to save strings that
13060 are NULL. Just leave out val.
13062 * objects/lib/dia_xml.c:
13063 Fixed string so that it is possible to save strings
13064 that are NULL. Also made an ugly workaround of a
13065 bug in gnome-xml which removes empty properties.
13067 * objects/lib/orth_conn.c:
13068 Fixed a bug in saving. Forgot to step through the
13071 * objects/UML/association.c:
13072 * objects/UML/class.c:
13073 * objects/UML/constraint.c:
13074 * objects/UML/dependency.c:
13075 * objects/UML/generalization.c:
13076 * objects/UML/implements.c:
13077 * objects/UML/large_package.c:
13078 * objects/UML/note.c:
13079 * objects/UML/small_package.c:
13080 * objects/UML/realizes.c:
13081 * objects/UML/usecase.c:
13082 * objects/UML/actor.c:
13083 Fixed UML objects to save as xml.
13084 The last two were done by asierra@servidor.unam.mx (asierra-981204)
13086 * objects/UML/uml.[ch]:
13087 Updated *_write() and *_read() functions to use xml.
13089 * objects/network/bus.c:
13090 * objects/network/computer.c:
13091 * objects/network/disc.c:
13092 * objects/network/monitor.c:
13093 Updated network diagrams to use xml.
13095 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
13098 New file. DTD that describes the xml file format
13101 * lib/dia_xml.[ch]:
13102 New files. Support for saving object to xml files.
13107 Added check for and usage of gnome-xml library.
13110 Major chages. Now saves/loads diagrams as xml.
13113 * lib/element.[ch]:
13114 * lib/connection.[ch]:
13115 * lib/orth_conn.[ch]:
13116 * lib/render_object.[ch]:
13118 Updated object support load/save functions for xml:
13120 * object/standard/arc.c:
13121 * object/standard/box.c:
13122 * object/standard/ellipse.c:
13123 * object/standard/line.c:
13124 * object/standard/textobj.c:
13125 * object/standard/zigzagline.c:
13126 Updated all standard objects to use xml.
13129 Only the standard objects are converted right now, don't
13130 save or load uml or network diagrams yet. Also, since this
13131 is new code it is deemed a bit unstable.
13136 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
13138 * objects/UML/class.c:
13139 Changed classname font to Helvetica.
13140 Added more space above the classname
13142 * objects/UML/usecase.c:
13143 Correct placements of connectionpoints on ellipse.
13144 Better algorithm for deciding aspect ration on
13147 These changes were made by Alejandro Aguilar Sierra
13148 <asierra@servidor.unam.mx>. (asierra-981201)
13150 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
13152 * objects/UML/actor.c:
13153 Changed the extents and alignment of the element
13156 * objects/UML/.cvsignore:
13157 Added usecase.lo and actor.lo.
13159 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
13161 * objects/UML/actor.c:
13162 * objects/UML/usecase.c:
13163 * objects/UML/pixmaps/actor.xpm:
13164 * objects/UML/pixmaps/case.xpm:
13165 New files. Implements usecase and actor UML objects.
13166 These objects are done by Alejandro Aguilar Sierra
13167 <asierra@servidor.unam.mx>.
13169 * objects/UML/Makefile.am:
13170 * objects/UML/pixmaps/Makefile.am:
13171 Added usecase and actor to makefile.
13174 Added Alejandro and Jerome to autors list.
13176 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
13178 * objects/UML/class.c (umlclass_load):
13179 Fixed typo. Reported by Jerome.Abela@solsoft.fr
13181 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
13183 * app/properties.c:
13184 Update connections when doing apply in the properties window.
13186 * objects/UML/uml.[ch]:
13187 * objects/UML/class.[ch]:
13188 * objects/UML/class_dialog.c:
13189 Added connection points on both sides of attributes and
13190 operations in UML classes.
13191 Based on idea from Jerome.Abela@solsoft.fr
13193 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
13196 Some new documentation about handles and connectionpoints.
13199 Added functions object_add_connectionpoint and
13200 object_remove_connectionpoint for handling a dynamic
13201 number of connectionpoints.
13203 * objects/UML/class.c:
13204 Only reserve space for stereotype when it is shown.
13206 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
13208 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
13210 * app/connectionpoint_ops.c:
13212 * app/disp_callbacks.c:
13213 * app/display.[ch]:
13215 * app/handle_ops.c:
13217 * app/modify_tool.c:
13218 * app/render_gdk.[ch]:
13220 Huge cleanup of internal rendering system.
13221 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
13222 This gives a few new methods for Interactive Renderers for setting
13223 clipping regions and drawing pixel based lines and rects.
13224 Updated the rest of the code to use the new stuff.
13226 * app/render_eps.c:
13230 * objects/standard/zigzagline.c
13231 Fixed unused variable warnings.
13234 Fixedbug with stringwidth where width==0.
13239 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
13241 * lib/widgets.[ch]:
13242 Added suppot for setting the font of a
13243 DiaFontSelector widget.
13244 Also fixed some typos in the header.
13247 Added a comment about the GetPRoperties method call.
13248 You have to make sure to update widget state when
13249 this method is called. (Not all objects do this yet,
13255 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
13258 Fixed problem with height of ascent and descent for fonts.
13259 It didn't use the whole height (==ascent+descent) when calculatine
13260 ascent_ratio and descent_ratio.
13262 * objects/standard/textobj.c:
13263 * objects/standard/box.c:
13264 * objects/standard/ellipse.c:
13265 * objects/standard/line.c:
13266 * objects/standard/arc.c:
13267 Updated and added property dialogs for these objects.
13268 Also added line width/color/style to those objects
13269 that didn't have it.
13270 This change breaks fileformat compatibility for these objects.
13272 * objects/standard/zigzagline.c:
13273 Changed zigzagline to be based on OrthConn, much nicer.
13274 Also added line style and color to properties.
13275 This change breaks fileformat compatibility for zigzagline.
13278 Fixed bug in message(). Forgot a pair of '&'.
13280 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
13282 * lib/widgets.[ch]:
13283 Added DiaColorSelector widget.
13284 This is a colored button that pops up a color selection
13285 dialog when pressed.
13287 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
13289 * lib/widgets.[ch]:
13291 New files, added widgets for selecting fonts, alignment
13292 and line-style. Will be used later.
13294 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
13298 * objects/UML/Makefile.am:
13299 * objects/network/Makefile.am:
13300 * objects/standard/Makefile.am:
13301 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
13302 in all Makefile.am.
13304 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
13306 * app/handle_ops.c (handle_draw):
13307 connected HANDLE_MINOR_CONTROL also becomes red.
13309 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
13312 removed -ldl from linking. This is added if needed by configure.
13315 Open dlls with RTLD_LAZY if it is defined.
13316 Some cleanups: char *error -> const char *error
13317 Added fprintf()'s to where we exited because of errors.
13320 Include <sys/types.h>
13322 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
13327 Detect dlopen better.
13328 Detect wether dlopen needs an underscore in the identifier.
13329 This code was mostly borrowed from guile.
13333 * objects/standard/standard.c:
13334 * objects/network/network.c:
13335 * objects/UML/uml.c:
13337 Changed the way sheets reference objects to use just the
13338 name. Changed module loading to a two stage model:
13339 First register_objects() is called for all modules.
13340 Then register_sheets() is called. This means that
13341 sheets can safely include objects from other modules.
13344 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
13346 * objects/network/bus.c:
13347 * objects/network/network.c:
13348 * objects/network/Makefile.am:
13349 New file bus.c. Added new object: Ethernet bus.
13351 * objects/standard/box.c:
13352 Added call to gtk_spin_button_set_numeric for linewidth spinner
13353 in property dialog.
13355 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
13357 * app/connectionpoint_ops.c:
13358 * app/create_object.c:
13360 * app/handle_ops.c:
13361 * app/modify_tool.c:
13362 * lib/connection.c:
13367 * loads of objects:
13368 Changed handle->connectable to handle->connect_type.
13369 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
13370 that their connections don't break when moving objects.
13373 Always select the last handle in an object that has
13374 the closest distance.
13376 * lib/geometry.[ch]:
13377 Added rectangle_add_point function.
13380 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
13382 * app/properties.[ch]: New files. Handles the new properties
13385 * app/modify_tool.c: Changed to use new properties dialog.
13387 * app/object_ops.[ch]: Removed object_changed_callback, as it's
13388 not needed anymore. This is now handled differently in
13392 Changed the properties ops for objects. Removed typedefs
13393 ChangedObjectTime and ObjectChangedFunc needed for the old way.
13394 Added object_return_null function.
13397 * lib/render_object.c:
13399 Changed objects to use the new properties dialog.
13402 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
13404 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
13407 * autogen.sh: New file. Copied from gtk and added a call to
13408 libtoolize. Anyone knows why this isn't done in gtk?
13410 * Removed autogenerated files.
13412 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
13414 * Added call setlocale(LC_NUMERIC, "C") so that formating of
13415 floating-point numbers in postscript output will be correct.
13416 * Did some cleanup of generated postscript files.