1 2004-01-11 Steffen Macke <sdteffen@web.de>
3 * app/diapsftrenderer.c: including ftoutln.h
4 * app/makefile.msc: updated for freetype build
5 * lib/libdia.def: added dia_font_get_context()
6 * lib/dialibartrenderer.c (draw_string): added cast
8 2004-01-10 Hans Breuer <hans@breuer.org>
10 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
11 transformed coordinates, fixes bug 130804
13 2004-01-10 Hans Breuer <hans@breuer.org>
15 * app/filedlg.c app/app_procs.c : don't try to destroy
16 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
17 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
18 returns. Fixes 'has no handler' bugs like #121019
20 2004-01-10 Hans Breuer <hans@breuer.org>
22 * objects/UML/class.c objects/UML/class_dialog.c :
23 handle umlclass->name being empty to avoid, i.e. fix #127968
25 [plugging memleaks, thanks valgrind :-]
27 * lib/dia_xml.c (data_string) : don't leak return value
28 of xmlNodeListGetString()
30 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
31 before returning, maybe alloca() would be the better
34 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
36 * lib/font.c (dia_font_build_layout) : don't leak result
39 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
40 (this is the one which got me started using valgrind, see #130816)
42 2004-01-07 Sanlig Badral <badral@openmn.org>
44 * configure.in: Added "mn" to ALL_LINGUAS.
46 2003-01-04 Hans Breuer <hans@breuer.org>
48 * lib/diagdkrenderer.c : replace rendering of really small (height
49 less than 2 pixels) with a simple dashed line, you wont notice the
50 differnce beside it being much faster. This allows ...
51 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
52 * app/navigation.c : ... and lets you see an read rendered text even
53 in the nice navigation popup.
55 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
56 (draw_string) : don't leak temporary image
58 2003-01-04 Hans Breuer <hans@breuer.org>
60 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
61 * app/interface.c : use dia-app-icons.h to give Dia window icons
63 * lib/dia_image.c lib/color.c : _never_ call functions implemented
64 in app/ from lib/. It is not portable and broken from design
65 * app/app_procs.c : call color_init() and dia_image_init() conditional,
66 i.e. only if running interactive.
68 * lib/font.h : #include <time.h>
70 * lib/libdia.def : updated externals
73 objects/UML/association.c (todo)
75 objects/UML/class.[hc] objects/UML/class_dialog.c
76 objects/UML/classicon.c
77 objects/UML/component.c
78 objects/UML/constraint.c
79 objects/UML/dependency.c
80 objects/UML/generalization.c
81 objects/UML/implements.c
82 objects/UML/large_package.c
83 objects/UML/lifeline.c
87 objects/UML/realizes.c
88 objects/UML/small_package.c
92 : ported coloring of most UML objects (bug #97517, orginal
93 work Mathias Hasselmann)
95 * lib/properties.h : add _OPTIONAL variants for
96 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
97 i.e. default colored - UML diagrams without complaining
98 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
99 not set properties with the help of PXP_NOTSET. Otherwise
100 optional attributes would lead to wrong initialization.
102 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
103 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
104 Same for most other selectors which probably should be rewritten
105 to the combo box with tree model from Gtk+ 2.4
107 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
109 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
110 being the Right Thing(tm) to use on Solaris.
112 * objects/standard/bezier.c (bezierline_draw): Don't draw
113 guidelines if not selected.
115 * lib/object.[ch] (dia_object_is_selected): Function to check whether
116 a given object is selected. O(n), where n is # selected objects.
119 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
121 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
122 Fonts dialog is closed without pressing Ok (bug #128646).
124 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
126 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
129 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
131 * INSTALL: Updated list of requirements (bug #129653)
133 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
134 Pionchon <luc@handhelds.org>.
136 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
138 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
139 empty or NULL strings (bug #130097).
141 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
143 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
144 Added checks against color_black.
146 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
148 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
149 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
152 * objects/UML/component_feature.c: Patch from W. Borgert
153 <debacle@debian.org>: Add handle to component feature text.
155 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
157 * lib/font.c: Caching PangoLayout for better rendering speed.
159 2003-12-30 Lars Clausen <lc@pc770>
161 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
162 get absolute file name from relative.
163 * app/recent_files.c (recent_file_history_add): Use absolute
164 filenames for recent files menu so that files can be found when
165 Dia is invoked from other places.
167 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
168 Actually load different diagrams if such are requested on command
171 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
172 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
174 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
175 remove text rendering. May be turned into greeking at some later
179 * app/Makefile.am (dia_core_files):
180 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
181 Adds navigation window a la Gimp, though without text being
184 2003-12-27 Luc Pionchon <luc@handhelds.org>
186 * app/navigation.h: (new file)
187 * app/navigation.c: (new file) creates a navigation window with a
188 thumbnail view of the whole diagram.
189 * app/Makefile.am (dia_core_files): added new files.
191 * app/interface.c (create_display_shell): added a button between
192 the scrollbars to popup a navigation window.
194 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
196 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
197 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
198 not want text rendering.
200 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
202 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
204 * objects/custom/shape_info.[ch]: Cleanup.
206 * objects/custom/custom_object.[ch]: Changed to use new props
211 * lib/prop_inttypes.c:
212 * lib/prop_geomtypes.c: Added *prop_get_data_size.
214 * lib/libdia.def: Added object_load_props.
216 * configure.in: Better FT2 version test, from bug #129225.
218 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
220 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
221 Lehmann <holger.lehmann@catworkx.de>.
223 * plug-ins/xslt/Makefile.am:
224 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
227 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
229 * lib/diagdkrenderer.c: Add implementation so text is still
230 rendered. May be improved later.
236 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
237 Allow running without a $DISPLAY!
239 * lib/color.c: Remove warnings for non-interactive run.
244 * app/app_procs.[ch]:
245 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
246 to specify size for PNG output.
248 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
249 render a little smaller, so as to fit the big ones.
251 * lib/arrows.[ch]: New arrow type from W. Borgert
252 <debacle@debian.org>: Filled Dot and Triangle.
254 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
256 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
259 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
261 * acinclude.m4: Better Python configure code patch (can't find
262 author, author please speak up!)
264 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
266 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
269 2003-11-30 Hans Breuer <hans@breuer.org>
271 * plug-ins/python/diasvg.py : initialize self.dash_length
272 in constructor to avoid crashing if the renderer user
273 does not set it before first usage.
275 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
277 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
281 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
282 development and stable versions.
284 * lib/text.c (text_draw): Use new renderer function to draw the
288 * lib/diarenderer.c: New renderer function "draw_text" with
289 default implementation. This function should eventually be the
290 main interface, as it will be able to handle width and caching of
291 rendering internally. All users of draw_string should convert to
292 use Text objects and call either renderer->draw_text or text_draw,
293 the latter if the text can be edited in-place (as should be the
296 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
298 * shapes/Circuit/hresistor.shape: First example of extra
301 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
303 * plug-ins/shape/shape-export.c:
304 * lib/diasvgrenderer.h:
305 * lib/diasvgrenderer.c:
306 * plug-ins/svg/render_svg.c (new_svg_renderer):
307 Actually store the font size, using DiaRenderer's font fields.
309 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
311 * objects/custom/shape_info.[ch]:
312 * objects/custom/custom_object.[ch]:
313 Support for extra attributes in custom objects.
315 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
317 * app/diagram.c (diagram_update_menu_sensitivity): More
318 intelligent checks for menu sensitivity. Might be slow on huge
319 diagrams, but I think other things outweigh it by a lot.
321 * app/menus.[ch]: Make "Bring Forwards"
322 and "Send Backwards" updateable.
324 2003-11-22 Steffen Macke <sdteffen@web.de>
326 * shapes/Assorted/arrow-turn-up.shape:
327 * shapes/Assorted/arrow-turn-up.png:
328 * sheets/Assorted/Makefile.am:
329 * sheets/Assorted.sheet.in: Added new arrow
331 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
340 * app/diagram_tree_menu.c
341 * app/diagram_tree_window.c
342 * app/diapagelayout.c
343 * app/diaunitspinner.c
348 * app/lineprops_area.c
349 * app/linewidth_area.c
352 * app/paginate_psprint.c
354 * app/plugin-manager.c
359 * app/sheets_dialog.c
360 * app/sheets_dialog_callbacks.c
361 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
362 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
364 * TODO: Updated, note on EPS transparency.
366 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
368 * objects/UML/class.c (umlclass_draw): Allow classes with no name
371 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
374 * doc/en/dia-manual.xml:
377 * NEWS: Another Brown Bag release for parenting problems,
378 including a crash bug fix.
380 * app/connectionpoint_ops.c (diagram_update_connections_object):
381 Also update connections when moving children. This can cause
382 move_handle to be called twice, so it must be idempotent.
384 * app/load_save.c: Loading and saving of children totally redone.
385 Now doesn't violate assumption that all objects in a layer are
386 placed in order in XML file.
388 * objects/UML/branch.c (branch_create): Don't lie about being
391 * objects/UML/node.c (node_create):
392 * objects/UML/large_package.c (largepackage_create): Drag with
393 lower right-hand handle at creation like all other objects.
395 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
397 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
398 parenting drop to behave like a move inside, i.e. constrain place
399 instead of trying to resize. 'Cause, resizing cannot be done for
400 all objects (e.g. UML Class). Also simplified the algorithm a lot
403 * app/load_save.c: Saving and loading of connection points for
404 children added. Prototypes for static functions added.
406 * lib/dynamic_obj.c: Removed debugging output.
408 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
410 * doc/en/dia-manual.xml:
411 * doc/pl/dia-manual.sgml:
415 * NEWS: Brown Bag release 0.92.1
417 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
419 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
421 * app/app_procs.c (app_init): Rearrangement for translators.
423 2003-10-24 Steffen Macke <sdteffen@web.de>
425 * lib/text.c(text_key_event): enforcing the inserted text length now,
428 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
430 * MAINTAINERS: Change Debian maintainer to be the default address.
432 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
433 args to match prototype, thus removing crashbug #125159.
435 * RELEASE-PROCESS: Note to self.
437 2003-10-22 Steffen Macke <sdteffen@web.de>
439 * doc/en/dia-manual.xml: removed superfluous external references
441 2003-10-21 Steffen Macke <sdteffen@web.de>
443 * lib/libdia.def: added filter_get_by_name
444 * app/render_eps.c: moved extensions definition outside #ifdef
446 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
450 Removed old Dia manual, put new one in doc/en/. Translations
451 should go in doc/??/.
453 * doc/en/dia-manual.xml:
454 * doc/pl/dia-manual.sgml:
455 * dia.spec (Release):
458 * NEWS: 0.92 is here!
462 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
463 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
466 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
468 * doc/en/usage-objects-selecting.xml: Commented out empty note.
470 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
472 * doc/pl/dia-manual.sgml:
473 * doc/en/dia-manual.xml:
477 * dia.spec (Release): Pre7.
479 * app/diapsrenderer.c (draw_string): Convert string to print based
480 on current locale. If conversion fails, fall back to UTF-8 (which
481 is almost certain to be messy).
483 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
485 * doc/pl/dia-manual.sgml:
486 * dia.spec (Release):
490 * doc/en/dia-manual.xml: Pre6.
492 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
493 TeX chars in strings -- must be possible to use TeX text in there.
494 Also avoids infinite loop bug (#124464) Will get option for this
497 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
499 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
501 * doc/en/dia-manual.xml:
502 * doc/pl/dia-manual.sgml:
503 * dia.spec (Release):
508 * app/authors.h: Removed duplicate of M. C. Nelson.
510 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
512 * app/export_png.c: Unique name for libart PNG export: png-libart.
514 * app/render_eps.c: Unique names for the two eps export methods:
515 eps-builtin, eps-pango.
517 * lib/filter.h: Binary compatibility change:
518 Added unique name to export filters. Can be NULL.
519 * lib/filter.c (filter_get_by_name): Finding a filter by
522 * app/app_procs.h: Changed prototype for do_convert.
523 * app/app_procs.c (app_init): Support for non-extension file
524 format selection for export. Also allow extension to differ from
525 that specified by the filters. A bit of refactoring, too.
527 2003-09-28 Steffen Macke <sdteffen@web.de>
529 * makefile.msc: added target po to update the translations
531 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
534 * dia.spec (Release):
536 * doc/pl/dia-manual.sgml:
537 * doc/en/dia-manual.xml:
538 Pre4 is given a short try.
540 * configure.in: Give all necessary libs to PNG test.
542 * lib/font.c: Added legacy entries for sans, serif and monospace.
544 * app/app_procs.c (internal_plugin_init):
547 Added PS fonts output for Unix.
549 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
550 factor to make PS fonts stay in boxes.
552 2003-08-03 Hans Breuer <hans@breuer.org>
554 * config.h.win32 : close the version string
556 * lib/libdia.def : with color_white, color_black being static
557 on win32 they can not be exported anymore either
559 * lib/dialibartrenderer.c : text rendering is back on win32,
560 only by Gdk though; almost a year seems to be enough to
561 wait for my patch at bug #94791 to be accepted ...
563 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
565 * shapes/network/{digitizing_board.png,plotter.png,
566 laptop.png,telephone.png}: 22x22 icons.
568 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
570 * doc/pl/dia-manual.sgml:
571 * doc/en/dia-manual.xml:
572 * dia.spec (Release):
576 pre3 improves font rendering speed.
578 * app/app_procs.c (app_init): Don't do pango init here, it's done
579 on demand in font.c now.
581 * lib/font.c: Load pango context on demand rather than during
582 init/all the time strikes a better balance between working font
583 size and speed. Still need to cache width calculations.
585 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
587 * lib/dia_xml.c: Enable pretty printing. Should have been added
590 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
592 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
593 adjustment a bit for half diamond and open round.
595 * RELEASE-PROCESS: Added note about notifying translators and
598 * doc/pl/dia-manual.sgml:
599 * doc/en/dia-manual.xml:
600 * dia.spec (Release):
606 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
608 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
609 calculation for half diamond and open round.
612 * objects/UML/component_feature.c:
613 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
614 arrows instead of specific little hacks. Much nicer, but damn
615 there's a lot of arrows.
617 * lib/dialibartrenderer.c (begin_render):
618 * app/render_libart.c (begin_render): Use correct DPI for screen
619 (well, actually the default DPI of 75 for now).
621 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
623 * lib/diagdkrenderer.c (draw_string): Some reformatting.
625 * app/app_procs.c (app_init): Note on what should be done for the
626 pango context now, only it doesn't work:(
628 * lib/font.c (dia_font_new): Make sure to load fonts that are
629 used, using a reasonable pango_context. Also a comment on the
632 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
634 * doc/pl/graphics/*.png:
635 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
636 loop (bug #121817). PL translator may want to change the
637 home_network png to be in Polish. If the docs get translated into
638 more languages, we'll want to find out how to share these things.
640 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
642 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
643 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
646 * app/filedlg.c (file_save_as_callback): Put filename setting
647 together. (Preparation for allowing default save dir.)
649 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
650 correctly this time:)
652 * app/dia-props.c (diagram_properties_show):
653 * app/properties.c (properties_show): Make sure the
654 dialogs are transient for the correct diagram.
656 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
658 * configure.in: Make sure -lz -lm is passed into second png test
659 as well (stupid AC_LINK_IFELSE can't take it as an argument).
661 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
662 comment-filled files readable. Once we have a 'generic data'
663 system, we can put comments in there.
665 2003-09-06 Steffen Macke <sdteffen@web.de>
667 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
668 g_string_sized_new() instead of g_string_new() to make it compile
669 * app/Makefile.am: including dia.ico and dia.rc in the tarball
670 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
671 for non-solid linestyles - otherwise custom linestyles have to be used.
673 2003-09-02 Steffen Macke <sdteffen@web.de>
675 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
678 2003-09-02 Christian Neumair <chris@gnome-de.org>
680 * sheets/Pneumatic.sheet.in: Slight unification fix.
682 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
686 * dia.spec (Release):
687 * doc/en/dia-manual.xml:
688 * doc/pl/dia-manual.sgml:
689 * NEWS: Update to 0.92-pre1.
691 * app/properties.c (properties_key_event): Removing Esc/Enter
692 handling for now, interferes to much with regular dialog usage.
694 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
695 Function to escape special TeX characters. Not in use yet, as
696 PSTricks output by default is TeX strings. Should get a save-time
699 2008-09-01 Steffen Macke <sdteffen@web.de>
701 * lib/paper.h: explanatory comment on width and height
703 2003-08-30 Steffen Macke <sdteffen@web.de>
706 * lib/color.h: made color_white, color_black static on win32
708 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
710 * configure.in (PNG_LIBS): Something in the png tests added an
711 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
713 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
715 * configure.in: Quote correctly for temporarily adding freetype
718 * app/preferences.c (prefs_save): Remove debugging g_print.
720 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
722 * objects/flowchart/parallelogram.c (pgram_update_data):
723 Directions for connections, better system for placing
726 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
728 * lib/diagramdata.c (layer_find_closest_object_except): Look all
729 the way through the object list, so the foremost object is selected.
731 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
732 included for diagramdata.c.
734 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
735 newline in multistringprop not close the dialog. Failed so far.
737 2003-08-25 Steffen Macke <sdteffen@web.de>
739 * app/commands.c: using CHM instead of HTML on win32 if available
740 * lib/diagramdata.h: including dynamic_obj.h
742 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
744 * app/properties.c (properties_key_event): Make Enter = Ok for
745 properties dialogs. Still some problems with this and Esc for
746 Cancel, for instances escaping out of a menu closes the dialog.
748 * objects/UML/association.c (association_get_properties):
749 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
752 * app/diapsft2renderer.c (draw_string): Use
753 dia_font_scaled_build_layout to ensure similarity of text.
755 * lib/diagramdata.c: Remove obj from dynobj list when removing
756 from layer to avoid nasty race conditions.
758 * app/undo.c (group_objects_revert): Make sure to unparent and
759 remove from dynobj list when changing layers objects.
761 2003-08-23 Steffen Macke <sdteffen@web.de>
763 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
764 StretchBlt(); fixes #92249
766 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
768 * app/filedlg.c (file_save_as_callback):
770 * app/preferences.c (prefs_data):
772 * lib/diagramdata.c (new_diagram_data):
773 * app/load_save.c (diagram_data_load):
774 Let the document remember whether it was compressed. The user can
775 still override this in the Save As... dialog, and that will still
776 be remembered as the default for new diagrams.
778 2003-08-23 Steffen Macke <sdteffen@web.de>
780 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
782 2003-08-22 Steffen Macke <sdteffen@web.de>
784 * plug-ins/xslt/dia-uml.xsl:
785 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
786 table containing a list of components grouped by stereotype
788 2003-08-21 Steffen Macke <sdteffen@web.de>
790 * lib/makefile.msc: added connectionpoint.obj
791 * lib/libdia.def: added connpoint_update, find_slope_directions
792 * app/disp_callbacks.c: including scroll_tool.h
793 * obj/makefile.msc: added component_feature.obj
794 * app/paginate_gdiprint.c: fixed loop initialization in
795 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
798 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
800 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
803 * lib/diagramdata.h: Colors added to prefs.
804 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
805 New field for pagebreak color, which should
806 behave the same as grid color and be settable for a diagram.
808 * app/diagram.c (diagram_init): Update diagram pagebreak color
811 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
814 * app/preferences.[ch]: Default diagram colors now #defines, so
815 loading can use it. Also, colors are now in NewDiagramData, so
816 are passed nicely into new diagrams directly from prefs. Yum.
818 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
819 Support for loading and saving grid and pagebreak colors with the
820 diagram. I'm inclined to make all the three Colors in diagram
821 Color*s instead, so we can tell if they're specified for the
822 diagram or merely the default setting. There'd be no way for the
823 user to tell if the color of a diagram is default, though, unless
824 we add a 'reset to default' button to prefs.
826 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
827 pagebreak color. Unsensitizing grid size when dynamic.
829 * objects/UML/component.c: Patch from Krzysztof Foltman
830 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
831 third. Makes the left side connections actually be on the line
834 2003-08-20 Steffen Macke <sdteffen@web.de>
836 * lib/libdia.def: added layer_find_closest_object_except
837 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
839 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
845 * app/disp_callbacks.c:
846 * app/create_object.h:
847 * app/create_object.c: Patch from Krzysztof Foltman
848 <kfoltman@onet.pl>: Middle button can scroll transiently when
849 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
853 * sheets/UML.sheet.in:
854 * sheets/UML/receptacle.xpm:
855 * sheets/UML/Makefile.am:
856 * sheets/UML/eventsource.xpm:
857 * sheets/UML/eventsink.xpm:
858 * objects/UML/pixmaps/facet.xpm:
859 * objects/UML/uml.c (dia_plugin_init):
860 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
861 * objects/UML/component_feature.c:
862 Patch from W. Borgert <debacle@debian.org>: Add event sources and
865 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
867 * lib/object.h: Turning some comments into doxygen style.
869 * lib/object_defaults.c (dia_object_defaults_load)
870 (dia_object_default_get, dia_object_default_create):
871 Fixing up existing documentation.
873 * lib/object.h: Doxygen style documentation begun.
875 * app/create_object.c:
877 * app/connectionpoint_ops.c:
878 * app/disp_callbacks.c:
881 * objects/network/wanlink.c (wanlink_move_handle):
882 * objects/network/bus.c (bus_move_handle):
884 * objects/flowchart/parallelogram.c (pgram_move_handle):
885 * objects/flowchart/ellipse.c (ellipse_move_handle):
886 * objects/flowchart/diamond.c (diamond_move_handle):
887 * objects/flowchart/box.c (box_move_handle):
889 * objects/custom/custom_object.c (custom_move_handle):
891 * objects/chronogram/chronoref.c (chronoref_move_handle):
892 * objects/chronogram/chronoline.c (chronoline_move_handle):
894 * objects/SADT/box.c (sadtbox_move_handle):
895 * objects/SADT/arrow.c (sadtarrow_move_handle):
896 * objects/SADT/annotation.c (annotation_move_handle):
898 * objects/Misc/analog_clock.c (analog_clock_move_handle):
900 * objects/GRAFCET/vergent.c (vergent_move_handle):
901 * objects/GRAFCET/vector.c (arc_move_handle):
902 * objects/GRAFCET/transition.c (transition_move_handle):
903 * objects/GRAFCET/step.c (step_move_handle):
904 * objects/GRAFCET/condition.c (condition_move_handle):
905 * objects/GRAFCET/action.c (action_move_handle):
907 * objects/FS/function.c:
909 * objects/FS/flow-ortho.c (orthflow_move_handle):
910 * objects/FS/flow-poly.c (flow_move_handle):
912 * objects/UML/usecase.c (usecase_move_handle):
913 * objects/UML/state_term.c (state_move_handle):
914 * objects/UML/state.c (state_move_handle):
915 * objects/UML/small_package.c (smallpackage_move_handle):
916 * objects/UML/realizes.c (realizes_move_handle):
917 * objects/UML/object.c (objet_move_handle):
918 * objects/UML/note.c (note_move_handle):
919 * objects/UML/node.c (node_move_handle):
920 * objects/UML/message.c (message_move_handle):
921 * objects/UML/lifeline.c (lifeline_move_handle):
922 * objects/UML/large_package.c (largepackage_move_handle):
923 * objects/UML/implements.c (implements_move_handle):
924 * objects/UML/generalization.c (generalization_move_handle):
925 * objects/UML/fork.c (fork_move_handle):
926 * objects/UML/dependency.c (dependency_move_handle):
927 * objects/UML/constraint.c (constraint_move_handle):
928 * objects/UML/compprop.c (compprop_move_handle):
929 * objects/UML/component.c (component_move_handle):
930 * objects/UML/branch.c (branch_move_handle):
931 * objects/UML/association.c (association_move_handle):
932 * objects/UML/actor.c (actor_move_handle):
933 * objects/UML/activity.c (state_move_handle):
934 * objects/UML/class.c (umlclass_move_handle):
936 * objects/standard/ellipse.c (ellipse_move_handle):
937 * objects/standard/zigzagline.c (zigzagline_move_handle):
938 * objects/standard/textobj.c (textobj_move_handle):
939 * objects/standard/polyline.c (polyline_move_handle):
940 * objects/standard/polygon.c (polygon_move_handle):
941 * objects/standard/line.c (line_move_handle):
942 * objects/standard/image.c (image_move_handle):
943 * objects/standard/bezier.c (bezierline_move_handle):
944 * objects/standard/arc.c (arc_move_handle):
945 * objects/standard/beziergon.c (beziergon_move_handle):
946 * objects/standard/box.c (box_move_handle):
948 * objects/ER/relationship.c (relationship_move_handle):
949 * objects/ER/participation.c (participation_move_handle):
950 * objects/ER/entity.c (entity_move_handle):
951 * objects/ER/attribute.c (attribute_move_handle):
953 * lib/polyshape.c (polyshape_move_handle):
955 * lib/orth_conn.c (orthconn_move_handle):
957 * lib/neworth_conn.c (neworthconn_move_handle):
958 * lib/neworth_conn.h:
959 * lib/element.c (element_move_handle):
961 * lib/connection.c (connection_move_handle):
963 * lib/beziershape.c (beziershape_move_handle):
965 * lib/bezier_conn.c (bezierconn_move_handle):
967 *BINARY COMPATIBILITY CHANGE*
968 Update prototype for *_move_handle() to include connectionpoint,
969 and also pass on modifiers. Pass in connectionpoint where
972 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
973 file connectionpoint.c.
975 2003-08-17 Danilo Å egan <dsegan@gmx.net>
977 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
979 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
981 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
983 * lib/beziershape.c (beziershape_update_data): Autoroute
984 directions for beziershapes!
986 * lib/connectionpoint.c (find_slope_directions):
987 * lib/connectionpoint.h: Function for finding the available
988 directions on a slope.
990 * lib/polyshape.c: Reasonable directions for
993 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
995 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
996 * objects/GRAFCET/vergent.c (vergent_update_data):
997 * objects/GRAFCET/transition.c (transition_update_data):
998 * objects/GRAFCET/action.c (action_update_data):
999 * objects/GRAFCET/step.c (step_update_data):
1000 * objects/FS/function.c (function_update_data):
1001 * lib/connpoint_line.c (connpointline_putonaline):
1002 * objects/ER/attribute.c (attribute_update_data):
1003 * objects/ER/entity.c (entity_update_data):
1004 * objects/ER/relationship.c (relationship_update_data):
1005 * objects/chronogram/chronoline.c (chronoline_update_data): Set
1006 directions for connection points.
1008 * objects/UML/component.c (component_create): Set to allow
1011 * app/create_object.c (create_object_button_press):
1012 * app/diagram.[ch] (diagram_find_clicked_object_except):
1013 * lib/diagramdata.[ch] (layer_find_closest_object_except):
1014 Avoid parenting to objects you're connecting to (otherwise you
1015 couldn't make a connection out of a parenting object). To do
1016 this, added functions to find the nearest object except a given
1019 * app/render_libart.c: Rearrange libart include to avoid multiple
1020 include program (and put libart includes inside #ifdef!)
1022 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
1024 * lib/dialibartrenderer.c: Don't include art_config.h if others
1025 also do, as it isn't #ifdef'd.
1027 * objects/flowchart/ellipse.c (ellipse_update_data): Add
1028 directions for connection points.
1030 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
1032 * objects/flowchart/box.c (box_update_data): Add directions, use
1034 (box_load): Use g_malloc0.
1036 * lib/Makefile.am (libdia_la_SOURCES):
1037 * lib/connectionpoint.c (connpoint_update):
1038 Function to call to update a connection point info in _update_data().
1040 * lib/connectionpoint.h: Convenience DIR_ macros.
1042 * app/preferences.c (prefs_data): Make pretty formatted XML the
1045 * lib/dialibartrenderer.c:
1046 * app/render_libart.c: Make sure art_config.h is included, cause
1047 some libart headers are broken.
1049 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
1050 after test. Add freetype-config cflags to cflags variable.
1052 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
1054 * app/authors.h: Credits for Krzysztof.
1056 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
1057 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
1058 than the description) is visible in the title of the properties
1059 dialog. That ought to be a short description (translatable),
1060 though we still want long descriptions for the tooltips. Hmmm...
1062 * configure.in: Updated to use AC_LINK_IFELSE instead of
1063 AC_TRY_COMPILE, also force to link to check libs on Solaris.
1065 * objects/ER/entity.c (entity_load):
1066 * objects/ER/attribute.c (attribute_load):
1067 * lib/attributes.c (attributes_set_default_font):
1068 Check if font is non-null before unreffing.
1070 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
1072 * app/diagram.c (diagram_ungroup_selected)
1073 (diagram_group_selected): Use the undo apply to make sure grouping
1074 and ungrouping is done in consistent manners. This removes a fair
1075 amount of duplicated code from diagram.c.
1077 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
1078 (group_objects_revert, group_objects_apply): Working undo/redo for
1079 diagram tree updates. The initial actions still don't quite work.
1081 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
1083 * app/create_object.c (create_object_button_press):
1085 * app/diagram.c: Undo support for parenting. Uses apply/revert in
1086 undo only for manipulating the parent/child relationships. Things
1087 like removing an object doesn't use the undo functions for
1088 parenting, so any updates to come (like to diagramtree) should be
1091 2003-08-03 Hans Breuer <hans@breuer.org>
1093 * app/create_object.c : minor formating and g_new0 for
1096 * lib/bezier_conn.[hc] lib/beziershape.[hc]
1097 lib/prop_geomtypes.c (prop_geomtypes_register)
1098 objects/standard/bezier.c objects/standard/beziergon.c :
1099 ability to set bezpoints via StdProp api
1101 * plug-ins/python/pydia-property.c : convert list of tuples
1104 * plug-ins/python/diasvg_import.py : use it to
1105 implement part of path parsing. Also minor improvements
1106 like inheritance of group attributes to members,
1107 whitespace, title and style:text/css ignoring ;-)
1109 2003-08-02 Hans Breuer <hans@breuer.org>
1111 * lib/connections.c (connection_move_handle): return
1112 something to make it compile
1113 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
1114 must return a value -> dito
1115 [Is there a warnings-as-errors switch we could use with gcc
1116 to avoid such in future ?]
1118 * plug-ins/python/pydia-object.h : define *_Check macros
1119 * plug-ins/python/diamodule.c : provide dia.group_create()
1120 * plug-ins/python/pydia-diagramdata.c : add
1121 DiaDiagramData.add_layer()
1122 * plug-ins/python/pydia-property.c : allow to set color by
1125 * plug-ins/python/diasvg_import.py : based on the above
1126 implement a) group support, b) rgb(1,2,3) color handling,
1127 and somewhat fishy data:image/png;base64 support (create
1128 temporary files from inline image data)
1129 d) dump the import errors as text into an 'Error' layer
1131 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
1132 stray " in draw_rect and corrected error message formating
1134 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
1135 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
1138 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
1140 * app/magnify.c (create_magnify_tool): allocate with g_new0()
1142 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
1143 preferences values (see bug 118570). Also group items into a GtkFrame.
1145 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
1150 * app/commands.c (objects_unparent_children_callback):
1152 * app/diagram.c (diagram_unparent_selected,
1153 (diagram_update_menu_sensitivity):
1154 Added unparenting of single children.
1156 * lib/bezier_conn.c:
1157 * lib/bezier_conn.h:
1158 * lib/beziershape.c:
1159 * lib/beziershape.h:
1165 * lib/neworth_conn.c:
1166 * lib/neworth_conn.h:
1173 * objects/EML/instantiation.c:
1174 * objects/EML/interaction-ortho.c:
1175 * objects/EML/interaction.c:
1176 * objects/EML/process.c:
1177 * objects/ER/attribute.c:
1178 * objects/ER/entity.c:
1179 * objects/ER/participation.c:
1180 * objects/ER/relationship.c:
1181 * objects/FS/flow-ortho.c:
1182 * objects/FS/flow-poly.c:
1183 * objects/FS/flow.c:
1184 * objects/FS/function.c:
1185 * objects/GRAFCET/action.c:
1186 * objects/GRAFCET/condition.c:
1187 * objects/GRAFCET/step.c:
1188 * objects/GRAFCET/transition.c:
1189 * objects/GRAFCET/vector.c:
1190 * objects/GRAFCET/vergent.c:
1191 * objects/Misc/analog_clock.c:
1192 * objects/SADT/annotation.c:
1193 * objects/SADT/arrow.c:
1194 * objects/SADT/box.c:
1195 * objects/UML/activity.c:
1196 * objects/UML/actor.c:
1197 * objects/UML/association.c:
1198 * objects/UML/branch.c:
1199 * objects/UML/class.c:
1200 * objects/UML/classicon.c:
1201 * objects/UML/component.c:
1202 * objects/UML/constraint.c:
1203 * objects/UML/dependency.c:
1204 * objects/UML/fork.c:
1205 * objects/UML/generalization.c:
1206 * objects/UML/implements.c:
1207 * objects/UML/large_package.c:
1208 * objects/UML/lifeline.c:
1209 * objects/UML/message.c:
1210 * objects/UML/node.c:
1211 * objects/UML/note.c:
1212 * objects/UML/object.c:
1213 * objects/UML/realizes.c:
1214 * objects/UML/small_package.c:
1215 * objects/UML/state.c:
1216 * objects/UML/state_term.c:
1217 * objects/UML/usecase.c:
1218 * objects/chronogram/chronoline.c:
1219 * objects/chronogram/chronoref.c:
1220 * objects/custom/custom_object.c:
1221 * objects/flowchart/box.c:
1222 * objects/flowchart/diamond.c:
1223 * objects/flowchart/ellipse.c:
1224 * objects/flowchart/parallelogram.c:
1225 * objects/network/bus.c:
1226 * objects/network/wanlink.c:
1227 * objects/standard/arc.c:
1228 * objects/standard/bezier.c:
1229 * objects/standard/beziergon.c:
1230 * objects/standard/box.c:
1231 * objects/standard/ellipse.c:
1232 * objects/standard/image.c:
1233 * objects/standard/line.c:
1234 * objects/standard/polygon.c:
1235 * objects/standard/polyline.c:
1236 * objects/standard/textobj.c:
1237 * objects/standard/zigzagline.c:
1238 Binary compatibility update: Added return value for foo_move() and
1239 foo_move_handle(). Orthconn derivatives also returns change from
1240 orthconn_move_handle().
1242 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
1243 doesn't support it yet.
1245 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
1246 Add returning ObjectChange from object moves. Needs to handle
1247 multiple object moves.
1249 * app/modify_tool.c (modify_motion, modify_release): Add
1250 ObjectChange from move & move_handle to undo stack.
1252 * objects/EML/instantiation.c (instantiation_move): Removing
1253 duplicate move & update.
1255 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
1257 * plug-ins/xfig/xfig-export.c: Added support for arrow head
1258 export. Many arrow types not supported by XFig, replacing those
1259 with standard arrows. Not sure whether it'd be better to render
1260 them as a group of lines instead. You'd lose the arrow-ness for
1261 further editing, but preserve the actual shape of it. Also added
1262 support for dash length.
1264 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
1266 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
1267 description for version 3.2, for reference.
1269 * plug-ins/xfig/xfig-import.c: Added import of arrows.
1271 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
1272 Align Vertical Adjacent call _v rather than _h.
1274 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
1276 * app/scroll_tool.c (create_scroll_tool):
1277 * app/modify_tool.c (create_modify_tool): use g_new0() to
1280 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
1282 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
1284 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
1286 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
1288 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
1290 * configure.in: Added Belarusian to ALL_LINGUAS.
1292 2003-07-19 Hans Breuer <hans@breuer.org>
1295 Make the xslt plug-in work on win32, too. It appears
1296 to require a quite recent version of libxml and libxslt,
1297 otherwise windoze pathes aren't translated correctly
1298 during file processing
1301 * plug-ins/xslt/xslt.h : #include <glib.h> before
1304 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
1305 the 'script' file finding similar to how it is done
1306 with the python scripts (no need for hardcoded pathes,
1307 removed the 'plugin' part from the path)
1309 * plug-ins/xslt/stylesheets.xml : added again. It does
1310 not have any path but only the pure filename again
1312 * plug-ins/xslt/stylesheets.xml.in : removed
1314 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
1315 rule to process stylesheets.xml.in
1317 * plug-ins/makefile.msc : added xslt
1319 2003-07-19 Hans Breuer <hans@breuer.org>
1321 Finally Dia learned to remember the recent selected sheet
1323 * app/preferences.[hc] : added prefs.recent_sheet
1324 * app/interface.c : restore and remember the sheet-option-menu
1325 history, but only if the respective number is stiil available.
1326 This additional adds robustness against running Dia without
1327 any sheet (e.g. installation problems)
1328 * app/app_procs.c : call prefs_safe() in app_exit() to remember
1329 changes which are not done by the prefernces dialog
1331 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
1332 removed every call (especially the conditional ones) to prefs_safe().
1333 Before prefs_safe() was called _many_ times during Dia startup
1335 2003-07-18 Hans Breuer <hans@breuer.org>
1337 * app/makefile.msc lib/makefile.msc lib/libdia.def :
1340 * lib/color.c : use gtk_widget_get_default_visual();
1341 as suggested in #114536
1343 * app/interface.c app/disp_callbacks.c :
1344 moved round_up () to the latter file where it is used
1346 * app/linewidth_area.c : #include "interface.h" for
1347 interface_get_toolbox_shell()
1349 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
1351 * plug-ins/pixbuf/.cvsignore
1352 * shapes/Cisco/.cvsignore:
1355 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
1357 * app/dia-props.c (diagram_properties_retrieve): Use
1358 diagram_get_name() to add the diagram name to the diagram
1362 * app/diagram.c (diagram_get_name): New function to get a
1363 reasonable diagram name.
1365 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
1366 info. Still need to be able to set dynamic grid. Also ought to
1367 follow Gnome style and have instant apply.
1369 * app/preferences.h:
1370 * app/preferences.c (prefs_data): Remove option to use stippled
1371 grid, add option for major line offset. Default to 5 minor lines
1373 Add option for dynamically sized grid.
1375 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
1377 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
1378 stippled/solid to display minor/major grid lines. Line drawing in
1379 separate functions away from calculating line distance.
1381 * app/grid.h: Split page break drawing out of grid_draw.
1383 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
1384 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
1385 when menu item is selected.
1387 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
1389 * configure.in: Removed -Winline flag to make way for important
1392 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
1393 non-compressed. Should fix bug #117381, also look prettier.
1396 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
1397 Set up desktop info more properly.
1399 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
1416 Autorouting directions patch from Krzysztof Foltman
1419 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
1420 GNOME parent menu items.
1422 * app/authors.h: Added Vadim to contributors list.
1424 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
1426 * app/commands.[ch]:
1427 * app/create_object.c:
1428 * app/disp_callbacks.[ch]:
1439 * objects/UML/large_package.c: Patch from Vadim Berezniker
1440 <vadim@berezniker.com>:
1441 Objects may "parent" other objects, i.e. contain them within
1442 themselves, restrain them and move them along. Some more stuff is
1443 needed, such as selection and individual unparenting. This adds
1444 parenting to UML - Large Package rather than Box.
1446 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
1448 * app/linewidth_area.c: Patch from Krzysztof Foltman
1449 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
1450 conform more, at least:).
1452 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
1453 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
1454 arcs. Implemented images (though there is some pixelization and
1455 banding in the output). Changed output file format to be a little
1458 * app/app_procs.c (app_exit): Added message for double exit, which
1459 shouldn't happen any more. Also preventing strange g_object_unref
1460 messages by having a printf after gtk_main_quit. This is really
1463 * app/interface.c (toolbox_delete): Avoid double app_exit call by
1464 removing handler for destroy when delete is called.
1466 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
1469 * app/display.c (ddisplay_scroll_to_object,
1470 ddisplay_scroll_center_point): New function for easy scrolling to
1473 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
1475 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
1476 $(srcdir) on stylesheets.xml.
1478 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
1479 diagram menus (since they're at the top by default now). Also
1480 move the Properties... menu item from Dialogs to Objects. Dialogs
1481 menu should disappear at some point.
1483 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
1484 ./configure from ./autogen.sh, as configure may need to be run
1485 from a different directory. (Also more standard this way.)
1487 * app/app_procs.c (app_init):
1488 * app/Makefile.am (INCLUDES): Gnome standardization patch from
1491 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
1493 * objects/flowchart/parallelogram.c (pgram_update_data):
1494 Left/right alignment for parallelograms. Doesn't use all
1495 available space, but then pgrams also ignore their shear value.
1496 This thing needs a loving hand.
1498 2003-07-01 Hans Breuer <hans@breuer.org>
1500 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
1501 * lib/proplist.c : don't complain if optional attr is missing
1502 * lib/orth_conn.h : make "orth_autoroute" optional to
1503 stop complaining with older files.
1505 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
1507 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
1509 2003-06-05 Andrew Halper <ashalper@cox.net>
1511 * app/diagram_tree.c : add scrolling of drawing area
1512 to desired object on "Locate". Patch modified to use new ddisplay
1513 function ddisplay_scroll_to_object().
1515 2003-06-11 Lars Clausen <lars@raeder.dk>
1517 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
1518 info. Before next version, the grid dialog (view dialog, really)
1519 must be redone to allow a) instant apply, b) apply to all
1520 diagrams, and c) setting colour, dynamic, major lines.
1522 * app/preferences.h:
1523 * app/preferences.c (prefs_data): Remove option to use stippled
1524 grid, add option for major line offset. Default to 5 minor lines
1526 Add option for dynamically sized grid.
1528 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
1530 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
1531 stippled/solid to display minor/major grid lines. Line drawing in
1532 separate function away from calculating line distance.
1534 * app/grid.h: Split page break drawing out of grid_draw.
1536 2003-05-15 Hans Breuer <hans@breuer.org>
1538 * plug-ins/python/diasvg.py : add xlink definition,
1539 also avoid to put spaces into attribute values. At least
1540 Sodipodi doesn't like them in width/height attributes
1542 * plug-ins/python/diasvg_import.py : add simple scaling.
1543 Some (more) handling for <svg>, <desc>, <circle>
1545 * plug-ins/python/scascale.py : (new file) which does
1546 some experimental scaling via StdProp api
1548 * plug-ins/python/pydia-cpoint.c
1549 plug-ins/python/pydia-handle.c : return PyDiaPoint for
1550 obj.pos not simple tuples. PyDiaPoint has a tuple interface
1551 so this may even be api compatible ...
1553 2003-05-11 Hans Breuer <hans@breuer.org>
1555 * app/line_area.c : add window position persitence
1557 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
1558 'poly_points' via StdProp api
1559 * lib/neworth_conn.h : don't rely on OrthConn and
1560 NewOrtConn having the same struct offsets
1562 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
1563 to help separating 'useful' properies - in terms of
1566 * objects/custom/custom_object.c
1568 add the missing prop_desc_list_calculate_quarks to
1569 all the *_describe_props()
1571 * objects/standard/beziergon.c objects/standard/bezier.c :
1572 explicit initializtion of default_user_data
1573 * objects/standard/polygon.c objects/standard/polyline.c :
1574 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
1576 * plug-ins/python/diamodule.c : implement dia.register_import
1578 * plug-ins/python/makefile.msc : need to link with Pango
1579 for pango_color_parse()
1581 * plug-ins/python/pydia-property.c : add a bunch of type
1582 conversions to PyDiaProperty_ApllyToObject()
1584 * plug-ins/python/diasvg_import.py : (new file) which currently
1585 is mainly a stress test for PyDia but for some files already
1586 produces better results than svg-import.c
1588 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
1590 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
1591 type-less operations.
1593 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
1595 * configure.in(ALL_LINGUAS): Added "ms".
1597 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
1599 * plug-ins/xslt/xslt.c (xslt_ok):
1600 * plug-ins/shape/shape-export.c (new_shape_renderer):
1601 * plug-ins/svg/render_svg.c (new_svg_renderer):
1602 * plug-ins/hpgl/hpgl.c (export_data):
1603 * plug-ins/dxf/dxf-export.c (export_dxf):
1604 * plug-ins/metapost/render_metapost.c (export_metapost):
1605 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
1606 * plug-ins/xfig/xfig-export.c (export_fig):
1607 * plug-ins/wpg/wpg.c (export_data):
1608 * plug-ins/cgm/cgm.c (export_cgm):
1609 * app/render_eps.c (export_eps):
1610 * app/export_png.c (export_png_ok):
1611 * app/load_save.c (diagram_data_save): Adding and standardizing
1612 output file error messages to include fopen error message.
1614 2003-05-01 Steffen Macke <sdteffen@web.de>
1616 * app/persistence.c: do not use unistd.h for MSVC build
1618 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
1620 * sheets/Assorted.sheet.in
1621 * sheets/Circuit.sheet.in
1622 * sheets/Contact.sheet.in
1623 * sheets/EML.sheet.in
1624 * sheets/ER.sheet.in
1625 * sheets/Electric.sheet.in
1626 * sheets/FS.sheet.in
1627 * sheets/Flowchart.sheet.in
1628 * sheets/GRAFCET.sheet.in
1629 * sheets/Logic.sheet.in
1630 * sheets/MSE.sheet.in
1631 * sheets/Misc.sheet.in
1632 * sheets/Pneumatic.sheet.in
1633 * sheets/SADT.sheet.in
1634 * sheets/SDL.sheet.in
1635 * sheets/UML.sheet.in
1636 * sheets/chronogram.sheet.in
1637 * sheets/ciscohub.sheet.in
1638 * sheets/ciscomisc.sheet.in
1639 * sheets/cisconetwork.sheet.in
1640 * sheets/ciscorouter.sheet.in
1641 * sheets/civil.sheet.in
1642 * sheets/network.sheet.in
1643 * sheets/sybase.sheet.in:
1644 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
1645 standardizes shape descriptions to use no articles, no 'create
1648 * app/interface.c (tool_data): Standard objects follow same
1651 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
1653 * app/color_area.c (color_area_edit): More informative title on
1654 color selection dialog.
1656 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
1657 sensitivity when dropping object in. Also reset tool to pointer.
1659 * objects/flowchart/diamond.c (diamond_update_data):
1660 * objects/flowchart/parallelogram.c (pgram_update_data): Added
1661 left and right alignment options.
1663 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
1665 * objects/flowchart/box.c: Added left and right alignment options.
1667 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
1669 * app/persistence.c (persistence_load): Test existence of
1670 persistence file before trying to open it.
1672 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
1674 * app/properties.c: Escape now closes properties dialogs.
1676 2003-04-25 Hans Breuer <hans@breuer.org>
1678 * app/config.h.win32 : bump version to 0.91+cvs
1680 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
1682 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
1684 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
1687 * app/presistence.c : need to #include "dia_xml_libxml.h"
1690 * app/layer_dialog.c : make delayed creation work by protecting
1691 all non static layer_dialog_*() with :
1692 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
1693 create_layer_dialog();
1694 * app/app_procs.c : removed /* create_layer_dialog(); */
1696 * objects/uml/association.c : give it a minimal StdProp
1697 implementation to fix bug #108896
1698 * lib/object_defaults.c : don't try to copy props if there
1699 is no obj->ops->describe_props
1701 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
1703 * objects/standard/image.c (image_create):
1704 * objects/standard/ellipse.c (ellipse_create):
1705 * objects/standard/box.c (box_create):
1706 * objects/flowchart/ellipse.c (ellipse_create):
1707 * objects/flowchart/diamond.c (diamond_create):
1708 * objects/flowchart/box.c (box_create):
1709 * objects/custom/custom_object.c (custom_create):
1710 * objects/ER/relationship.c (relationship_create):
1711 * objects/ER/entity.c (entity_create):
1712 * objects/ER/attribute.c (attribute_create): Initialize
1713 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
1715 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
1719 * plug-ins/Makefile.am:
1720 * plug-ins/xslt/Makefile.am:
1721 * plug-ins/xslt/xslt.c (dia_plugin_init):
1722 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
1723 automake-style if to only include xslt dir when needed. Works
1724 with automake 1.4 and up, at least.
1726 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
1728 * lib/diasvgrenderer.c (draw_string):
1729 * lib/dia_svg.c (dia_svg_parse_style): Use
1730 text-anchor:(start|middle|end).
1732 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
1733 polygon rather than polyline & avoid missing line pieces.
1734 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
1735 black-filled things.
1737 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
1739 * app/persistence.c (persistence_load): Check that persistence
1740 file exists before trying to read it.
1741 (persistence_update_window): Removed printf.
1743 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
1745 * lib/autoroute.c: Take badness into the layouters again, as some
1746 of them know they can do things that are pretty but would be
1747 counted as ugly by the default calculation.
1749 * objects/UML/large_package.c: Shrink package name box when no
1750 stereotype is present.
1752 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
1753 * lib/orth_conn.c: Added object menu item for autorouting.
1755 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
1756 Autorouting, plus set initial dragging handle to be the end, not
1758 (orthflow_draw): Flipped arrow place to be at the end, as
1759 originally intended (got lost in arrow update).
1761 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
1762 * objects/UML/dependency.c (dependency_get_object_menu):
1763 * objects/UML/association.c (association_get_object_menu):
1764 * objects/UML/realizes.c (realizes_get_object_menu):
1765 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
1766 * objects/GRAFCET/vector.c (arc_get_object_menu):
1767 * objects/ER/participation.c (participation_get_object_menu):
1768 * objects/EML/instantiation.c (instantiation_get_object_menu):
1769 * objects/UML/generalization.c (generalization_get_object_menu):
1770 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
1771 Autorouting setup (currently disabled for SADT/arrow).
1773 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
1775 * lib/autoroute.c: Removed printfs.
1778 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
1779 non-connected orthconns too.
1781 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
1784 * lib/orth_conn.c: Function to set autorouting on/off, use
1785 autorouting in move_handle (turns off when a middle handle is
1786 moved), added to standard orthconn props.
1788 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
1789 Stopped signal emission for check menu items being set to on/off.
1791 * objects/standard/zigzagline.c: Added autorouting object menu item.
1793 * lib/autoroute.c: Added last cases of autoroute layout, fixed
1794 floating point comparison bug, cleaned up layouters, tweaked
1795 badness to allow kinks.
1797 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
1799 * lib/connectionpoint.h: Changed DIR_* macros to go around the
1802 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
1804 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
1805 old cruft, added call to autoroute (currently cannot be turned
1806 off). Need to check what undo thinks about this.
1807 * lib/autoroute.[ch]: Fairly working simple layout.
1809 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
1810 * lib/autoroute.[ch]: Start of proper autorouting functionality.
1812 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
1814 * lib/prop_widgets.c: Show labels on ListProp.
1816 2003-04-11 Steffen Macke <sdteffen@web.de>
1818 * doc/en/dia-manual.xml: removed reference of non-existing authors
1820 * doc/en/usage-objects-selecting: commented out misleading section
1823 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
1825 * app/app_procs.c (app_init): Layer window now opened at startup
1828 * lib/prop_widgets.c: Show labels on ListProp.
1830 2003-04-09 Steffen Macke <sdteffen@web.de>
1832 * doc/en/*.sgml: removed files
1833 * doc/en/*.xml: added files
1834 * doc/en/Makefile.am: switched to XML DocBook
1836 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
1838 * plug-ins/xslt/xslt.c (dia_plugin_init):
1839 * configure.in: Added --with-xslt-prefix to allow other XSLT
1840 placements than /usr/lib.
1842 2003-04-09 Steffen Macke <sdteffen@web.de>
1844 * lib/makefile.mingw: updated to include latest files, including
1846 * lib/geometry.h: don't define isinf and finite for mingw gcc build
1848 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
1850 * app/persistence.h:
1851 * app/persistence.c (persistence_register_window_create):
1852 * app/app_procs.c (app_init):
1853 Register window function that doesn't create the window unless it
1854 should be open. Other windows should move to this, so startup
1855 speed can be reduced.
1857 * app/persistence.h: Removed call prototype for update_window, now
1859 * app/persistence.c (persistence_register_window): A number of
1860 fixes. Doesn't forget position when window is closed. Now
1861 actually loads prefs.
1863 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
1866 * app/preferences.c (prefs_data):
1867 * app/diagram_tree_window.h:
1868 * app/diagram_tree_window.c: Added persistence registering.
1869 Removed prefs items storing size and openness.
1871 * app/sheets_dialog.c (create_sheets_main_dialog): Added
1872 persistence registering.
1874 * app/Makefile.am (dia_core_files): Added persistence files.
1877 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
1878 that dirs are present.
1880 * app/app_procs.c (app_init): Loads persistent values on startup.
1881 (app_exit): Saves persistent values on exit.
1883 * app/layer_dialog.c (create_layer_dialog): Registers the layer
1884 window for persistence.
1886 * app/persistence.[ch]: New files handling various kinds of
1889 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
1891 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
1892 head spacing calculations. Added half-circle arrow from Matthieu
1893 Sozeau <mattam@netcourrier.com>
1895 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
1897 * app/app_procs.c (app_init): Moved layer dialog init to allow
1898 tooltips to be initialized.
1900 * app/interface.c (create_display_shell): More tooltips.
1902 * app/linewidth_area.c (linewidth_area_create)
1903 (linewidth_area_events):
1904 * app/color_area.c (color_area_events, color_area_create):
1905 Made tooltips work by embedding drawing_area in event_box.
1907 * app/interface.c (create_display_shell,
1908 (create_lineprops_area, create_color_area): Added a few tooltips.
1910 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
1912 * app/pixmaps/off-grid.xpm:
1913 * app/pixmaps/on-grid.xpm:
1914 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
1917 * app/commands.c (view_snap_to_grid_callback):
1918 * app/display.c (ddisplay_set_snap_to_grid)
1919 (update_snap_grid_status):
1920 * app/interface.c (create_display_shell, grid_toggle_snap):
1921 Added snap-to-grid status button.
1923 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
1925 * app/app_procs.c (app_init): Create a new diagram if a file on
1926 the command line isn't found.
1928 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
1930 * lib/dialibartrenderer.c (draw_string): Correct color handling
1933 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
1936 * doc/en/dia-manual.sgml:
1937 * doc/pl/dia-manual.sgml:
1939 * dia.spec (Release):
1940 Version 0.91 is here!
1942 2003-02-10 Steffen Macke <sdteffen@web.de>
1944 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
1945 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
1946 non-ANSI characters, closes #107980
1948 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
1952 * dia.spec (Release):
1953 * doc/en/dia-manual.sgml: Upping to pre6.
1955 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
1957 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
1958 #107511: Make arrow selector for correct arrow type.
1960 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
1962 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
1965 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
1967 * doc/en/dia-manual.sgml:
1970 * dia.spec (Release): Upping to pre5.
1972 * configure.in: Add freetype-config derived libs to the
1973 AC_CHECK_LIB statement for freetype.
1975 2003-02-28 Hans Breuer <hans@breuer.org>
1977 [fix for bug #107203]
1979 * lib/diarenderer.c : add warning 'implementation'
1980 for fill_rect to avoid crashing with a renderer
1981 which does not implement this required function.
1983 * plug-ins/dxf/dxf-export.c : provide - still empty -
1984 'implementations' for fill_rect and fill_polygon
1985 to suppress the above warnings. Now it works like
1988 2003-02-28 Steffen Macke <sdteffen@web.de>
1990 * samples/all_objects.dia: New sheet containing all dia shapes
1991 and objects; one layer per sheet
1993 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
1995 * lib/prop_text.c (multistringprop_get_widget,
1996 multistringprop_reset_widget, multistringprop_set_from_widget):
1997 Now uses GtkTextView instead of deprecated stuff, and also works:)
1999 * configure.in: Slightly more informative error message for isinf.
2001 * dia.spec (Requires): Require libxml2 rather than libxml.
2003 2003-02-28 Steffen Macke <sdteffen@web.de>
2005 * shapes/Circuit/hjumper.png:
2006 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
2009 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
2011 * doc/en/dia-manual.sgml:
2013 * dia.spec (Release):
2014 * NEWS: New prerelease 0.91pre4, two important fixes.
2016 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
2018 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
2021 * app/commands.c (help_manual_callback): More correct URL for help
2022 page (include file://, was broken on Dillo without it).
2024 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
2026 * app/disp_callbacks.c: Set modifed when text is changed.
2028 * app/modify_tool.c (modify_button_release): Allow undo for moving
2031 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
2034 * doc/en/dia-manual.sgml:
2036 * configure.in: New prerelease with important bugfix.
2037 * shapes/network/digitizing_board.png:
2038 * shapes/network/plotter.png: Re-adding with -kb.
2040 2003-02-17 Abel Cheung <maddog@linux.org.hk>
2042 * app/app_procs.c (app_init): Add comment for translators.
2044 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
2046 * lib/filter.c (filter_register_import, filter_register_export):
2047 Don't accept filters with NULL description.
2049 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
2050 (as we assume the description is available in other places).
2052 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
2054 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
2055 * app/display.c (ddisplay_resize_canvas): Use
2056 ddisplay_add_update_all().
2057 (ddisplay_add_update_all): Free display and update lists when
2058 doing update_all, as they'll be regenerated immediately to cover
2059 all visible area. Fixes bug #106165, crash when resizing. This
2060 appears to be the original AA crash bug, believed long extinct.
2062 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
2064 * app/commands.c (help_manual_callback): Use file: protocol for
2067 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
2069 * plug-ins/xslt/stylesheets: Removed old-style config file.
2071 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
2073 * plug-ins/xslt/Makefile.am:
2074 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
2075 handling (no more DIA_PLUGIN_PATH).
2077 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
2079 * plug-ins/svg/render_svg.c:
2080 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
2082 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
2084 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
2085 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
2086 side of the triangle is longer than the hypotenuse. Rounding
2089 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
2093 * doc/en/dia-manual.sgml: Update for pre2.
2095 * app/menus.c (display_menu_items): Fixed wrongly place separators.
2097 * objects/flowchart/box.c (box_update_data): Applied patch from
2098 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
2101 * app/paginate_psprint.c (print_page): Set paper name, so it
2102 convinces ps printers to use to right size.
2104 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
2106 * app/properties.c (properties_show): Hide the dialog if the
2107 object is NULL (get rid of 'no properties' randomly popping up).
2109 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
2111 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
2112 for diagrams not starting at origo.
2114 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
2116 * dia.spec (BuildRequires): Use libxml2-devel.
2118 * plug-ins/pixbuf/Makefile.am: Added to CVS.
2120 * RELEASE-PROCESS: Note on RPM version numbers.
2122 * app/interface.c (create_display_shell): Don't set as toolbar
2123 under Unix, either. Especially not the diagram shell. It removes
2124 it from the taskbar and makes it unresizable, always-on-top with
2125 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
2126 appropriate thing, UTILITY, is not good either, you lose resizing
2127 and minimizing/maximizing under OpenBox.
2129 * app/menus.c (display_menu_items): Set delete item to use Delete.
2131 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
2133 * dia.spec (BuildRequires, Requires): Updated for Gtk2
2136 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
2137 display flush when getting focus in, or we may get an update after
2138 the diagram has been destroyed in some cases. Fixes bug #105221.
2140 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
2142 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
2144 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
2145 - gnome-compiled Dia will now read files specified on the command line.
2147 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
2149 * INSTALL (REQUIREMENTS): Updated requirements section.
2151 * configure.in: Better finite() check from MÃ¥rten Svantesson
2152 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
2155 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
2157 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
2159 * app/app_procs.c (debug_break): Added some code to avoid
2160 over-eager optimizations removing the call. Surely there's a
2161 nicer way, but I'm not sure how.
2163 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
2164 that set text to black.
2166 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
2168 * NEWS: Mention of Twiki as doc source for Python.
2170 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
2171 libart/libpng is not available. Later when we have a way of
2172 letting the user pick options in the file select dialog we shall
2173 allow the choice when applicable.
2175 2003-02-02 Steffen Macke <sdteffen@web.de>
2177 * doc/en/usage-loadsave.sgml:
2178 * doc/en/usage-objects.sgml: patch from
2179 James K. Lowden <jklowden@schemamania.org> to fix
2182 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
2184 * plug-ins/Makefile.am (SUBDIRS):
2185 * plug-ins/pixbuf/pixbuf.c:
2186 * plug-ins/pixbuf/Makefile.am:
2188 Added pixbuf plugin to Makefile.am, but for import only. PNG
2189 export handled by libart, which is better. JPG export is
2190 discouraged. BMP is not much used on Unix. Next release will
2191 integrate libart to allow all outputs.
2193 2003-02-01 Hans Breuer <hans@breuer.org>
2195 * app/preferences.c :
2197 the last two dialogs with 'old' button order finally
2198 are converted to gtk2, no GnomeDialog in all of Dia
2201 2003-02-01 Hans Breuer <hans@breuer.org>
2203 * app/filedlg.c : don't try to use a button as
2204 'overwrite-file-dialog'-parent, use the FileSelDialog
2207 * plug-ins/pixbuf/pixbuf.c : make it work with
2208 system-visual-depth < 24. Remove 'bmp' from output
2209 format extensions, it just was wishful thinking.
2211 * plug-ins/python/Makefile.am : added the four new python
2212 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
2214 2003-02-01 Hans Breuer <hans@breuer.org>
2216 * NEWS : updated content beside dependencies
2218 2003-02-01 Hans Breuer <hans@breuer.org>
2220 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
2221 to make it useable across DLL boundaries
2222 * app/lineprops_area.c : same code to access arrow_types
2225 * objects/UML/class.c : the non empty string is e.g.
2226 comment != NULL && comment[0] != '\0'
2227 * objects/UML/uml.c : same here, don't bother with
2228 empty operation stereotypes
2230 2003-02-01 Steffen Macke <sdteffen@web.de>
2232 * app/lineprops_area.c: latest changes do not work on
2233 windows, using old code without tooltips
2234 * makefile.msc: fixed copying of wmf.dll
2235 * plug-ins/makefile.msc:
2237 * lib/makefile.msc: now linking libintl
2238 * config.h.win32: enabling native language support
2240 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
2242 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
2243 -ldl and -lglib. May or may not work on windows...awaiting verdict.
2245 2003-01-31 Daniel Yacob <locales@geez.org>
2247 * configure.in: Added am (Amharic) to ALL_LINGUAS.
2249 2003-01-31 Steffen Macke <sdteffen@web.de>
2251 * objects/UML/class.c (umlclass_calculate_data): fixed crash
2252 when comments were visible, no class comment available and
2255 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
2257 * RELEASE-PROCESS: Updated to fit new install-module syntax.
2258 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
2261 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
2267 Prerelease version changes, version 0.91-pre1.
2269 * app/sheets_dialog_callbacks.h:
2270 * app/sheets_dialog_callbacks.c:
2271 * app/sheets_dialog.c (create_sheets_main_dialog):
2272 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
2273 to handle destruction of main dialog cleanly, but it's a mess.
2275 * configure.in: Downgraded ieeefp test to make it not produce
2278 * lib/widgets.c (dia_arrow_selector_set_arrow):
2279 (dia_line_style_selector_set_linestyle): Select menu dot
2282 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
2283 adjustment for diamondheads.
2285 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
2287 * app/properties.c (create_dialog): Destroy properties dialog and
2290 * app/sheets_dialog_callbacks.c
2291 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
2292 if the old one is destroyed.
2294 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
2296 * app/export_png.c (export_png_ok): Added info on resolution.
2297 Should (next release) improve export dialog to allow setting
2298 resolution instead of pixels.
2300 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
2301 to generate arrowheads as well as tooltips.
2303 * lib/arrows.c: Added hollow diamond to menudesc list.
2306 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
2307 unify with rendered menu.
2309 * lib/diarenderer.c (draw_line_with_arrows)
2310 (draw_polyline_with_arrows, draw_arc_with_arrows)
2311 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
2312 without changing renderer API. Thanks to David Scherba for
2313 providing inspiration.
2315 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
2317 * app/interface.c (create_display_shell):
2318 * app/display.h: Patching from Hubert Figuiere
2319 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
2322 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
2324 * app/defaults.c (defaults_show): Fixed defaults closing bug.
2325 Thanks to Hans for pointing it out.
2327 2003-01-25 Hans Breuer <hans@breuer.org>
2329 * app/commands.c : don't warn about crashing libart renderer
2330 on win32. It simply doesn't render text anymore :-(
2332 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
2334 * objects/UML/class.c : don't access umlclass->properties_dialog
2335 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
2336 which sets the former to NULL by destroy_properties_dialog() callback.
2338 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
2340 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
2342 * plug-ins/python/pydia-image.c : add image.uri member
2343 not only useful for SVG rendering
2345 * plug-ins/python/diasvg.py : (new file) a more advanced
2346 example. A full blown SVG Renderer, currently only
2347 registered for .svgz
2349 * plug-ins/python/export-object.py : write text props
2351 * plug-ins/python/debug_objects.py : write prop.type and
2354 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
2356 * objects/UML/association.c (association_update_data): Better
2357 bounding box for assoc with arrows.
2359 * lib/properties.h: New flag for properties with multiple values
2362 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
2363 arrow updating in dialog. Was broken due to changes from destroy
2366 * app/commands.c (view_aa_callback): AA warning only for Windows
2367 -- I trust the Unix side well enough.
2369 * app/render_libart.c (get_text_width):
2370 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
2371 font height can be taken from parent instance.
2373 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
2374 (get_text_width): Proper cursor positioning for libart renderer.
2375 Ought to have a DiaInteractiveRenderer that these two can inherit
2376 from, that knows about transform.
2378 2003-01-25 Steffen Macke <sdteffen@web.de>
2380 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
2381 plug-in still not working on win32
2383 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
2385 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
2386 gdk_window_get_pointer to avoid destroy crash. Simpler than I
2389 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
2391 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
2392 bail out on gtk options.
2394 * lib/message.c (gtk_message_internal): Better handling of destroy
2397 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
2399 * app/color_area.c (color_area_edit):
2400 * lib/widgets.c (dia_file_selector_browse_pressed)
2401 (dia_color_selector_pressed):
2402 * app/plugin-manager.c (get_plugin_manager):
2403 * app/filedlg.c (file_open_callback, file_save_as_callback)
2404 (file_export_callback):
2405 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
2406 handling of destroy event.
2408 2003-01-22 Alan Horkan <horkana@tcd.ie>
2410 * app/commands.c (file_new_callback): Changed Untitled to Diagram
2413 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
2415 * app/preferences.c (prefs_create_dialog):
2416 * app/linewidth_area.c (linewidth_create_dialog):
2417 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
2418 * app/layer_dialog.c (create_layer_dialog)
2419 (layer_dialog_edit_layer): Correct handling of destroy signal.
2421 * app/diapsft2renderer.c (set_font): Adjust silly random factor
2422 for change in font.c
2424 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
2426 * lib/font.c (dia_font_build_layout): Let's all use the same weird
2429 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
2430 * app/layer_dialog.c (create_layer_dialog)
2431 (layer_dialog_edit_layer):
2432 * app/filedlg.c (file_open_callback, file_save_as_callback)
2433 (file_export_callback):
2434 * app/dia-props.c (create_diagram_properties_dialog):
2435 * app/defaults.c (defaults_dialog_destroyed):
2436 * app/color_area.c (color_area_edit): Dialog destroy event handling.
2438 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
2440 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
2441 defaults dialog destroyed.
2443 2003-01-19 Steffen Macke <sdteffen@web.de>
2445 * objects/makefile.msc: added bondgraph
2446 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
2447 to compile pixbuf.dll
2448 * makefile.msc: copying all objects and dlls now
2450 2003-01-19 Hans Breuer <hans@breuer.org>
2452 * app/diagram.[hc] : provide dia_open_diagrams(), make
2453 open_diagrams variable static
2454 * app/dia.def : export it (to be used by PyDia)
2455 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
2456 app/display.c app/dynamic_refresh.c app/layer_dialog.c
2457 app/load_save.c : make use of dia_open_diagrams()
2459 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
2460 on win32. It removes the diagram window from the taskbar and
2461 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
2463 * app/menus.c : add '...' to menu entries where a dialog
2465 * app/recent_files.c app/dia_embedd.c : reflect the above in
2466 menus_get_item_from_path() calls
2468 * lib/libdia.def : add dia_image_rgba_data
2470 * lib/properties.h lib/prop_text.[hc] : add new property
2472 * objects/UML/class.[hc] object/UML/class_dialog.c : use
2473 StringList for attributes_strings and operations_strings to
2474 make this calculated data accessible via the Property API
2476 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
2477 provide dia.new() to create a new diagram, dia.registered_types()
2478 to get on Dia's type registry, dia.message() for simple dialogs
2480 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
2481 to create a new display from a diagram. Let diagram.extents and
2482 diagram.bg_color return the same types as in diagramdata.*
2484 * plug-ins/python/pydia-geometry.c : add a read-only
2485 'sequence interface' to DiaPoint and DiaRectangle
2487 * plug-ins/python/pydia-property.c : allow to get on StringList
2490 * plug-ins/python/pydia-render.c : fix typo to make it compile
2492 * plug-ins/python/python-startup.py : removed 'import pygtk'
2493 again. This file does not need any gtk UI, and some python
2494 plug-ins don't do either
2496 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
2497 it should actually work as intended again
2499 * plug-ins/python/group_props.py : (new file) a prototype for
2500 one the most requested features: Change properties of selected
2501 objects in one step. Requires pygtk.
2503 * plug-ins/python/select_by.py : (new file) select objects by
2504 common properties. Requires pygtk.
2506 [Start of 'PyDia Self Documentation Series']
2508 * plug-ins/python/pydiadoc.py : (new file) generates a new
2509 diagram which contains all objects of dir(dia)
2511 * plug-ins/python/otypes.py : (new file) generates a new diagram
2512 which contains all the currently registered object types sorted
2513 by their containing package
2515 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
2517 * configure.in: Added check for Pango >= 1.1.5, which appears to
2518 be enough to have text work.
2519 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
2520 do it. AC_SUBST should be idempotent, though.
2522 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
2524 * configure.in (HAVE_FREETYPE): Better test for freetype version
2526 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
2528 * lib/font.c: Renamed global_size_one to global_zoom_factor to
2529 avoid confusion, and added comment. Set scale factor in
2530 dia_font_build_layout to 1.0 for Unix side. This fixes at least
2531 my weird scaling problems. Fonts are now of the expectable size,
2532 i.e. the space between lines at size 1.0 is 1.0. If we want a
2533 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
2534 diagrams, though there will always be differences.
2536 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
2538 * plug-ins/python/python-startup.py:
2539 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
2541 * plug-ins/python/python.c (dia_plugin_init): Added warning
2542 message for missing startup file.
2544 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
2546 * lib/dia_image.c (dia_image_rgb_data):
2547 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
2548 involving EPS. Can't do transparency in EPS yet.
2551 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
2552 data as one chunk. Documentation for the RGB data getting funcs.
2553 (dia_image_rgb_data): Added comment.
2555 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
2558 2003-01-13 Steffen Macke <sdteffen@web.de>
2560 * lib/dia_image.c: dia_image_rgb_data() is working for
2561 non-alpha images now. Fixes #93762
2562 * Makefile.am: added makefile.msc to EXTRA_DIST
2564 2003-01-10 Steffen Macke <sdteffen@web.de>
2566 * app/paginate_psprint.c: Closing print dialog when file
2567 could not be written. Fixes #84746
2569 2003-01-04 Steffen Macke <sdteffen@web.de>
2571 * doc/custom-shapes: incomplete description of <svg:text>
2573 2003-01-03 Steffen Macke <sdteffen@web.de>
2575 * makefile.msc(new): new makefile to create file
2576 structure suitable for running dia win32 under
2577 $(TOP)/dia/build/win32
2579 2003-01-02 Steffen Macke <sdteffen@web.de>
2581 * lib/dia_svg.c: including stdlib.h
2582 * lib/makefile.msc: added gdk_pixbuf libs to linker
2583 * app/makefile.msc: added gdk_pixbuf libs, made libart
2584 libs compatible with gnuwin32 package
2586 2003-01-01 Hans Breuer <hans@breuer.org>
2588 * lib/font.c : more comment about global_size_one
2590 * app/menus.c : <control>[<shift>]A for plain gtk build too.
2592 * plug-ins/wmf/wmf.cpp : some type juggling to make
2595 2002-12-31 Steffen Macke <sdteffen@web.de>
2597 * app/makefile.msc: added hint on how to enable console output
2599 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
2601 * objects/standard/textobj.c (textobj_load): Get the handle type
2602 right, at least to be the same as when created.
2604 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
2606 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
2608 2002-12-08 Hans Breuer <hans@breuer.org>
2610 * app/commands.c : fixed bug #85315 'give diagram properties,
2611 instead of no object selected error' almost a one-liner
2613 * app/splash.c : don't make having the logo pixmap
2614 mandatory. Fixes bug #96068.
2616 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
2617 sequence by connecting to the "delete_event"
2618 * app/objects/uml/class_dialog.c : handle "destroy" for
2621 * lib/libdia.def : remove diaXmlNewChild again
2623 * app/paginate_gdiprint.cpp : reflect Dia's page setting
2624 portrait/landscape in the windoze print dialog
2626 * objects/makefile.msc : only UML needs to link against
2627 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
2629 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
2631 * objects/standard/ellipse.c (ellipse_distance_from):
2632 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
2633 correct distance function. Could be faster, but it's not really
2636 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
2638 * lib/font.c: Changed global_size_one to more correct 28.35.
2643 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
2646 2002-12-07 Hans Breuer <hans@breuer.org>
2648 * lib/widgets.c : g_file_get_contents() silently assumes
2649 a binary file. Reflect when creating the font_menu file
2650 to get rid of junk in font menus
2652 2002-12-06 Hans Breuer <hans@breuer.org>
2654 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
2655 removed 0xD 0xD 0xA line ends which get created by
2656 cvs if windoze line ends 0xD 0xA are checked in from
2657 *nix and checked out on win32.
2659 * app/preferences.c : changed toolbox_on_top default to
2660 false. It is currently not possible to change the behaviour
2661 at runtime, at least not on win32.
2663 * lib/dialibartrenderer.c : bug #94791 'rendering to
2664 bitmap without PangoFt2' got delayed to milestone future
2665 so wrap libart text rendering into PANGO_WIN32_FUTURE.
2666 It is not available without my Pango patch in bugzilla.
2668 * lib/font.c : added comment to global_size_one and adapt
2669 the arbitrary size scaling in dia_font_build_layout() for
2670 win32, too. This is needed to get an acceptable font size
2671 approximation for Dia 0.90 and earlier files.
2672 Also #include "message.h".
2674 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
2675 reflect movement of group.[hc]
2676 * lib/group.h : export group_type which gets used by app/*
2678 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
2679 to get the GtkTypeInfo definition
2681 * plug-ins/makefile.msc : dxf and xfig don't need to link
2682 against app/ anymore now that group is moved to lib/
2684 * plug-ins/python/pydia-render.c : remove massive leaking
2685 of self, i.e. PyDiaRenderer
2687 * plug-ins/python/makefile.msc : remove linking against
2690 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
2692 * objects/standard/line.c: Removed properties options for gaps,
2693 until release is done.
2695 * configure.in: Check for freetype version.
2697 * lib/text.c (text_insert_char): Fixed small buffer overflow for
2700 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
2702 * app/diapsft2renderer.h:
2703 * app/diapsft2renderer.c:
2704 * app/diapsrenderer.h:
2705 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
2707 * app/render_eps.c (export_eps, new_psprint_renderer): Using
2708 PS_FT2 renderer when available. Old render stuff killed. Yay!
2710 * lib/properties.h: Fixed bad frame end def.
2712 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
2714 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
2716 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
2718 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
2720 * lib/font.c: Now checking for the proper dia-style standard fonts.
2723 * app/Makefile.am: Moving group.[ch]
2725 * plug-ins/dxf/dxf-import.c:
2726 * plug-ins/xfig/xfig-import.c:
2727 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
2731 * lib/object.c (object_list_move_delta, object_copy_list):
2732 * lib/object.h: Moved some object-related functions from
2733 object_ops to object to assist moving group.c.
2735 * lib/diatypes.h: Added Group typedef.
2738 * lib/group.c: Moved from app to lib to a) resolve plug-ins
2739 references, and b) make groups more "real" objects.
2741 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
2743 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
2745 * lib/font.c (dia_font_init): Added check that the three standard
2748 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
2751 * app/load_save.c: Linebreaks in dia files, no indentation.
2752 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
2755 * objects/standard/line.c: Small but important fixes to the line
2759 * lib/dia_xml.c (diaXmlNewChild):
2760 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
2761 XML prettyprinting wrapper.
2763 2002-12-03 Steffen Macke <sdteffen@web.de>
2765 * shapes/Cisco/Makefile.am:
2766 * shapes/Cisco/*.shape: finished conversion of Cisco icons
2769 2002-12-02 Steffen Macke <sdteffen@web.de>
2771 * doc/en/Makefile.am:
2772 * doc/en/usage-objects.sgml:
2773 * doc/en/graphics/line_icon.png: (new) added line icon
2775 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
2777 * objects/standard/line.c: Binary search object edge line gap.
2779 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
2781 * configure.in: Added Cisco makefile, sorted Makefiles list.
2783 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
2785 * configure.in: Now checks for availability of PangoFT2 and
2786 FreeType, raising an error if not found.
2788 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
2791 2002-12-01 Steffen Macke <sdteffen@web.de>
2793 * doc/en/usage-loadsave.sgml: updated information on import
2796 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
2798 * app/commands.c (edit_copy_callback): Freeing copy_list.
2800 2002-11-28 Steffen Macke <sdteffen@web.de>
2802 * app/render_libart.c: art_config.h was included twice
2804 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
2806 * sheets/.cvsignore: More ignorance.
2808 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
2810 * lib/prop_widgets.h: Two (currently unused) settings for frame
2813 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
2814 (by default) foldable.
2816 * lib/propinternals.h:
2817 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
2818 widgets in a more controlled manner.
2820 * objects/standard/line.c (line_update_data): Line gap things
2821 inserted. Can do xeyes now:)
2823 2002-11-26 Christian Neumair <chris@gnome-de.org>
2825 * .cvsignore: Changed.
2826 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
2827 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
2830 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
2832 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
2834 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
2835 passing to font hash.
2837 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
2838 utf-8 or locale-convertible before adding to dialog text. This
2839 probably needs done in a number of places where we get text from
2840 the environment and send it to GTK to display.
2842 * lib/widgets.c: Fixed case problems for font menu entries.
2844 * objects/SADT/annotation.c: Don't run the event test (but leave
2845 it here for inspiration).
2848 * lib/widgets.h: Allowing setting preview text for fonts.
2850 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
2852 * objects/bondgraph/Makefile.am:
2853 * objects/bondgraph/bondgraph.c:
2855 * objects/Makefile.am: Added bond graph dir.
2857 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
2859 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
2861 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
2863 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
2866 * app/diapsrenderer.c: Freetype rendering is back in force.
2868 * app/disp_callbacks.c: Added missing updates for pre-text-change.
2870 2002-11-25 David Hoover <jazzdaq@yahoo.com>
2872 * app/render_libart.c: Added missing #include line for libart.
2875 * lib/geometry.c: Added point_convex function. This computes
2876 points inside a line segment (0 <= alpha <= 1) or outside the
2877 line segment (alpha < 0 | alpha > 1).
2879 * objects/standard/line.c: Line now has additional code/attributes
2880 which permit the line to extend past the line anchors (gap < 0) or
2881 leave a gap without reaching the anchor (gap > 0). If no gap is
2882 specified, the default gap of 0 will result in identical line
2883 behavior as before. If the 'fractional' attributes are TRUE, the
2884 gap length is not fixed, but a percentage of the line length. I
2885 did not know how create the GTK widgets so the gap code currently
2886 cannot be used without adding XML attributes by hand.
2888 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
2890 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
2892 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
2894 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
2896 * lib/font.c: Debugging functionality in separate functions.
2898 * lib/widgets.c: Using fontsel with context.
2900 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
2902 * objects/custom/custom_object.c: Orientation handling for shapes,
2903 patch thanks to Martin Hans <opfinder@gmx.net>.
2905 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
2906 work on even better orientation handling.
2908 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
2909 casting NULL pointers. Should be unnecessary in an upcoming GTK
2912 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
2916 * lib/widgets.c: Now uses correct context to get font families.
2918 * lib/diagdkrenderer.c (get_text_width, draw_string):
2919 * lib/dialibartrenderer.c (draw_string):
2921 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
2922 (dia_font_build_layout): Unified the twiddle factors into a use of
2923 global_size_one. But I deeply distrust Pango for seeming to
2924 change size of fonts every time I turn my back.
2929 * app/menus.h: Updated some more methods to also be more specific
2933 * app/recent_files.c:
2934 Changed to return most specific type, to avoid run-time type errors.
2936 * app/menus.c (menus_get_item_from_path): Non-gnome version now
2937 gets menu_item rather than widget, which works better.
2939 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
2941 * app/display.c: (new_display):
2942 * app/menus.c: (menus_get_item_from_path):
2943 Relying on the tearoff to locate the input methods menu wasn't a
2944 good idea: tearoffs seem to be an endangered species nowadays.
2945 Anyway, the IM menu seems to be working now.
2947 * app/interface.c: hinted the window manager that the toolbox window
2948 is a toolbox window. Not that my (fairly default configuration)
2949 sawfish cares, but other NETWM compliant WMs may.
2956 * app/layer_dialog.c:
2957 * app/linewidth_area.c:
2959 * app/sheets_dialog.c:
2962 The GTK doc says to avoir gtk_window_set_wmclass() and
2963 gtk_window_set_policy(), and use gtk_window_set_role() and
2964 gtk_window_set_resizable(), respectively.
2966 * app/preferences.c: (prefs_create_dialog):
2967 * app/preferences.h:
2968 * app/display.c: (display_set_active):
2969 Added a preference to have the toolbox hover over diagram windows.
2971 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
2973 * lib/diagdkrenderer.c (get_text_width, draw_string):
2974 Freetype-based string drawing now works. Not very fast, though.
2975 I wish I could use the graphics card for this:( I'm doing three
2976 bitmap loops where I should be doing one. The size is not correct
2977 either, despite having get_text_width give the right thing.
2979 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
2981 * app/connectionpoint_ops.c (diagram_update_connections_object):
2982 Allows more than one connectionpoint on an object to be moved at a
2985 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
2987 * configure.in: Added cs to ALL_LINGUAS.
2989 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
2991 * app/paginate_psprint.c: Removed unnecessary decl of autosave
2994 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
2996 * app/export_png.c (export_png_ok): Saving more variables from the
2999 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
3001 * lib/dialibartrenderer.c (begin_render):
3002 (end_render): Correct pushing and popping of font contexts.
3003 (draw_string): Double zooming eliminated, strange twiddle factor
3004 introduced (grumble). Close to working now, but there are still
3005 strange differences from font to font. In particular, some fonts
3006 really mess with the cursor and extents.
3008 * app/render_eps.c (export_eps):
3009 * app/diapsrenderer.c (dia_ps_renderer_finalize):
3010 Fixed file closing confusion, no longer dependent on PS/EPS.
3012 * app/diagram.c (diagram_place_down_selected)
3013 (diagram_place_up_selected): Now implemented.
3015 * lib/font.c (dia_font_init):
3017 Redesigned the font init/context pushing code. Start of fix for
3018 font name differences.
3020 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
3022 * app/sheets_dialog_callbacks.c: Fix a typo.
3024 2002-10-15 Hans Breuer <hans@breuer.org>
3026 * app/diapsrenderer.[hc] : (new files, old content :-)
3027 simple base class for post script rendering. Does neither
3028 use Pango/FT2 nor does it handle non latin1 characters.
3029 The fancy stuff which nowadays appears to be needed should
3030 probably be done in derived class(es)
3032 * app/makefile.msc app/Makefile.am : added new files
3034 * app/paginate_psrint.c : re-enabled and used as test
3035 for the simple ps renderer above.
3037 * app/render_eps.[hc] : ripped out common ps code and
3038 moved to DiaPsRenderer. The rest of the file is mostly
3039 disabled. And I don't understand enough of it to
3042 * app/diaepsrenderer.h : short lived, removed.
3044 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
3046 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
3047 as a plugin (thanks to Torben Nielsen).
3049 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
3051 * app/diaepsrenderer.h:
3053 * app/paginate_psprint.c:
3054 #ifdef'd out enough ps stuff to allow compile. Now we just need
3057 2002-10-12 Hans Breuer <hans@breuer.org>
3059 [last plug-in ported]
3061 * plug-ins/xfig/xfig-export.c : ported to new renderer api
3063 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
3064 scale color values to [0..1.0] to properly reconstruct
3067 * plug-ins/xfig/xfig-common.c : some cleaning
3069 2002-10-12 Hans Breuer <hans@breuer.org>
3071 [decrease inter-plug-in-dependencies]
3073 * objects/custom/shape_info.[hc] : move parse_style()
3074 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
3075 the related structs and constants.
3076 * objects/custom/custom_object.c : reflect namespace
3079 * lib/dia_svg.[hc] : new files
3080 * lib/makefile.msc lib/Makefile.am : add new files
3081 * lib/libdia.def : updated externals
3083 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
3085 * plug-ins/svg/svg.c : enable svg import for win32 (and
3086 probably for other non ELF builds)
3088 * plug-ins/makefile.msc : enable svg import
3090 2002-10-11 Hans Breuer <hans@breuer.org>
3092 * plug-ins/metapost/render_metapost.[hc] : ported
3094 * plug-ins/pstricks/render_pstricks.[hc] : dito
3096 2002-10-11 Hans Breuer <hans@breuer.org>
3098 * plug-ins/cgm/cgm.c : ported, appears to work as before,
3099 but graphic apps available to me can't import the generated
3100 files (the could not with Dia-0.90 cgm as well) ...
3102 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
3103 Removed all those function which did emulate 'complex'
3104 drawing ops with basic ones (e.g. rect by line) cause this
3105 stuff is already provided by the base class
3106 * plug-ins/dxf/dxf-import.c : removed render.h include
3108 * plug-ins/python/pydia-font.[hc]
3109 plug-ins/python/pydia-text.c : finally ported to new font api
3111 * plug-ins/python/pydia-layer.c : add extra parameter
3112 to layer_find_closest_connectionpoint()
3114 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
3116 * plug-ins/python/python.c : added missing copyright notice
3118 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
3119 actually use the renderers set_font implementation
3121 * plug-ins/renderer.inc : unused now, removed
3122 * plug-ins/Makefile.am : reflect it
3124 2002-10-08 Hans Breuer <hans@breuer.org>
3126 * app/render_gdk.c : don't add the InteractiveRenderer
3127 interface multiple times (it's added to the type, not
3129 * app/render_libart.c : dito. It's currently added
3130 unconditional cause eport_png uses it, but claims
3131 to be non-interactive. Probably set_size should be moved
3132 to the DiaRenderer interface.
3134 * lib/dialibartrenderer.c : add implementations for
3135 get_<width|height>_pixels. Libart rendering works again.
3136 DiaLibartRenderer::draw_image : use dia_image_rowstride()
3139 * lib/diatransform.c(dia_transform_coords_double) :
3140 don't ROUND() the returned values
3142 * plug-ins/pixbuf/pixbuf.c : added import function. It
3143 simply creates a wrapping "Standard - Image" object.
3145 * plug-ins/shape/shape-export.c : use the more direct
3146 method to call base class methods
3148 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
3150 * lib/font.c (dia_font_init): Changed dia_font_init to return old
3151 pango context, to allow stacked contexts (for printing while
3160 * lib/connectionpoint.h
3163 * lib/diagdkrenderer.h
3165 * lib/dialibartrenderer.h
3168 * lib/diasvgrenderer.h
3169 * lib/diatransform.h
3176 * lib/neworth_conn.h
3191 Moved all externally visible struct typedefs into diatypes.h, as
3192 per Hans' suggestions.
3194 2002-10-07 Steffen Macke <sdteffen@web.de>
3196 * lib/Makefile.am: removed a '\' causing problems
3198 2002-10-07 Hans Breuer <hans@breuer.org>
3200 [Libart Renderer resurrected; almost it's compiling but
3201 almost instantly crashing :-]
3203 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
3204 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
3205 * lib/diatransform.[hc] : added dia_transform_coords_double()
3207 * app/display.c : the right parameters for new_renderer_libart()
3208 * app/export_png.c : ported, removed the blind Display hack
3210 * app/makefile.msc lib/makefile.msc
3211 lib/Makefile.am : updated
3213 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
3215 2002-10-06 Hans Breuer <hans@breuer.org>
3217 * plug-ins/pixbuf/pixbuf.c : (new file)
3218 there is a new export plug-in called 'Pixbuf' which uses
3219 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
3220 formats (currently only PNG and JPEG).
3222 2002-10-06 Hans Breuer <hans@breuer.org>
3225 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
3227 * lib/dia-enums.h lib/diatransform.[hc]
3228 lib/diarenderer.[hc] lib/diainteractiverenderer.c
3229 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
3232 * lib/makefile.msc lib/makefile.am : added new files
3234 * lib/plug-ins.c : g_module_error() returns a locale
3235 string, convert to utf8 before further usage
3237 * lib/render.h : #error out. Everything including this
3239 * lib/*.[hc] : ported to new renderer api
3241 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
3242 just to make the rest compile
3243 * app/render_eps.c : temporary disabled all of this
3244 * app/render_eps.h : removed RendererEPS
3246 * app/render_gdk.[hc] : a small wrapper around the new
3247 DiaGdkRenderer form lib/*
3249 * app/render_libart.h : removed RenderLibart definition
3250 * app/render_libart.c : not yet ported to new DiaRenderer
3251 but having an implementation to untie form FT2 dependency
3252 at least on win32. It is using new Pango api form bug #94791
3254 * app/render_pixmap.[hc] : a small wrapper around the new
3255 DiaGdkRenderer form lib/*
3257 * app/display.h : removed render_*.h includes
3258 * app/display.c : the only place where specific
3259 renderers need to be known
3261 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
3262 use new DiaInteractiveRenderer interface
3264 * app/*.c : ported to new renderer api
3265 * object/*/*.c : ported to new renderer api
3266 s/render.h/diarenderer.h/
3267 s/Renderer/DiaRenderer/
3268 s/renderer->ops/renderer_ops/
3269 add in every draw method:
3270 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
3272 * plug-ins/hpgl/hpgl.c :
3273 plug-ins/wmf/wmf.cpp
3274 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
3275 * plug-ins/shape/shape-export.c
3276 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
3277 (nice how small these files became :-)
3279 2002-09-28 Hans Breuer <hans@breuer.org>
3281 * */makefile.msc : updated
3283 * app/defaults.c : don't gdk_invalidate_rect(NULL)
3284 * app/disp_callbacks.c :
3285 can't cast GtkWindow to GdkWindow, use shell->window
3286 (ddisplay_unrealize) don't use already unrefed im_context
3288 can't cast from GtkMenu to GtkMenuItem
3289 (ddisp_destroy) : mark im_context as unrefed
3291 * lib/dia_xml (data_font) : prefer new font format over old one
3292 (data_add_font) : write the legacy name to allow file exchange
3293 with pre Pango versions of Dia, which would otherwise crash
3294 on missing font 'name' attribute.
3295 * lib/font.c (dia_font_get_legacy_name) : improved implementation
3296 to get a better match.
3298 * lib/libdia.def : updated
3300 * lib/messages.c : don't gdk_widget_show(NULL)
3302 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
3304 [make Dia compile, link _and_ work with mingw/gcc3.2]
3306 * config.h.win32 : #define LIBXML, this gets defined from libxml
3307 header but only for _MSC_VER. The mingw build did access an
3308 unitialized function pointer for xmlFree.
3310 * */makefile.mingw : updated (some plug-ins have build issues)
3312 * lib/handle.h lib/object.h : there appears to be no
3313 forward declaration of the form
3314 typedef enum _HandleId HandleId
3315 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
3316 use of enum `_HandleId' without previous declaration
3318 * app/paginate_gdiprint.cpp : added a hack to avoid g++
3319 naming conflict on 'export'
3321 * app/paginate_gdiprint.h : forward declare Diagram
3323 * objects/SADT/annotaion.c : use g_random_double()
3325 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
3327 * app/modify_tool.c: Made motion not happen until sufficiently
3328 large or past double-click interval, to avoid accidental moving
3329 when doubleclicking. Got the double-click time right, and fixed
3330 some issues with release. There are some corner cases that may
3331 exhibit strange behaviour, will look at those later. Nah, let's
3332 not care about those, they are rare and not dangerous.
3334 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
3336 * app/layer_dialog.c:
3338 * plug-ins/dxf/dxf-import.c:
3339 * plug-ins/python/pydia-diagram.c:
3340 * lib/diagramdata.c:
3341 * lib/diagramdata.h:
3342 Improved the consistency of the obj->parent_layer backlinks (esp.
3347 * lib/dynamic_obj.[ch] (NEW):
3350 * app/dynamic_refresh.[ch] (NEW):
3351 * objects/Misc/analog_clock.c:
3352 Added support for dynamic refresh (animated objects).
3354 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
3356 Patch from Owen Taylor <otaylor@redhat.com>:
3357 * doc/en/Makefile.am:
3358 * doc/en/dia-manual.sgml:
3359 * doc/en/usage-objects.sgml:
3360 * doc/en/usage-quickstart.sgml:
3361 * doc/pl/Makefile.am:
3362 * doc/pl/dia-manual.sgml:
3363 * doc/pl/usage-objects.sgml:
3364 * doc/pl/usage-quickstart.sgml:
3366 - Change the DTD declration from an outdated GNOME one to a
3369 - Remove close tags for <graphics> which aren't allowed for
3372 - A hacky fix for a problem where some versions of db2html don't
3373 create *.css files. (If *.css doesn't match anything, then you get
3374 the global explicitely.)
3378 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
3380 * objects/custom/custom_object.c:
3381 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
3382 were never properly prepared for use when reloading a shape with
3383 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
3384 reporting the problem and coming up with a fix! (Closes: #93974)
3386 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
3387 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
3390 * app/display.c: updated menu item paths Alan's patch had moved.
3392 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
3393 load the sheet-provided icon (libpng versions mismatch, grrr.).
3396 * objects/Makefile.am:
3397 * objects/Misc/Makefile.am (NEW):
3398 * objects/Misc/libmisc.c (NEW):
3399 * objects/Misc/analog_clock.c (NEW):
3400 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
3401 * sheets/Misc.sheet.in: just a little experiment...
3403 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
3405 * plug-ins/xlst/Makefile.am: found a way to silence automake while
3406 not forcing everyone to build using libxslt.
3410 * lib/object_defaults.c:
3413 * lib/properties.[ch]:
3415 * objects/standard/box.c:
3416 * objects/UML/state_term.c:
3418 * objects/FS/flow-ortho.c:
3422 * app/diagram_tree.c:
3424 * app/disp_callbacks.c:
3427 * app/lineprops_area.c:
3429 * app/preferences.c:
3432 * app/sheets_dialog_callbacks.c:
3433 * plug-ins/xslt/xslt.c:
3434 * plug-ins/metapost/render_metapost.c:
3435 * plug-ins/xfig/xfig-export.c:
3436 * plug-ins/shape/shape-export.c:
3438 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
3439 unused variables, mostly)
3442 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
3444 * app/Makefile.am: modified run_dia.sh so that we recover the
3445 ability to run a debugger despite libtool's hacks.
3447 * plug-ins/dxf/Makefile.am:
3449 "make distcheck" fixes.
3451 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
3453 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
3454 <mfranzoni@madd.it>: Check for the type being NULL.
3456 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
3458 * app/render_eps.c (set_font): Re-tweaked font size for printing.
3460 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
3462 Patch from Angus Ainslie <angusa@deltatee.com>:
3463 * plug-ins/dxf/dxf-import.c:
3464 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
3466 (plus a couple extra fixes by me, such as the removal of printf's,
3467 adapting for recent changes, and killed a couple warnings)
3469 * app/authors.h: a 60K patch isn't insignificant, is it?
3471 2002-09-09 Tor Lillqvist <tml@iki.fi>
3473 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
3474 as before) and -lfreetype (using AC_CHECK_LIB). At least on
3475 Solaris with Sun's compiler (Forte C), you need to link also the
3476 dia application with -lfreetype, even if it is implicitly linked
3477 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
3478 which is what they actually mean. Use FREETYPE_LIBS for
3481 Don't look for libsunmath if isinf() is not found in math.h (as on
3482 Solaris). The sunmath library is part of Forte C and not present
3483 on all machines. Besides, even if isinf was found in libsunmath,
3484 we didn't use it in the Makefile.am.
3486 Fix a couple of bashisms.
3488 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
3489 too, on Solaris with Forte C.
3491 Don't try to use the gcc flags with other compilers.
3492 DIA_CHECK_CFLAG gives a false indication that Forte C understands
3493 the gcc -f switches, but in fact they get interpreted meaning
3494 something completely different.
3496 Define the automake conditional HAVE_CGC.
3498 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
3500 Use -export-dynamic only with gcc.
3503 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
3504 PANGOFT2_CFLAGS rename.
3506 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
3508 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
3511 * lib/paper.c: Workaround for gccism: Can't use inline this way with
3514 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
3516 * lib/text.c(set_string): fixed a memory leak (char* ain't no
3517 std::auto_ptr<char> !).
3520 * app/interface.[ch]:
3521 * app/ddisp_callbacks.[ch]: Added some basic support for input
3522 methods (GtkIMContext-based)
3525 * app/Makefile.am: made libdia a shared object (per Tor
3526 Lillqvist's suggestion/request), to cope for platforms with a less
3527 than par dynamic library loader.
3529 * app/display.c: disabled the input method menu (I really don't
3530 see where and how to put them. Blame Frozen Bubble )
3532 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
3534 * objects/flowchart/box.c (box_update_data): Made resizing
3535 possible again (only set width & height when resized too small).
3537 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
3539 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
3542 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
3544 * app/authors.h: now showing Akira TAGOH's name in the native script.
3546 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
3548 * plug-ins/xslt/xslt.c: Removed glib warning for unset
3551 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
3553 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
3554 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
3557 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
3559 * objects/UML/class.c: Fixed showing of empty stereotypes and got
3560 the string placed correctly.
3562 2002-08-30 Hans Breuer <hans@breuer.org>
3564 * lib/font.c (dia_font_get_style) : don't shift already
3565 shifted DIA_FONT values.
3567 * lib/libdia.def : updated externals
3569 * app/disp_callbacks.c : on win32 GdkEventKey::string already
3570 is in UTF-8. (Longterm this probably should be handled on the
3573 * app/command.[hc] app/display.[hc] app/menus.c : add code to
3574 switch display renderers again. The libart renderer is very
3575 useful for win9x with it's limited GDI.
3577 * app/render_gdk.c : use g_warning instead of printf which gets
3578 nowhere on win32 (non console apps)
3580 * app/render_libart.c : make it compile without FREETYPE
3582 * objects/makefile.msc plug-ins/makefile.msc : added clean target
3584 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
3586 * app/render_eps.c (postscript_draw_contour): Debugging statement
3587 that allowed me to figure out font problems.
3589 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
3590 items for font styles.
3592 * objects/FS/flow-poly.c:
3593 * objects/FS/flow-ortho.c:
3594 * objects/FS/flow.c: Further conversion away from GTK dialogs.
3595 Can't set a default label right now:(
3597 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
3599 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
3600 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
3602 * Makefile.am: rules relating to AUTHORS and THANKS
3604 * AUTHORS: file content changed to more accurately
3605 reflect guideline requirements.
3606 * TODO: warning added about Gnome BTS.
3607 * KNOWN_BUGS: warning added about Gnome BTS.
3611 * AUTHORS: added full copyright info.
3612 * mkauthors-placeholder: (removed)
3614 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
3616 * app/paginate_psprint.c (print_page): Fixed text printing after
3617 tip from Dov Grobgeld.
3619 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
3621 * app/paginate_psprint.c (print_page): Fixed color of clip
3624 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
3626 * sheets/Makefile.am: enabled intltool-merge translation cache for
3630 * mkauthors-placeholder:
3631 * AUTHORS: revived that file (in a placeholder form) so that
3632 automake stops yelling.
3633 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
3636 Heh, by the way, thanks Christophe. I feel better now.
3638 2002-08-25 Christophe Merlet <christophe@merlet.net>
3640 * app/command.c: Removed invalid multibyte sequence in Chepelov.
3642 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
3644 * lib/dia_image.c (dia_image_rgb_data):
3645 Bugfixes in image data retrieval.
3647 * app/render_eps.c: Refactoring of new_*_renderer.
3649 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
3653 * lib/dia_image.c: Support for rowstride != width (odd width images)
3655 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
3657 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
3658 * plug-ins/xfig/xfig-import.c: Removed assertion.
3660 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
3662 * lib/paper.c: Removed app/preferences.h reference.
3664 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
3666 * plug-ins/svg/svg-import.c:
3667 * plug-ins/xfig/xfig-import.c:
3668 * lib/Makefile.am (libdia_a_SOURCES):
3669 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
3671 * objects/standard/create.h:
3672 * objects/standard/polygon.c (polygon_create):
3673 * objects/standard/polyline.c (polyline_create):
3674 * objects/standard/beziergon.c (beziergon_create):
3675 * objects/standard/bezier.c (bezierline_create):
3676 Moving create.h into lib.
3678 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
3680 * app/render_libart.[ch]: Work on PNG font export. Something's
3681 still fishy with the scaling, I don't get it.
3684 * app/interface.c: Replaced broken zoom combo with entry+menu.
3685 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
3687 * app/render_gdk.c (get_text_width): Checks for validity of text.
3688 Temporary help while debugging input -- should only activate on
3691 * objects/SADT/annotation.c:
3692 * objects/GRAFCET/transition.c:
3693 * objects/FS/function.c: Removal of gtk.h include.
3695 * objects/UML/state.c (state_load): Warnings about using State
3696 object for initial/final states.
3698 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
3700 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
3702 * app/render_eps.c: Text rendering that scales correctly. Too bad
3703 the standard fonts don't get selected right.
3705 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
3707 * lib/diagramdata.h:
3708 * lib/paper.c (get_paper_info):
3710 * plug-ins/xfig/xfig-import.c:
3711 Committed before testing. I am so embarrased. This compiles, now
3712 that the includes are in the right order.
3714 * app/diagram.c (diagram_init):
3715 * app/app_procs.c (do_convert):
3716 * app/preferences.h:
3717 * lib/diagramdata.h:
3718 * lib/diagramdata.c (new_diagram_data):
3720 * lib/paper.c (get_paper_info):
3721 Moved new_diagram part of prefs into lib/diagramdata.h. More
3722 could be done in new_diagram_data() now.
3724 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
3726 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
3728 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
3730 * configure.in: removed silly user-visible comment
3732 (actually, this is a dummy entry before I manually run nemo; for
3733 some dist-upgrade related reason, this morning's run aborted before
3734 the snapshots were created)
3736 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
3738 * objects/network/wanlink.c:
3739 * objects/network/bus.c:
3742 * objects/custom/custom_object.c:
3743 * objects/network/wanlink.c:
3744 * objects/flowchart/parallelogram.c:
3745 * objects/flowchart/ellipse.c:
3746 * objects/flowchart/diamond.c:
3747 * objects/flowchart/box.c:
3748 Removed GTK defaults stuff.
3750 * objects/UML/fork.c:
3751 * objects/UML/object.c:
3752 * objects/UML/lifeline.c:
3753 * objects/UML/branch.c:
3754 * objects/GRAFCET/transition.c:
3755 * objects/FS/function.c: Removed GTK include.
3757 * objects/FS/flow-ortho.c:
3758 * objects/FS/flow.c: Made the label behave again.
3759 Also removed GTK defaults stuff.
3761 2002-08-06 Hans Breuer <hans@breuer.org>
3763 * app/autosave.c : ported to GDir which is the improved
3764 cross platform replacement for <dirent.h>
3766 * app/makefile.msc : build autosave.obj
3768 * app/font.c : some (bad?) code calls
3769 dia_font_scaled_decent() not only with empty string but
3770 with NULL. Handle it gracefully.
3772 * lib/paper.c : don't depend on ../app. Although IMO
3773 this shouldn't be allowed on any platform it is only
3774 disabled for win32, where it simply doesn't work
3777 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
3779 * objects/fs/flow.c : conditionalize debug spew, disabled
3780 and 'ported' to use g_print. Simple printf won't work with
3781 standard win32 gui apps, may even crash them.
3783 * plug-ins/makefile.msc : DISABLED svg-import cause it
3784 depends on ../objects/custom. This not only break the
3785 build for all non ELF systems but IMO also isn't acceptable
3786 from a design point of view. See dia-list mail on subject.
3788 * plug-ins/python/makefile.msc :
3789 plug-ins/python/python.c : remove all references to dirent
3791 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
3793 * configure.in: added ro to ALL_LINGUAS
3797 * ../translation-graphs/transgraph.py: added support for fuzzy
3798 translations. Enlarged the graphs.
3800 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
3802 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
3803 key events according to locale. No clue if this works for
3806 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
3808 * lib/text.c: Various UTF8 related fixes, in particular in
3809 deleting. Text_insert_char is fine, far as I can tell.
3811 * app/interface.c (create_display_shell):
3812 * app/commands.c: Now uses gtk_clipboard functions, for they are
3813 much simpler. Also handles Win32 clipboard. Non-ascii chars
3814 don't seem to get handled correctly by text_insert_char in
3817 * app/commands.c (received_selection_handler): Got utf8 handling
3818 on paste, and individual char handling out of commands.c. Pasting
3819 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
3821 * lib/message.c (gtk_message_internal): Message dialog re-shown
3822 when new message appears. Maybe it should even move to top?
3826 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
3827 (again) and case-insensitive.
3829 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
3832 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
3834 * app/commands.c (edit_cut_text_callback):
3835 * lib/text.c (text_delete_all): Now functioning undo for text cut.
3837 * app/commands.c (edit_cut_text_callback): Now removes text.
3838 Undo is broken, though.
3840 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
3842 * app/diagram.c (diagram_update_menu_sensitivity):
3843 Making cut_text active.
3846 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
3847 clipboard. Also removed AA callback.
3849 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
3851 * objects/chronogram/chronoref.c:
3852 * objects/chronogram/chronoline.c:
3853 * objects/SADT/annotation.c:
3854 * objects/SADT/arrow.c:
3855 * objects/SADT/box.c:
3856 * objects/GRAFCET/vergent.c:
3857 * objects/GRAFCET/vector.c:
3858 * objects/GRAFCET/step.c:
3859 * objects/GRAFCET/condition.c:
3860 * objects/GRAFCET/action.c:
3861 * objects/ER/participation.c:
3862 * objects/ER/relationship.c:
3863 * objects/ER/entity.c:
3864 * objects/ER/attribute.c:
3865 Removing unnecessary GTK references.
3867 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
3869 * objects/standard/image.c:
3870 * objects/standard/textobj.c:
3871 * objects/standard/ellipse.c:
3872 * objects/standard/polygon.c:
3873 * objects/standard/beziergon.c:
3874 * objects/standard/box.c:
3875 Making default default properties.
3877 * objects/standard/image.c:
3878 * objects/standard/arc.c:
3879 * objects/standard/box.c:
3880 * objects/standard/zigzagline.c:
3881 * objects/standard/polyline.c:
3882 * objects/standard/line.c:
3883 * objects/standard/ellipse.c:
3884 * objects/standard/polygon.c:
3885 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
3887 * lib/object_defaults.c (dia_object_default_create):
3890 * lib/object.c (object_copy_using_properties):
3891 * lib/propdialogs.c:
3892 * lib/propinternals.h:
3893 * lib/propobject.c (object_create_props_dialog)
3894 (object_copy_props):
3895 Removing the standard (toolbox) properties from defaults dialogs.
3897 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
3899 * lib/font.c (dia_font_scaled_string_width)
3900 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
3902 * lib/text.c (text_calc_boundingbox): Take descent into account.
3904 * objects/standard/bezier.c (bezierline_draw):
3905 * lib/render.c (draw_bezier_with_arrows):
3906 Better arrow drawing for beziers. Doesn't change the mouse-click
3909 * lib/arrows.h: Some const-ness.
3911 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
3913 * lib/render.c (draw_arc_with_arrows):
3914 * objects/standard/arc.c (arc_draw): Better arrow drawing for
3915 arcs. Doesn't change the mouse-click area yet.
3917 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
3923 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
3925 * app/group.c (group_draw): Forgotten commit: Groups to draw as
3926 objects (using default routines).
3930 * lib/diagramdata.h:
3931 * lib/diagramdata.c (layer_find_closest_connectionpoint):
3932 * objects/standard/zigzagline.c (zigzagline_move_handle):
3933 * app/diagram.c (diagram_find_closest_connectionpoint):
3934 * plug-ins/python/pydia-diagram.c
3935 (PyDiaDiagram_FindClosestConnectionPoint):
3936 * app/object_ops.c (object_connect_display)
3937 (object_find_connectpoint_display)
3938 * app/create_object.c (create_object_button_press)
3939 (create_object_motion):
3940 * app/modify_tool.c (modify_motion):
3941 Adding object param to allow connectionpoint and handle coinciding.
3943 * objects/standard/zigzagline.c (zigzagline_check_orientation):
3944 Fixing minor problems.
3946 * objects/standard/ellipse.c (ellipse_update_data):
3947 Added direction hints.
3949 * lib/diagramdata.c:
3952 * lib/diagramdata.h:
3953 * objects/standard/zigzagline.c:
3954 First working example of zigzagline hints, currently only between
3957 2002-07-27 Steffen Macke <sdteffen@web.de>
3959 * plug-ins/svg/render_svg.c: added support for rounded
3960 rectangles (fixes #69053 if compile with
3962 * object/custom/shape_info.[c|h]: made parse_style and
3963 parse_path accessible for svg plug-in
3964 * plug-ins/svg/Makefile.am:
3965 * plug-ins/svg/svg.c:
3966 * plug-ins/svg/svg-import.c(new): added SVG import filter
3968 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
3970 * objects/standard/box.c:
3971 * objects/standard/zigzagline.c (zigzagline_move):
3972 More work on zigzagline hints.
3974 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
3975 * lib/connectionpoint.h:
3976 Hints for zigzaglines.
3978 * app/properties.c (properties_show):
3979 * app/defaults.c (defaults_show):
3981 * lib/propobject.c (object_create_props_dialog):
3983 * objects/FS/flow-poly.c:
3984 * objects/network/wanlink.c:
3985 * objects/network/bus.c:
3986 * objects/UML/class.h:
3987 * objects/UML/class_dialog.c:
3988 * objects/UML/association.c:
3989 Start of removing toolbox props from props dialogs.
3993 * app/lineprops_area.c (dia_arrow_chooser_new):
3994 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
3996 * app/create_object.c:
3997 * app/modify_tool.c:
4002 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
4004 * app/preferences.c:
4006 * app/diapagelayout.c:
4007 New prefs selector kind PREF_CHOICE chooses between a list of
4008 strings. Used for picking default paper.
4010 * app/preferences.c (prefs_data):
4011 * lib/paper.c (get_paper_info): Added prefs setting for
4014 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
4015 line segments at the ends (bug #86603).
4017 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
4019 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
4020 #60324: Now calls update_data after copy.
4022 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
4023 Now doesn't steal selection from non-object tools.
4025 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
4027 * app/commands.c (help_manual_callback): Uses BROWSER environment
4028 variable when available.
4030 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
4032 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
4033 object from the new sheet when changing.
4035 * app/app_procs.c (app_init): Uses more standard size icon, from
4036 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
4038 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
4040 * objects/UML/implements.c (implements_update_data):
4041 * objects/UML/realizes.c (realizes_update_data):
4042 * objects/UML/dependency.c (dependency_update_data):
4043 Test for null strings before calling on ascent.
4045 * objects/UML/realizes.c (realizes_draw):
4046 * objects/UML/message.c (message_draw):
4047 * objects/UML/generalization.c (generalization_draw):
4048 * objects/UML/dependency.c (dependency_draw)
4049 * objects/UML/constraint.c (constraint_draw):
4050 * objects/GRAFCET/condition.c (condition_draw):
4051 * objects/UML/association.c (association_draw):
4052 * objects/FS/flow-ortho.c (orthflow_draw):
4053 * objects/FS/flow.c (flow_draw): Change to use
4054 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
4057 * lib/arrows.c (calculate_arrow_point):
4060 * objects/standard/zigzagline.c:
4061 * objects/standard/polyline.c:
4062 * objects/standard/line.c: Work towards better arrow drawing.
4064 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
4066 * objects/UML/state.c: Starting phase-out of State object as
4067 initial/final state (which never worked right).
4069 * app/app_procs.c (app_init): --version command line option for
4072 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
4074 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
4076 * app/render_eps.c: Removed debugging info.
4078 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
4079 Kludge to make ascent and descent work for empty strings. Won't
4080 work when using non-ASCII fonts. Better would be to get a
4081 PangoFont and ask directly.
4083 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
4086 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
4089 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
4091 * plug-ins/xfig/xfig-export.c: First use of draw_object render
4092 function: All shapes are now groups in XFig export.
4094 * lib/diagramdata.c (normal_render):
4097 * app/display.c (ddisplay_obj_render):
4098 New render function for drawing objects, allows renderers to group
4099 or otherwise specially handle objects. We may want to reconsider
4100 calling it in app/display.c, as we 'know' the object draw function
4101 is the default one there.
4103 * lib/Makefile.am: Removed extra \ that broke stuff.
4105 * plug-ins/xfig/xfig-import.c:
4106 Spline import for xfig. Not perfect.
4108 * objects/standard/create.h:
4109 * objects/standard/bezier.c (bezierline_create):
4110 * lib/bezier_conn.c:
4111 * lib/beziershape.c (beziershape_set_points):
4112 * lib/bezier_conn.h:
4113 * lib/beziershape.h:
4114 Support for creating beziers non-interactively.
4116 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
4118 * plug-ins/xfig/xfig-import.c: Support for polygons and
4119 polylines. Special warning handling system removed.
4121 * lib/message.c (gtk_message_internal): Fixed bug involving
4122 closing message window and then getting repeated message.
4126 * configure.in (GETTEXT_PACKAGE):
4127 Update based on bug #88199. Hopefully this doesn't break too much
4130 * dia.desktop.in (_Comment): Changed after suggestion from
4131 calum.benson@ireland.sun.com (bug 88345)
4133 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
4134 <loli@unsa.edu.ar> that makes user/system distinction better.
4136 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
4138 * app/render_libart.c: Got the context right, removed crashes.
4148 Remove libart #defines from most places (still around for png export).
4150 * app/render_libart.h:
4151 * app/render_libart.c:
4152 * configure.in (HAVE_LIBART):
4153 Starting on update of libart stuff for png export (without X).
4155 * app/autosave.h (autosave_check_autosave):
4158 * app/Makefile.am (dia_core_files):
4160 * app/diagram.c (diagram_set_modified):
4162 * app/app_procs.c (app_init):
4163 Autosave support. No automatic restore yet.
4165 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
4167 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
4170 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
4172 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
4174 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
4176 * Fix for 'make dist' etc. --- problem caused by
4177 previous AUTHORS patch.
4179 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
4181 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
4183 (set_font): NULL check.
4185 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
4187 * app/disp_callbacks.c:
4189 Addition to the object menus allows check menu items.
4191 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
4193 * HACKING: completely changed to bring up-to-date.
4194 * AUTHORS: file needs REMOVING from CVS as now
4195 dynamically generated.
4196 * app/authors.h: split into subcategories for original
4197 authors, maintainers, etc.
4198 * app/app_procs.c: --credits rewritten to support new
4200 * app/commands.c: no changes to about box code, comment
4202 * Makefile.am: added rule for AUTHORS. I'm still
4203 inexperienced with automake, it seems to work, but
4204 for AUTHORS-related bugs, look at this change first.
4206 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
4208 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
4209 work. Back to including xslt dir always.
4211 * objects/UML/uml.c:
4212 * objects/UML/class.h:
4213 * objects/UML/class_dialog.c:
4214 * objects/UML/class.c: Patch from
4215 <mattam@netcourrier.com>: Adds comment visibility switch, also
4218 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
4219 for state/fork/activity stuff.
4220 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
4221 * objects/UML/Makefile.am:
4222 * objects/UML/uml.c:
4223 * sheets/UML.sheet.in: Added new objects activity, fork,
4225 * objects/UML/pixmaps/state_term.xpm:
4226 * objects/UML/state_term.c: New, only initial/final states.
4227 * objects/UML/pixmaps/activity.xpm:
4228 * objects/UML/activity.c: New, activity state.
4229 * objects/UML/pixmaps/fork.xpm:
4230 * objects/UML/fork.c: New, fork/join bar.
4231 * objects/UML/pixmaps/state.xpm: state icon.
4235 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
4236 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
4239 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
4241 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
4244 * app/Makefile.am: Commented out the diaconv parts while it's not
4245 used anyway. To come back later.
4247 * configure.in (HAVE_FREETYPE):
4250 * app/render_eps.c: Support for printing with freetype, better
4251 encapsulated now. Renders the text nicely, but ignores font
4252 setting. Requires pangoft2 to get the font outline, but non-text
4253 objects can still be rendered without it.
4256 * app/commands.c (objects_place_up_callback)
4257 (objects_place_down_callback):
4259 * app/diagram.c (diagram_place_down_selected)
4260 (diagram_place_up_selected): Starting support for moving objects
4263 * app/menus.c: Removed character/numeral shortcuts.
4265 2002-07-06 Hans Breuer <hans@breuer.org>
4267 * makefile.am app/makefile.am lib/makefile.am
4268 objects/makefile.am plug-ins/makefile.am
4269 plug-ins/python/makefile.am :
4270 added required files for win32 build to EXTRA_DIST
4272 * app/paginate_psprint.c app/render_eps.c
4274 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
4275 on Pango as currently is on win32 => no PostScript
4278 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
4279 use '/* noop */;' for empty case labels; replace
4280 debug spew printf with g_print which is guaranteed
4281 to work on win32, too.
4283 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
4284 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
4285 in the pango_font_description_set_weight() api documentation
4286 Take care for them in dia_font_get_style() too.
4288 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
4289 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
4290 rename Obliquity to Slant which appears to be the usual name,
4291 also rename dia_font_get_style_string -> dia_font_get_slant_string
4293 * plug-ins/wmf/wmf.cpp : finally ported to new font api
4295 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
4297 * objects/uml/association.c class.c large_package.c message.c
4298 if g_free() is used g_strdup needs to be used.
4299 * objects/custom/shape_info.c
4300 objects/ER/attribute.c entity.c
4301 objects/standard/image.c
4302 app/sheets_dialog_callbacks.c : more strdup cleaning
4304 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
4306 * app/render_eps.c: Non-crashing printing (made the right
4307 context). Font output still fscked up.
4309 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
4311 * app/authors.h: Added file --- now master
4312 location for contributors data.
4313 * app/app_procs.c: Added --credits option.
4314 * app/commands.c: Modified about box to use
4317 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
4319 * app/render_eps.c: First stab at EPS rendering using the contour
4320 code from PAPS. Crashes.
4322 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
4324 * app/recent_files.c (recent_file_history_remove):
4325 Fixed call to g_list_delete_link discarding return value.
4327 * lib/widgets.c (dia_font_selector_set_styles):
4328 * lib/font.h (DiaFontWeight):
4329 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
4331 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
4333 Contribution from Alan Horkan <horkana@tcd.ie>:
4336 * sheets/Assorted.sheet:
4337 A set of 40 assorted geometric shapes.
4339 * sheets/Assorted.sheet.in:
4340 * sheets/Makefile.am
4341 * shapes/Assorted/Makefile.am:
4342 * shapes/Makefile.am:
4345 Done the integration job of Alan's shapes. (Translators: have fun!)
4347 * po/dia.pot: refreshed the main potfile.
4349 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
4351 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
4353 * objects/UML/class.[ch]:
4354 * objects/UML/class_dialog.c:
4355 changed the number of connection points from a hardcoded value of
4356 8 to a #defined constant
4358 (I changed the constant back from 20 to 8, until we better know
4359 how we'll handle more connection points on the UML class in the
4360 future -- but Tim's patch is a welcome clean-up).
4362 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
4364 * shapes/MSE/demultiplexer.xpm:
4365 * shapes/MSE/node_center.xpm:
4366 * shapes/MSE/multiplexer.xpm:
4367 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
4368 Horkan <horkana@tcd.ie>
4370 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
4372 * lib/widgets.c: Total rehash of font selector, with font dialog
4373 option, expanding list (not LRU yet), and stuff.
4375 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
4379 Added a set of new setter/getters, some of them more specially for
4382 * plug-ins/shape/shape-export.c: (new_shape_renderer),
4383 (destroy_shape_renderer), (set_font), (draw_string):
4384 * plug-ins/svg/render_svg.c: (new_svg_renderer),
4385 (destroy_svg_renderer), (set_font), (draw_string):
4387 Actually exported the font face, style, weight and size (sodipodi
4388 agrees with dia on how a small sample should look like (a sample
4389 0.90 would not even display anyways). Yay !)
4391 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
4393 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
4395 (end of ChangeLog-less patch)
4397 * objects/custom/shape_info.c (parse_style): now understands the
4398 font-style and font-weight attributes as well. Does not use
4399 anymore dia_font_new_from_legacy_name().
4401 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
4403 * objects/standard/textobj.c: Now uses stdprops for defaults.
4405 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
4406 * lib/font.c (dia_font_get_style): Style now linear and conversion
4409 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
4412 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
4414 * plug-ins/dxf/dxf-import.c:
4415 using dia_font_new_from_style()
4417 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
4419 * objects/UML/class.[ch]: Added a comment field to class
4420 * objects/UML/uml.[ch]: Added a comment field to attributes,
4421 operations and parameters.
4422 * objects/UML/class_dialog.c: Added code for the new comment
4424 * plug-ins/xslt/*.xsl: Added some code to handle comments.
4425 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
4426 Added a $directory parameter for stylesheets so the output is
4427 in the good place (not in the $PWD).
4431 * AUTHORS: added contributors, updated maintainers. Removed the
4432 specific areas of action.
4434 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
4435 from a patch by Xing Wang <quixon@gnuchina.org>:
4437 * app/commands.c: help_about_callback now supports
4438 new-style GNOME about box as well as old GTK style.
4439 code also tidied (Closes: #85726)
4443 * app/commands.c: fixed the copyright (it's not all FSF), and
4444 maintainers. Synced contributors list with AUTHORS.
4446 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
4448 * lib/message.c: More work on repeating messages, now with
4451 2002-06-24 Hans Breuer <hans@breuer.org>
4453 * lib/widget.c : some more bits in place, at least
4454 it does something useful instead of crashing. Much
4455 better - but not all ok :-)
4457 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
4459 * lib/message.c (gtk_message_internal): First stab at repeating
4462 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
4465 * objects/GRAFCET/*.c:
4467 * objects/UML/association.c: (one instance forgotten)
4468 * objects/UML/large_package.c:
4469 * objects/standard/textobj.c:
4472 using dia_font_new_from_style()
4474 2002-06-23 Hans Breuer <hans@breuer.org>
4476 * lib/font.c : giving some love to
4477 dia_font_new_from_legacy_name() that is making
4478 import of old files as painless as possible and
4479 provide an almost exact match where possible.
4480 It does not yet fully work because it interfers
4481 with the Style to DiaStyle conversion which comes
4484 [Changing these files is only allowed with Dia-0.90]
4485 * broken-files/fonts-0.90.dia : including the
4486 common hard-coded fonts from Dia-0.90. It also
4487 has drawn bounding-boxes for win32 as they were calculated
4488 from the former version (they were all too big).
4489 * broken-files/fonts-0.90-full.dia : all hardcoded
4490 fonts including the asian versions. On my machine
4491 this gives _a lot_ complaining about missing fonts
4492 and a finally a broken file display. Anyone having
4495 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
4497 * objects/chronogram/*.c:
4498 * objects/custom/custom_object.c:
4500 using dia_font_new_from_style()
4502 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
4504 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
4505 font selector (stability, insensitivity).
4507 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
4508 stretching scheme for tweaking, and made scaling scheme faster
4510 (dia_font_dia_style_to_pango): Oops, % != /.
4512 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
4515 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
4517 * plug-ins/xslt : Added an XSLT plugin to export dia files using
4518 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
4519 It includes a small config file to tell it what stylesheets to use.
4523 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
4524 GTK2.0/HIG compliant (the labels could be slightly more verbose,
4525 perhaps). Added back a couple forgotten _(). Removed //-style
4528 2002-06-23 Hans Breuer <hans@breuer.org>
4531 (dia_plugin_get_name) : don't crash plugin_manager
4533 (dia_plugin_load) : reuse the description field to
4534 store the error string if loading fails.
4536 * lib/font.[hc] : starting to beautify the new
4537 font api: proper namespacing, adding convenience
4538 functions like dia_font_new_from_style(), ...
4540 * objects/uml/*.c : use the new convenience functions.
4542 [Next thing I plan to do is changing the other font
4543 functions to take DiaStyle and make Style and
4544 BASIC_*_FONT vanish. As well as giving some love to
4545 dia_font_new_from_legacy_name().
4546 If anyone want's to help on converting the other
4547 objects to the new api during that, I would highly
4550 2002-06-23 Hans Breuer <hans@breuer.org>
4552 * lib/font.c : made it compile and small indent fixes.
4553 Is there a code-has-no-effect-so-needs-not-be-valid
4556 * lib/widgets.c : use g_strcasecmp
4558 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
4562 * lib/widgets.c: Font names sorted, style selector widget
4563 reappeared. Doesn't select the old style yet.
4565 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
4567 * lib/font.c: one who expects a text's font to be changed shall
4568 actually request the attributes to apply to the whole range of the
4571 * lib/font.c: extents computation was wrong.
4573 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
4574 if a last NULL parameter is added...
4576 * lib/font.c: extents computation was completely wrong. This looks
4577 much better this time.
4579 * objects/UML/class.c: fixed the various strings positions.
4581 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
4582 macros to get the hardcoded base fonts.
4584 * objects/ER/relationship.c: wasn't converted to DiaFont*
4586 2002-06-22 Hans Breuer <hans@breuer.org>
4588 * lib/widget.c : dont use backend specific functions
4589 to get on the font_families. Including it would mean
4590 including <windows.h> which breaks due to namespace
4593 * lib/libdia.def : updated externals
4595 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
4597 * lib/font.c : added empty dia_font_init_instance function,
4598 reformatting of dia_fon_unref to allow to set breakpoint,
4599 dia_fon_build_layout() : dont crash on string==NULL
4601 * lib/text.c (text_set_attributes) : don't unref the wrong font
4603 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
4604 stores lowercased font names, but dia_font_get_family()
4607 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
4610 * app/render_gdk.c: Patch from Hans Breuer.
4612 * app/Makefile.am (dia_core_files): diaconv commented out for now.
4614 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
4616 * lib/all files touched yesterday: took into account some of Hans
4618 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
4620 * objects/chronogram/*:
4623 * objects/flowchart/*:
4625 * objects/GRAFCET/*:
4627 * objects/standard/textobj.?:
4629 converted to the new DiaFonts.
4632 * plug-ins/pstricks/*:
4636 Made minimalistic conversions so that they'd at least compile.
4639 * app/render_pixmap.c:
4640 Converted to the new DiaFonts.
4645 made the minimal changes so that it would at least build.
4647 *** At this point, the thing builds on my machine, but segfaults
4650 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
4652 * configure.in: removed the backend-specific pango pkg_modules
4653 (trivial to add back if needed, when actually needed)
4656 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
4657 renderer. The APIs will have completely changed when we get around
4658 to redo a renderer for it, anyways.
4660 * font.[ch]: rewrote everything from scratch, with a Pango
4661 implementation. Normally, only backend-neutral things should go in
4664 **WARNING**: new rules for managing DiaFont* pointers: these are
4665 reference-counted GObjects. One >must< diafont_ref() and
4666 diafont_unref() as appropriate. I wish I could overload operator=()...
4668 lib/plug-ins.h: bumped up the plug-in API.
4673 lib/object_defaults:
4674 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
4675 again tomorrow with GObject.
4677 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
4679 **** The rest of the tree should be updated as well ****
4681 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
4685 * app/render_pixmap.c:
4686 * app/render_pixmap.h:
4687 * app/render_libart.h:
4688 * app/render_libart.c:
4690 * lib/font.c: Removed freetype stuff (still around in
4691 lib/widgets.c 'cause we might want the font selector widget).
4693 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
4695 * shapes/network/laptop.(xml|shape):
4696 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
4697 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
4699 2002-06-17 Hans Breuer <hans@breuer.org>
4701 * lib/object_defaults.c : #include <libxml/tree.h> not
4702 <tree.h> pointed out by Xing Wang
4704 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
4706 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
4708 * app/color_area.c: Update to
4709 gtk_color_selection_*_current_color() fixed bad crash issues, plus
4710 updated color conversions.
4712 * sheets/ER/weakentity.xpm: Accepted patch from
4713 quixon@gnuchina.org to make icon match actual appearance.
4715 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
4716 quixon@gnuchina.org.
4718 2002-06-16 Hans Breuer <hans@breuer.org>
4720 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
4721 good tradition of information hiding. Add new function
4722 dia_plugin_get_symbol()
4723 * app/sheets.c app/sheets_dialog_callbacks.c : use it
4725 * app/sheets.c : stop complaining about object_get_type()
4726 returning NULL. This is a consequence of e.g. disabling
4727 plug-ins at runtime _and_ it was and is gracefully handled.
4728 Spitting out g_warning for it isn't appropriate.
4730 * lib/object.[ch] : removed dead code
4732 * app/plugin-mangager.c : almost complete rewrite for gtk2
4733 using GtkListStore/GtkTreeView
4735 * lib/libdia.def : updated externals
4737 * todo.gtk2 : updated, that is removed already done steps
4739 2002-06-15 Hans Breuer <hans@breuer.org>
4741 * objects/uml/class_dialog.c : clean some left-over
4742 utf8-mess, return 0 from "focus_out_event" handlers
4743 to avoid asserting in gtk (#78305). Reconstruct
4744 stereotype/NULL behaviour to avoid rendering empty
4745 stereotypes on classes and member functions
4747 [#56109 - Provide object defaults for StdProp objects,
4748 some remaining issues are discussed in bugzilla]
4750 * lib/object_defaults.c : (new file) manage default properties
4751 of dia objects. The serialization is done with standard
4752 object methods in a diagram compatible format.
4754 * lib/object.c : add object_registry_foreach() which allows
4755 to iterate over all registered object types
4757 * lib/object.h : added prototypes object_default*() and
4758 object_registry_foreach()
4760 * lib/makefile.am lib/makefile.msc : add new file to build
4762 * lib/libdia.def : export new functions
4764 * app/defaults.c : provide StdProp based defaults if the
4765 ObjectType doesn't implement it's own default functions
4767 * app/create_object.c : through dia_object_default_create()
4768 * app/disp_callbacks.c : same here
4770 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
4772 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
4773 sensitivity for deleting segments.
4775 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
4777 * app/color_area.c: (color_area_events):
4778 * app/diagram.c: (diagram_destroy):
4779 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
4781 * app/load_save.c: (diagram_data_load):
4782 * app/menus.c: (menus_get_item_from_path):
4783 * app/preferences.c: (prefs_load):
4784 * app/render_gdk.c: (get_text_width):
4786 * lib/color.c: (color_convert):
4787 * lib/dia_dirs.c: (dia_config_filename):
4788 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
4789 * lib/intl.c: (intl_get_language_list):
4790 * lib/message.c: (message):
4792 * lib/paper.c: (get_default_paper):
4793 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
4794 * lib/widgets.c: (dia_file_selector_get_file):
4796 * objects/standard/image.c: (get_directory):
4800 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
4802 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
4804 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
4806 * app/interface.c: sscanf now returns EOF on empty string, so
4807 handle no match for zoom factor better => correct zoom at start.
4809 * app/sheets.c (create_object_pixmap): Tried to display empty error.
4810 (sheets_optionmenu_create): Died when not finding specified
4811 sheet. Don't think it should.
4813 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
4814 (bug #84367) to place the text better.
4816 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
4818 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
4820 * app/commands.c: Removed unnecessary gnome include. Removed
4821 GNOME-Print support.
4823 * app/menus.h: Removed now unnecessary gnome include.
4825 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
4826 GNOME-specific stock buttons
4828 2002-06-09 Hans Breuer <hans@breuer.org>
4830 * app/app_procs.c : convert 'Modified diagrams exits'
4831 dialog to use GtkMessageDialog. That gives us:
4832 - icons without Gnome dependency
4833 - much less code, also cross platform
4834 - improved useability ?
4836 * app/color_area.c : the Color Selection Widget looked
4837 quite wrong (alpha problems). Fix it by merging in required
4838 changes stolen from The Gimp cvs
4839 * app/color_area.h : to get the right appearance the maskes
4840 needed to be taken into account
4841 * app/interface.c : adapt to color_area_create changes.
4842 Also remove some dead code and finally remove cvs autexpansion,
4843 I was bothered enough by irrelevant differences :-)
4845 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
4846 api, i.e stocks and response to make the GnomeDialog usage
4847 obsolete. Also fixed the issue with closing the 'parent'
4848 before closing the dialog
4850 * app/display.[ch] : removed some dead code and conversion
4851 to new GtkDialog api. Also trying to conform to new HIG
4852 standard http://developer.gnome.org/projects/gup/hig/
4854 2002-06-09 Hans Breuer <hans@breuer.org>
4856 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
4859 * lib/dia_image.c : gtk_widget_set_default_visual()
4860 remove. It does nothing with Gtk2.
4862 * lib/libdia.def : added ps_unicoder exports
4864 * lib/message.c : remove #GNOME use GtkMessageDialog.
4865 Yeah, Dia gets dialogs wit icons cross-platform.
4867 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
4868 to gtk_spin_button_get_value()
4870 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
4872 add #undef GTK_DISABLE_DEPRECATED to still use ...
4873 * lib/prop_text.c : ... GtkText
4874 * lib/prop_widgets.c : ... GtkList
4875 * lib/prop_dialogs.c : ... gtk_signal_connect and more
4876 * lib/widgets.c : ... (too much to list here)
4878 * lib/ps-utf8.c : #include <string.h>
4880 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
4883 * Makefile.am: Adapted for gtk2.
4884 Removed dependencies on libunicode, on iconv(), on langinfo().
4886 * acconfig.h: removed (now obsolete)
4888 * lib/charconv.[ch]: removed (superceded by glib)
4889 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
4891 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
4892 libunicode types for their glib counterparts. Fixed the include
4893 paths for libxml2. Removed all traces of libxml1 or non-UTF8
4894 support (there were remains in objects/uml).
4897 2002-06-08 Hans Breuer <hans@breuer.org>
4899 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
4900 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
4901 Also use g_strdup()'s handling of NULL by returning NULL
4902 again at all places I found (remove unnecessary if's)
4904 * todo.gtk2 : new file to keep notes about gtk2 porting,
4905 further issues and thoughts and some status information.
4906 Also sent to dia-list ('Dia goes Gtk2 ...').
4908 [make it compile with GTK+ 2.0]
4910 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
4911 removed definition of S_ISDIR, S_ISREG and getlogin
4913 * */makefile.msc : Use GTK2 and libxml2
4914 BEWARE: makefile.am, configure.in not yet ported !
4916 * app/app_procs.c app/diagram.c : remove
4917 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
4918 but set use gtk_menu_set_accel_path() on menu creation
4920 * app/color_area.c lib/widgets.c :
4921 make use of gtk_color_selection_set_has_palette ()
4923 * app/commands.c : gdk_pixbuf_new_from_file wants an
4924 extra argument. Convert from DIR to GDir usage.
4926 * app/diagram_tree.c(button_press_callback) : need to return
4927 FALSE in the signal handler to let gtk process it further.
4928 (get_object_name) : don't leak 'prop'
4930 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
4931 dia_page_layout_destroy() getting called more than once
4933 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
4936 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
4938 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
4939 IIRC this code will not compile unchanged when USE_XIM is defined ...
4941 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
4943 * app/interface.c : there is no widget->klass anymore in Gtk,
4944 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
4945 parameter. Some tweaking of GtkWrapBox usage to get four tools in
4947 switch off GTK's double buffering on Dia's canvas. Otherwise we would
4948 get triple buffering and flicker.
4949 Replace call to GTK private function _gtk_accel_group_attach()
4950 with public gtk_window_add_accel_group()
4952 * app/layer_dialog.c : adapt to GtkTypeInfo changes
4954 * app/load_save.c lib/plug-ins.c lib/sheet.c
4955 objects/custom/custom.c :
4956 simplified by using g_file_test()
4958 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
4959 to gtk_accel_map_<save|load>. Also added common stock-icons
4962 * app/preferences.c : use gtk_button_set_label() instead
4963 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
4965 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
4966 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
4969 * app/recent_files.c : removed GLIB_CHECK_VERSION
4972 plug-ins/metapost/render_metapost.c
4973 plug-ins/pstricks/render_pstricks.c
4974 plug-ins/svg/render_svg.c :
4975 replace getlogin() with g_get_user_name() which always
4978 * app/render_gdk.c : gdk_region_union_with_rect() modifies
4979 inplace now and returns nothing, also less #hell
4981 * app/render_libart.c : some initial #hell cleaning, SuckFont
4982 still needs to vanish
4984 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
4985 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
4987 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
4988 * app/sheets_dialog_callbacks.c : some #hell and adaptions
4989 needed to GtkWrapBox api changes
4992 * lib/charconv.[hc] : removed from build
4993 [changed appropriate]
4994 * lib/prop_inttypes.c lib/prop_text.c :
4996 * lib/text.c : ported from HEAD but keep original indent
4997 intact. Original was done by Akira TAGOH.
4999 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
5001 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
5003 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
5004 same on all platforms now!
5006 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
5008 * lib/message.c : remove "charconv.h"
5010 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
5013 * lib/sheet.c : convert from DIR to GDir usage
5015 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
5017 * lib/widgets.h : include gtk<label|colorseldialog>.h
5020 * objects/fs/flow.c :
5021 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
5023 * objects/custom/custom.c : convert from DIR to GDir usage
5026 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
5029 2002-05-03 Hans Breuer <hans@breuer.org>
5031 * lib/dia_xml.c : make the well formed utf8 check
5032 actually work for û (non 7-bit ascii encoding)
5033 and fixed the file re-writing if the check fails.
5034 Thanks to Vitaly Lipatov for noticing the misbehaviour.
5036 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
5037 comment on last ressort font. Thanks to Maxim Sobolev.
5039 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
5041 * sheets/network.sheet.in: corrected a typo in plotter invocation.
5043 2002-06-03 Steffen Macke <sdteffen@web.de>
5045 * shapes/network/digitizing_board.png:
5046 * shapes/network/digitizing_board.shape:
5047 * shapes/network/plotter.png:
5048 * shapes/network/plotter.shape:
5049 * shapes/network/Makefile.am
5050 * sheets/network.sheet.in: added new plotter and digitizing
5053 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
5055 * lib/font.c: made a symptomatic fix to a segfault reported by
5056 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
5057 won't prevent dia from terminating, but should give more
5058 user-friendly information about why did it terminate.
5060 Two patches from <robert.young@dsto.defence.gov.au>:
5062 * app/display.c: fix the size of the canvas area which gets
5063 redrawn. There was an off-by one error (Closes #83659)
5065 * app/display.c: make sure we redraw all screen only when we
5066 really have to (some update_areas were mistakenly ignored) (Closes
5069 * NEWS: added a new entry for the future. Put there a reminder to
5070 update the dependencies.
5072 * configure.in: put in notes about what will change shortly.
5073 upped the version to 0.90+cvs (did also in config.h.win32)
5074 upped the minimum version for intltools (now 0.21)
5076 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
5082 bumped up version number to 0.90. Yay!
5084 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
5086 * doc/pl/Makefile.am:
5087 * doc/en/Makefile.am: fixed a "make install" problem when db2html
5088 is not present (Reported by Andrew Ferrier
5089 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
5090 problem which prevented me from ever seeing the problem in doc/en...
5092 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
5094 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
5095 way to read the font path from the XFS configuration files in
5096 order to enable FreeType (fixes #83098).
5098 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
5105 bumped up version number to 0.90.RC3
5107 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
5109 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
5110 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
5111 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
5112 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
5113 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
5114 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
5115 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
5116 Added Polish documentation.
5118 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
5120 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
5121 format for the UML State object. Now there's a hack to reload
5122 older files, and get them converted on the fly.
5123 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
5127 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
5128 and adapter the proplist predicates. A LOAD_ONLY property is for
5129 when you have legacy to support but can't resist moving your
5130 fields around... (was needed to support the above state.c fix).
5132 If the in-core of your object changes and you need a LOAD_ONLY
5133 property for the old format, you must keep some spare room in your
5134 object's struct to accomodate for the potential old-style
5135 attributes. Then in foo_load(), after having called
5136 object_load_using_properties(), you must inspect the old-style
5137 fields and act accordingly. Don't ever change the on-disk formats...
5139 * objects/UML/object.c:
5140 * objects/UML/small_package.c: added a check against empty
5141 stereotypes still consuming space. Reported by Dolores Alia de
5142 Saravia <loli@unsa.edu.ar>. Thanks!
5144 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
5146 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
5147 using libtool on an AFS partition.
5149 * po/update_potfiles_in.sh: now simply calls the recent intltools
5150 features; they work better than hand-crafted half-ignorant
5151 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
5154 * po/POTFILES.in: added back two files update_potfiles_in.sh
5155 didn't take into account. Now this file is not automatically
5157 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
5158 (the usual suspects, in fact).
5160 * configure.in: improved the isinf() / isfinite() detection on
5161 Solaris (MÃ¥rten Svantesson)
5163 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
5165 * configure.in: one expression was replacing $CFLAGS, removing
5166 whatever was previously in.
5167 Added more checks for isinf() and finite() on Solaris.
5169 * lib/geometry.h: added a macro defintion for isinf() if not
5170 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
5173 * app/commands.c: "cut" did not set the 'modified' bit (paste has
5174 been for a little while). Fixes #82994.
5176 * Makefile.am: added more stuff to distclean-local. This should make
5177 "make distcheck" pass! Thanks to the author of
5178 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
5179 ... I wonder who this Henstridge guy is ... ;-)
5180 Darn. Still doesn't pass. I give up for tonight.
5182 * po/update_potfiles_in.sh: updated to take care of sheet files,
5183 and to filter out the EML plug-in.
5184 * po/POTFILES.in: updated with all .c and all .sheet.in files
5186 * po/dia.pot, po/*.po: again updated all .po files with all
5187 strings (with the updated POTFILES). Now with the up-to-date
5188 POTFILES, just all languages have some fuzzy or untranslated
5189 strings (not that the 100% team was that large beforehand...)
5191 * po-checktrans: removed the comment about .po files not holding
5192 all translatable stuff, since now they do.
5194 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
5200 bumped up version number to 0.90.RC2
5202 2002-05-20 Hans Breuer <hans@breuer.org>
5204 * app/load_save.c : starting to increase
5205 Dias tolerance on incomplete/broken files. The
5206 corresponding bug is #56233. But the patch there does
5207 neither apply anymore nor does it really fix the problem
5208 but only delays it, e.g. even if it would be allowed
5209 to read a file without any layers, the later code can't
5211 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
5212 handle passing in NULL for the node gracefully.
5214 * shapes/network/printer.shape : added two more connection
5215 points - one at each side - to fix bug #60359
5217 * app/commands.c (edit_copy_callback) :
5218 add ddisplay_do_update_menu_sensitivity() to make
5219 sequence select-copy-paste work.
5221 2002-05-20 Hans Breuer <hans@breuer.org>
5223 * app/create_object.c (create_object_button_press) :
5224 added a call to ddisplay_do_update_menu_sensitivity()
5225 to make Ctrl^D etc work after object creation.
5228 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
5230 * objects/ER/entity.c:
5231 * objects/ER/attribute.c:
5232 * objects/ER/relationship.c: Patch to allow text size change from
5233 Celso Tetsuo Nagase Suzuki.
5235 2002-05-18 Steffen Macke <sdteffen@web.de>
5237 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
5239 * doc/en/graphics/greendots.png:
5240 * doc/en/home_network.png:
5241 * doc/en/line_props.png:
5243 * dia_gnome_icon.png:
5244 * dia_gnome_menu_icon.png:
5246 * shapes/network/telephone.png:
5247 * shapes/Logic/and.png:
5248 * shapes/Logic/buffer.png:
5249 * shapes/Logic/connector.png:
5250 * shapes/Logic/inverter.png:
5251 * shapes/Logic/nand.png:
5252 * shapes/Logic/nor.png:
5253 * shapes/Logic/not.png:
5254 * shapes/Logic/or.png:
5255 * shapes/logic/xor.png:
5256 * samples/ER-demo.dia:
5258 * samples/UML-demo.dia:
5259 * samples/chronograms.dia:
5260 * samples/grafcet.dia: re-added as binary files
5262 2002-05-17 Hans Breuer <hans@breuer.org>
5264 * lib/libdia.def : reflect removing of render_store.[ch]
5266 * */makefile.mingw : remove VERSION definition it's
5267 done in config.h.win32. Dia still doesn't work if
5268 build with mingw ...
5270 * RELEASE-PROCESS : removed */makefile.mingw
5272 * app/sheets_dialog_callbacks.c : if we use those
5273 ugly charconv_gtk_* functions lib/charconv.h needs to
5275 * lib/charconv.h : ... and needs to contain the
5276 necesseray prototypes _and_ #defines
5278 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
5279 is deprecated and does nothing but spit a warning. This broke
5280 the shape format writing. Fixed.
5281 Also with libxml2 pretty formatted xml isn't the default
5282 anymore, but needs to be enabled explicit: It is done now
5283 for shape files, which almost always needed to be edited by
5286 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
5287 from stderr - which is invalid on Dia/win32 - to g_print -
5288 which opens up a console window if necessary. This way
5289 a xml-deprecation-error shouldn't stay unnoticed next time
5291 2002-05-17 Steffen Macke <sdteffen@web.de>
5293 * shapes/Misc/folder.png:
5294 * shapes/Misc/file.png: re-added as binary files
5296 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
5298 * lib/font.c: Fixed segfault for fonts without family_name.
5300 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
5302 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
5304 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
5305 Lars' request, minor cosmetic stuff (mostly _() of human-readable
5306 XML comments in .sheet files; one translator booby-trap disarmed).
5308 * lib/charconv.c: moved #hell inside the body of the new
5309 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
5312 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
5314 * plug-ins/wpg/Makefile.am (INCLUDES):
5315 * plug-ins/shape/Makefile.am (INCLUDES):
5316 * plug-ins/svg/Makefile.am (INCLUDES):
5317 * plug-ins/pstricks/Makefile.am (INCLUDES):
5318 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
5319 and DEBUG_CFLAGS in some missing places.
5321 * MAINTAINERS: New file containing list of known package
5325 * lib/charconv.c: Charconv versions of some common gtk calls.
5327 * app/sheets_dialog_callbacks.c
5328 (on_sheets_new_dialog_button_ok_clicked),
5329 (on_sheets_dialog_button_edit_clicked),
5330 (on_sheets_dialog_button_remove_clicked),
5331 (on_sheets_edit_dialog_button_ok_clicked):
5332 * app/sheets.c (sheets_optionmenu_create),
5333 (sheets_optionmenu_create): Added utf8 translations.
5335 * app/sheets_dialog.c:
5337 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
5339 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
5341 * po/POTFILES.in: added app/sheets_dialog.c
5343 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
5345 * lib/charconv.c: (charconv_local8_to_utf8),
5346 (charconv_utf8_to_local8): tweaked the warnings to get more
5348 * lib/font.c: (font_get_suckfont): handled a potential case of
5349 uninitialised data being used (just paranoid)
5351 * objects/GRAFCET/boolequation.c: (opstring),
5352 (opblock_get_boundingbox), (opblock_draw),
5353 (boolequation_calc_boundingbox): some extra hoops needed now dia
5354 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
5355 symbols can't yet be used with their proper Unicode cells, since
5356 gtk will demand them in the Symbol font, expressed in the local
5359 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
5360 the fix just above).
5362 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
5364 * app/diagram_tree.c (get_object_name): Check that name property
5365 doesn't have null string.
5367 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
5369 * autogen.sh (DIE): Added conditional --force to gettextize.
5371 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
5374 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
5376 * RELEASE-PROCESS: added James' notes on how to properly make the
5379 * configure.in: removed macro nesting related to libpng.h, which
5380 was causing some problems on some systems (like mine, which made
5383 Made --enable-unicode, previously an option, the mandatory case.
5385 * app/Makefile.am: updated EXTRA_DIST
5388 * app/makefile.mingw:
5390 * doc/en/dia-manual.sgml:
5391 * plug-ins/makefile.mingw:
5392 * configure.in: bumped up the version number to 0.90.RC1
5394 * lib/render_objects.[ch]:
5395 * po/POTFILES.in: removed render_objects from the build.
5397 * plug-ins/Makefile.am:
5398 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
5399 so we keep its source in the tarball.
5401 * objects/network/*.c, Makefile.am:
5402 * objects/sybase/*.c, Makefile.am:
5403 * po/POTFILES.in: cleaned up the non-existent files from the po
5406 * plug-ins/Makefile.am: re-enabled metapost plug-in.
5408 2002-05-13 Steffen Macke <sdteffen@web.de>
5411 * app/command.c: added M. C. Nelson to the Authors
5412 * sheets/Circuit/Makefile.am: added firewall shape to build
5413 * sheets/network/Makefile.am: added telephone and microphone
5416 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
5418 * RELEASE-PROCESS: Added list of files that contain the release
5419 number or should otherwise be changed at each release.
5421 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
5423 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
5424 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
5426 2002-05-12 Hans Breuer <hans@breuer.org>
5428 * config.h.win32 : changed VERSION to 0.90.RC1
5430 * app/makefile.msc lib/makefile.msc : use renamed
5431 gdk-pixbuf version (same content but renamed because
5432 all the other gtk+ dlls are renamed) to avoid trouble
5433 mixing gtk versions (of which one would not
5436 * app/app_procs.c : removed recently unneeded
5437 inclusion of "sheets.h"
5439 * app/render_gdk.c : removed my own debug spew
5440 which should never made it to cvs
5442 * lib/render_object.[hc] : added
5443 #error "File not used anymore."
5445 * lib/libdia.def : updated externals
5447 * app/interface.c : dropped filenames need to be
5448 converted from uri with Gtk+2.0
5450 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
5452 * RELEASE-PROCESS (new): a draft document about how to release. To
5453 be discussed. (already with some input from Hans Breuer)
5455 2002-05-12 Steffen Macke <sdteffen@web.de>
5457 * sheets/Makefile.am: re-added Misc sheet to make process
5459 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
5461 * objects/FS/function.c: Added comments to humungous list of menu
5462 items, to aid translators.
5464 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5466 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
5468 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
5470 * app/interface.c (create_toolbox): Disallow shrinking beyond
5471 requested size. Fixes bug #59439, and confirms to GTK guidelines
5472 (see gtk_window_set_policy).
5473 (create_sheets): Removed now unnecessary set_usize call.
5475 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5477 * lib/beziershape.c (remove_handles): Fixing removal of last
5478 segment. Undo of removal still hokey.
5480 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
5482 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
5484 * lib/beziershape.c (beziershape_init): Removed early call to
5485 beziershape_update_data where points aren't set yet.
5486 (beziershape_add_segment): Use segment 0 instead of overflowing
5487 points array with segment+1.
5488 (beziershape_remove_segment): Proper offset for fixing
5490 (remove_handles): Proper offset.
5492 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
5494 * objects/GRAFCET/action.c (action_update_data): Init x value of
5495 click point for call to connpointlist_adjust_count.
5497 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
5499 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
5500 setting to where values are inited.
5502 * lib/polyshape.c (polyshape_init): Removed call to
5503 polyshape_update_data that tried to use uninitialized data.
5505 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5507 * app/sheets_dialog.c: Mass removal of //-style comments. The
5508 Irix compiler doesn't like them:( I do...
5510 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
5512 * app/render_libart.c (draw_string): Bail out when no GDK font is
5514 (set_font): Give error when font not found.
5515 (set_fillstyle): Intlized error msg.
5517 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
5518 modified when applied (and ok only does apply if apply is set
5519 sensitive). Fixes bug #75623.
5521 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
5523 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
5525 2002-05-05 Steffen Macke <sdteffen@web.de>
5527 * app/Makefile.am: added $(UNICODE_CFLAGS)
5529 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
5531 * app/commands.c (help_manual_callback): Check return value of
5534 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
5536 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
5539 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
5541 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
5543 * objects/UML/uml.c (uml_operation_read): Fix of UML default
5546 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5548 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
5549 Added button to toggle diagram compression.
5551 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5553 * lib/font.c: Support for loading extra kerning files, plus got
5554 rid of rounding errors. Bounding box mostly perfect for freetype
5556 (font_string_width): Fudge factor to get around nonlinearity of
5559 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
5561 * lib/font.c (font_string_width): YA font calculation scheme, with
5564 * objects/UML/class.c (umlclass_calculate_data): Uses the same
5565 font for drawing and calculating now.
5567 * configure.in: Added utime.h check.
5569 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
5570 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
5572 2002-04-26 Hans Breuer <hans@breuer.org>
5574 [ Instead of fixing about 70 occurances in 20 files
5575 where GTK_TALKS_UTF8_WE_DONT needed to be handled
5576 Dia on win32 from now on uses glib-2.0 and not
5577 only talks utf-8 with gtk-1.3 but also internally.
5578 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
5581 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
5582 #undef GTK_TALKS_UTF8_WE_DONT
5584 * */makefile.msc : changes to use glib-2.0 (still
5585 using gtk+1.3(win32-production)
5587 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
5588 adapt kevent->string handling, add <string.h>
5589 * app/render_gdk.c (get_text_width) : the length given
5590 is in chars, gdk_text_width() needs bytes
5592 * app/render_libart.c :
5593 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
5594 (could simplify the same way as done in render_gdk.c)
5596 * app/diagram_tree.c app/paginate_gdiprint.cpp
5598 * lib/prop_basic.c lib/prop_geomtypes.c
5599 lib/propdialgs.c lib/propobject.c :
5600 added <string.h> which is now removed from charconv.h
5602 * lib/charconv.h : optional use infrastructure from
5603 glib-2.0 -> only five direct function mapping left
5605 * lib/charconv.c : avoid to build this with glib-2.0
5607 * lib/font.c : no string conversion needed anymore
5608 when Dia and Gtk talk utf-8, also code adaptions
5609 for GLIB_CHECK_VERSION(2,0,0)
5611 * lib/libdia.def : removed charconv functions
5613 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
5614 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
5616 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
5617 removed GTK_TALKS_UTF8_WE_DONT
5619 * lib/text.c : finally(?) fixed cursor <place|move>ment
5620 for Umlauts. Also fixed char insertion, still wondering
5621 how this could ever work. Does realloc on Linux
5622 initialize the memory with zeros ?
5624 * objects/chronogram/chronoline_event.c
5625 objects/grafcet/boolequation.c :
5626 there is no uni_get_utf8 when building for glib-2.0.
5627 Replace with g_utf8_get_char() and g_utf8_next_char().
5629 * objects/uml/stereotype.c (bracketted_to_string) :
5630 simplify while adding code for glib-2.0 build
5632 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
5634 * app/diagram.h: Autosave field
5635 * app/diagram.c (diagram_set_modified): Sets autosave field.
5637 * objects/UML/usecase.c (usecase_update_data):
5638 * objects/flowchart/ellipse.c (ellipse_update_data):
5639 * objects/flowchart/parallelogram.c (pgram_update_data):
5640 * objects/flowchart/diamond.c (diamond_update_data):
5641 * objects/custom/custom_object.c (custom_update_data):
5642 * objects/UML/state.c (state_update_data):
5643 * objects/UML/small_package.c (smallpackage_update_data):
5644 * objects/UML/object.c (objet_update_data):
5645 * objects/UML/note.c (note_update_data):
5646 * objects/UML/node.c (node_update_data):
5647 * objects/UML/component.c (component_update_data):
5648 * objects/UML/classicon.c (classicon_update_data):
5649 * objects/UML/actor.c (actor_update_data):
5650 * objects/SADT/box.c (sadtbox_update_data):
5651 * objects/FS/function.c (function_update_data):
5652 All now update text boundaries from update_data.
5654 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
5657 2002-04-26 Hans Breuer <hans@breuer.org>
5659 * config.h.win32 : added VERSION definition here
5660 (and removed from makefile.msc's)
5662 * app/makefile.msc : added new files
5664 * app/app_procs.c (app_init): remove sheets_dialog_create()
5665 from start-up and ...
5667 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
5668 sheet_dialog here when it is really needed.
5669 #include "../lib/message.h", make sheets_dialog_create()
5670 return it's success or failing on (!custom_type_symbol).
5671 Although editing shapes is nice IMHO it isn't crucial enough
5672 to abort() Dia if it isn't possible.
5674 * app/sheet.h : adapt create_sheet_dialog() prototype
5676 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
5678 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
5679 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
5680 name space corrections for utime() and utim_buf #ifdef
5683 * lib/libdia.def : export new sheet functions
5685 * lib/makefile.msc : added new files
5687 * lib/render.c : don't put draw_bezier_with_arrows() in
5688 the DrawLineWithArrowsFunc slot
5690 * objects/custom/custom_object.c : #include <gmodule.h>
5691 and export 'custom_type' via G_MODULE_EXPORT
5693 * objects/uml/class_dialog.c : removed 'incompatible
5694 types' warnings. Some refactoring while making it fit
5695 on screen with 800x600 again.
5697 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
5699 * plug-ins/python/pydia-handle.h : extra parameter to
5700 PyDiaHandle_New to store the owner of the handle
5701 * plug-ins/python/pydia-handle.c : store handle owner
5702 on construction and use it in new method .connect()
5703 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
5704 adapt to changed prototype
5706 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
5708 * lib/text.c (text_calc_boundingbox): Will now return early if box
5711 * objects/flowchart/box.c (box_update_data): Now updates text
5712 width info from update_data.
5714 2002-04-23 Steffen Macke <sdteffen@web.de>
5716 * plug-ins/xfig/xfig-import.c: fixed text import
5718 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
5720 * app/export_png.c: Moved dialog functions to their own file.
5721 * app/dialogs.[ch]: New files with standard functions for creating
5722 small, transient dialogs (e.g. export options).
5723 * app/Makefile.am: Added dialogs.[ch]
5725 2002-04-19 Steffen Macke <sdteffen@web.de>
5727 * shapes/Misc/folder.*:
5728 * shapes/Misc/file.*:
5729 * shapes/Misc/Makefile.am:
5730 * shapes/Makefile.am:
5731 * sheets/Misc.sheet.in:
5732 * sheets/Makefile.am:
5733 * configure.in: added new Misc sheet containing filesystem shapes
5735 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
5737 * app/lineprops_area.c: Arrow selector in toolbox changed to use
5738 standard arrowdraw code. Line is thinner to make some arrowheads
5741 2002-04-18 Steffen Macke <sdteffen@web.de>
5743 * sheets/network.sheet.in:
5744 * shapes/network/telephone.shape:
5745 * shapes/network/Makefile.am: added telephone shape
5747 2002-04-16 Steffen Macke <sdteffen@web.de>
5749 * sheets/EML.sheet.in: commented out unavailable shapes
5751 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
5753 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
5754 variable assignment.
5756 2002-04-15 Steffen Macke <sdteffen@web.de>
5758 * plug-ins/dxf/dxf-import.c: text import works again
5759 * shapes/Pneumatic/Makefile.am: added compush shape
5760 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
5763 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
5765 * All these modifications are for the 'Sheets and Objects' dialog
5768 * app/pixmaps/line_break.xpm: new icon representing a line break.
5770 * app/pixmaps/n_a.xpm: new empty icon representing not available.
5772 * app/Makefile.am: added sheets_*.[ch] files to compile list.
5774 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
5776 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
5778 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
5780 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
5782 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
5784 * app/sheets_dialog_callbacks.h: [new file] support for " " "
5786 * app/interface.c: added 'interface_current_sheet_name' global to
5787 fill_sheet_wbox(); made fill_sheet_menu() non-static
5789 * app/interface.h: added extern declaration for aboves.
5791 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
5793 * app/sheets.h: [new file] declarations for backing store structures
5795 * lib/sheet.c: modification of new_sheet() parameters; introduction
5796 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
5797 changes to load_register_sheet().
5799 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
5800 added 'has_icon_on_sheet' flag to SheetObject structure; added
5801 'filename', 'scope', 'shadowing' fields to Sheet structure.
5803 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
5806 * lib/plug-isn.h: see above.
5808 * lib/object.c: added 'sheet.h' to include list; added several
5810 to detect objects which are not found on any sheet (for future use)
5811 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
5812 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
5814 * lib/object.h: added public declarations for above functions where
5817 * objects/custom/custom.c: made custom_object_load() non-static so we
5818 can load and interpret .shape files from the Sheets & Objects dialog
5820 * objects/custom/custom_object.c: made 'custom_type' non-static so
5821 we can differentiate between SVG shapes and other types.a
5823 2002-04-07 Hans Breuer <hans@breuer.org>
5825 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
5826 from 2002-01-22 to not destroy diagram->data->selected.
5827 Avoids to crash on Objects/Align/Vertical/Top
5829 * app/render_eps.c (draw_string) : un-const buffer
5830 It isn't at all const (g_malloc(), assignment, g_free()).
5831 Doesn't gcc catch such ?
5833 * lib/arrows.h : prototype calculate_arrow_point()
5835 * lib/font.c (font_get_suckfont) : no need to
5836 special case gdk_draw_string() with GTK_TALKS_UTF8,
5837 cause all the parameter differences are handled above
5839 * lib/libdia.def : updated externals
5841 * lib/makefile.msc : removed string_prerenderer, added render
5843 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
5844 is expected. [Sometimes it's good to read compiler warnings.]
5846 * objects/standard/image.c : simplified by use of g_strconcat()
5848 * plug-ins/python/makefile.msc : updated for Python 2.2
5850 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
5852 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
5853 directionality problem for zero-length line segments.
5855 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
5857 * app/diagram.c (diagram_ungroup_selected)
5858 (diagram_update_menu_sensitivity): Now allows ungrouping of
5859 several groups at once.
5861 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
5863 * lib/render.c, all renderers: Binary incompatibility, change to
5864 expandable renderops structure.
5866 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
5868 * objects/standard/Makefile.am:
5869 * objects/network/Makefile.am:
5870 * objects/UML/Makefile.am:
5871 * objects/ER/Makefile.am:
5872 * objects/FS/Makefile.am:
5873 * objects/flowchart/Makefile.am:
5874 * objects/custom/Makefile.am:
5875 * objects/GRAFCET/Makefile.am:
5876 * objects/chronogram/Makefile.am:
5877 * objects/SADT/Makefile.am:
5878 * plug-ins/cgm/Makefile.am:
5879 * plug-ins/pstricks/Makefile.am:
5880 * plug-ins/hpgl/Makefile.am:
5881 * plug-ins/wpg/Makefile.am:
5882 * plug-ins/svg/Makefile.am:
5883 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
5885 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
5887 * app/render_eps.c: Support for dumping TrueType fonts (taken from
5890 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
5892 * lib/render.c: New abstract super class for renderers.
5894 2002-03-07 Akira TAGOH <tagoh@redhat.com>
5896 * objects/ER/attribute.c (attribute_save): save a font property.
5897 (attribute_load): load a font property, and if can't load it, it's
5900 * objects/ER/entity.c (entity_save): save a font property.
5901 (entity_load): load a font property, and if can't load it, it's
5904 * objects/ER/relationship.c (relationship_save): save a font property.
5905 (relationship_load): load a font property, and if can't load it, it's
5908 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
5910 (umlclass_save): save the font and the font size properties.
5911 (umlclass_load): load the font and the font size properties.
5913 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
5915 * lib/string_prerenderer.[ch] (REMOVED):
5917 * lib/diagramdata.c:
5919 * app/render_eps.c: got rid of the string-specific string
5920 prerenderer, transitioned its functionality towards Lars'
5923 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
5925 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
5926 may need to rerun aclocal.
5928 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
5930 * lib/font.c: First attempt at Unicodeness for Freetype.
5932 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
5934 * lib/font.c (font_string_width): Fixed font_string_width for
5935 freetype. BB is now almost right.
5937 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
5940 * app/paginate_psprint.c (paginate_psprint):
5942 * app/render_eps.c: Support for dumping postscript fonts into
5943 postscript files with freetype. Fairly primitive, but works.
5944 Unicode version may have problems.
5946 2002-02-28 Akira TAGOH <tagoh@redhat.com>
5948 * objects/UML/class_dialog.c (class_read_from_dialog)
5949 (class_fill_in_dialog), (class_create_page): add the font selector and
5950 the font size selector.
5952 * objects/UML/class.c (umlclass_draw): uses each font_height.
5953 (umlclass_calculate_data): ditto.
5954 (fill_in_fontdata): add initial value of new font_height.
5955 (umlclass_copy): add new font_height.
5957 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
5959 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
5961 * lib/font.c: calculate font metrics properly and stop guessing at
5964 2002-02-28 Akira TAGOH <tagoh@redhat.com>
5966 * configure.in: changed gtk_advancement value to dia_talks_utf8.
5967 right now Dia is working with UTF-8 internally. it means Dia probably
5968 support most languages also including the languages which heretofore
5969 didn't work correctly.
5971 2002-02-26 Akira TAGOH <tagoh@redhat.com>
5973 * objects/FS/function.c: add related text properties.
5974 (function_get_props), (function_set_props): add handling attribute.
5976 * objects/FS/flow.c: add related text properties.
5977 (flow_get_props), (flow_set_props): add handling attribute.
5979 * objects/FS/flow-ortho.c: add related text properties.
5980 (orthflow_set_props), (orthflow_get_props): add handling attribute.
5982 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
5984 * objects/ER/entity.c: ditto.
5986 * objects/ER/attribute.c: ditto.
5988 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
5990 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
5992 * autogen.sh: add a check for missing intltoolize.
5994 2002-02-20 Akira TAGOH <tagoh@redhat.com>
5996 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
5997 charcode, it was registered the duplicate item to HashTable. fix.
5999 * app/render_gnomeprint.c (get_width_string): add new function.
6000 (draw_string): fix non-multibyte specific code.
6002 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
6004 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
6006 * lib/font.c: do not try to search paths that do not begin with
6007 '/', like X Font Server addresses.
6009 * objects/UML/message.c (message_draw): free mname when not
6010 message->text but CREATE or DESTROY.
6012 * objects/UML/uml.h:
6013 * objects/UML/uml.c:
6014 * objects/UML/class_dialog.c: added code to handle a stereotype
6015 attribute for operations.
6017 2002-02-19 Akira TAGOH <tagoh@redhat.com>
6019 * lib/Makefile.am: add LIBART_CFLAGS.
6021 2002-02-15 Hans Breuer <hans@breuer.org>
6023 * lib/font.c (font_get_suck_font): the black and white pixel values
6024 need to be taken from a 1 bit colormap rather than the default colormap.
6025 (fixed again, last time was 2000-05-26)
6027 Also handle the case where GTK_TALKS_UTF8 and expects all strings
6028 passed in to be in this encoding.
6030 * lib/libdia.def : export suck_font_free()
6032 * lib/text.c (text_draw) : avoid circular dependency to ../app
6033 at least for the !USE_XIM case, where it is unnecessary.
6035 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
6037 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
6039 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
6040 * sheets/Circuit.sheet.in: added new shape microphone
6041 * shapes/Circuit/speaker_de.shape: Added a connection point.
6043 2002-02-13 Akira TAGOH <tagoh@redhat.com>
6045 * app/render_libart.c (draw_string): fixed build issue for Win32.
6047 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
6050 * configure.in: fixed testing gtk_advancement.
6052 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
6054 2002-02-12 Akira TAGOH <tagoh@redhat.com>
6056 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
6059 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
6061 * app/group.c (group_copy): Made new object properly initialized
6064 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
6066 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
6068 2002-02-10 Akira TAGOH <tagoh@redhat.com>
6070 * lib/text.c (text_draw): fixed XIM transaction.
6072 * app/interface.c (create_display_shell): add signal for
6075 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
6077 (set_input_dialog): remove.
6078 (ddisplay_canvas_events): remove XIM transaction. it can't transact
6079 correctly on this function.
6081 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6084 * app/export_png.c: Added checks for interactivity (maybe this
6085 should be a hook after all?).
6087 * app/filedlg.c (file_export_callback): Made export dialog add
6088 suffix when reopened.
6090 * app/export_png.c: Added dialog asking for export size.
6092 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6094 * lib/widgets.c: Fixed font reselection problem and first font
6097 * objects/UML/actor.c (actor_update_data): Changed to have
6098 connection points below text.
6100 2002-02-08 Akira TAGOH <tagoh@redhat.com>
6102 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
6105 2002-02-07 Akira TAGOH <tagoh@redhat.com>
6107 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
6108 strings which is given.
6109 (suck_font): remove. it's any longer needed.
6111 * app/render_libart.c (set_font): don't get suckfont.
6112 (draw_string): get suckfont only which is needed for now.
6114 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6116 * lib/text.c: Fixes for misunderstood width functions.
6118 2002-02-05 Hans Breuer <hans@breuer.org>
6120 * lib/dia_xml.c : use g_strconcat() instead of
6121 malloc, strcpy, strcat dance
6122 * app/properties.c : same here and plug memory leak
6123 (gtk functions don't eat strings)
6125 * objects/UML/message.c : there is no g_sprintf()
6126 use g_strdup_printf() instead ...
6128 2002-02-05 Akira TAGOH <tagoh@redhat.com>
6130 * lib/message.c (gtk_message_internal): doesn't need to convert to
6133 * app/render_libart.c (draw_string): fixed transaction for UTF-8
6135 (get_text_width): ditto.
6137 * app/Makefile.am (EXTRA_DIST):
6138 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
6140 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
6141 This function needs ifdef HAVE_FREETYPE because don't use it for
6144 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
6146 * NEWS: updated with the new dependencies.
6148 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
6150 * objects/UML/class.h:
6151 * objects/UML/class.c:
6152 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
6153 property using a GtkMenu. Options are Undefined, In, Out, In & Out
6155 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
6157 * app/render_libart.c: Slow but working libart freetype renderer,
6160 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6162 * app/render_gdk.c (draw_string): Fixed gc_function bug.
6164 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
6166 * lib/font.c (freetype_render_string):
6169 * app/render_gdk.h: Changed freetype_render_string to use
6170 callback. Rendering is broken.
6172 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
6174 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
6176 * objects/UML/uml.h:
6177 * objects/UML/uml.c: added UMLInheritanceType and isQuery
6178 (constant) UML Operation attributes. UMLInheritanceType is either
6179 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
6181 * objects/UML/class.h:
6182 * objects/UML/class.c:
6183 * objetcs/UML/class_dialog.c: added code to handle new
6184 UMLOperation attributes via a GtkMenu and a checkbox.
6186 2002-02-03 Akira TAGOH <tagoh@redhat.com>
6188 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
6189 several client doesn't work with previous codes.
6191 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
6193 * lib/font.c (freetype_render_string): Kerning. Very few fonts
6196 2002-02-02 Akira TAGOH <tagoh@redhat.com>
6198 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
6199 when doing the operation like invert the objects after active view is
6200 destroyed. when changes focus, it needs to set active_display.
6202 * app/layer_dialog.c (dia_layer_update_from_layer):
6203 (layer_dialog_edit_layer): need to convert to locale encoding
6204 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
6205 (edit_layer_ok_callback):
6206 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
6208 * lib/diagramdata.c (new_diagram_data): ditto.
6210 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
6212 * lib/diagramdata.c (new_layer): use utfchar instead of char for
6215 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
6216 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
6217 it's needed for now. also this function needs prototype declaration.
6219 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6221 * lib/widgets.c: Style now functional on font selector. Some leak
6222 possible, but doesn't show up under stress test.
6224 2002-01-31 Akira TAGOH <tagoh@redhat.com>
6226 * app/plugin-manager.c (clist_select_row): name and description needs to
6227 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
6228 (get_plugin_manager): ditto.
6230 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
6232 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
6235 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
6236 when prop->string_data is NULL.
6238 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6241 * lib/widgets.h: New font selector separating font and style.
6242 Style not functional yet.
6244 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
6247 * app/render_gdk.c (draw_string): More freetype support, now
6248 renders text. Still broken is font selection and exporting.
6250 2002-01-30 Akira TAGOH <tagoh@redhat.com>
6252 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
6255 * objects/chronogram/chronoline.c (chronoline_create): ditto.
6257 * objects/UML/usecase.c (usecase_create): ditto.
6259 * objects/UML/state.c (state_create): ditto.
6261 * objects/UML/object.c (objet_create): ditto.
6263 * objects/UML/node.c (node_create): ditto.
6265 * objects/UML/message.c (message_create): ditto.
6267 * objects/UML/component.c (component_create): ditto.
6269 * objects/UML/classicon.c (classicon_create): ditto.
6271 * objects/UML/actor.c (actor_create): ditto.
6273 * objects/SADT/box.c (sadtbox_create): ditto.
6275 * objects/SADT/annotation.c (annotation_create): ditto.
6277 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
6279 * objects/GRAFCET/step.c (STEP_FONT):
6280 * (step_create): ditto.
6282 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
6284 * objects/GRAFCET/action.c (ACTION_FONT):
6285 (action_create): ditto.
6287 * objects/FS/function.c (function_create): ditto.
6289 * objects/FS/flow.c (flow_create):
6291 (flow_apply_defaults): ditto.
6293 * objects/FS/flow-poly.c (flow_create):
6295 (flow_apply_defaults): ditto.
6297 * objects/FS/flow-ortho.c (orthflow_create):
6299 (orthflow_apply_defaults): ditto.
6301 * objects/ER/relationship.c: use utfchar instead of char for structure.
6302 (relationship_create): name needs to convert to UTF-8.
6304 * objects/ER/attribute.c: use utfchar instead of char for structure.
6305 (attribute_create): name needs to convert to UTF-8.
6307 * objects/ER/entity.c: use utfchar instead of char for structure.
6308 (entity_create): name needs to convert to UTF-8.
6310 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
6311 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
6312 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
6313 items. if GTK_TALKS_UTF8 isn't defined.
6315 2002-01-29 Akira TAGOH <tagoh@redhat.com>
6317 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
6318 it was my careless mistake...
6320 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
6321 a font name, because there are strings which isn't shown by "Courier".
6322 We need to consider a way to feel free to choose a font at runtime.
6324 * lib/render_object.c (render_object_load): ditto.
6326 * lib/text.c (data_text): ditto.
6328 * objects/EML/instantiation.c (instantiation_create): ditto.
6330 * objects/EML/interaction-ortho.c (interaction_ortho_create):
6331 (interaction_ortho_load): ditto.
6333 * objects/EML/interaction.c (interaction_create):
6334 (interaction_load): ditto.
6336 * objects/EML/process.c (fill_in_fontdata): ditto.
6338 * objects/ER/attribute.c (attribute_create):
6339 (attribute_load): ditto.
6341 * objects/ER/entity.c (entity_create):
6342 (entity_load): ditto.
6344 * objects/ER/relationship.c (relationship_create):
6345 (relationship_load): ditto.
6347 * objects/UML/association.c (association_create):
6348 (association_load): ditto.
6350 * objects/UML/class.c (fill_in_fontdata): ditto.
6352 * objects/UML/constraint.c (constraint_create): ditto.
6354 * objects/UML/dependency.c (dependency_create): ditto.
6356 * objects/UML/generalization.c (generalization_create): ditto.
6358 * objects/UML/implements.c (implements_create): ditto.
6360 * objects/UML/large_package.c (largepackage_create): ditto.
6362 * objects/UML/note.c (note_create): ditto.
6364 * objects/UML/realizes.c (realizes_create): ditto.
6366 * objects/UML/small_package.c (smallpackage_create): ditto.
6368 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
6370 * objects/custom/custom_object.c (custom_create): ditto.
6372 * objects/network/antenna.c (render_to_store): ditto.
6374 * objects/network/computer.c (render_to_store): ditto.
6376 * objects/network/disc.c (render_to_store): ditto.
6378 * objects/network/flash.c (render_to_store): ditto.
6380 * objects/network/hub.c (render_to_store): ditto.
6382 * objects/network/modem.c (render_to_store): ditto.
6384 * objects/network/modularswitch.c (render_to_store): ditto.
6386 * objects/network/monitor.c (render_to_store): ditto.
6388 * objects/network/printer.c (render_to_store): ditto.
6390 * objects/network/rj45plug.c (render_to_store): ditto.
6392 * objects/network/scead-plug.c (render_to_store): ditto.
6394 * objects/standard/textobj.c (textobj_load): ditto.
6396 * objects/sybase/client.c (render_to_store): ditto.
6398 * objects/sybase/dataserver.c (render_to_store): ditto.
6400 * objects/sybase/ltm.c (render_to_store): ditto.
6402 * objects/sybase/repserver.c (render_to_store): ditto.
6404 * objects/sybase/rsm.c (render_to_store): ditto.
6406 * objects/sybase/stableq.c (render_to_store): ditto.
6408 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
6410 * objects/UML/uml.h (UML_STEREOTYPE_START):
6411 (UML_STEREOTYPE_END): changes default strings.
6413 2002-01-28 Akira TAGOH <tagoh@redhat.com>
6415 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
6416 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
6417 which is given to arguments isn't UTF-8. so don't need to convert it.
6418 if GTK+ handle UTF-8, also don't need to convert it.
6420 (bracketted_to_string): fixed transaction for UTF-8 support.
6421 also start/end bracket is not necessarily 1 character. so that when use
6422 strend(), it doesn't work correctly.
6423 (string_to_stereotype): use utfchar instead of char.
6424 (remove_stereotype_from_string): ditto.
6425 (stereotype_to_string): ditto.
6427 * objects/UML/stereotype.h: ditto.
6429 * objects/UML/message.c: use utfchar instead of char for structure.
6430 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
6432 * objects/UML/small_package.c: use utfchar instead of char for structure.
6434 * objects/UML/realizes.c: ditto.
6436 * objects/UML/object.c: ditto.
6438 * objects/UML/large_package.c: ditto.
6440 * objects/UML/implements.c: ditto.
6442 * objects/UML/generalization.c: ditto.
6444 * objects/UML/dependency.c: ditto.
6446 * objects/UML/constraint.c: ditto.
6448 * objects/UML/component.c: ditto.
6450 * objects/UML/class_dialog.c (attributes_get_current_values):
6451 (attributes_list_new_callback, attributes_fill_in_dialog):
6452 (parameters_set_values, parameters_get_values):
6453 (parameters_get_current_values, parameters_list_new_callback):
6454 (operations_set_values, operations_get_values):
6455 (operations_get_current_values, operations_list_new_callback):
6456 (operations_fill_in_dialog, templates_set_values):
6457 (templates_get_values, templates_get_current_values):
6458 (templates_list_new_callback, templates_fill_in_dialog):
6459 fixed transaction for UTF-8 support.
6461 2002-01-27 Akira TAGOH <tagoh@redhat.com>
6463 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
6465 * objects/UML/class_dialog.c (class_read_from_dialog):
6466 (class_fill_in_dialog):
6467 (attributes_get_values): ditto.
6469 * objects/UML/actor.c (actor_create): ditto.
6471 * objects/UML/class.c (umlclass_calculate_data): ditto.
6473 * objects/UML/association.c (association_apply_properties):
6474 (fill_in_dialog): ditto.
6476 * objects/UML/uml.c (uml_get_attribute_string):
6477 (uml_get_operation_string):
6478 (uml_get_parameter_string):
6479 (uml_get_formalparameter_string): use utfchar instead of char.
6481 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
6484 * objects/UML/class.h: use utfchar instead of char.
6486 * lib/dia_xml.c (data_add_string): ditto.
6488 * lib/text.c (text_insert_char): fixed characters# calculation
6489 when includes multibytes character in strings.
6491 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
6493 Patch from Richard Rowell <rwrowell@bellsouth.net>:
6495 * app/lineprops_area.c:
6498 * lib/widgets.c: added crow foot arrow and cross arrow
6500 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
6502 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
6504 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
6506 * po/update.pl (REMOVED):
6507 * po/update.sh (REMOVED):
6508 * xml-i18n-merge.in.kg (REMOVED):
6509 * xml-i18n-update.in.kg (REMOVED):
6510 * sheets/Makefile.am:
6513 * configure.in: converted from xml-i18n-tools to intltools
6515 This looks like it fixes the build bugs of the snapshot tarballs,
6516 and it supersedes #69611.
6518 2002-01-25 Akira TAGOH <tagoh@redhat.com>
6520 * lib/text.c (text_insert_char): fixed characters# calculation.
6521 it's not string length.
6523 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
6524 is defined, needs to convert a description to UTF-8.
6526 * app/render_gdk.c (get_text_width): fixed transaction for
6527 UTF-8 support. also should uses gdk_text_width_wc() instead
6528 of gdk_text_width().
6530 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
6531 is defined, needs to convert to locale encoding for display.
6532 Also use utfchar instead of char for argument.
6534 2002-01-24 Hans Breuer <hans@breuer.org>
6536 * app/commands.c(edit_paste_callback and more) :
6537 call diagram_modified(ddisp->diagram) to fix #68083
6538 (help_menu_callback) : plug a DIR leak
6540 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
6541 GTK_TALKS_UTF8_WE_DONT
6543 * app/render_gdk.c(get_text_with) : it's a bad idea to use
6544 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
6545 gdk_text_width(). The length value is still questionable ...
6547 * lib/charconv.c : use functions already available in early
6548 GLIB-1.3 days whiches API hasn't changed since, to avoid
6549 version problems with the win32 build
6551 * lib/font.c : finally fix #58045 and #68208
6553 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
6555 2002-01-24 Akira TAGOH <tagoh@redhat.com>
6557 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
6558 no strings, fixed transaction.
6560 * lib/charconv.h: fixed typo.
6562 * app/menus.c: fixed typo.
6564 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
6566 * objects/UML/object.c: attrib's type uses utfchar instead of char.
6568 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
6570 * lib/text.c (text_create_change): use unichar instead of char.
6572 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
6573 use utfchar instead of char.
6575 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
6578 * lib/charconv.c (charconv_utf8_get_char): add new function.
6580 2002-01-23 Akira TAGOH <tagoh@redhat.com>
6582 * lib/text.c (text_delete_forward, text_delete_backward,
6583 text_split_line): fixed transaction for UTF-8 support.
6585 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
6586 strlen[] has string length for UTF-8, so has to use alloclen[].
6590 * .cvsignore: add dia.pot.
6592 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
6594 * configure.in: Added "sk" to ALL_LINGUAS.
6596 2002-01-22 Akira TAGOH <tagoh@redhat.com>
6598 * lib/text.c (text_set_string, new_text, text_copy,
6599 text_get_string_copy, text_join_lines): use utfchar instead of gchar
6602 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
6605 * lib/charconv.c (charconv_utf8_strchr): add new function.
6607 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
6609 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
6611 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
6612 strings to the appropriate encoding.
6614 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
6616 * app/object_ops.c (object_list_align_[hv]): Leak fix.
6618 * lib/Makefile.am (INCLUDES): Added debug flags.
6620 * app/object_ops.c: Fixed ordering problem of align equi-distant &
6623 2002-01-21 Akira TAGOH <tagoh@redhat.com>
6625 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
6628 * objects/GRAFCET/boolequation.c: fixed invalid comment.
6630 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
6631 when defined UNICODE_WORK_IN_PROGRESS.
6633 * lib/dia_xml.c (data_add_string): fixed typo.
6635 2002-01-20 Akira TAGOH <tagoh@redhat.com>
6637 * configure.in: fixed test gtk_advancement.
6639 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
6641 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
6644 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
6646 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
6647 tool tips, preferences, and arbitrarily long ~/.dia/history
6649 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
6650 removed 'Open Recent'; added new separators for recent documents on
6653 * app/interface.[ch] (interface_get_toolbox_shell): new function
6655 * app/diagram.c: added new parameter to recent_file_history_add() call
6657 * app/preferences.[ch]: added new 'Recent documents list size'
6660 2002-01-18 Akira TAGOH <tagoh@redhat.com>
6662 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
6663 if it failed, should be used gdk_font_load ().
6665 * lib/font.c (font_data): added the font entries for CJK.
6667 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
6669 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
6671 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
6673 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
6675 Patch from Martin Cracauer <cracauer@cons.org>:
6677 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
6680 2002-01-01 Hans Breuer <hans@breuer.org>
6682 * app/command.c : optional use GDI printing on windoze
6684 * app/preferences.[hc] : add option 'prefer_psprint' to
6685 select the print engine to use (could be used for Dia/Gnome
6688 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
6689 wmf plug-in with the common win32 print api. Now printing
6690 should work almost as expected from a windows program :-)
6692 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
6693 to .edit_delete to avoid clashes with C++
6695 * app/makefile.msc : updated for GDI printing
6697 * plug-ins/wmf/wmf.cpp : some small modifications to support
6698 GDI printing. Also swap R and B channel in draw_image()
6700 * app/makefile.am : added windows only files to EXTRA_DIST
6702 * objects/uml/class.c(umlclass_set_props) : force recalculation
6703 when applying properties
6705 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
6706 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
6707 many incompatible changes (and would force a gtk update)
6709 * objects/makefile.msc : don't build C-Objects which are
6710 already available as 'pure shape'
6712 * plug-ins/makefile.msc : remove diaimport from build. It was
6713 only available via mailing-list and is broken since the
6717 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
6719 * app/preferences.[hc] : tweaked preferences.c to make
6720 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
6721 added some more DiagramTree prefererences and their own
6724 * app/diagram_tree.[hc] : allow to sort by object type or name
6725 and hide by type ...
6726 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
6727 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
6729 * app/diagram_tree_window.c : handle hidden types and window
6732 2001-12-20 Hans Breuer <hans@breuer.org>
6734 * plug-ins/python/Makefile.am : patch from Peter Moulder
6735 <pmoulder@csse.monash.edu.au> to make the python plug-in
6736 compile on *nix too.
6738 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
6740 Patch from Alan <horkana@tcd.ie>:
6742 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
6744 2001-11-20 Hans Breuer <hans@breuer.org>
6746 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
6748 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
6750 * app/diagram_tree.[hc] : Added new functions and types for
6751 sorting diagram and objects, and attaching the popup menus.
6753 * app/preferences.h: Added more diagram tree preferences, using a
6754 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
6755 height and width of the diagram tree window and the default sort
6756 orders for diagrams and objects.
6758 * app/preferences.c (prefs_data): Added new entries for the new
6759 diagram tree preferences.
6761 * app/preferences.c (prefs_tabs): New tab for diagram tree
6764 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
6765 * app/diagram_tree_window.c (diagram_tree_window_new):
6766 * app/interface.c (create_tree_window): The diagram tree window is
6767 initialised using the DiagramTreeConfig part of prefs.
6770 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
6772 * app/diagram_tree_menu.[hc]: New files. Functions to create the
6773 diagram tree popup menus.
6775 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
6776 the diagram tree popup menus.
6778 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
6781 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
6783 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
6784 double-clicking a diagram tree node raises the diagram window
6785 to the foreground (and, if a object node was clicked, selects the
6786 object in the diagram).
6788 * app/diagram_tree.c (select_tree_widget): selecting an object
6789 node with single click simply updates it (no raise).
6791 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
6792 These changes make the diagram tree lazy: it is not created unless
6793 the diagram tree window is requested.
6795 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
6796 function for creating the tree window.
6798 * app/interface.c (create_tree_window): call
6799 create_diagram_tree_window() instead of diagram_window().
6801 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
6802 (diagram_tree_update, diagram_tree_update_name)
6803 (diagram_tree_add_object, diagram_tree_add_objects)
6804 (diagram_tree_remove_object, diagram_tree_remove_objects)
6805 (diagram_tree_update_object): accept a NULL tree as a nominal
6806 argument (and do nothing in this case!), so that the diagram tree
6807 is not initialised if not used.
6809 * app/diagram_tree_window.c (diagram_tree): do not create the
6810 diagram tree until diagram_window() or diagtree_show_callback()
6813 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
6814 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
6816 * app/diagram_tree_window.[hc] : (new files) implementation of
6817 the diagram tree window, a container for a diagram tree. [Removed
6818 the horizontal scroll bar glitch by disableing it]
6820 * app/diagram_tree.[hc] : (new files) implementation of the
6821 diagram tree widget. [Don't rely on the layers GPtrArray to be
6822 NULL terminated, but use its ->len field]
6824 * app/Makefile.am (dia_core_files): added new files
6825 diagram_tree.[hc] and diagram_tree_window.[hc]
6827 * app/interface.[hc] : (create_tree_window): this function
6828 creates the new diagram tree window widget
6830 * app/undo.c (delete_objects_apply) (delete_objects_revert)
6831 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
6832 (ungroup_objects_apply) (ungroup_objects_revert):
6833 every time that an undoable command modifies a diagram
6834 adding/removing/(un)grouping objects, a diagram_tree_something() is
6835 invoked to keep the diagram tree window in sync
6837 * app/properties.c (properties_apply): call to
6838 diagram_object_modified(), which updates the diagram tree window
6839 when the properties of an object are modified
6841 * app/preferences.[hc] : new "show_diagram_tree" configuration option
6842 (whether the diagram tree window should be shown on dia startup)
6844 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
6846 * app/diagram.h (diagram_object_modified): callback notifying of a
6847 diagram object modification
6849 * app/diagram.c (diagram_load_into): added call to
6850 diagram_tree_add() to add newly loaded diagrams to the diagram
6852 (diagram_destroy): call to diagram_tree_remove() to remove a
6853 destroyed diagram from the diagram tree window
6854 (diagram_add_object): call to diagram_tree_add_object() to add an
6855 object to the diagram tree window
6856 (diagram_add_object_list): as above, but with an object list
6857 (diagram_selected_break_external): deletion of objects from the
6858 diagram is detected here, and diagram_tree_remove_object() is
6859 invoked to remove the object from the diagram tree window (it
6860 would be nice to have a diagram_remove_object() in the Diagram
6862 (diagram_set_filename): update the diagram tree window when a
6863 diagram's filename changes
6865 * app/commands.c (file_new_callback): added call to
6866 diagram_tree_add() to add newly created diagrams to the diagram
6869 * app/app_procs.c (app_init): added call to create_tree_window()
6871 * app/makefile.msc : updated
6873 2001-10-28 Hans Breuer <hans@breuer.org>
6875 * app/preferences.h (DiaPreferences):
6876 * app/preferences.c (prefs_data): new "show_diagram_tree"
6877 configuration option (whether the diagram tree window should be
6878 shown on dia startup)
6880 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
6881 entry (both for GNOME and gtk)
6883 * app/diagram.h (diagram_object_modified): callback notifying of a
6884 diagram object modification
6886 * app/diagram.c (diagram_load_into): added call to
6887 diagram_tree_add() to add newly loaded diagrams to the diagram
6889 (diagram_destroy): call to diagram_tree_remove() to remove a
6890 destroyed diagram from the diagram tree window
6891 (diagram_add_object): call to diagram_tree_add_object() to add an
6892 object to the diagram tree window
6893 (diagram_add_object_list): as above, but with an object list
6894 (diagram_selected_break_external): deletion of objects from the
6895 diagram is detected here, and diagram_tree_remove_object() is
6896 invoked to remove the object from the diagram tree window (it
6897 would be nice to have a diagram_remove_object() in the Diagram
6899 (diagram_set_filename): update the diagram tree window when a
6900 diagram's filename changes
6902 * app/commands.c (file_new_callback): added call to
6903 diagram_tree_add() to add newly created diagrams to the diagram
6906 * app/app_procs.c (app_init): added call to create_tree_window()
6908 2001-10-28 Hans Breuer <hans@breuer.org>
6910 * plug-ins/python/pydia-property.c : apparently I missed
6911 to commit this last time. Now it has some more SetAttr
6912 support (apply from property)
6914 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
6916 * plug-ins/python/pydia-text.[ch] : new files
6918 2001-10-14 Hans Breuer <hans@breuer.org>
6920 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
6921 strings. Use g_strdup() for these.
6923 libxml2 does not produce 'any extra indentation when saving a tree'
6924 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
6925 libxml(1). To get human readable XML some extra tweaking is required.
6926 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
6927 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
6928 * app/preferences.[ch] : initialize 'pretty_formated_xml'
6930 * lib/libdia.def : updated externals
6932 * lib/properties.h : add prototype for prop_list_from_single ()
6934 * plug-ins/makefile.msc : build metapost plug-in
6936 * plug-ins/metapost/render_metapost.c : msvc does not like
6937 switch labels without operation 'default: }'. Added a noop.
6939 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
6940 * plug-ins/python/diamodule.c : added PyDiaText
6941 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
6942 Although the python plug-in does not use libxml at all, the
6943 headers are required to use the lib/prop*.h headers
6945 * plug-ins/python/pydia-diagramdata.c : added wrappers for
6946 update_extents and get_sorted_selected (should I duplicate
6947 more functions from PyDiaDiagram or should they be moved?)
6949 * plug-ins/python/pydia-properties.c : allow to set (some) properties
6950 through the dictionary api
6951 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
6952 * plug-ins/python/pydia-property.c : implement it (currently only
6953 string properties can be set)
6955 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
6956 Quoting myself: 'Still not convinced that this is better than an
6957 integral property->type and some casting ...
6958 It is trading a straightforward 40 lines switch statement to
6959 this nice 'type safe' function mapping (about 125 lines)'
6960 (But now it works again, better than changing the News file :)
6962 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
6964 patch from <robert.young@dsto.defence.gov.au>:
6965 * objects/UML/component.c: remember to set font in UML component
6966 object (fixes #62132)
6968 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
6970 * plug-ins/metapost/metapost.c:
6971 * plug-ins/metapost/Makefile.am:
6972 * plug-ins/metapost/render_metapost.c:
6973 * plug-ins/metapost/render_metapost.h:
6974 Metapost renderer from Chris Sperandio
6976 2001-09-14 Hans Breuer <hans@breuer.org>
6978 * app/render_gdk.c : reflect the fact, that GTK already talks
6979 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
6982 * app/render_libart.c : trying to fix #58045 but it appears
6983 to be an Gdk/win32, too.
6985 * lib/charconv.c : handle utf8 conversion with the help of
6986 glib-1.3 even in the !HAVE_UNICODE case.
6988 * lib/dia_xml.c : reduce complaing about missing encoding, by
6989 detecting if the default (utf8) would break the file.
6991 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
6993 * lib/charconv.c: (get_local_charset): at least please try to not
6994 silently change the logic, while avoiding crashes.
6996 * lib/font.c: (suck_font): put a #error, we have a nasty something
6997 to fix there before we switch to Gtk 2.0.
6999 2001-09-09 Hans Breuer <hans@breuer.org>
7001 * **/makefile.mingw : Approach to compile Dia with mingw.
7002 Compiling mostly works but running does not (yet) ...
7005 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
7006 Apparently mingw needs it too.
7007 - enable 'normalization' of a null verctor. Otherwise the beziergon
7008 bounding box calculation would be broken at least with msvc. What's
7009 the mathematical correct result of 0.0/0.0 ?
7011 * lib/dia_xml.c : isinf() for mingw too.
7013 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
7016 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
7019 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
7021 * lib/libdia.def : updated externals. Apparently mingw needs
7022 them to produce the right mangling.
7024 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
7027 2001-09-08 Wang Jian <lark@linux.net.cn>
7029 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
7031 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
7033 * lib/dia_xml_libxml.h:
7034 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
7035 libxml1's code, to rework the output file before it gets committed
7036 to disk. This is rubbish, and will be removed when libxml2
7037 switches from discouraged to mandatory.
7038 All in all, this fixes #60152.
7041 * lib/charconv.c: (charconv_unichar_to_utf8):
7042 made the type of the input parameter explicitly an unsigned long.
7044 * configure.in: Added a check for libz (we must now include it
7045 explicitly, for xmlDiaSaveFile).
7047 * app/load_save.c: (diagram_data_save):
7048 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
7049 (dia_pluginrc_write):
7050 * plug-ins/shape/shape-export.c: (new_shape_renderer),
7051 (end_render), (draw_string):
7052 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
7055 Made sure we always write UTF-8 XML files, and through
7058 * NEWS: documented that fact.
7060 2001-09-07 James Henstridge <james@daa.com.au>
7062 * configure.in (found_libxml): refactor the check for libxml a
7063 little so that it handles finding both libxml1 and 2 better.
7065 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
7067 * app/app_procs.c: removed a spurious } which caused a compilation
7068 error in the (!HAVE_GNOME && HAVE_POPT_H) case
7070 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
7071 don't know what ANSI X3.4-1968 is. I didn't know until this day,
7072 but it's just plain old ASCII. Added a check to shield the poor
7075 Patches from <robert.young@dsto.defence.gov.au>:
7077 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
7078 width and height of text before calculating bounds. Fixes #59928
7080 * app/preferences.c: Moved grid related items into Grid Tab.
7082 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
7084 * app/interface.c: (create_zoom_widget): connected one more signal
7085 to the Zoom selector combo's list. Fixes #59879.
7087 * app/app_procs.[ch]: (app_init) (do_convert)
7088 (build_output_file_name): brought back into the main executable
7089 the rare useful bits of the ill-fated diaconv. This means we have
7090 one new feature : --export-to-format (-t), which should make
7091 writing conversion scripts easier, and a crude implementation of
7092 -t and -e for the poptless argument parsing, which means the Win32
7093 port should be able to take advantage of it (that should make
7094 resolving #58197 possible).
7096 * app/diaconv.c: kept the poor duck compiling (but that's about
7099 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
7102 * NEWS: updated about the new feature above, and documented the
7103 "missing encoding specification" complaint.
7105 2001-09-01 Abel Cheung <maddog@linux.org.hk>
7107 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
7109 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
7111 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
7114 2001-09-01 James Henstridge <james@daa.com.au>
7116 * */Makefile.am: various changes to include missing files, and fix
7117 sheets dir to handle building with builddir != srcdir.
7119 * autogen.sh: unconditionally pass the --enable-maintainer-mode
7120 and --enable-db2html flags so that builds from CVS work correctly.
7122 * configure.in: increment version number. Also add an
7123 --enable-db2html flag. Without the flag, db2html won't be run (if
7124 the flag is passed and db2html is not present, do nothing).
7126 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
7128 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
7129 even compiled. It's really too bad there is no lint tool easily
7130 available (or a more cautious, pedandic, paranoid and verbose
7131 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
7133 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
7136 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
7137 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
7139 * app/menu.c: added ellipsis(...) to diagram properties menu item.
7140 * app/dia-props.c: diagram properties dialog contents did not
7141 represent current diagram settings.
7142 * app/dia-props.[ch]:
7143 * app/display.c: diagram properties contents now follows currently
7145 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
7147 * AUTHORS: added Robert Young.
7149 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
7151 * app/modify_tool.c: (modify_button_release): Patch from
7152 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
7153 #59090: if selection dragging was released outside of the window,
7154 artifacts of the selection box remained.
7156 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
7158 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
7160 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
7163 * sheets/Makefile.am: prepared the terrain for the Version of
7164 xml-i18n-tools Which Comes After 0.9 (and which will feature at
7165 last a sane behaviour with XML files). Some reasonible delay
7166 before enforcing that version *will* be given.
7168 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
7170 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
7171 becomes a nonexistent symbol.
7173 2001-08-18 Hans Breuer <hans@breuer.org>
7175 * app/app_procs.c : made it compile without ENABLE_NLS
7177 * app/diap_callbacks.c : strcmp isn't guaranteed to work
7182 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
7184 xmlGetProp, ... -> xmlFree
7185 malloc, strdup -> free
7186 g_new, g_malloc, g_strdup - > g_free
7188 * app/win32print.c : some more error checking, still not
7191 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
7193 * lib/dia_xml.c : msvc still has no unistd.h
7196 * lib/sheets.c : temporary resolved libxml include brokeness
7198 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
7199 changes. Compiles again, but doesn't do anything useful anymore.
7200 (see THE_PROP_TYPE_IS_INTEGRAL)
7202 * **/makefile.msc : updated to use LIBXML2
7204 * lib/libdia.def : reflect api changes
7206 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
7208 * config.h.win32: added defines telling that gtk speaks UTF8.
7209 Hans, I believe this reflects what GTK on Win32 does.
7211 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
7213 * lib/prop_inttypes.c:
7215 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
7218 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
7219 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
7220 search for plug-ins is done.
7221 * app/Makefile.am: made app/run_dia.sh use the // capability. No
7222 need to update this anymore if we get a new plug-in library (or
7225 * lib/dia_xml.c: #include <unistd.h> was missing.
7228 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
7229 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
7232 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
7234 * sheets/civil.sheet: removed duplicate "Danish" entries.
7239 * sheets/Makefile.am:
7241 * Makefile.am: applied the xml-i18n-tools README's instructions.
7243 * po/(da de fr hu nl nn no sl).po: merged the translations from
7244 the sheet files into the .po files. I hope I haven't mixed
7246 * sheets/*.sheet (REMOVED):
7247 * sheets/*.sheet.in (NEW): moved the sheet files sans
7248 translations into .sheet.in files.
7250 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
7251 because we don't yet want to force all translators to work using
7252 UTF-8 editors. We'll want to do that sometime (sooner rather than
7253 later). Okay, I sing a slightly different tune in po/ChangeLog...
7255 * dia.desktop (REMOVED):
7256 * dia.desktop.in (NEW): used also the x18t infrastructure for
7259 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
7260 "official" version of x18t with support for .sheet files is available.
7261 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
7262 "official" version of x18t which doesn't corrupt UTF-8 data in XML
7265 ** yes, we are now using xml-i18n-tools to manage the sheet
7266 translations. For the Win32 build, Nemo stores snapshots of
7267 translated strings next to the CVS snapshots. **
7269 * sheets/checktrans.py: suddenly, some sheets have lots of
7270 translations (objects which existed before sheets, mostly).
7271 Adapted the formatting.
7273 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
7275 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
7276 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
7277 <robert.young@dsto.defence.gov.au>, to fix #59090.
7279 * app/display.c: (ddisplay_scroll): While at it, added some
7280 margin, so that autoscrolling can happen within a margin outside
7281 the diagram's extents.
7285 * app/disp_callbacks.c: Robert "forced" me to go when I usually
7286 don't, namely the app/ directory. So while I was there, I
7287 scratched a long-time itch. If no object has focus, pressing the
7288 space bar will select back the tool which was selected before the
7289 current one (I find this especially useful with "reset after create" !)
7291 * lib/proplist.c: (prop_list_from_single): Renamed
7292 prop_list_singleton() to avoid confusion with the Singleton
7293 pattern (which it definitely is not).
7295 * lib/propobject.c: (object_prop_by_name_type),
7296 (object_prop_by_name): The "flags" parameter was not necessary.
7297 These don't return synthetic properties, but properties built from
7298 a real property description list; therefore, we don't call
7299 make_new_prop() but use the existing property descriptor, which
7300 has perfectly valid (and meaningful) flags.
7302 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
7303 new predicates better reflect the reason why properties exist when
7304 they're created by make_new_prop() or object_prop_by_name().
7306 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
7307 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
7310 * lib/properties.h: reflects all the above changes.
7312 * objects/SADT/arrow.c:
7313 * objects/SADT/annotation.c:
7314 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
7317 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
7320 * lib/proplist.c: (prop_list_singleton):
7321 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
7322 Added these, to simplify interactions of plug-ins with the StdProp
7327 * lib/dia_xml_libxml.h (NEW):
7332 * objects/custom/shape_info.c: A few prototypes were causing
7333 #include hell, because we generally attempt to not pull the whole
7334 libxml header set when we include dia_xml.h. Moved those
7335 prototypes away for the rare cases they're necessary.
7337 2001-08-15 Hans Breuer <hans@breuer.org>
7339 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
7342 * lib/makefile.msc : updated
7344 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
7345 use G_GNUC_FUNCTION instead.
7347 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
7349 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
7350 msvc instead of cleaning missing includes
7352 * plug-ins/wmf/wmf.cpp :
7353 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
7355 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
7362 * objects/custom/shape_info.c:
7363 * plug-ins/shape/shape-export.c:
7364 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
7365 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
7366 removed xmlKeepBlanksDefault(0) in favour for proper
7367 xmlIsBlankNode() testing. Lots of other fixups to use the
7368 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
7369 make libxml1 output correct files.
7371 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
7372 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
7373 packages). If both devel packages are found, the build will stop
7374 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
7376 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
7377 allocate the first handle :-)
7379 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
7380 a cast and a sizeof.</gratuitous>
7382 * objects/custom/custom_object.c: (custom_copy): don't call
7383 text_get_attrbutes if the shape has no text...
7384 (custom_update_data): The info->resize_with_text code was a bit
7385 directive; basically, the shape's bounding box was forced to be
7386 proportional to the text's bounding box.... This fixes #57187.
7388 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
7389 default for info->aspect_ratio; unobfuscated a line about
7390 info->resize_with_text;
7392 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
7394 * lib/properties.h: added comments next to the PROP_TYPEs to tell
7395 which C Property subclass to use.
7397 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
7398 cast-ridden form of setting properties in a list, in favour for
7399 the "local pointers" form. I'll take any better offer...
7401 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
7403 * lib/font.c: fprintf(...) --> fprintf(format...)
7405 * configure.in: added a disabled versioned test for glib.
7406 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
7407 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
7408 g_critical() with a simple g_error(). Proper fix is to implement
7411 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
7415 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
7416 * lib/proplist.c: (find_prop_by_name_and_type):
7417 * lib/prop_basic.c: (make_new_prop), (initialize_property):
7418 * lib/propoffsets.c: (do_set_props_from_offsets),
7419 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
7420 Added a type_quark member to PropDescription, Property and
7421 PropOffset. Used it to implement a safety in
7422 do_[sg]et_props_from_offsets().
7424 * objects/flowchart/diamond.c: the diamond's text was not saved,
7425 and thus not even copied (c&p).
7426 * objects/standard/textobj.c: ditto.
7428 Most of the above changes thanks to Robert Young's testing. Thanks !
7430 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
7432 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
7435 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
7437 * lib/proplist.c (prop_list_from_descs): added a call to
7438 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
7439 too embarrassing to tell.
7441 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
7442 while loop to a for loop, for symmetry with
7443 prop_offset_list_calculate_quarks().
7445 * lib/geometry.h: new inline function, rectangle_equals.
7447 * lib/diagramdata.[ch]: refactored a bit the diagram extents
7448 computation logic, and changed it to always be the union of the
7449 visible layers' extents. This should close #58882 (Debian
7450 #107167), and fixes #55498.
7452 * app/display.c: made the initial visible box more coherent with
7453 the diagram being loaded's extents.
7455 * app/prop_attr.c: don't set the font (from offset) if font_data
7456 is NULL. Two brainos in colorprop_load() and fontprop_load().
7458 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
7460 * lib/properties.[ch]: split in a lot of pieces:
7462 * lib/prop_*.[ch] (NEW): all property types are now first-class
7463 objects, inheriting from the original abstract Property type.
7464 * lib/propdesc.c (NEW): property description handling routines
7465 * lib/propoffsets.c (NEW): property offset handling routines
7466 * lib/proplist.c (NEW): property list handling routines
7467 * lib/propobject.c (NEW): property list <-> object routines
7468 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
7470 * lib/propinternals.h: prototypes for stuff not usually needed by
7471 the outside of StdProps.
7472 * lib/Makefile.am: a lot of new files have been added...
7474 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
7475 BOTH INTERFACES AND RUN-TIME STABILITY.
7477 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
7479 * lib/object.h: removed the incestuous relationship with
7480 properties.h' contents. Now a Property list is a GPtrArray -->
7481 object interface change !
7483 * app/app_procs.c/app_init(): removed a disabled call to a
7484 non-existent routine. Added a call to stdprops_init().
7486 * objects/Makefile.am: disabled the construction of EML. I'm not
7487 touching these until a certain issue is solved (or this module
7490 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
7491 objects to the interface changes.
7493 * app/disp_callbacks.c: killed a warning.
7494 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
7497 The macros PROP_VALUE_* have disappeared. Adapted to using the new
7500 * plug-ins/dxf/dxf-import.c:
7501 * plug-ins/xfig/xfig-import.c:
7502 PROP_VALUE_* macros have been removed. Converted to the new API.
7504 * plug-ins/python/**/*: I gave up converting this; I can't
7505 compile --with-python (problems with object.h defined both by us
7506 and by Python). I'll gladly help whomever cares to fix it !
7507 (or, fix it myself if someone tells me how to compile it).
7509 * configure.in: added the UNICODE-related progress defines.
7512 * lib/geometry.h: On Solaris and perhaps other systems, finite()
7513 is defined in ieeefp.h rather than in math.h. Patch from Andrew
7514 Halper <ashalper@acm.org> with further modifications, isinf() is
7515 provided by -lsunmath (sunmath.h).
7517 * lib/font.c: conditionally disabled Lars' debugging messages.
7518 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
7520 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
7522 * lib/bezier_conn.h:
7523 * objects/standard/bezier.c (bezierline_create):
7524 * lib/bezier_conn.c (bezierconn_init):
7525 Preparations for use of userdata for bezier lines.
7527 * objects/standard/polygon.c:
7528 * objects/standard/create.h:
7531 * plug-ins/xfig/xfig-import.c:
7532 Use of user_data for polygon as well, including adding
7533 polyshape_set_points. Include file for non-interactive
7534 creation of standard objects, objects/standard/create.h
7536 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
7543 More preliminary freetype support. Not at all functional, crashes
7548 * objects/standard/polyline.c:
7549 Support for creating polyline objects with more than two points.
7550 This includes an extra function and a prototype change in the
7551 poly_conn lib object.
7553 * lib/object.c (object_copy): Fixed memory leak of handles and
7556 2001-08-08 Abel Cheung <maddog@linux.org.hk>
7558 * dia.desktop: added traditional Chinese strings
7560 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
7562 * NEWS: updated to reflect build-time dependencies.
7564 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
7565 around obj->ops->describe_props(obj). Quarks are none of an
7566 object's business in the general case...
7567 * lib/text.c: Added an apply_textattr_properties() function to
7568 factor out some common code related to applying a dialog's text
7569 attribute properties to a (Text *) which wasn't edited there.
7570 Ditto for textstr, for the string part of an objet.
7572 * objects/GRAFCET/action.c:
7573 * objects/SADT/annotation.c:
7574 * objects/SADT/box.c: used apply_textattr_properties().
7576 * objects/UML/actor.c:
7577 * objects/UML/branch.c:
7578 * objects/UML/component.c:
7579 * objects/UML/constraint.c:
7580 * objects/UML/small_package.c:
7581 * objects/UML/state.c:
7582 * objects/UML/usecase.c:
7583 * objects/UML/large_package.c:
7584 * objects/UML/note.c:
7585 * objects/UML/node.c:
7586 * objects/UML/message.c:
7587 * objects/UML/classicon.c:
7588 * objects/UML/object.c:
7589 * objects/UML/realizes.c:
7590 * objects/UML/dependency.c:
7591 * objects/UML/implements.c:
7592 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
7593 (most objects were already using StdProps to some extent ; this
7594 systematises usage and removes some dead wood).
7596 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
7597 * objects/UML/uml.[ch]: audited for UTF-8.
7599 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
7600 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
7601 private (ISO-8859-1) definition.
7603 * lib/charconv.c: Added a warning if we didn't run
7604 nl_langinfo(CODESET) but rely instead on a hardcoded default.
7606 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
7609 * app/disp_callbacks.c: added a way for an object to cause an
7610 already realised menu to be destroyed (for instance if it changes
7613 * objects/custom/custom_object.c: used the above to fix #55073.
7615 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7617 * configure.in: Remove 2.50 prereq.
7619 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
7621 * po-checktrans.py: under some circumstances, there was one column
7622 more than what was supposed to be, thus breaking the formatting.
7624 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
7626 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
7628 * NEWS: updated with new stuff since 0.88
7630 * shapes/network/antenna.shape: the text was misplaced ; fixed.
7632 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
7633 firewall router (upon request from Cyril Lacoux
7634 <clacoux@easter-eggs.com>)
7636 * configure.in (didn't rename to configure.ac): autoconf 2.50
7637 constructs were used ; added an AC_PREREQ call to guard against
7640 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
7642 * lib/properties.c: minor clean-ups with the event delivery code.
7644 * EML/instantiation.c: brought this object back from stone and ice
7647 * app/diaconv.c(NEW): added a command-line conversion tool. Still
7648 lacks a man page and correctness. In fact, it doesn't work. Please
7649 see #58196 if you want to finish it.
7651 * lib/message.[ch]: redefined things a little so that a different
7652 message_internal routine could be passed.
7653 applications can use that to fit themselves to the display model.
7655 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
7657 * objects/SADT/box.c:
7658 * objects/GRAFCET/action.c: spelling in property descriptors (name
7660 * objects/SADT/annotation.c: ditto, plus a temporary test of the
7661 event delivery code (try to click on the "click me !" button !).
7664 * lib/properties.[ch]: improved (fixed) support for group event
7665 handlers. Fixed various things from yesterday's code to make it
7666 not too obviously crash.
7668 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
7670 * app/group.c: added delivery of events to the first member of the
7671 group which is able to process it.
7673 * lib/properties.c(prop_desc_lists_intersection): properties
7674 don't match if they don't have identical event handler.
7675 * lib/properties.h: simplified the PropEventHandler signature.
7677 Event delivery code is still untested so far, but should be
7680 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
7682 * lib/properties.[ch]: Added (untested !) property event handler
7683 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
7684 generating such events. This stuff compiles, and should lurk
7685 around silently as long as you don't declare property descriptors
7686 with events (AFAICT).
7687 In object_create_props_dialog() and friends:
7688 attached a single structure with lots of data instead of lots of
7689 little attachments of data to the dialog widget.
7691 * lib/object.h: fixed mild typedef breakage introduced by the above.
7693 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
7695 * lots of files: Changed Font to DiaFont
7696 * */Makefile.am: Added FREETYPE_LIBS
7697 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
7699 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
7701 * configure.in: Added "nn" to ALL_LINGUAS.
7703 2001-07-09 Alex Larsson <alexl@redhat.com>
7705 * app/disp_callbacks.c:
7706 Add gdk_im_ready() calls to XIM code.
7708 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
7710 * lib/properties.[ch]: splitted prop_get_widget() into
7711 prop_get_widget() (gives a widget but doesn't fill it) and
7712 prop_reset_widget() (fills an existing widget with a property's value).
7714 * lib/widgets.[ch]: const enforcement police work.
7716 * shapes/network/antenna.shape: added a connection point at top,
7717 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
7719 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
7721 * intl/*: tested with gettext-0.10.38
7722 * configure.in: moved a macro call around (AM_PROG_CC) to keep
7723 some of autogen.sh from complaining.
7724 * INSTALL: added a warning against gettext older than at least 0.10.36
7726 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
7728 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
7729 AM_ICONV (both provided by gettext)
7731 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
7733 * lib/charconv.c: corrected the degraded mode for when
7734 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
7736 * objects/chronoline/chronoline_events.c: UTF8 compliance.
7738 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
7740 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
7741 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
7742 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
7745 * objects/chronogram/chronoline.c:
7746 * objects/chronogram/chronoref.c: took advantage of the above to
7747 make nicer looking dialogs.
7749 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
7750 from libunicode's internals).
7751 * lib/message.c: convert strings to local encoding prior to
7752 display (UNICODE_WORK_IN_PROGRESS)
7753 * lib/properties.[ch]: convert strings to local encoding prior to
7754 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
7755 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
7756 * lib/stringprerenderer.[ch]: ditto
7758 (lib/text.c has been audited for UTF8, but the size of the changes
7759 make them inappropriate for commit before 0.89)
7761 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
7763 * objects/boolequation.h (<save|load>_boolequation): made the
7764 prototypes for match the .c file.
7766 * samples/grafcet.dia: minor non-conformance with IEC-848
7767 fixed (in the transition from step 100 to step 101).
7769 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
7770 disallow editing of properties if the object is part of a group.
7772 * objects/chronogram/chronoline.c:
7773 * objects/SADT/annotation.c:
7774 * objects/SADT/box.c:
7775 * objects/GRAFCET/step.c:
7776 * objects/GRAFCET/transition.c:
7777 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
7779 2001-06-12 Hans Breuer <hans@breuer.org>
7781 * lib/libdia.def : removed lazyprop exports
7782 * lib/makefile.msc : removed lazyprop.obj
7784 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
7785 and avoid crashes by always creating a custom->text,
7786 when (custom->info->has_text)
7788 * objects/makefile.msc : removed sybase from build
7790 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
7791 ObjectNode is a pointer already, which is what we want
7792 instead of a pointer pointer.
7794 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
7795 and implemented working export for images
7797 * shapes/network/zip-disk.shape : added connection points
7799 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
7801 * objects/SADT/box.c: removed lazyprops for standard props.
7802 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
7803 * objects/chronograms/chronoref.c: ditto
7807 * lib/connpoint_line.c:
7808 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
7809 * lib/properties.[ch]: new property types:
7810 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
7811 - PROP_TYPE_MULTISTRING: same as string, but renders as a
7812 multi-line entry box.
7813 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
7814 in a tabbed-notebook style (this is a bit complicated to use;
7815 see objects/chronograms/chronoline.c for an example).
7817 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
7819 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
7820 * objects/GRAFCET/step.c: ditto.
7821 * objects/GRAFCET/vector.c: ditto.
7822 * objects/SADT/annotation.c: ditto.
7823 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
7825 * lib/properties.[ch]: two more non-visible types
7826 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
7828 * lib/neworthconn.[ch]:
7829 * lib/orthconn.[ch]: added support for manipulation through
7830 standard properties.
7832 * configure.in: removed -fomit-frame-pointer, this seems to
7833 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
7836 * charconv.[ch]: more functions from unicode.h.
7837 get_local_charset() wasn't working properly, fixed now.
7838 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
7841 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
7842 * lib/lazyprops.[ch]: put a big fat warning in.
7844 * app/render_eps.c: one line mysteriously went away, causing a
7845 variable to be used uninitialised....
7847 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
7849 * app/app_procs.c: commented out the call to
7850 bind_textdomain_codeset(): it's premature.
7852 * lib/connpoint_line.c: a NULL point can be given to
7853 connpointline_adjust_count(), in case there's not really a clicked
7856 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
7857 #include order troubles. #included by lib/text.h, so there is no
7858 impact outside lib/.
7859 * lib/properties.[ch]: added support for CONNPOINT_LINE and
7860 (nonvisible) TEXT properties.
7862 * objects/GRAFCET/action.c:
7863 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
7866 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
7867 standard properties code). Grafted a dynamic number of connection
7868 points (heavily inspired from what Vergent does). This is the real
7871 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
7873 * lib/fonts.c: some hardening (mostly g_assert())
7874 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
7876 * app/app_procs.c (app_init): added a call to
7877 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
7878 (UNICODE_WORK_IN_PROGRESS).
7880 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
7882 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
7884 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
7885 (fixes #55863) : some clean-ups in the handling of connection
7886 points. Now the total number of connection points is just a
7887 #define (the proper solution is to retrofit the GRAFCET Vergent's
7888 dynamic behaviour wrt connection points).
7890 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
7892 * app/app_procs.c (app_init): added a call to unicode_init() (only
7893 if HAVE_UNICODE, of course).
7895 * lib/charconv.c: simplified the code which detects the local
7896 charset. No need to use <langinfo.h>, libunicode already takes the
7897 burden of figuring that out. Also, if local charset is utf8, no
7898 conversion will take place.
7899 Exposed a way to get the current charset (similar to
7900 unicode_get_charset() but actually working, hopefully).
7902 * lib/charconv.h: Added a partial non-UTF8 implementation of
7903 unicode.h if !HAVE_UNICODE (actually, all the time for the
7904 moment). The UTF8 implementation is just macros on libunicode (use
7905 the functions prefixed by uni_, as defined by charconv.h, not
7906 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
7907 From now on, all strings which don't *need* to be ASCII should be
7908 utfchar *, not gchar *. Just include charconv.h, let it sort out
7909 the details (such as: "is libunicode available and enabled?")
7911 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
7912 "API" instead of directly libunicode. Removed the now unnecessary
7913 speculative clustering of characters in encoding pages.
7915 * app/render_eps.c: made the local8->utf8 conversions dependent of
7916 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
7917 boundary will be when this WIP is done).
7919 * lib/dia_xml.c (data_point): fixed a format string typo.
7921 * po/POTFILES.in: added all C files from lib/
7923 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
7925 * app/disp_callbacks.c: make sure the objects' connected objects
7926 are updated when the objects' size changes after a keypress event
7929 * configure.in: added a big warning about the possible future
7930 non-optionality of --enable-unicode.
7932 * TODO: removed entries which look like done ; added a few ones
7933 (Bugzilla "enhancement" bugs may be a better way to keep track of
7936 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
7938 * objects/UML/message.c: got rid of #55564 and of message_copy()
7939 by using more standard properties (are the message_state_*()
7940 functions still necessary ?)
7942 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
7945 * objecs/custom/shape_info.c:
7946 * plug-ins/shape/shape-export.c:
7947 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
7948 use xmlChar instead of obsolete CHAR.
7950 2001-06-03 Hans Breuer <hans@breuer.org>
7952 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
7953 * app/commands.c : give the right number of parameters
7954 to diagram_update_menu_sensitivity ()
7956 * app/preferences.c : do proper initialization for DiaPrefsData:
7957 render_bounding_boxes. It would be a real surprise if 'hidden'
7958 properties would have ever worked before.
7959 Don't try to access the widgets of hidden property, it does not
7962 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
7963 it is defined in libdia, but initialized from dia app, which
7964 otherwise gave nice start-up crashes.
7966 * lib/diagramdata.c : initialize the color for rendering bounding
7967 boxes in the Dia range (0 .. 1.0)
7969 * lib/libdia.def : added *_bbox functions for export
7971 * lib/makefile.msc : added new sources
7973 * objects/custom/custom_object.c : use HAVE_UNISTD_H
7975 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
7978 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
7979 removes a translation of menus (in a place where there shouldn't
7980 have been), which gets rid of a waterfall of warnings if LANG!=C,
7981 and a fix to #55047.
7983 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
7985 * lib/charconv.c : added #include <errno.h>
7987 * app/dia_embedd.c : updated menus_get_item_from_path usage
7989 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
7991 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
7992 Added a special case for Symbol strings, so that they're not
7993 re-encoded using the LN encoding (we use the bare Adobe encoding
7996 * objects/custom/custom_object.c: Now that #52912 is fixed,
7997 I could remove the ugly hack I wrote to squash the shape bounding box
7998 problem shown by Ben A. Hetland a few months ago, and fix it
8001 * lib/text.c: enlarged a little the bounding box to account for
8002 the cursor in rightmost position.
8004 * lib/diagramdata.c: draw bounding boxes only if the relevant
8005 variable is set (as before), but also only if the rendere is
8006 interactive (ie, don't bother rendering bounding boxes on
8008 Made the bounding box's line width a fixed value, 0.01
8010 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
8011 and assymmetric control beziers. Implemented ellipse_bbox().
8013 * Makefile.am: incantations to get po/dia.pot build, as suggested
8014 by Hubert in #55075.
8016 * shapes/network/computer.shape: typo fixed.
8017 * shapes/network/antenna.shape: fixed #55074 (antenna is now
8018 properly translucent, except for its base where it makes sense. It
8019 doesn't look that ugly anymore if transparent mode is on).
8021 * configure.in: --enable-unicode is now the default. This
8022 still currently affects only printing.
8024 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
8026 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
8027 The overshoot code is buggy, and the bounding boxes for polyshapes
8028 looks a bit cheezy. To be done ASAP.
8030 2001-05-26 James Henstridge <james@daa.com.au>
8032 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
8033 This should clear up some of the build problems people have been
8036 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
8038 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
8041 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
8042 box code (beginning with lines, polylines and polybeziers), into a
8043 more generic facility. While at it, a better shot at correctly
8044 computing the bounding box of a Bezieroid (should take care of
8045 #53424, #51233 and of course is part 1 of #52912).
8047 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
8048 into a hidden preference (set render_bounding_boxes in diarc).
8049 * app/preferences.[ch]: Added support for hidden preferences.
8051 * lib/geometry.[ch]: sprinkled with "const" modifiers.
8053 * lib/bezier_conn.[ch]:
8054 * lib/beziershape.[ch]:
8055 * lib/connection.[ch]:
8057 * lib/poly_conn.[ch]:
8058 * lib/orth_conn.[ch]:
8059 * lib/neworth_conn.[ch]:
8060 * lib/polyshape.[ch]: adapted to take advantage of
8061 boundingbox.[ch] instead of relying on private (duplicate) code.
8064 * object/GRAFCET/action.c:
8065 * objects/GRAFCET/condition.c:
8066 * objects/GRAFCET/vergent.c:
8067 * objects/GRAFCET/vector.c:
8068 * objects/SADT/annotation.c:
8069 * objects/SADT/arrow.c:
8070 * objects/ER/participation.c:
8071 * objects/UML/constraint.c:
8072 * objects/UML/implements.c:
8073 * objects/UML/lifeline.c:
8074 * objects/UML/message.c:
8075 * objects/UML/realizes.c:
8076 * objects/UML/generalization.c:
8077 * objects/UML/association.c:
8078 * objects/UML/dependency.c:
8079 * objects/FS/flow-ortho.c:
8080 * objects/network/bus.c:
8081 * objects/standard/arc.c:
8082 * objects/standard/bezier.c:
8083 * objects/standard/beziergon.c:
8084 * objects/standard/line.c:
8085 * objects/standard/polygon.c:
8086 * objects/standard/zigzagline.c:
8088 * objects/standard/polyline.c: Some *BBExtras structures changed
8089 names while moving to boundingbox.[ch]. A trivial mass-renaming.
8091 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
8093 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
8094 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
8096 * app/display.c (ddisplay_update_scrollbars): from Patrick's
8097 suggestion, remove the extra scrollable area (it was only visible
8098 to the scrollbars). This is experimental.
8100 * objects/custom/custom_object.c: If a shape's icon file doesn't
8101 exist, warn and substitute a default icon, instead of crashing.
8104 * objects/network/network.c:
8105 * shapes/network/modularswitch.(shape|xpm) (NEW):
8106 * shapes/network/printer.(shape|xpm) (NEW):
8107 * shapes/network/genmonitor.(shape|xpm) (NEW):
8108 * shapes/network/computer.(shape|xpm) (NEW):
8109 * shapes/network/Makefile.am: four less objects, four more shapes.
8110 These were the last known RenderObjects. (phew !)
8114 * objects/sybase/Makefile.am:
8115 * objects/network/Makefile.am: Removed the older Renderobjects
8116 from the build, and their infrastructure (not yet deleted,
8119 * shapes/network/sceadplug.shape:
8120 * shapes/network/antenna.shape:
8121 * shapes/network/modem.shape:
8122 * shapes/network/hub.shape:
8123 * shapes/network/rj45plug.shape:
8124 * shapes/sybase/client.shape:
8125 * shapes/sybase/dataserver.shape:
8126 * shapes/sybase/ltm.shape:
8127 * shapes/sybase/repserver.shape:
8128 * shapes/sybase/rsm.shape:
8129 * shapes/sybase/stableq.shape: Minor corrections (line widths were
8130 ten times too narrow).
8132 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
8134 * objects/network/network.c:
8135 * shapes/network/sceadplug.(shape|xpm) (NEW):
8136 * shapes/network/antenna.(shape|xpm) (NEW):
8137 * shapes/network/modem.(shape|xpm) (NEW):
8138 * shapes/network/Makefile.am: four less objects, four more shapes.
8141 * lib/diagramdata.c:
8143 * lib/string_prerenderer.[ch] (NEW):
8144 Add a new renderer primitive, predraw_string() (does nothing, to be
8145 used as a hook to optimise the character encodings if needed).
8146 Added a string pre-renderer, which can be viewed as a filter
8147 renderer (to route draw_string() to predraw_string() and ignore
8148 the rest, in a first rendering pass)
8150 * app/render_eps.c: Took advantage of the above to make wholly
8151 optimised Postscript encoding page(s), even (especially) with
8152 non-latin1 code (HAVE_UNICODE must be true).
8154 (#53512 in fact is wholly resolved).
8156 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
8158 * lib/charconv.c: steps towards resolution of #53512 (inspired by
8159 Alexey Novodvorsky <aen@logic.ru>'s patch).
8161 * app/menus.c (dia_menu_signal_proxy): checked that the signal
8162 handler is not NULL before transferring control to it... (fixes #52836)
8164 * app/app_procs.c (app_init): removed non-constant initialiser
8167 * objects/custom/custom_object.c:
8168 * objects/custom/shape_info.[ch]:
8169 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
8170 <skh@mathstar.com>. This add support for a <svg:text> shape
8171 element, and some related style properties (font, font height,
8174 * doc/custom_shapes: a precision about the meaning of case in a
8175 SVG path (closes #52364)
8177 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
8178 fixed by <drk@sgi.com>)
8180 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
8182 * objects/network/network.c:
8183 * shapes/network/Makefile.am:
8184 * shapes/network/hub.(shape|xpm) (NEW):
8185 * shapes/network/flash.(shape|xpm) (NEW):
8186 * shapes/network/rj45plug.(shape|xpm) (NEW):
8187 More shapes, less renderobjects.
8189 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
8191 * plug-ins/svg/render_svg.c: typo made exported ellipses
8192 corrupted (zero Y pseudo-radius).
8194 * objects/network/network.c:
8195 * objects/network/disc.c:
8196 * shapes/network/disc.(shape|xpm): Converted the first
8197 Renderobject into a shape. Normally, old diagrams should reload
8198 without problems (please check this against your diagrams). More
8199 flexibility should be gained that way. I intend to hunt and
8200 eradicate all renderobjects as I can commit cycles to that.
8202 * objects/Makefile.am:
8205 * objects/sybase/sybase.c:
8206 * shapes/sybase/Makefile.am(NEW):
8207 * shapes/sybase/client.(xpm|shape) (NEW):
8208 * shapes/sybase/dataserver.(xpm|shape) (NEW):
8209 * shapes/sybase/ltm.(xpm|shape) (NEW):
8210 * shapes/sybase/repserver.(xpm|shape) (NEW):
8211 * shapes/sybase/rsm.(xpm|shape) (NEW):
8212 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
8213 renderobjects into shapes. The Sybase objects are now not compiled
8214 anymore, and ready to be nuked if nobody objects in the next few weeks.
8218 * app/disp_callbacks.c:
8220 * app/interface.[ch]:
8222 * app/modify_tool.c:
8223 * app/preferences.[ch]:
8224 * app/recent_files.c:
8225 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
8226 a menu bar reflecting the popup menu, to each display window. This
8227 is optional (changing the preference currently doesn't affect
8228 already opened windows; a few other rough edges to cut).
8230 * plug-ins/wpg/wpg.c:
8231 * plug-ins/xfig/xfig-import.c:
8232 * plug-ins/python/pydia-property.c:
8233 * plug-ins/python/pydia-properties.c:
8234 * plug-ins/python/pydia-geometry.c:
8235 * plug-ins/pstricks/render_pstricks.c:
8237 * objects/EML/dbox.c:
8238 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
8241 * lib/ps-utf8.c: improved the clustering of alphabetic character
8242 definitions in custom encodings pages.
8244 2001-05-02 Hans Breuer <hans@breuer.org>
8246 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
8247 of 'obj_bb' to PROP_TYPE_RECT
8249 * objects/custom/custom_object.c : take all quarks into account,
8250 not only 4 as copy&paste suggests
8252 * objects/uml/objects.c : completed the implementation of the
8253 property api to avoid reading of totally bogus data. Removed
8254 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
8255 there was too much but too less ...
8257 The above changes removed all known crashes (mentioned below)
8258 from the Property API. Property access is still incomplete though.
8260 * objects/flowchart/box.c :
8261 * objects/flowchart/diamond.c :
8262 * objects/flowchart/ellipse.c :
8263 * objects/flowchart/parallelogram.c :
8264 * objects/uml/classicon.c :
8265 * objects/uml/state.c : calculate number of quarks from quark array
8266 size instead of using hardcoded values for consistence and to avoid
8267 future bugs like the above
8269 * objects/eml/nlist.c : include <string.h> for strcmp()
8271 * lib/dia_xml.c : relax g_warning for values, which
8272 appear to be too small. There is nothing which prevents
8275 * plug-ins/python/pydia-geometry.c : changed stringifying of
8276 geometry objects accept BezPoint back to %f, which does not
8277 crash anymore, because all the data is intialized now and it
8278 simply is more readable than %e ...
8280 * plug-ins/python/python-startup.py : removed dependency
8281 to PyGtk, because it isn't required here and probably won't
8282 in i.e.: export filters.
8284 * plug-ins/python/gtkcons.py : create the gtkoutfile even
8285 if sys.stderr.fileno() isn't supported
8287 * app/makefile.msc : make version 0.88
8288 * plug-ins/makefile.msc : make version 0.88 an added new
8291 2001-05-11 James Henstridge <james@daa.com.au>
8293 * NEWS: remember to add news items this time.
8295 * dia.spec: update spec file for 0.88 release.
8297 * configure.in: up version number to 0.88
8299 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
8300 preventing any of the useful python scripts from being
8303 * sheets/Makefile.am (sheet-translation-report): fix bustage I
8304 introduced in my fixups for the 0.87 release :(
8306 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
8308 * plug-ins/xfig/xfig-import.c: Finally got groups working.
8310 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
8312 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
8315 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
8318 * lib/Makefile.am: fix makefile breakage which led to not
8319 including ps-utf8.[ch] in the released tarballs.
8321 2001-05-09 James Henstridge <james@daa.com.au>
8323 * Makefile.am (core-translation-report): dist scripts needed for
8324 this target, and change to $(srcdir) before running.
8326 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
8327 files aren't automatically included in the tarball by automake
8328 because they could be generated files.
8330 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
8332 * doc/en/Makefile.am (install-data-hook): fix up where graphics
8335 * configure.in: up version number to 0.87
8337 * plug-ins/python/*.py: no longer necessary to explicitly set
8338 sys.argv, as python.c does it for us now (like it should).
8340 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
8343 * plug-ins/python/python-startup.py: startup script that imports
8344 all modules in $(datadir)/dia/python and ~/.dia/python.
8346 * plug-ins/python/python.c (dia_plugin_init): change so that it
8347 only runs the $(datadir)/dia/python-startup.py script. Make sure
8348 that sys.argv and __main__.__file__ are set when calling the
8351 * plug-ins/python/Makefile.am: update makefile. Make it install
8352 gtkcons.py plugin. I haven't set any other plugins to install, as
8353 they look like they are mainly for debugging purposes.
8355 * configure.in: add tests to detect if python is available, so we
8356 can build the python plugin. Only run if --with-python passed to
8359 2001-05-08 James Henstridge <james@daa.com.au>
8361 * acinclude.m4: add macros for detecting python.
8363 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
8364 at GNOME_APP_UI_SUBTREE entries.
8365 (menus_add_path): function to add a menu item to the menubars.
8366 Uses a hash table to keep track of extra menu items it adds. Also
8367 notifies the item factory about the entries so that accels can be
8369 (menus_add_path): implement gtk only version.
8370 (menus_init): use menus_add_path() to add the menu.
8371 (plugin_callback): simplify.
8373 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
8375 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
8377 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
8379 * plug-ins/xfig/xfig-export.c:
8380 * plug-ins/xfig/xfig-common.c:
8381 * plug-ins/xfig/xfig-import.c:
8382 * plug-ins/xfig/xfig.c:
8383 * plug-ins/xfig/xfig.h:
8384 * app/Makefile.am: Added support for exporting to Fig format
8385 (except splits, which are less powerful in Fig). Some refactoring
8388 2001-05-02 Hans Breuer <hans@breuer.org>
8390 * plug-ins/python/debug_objects.py : added another
8391 test to get massive crashes from the Property API due
8392 to unintialized data.
8394 * app/menu.c : the callback_action wasn't incremented
8395 (should have checked my last optimization). Now more
8396 than one plug-in callback is supported again.
8398 * plug-ins/python/pydia-geometry.c : avoid crashes from
8399 glib, when trying to g_strdup_printf unintialized floats.
8401 * plug-ins/python/pydia-property.c : avoid crashes from
8402 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
8404 2001-05-01 Hans Breuer <hans@breuer.org>
8406 * objects/makefile.msc : added eml
8407 * objects/eml/instantiation.c : initialize 'inst' pointer
8408 before using, zero initialization for objects
8409 * objects/eml/interaction-ortho.c :
8410 * objects/eml/interaction.c : zero initialization for objects
8412 * app/menus.c : removed Gimp mru stuff which slipped in at
8413 2000-08-15, was never activated and will never be needed,
8414 because of Steffens recent file list patch added at 2001-01-05.
8416 * objects/eml/*.c : some more zero initialization of objects
8417 to avoid infinite (uninitialized) bounding boxes
8419 Implemented a callback api which allows plug-ins to register
8420 menu call backs. Dia for Gnome should compile, but will need
8421 some extra tweaking to make it work because I can't test it.
8423 * plug-ins/python/pydia-error.h :
8424 * plug-ins/python/pydia-render.c : moved Pxthon function return
8425 value handling from pydia-render.c to pydia-error.h, to make it
8427 * plug-ins/python/diamodule.c : implement callback function
8428 registration from and relaying to Python code
8430 * app/menus.c : register and use plug-in menu callbacks
8432 * lib/filter.[hc] : implement filter_register_callback() and
8433 filter_get_callbacks() for the above
8434 * lib/libdia.def : export them
8436 * plug-ins/python/debug_objects.py (new file):
8437 sample using the above
8439 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
8441 * plug-ins/shape/shape-export.c (new_shape_renderer):
8442 The name of a shape is now taken from the dir, to conform with
8445 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
8447 * app/properties.c (properties_show): Added title containing
8448 object type, plus (hopefully) fix of the ghost properties dialog.
8450 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
8452 * app/display.c: remove the display idle handler in case we
8453 destroy the ddisplay (caused crashes in ddd, probably random
8458 * Makefile.am: hack around gettext-0.10.36's new "features".
8460 * lib/properties.[ch]: added new function object_copy_props().
8461 Added new property type PROP_TYPE_ENDPOINTS
8463 * lib/connection.h: added support for load/saving through the
8464 properties interface.
8466 * lib/object.[ch]: object_load/save/copy_using_properties()
8467 support functions (code factorisations).
8469 * objects/GRAFCET/boolequation.c: check against null values in
8470 boolequation_set_value() and boolequation_destroy().
8472 * objects/GRAFCET/transition.c: Converted from lazyprops to
8473 standard properties. 31% less (x86) code !
8475 * objects/GRAFCET/condition.c: also converted from lazyprops to
8476 standard properties. Also killed lots of code.
8478 2001-04-13 Hans Breuer <hans@breuer.org>
8480 * plug-ins/wmf/wmf.cpp : changed text conversion from
8481 g_utf8_utf16 to g_convert usage. The latter function is already
8482 available in tml's last "official" Gtk+ version (2000-12-26).
8483 This change allows to use recent Dia with either the official
8484 version or the latest cvs "gtk-1-3-win32-production"-branch.
8486 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
8488 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
8489 * app/disp_callbacks.c:
8490 - Allow submenus in DiaMenus.
8491 - Don't require DiaMenu.title to be non-null (so that
8492 submenus aren't required to have titles)
8494 * objects/FS/function.c:
8495 - object menu now has submenus, an almost complete list of
8496 standard-basis verbs, and a start on nouns.
8497 - box padding, dash length, and other visual attributes are
8498 scaled by the font size... eventually font height will be
8499 a function property.
8500 - draw functions with smaller font to make initial view hold
8501 a reasonable number of functions.
8503 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
8506 * sheets/chronogram.sheet:
8507 * sheets/jigsaw.sheet:
8508 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
8509 Wieers <dag@wieers.com>
8511 2001-04-13 Hans Breuer <hans@breuer.org>
8513 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
8514 to ensure that all the deinitialization is only done once. Fixes
8515 recent app exit crash on win32
8517 * lib/dia_xml.c : provide isinf() replacement for msc which does only
8520 * lib/libdia.def : updated
8522 * objects/makefile.msc : added wanlink.c
8524 * objects/network/wanlink.c : added M_PI_2 definition for poor
8525 platforms which don't have one
8527 * objects/standard/arc.c :
8528 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
8529 initialized which led to rather huge bounding boxes (try Ctrl^A on
8530 diagrams with Arcs or ZigZagLines).
8531 * objects/*/*.c : to avoid further bugs like the above changed all
8532 object initializations to g_malloc0 or g_new0
8535 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
8537 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
8538 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
8540 * objects/UML/class.c:
8541 * objects/UML/usecase.c:
8542 * objects/UML/large_package.c:
8543 * objects/UML/message.c:
8544 * objects/UML/object.c:
8545 * objects/UML/lifeline.c:
8546 * objects/FS/flow.c:
8547 * objects/FS/flow-ortho.c:
8548 * objects/FS/function.c:
8549 * objects/custom/custom_object.c:
8550 * objects/GRAFCET/vergent.c:
8551 * objects/chronogram/chronoref.c:
8552 * objects/SADT/box.c:
8553 * objects/SADT/annotation.c:
8554 * plug-ins/dxf/dxf-import.c:
8555 * plug-ins/xfig/xfig-import.c:
8556 * plug-ins/wpg/wpg.c:
8559 * app/display.c: /* certainly more WIP than dead code there */
8560 Unused variables, unused static function definitions, forgotten or
8561 incomplete prototypes added or fixed, lack of const or unwanted const,
8562 etc. (mostly clean-ups of leftovers of the pre-properties era).
8563 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
8566 * app/lineprops_area.c: More of the same. Missing prototypes
8567 added, and functions unused outside made static.
8569 * app/recent_files.c:
8571 * app/defaults.c: some variables are used only when doing a GNOME
8574 * app/magnify.c: missing #include <stdlib.h>.
8576 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
8578 These are a lot of clean-ups (by the way, this compiles and runs
8579 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
8580 for DEAD_CODE, and if it's yours, judge it.
8582 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
8584 * plug-ins/dxf-import.c: some progress with the arcs; still some
8585 clean-ups to do and line width scaling issues to figure out.
8587 * objects/standard/arc.c: start_point and end_point properties
8588 (duplicated from standard/line.c)
8590 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
8593 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
8595 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
8596 preliminary support for arcs (doesn't work). Circles and ellipses are
8597 now transparent. Coordinate and width scaling are now a common
8598 static constant (probably before morphing into a preference).
8600 * sheet/checktrans.py: improved error reporting. Made checktrans
8601 count lack of <name xml:lang="code"> as a lack of translation for
8602 language "code" (no, it's not a plot to bring down other
8603 language's scores !)
8605 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
8606 in the header, and have <name xml:lang="fr"> components.
8608 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
8610 * objects/custom/custom_object.c: temporary hack to fix the shape
8611 bounding box reported by Ben A. Hetland. Proper fix isn't .87
8612 material, see bugzilla #52912.
8614 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
8616 * objects/standard/image.c (get_directory): Now uses
8617 G_SEPARATOR_CHAR_S instead of "/"
8619 * sheets/network.sheet:
8620 * sheets/Logic.sheet:
8621 * sheets/Flowchart.sheet:
8622 * sheets/Electric.sheet:
8623 * sheets/Circuit.sheet:
8625 * sheets/Pneumatic.sheet:
8628 * sheets/GRAFCET.sheet:
8630 * sheets/chronogram.sheet:
8631 * sheets/civil.sheet:
8632 * sheets/network.sheet:
8633 Danish translations.
8635 * objects/standard/image.c (get_directory): Changed get_directory
8636 to use g_dirname to find the directory part.
8638 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
8641 * sheets/Electric.sheet:
8642 * sheets/Flowchart.sheet:
8643 * sheets/Logic.sheet:
8644 * sheets/network.sheet: More Dutch translations from Dag Wieers.
8646 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
8648 * sheets/checktrans.py: now emits a warning when two descriptions
8649 for a single language code are found.
8652 * sheets/Makefile.am: -translation-reports now also depend on their
8655 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
8657 * sheets/Circuit.sheet:
8658 * sheets/Contact.sheet:
8659 * sheets/Logic.sheet:
8660 * sheets/chronogram.sheet:
8661 * sheets/sybase.sheet:
8662 Dutch translations from Dag Wieers <dag@wieers.com>
8664 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
8666 * po-checktrans.py: Now shows the detailed counts alongside the
8667 percentage of translations.
8669 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
8672 * po-checktrans (NEW):
8673 * po-checktrans.py (NEW): builds core-translation-report:
8674 percentages of core (gettext) translations done [Not placed into
8675 po/ where that should belong, because of integration fear^Wissues
8678 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
8679 sheets/sheet-translation-report probably ought to be copied on the
8680 user's /usr/share/doc/dia (or equivalent) directory.
8682 * sheets/Makefile.am: sheet-translation-report now a simple
8683 EXTRA_DIST; make install won't install it by default.
8685 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
8687 * app/preferences.c: changed the default grid colour to something
8690 * shapes/SDL/*.shape:
8691 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
8692 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
8693 DIA FILES (well, for files using SDL), see the mailing list
8694 archive "SDL (ab)using the global shape namespace" for a script to
8697 * sheets/SDL.sheet: translated into French
8698 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
8700 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
8702 * lib/dia_xml.c: made data_point() more paranoid
8704 * sheets/Makefile.am:
8705 * sheets/checktrans (NEW):
8706 * sheets/checktrans.py: Made checktrans handle more gracefully the
8707 absence of python and python-xml packages, and made the error
8708 message more helpful.
8710 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
8712 * lib/render_object.c (new_render_object): Made initial handles
8713 behave like on most other objects.
8715 * app/load_save.c (read_objects): Fixed premature free'ing ofr
8716 typestr causing garbage.
8718 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8720 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
8721 accouting for handle ordering through copy and save. (#51479)
8723 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
8725 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
8727 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
8729 * sheets/Circuit.sheet
8731 * sheets/network.sheet: Updated German translations
8733 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
8736 * app/lineprops_area.c: The return of the revenge of the arrow
8737 heads. Now all types covered by ISO 10303-201 should be covered.
8739 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
8741 * sheets/Flowchart.sheet: translations in probably Hungarian were
8742 a victim of cut-n-paste from the German one. Fixed (hopefully).
8743 * sheet/UML.sheet: translation in probably Norwegian was a victim
8744 of cut-n-paste from the French one. Fixed (hopefully).
8745 * sheets/Logic.sheet: French translation not tagged with
8748 * sheets/checktrans.py:
8749 * sheets/Makefile.am: new file, sheet-translation-report, to be
8750 installed along the sheets, show how much of them has been
8751 translated into which language (I wish the result was prettier...)
8753 * po/README: most translators don't read this file, but anyway...
8755 * sheets/.cvsignore:
8756 * objects/network/.cvsignore: the usual negotiation with CVS.
8758 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
8760 * sheets/*.sheet: French translations
8762 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
8764 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
8766 ** objects/network/network.c:
8767 ** objects/network/wanlink.c:
8768 ** objects/network/pixmaps/wanlink.c:
8769 ** sheets/network.sheet:
8770 ** objects/network/Makefile.am: a better object to use instead of
8771 the older WAN Connection.
8773 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
8775 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
8778 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
8779 Arc; kept the C file name (because CVS wouldn't like it), and
8780 still registering the older object name (but advertising the newer
8781 one in sheets/GRAFCET.sheet).
8783 2001-03-24 Hans Breuer <hans@breuer.org>
8785 * app/dia.def : some plug-ins (currently only python, xfig) are using
8786 functions from the dia executable. To get them working these functions
8787 need to be explicit exported on win32. IMO the much cleaner way would
8788 be to move these functions to libdia, but that would require some
8789 long term restructuring ...
8791 * lib/libdia.def : updated
8793 * plug-ins/makefile.msc : build xfig plug-in
8795 2001-03-24 Hans Breuer <hans@breuer.org>
8797 * app/diagram.c : g_strdup (dia->filename) because it will be
8800 * app/display.c : set ddisp->renderer to NULL after destruction.
8801 This may solve or help to identify erroneous access to it after
8804 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
8805 get 'umlauts' working
8807 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
8809 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
8810 were reversed... (look for the patch, and drink a beer to my
8813 2001-03-23 Hans Breuer <hans@breuer.org>
8815 * app/app_procs.c : don't g_error () if the config directory
8816 can't be created (at least not on windoze) because it's quite
8817 common that the user don't read or understand the FAQ ...
8819 * app/cursor.c : use ddisplay_active () instead of active_display
8822 * app/display.[hc] : made active_display var static and provide
8823 an accessor funtion ddisplay_active_diagram ()
8825 * app/dia-props.c : don't store the active_diagram, but ask
8826 for it everytime it needed.
8828 * lib/properties.h : #include "intl.h"
8830 * lib/makefile.msc : need to take care of inclusion order to
8831 avoid clashes with gtk+2.0's gdk-pixbuf
8833 * objects/makefile.msc : added uml/stereotype.c to build
8835 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
8837 * **/*.c: Added config.h to the remaining .c files, and changed
8838 all to be <config.h>.
8840 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
8845 * app/lineprops_area.c: added new arrow types with double
8848 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
8850 * shapes/Civil/civil_gas_bottle.xpm
8851 * shapes/Civil/civil_gas_bottle.shape
8852 * sheets/civil.sheet
8853 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
8856 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
8858 * objects/custom/shape_info.c (load_shape_info):
8859 * objects/custom/shape_info.h:
8860 * objects/custom/custom_object.c (custom_update_data):
8861 Better support for text outside the box -- new attributes 'resize'
8862 and 'align' for text entity. Align not fully supported yet.
8864 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
8866 2001-03-20 James Henstridge <james@daa.com.au>
8868 * app/interface.c (display_data_received_callback): comment out
8871 2001-03-19 James Henstridge <james@daa.com.au>
8873 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
8875 * objects/UML/realizes.c: similar here.
8877 * objects/UML/implements.c: similar here.
8879 * objects/UML/component.c: similar here.
8881 * objects/UML/generalization.c: same here.
8883 * objects/UML/dependency.c: allow NULL for ->name and
8884 ->stereotype. This fixes a number of problems in loading saved
8887 * lib/properties.c: various changes so that NULL string properties
8890 * objects/standard/line.c (line_update_data):
8891 line->extra.start_long and line->extra.end_long were not being
8892 initialised. This fixes potential problems with the bounding box
8893 of "Standard - Line" objects.
8895 2001-03-19 Hans Breuer <hans@breuer.org>
8897 * app/commands.c : added win32 specific code to display a html
8898 file. #include "text.h" for text_delete_all prototype.
8901 * app/dia.rc : (new) to give Dia win32 an icon
8903 * app/win32print.[ch] : new files to support direct postscript
8904 file printing on win32. Beware: it *requires* a ps-printer!
8906 * app/paginate_psprint.c : disable the signal code for win32 build
8907 and added small specific changes to support win32print.
8909 * app/makefile.msc : added win32print and linking shell32.lib
8911 * lib/libdia.def : updated
8913 2001-03-18 Kevin Breit <battery841@mediaone.net>
8915 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
8918 2001-03-17 James Henstridge <james@daa.com.au>
8920 * app/paginate_psprint.c (diagram_print_ps): add code that traps
8921 SIGPIPEs during printing. This gets rid of a number of crashes
8922 caused by printing (eg. typing an incorrect print command).
8924 * dia.spec (%install): gzip the manpage.
8926 * lib/beziershape.c (beziershape_save): fix off by one error in
8927 beziershape save code, which was adding an extra segment to the
8930 * app/menus.c: add a separator in the gnome version of the help
8933 * app/app_procs.c (app_init): add a --nosplash argument which
8934 disables the splash screen.
8936 * app/dia_embedd.c (main): don't leave the splash screen open for
8937 embeddable component.
8939 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
8940 didn't seem to be showing the splash screen like expected, so I
8941 have replaced it with some code that calls gtk_main() until the
8942 first exposure of the window.
8944 2001-03-16 James Henstridge <james@daa.com.au>
8946 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
8948 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
8951 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
8953 * app/Makefile.am (dia_core_files): remove splash.h from file
8954 list, as it doesn't exist.
8956 * doc/en/Makefile.am (uninstall-local): remove the docdir on
8959 * doc/Makefile.am (uninstall-local): target to remove the C
8962 * dia.spec (%files): include the documentation in the package.
8964 * app/menus.c (toolbox_menu_items): add menu item for manual,
8965 which calls help_manual_callback.
8967 * app/commands.c (help_manual_callback): find help file and load
8968 netscape to view it.
8970 * app/commands.h: add prototype for help_manual_callback()
8972 * doc/Makefile.am (helpdir): similar here.
8974 * doc/en/Makefile.am (helpdir): make the helpdir
8975 $(pkgdatadir)/help/en in the non gnome case.
8977 * configure.in (HAVE_GNOME): add conditional.
8979 * doc/en/Makefile.am: handle the graphics in a more general way,
8980 so it is easier for Kevin to add them to the build (just add them
8981 to the GRAPHICS var).
8983 * app/Makefile.am (embed_extra_print_files): make the case of
8984 building without gnome-print support but with bonobo support work.
8985 dia-embedd needs to be include the gnome-print
8987 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
8989 * samples/Makefile.am: included all samples in the distribution....
8991 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
8993 * configure.in: removed premature test for DPS. Added -*- m4 -*-
8994 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
8995 vanished, removed it from ALL_LINGUAS.
8997 * lib/charconv.[ch] (NEW): a very small wrapper around
8998 unicode_iconv to convert strings between utf8 and local charset
8999 (actually, ISO-8859-1, though one can do
9000 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
9002 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
9003 library to help build Postscript streams which use as many custom
9004 font encodings as necessary to correctly represent all characters
9005 used (testing from users with non-latin1 and/or more than 256
9006 characters in routine use *very* welcome).
9008 * app/Makefile.am, lib/Makefile.am: integrated these into the
9011 * shapes/Logic/.cvsignore (NEW): .cvsignore
9013 * app/render_eps.h: forwarded some changes Lars forgot to include.
9014 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
9017 2001-03-08 Kevin Breit <battery841@mediaone.net>
9019 * doc/en/home_network.png: Added file.
9020 * doc/en/line_props.png: Added file.
9021 * doc/en/usage-objects.sgml: Added two graphics to file.
9022 * doc/en/usage-quickstart.sgml: Added one graphic to file.
9024 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
9026 * app/grid.h: Place comment around text after #endif.
9027 * lib/bezier_conn.c: #include <string.h>.
9028 * lib/beziershape.c: #include <string.h>.
9029 * lib/connpoint_line.h: Comment after #endif.
9030 * lib/dia_dirs.c: #include <string.h>.
9031 * lib/element.c: Same.
9032 * lib/lazyprops.c: #include <config.h> and "intl.h".
9033 * lib/lazyprops.h: Comment out text after #endif.
9034 * lib/neworth_conn.c: #include <string.h>
9035 * lib/orth_conn.c: Same here.
9036 * lib/poly_conn.c: Here too.
9037 * lib/polyshape.c: And here.
9038 * lib/properties.c: Remove #include "intl.h" from here and add
9039 an array of static strings to work around bug in gettext that
9040 makes it miss strings in a #define body.
9041 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
9042 * objects/GRAFCET/boolequation.h: Same here.
9043 * objects/chronogram/chronoline_event.h: Add prototype for
9046 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9048 * objects/FS/function.c:
9049 * objects/FS/flow.c:
9050 * objects/FS/flow-ortho.c:
9051 Updated to use properties.
9053 2001-03-03 James Henstridge <james@daa.com.au>
9055 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
9056 button labels when creating them.
9058 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9060 * objects/UML/actor.c
9061 * objects/UML/realizes.c
9062 * objects/UML/implements.c
9063 * objects/UML/generalization.c
9064 * objects/UML/dependency.c
9065 * objects/UML/constraint.c
9066 Updated to use properties.
9068 * objects/UML/stereotype.c
9069 * objects/UML/stereotype.h
9070 Generalized to any kind of bracketting.
9072 2001-02-28 James Henstridge <james@daa.com.au>
9074 * app/menus.c: add help entry to the help menu. Need to get this
9075 working for the non GNOME case as well (maybe put help under
9076 $(datadir)/dia/help for non GNOME?)
9078 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
9080 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
9081 this element so that we get a meaningful filename in the html
9084 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
9087 * configure.in (DB2HTML): add a check for the db2html program, and
9088 set an automake conditional if it is found.
9090 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
9091 and descend into doc/ directory while building.
9093 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
9094 we need more complex rules for building the docs.
9096 2001-02-25 Hans Breuer <hans@breuer.org>
9098 * config.h.win32 : some cleanup
9100 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
9101 are deprecated since glib-1.3.2. Sorry needing to use them
9102 contionally, but there is no glib-1.2 for win32
9104 * app/recent_files.c : use g_strescape (params) conditionally
9106 * lib/connection.c : include string.h for memcpy
9108 * lib/geometry.h : added some stuff for compatibility with
9109 msvc, which previously came from included config.h
9111 * lib/libdia.def : updated
9113 * objects/makefile.msc : updated
9115 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
9116 'extra' used without having been initialized
9118 * objects/network/bus.c(658) : initialize 'extra'
9120 * plug-ins/makefile.msc : updated
9122 * plug-ins/cgm/cgm.c :
9123 * plug-ins/pstricks/render_pstricks.c :
9124 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
9127 * plug-ins/python/python.c : use HAVE_DIRENT_H
9129 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9131 * lib/connection.c (connection_update_boundingbox):
9132 Made the BB shrink on right and lower sides, too.
9134 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
9136 * */*.c: #incude <config.h> at the top.
9137 * */*.h: Remove include of "config.h" since it should only
9138 be included in .c files and at the very top for things to
9140 * sheets/*.sheet: Updated Norwegian translations.
9142 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9144 * objects/UML/small_package.c:
9145 * objects/UML/class.c:
9146 * objects/UML/node.c:
9147 * objects/UML/usecase.c:
9148 * objects/UML/lifeline.c:
9149 * objects/UML/message.c:
9150 Various cleanup of properties in particular. Now much more use of
9151 standard properties.
9153 * lib/diagramdata.c (layer_render): Visualization of bounding
9154 boxes, for debugging purpoises.
9156 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
9159 * lib/connection.[ch]:
9160 * lib/poly_conn.[ch]:
9161 * lib/polyshape.[ch]:
9162 * lib/bezier_conn.[ch]:
9163 * lib/beziershape.[ch]:
9164 * lib/orth_conn.[ch]:
9165 * lib/neworth_conn.[ch]:
9166 * lib/element.[ch]: Changed a bit the _update_boundingbox()
9167 interface. Now the parent elements have an extra_spacing
9168 structure, which child objects just need to fill, to take care of
9169 most arrow & line width extra space needs.
9171 * objects/**/*.c: updated all objects to the new interface.
9172 While at it, killed all instances of (Object *) downcasts (phew !)
9174 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
9175 doesn't speak about.
9177 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9179 * sheets/Logic.sheet: New sheet for Logic symbols.
9181 2001-02-21 James Henstridge <james@daa.com.au>
9183 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
9184 widget by its path name. Walks the GnomeUIInfo heirachy rather
9185 than widget tree, compares untranslated label names and ignores
9186 underscores in the labels.
9187 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
9188 lookups are not dependent on the current locale, as with
9189 gnome_app_find_menu_pos.
9191 * acconfig.h: guard against multiple inclusion of config.h.
9193 * app/select.c (select_style_callback): simply set the selection
9194 style to the value of action.
9196 * app/menus.c (menus_init): simplify the item factory based menu
9197 code a bit. It looks like it was using some code cut and pasted
9198 from the gimp, which looked a bit unnecessary. Things work fine
9200 (selectmenu): set the action to the type of selection mode
9202 (display_menu_items): use the symbolic enumeration values for the
9205 * app/plugin-manager.c:
9206 * app/plugin-manager.h:
9210 * app/select.h: change prototypes.
9212 * app/commands.c: update all callback prototypes, and get rid of
9213 some #ifdef GNOME's.
9215 * app/commands.h: change function prototypes.
9217 * app/dia_embedd.c (save_fn):
9218 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
9220 * app/menus.c (menus_init): for gnome menus, use
9221 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
9222 structure that proxies the callbacks to have the same signature as
9223 GtkItemFactory type 1 callbacks.
9224 (menus_init): for GTK menus, change from callback type 2 to type
9226 (display_menu_items): add back tearoffs. I don't know who removed
9227 these for the gtk menu case.
9229 2001-02-20 Kevin Breit <battery841@mediaone.net>
9231 * doc/en/usage-objects-special.sgml: Fixed a few of the special
9232 object descriptions. More to come in the next few days.
9234 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
9236 * app/render_eps.c: Fixed for internationalized floating point
9239 * objects/UML/note.c: Fixed properties -- was missing
9240 Get/ApplyPropertiesFunc. Also improved update to recalculate text
9243 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
9245 * plug-ins/xfig/xfig-import.c:
9246 File added importing xfig files. Still very rough, but good
9247 enough to let others hack on it.
9249 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
9252 * app/linewidth_area.c:
9256 * objects/ER/attribute.c:
9257 * objects/ER/entity.c:
9258 * objects/ER/relationship.c:
9259 * objects/custom/custom_object.c:
9260 * objects/flowchart/box.c:
9261 * objects/flowchart/diamond.c:
9262 * objects/flowchart/ellipse.c:
9263 * objects/flowchart/parallelogram.c:
9264 * objects/standard/box.c:
9265 * objects/standard/textobj.c: per Vlad Harchev's request, made
9266 page sizes of gtk_adjustments different than their step sizes.
9267 When sensible values of page size weren't found (overwhelming
9268 majority of cases), page sizes were set to 10.0 * respective step
9271 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
9273 * objects/network/hub.c:
9274 Patch from Hubert Figuiere applied, adding connection points.
9276 2001-02-02 James Henstridge <james@daa.com.au>
9278 * app/display.c (new_display): set update id to 0 here.
9279 (ddisplay_update_handler): rename from ddisplay_flush, and set
9280 update_id to 0 at end of processing.
9281 (ddisplay_flush): new implementation that simply sets an idle
9282 handler to perform the actual drawing.
9284 * app/display.h: add structure member to hold the redraw idle
9287 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
9289 * objects/standard/ellipse.c (ellipse_copy):
9290 * objects/standard/zigzagline.c (zigzagline_copy):
9291 Fix of copying provided by Martin Hawlisch.
9293 2001-01-23 Kevin Breit <battery841@mediaone.net>
9295 * doc/en/graphics/: added directory
9297 * doc/en/graphics/greendots.png: added file
9299 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
9302 2001-01-23 Kevin Breit <battery841@mediaone.net>
9304 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
9305 thanks to John Fleck!
9307 2001-01-21 Kevin Breit <battery841@mediaone.net>
9309 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
9311 2001-01-12 Michael Meeks <michael@helixcode.com>
9313 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
9314 so our POA gets setup properly.
9316 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
9319 * configure.in: Use bonobox_print.
9321 * app/dia_embedd.c (embeddable_factory): add print interface.
9322 (object_print): impl.
9324 2001-01-11 Michael Meeks <michael@helixcode.com>
9326 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
9327 (load_fn, save_fn): impl.
9328 (view_factory): hide modified status bar, & use activate fn.
9329 (refresh_view): force redraws of the views.
9330 (view_show_hide): split from
9331 (dia_view_activate): here.
9333 * app/diagram.c (diagram_load_into): split from diagram_load.
9334 (new_diagram): simplify bu splittin stuff into
9335 (diagram_init): here.
9337 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
9339 * shapes/jigsaw/*.shape: replaced #000000 with foreground
9340 and #ffffff with background
9342 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
9344 *configure.in: GTK+-build was broken due to missing
9347 2001-01-06 Michael Meeks <michael@helixcode.com>
9349 * app/dia_embedd.c (main): add running context support.
9350 (dia_embeddable_destroy): remove old running object counting.
9351 (embeddable_factory): ditto.
9352 (view_factory): comment out menu path hiding.
9354 * lib/sheet.c (load_register_sheet): use free to free
9355 stuff from libxml not g_free.
9357 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
9359 * configure.in: remove USE_OAF checks, check for a precice
9360 Bonobo version >= 0.31, revamp bits.
9362 * app/dia_embedd.c (init_server_factory): upd.
9363 (init_dia_factory): remove OAF conditionals, everything uses
9366 * app/GNOME_Dia.oafinfo: rename OAFIIDs
9368 * app/Makefile.am: remove ancient gnorba code.
9369 rename dia.oafinfo to GNOME_Dia.oafinfo
9371 2001-01-07 Hans Breuer <Hans@Breuer.Org>
9375 * readme.win32 : some more files required or useful to build
9378 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
9379 fill_bezier implementation, boundary drawing in fill mode, etc.
9380 Next one complaining gets the source, uncommented ...
9382 * shapes/network/router-symbol.xpm
9383 * shapes/network/switch-atm-symbol.xpm
9384 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
9385 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
9386 the files as XPMs. Maybe the X versions of these functions are more
9389 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
9391 * plug-ins/python/Makefile.am: added libart path
9393 * plug-ins/python/python.c: added dirent.h
9395 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
9397 2001-01-06 Hans Breuer <Hans@Breuer.Org>
9399 * objects/uml/actor.c
9400 * objects/uml/branch.c
9401 * objects/uml/class.c
9402 * objects/uml/classicon.c
9403 * objects/uml/component.c
9404 * objects/uml/large_package.c
9405 * objects/uml/node.c
9406 * objects/uml/note.c
9407 * objects/uml/object.c
9408 * objects/uml/small_package.c
9409 * objects/uml/state.c
9410 * objects/uml/usecase.c : started to implement the generic property
9411 interface for the uml objects. Would appreciate some help on how
9412 to implement properties which are list of properties themselves,
9413 e.g. member functions and their parameters of UMLClass.
9415 2001-01-06 Hans Breuer <Hans@Breuer.Org>
9417 * plug-ins/python/diamodule.c : finally ported to win32.
9418 Added new objects and implemented register_export function.
9420 * plug-ins/python/pydia-object.h
9421 * plug-ins/python/pydia-display.c
9422 * plug-ins/python/pydia-handle.c
9423 PyObject_HEAD_INIT needs some tweakink on win32. Done in
9424 pydia-object.h; others files simply using it.
9426 * plug-ins/python/pydia-layer.c : reflect
9427 layer_find_closest_connection(_)point renaming
9429 * plug-ins/python/pydia-object.c : add property properties.
9430 Also change bounding_box to DiaRectangle.
9432 * plug-ins/python/python.c : extended error reporting; use
9433 all *.py files from Dia's plug-in dir instead of hardcoded
9434 test.py. This sollution should be fine with Win32, but on
9435 Unix it may need some tweaking (dunno) ...
9437 * plug-ins/python/export-object.py
9438 * plug-ins/python/export-render.py : test and documentation
9439 implementations for export filter implementations in Python
9441 * plug-ins/python/pydia-color.[hc]
9442 * plug-ins/python/pydia-diagramdata.[hc]
9443 * plug-ins/python/pydia-error.[hc]
9444 * plug-ins/python/pydia-export.[hc]
9445 * plug-ins/python/pydia-font.[hc]
9446 * plug-ins/python/pydia-geometry.[hc]
9447 * plug-ins/python/pydia-image.[hc]
9448 * plug-ins/python/pydia-properties.[hc]
9449 * plug-ins/python/pydia-property.c
9450 * plug-ins/python/pydia-render.c : new objects in new files
9452 * plug-ins/python/makefile.am : added new files but can't test it
9454 * plug-ins/python/pydia.def
9455 * plug-ins/python/makefile.msc : for win32 build
9457 * plug-ins/cgm/cgm.c
9458 * plug-ins/dxf/dxf-import.c
9459 * plug-ins/dxf/dxf-export.c
9460 * plug-ins/hpgl/hpgl.c : reflect export API change
9462 * plug-ins/shape/shape-export.c : reflect export API change
9463 and check for libart (better the availibility of a png exporter)
9464 at run-time instead of compile-time.
9466 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
9468 * app/recent_files.h was missing from Hans's commit
9470 * plug-ins/shape/shape_export.c: shape export was broken
9471 due to interface changes
9473 2001-01-05 Hans Breuer <Hans@Breuer.Org>
9475 Applied Steffen's recent file list patch :
9476 * app/Makefile.am : added recent_files.[hc]
9477 * app/diagram.c : add files to recent file list
9478 * app/menus.c : add recent file menu
9479 * app/app_procs.c : changed initialization order to
9480 make recent file list work with command line processing.
9482 The Filter export()/import() functions have got an additional
9483 parameter to allow multiple filters via one C callback (required
9484 for Python bindings)
9486 * app/commands.[hc] : corrected the signature for gtk menu callback
9487 functions, which actually use the second or third parameter. This
9488 is the absolute minimum change to make these functions/menu entries
9489 work again. Using the other possible gtk menu callback signature
9490 would have required one more function to change. (see mailing list
9491 thread "Objects/Align/Equal Distance" for more information.
9493 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
9494 zoom-combo focus patch
9497 * app/interface.c : wrapped the Zoom Combo code into
9498 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
9499 improvement but cluttering the user interface. Also it wasn't
9500 compiling on Win32 anyway. The win32 version does define
9501 WITHOUT_ZOOM_COMBO to keep the old look.
9502 There are plans to use the statusbar to display size and placement
9503 of selected objects, whereas the Zoom Combo would need to get out
9506 Added "Save Changes?" to diagram close dialog. Hopefuly the
9507 Yes/No/Cancel option isn't too much windoze like. IHMO this is
9508 an useability improvement.
9513 * app/layer_dialog.c
9514 * app/paginate_psprint.c
9516 - reflect signature changing of filter->export function
9517 - replaced '/' with G_DIR_SEPARARTOR where appropriate
9519 * app/diaunitspinner.c
9520 * app/render_libart.c
9521 added misssing headers like <string.h>
9523 * app/object_ops.c : fixed copy&paste bug in dialog string
9525 * app/splash.c : gdk_widget_show_now () does not ensure actual
9526 drawing of the splash screen, at least not on win32. Reuse the
9527 previous implementation with gtk_main_iteration() again.
9529 * */makefile.msc : make use of the build module (available in
9530 gnome-cvs/build. Updated for other source changes
9532 * lib/filter.h : added an user_data pointer to <ex/im>port()
9533 function signature and Dia<Im/Ex>portFilter to allow different
9534 filters to reuse the same callback function
9536 * lib/font.c : #include <string.h>
9541 * lib/neworth_conn.c
9542 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
9544 * */*.def : export function definition files required by win32 build
9546 * objects/custom/custom.c : #include <string.h>
9548 * plug-ins/pstricks/render_pstricks.c
9549 * plug-ins/shape/shape_export.c
9550 * plug-ins/svg/render_svg.c
9551 reflect changes to filter export function signature
9553 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
9554 mostly work as expected
9555 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
9556 to build the wmf plug-in because on the one hand the GDI emulation
9557 isn't finished and on the other hand it isn't required when building
9558 for win32. Is there anybody out there, who wants to save WMF on non
9561 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
9562 offset into account.
9564 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
9566 * app/Makefile.am: added missing plug-ins to run_dia.sh
9568 * lib/paper.c: added paper sizes A0, A1, A2
9570 * objects/UML/class.c
9572 objects/UML/class_dialog.c: added support for colored UML
9575 2000-12-30 Kevin Breit <battery841@mediaone.net>
9577 * doc/en/usage-customization.sgml: added more content
9579 2000-12-24 Kevin Breit <battery841@mediaone.net>
9581 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
9582 <remy.viard@laposte.net>
9584 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
9586 * added limiting lines to Civil Engineering sheet,
9587 fixed vertical pump icon
9589 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
9591 * updated/additional Civil Engineering shapes: better icons,
9592 shapes use foreground/background colors now and are filled
9594 2000-12-03 Kevin Breit <battery841@mediaone.net>
9596 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
9597 the selection <sect1>
9599 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
9601 * app/load_save.c (diagram_data_save): avoid using obsoleted
9602 libxml calls (only matters when compiling with libxml2)
9604 2000-11-25 James Henstridge <james@daa.com.au>
9606 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
9607 handle the tool drops on the canvas.
9609 * app/interface.c (display_data_received_callback): do the check
9610 to make sure that the drag is from a local toolbox here as well.
9612 * app/interface.c (create_tools): unref the pixmap/mask after
9613 creating the GtkPixmap.
9614 (tool_setup_drag_source): function to set up a drag source for
9615 create object tool buttons.
9616 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
9617 (fill_sheet_wbox): same here.
9618 (create_display_shell): set up the display canvas as a drag
9620 (display_drop_callback, display_data_received_callback): functions
9621 to handle drops of tool buttons.
9623 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
9624 does weird shit to the user_data pointer for a menu item. Object
9625 alignment should work again now.
9627 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
9628 NULL, and mark this function static.
9629 (app_splash_init): use gtk_widget_show_now() instead of the
9630 gtk_main_iteration loop.
9631 (app_splash_init): connecting gtk_widget_destroy to the destroy
9632 signal of a widget seems pretty useless.
9634 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
9636 * doc/en/dia-manual.sgml:
9637 Added sect1 for advanced object types. Starting development
9640 2000-11-18 Kevin Breit <battery841@mediaone.net>
9642 * doc/en/dia-manual.sgml:
9643 Stupid spelling fixes.
9645 2000-11-18 Kevin Breit <battery841@mediaone.net>
9647 * doc/en/dia-manual.sgml:
9648 Just some small changes I made. Props to Greg LeBlanc on the
9651 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
9654 (ddisplay_add_display_area): Clip input rectangle to
9655 the visible part of the display.
9656 (ddisplay_scroll): Optimization, don't scroll and
9657 redraw if moving to the same position as before.
9659 * app/render_libart.c (renderer_libart_copy_to_window):
9660 Removed sanity check. Now moved to ddisplay_add_display_area().
9663 Added return at end of file.
9665 2000-11-13 Kevin Breit <battery841@mypad.com>
9666 * doc/en/dia-manual.sgml
9667 Commited manual changes from Henry House <hajhouse@houseag.com>
9669 2000-10-21 Hans Breuer <Hans@Breuer.Org>
9670 * lib/beziershape.c :
9671 The previous code was accessing unowned memory due to IHMO
9672 wrong index calculation. Now it appears to be fixed.
9676 * plug-ins/makefile.msc
9677 * objects/makefile.msc
9678 * app/makefile.msc: (new files)
9679 Makefiles for Dia on Win32, Micro$oft VC only.
9681 * plug-ins/pstricks/render_pstricks.c
9682 * plug-ins/dxf/dxf-import.c
9683 * plug-ins/shape/shape-export.c
9684 * plug-ins/svg/render_svg.c
9691 * objects/custom/custom.c
9692 * objects/standard/image.c
9693 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
9694 where appropriate, add missing prototypes like <string.h>
9696 * plug-ins/wmf/wmf_gdi.cpp
9697 * plug-ins/wmf/wmf_gdi.h:
9698 start of wmf write functions for non Win32 platform. Not
9699 finished yet. The other way to get it working maybe to
9700 link the plug-in against wine libs.
9702 * plug-ins/wpg/wpg.c : add missing brace
9705 Handling for unknown objects at load time. Previously Dia
9706 was crashing, if you try to load a file referencing objects
9707 whiches plug-ins aren't installed/available. Now it spits out
9708 a warning and ignores the unknown objects.
9711 toolbox DND support for files like The Gimp does it.
9715 Simple splash screen support and usage.
9718 Splash screen, portability fixes, dont' g_error if there is
9719 g_get_homedir return NULL. This may remove the one and only
9723 Make it compile without ENABLE_NLS
9725 * app/render_libart.c :
9726 Sanity check to avoid calling libart with wrong window coordinates.
9727 They come from the update handler. Direct Gdk is dealing nicely
9728 with coordinates out of range, libart does access un-owned memory
9729 in this case, mostly causing crashes.
9731 * app/winmain.c: (new file) Export the Win32 Gui version of the
9732 main function. This file is only required for Windoze.
9734 * app/splash.c: (new file) splash screen implementation
9738 * lib/diavar.h: (new file)
9739 moved special variable export code to diavar.h, because it is
9740 needed in color.h and font.h
9743 M$VC cann't export inlined functions. Quick hack to let it
9744 link again. Probably the glib mechanics should be used here?
9746 * objects/UML/lifeline.c : initialize var before usage
9748 * objects/GRAFCET/step.c : removed unused var
9750 2000-10-14 James Henstridge <james@daa.com.au>
9752 * app/render_gnomeprint.c (draw_image): change code so images
9753 don't get flipped when printing.
9755 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
9756 sure that the return value of
9757 gnome_print_context_new_with_paper_size is not NULL.
9759 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
9760 into a series of bezier segments.
9761 (fill_arc): similar code to handle filled arc segments.
9763 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
9770 * app/disp_callbacks.c
9772 * app/linewidth_area.c
9773 * app/paginate_psprint.c
9778 * app/neworth_conn.c
9780 * objects/standard/box.c: various small changes to get rid of
9781 annoying warnings (eg faulty prototypes and unused variables)
9783 * app/disp_callbacks.c
9786 * app/magnify.h: update magnify tool icon when pressing/releasing
9787 shift. I will try to make something more general so that similar
9788 things can be used by other tools.
9790 * shapes/SDL/inout.shape
9791 * shapes/SDL/return.shape: fixed some typos
9793 2000-10-09 James Henstridge <james@daa.com.au>
9795 * objects/custom/shape_info.c (parse_path): apply patch from
9796 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
9799 2000-10-08 James Henstridge <james@daa.com.au>
9801 * objects/standard/image.c (image_set_props): if the file could not
9802 be loaded, show the broken image icon.
9804 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
9806 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
9808 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
9809 object icon when loading from a file. This allows you to have PNG
9810 icon files for shapes.
9812 2000-10-07 James Henstridge <james@daa.com.au>
9814 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
9816 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
9817 GDK_IMLIB_CFLAGS reference.
9819 * app/commands.c (help_about_callback): remove imlib code.
9821 * lib/dia_image.c: only include the pixbuf version of the image
9824 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
9826 * configure.in (CPPFLAGS): remove the check for imlib, as we now
9829 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
9830 conditionally define \setfont as well.
9832 2000-10-05 James Henstridge <james@daa.com.au>
9834 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
9835 preamble so that we define \setlinejoinmode and \setlinecaps
9836 commands conditionally on them being undefined. This way, the
9837 pstricks output files should work without modification, and will
9838 support the commands when they are implemented in pstricks.
9840 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
9842 * dia.desktop: added hungarian translations to dia.desktop
9844 2000-10-04 James Henstridge <james@daa.com.au>
9846 * sheets/UML.sheet: fix typo.
9848 * objects/custom/shape_info.c: use strtod instead of g_strtod.
9849 (parse_path): actually call setlocale around strtod calls.
9851 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
9852 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
9853 the g_strtod wrapper.
9855 * shapes/SDL/: add SDL shapes from Rubens Ramos
9856 <rubens_ramos@yahoo.com>
9858 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
9860 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
9862 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
9863 W. Michael Petullo <mike@flyn.org>.
9865 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
9866 from the 0.86 tarball) and jigsaw.sheet.
9868 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
9870 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
9872 * shapes/network/: add network-additional shapes here.
9874 * sheets/network.sheet: add the network-additional shapes from
9875 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
9878 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
9880 * configure.in: Updated ALL_LINGUAS
9882 * po/nl.po: Removed newline from translation
9884 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
9886 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
9887 logo filename generation.
9889 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
9890 Avoiding "//dia_logo.png".
9892 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
9894 * app/filedlg.c: add include <sys/types.h> to
9895 remove warning. (OS/2)
9897 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
9899 * objects/chronogram/chronoline_event.c (reparse_clevent):
9900 the __checksum routine was simply bogus. Redone it in a slightly
9901 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
9903 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
9905 * app/create_object.c (create_object_button_press):
9906 * app/modify_tool.c (click_select_object):
9907 * lib/object.h: select renamed to selectf to prevent
9908 compiler problems with function select(). OS/2 version.
9910 2000-09-08 Karsten Weiss <knweiss@gmx.de>
9912 * po/de.po: Updated.
9914 2000-09-07 Karsten Weiss <knweiss@gmx.de>
9916 * dia.desktop: Added German translation
9917 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
9919 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
9921 * configure.in (ALL_LINGUAS): added "es"
9923 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
9928 * app/scroll_tool.c:
9929 Standardized cursor function get_cursor(). Magnify now has
9930 looking-glass cursor with + and -.
9932 * app/create_object.c (create_object_button_press):
9933 Newly created connections now snap to connection points even when
9936 2000-08-17 Daniel Egger <egger@suse.de>
9938 * app/menus.c: #ifdef'ed some code for the none GNOME
9940 * app/dia_embedd.c: Changed obvious hackery. Can anyone
9941 please have a look at the GNOME UI menu creation? The
9942 gnome-app-helper code is ages old and plainly broken!
9944 2000-08-15 Daniel Egger <egger@suse.de>
9951 * app/select.c: First big patch to get the menus
9952 working again in the international version. Copied
9953 some code written by Sven and me from GIMP and
9954 thus implemented automatic tearoffmenu creation and
9955 proper translation. I also removed that pseudo
9956 radiomenu hack and cleaned up several translation
9957 hacks which have never really worked. All in all
9958 this is part I of the big menu patch. Enjoy and tell
9959 me if you detect any problems.
9961 2000-08-14 Daniel Egger <egger@suse.de>
9963 * sheets/UML.sheet: Changed one German translation as
9964 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
9966 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
9968 * app/diapagelayout.c:
9969 * lib/diagramdata.c:
9970 * lib/diagramdata.h:
9973 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
9974 selecting paper size for a new diagram. TODO: Use libpaper if
9975 available and use gnome_paper-stuff if using GNOME.
9977 * sheets/Electric.sheet: fixed typo.
9979 2000-08-08 James Henstridge <james@daa.com.au>
9981 * po/README: added a readme file to tell translators to translate
9982 the .sheet files as well.
9984 * app/commands.c (help_about_callback): fix small bug where we tried
9985 to gdk_bitmap_unref() the mask for the about box image, even though
9986 it was NULL. Now check for a NULL mask.
9988 2000-08-07 Daniel Egger <egger@suse.de>
9990 * sheets/*.sheet: Added translations for the name
9991 in the toolbar tab. Brushed up some descriptions
9992 and some translations a bit.
9994 2000-08-06 James Henstridge <james@daa.com.au>
9996 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
9997 identifier and dtd url for SVG output.
9998 (new_svg_renderer): fix the output of the viewBox output. The
9999 second two numbers are the width and height -- not the right
10000 and bottom sides of the box.
10002 * shapes/*/*.shape: update svg namespace URI.
10004 * objects/custom/shape_info.c (load_shape_info): change the
10005 namespace URI for custom shapes yet again to match the Candidate
10006 Recommedation. It looks like this one will probably be the final
10009 * app/display.c (new_display): remove the code that sets ic and
10010 ic_attr members to NULL, as one of the previous function calls
10011 causes the display to be realised. This means that the ic gets
10012 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
10015 2000-08-06 James Henstridge <james@daa.com.au>
10017 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
10019 * NEWS: fixed date in NEWS file, as I will release today.
10021 * README: updated the README a little. Added note that Dia is now
10024 * dia.spec: fix up spec file.
10026 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
10028 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
10029 get heaps of warnings when you turn off debugging.
10030 Also made a few other warning fixes.
10032 2000-08-02 James Henstridge <james@daa.com.au>
10034 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
10036 * configure.in: update version number.
10038 2000-08-01 James Henstridge <james@daa.com.au>
10040 * app/commands.c (help_about_callback): add Hans to about dialog.
10042 * doc/shape.dtd: dtd for shape file format.
10044 * doc/custom-shapes: update doc file about creating custom shapes.
10046 * shapes/*/*.shape: change namespace URI for the SVG portion to the
10047 one for the latest draft.
10049 * shapes/*/*.shape: fix up rect definitions.
10051 * objects/custom/shape_info.c (load_shape_info): recognise newer
10052 namespace tag for SVG.
10053 (parse_svg_node): the rect element should take attributes x, y, width
10054 and height -- not x1,y1,x2,y2.
10056 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
10057 output to use the newest draft DTD.
10059 * plug-ins/svg/svg.c: initialisation code for plugin.
10061 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
10063 * plug-ins/svg/Makefile.am: makefile for svg plugin.
10065 * app/app_procs.c (internal_plugin_init): don't register the svg
10066 export filter here.
10068 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
10070 2000-07-31 James Henstridge <james@daa.com.au>
10072 * objects/standard/textobj.c (textobj_get_defaults):
10073 * objects/standard/polygon.c (polygon_get_defaults):
10074 * objects/standard/image.c (image_get_defaults):
10075 * objects/standard/ellipse.c (ellipse_get_defaults):
10076 * objects/standard/box.c (box_get_defaults):
10077 * objects/standard/beziergon.c (beziergon_get_defaults):
10078 * objects/flowchart/parallelogram.c (pgram_get_defaults):
10079 * objects/flowchart/ellipse.c (ellipse_get_defaults):
10080 * objects/flowchart/diamond.c (diamond_get_defaults):
10081 * objects/flowchart/box.c (box_get_defaults):
10082 * objects/custom/custom_object.c (custom_get_defaults):
10083 * objects/FS/flow.c (flow_get_defaults):
10084 * objects/FS/flow-poly.c (flow_get_defaults):
10085 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
10088 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
10089 widgets for various object types.
10090 (create_dialog): ref and sink the no_defaults_dialog.
10092 * app/preferences.c (prefs_create_dialog): change
10093 gtk_container_border_width call to gtk_container_set_border_width.
10095 2000-07-29 James Henstridge <james@daa.com.au>
10097 * app/commands.c (view_aa_callback): show a warning dialog if
10100 * app/interface.c (fill_sheet_menu): don't add a menu item for
10103 2000-07-26 James Henstridge <james@daa.com.au>
10105 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
10107 * app/menus.c: remove edit grid menu item.
10109 * app/commands.[ch] (view_edit_grid_callback): removed.
10111 * app/display.c (new_display): don't initialise removed Grid members.
10113 * app/grid.c: remove unused functions.
10115 * app/grid.h: remove dialog related stuff from Grid structure.
10116 Remove prototypes for dialog functions.
10118 * app/menus.c: add to menus
10120 * app/commands.[ch] (view_diagram_properties_callback): new command
10121 for showing the diagram properties dialog.
10123 * app/dia-props.[ch]: a new diagram properties dialog. To replace
10124 the edit grid dialog.
10126 2000-07-25 James Henstridge <james@daa.com.au>
10128 * app/grid.c (grid_x_update):
10129 (grid_y_update): as the grid setting is stored with the diagram,
10130 update all displays when a change is made.
10132 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
10134 * app/create_object.c (create_object_button_press):
10135 (create_object_motion): use new snap_to_grid signature.
10137 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
10138 and handle invisible grid lines.
10139 (snap_to_grid): use new grid settings. Also changed signature to
10140 take a DDisplay rather than Grid pointer.
10141 (grid_show_dialog): get the defaults from the correct place.
10143 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
10145 * app/diagram.c (new_diagram): set the grid size defaults from the
10148 * app/load_save.c (diagram_data_save): save grid and guide info to
10150 (diagram_data_load): add guide and grid load support.
10152 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
10155 * lib/diagramdata.h: add members to DiagramData for grid and guide
10158 * configure.in (BONOBO_LIBS): update configure scripts
10160 * app/dia.oafinfo: oafinfo file for dia embeddables.
10162 * app/dia_embedd.c: add OAF support.
10164 2000-07-24 James Henstridge <james@daa.com.au>
10166 * plug-ins/wpg/Makefile.am:
10167 * plug-ins/pstricks/Makefile.am:
10168 * plug-ins/hpgl/Makefile.am:
10169 * plug-ins/dxf/Makefile.am: same here.
10171 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
10172 the required libraries, and the link line was causing libtool not
10173 to build a shared library on some systems :(
10175 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
10176 be checking x, not n.
10178 2000-07-23 James Henstridge <james@daa.com.au>
10180 * app/preferences.c (prefs_data): set the "reset tools after
10181 create" preference to true by default. That seems to be what most
10184 * app/interface.c (create_sheets): instead of a notebook, use an
10185 option menu that updates the sheet tools. The notebook tabs were
10186 getting a bit unwieldly, so the option menu should fix that. This
10187 also reduces the number of widgets in the tools radio button
10188 group, which should make the UI a little more responsive.
10190 2000-07-19 Fatih Demir <kabalak@gmx.net>
10192 * configure.in: Added tr to ALL_LINGUAS.
10193 [ Yeah, we're now having a Turkish translation,
10196 * dia.desktop: Added the Turkish entries.
10198 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
10200 * doc/diagram.dtd: changed string-element so it conforms to the
10203 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
10205 * configure.in: added chinese.
10206 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
10214 objects/custom/shape_info.c:
10215 shapes/Circuit/npn.shape:
10216 shapes/Circuit/pnp.shape:
10217 sheets/*.sheet: dia now works with libxml2.
10218 Libxml2 is a bit more picky when parsing xml and reported errors on all
10219 sheet files because they use non ascii characters (added
10220 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
10221 I commented out these.
10223 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
10225 * configure.in (ALL_LINGUAS): added Italian
10227 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
10229 * configure.in (ALL_LINGUAS): added Korean
10231 2000-06-25 James Henstridge <james@daa.com.au>
10233 * objects/flowchart/parallelogram.c (pgram_create): use default font
10234 and add properties interface support.
10236 * objects/flowchart/ellipse.c (ellipse_create): use default font and
10237 add properties interface support.
10239 * objects/flowchart/diamond.c (diamond_create): use default font and
10240 add properties interface code.
10242 * objects/flowchart/box.c (box_create): use default font.
10244 * objects/custom/custom_object.c (custom_create): use default font
10247 * objects/standard/textobj.c (textobj_create): update to use default
10250 * lib/attributes.c: add implementations.
10252 * lib/attributes.h (attributes_[gs]et_default_font): add function
10253 prototypes for setting/getting a default font.
10255 2000-06-24 James Henstridge <james@daa.com.au>
10257 * app/paginate_gnomeprint.h: updated prototype.
10259 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
10260 diagram page settings.
10262 * objects/standard/beziergon.c (beziergon_copy): same here.
10264 * objects/standard/polygon.c (polygon_copy): copy the fill colour
10268 * app/tool.h (tool_options_dialog_show):
10269 * app/scroll_tool.h (free_scroll_tool):
10270 * app/render_svg.h:
10271 * app/render_libart.h (renderer_libart_copy_to_window):
10272 * app/render_gdk.h (renderer_gdk_copy_to_window):
10273 * app/properties.h (properties_hide_if_shown):
10274 * app/preferences.h (prefs_load):
10275 * app/object_ops.h:
10276 * app/modify_tool.h (free_modify_tool):
10277 * app/magnify.h (free_magnify_tool):
10278 * app/linewidth_area.h (linewidth_area_create):
10279 * app/layer_dialog.h:
10280 * app/handle_ops.h (handle_is_clicked):
10282 * app/grid.h (grid_destroy_dialog):
10283 * app/defaults.h (defaults_show):
10284 * app/cut_n_paste.h (cnp_exist_stored_objects):
10285 * app/create_object.h (free_create_object_tool):
10286 * app/connectionpoint_ops.h (diagram_unconnect_selected):
10288 * app/color_area.h (color_area_create):
10289 * app/app_procs.h (app_is_embedded): remove extern keyword from
10290 function prototypes.
10293 * lib/sheet.h (load_all_sheets):
10294 * lib/render_store.h:
10295 * lib/render_object.h (render_object_load):
10296 * lib/polyshape.h (polyshape_closest_segment):
10297 * lib/poly_conn.h (polyconn_closest_segment):
10300 * lib/objchange.h (new_object_state_change):
10301 * lib/neworth_conn.h (neworthconn_add_segment):
10302 * lib/message.h (message_error):
10305 * lib/font.h (font_descent):
10306 * lib/focus.h (remove_focus):
10308 * lib/diagramdata.h:
10309 * lib/dia_xml.h (data_add_composite):
10311 * lib/connpoint_line.h:
10312 * lib/connection.h (connection_move_handle):
10314 * lib/attributes.h (attributes_set_default_line_style):
10315 * lib/arrows.h (arrow_draw): remove extern keyword from function
10316 definitions. It is not required for functions.
10318 * plug-ins/dxf/Makefile.am (INCLUDES):
10319 * plug-ins/pstricks/Makefile.am (INCLUDES):
10320 * plug-ins/cgm/Makefile.am (INCLUDES):
10321 * objects/SADT/Makefile.am (INCLUDES):
10322 * objects/chronogram/Makefile.am (INCLUDES):
10323 * objects/GRAFCET/Makefile.am (INCLUDES):
10324 * objects/flowchart/Makefile.am (INCLUDES):
10325 * objects/sybase/Makefile.am (INCLUDES):
10326 * objects/FS/Makefile.am (INCLUDES):
10327 * objects/standard/Makefile.am (INCLUDES):
10328 * objects/network/Makefile.am (INCLUDES):
10329 * objects/UML/Makefile.am (INCLUDES): same here.
10331 * objects/ER/Makefile.am: changed inclusion of some macros to
10334 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
10335 handle the plug in extension, rather than have all the #ifdef's in
10338 * plug-ins/Makefile.am: add renderer.inc to dist.
10340 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
10342 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
10344 * lib/plug-ins.c: Handle OS/2 dll's too.
10346 2000-06-07 James Henstridge <james@daa.com.au>
10348 * app/plugin-manager.c (get_plugin_manager): set some table
10349 packing options to make it look a little nicer.
10351 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
10352 makefiles for these plug-ins.
10354 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
10356 * configure.in: added hpgl and wpg directories to build. Added
10357 note about whether gnome-print support was enabled, and noted that
10358 it is not recommended.
10360 2000-06-06 James Henstridge <james@daa.com.au>
10362 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
10363 a little work, but I am checking them in so I don't lose them.
10365 2000-06-01 James Henstridge <james@daa.com.au>
10367 * objects/standard/arc.c: added extra properties.
10369 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
10370 was using the wrong index into the handles array. This gets corner
10371 type changing working correctly.
10373 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
10374 to properties code (no editing or loading yet though). Also added
10375 support for point array manipulation through the offsets interfaces.
10377 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
10379 * app/interface.c (origin_button_press): changes so the origin
10380 button doesn't grab the pointer when we pop up the menu.
10382 * app/commands.c (help_about_callback): fix small memory leak in
10385 * app/menus.c (menus_init): fixed breakage I introduced in the non
10386 gnome menus when I was doing the menu changes. The tearoffs work
10387 really nicely in plain gtk mode as well.
10389 * objects/standard/beziergon.c (beziergon_create): changed the
10390 returned handles to match the handle numbering changes. Now
10391 segment addition and removal works correctly with undo!
10393 * lib/beziershape.c: various changes to the code. Changed the
10394 numbering of handles, and fixed the segment removal code.
10396 2000-05-31 James Henstridge <james@daa.com.au>
10398 * objects/standard/beziergon.c: remove connection point handling.
10399 There is still a bit of work to be done to get adding and removing
10400 of segments working correctly.
10402 * lib/beziershape.c: add connection point handling to beziershape.
10403 I set it for two connection points per segment.
10405 2000-05-30 James Henstridge <james@daa.com.au>
10407 * objects/standard/polygon.c: don't do connectionpoint handling.
10409 * lib/polyshape.c: changed to handle connection points internally.
10410 Also, don't worry about connections to handles on polyshape, as
10411 all handles are non connectable.
10413 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
10415 * configure.in: Added finnish
10417 2000-05-30 James Henstridge <james@daa.com.au>
10419 * sheets/*.sheet: translation updates to the .sheet files.
10421 * po/fr.po: updated po file from Christophe Merlet.
10423 * menus.h: removed prototypes for functions which have been removed.
10425 2000-05-29 James Henstridge <james@daa.com.au>
10427 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
10428 item in the option menu when changing selected diagram.
10430 * app/dia_embedd.c (view_factory): fix up function to work with new
10433 * app/disp_callbacks.c (ddisplay_realize): remove call to
10434 display_set_active from here.
10435 (ddisplay_canvas_events): move call here. This gets rid of all the
10436 warnings, as the renderer has been fully set up correctly at this
10439 * app/menus.c (menus_init): add the tearoff item to the start of the
10442 * app/app_procs.c (create_user_dirs): we don't need to create the
10443 menus directory anymore.
10445 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
10446 necessary to update the menu state here, as it was done when the
10447 active display was set.
10449 * app/display.c (display_set_active): update the menu state when
10450 changing active displays.
10452 * app/interface.c (origin_button_press): set the display as active
10453 when a click is made on the menu button.
10455 * app/menus.c (menus_init): set up a quit function to save the accels
10457 Add tearoff items for the non GNOME menus, add accelerators for
10458 several GNOME menus.
10460 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
10461 menus_get_image_menu().
10463 * app/menus.c (menus_get_item_from_path): use display_menus here
10464 rather than ddisp->popup.
10466 * app/display.h: remove the popup member in the DDisplay structure.
10468 * app/interface.c: remove option of not using wrap box.
10469 (create_toolbox): change to always use menus_get_toolbox_menubar
10470 even when using gnome menus.
10471 (create_display_shell): use menus_get_image_menu to load accelerators
10472 only -- not the actual popup menu.
10474 * app/menus.c (menus_init): new function to create the menus.
10475 (menus_get_toolbox_menubar): use this function whether gnome is
10476 in use or not. Changed to use menus_init.
10477 (menus_get_image_menu): same here. Also, now this function always
10478 returns the same menu, rather than a new one each time.
10479 (menus_init): read a menurc file to load accelerators here.
10481 2000-05-28 James Henstridge <james@daa.com.au>
10483 * app/display.c (ddisplay_really_destroy): unset active display if
10484 active display is destroyed.
10485 (ddisplay_active): simplify function to return active_display as set
10486 by display_set_active. This allows using a pinned menu with any
10487 display -- not just the one it was popped up from.
10488 (display_set_active): notify the layer dialog of change of diagrams
10489 when active diagram changes.
10491 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
10492 on button and key presses.
10493 (ddisplay_realize): set active display on realize.
10495 * app/display.c (display_set_active): simple implementation of this
10498 * app/display.h (display_set_active): add prototype for setting
10499 the active display.
10501 * app/interface.c (create_display_shell): don't give focus to the
10504 * app/menus.c: fix up menus for Beziergon.
10506 * app/interface.c (create_display_shell): make the widget in the
10507 top left corner a button that can be used to pop up the right click
10508 menu, like in gimp and sketch.
10510 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
10513 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
10514 add code to set corner types for beziergon.
10516 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
10518 (beziershape_move_handle): use the previous corner type for right
10521 * app/interface.c (tool_data): add beziergon to toolbox.
10523 * objects/standard/standard.c (dia_plugin_init): initialise the new
10524 Beziergon object type.
10526 * objects/standard/beziergon.c: an object based on BezierShape.
10528 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
10530 * lib/beziershape.[ch]: new files implementing a bezier shape.
10532 2000-05-26 James Henstridge <james@daa.com.au>
10534 * lib/text.c (text_key_event): handle multibyte inserts.
10535 (text_key_event): also add home and end keybindings.
10537 * app/interface.c (create_display_shell): connect handlers for
10538 focus_in_event, focus_out_event, realize and unrealize signals.
10540 * app/display.[ch] (new_display): initialise input context members.
10542 * app/disp_callbacks.[ch]: added XIM support here.
10544 * lib/font.c (suck_font): the black and white pixel values should be
10545 taken from a 1 bit colormap rather than the default colormap.
10547 Hans Breuer's Windows patches ...
10549 * lib/font.c: use Courier New for fixed width font on windows
10552 * lib/dia_image.h: change to "struct _DiaImage".
10554 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
10556 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
10557 mouse button for object menu. This will make two button mouse owners
10560 2000-05-25 James Henstridge <james@daa.com.au>
10562 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
10564 * app/app_procs.c (app_init): add extra NULL argument to call of
10567 * app/load_save.h: remove prototype.
10569 * app/load_save.c: remove diagram_data function here.
10571 * app/diagram.h: added prototype.
10573 * app/diagram.c (diagram_load): new function here, which uses import
10576 * plug-ins/dxf/dxf.c: register the import filter as well.
10578 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
10579 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
10581 * objects/standard/line.c: add start_point and end_point properties
10582 to standard line object.
10584 2000-05-21 James Henstridge <james@daa.com.au>
10586 * app/paginate_psprint.c: added missing include of locale.h.
10588 * objects/custom/custom_object.c (custom_draw): use fabs rather than
10589 abs for scaling factors.
10590 (custom_distance_from): same here.
10592 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
10594 2000-05-18 James Henstridge <james@daa.com.au>
10596 * po/POTFILES.in: updated POTFILES.in.
10598 * dia.spec: incremented version number in spec file.
10600 * NEWS: added (lots of) news items for the 0.85 release.
10602 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
10605 * configure.in: updated version number here.
10607 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
10609 2000-05-17 James Henstridge <james@daa.com.au>
10611 * app/app_procs.c (internal_plugin_init): register the native import
10614 * app/load_save.c (diagram_data_load, diagram_load): split this
10615 function into two -- one that does all the work on the DiagramData
10616 structure, and the other that provides compatibility with the old
10618 (dia_import_filter): use diagram_data_load to define an import
10621 * app/diagram.h (new_diagram): added const to prototype.
10623 * app/filedlg.c (file_open_callback): change to use new import filter
10626 * lib/filter.c: added import filter management functions.
10628 * lib/filter.h: added prototypes for import filter interface.
10630 * app/commands.c (help_about_callback): updated about dialog to
10631 contain a few more names.
10633 2000-05-16 James Henstridge <james@daa.com.au>
10635 * configure.in (Configuration): added a status message to the end of
10636 the configure script to give the user some idea of what was
10639 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
10641 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
10644 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
10647 * configure.in (AM_PATH_LIBART): use the check function provided
10648 with libart rather than our own code. It is more reliable, and
10649 it only requires that people who build out of CVS have libart.m4
10650 installed (not necessarily all of libart).
10651 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
10653 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
10655 * dia.desktop: Added Swedish translation.
10657 2000-05-09 James Henstridge <james@daa.com.au>
10659 * lib/dia_xml.c: you can't free a const pointer, so remove const
10660 from variable definitions.
10662 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
10663 initialised correctly.
10665 * app/render_svg.c (export_svg): set locale to C.
10667 * app/paginate_psprint.c (paginate_psprint): set locale to C.
10669 * app/render_eps.c (export_eps): set locale to C for EPS export.
10671 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
10672 (data_add_point): same here.
10673 (data_add_rectangle): same here.
10674 (data_real): use g_strtod to convert strings to real numbers, so that
10675 locales are taken into account.
10676 (data_point): same here.
10677 (data_rectangle): same here.
10679 * AUTHORS: added Henk and Jacek to authors file.
10681 Daniel Egger's code cleanups.
10683 * app/select.c (select_invert_callback): remove unused variable.
10685 * app/plugin-manager.c (get_plugin_manager): fix typo.
10687 * app/load_save.c (read_connections, write_objects):
10688 (write_connections): made some functions static.
10690 * app/interface.c (toolbox_delete, toolbox_destroy): made some
10693 * app/filedlg.c (file_export_callback): remove unused variable.
10695 * app/app_procs.c: various warning fixes.
10697 Integrating Jacek Pliszka's pstricks export filter.
10699 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
10701 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
10702 renderer (with a few small modifications by me).
10704 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
10706 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
10708 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
10711 * sheets/Makefile.am:
10712 * shapes/Makefile.am:
10713 * shapes/Civil/Makefile.am:
10714 * sheets/civil.sheet:
10716 Added civil/hydraulic/structural engineering objects from
10717 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
10719 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
10721 * objects/FS/flow-poly.c:
10722 * objects/FS/flow.c:
10723 Fix division by zero in point_normalize().
10724 Patch by David Thompson <dcthomp@mail.utexas.edu>
10726 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
10729 * lib/bezier_conn.c:
10730 * lib/connpoint_line.c:
10731 Added checks for zero-length lines before calls to point_normalize.
10733 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10735 * app/preferences.c (prefs_data): Changed
10736 reversed_dragging_intersects to not make the dialog ridiculously
10739 2000-04-22 James Henstridge <james@daa.com.au>
10741 Hans's win32 patches:
10743 * app/export_png.c: include message.h
10744 * app/interface.c: include dia_dirs.h
10745 * app/linewidth_area.c: check for rint
10746 * app/main.c: include interface.h
10747 * app/paginate_psprint.c: remove unused variable.
10748 * app/preferences.c: include message.h
10749 * app/render_svg.c: include stdlib.h
10750 * app/select.c: include object_ops.h
10751 * lib/dia_dirs.c: miscelaneous fixes for win32.
10752 * lib/dia_image.c: include string.h
10753 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
10754 * lib/properties.c: include stdlib.h
10755 * lib/properties.h: define extra data for standard properties as
10756 static variables on win32 (to get around dynamic linker problems).
10757 * objects/standard/polygon.c: polygon_create_change missing return
10760 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
10762 * configure.in (ALL_LINGUAS): added Catalan
10764 2000-04-18 James Henstridge <james@daa.com.au>
10766 * objects/standard/bezier.c (bezierline_get_object_menu): add a
10767 separator to the object menu between the add/remove segment items
10768 and the corner type items.
10769 (bezierline_get_object_menu): add code to disable the menu item for
10770 the current corner type. Really just a cosmetic change.
10772 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
10773 a NULL for the label or with no associated callback.
10775 * objects/standard/bezier.c (bezierline_menu_items): use the
10776 enumeration values rather than numeric values for the corner types.
10778 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
10779 structure, and add code to handle it. Also, don't save the corner
10780 types inline in the bez_points node. The way it is conditionally
10781 including the element just feels like it will break.
10783 * lib/geometry.h (BezPoint): removed the corner_type stuff from
10784 BezPoint. The corner type stuff is a user interface level idea rather
10785 than something required by the renderer, so should be taken care of
10786 at the object level.
10788 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10790 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
10791 checks. Weren't able to reproduce original bug, tough.
10793 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
10795 * sheets/Electric.sheet:
10796 * sheets/Contact.sheet:
10797 * sheets/Pneumatic.sheet:
10798 * sheets/Circuit.sheet: sprayed some <br/>'s around.
10799 (added a few French translations in the last file)
10801 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10804 * lib/bezier_conn.h:
10805 * objects/standard/bezier.c:
10806 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
10807 bezier points. Only one minor problem known: Menus are active
10808 for endpoints minor handles.
10809 11:28: Save and load now works, too.
10810 (bezierconn_closest_major_handle): 12:03: New function to get the
10811 non-control point handle associated with the nearest control
10813 Also fixed the menu activation problem, and made remove_segment
10814 not remove the endpoint.
10816 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10818 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
10821 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
10823 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
10824 <sys/stat.h>. OS/2 patch.
10826 2000-04-15 James Henstridge <james@daa.com.au>
10828 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
10829 Thompson's patch that adds undo support to the function structure
10832 2000-04-14 James Henstridge <james@daa.com.au>
10834 * objects/custom/custom_object.c (custom_distance_from): new
10835 implementation of distance algorithm that actually takes the
10836 display list into account when calculating the distance. Much nicer
10837 than a simple bounding box.
10839 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
10841 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
10843 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10845 * objects/standard/polygon.c: Start of polygons own changes (for
10846 connectionpoints). Need to do seperate changes in polyshape, too,
10847 rather than reuse the bezier changes.
10849 2000-04-13 James Henstridge <james@daa.com.au>
10851 * lib/dia_image.c (dia_image_draw): use the new enumeration values
10852 from after the gdk-pixbuf cleanup.
10854 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
10855 on for loop. Last set of coefficients were not beeing calculated,
10856 which caused a bit of breakage.
10858 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
10859 functions in geometry.c for calculating the closest segment.
10860 (bezierconn_distance_from): use distance_bez_line_point to calculate
10863 * lib/geometry.c (distance_bez_line_point): new function to calculate
10864 the distance from an open bezier line to a point.
10865 (distance_bez_shape_point): new function to calculate the distance
10866 from a closed bezier shape.
10867 (distance_ellipse_point): new function to calculate the distance from
10868 a filled ellipse to a point.
10870 * lib/geometry.h (BezPoint): moved this structure here from render.h
10872 2000-04-12 James Henstridge <james@daa.com.au>
10874 * lib/geometry.c (distance_bez_seg_point): new function to calculate
10875 the distance from a bezier segment.
10877 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
10878 to calculate the distance from the object.
10880 * lib/geometry.c (distance_polygon_point): function for calculating
10881 the distance from a polygon to a point.
10883 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
10886 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
10887 breaks can be inserted in the tool box.
10889 * doc/sheet.dtd: updated the DTD
10890 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
10892 2000-04-12 James Henstridge <james@daa.com.au>
10894 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
10895 macro if the dialog is a GtkDialog :(
10897 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10899 * objects/standard/polygon.c: Connectionpoints now properly
10900 managed in a GList. As far as I can tell, this will not dieturb
10901 the order (but I have the nagging doubt...)
10903 * lib/polyshape.c: No longer knows about connectionpoints.
10905 2000-04-11 James Henstridge <james@daa.com.au>
10907 * app/Makefile.am: fix makefile for bonobo build.
10909 * configure.in: fix checks for bonobo.
10911 * app/menus.c: added entries for the plugin manager.
10913 * app/Makefile.am (dia_core_files): added plugin manager to files
10916 * app/plugin-manager.[ch]: the plugin manager dialog.
10918 * app/display.c (display_update_menu_state): set the antialiased
10919 menu entry to the correct value.
10921 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
10923 * objects/custom/custom_object.c: not all renderers like ellipses with
10924 negative dimensions. This could cause ellipses to disappear when using
10925 the flip_h and flip_v functions.
10927 * samples/grafcet.dia: fixed speling and correctness.
10929 2000-04-11 James Henstridge <james@daa.com.au>
10931 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
10932 exposed the dia_plugin_load and dia_plugin_unload functions.
10934 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
10935 already created PluginInfo structure.
10937 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
10940 * lib/sheet.c: fix up call to dia_config_filename.
10942 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
10943 file. This would save information such as which plugins not to
10944 load during startup.
10946 2000-04-09 James Henstridge <james@daa.com.au>
10948 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
10950 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
10952 * lib/plug-ins.c (dia_register_plugins):
10953 Don't free the value returned from g_getenv.
10955 2000-04-09 Anders Carlsson <andersca@gnu.org>
10957 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
10959 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
10961 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
10962 right to left, select objects that intersect the rubberbanding rectangle
10963 instead of selecting objects that are in the rectangle.
10965 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
10967 * lib/diagramdata.h: Likewise.
10970 2000-04-09 James Henstridge <james@daa.com.au>
10972 * lib/plug-ins.[ch]: add copyright messages to files.
10974 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
10977 * objects/sybase/sybase.c (dia_plugin_init):
10978 * objects/network/network.c (dia_plugin_init):
10979 * objects/flowchart/flowchart.c (dia_plugin_init):
10980 * objects/custom/custom.c (dia_plugin_init):
10981 * objects/chronogram/chronogram.c (dia_plugin_init):
10982 * objects/UML/uml.c (dia_plugin_init):
10983 * objects/SADT/sadt.c (dia_plugin_init):
10984 * objects/GRAFCET/grafcet.c (dia_plugin_init):
10985 * objects/FS/fs.c (dia_plugin_init):
10986 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
10989 * objects/standard/standard.c (dia_plugin_init): change over to new
10992 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
10993 the version checker for plugins.
10995 * app/app_procs.c: remove plugin loading code from here, and use
10996 code from plug-ins.[ch]. Also move registration of internal
10997 objects/filters to a `builtin' plugin.
10999 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
11001 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
11003 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
11004 defined variable in EXTRA_DIST.
11006 * app/preferences.h: removed dia_config_filename from header.
11008 * app/preferences.c: removed dia_config_filename function.
11010 * lib/dia_dirs.c (dia_config_filename): moved function over to this
11011 file. Also changed implementation slightly so that it should work
11012 on the win32 port correctly (and use NT home directories).
11014 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
11015 it should have been.
11017 * lib/plug-ins.[ch]: new plugin loading code.
11019 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11021 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
11023 * lib/polyshape.c: Fix closest segment finding, exposes deeper
11024 bugs in adding corners to 'wraparound' segment.
11026 * objects/standard/polygon.c: Added connection points (fixed so
11027 far), set menu sensitivity.
11029 * lib/polyshape.c: Changed to box-style handles, fixed for start
11030 and ends not being special, added initial connections,
11032 * lib/dummy_dep.h: Added polyshape (gotcha!)
11034 * objects/standard/pixmaps/ellipse.xpm:
11035 * objects/standard/pixmaps/box.xpm:
11036 Filled element pixmaps with white.
11039 * objects/standard/polygon.c:
11041 * objects/standard/standard.c:
11042 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
11043 * lib/Makefile.am (libdia_a_SOURCES):
11045 * app/interface.c (tool_data):
11046 Added Standard/Polygon object and PolyShape lib object. Still
11047 needs inside grab and connection points.
11049 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
11052 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
11055 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
11056 if (argv) outside ifdefs.
11058 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11060 * objects/standard/image.c (image_set_props):
11061 Aspect ratio is back in town.
11063 * app/Makefile.am (dia_LDADD):
11066 Check for gdk_pixbuf (by default disabled, for now)
11068 * app/render_eps.c (draw_image):
11069 * app/render_libart.c (draw_image):
11070 * app/render_gnomeprint.c (draw_image):
11071 Support for alpha mask in rendering. Color postscript, too.
11075 Support for gdk_pixbuf and proper masking for exports.
11077 2000-04-01 Kjartan Maraas <kmaraas@online.no>
11079 * sheets/*.sheets: Updated Norwegian translations.
11081 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11083 * lib/text.c (text_insert_char):
11084 * lib/render_store.c (add_data):
11085 Made realloc double the alloced space rather than add
11086 a fixed amount, to reduce memory stress.
11088 * app/select.c: Added new select method 'Transitive'
11089 that select every reachable (by connections) object.
11091 2000-03-27 Kjartan Maraas <kmaraas@online.no>
11093 * dia.desktop: Added Norwegian translation.
11095 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
11097 * app/render_eps.c:
11098 * app/render_svg.c:
11099 Don't dereference NULL pointer if the renderer
11100 couldn't open the file. Fix by Lars Clausen.
11101 Bug reported by Martin Chisholm <b1mt@unb.ca>
11103 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
11107 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
11109 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
11111 * app/dia.gnorba (location_info):
11112 Changed to correct executable name.
11114 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
11117 Don't do any argument parsing or initialization
11120 * app/dia_embedd.c:
11121 Call init_server_factroy before app_init.
11122 Call app_init with argv==NULL
11123 Now we don't get any critical error on startup.
11126 Add Electric and Pneumatic to makefile list.
11128 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
11130 * shapes/Electric/*:
11131 * sheets/Electric.sheet:
11132 Add some Electric circuit shapes.
11134 * shapes/Pneumatic/*:
11135 * sheets/Pneumatic.sheet:
11136 Add some Pneumatic & Hydraulic circuit shapes
11137 (both sheets are still incomplete, though feature enough
11138 things for basic circuits).
11140 * shapes/Contact/l_*.(xpm|shape):
11141 * sheets/Contact.sheet
11142 * shapes/Contact/Makefile.am
11143 made the older electric circuit shapes in Contact obsolete (disabled
11144 them in the sheet, made that sheet Ladder only). Fixed the makefile
11145 for forgotten items.
11147 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
11150 Add support for Dia bonobo component.
11151 Currently a bit raw, so it's commented out.
11153 * app/dia_embedd.c:
11155 New files for embedding dia.
11156 The menu disabling hack is a bit gross. Esp. for GNOME.
11159 Add new function app_is_embedded();
11162 Don't destroy diagram when last display is destroyed if embedded.
11165 Change initialization of display so it works with embedding.
11168 Clarify comment about display destruction.
11170 * app/interface.[ch]:
11171 Added top_level_window argument to create_display_shell.
11172 Don't open a top-level window if embedding.
11173 Don't quit app if trying to close toolbox window when embedding.
11174 Add toolbox_show() and toolbox_hide().
11177 Added app_is_embedded() function (just returns false).
11178 Added toolbox_show() call in main().
11181 Added code for getting toolbox menus. This is used to
11182 hide some menu items when running embedded.
11185 Include sheet.h to remove warning.
11187 * objects/UML/association.c:
11188 Clarify association direction text.
11190 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
11193 Fixed man page so whatis parsing works.
11195 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
11197 * app/render_libart.c (new_libart_renderer):
11198 Fix from segg <segg@infonet.ca> to compile without libart.
11199 I forgot to change the stub for new_libart_renderer when doing
11200 the interactive renderer stuff for libart.
11202 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
11204 * dia.desktop: Added Irish translation.
11206 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
11208 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
11210 * app/load_save.c (fchmod): OS/2 defines only.
11212 2000-03-07 James Henstridge <james@daa.com.au>
11214 * lib/properties.c (prop_get_widget): set the position in the option
11217 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
11220 * app/export_png.c:
11221 * app/render_libart.[ch]:
11222 Don't export png:s with an interactive libart renderer.
11224 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
11226 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
11228 2000-03-02 James Henstridge <james@daa.com.au>
11230 * dia.spec (%build): unset LINGUAS before running configure. This
11231 ensures that all translations get included in the RPM.
11233 * lib/properties.c (object_create_props_dialog): put in a check for
11234 a NULL return from the describe_props() object method.
11235 (prop_desc_lists_union): make sure that the returned array is not
11237 (prop_desc_lists_intersection): same here.
11239 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
11241 * objects/ER/Makefile.am:
11242 * objects/FS/Makefile.am:
11243 * objects/UML/Makefile.am:
11244 Don't link object libs with gtk.
11246 2000-02-29 James Henstridge <james@daa.com.au>
11248 * app/preferences.c (prefs_save): check to see if the file could
11249 be opened before writing the prefs.
11251 * app/disp_callbacks.c (popup_object_menu): pass the button event
11252 to gtk_menu_popup. This allows you to click and release to open
11254 (ddisplay_canvas_events): same here.
11255 (create_object_menu): set the object type menu item in the object
11256 menu to be insensitive.
11258 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
11259 as we are now requiring a new version of libxml.
11261 * dia.spec: updated version number. Added requirement for
11264 * configure.in: incremented version number to 0.84.
11265 Added check for libxml >= 1.8.5. This will prevent some of the
11266 problems people have had with broken libxml versions.
11268 * NEWS: added news items.
11270 * app/interface.c (create_color_area): removed call to realize parent
11271 widget. Segg <segg@infonet.ca> reported that it caused a warning,
11272 but I haven't seen it on my copy of dia.
11274 2000-02-28 James Henstridge <james@daa.com.au>
11276 * app/export_png.c: added copyright notice, and made the band height
11279 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
11281 * lib/font.c (suck_font):
11282 Fixed off-by one bug in font pixmap height.
11283 Fixes the problem with garbage at the bottom of some text in aa mode
11284 and in png exported files.
11286 2000-02-27 James Henstridge <james@daa.com.au>
11288 * app/app_procs.c: add the png export filter if it was compiled in.
11290 * app/export_png.c (export_png): new PNG export filter. This requires
11291 the libart renderer to work as it needs a renderer that renders to a
11294 * configure.in: add check for libpng.
11296 * lib/message.c (message_internal): use a GNOME dialog here as well.
11298 * app/display.c (ddisplay_close): use a GNOME dialog here.
11300 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
11301 when exporting to EPS. This is because some people said the EPS
11302 output was too large
11304 2000-02-26 James Henstridge <james@daa.com.au>
11306 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
11309 * app/app_procs.c (app_exit): use a GNOME dialog here.
11311 * app/preferences.c (prefs_create_dialog): if GNOME support is
11312 enabled, show a GNOME dialog.
11314 * app/grid.c (grid_draw): use preferences when drawing page break
11317 * app/preferences.c: add page break preferences to dialog.
11319 * app/preferences.h: added page break preferences.
11321 2000-02-25 James Henstridge <james@daa.com.au>
11323 * sheets/UML.sheet: added new objects.
11325 * objects/UML/uml.c: link in the two new objects.
11327 * objects/UML/node.c:
11328 * objects/UML/branch.c: new UML objects from Stfan Seefeld
11329 <seefelds@magellan.umontreal.ca>.
11331 2000-02-24 James Henstridge <james@daa.com.au>
11333 * objects/custom/custom_object.c: converted to use the properties
11334 interface. In the future, it would be nice to add support for
11335 defining custom properties for custom objects, but that can wait.
11337 2000-02-22 James Henstridge <james@daa.com.au>
11339 * sheets/Circuit.sheet: added new circuit shapes to sheet.
11341 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
11342 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
11343 and adds a few new features.
11345 2000-02-21 Daniel Egger <egger@suse.de>
11347 * sheets/*.sheets: Added German translations and made some
11348 corrections to the others.
11350 2000-02-21 James Henstridge <james@daa.com.au>
11352 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
11354 * shapes/Circuit/...: added new shapes from Erik Janssens.
11356 2000-02-20 James Henstridge <james@daa.com.au>
11358 * app/interface.c (create_color_area): realize the parent window
11361 * objects/standard/image.c: properties patch for standard image
11362 object, from Lars Clausen.
11364 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
11366 * lib/properties.h (PropType): added file property type.
11368 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
11371 * app/interface.c: use wrap box for toolbox.
11373 * app/Makefile.am: added new files.
11375 * app/gtk*wrapbox.[ch]: added wrap box widget.
11377 2000-02-19 James Henstridge <james@daa.com.au>
11379 * sheets/network.sheet: added extra shapes to networks sheet.
11381 * configure.in (AC_OUTPUT): added shapes/network/Makefile
11383 * shapes/network/*: added shapes that were posted to the list a while
11386 * shapes/Makefile.am (SUBDIRS): added network subdirectory
11388 * app/menus.c (toolbox_menu_items): don't right justify help menu for
11389 gtk+ version of menus.
11391 * app/properties.c (create_dialog): use a GnomeDialog if we happen
11394 2000-02-18 James Henstridge <james@daa.com.au>
11396 * objects/flowchart/box.c: set extra data for corner radius and text
11397 padding properties.
11399 * objects/standard/box.c: set extra data for corner radius property.
11401 * lib/properties.h: set extra data in some standard properties.
11403 * lib/properties.c (prop_get_widget): look at the extra data for
11404 int, real and enum property types. They now use GtkSpinButton and
11405 GtkOptionMenu respectively.
11407 * lib/properties.h: extra data members for creating property setting
11410 2000-02-17 James Henstridge <james@daa.com.au>
11412 * objects/flowchart/box.c: reverted load/save functions back to
11413 previous implementations. Made box use standard property names.
11415 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
11417 * app/grid.c: add more digits to the grid edit dialog. This patch
11418 was also from Lars Clausen.
11420 * objects/standard/zigzagline.c:
11421 * objects/standard/textobj.c:
11422 * objects/standard/polyline.c:
11423 * objects/standard/line.c:
11424 * objects/standard/ellipse.c:
11425 * objects/standard/box.c:
11426 * objects/standard/bezier.c:
11427 * objects/standard/arc.c: patches to add properties code to standard
11428 objects. Based on patches from Lars Clausen. I have also removed
11429 some dead code from the files.
11431 * lib/properties.h (PROP_STD_*): define a number of standard
11432 properties. Where appropriate, objects should include these
11433 properties in their PropDescription list. This way, the intersection
11434 of properties of two different shapes will be greater.
11436 2000-02-14 James Henstridge <james@daa.com.au>
11438 * objects/flowchart/box.c (box_load, box_save): use property save
11439 routines. Make sure that any props not handled by object_load_props
11440 are loaded before calling object_load_props, or we get errors because
11441 update_data is called.
11443 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
11444 error that could cause properties to be loaded incorrectly.
11445 (object_set_props_from_offsets): similar here.
11447 * lib/properties.[ch] (prop_{load,save}): functions for loading
11448 or saving a property in Dia's XML file format.
11449 (object_{load,save}_props): load or save some properties of an
11450 object. These functions should help simplify the load/save methods
11451 of objects that implement the properties interface.
11453 2000-02-13 James Henstridge <james@daa.com.au>
11455 * objects/flowchart/box.c: use offset code to simplify property
11458 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
11460 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
11462 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
11464 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
11466 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
11469 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
11472 Add the custom object to DIA_LIB_PATH in run_dia.sh
11474 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
11476 * sheets/Circuit.sheet:
11477 * shapes/l_sout* (NEW):
11478 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
11479 variants of simple, inverted, set and reset outputs.
11480 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
11481 probably a split of Contact and Ladder sheets. And then a major
11482 revamping of the Contact sheet.
11484 2000-02-10 James Henstridge <james@daa.com.au>
11486 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
11488 * app/app_procs.c (register_all_objects): don't explicitely
11489 register the custom objects library -- let it be loaded by the
11490 normal plugin loading methods.
11492 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
11494 * objects/custom/Makefile.am: build libcustom_objects as a shared
11497 * objects/custom/shape_info.[ch]: don't read the description field
11498 of custom shapes. It makes more sense to have these in the sheet
11499 file to localise the parts of dia that translators have to deal
11502 * objects/custom/custom_object.c (custom_object_new): do not
11503 create the sheet object for the new custom shape -- this is
11504 handled by the custom sheet code.
11506 * objects/custom/custom.c: change over to being a normal plug-in
11507 rather than being linked with the main dia executable.
11509 2000-02-09 James Henstridge <james@daa.com.au>
11511 * sheets/Circuit.sheet:
11512 * sheets/Flowchart.sheet:
11513 * sheets/Contact.sheet: fixed up sheets.
11515 * objects/custom/custom_object.c (custom_object_new): set the
11516 extra ObjectType fields.
11518 * lib/sheet.c: use extra ObjectType fields when creating sheet
11519 objects. Give a warning if <shape> tags are found in a sheet
11520 file. Now the custom sheet code does not know about custom
11521 shapes -- they look like any other object type.
11523 * lib/object.h (ObjectType): added extra members
11525 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
11527 * app/linewidth_area.c:
11528 Added code to set arbitrary line width.
11529 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
11531 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
11533 * app/linewidth_area.c:
11535 Add support for font-sucking.
11536 Implementation borrowed from gnome-canvas.
11538 * app/render_libart.[ch]:
11539 Implement text rendering.
11541 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
11543 * app/properties.c (create_dialog):
11544 ref and sink no_properties_dialog.
11546 2000-02-07 James Henstridge <james@daa.com.au>
11548 * app/group.c (group_describe_props): new function. Return the
11549 intersection of the properties of the contained objects that
11550 implement the describe_props interface.
11551 (group_get_props): implement by iterating through contained objects
11552 and calling their get_props method until all properties have been
11553 set. Maybe this should go through all objects all the time??
11554 (group_set_props): implement by calling set_props method on all
11556 (group_ops): use standard props dialog creation routines.
11558 * lib/properties.c (prop_desc_lists_intersection): fix implementation
11559 of intersection -- I was using i++ instead of i-- in a for loop :(
11561 * objects/custom/custom.c (custom_register_objects): fix usage
11562 of dia_get_data_directory again.
11564 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
11565 actually read the sheets.
11567 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
11569 Win32 port by Hans Breuer <Hans@Breuer.org>
11572 Remove DATADIR and LIBDIR defines.
11575 Add dia_dirs.c and dia_dirs.h
11576 Added DATADIR and LIBDIR defines.
11578 * lib/dia_dirs.[ch]:
11579 New files for handling special directories.
11584 * objects/custom/custom.c:
11585 Fix warnings. Use directory functions.
11588 Add prototype for diagram_redraw_all.
11590 * app/diaunitspinner.c:
11593 * app/preferences.c:
11597 Win32 doesn't have mkstemp and fchmod.
11599 * app/paginate_psprint.c:
11600 Win32 calls popen _popen and pclose _pclose.
11603 Win32 calls finite _finite.
11606 Win32 needs to dllexport the color vars.
11608 * objects/GRAFCET/step.c:
11609 * objects/chronogram/chronoref.c:
11610 snprintf -> g_snprintf
11612 2000-02-05 James Henstridge <james@daa.com.au>
11614 * lib/properties.c: more fixes so that it doesn't crash when using
11615 properties. The undo/redo stuff also works!!
11617 * objects/flowchart/box.c (box_{describe, get, set}_props): test
11618 object where I have implemented the new properties interface
11619 complete with automatic properties dialog generation.
11621 * lib/properties.c (object_apply_props): fixed stupid error when
11622 creating the old_props array. Also, it no longer frees the props
11623 array -- you will have to do that yourself.
11625 2000-02-04 James Henstridge <james@daa.com.au>
11627 * app/properties.c (properties_apply): pass object_part to
11630 * lib/object.h (ApplyPropertiesFunc): added widget argument.
11632 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
11633 created this way as well.
11635 * objects/*/*.c: ref and sink the properties dialog window for each
11636 widget. It can't rely on ref count being incremented by
11637 properties_show anymore.
11639 * app/properties.c (properties_show): don't ref the widget before
11640 removing it, or its ref count will increase each time you open the
11641 properties dialog. Don't unparent the widget, as container_remove
11644 * lib/object.h: fixed up prototypes for new object methods.
11646 * lib/properties.[ch]: added functions for automatically creating
11647 a properties dialog from the output of describe_props, get_props and
11649 (object_apply_props): apply properties and return an ObjectChange
11650 structure that can be used for undo.
11652 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
11654 * objects/GRAFCET/transition.c: minor leak plugged.
11656 * sheets/GRAFCET.sheet:
11657 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
11658 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
11660 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
11661 new ones (for condition.c).
11662 * objects/GRAFCET/action.c: added connection points for the conditions.
11663 * samples/grafcet.dia: updated the sample to improve conformance to
11664 IEC 848 and take advantage of dia's new features.
11666 * lib/geometry.h: (point_get_normed) fixed a typo.
11668 2000-02-02 James Henstridge <james@daa.com.au>
11670 * lib/object.h: added object functions describe_props, get_props and
11671 set_props. Do type definitions so that object.h doesn't need to
11672 include properties.h, since properties.h includes object.h.
11674 * lib/properties.[ch]: more hacking.
11676 * po/de.po: updated po file.
11678 2000-01-30 James Henstridge <james@daa.com.au>
11680 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
11681 check to see if the C compiler accepts the flag beforehand.
11683 * lib/properties.[ch]: start of properties code.
11685 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
11687 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
11689 * sheets/GRAFCET.sheet:
11690 * sheets/GRAFCET/etapemc.xpm: (NEW)
11691 * sheets/GRAFCET/etapesp.xpm: (NEW)
11692 * objects/GRAFCET/step.c: Added the macro and
11693 sub-program call step types.
11695 * objects/GRAFCET/receptivity.[ch]: renamed to
11696 objects/GRAFCET/boolequation.[ch].
11697 * objects/GRAFCET/transition.c: changed (Receptivity *) to
11700 * lib/connpoint_line.[ch]:
11701 * objects/chronogram/chronoline.c:
11702 * objects/chronogram/chronoref.c:
11703 * objects/GRAFCET/vergent.c:
11704 * objects/standard/line.c:
11705 * objects/SADT/box.c: Minor CPL interface changes, factored out the
11706 point count adjustment code into the CPL object.
11708 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
11710 * app/render_libart.c:
11711 Added support for images and bezier curves.
11712 Only text/fonts missing now.
11714 * app/render_gdk.c:
11715 Removed old erronous comment.
11717 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
11719 * objects/chronogram/chronoline_event.c: removed references to
11720 lround(). Please don't insist, I'm already red of shame.
11722 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
11724 * app/render_libart.[ch]:
11726 Non-finished libart renderer.
11729 Added HAVE_LIBART flag
11735 Call gdk_rbg_init().
11737 * app/connectionpoint_ops.c:
11738 * app/disp_callbacks.c:
11740 * app/handle_ops.c:
11742 * app/modify_tool.c:
11743 Change ddisp->renderer type from RendererGdk * to Renderer *
11744 Draw zoom and select rects in ddisp->canvas->window instead
11745 of ddisp->renderer->renderer->pixmap.
11747 * app/display.[ch]:
11748 Add aa_renderer to DDisplay, and support for it.
11749 New function ddisplay_set_renderer() for changing renderer.
11750 Add ddisplay_transform_coords_double() function, used by aa renderer.
11751 Change ddisp->renderer type from RendererGdk * to Renderer *
11754 Add antialias to menu.
11756 * app/commands.[ch]:
11757 add view_aa_callback function
11758 Change ddisp->renderer type from RendererGdk * to Renderer *
11760 * lib/geometry.[ch]:
11761 Added IntRectangle and int_rectangle_union.
11763 2000-01-28 James Henstridge <james@daa.com.au>
11765 * app/commands.h: removed prototypes.
11767 * app/commands.c: removed the functions that have been moved to
11770 * app/filedlg.h: added new prototypes.
11772 * app/filedlg.c (file_open_callback): move open dialog to this
11773 file. This implementation should remember the current directory
11774 between file loads.
11775 (file_save_as_callback): moved this dialog as well.
11776 (file_save_callback): moved this function here.
11778 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
11779 align page boundaries to the origin.
11781 * app/diagram.c (diagram_update_extents): redraw the diagram if the
11782 scaling factor changes while updating the extents. This is so the
11783 page breaks get redrawn correctly.
11785 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
11788 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
11789 For normal mode, use (0,0) as the origin. For `fit to' mode, use
11790 the corner of the bounding box.
11792 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
11793 into page setup dialog.
11794 (pagesetup_apply): apply new `fit to' attributes to the diagram.
11796 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
11797 (diagram_data_save): save `fit to' data.
11799 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
11800 (data_update_extents): when in `fit to' mode, update scale factor
11801 when we update the extents.
11803 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
11806 * .../.cvsignore: added some cvsignore files to quieten cvs.
11808 * app/pagesetup.c (pagesetup_changed): added code to change the
11809 scaling/fit to values as you change the options in the page setup
11810 dialog. I haven't added code so that the fit to options are saved
11813 * app/diapagelayout.[ch]: changed the scaling portion of the widget
11814 to make it easier to set a `fit to' style scaling factor.
11816 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
11817 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
11818 but connpoint_line-based, so that there's a connection point at the
11819 middle of each segment. Currently only the SADT arrow uses this.
11821 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
11823 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
11824 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
11825 saving and editing of properties (and default properties).
11826 See the new objects (GRAFCET, SADT, chonograms) for examples.
11827 For already too hairy stuff, see objects/chronogram/chronoline.c.
11829 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
11830 evenly spaced connection points, which the user can add or remove at
11831 will. An object can own several connection point lines. See the SADT
11832 Box, or the GRAFCET vergents for examples.
11834 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
11835 quiet about unused stuff.
11837 * objects/GRAFCET (NEW):
11838 * samples/grafcet.dia (NEW):
11839 Added support for GRAFCET charts.
11841 * objects/chronogram (NEW):
11842 * samples/chronograms.dia (NEW):
11843 Added support for chronograms (feature requested by Ronald L. Chichest;
11844 I found I'd use it often, too).
11846 * objects/standard/line.c: Replace the middle connectionpoint by
11847 a whole connection point line, which defaults to one point (hint,
11848 hint). New Line object menu to take advantage of this.
11849 "Bothwards" compatibility is preserved (although you may loose
11850 connections if you load a newer file in a older dia).
11852 * app/lineprops_area.c:
11854 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
11855 (feature requested by Benjamin Kahn).
11856 Merged in Steffen Macke's slashed arrow head type.
11858 * app/Makefile.am (app/run_dia.sh actually):
11859 Added $DEBUGGER in front of dia's invocation, so that
11860 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
11861 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
11862 "EFENCE=-lefence" to link with Electric Fence.
11864 * configure.in: Made gcc do more aggressive optimisations on i386, and
11867 2000-01-24 James Henstridge <james@daa.com.au>
11869 * lib/geometry.[ch]: added inline versions of functions. Used
11870 glib's G_INLINE_FUNC stuff, so it should still work on systems
11871 without inline funcs.
11873 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
11874 it outputs the correct element id for the ellipse objects.
11876 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
11878 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
11879 object_add_handle_at. Message typo fixed.
11881 * lib/sheet.c (load_register_sheet):
11882 potential bug fixed (warning hunt).
11884 * objects/custom/custom.c (custom_object_load): disabled an assertion
11885 which made dia abort upon failure to load a shape file. Fixed a
11888 * objects/custom/shape_info.c (load_shape_info): Made the custom
11889 shape load code ignore XML comments between <?xml ...?> and the
11890 root object (mostly useful to put the emacs magic comments).
11892 * app/load_save.c: Made dia do backup copies of files when saving,
11893 and complain in case of failure.
11895 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
11897 * AUTHORS: fixed my address (ISP thought it was a great idea to change
11902 * shapes/Contact/*:
11903 * sheets/Contact.sheet:
11904 * sheets/Makefile.am:
11905 Added support for Contact and LADDER charts.
11907 * dia.desktop: Added a French translation.
11909 2000-01-23 James Henstridge <james@daa.com.au>
11911 * app/commands.c (help_about_callback): don't die if can't load
11914 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
11915 out NaN's when performing bezier curve subdivision.
11917 * objects/custom/custom_object.c: initialise memory of Custom structs
11920 * app/render_svg.c (draw_image): added image support to the XML
11921 output filter. The image is just referenced, rather than being
11922 included inline, so if you copy the SVG file somewhere else, you
11923 may need to move the images or fix up the links.
11925 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
11926 so the text is not just displayed in black all the time.
11928 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
11930 * configure.in: fixed libpopt test so we wont try to build with
11933 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
11935 * configure.in: Added "uk" to ALL_LINGUAS.
11937 1999-12-24 James Henstridge <james@daa.com.au>
11939 * po/ru.po: updated russian translation from Valek Filippov.
11941 * app/render_svg.c (new_svg_renderer): make output use 19991203
11942 version of SVG DTD. Use viewBox to set the extents of the view.
11944 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
11945 ftp.gnome.org as the download.
11947 * TODO (TODO): weeded out completed todo items and added a few extra.
11949 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
11951 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
11952 be good to get rid of the object/shape distinction and separate
11953 the custom shape code out from the main application.
11955 * objects/custom/README, diagram.dtd: moved to new doc directory.
11956 Renamed the custom shapes README to custom-shapes. Also updated
11957 custom shape docs a bit and removed the section on sheet files, as
11958 that has changed a bit.
11960 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
11961 of the image data is larger than the maximum cell array. I should
11962 add code to break scan lines down further in this case, but for now
11963 an error message is better than an infinite loop.
11965 * app/filedlg.c (file_export_ok_callback): show a dialog if we
11966 couldn't determine the export filter to use.
11968 * app/commands.c (help_about_callback): fixed up about box logo
11969 expose bug. Now just use a GtkPixmap widget rather than a
11970 GtkDrawingArea and calling gdk_imlib_paste_image.
11972 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
11973 because automake does not always get things right.
11975 * configure.in: updated version number to 0.83.
11977 * app/preferences.c (prefs_save):
11978 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
11979 for fopen. Text is the default file mode anyway.
11981 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
11982 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
11983 * app/load_save.c (write_objects, write_connections):
11984 * app/filedlg.c (file_export_ok_callback):
11985 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
11986 * lib/dia_xml.c (data_add_point, data_add_rectangle):
11987 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
11988 snprintf to calls to g_snprintf.
11990 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
11991 as the picture name.
11993 1999-12-23 James Henstridge <james@daa.com.au>
11995 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
11996 negative numbers. This fixes the upside down text problem I was
11998 (draw_image): implemented the image code. It will try to split the
11999 image data up into bands if it is too big to fit into a single
12000 cgm cell array element. It will have problems if you try to insert
12001 an image wider than about 10,000 pixels though.
12003 * Makefile.am: use gnomedatadir for the files that need to be
12004 installed in gnome's datadir. This is mainly to help people doing
12005 packages for weird setups.
12007 1999-12-22 James Henstridge <james@daa.com.au>
12009 * plug-ins/cgm/cgm.c: added support for text. Now only images and
12010 beziers are left to do. The text seems to be the wrong way up
12011 still. This is probably a problem with character orientation
12012 element, but I have used what the settings given in the standard.
12013 Other than this, the CGMs dia produces are readable (and displayable)
12014 by ralcgm and corel draw.
12015 (draw_string): subtract from the X coord rather than the Y coord for
12016 center and right aligned text.
12018 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
12019 the size of a real number, and changed name of write_double to
12020 write_real. Consider changing to fixed real encoding. Also, now
12021 all element headers are correct. Once the real number encoding is
12022 fixed, only text, beziers and images are left to do.
12024 1999-12-21 James Henstridge <james@daa.com.au>
12026 * Makefile.am (SUBDIRS): recurse into plug-ins.
12028 * configure.in: add plug-ins directory makefiles to list.
12030 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
12031 not done yet. Also, the output files are not quite correct.
12033 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
12034 font. It doesn't work if you do.
12036 1999-12-20 James Henstridge <james@daa.com.au>
12038 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
12039 export the files. Instead, use filter_guess_export_filter to
12040 guess the correct format to save in and use the appropriate filter.
12041 It defaults to postscript for compatibility.
12043 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
12046 * app/commands.[ch]: removed export to eps functions.
12048 * app/menus.c: removed export to eps menu items.
12050 * app/app_procs.c: register new export filters.
12052 * app/load_save.[ch]: define dia native export filter.
12054 * app/render_eps.[ch]: define eps export filter.
12056 * lib/filter.h: added diafilename argument to the DiaExportFunc
12057 prototype. This is useful for putting the source of the diagram
12058 into the output file for instance.
12060 * app/app_procs.c (app_init): register the SVG export filter. Have
12061 to get EPS code converted to this API, and maybe also allow saving in
12062 DIA's native format from the export dialog. In fact, it is now
12063 possible to load an export filter from a shared library and it will
12064 integrate into the interface correctly.
12066 * app/menus.c: removed references to the SVG renderer.
12068 * app/commands.[ch]: removed svg stuff.
12070 * app/diagram.[ch]: removed diagram_export_to_svg function.
12072 * app/render_svg.[ch]: added a DiaExportFilter structure for this
12075 * app/filedlg.[ch]: code for the new export diagram dialog. Will
12076 probably move the open/save dialogs to this file as well.
12078 1999-12-19 James Henstridge <james@daa.com.au>
12080 * lib/filter.[ch]: start of interface for generalised handling of
12081 filters. I have only done code for export filters so far. I still
12082 need to do the gui for this, and convert the current SVG and EPS
12083 filters to the new API.
12085 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
12086 weren't setting the last handle correctly. It was actually assigning
12087 to the wrong position in the handles array, so the last handle was
12088 left as NULL, which caused the segfault.
12090 * objects/standard/image.c (image_copy): modified routine so that
12091 it just adds a reference to the DiaImage structure in the new image
12092 object. This seems to have cleared up the problems with copying
12095 * dia.spec: spec file additions from John Gotts.
12097 1999-12-12 James Henstridge <james@daa.com.au>
12099 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
12100 has not been released yet though.
12102 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
12105 The following based on a patch from Lars Clausen:
12107 * objects/standard/bezier.c (bezierline_move_handle): when performing
12108 the initial drag of the bezierline, move the control points to keep
12111 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
12112 make the new control points a bit closer to the major point.
12114 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
12115 as the reason for the move.
12116 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
12119 * lib/handle.h: new handle move reasons.
12121 1999-12-09 James Henstridge <james@daa.com.au>
12123 * dia.spec: include the new files in RPMs.
12125 * Makefile.am: install these new files.
12127 * dia.keys.in: file describing actions and icon for dia diagrams for
12128 use in the gnome file manager.
12130 * dia.mime: a file defining the application/x-dia-diagram mime type.
12132 * dia-diagram.png: an icon for dia diagrams.
12134 1999-12-08 James Henstridge <james@daa.com.au>
12136 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
12138 * plug-ins/python/pydia-display.[ch]: wrapper for display.
12140 * objects/standard/ellipse.c: applied Lars's patch to optionally not
12141 draw the background of the ellipse.
12143 * app/load_save.c (read_connections): do some sanity checking on the
12144 handle and connection point numbers before performing the object
12147 * lib/bezier_conn.c (bezierconn_load): give the correct number of
12148 handles when loading a BezierConn.
12150 1999-12-07 Kjartan Maraas <kmaraas@online.no>
12152 * sheets/*.sheet: Finished Norwegian translations.
12154 1999-12-07 James Henstridge <james@daa.com.au>
12156 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
12157 (PyDia_GetObjectType): find object type function.
12159 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
12160 method for diagrams.
12162 * plug-ins/python/pydia-object.c: added methods for DiaObject and
12165 * AUTHORS: added Lars and Cyrille to the authors file.
12167 * objects/standard/bezier.c (bezierline_add_segment_callback): place
12168 new point correctly.
12170 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
12172 * lib/bezier_conn.c: applied Lars's patch for placement of the new
12173 point when adding a segment to a BezierConn.
12175 1999-12-06 James Henstridge <james@daa.com.au>
12177 * plug-ins/python/test.py: test script for the python plug-in.
12179 * plug-ins/python/python.c: this file contains the plug-in startup
12180 code for the python plugin. Right now, it just initialises the
12181 dia module and executes a script.
12183 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
12185 * objects/standard/bezier.c (bezierline_draw): draw control lines for
12186 bezier curve if we are using an interactive renderer (ie. only if
12187 displaying to the screen).
12189 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
12190 to draw control lines on to a bezier curve. Based on implementation
12193 * objects/standard/bezier.c (bezierline_delete_segment_callback):
12194 calculate segment number using closest_segment rather than
12195 closest_handle. Sometimes the closest handle is part of a different
12197 (bezierline_draw): use correct size for start arrow.
12199 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
12200 * lib/geometry.c (distance_line_point): added notes to documentation
12202 * app/object_ops.c (object_list_align_v):
12203 (object_list_align_h): fix of by one error when calculating free space
12204 for equal distance alignment.
12205 * app/menus.c (objects_align_h, objects_align_v): include align
12206 adjacent menu items in the gnome version of the menus.
12207 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
12208 align adjacent menu items correctly.
12211 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
12214 * objects/standard/bezier.c: converted bezierline to use BezierConn.
12215 Still a few bugs. It crashes on deleting line segments.
12217 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
12219 1999-12-05 James Henstridge <james@daa.com.au>
12221 * lib/bezier_conn.[ch]: start of BezierConn object
12223 * app/interface.c: add bezierline to toolbox.
12225 * objects/standard/standard.c: initialise bezierline.
12227 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
12228 made a few modifications to get it working nicely. It still needs
12229 a bit of work though. Maybe create a BezierConn object in lib.
12231 1999-12-02 James Henstridge <james@daa.com.au>
12233 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
12235 * plug-ins/python/Makefile.am: tried building everything. It is
12236 building as a library at the moment. I will have to convert it
12237 to a libtool library and add some initialisation code.
12239 * plug-ins/python/diamodule.c: start of the dia module, using the
12240 other object wrappers. Not complete.
12242 1999-12-01 James Henstridge <james@daa.com.au>
12244 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
12245 the handles and connections attributes.
12247 * plug-ins/python/pydia-layer.c: added functions that use
12250 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
12252 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
12254 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
12255 I am currently wrapping the basic elements in the diagram in python
12256 objects -- nothing to see or play with yet.
12258 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
12262 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
12264 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
12268 Added russian translation from Valek Filippov <frob@df.ru>
12270 1999-11-24 James Henstridge <james@daa.com.au>
12273 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
12274 discussed with Alex. Also added extra makefiles so that make install
12277 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
12279 * app/preferences.[ch]:
12281 Added snap to grid preference.
12282 Patch from Michael Leslie <mles@springboardwireless.com>
12284 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
12290 * objects/custom/shape_info.c:
12291 All strings returned by libxml must be freed with free, not
12292 g_free, or there will be problems if you use memory debugging
12295 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
12297 * app/create_object.[ch]:
12300 * app/commands.[ch]:
12302 * app/interface.[ch]:
12303 Reverted the tool menu patch. It has some 'issues'.
12304 I liked it though, so it'll probably return.
12306 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
12308 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
12309 <bruce@cybersight.com> for some purify runs and analysis.
12310 Also a great thank you to Owen Taylor for creating MemProf, a
12311 free memory leak detector that was used to find and verify a
12312 lot of these fixes.
12315 * app/paginate_psprint.c:
12316 * app/render_eps.[ch]:
12317 * app/render_svg.[ch]:
12321 Don't add a reference to ddisp->shell. Why was this done in
12328 Free all strings returned from xmlGetProp
12330 * app/modify_tool.c:
12333 * objects/custom/custom.c:
12334 Use closedir() after opendir().
12336 * objects/custom/shape_info.c:
12337 User g_free() instead of "if (tmp) free(tmp)".
12340 Add newline at end of file.
12343 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
12345 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
12346 Adds tool menu and keyboard shortcuts.
12348 * app/create_object.[ch]:
12349 Use tool_set() instead of tool_reset().
12350 create_create_object_tool() takes extra type argument
12356 Moved tool_data here, export it.
12357 Add separate tool type for all create objects tools.
12358 new functions tool_set().
12361 New callback tool_set_callback.
12364 Moved some pixmaps to interface.c.
12367 Remove tool_data array (moved to tool.c).
12368 Use the tool_data from tool.c.
12369 Remove modify_tool_button global var.
12371 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
12373 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
12376 Interprets command-line arguments as files to open even when
12377 HAVE_POPT is not defined.
12380 Shift-clicking when zooming zooms out, like the Gimp.
12383 Has hotkeys for zoom-100% and snap-to-grid.
12385 1999-11-17 James Henstridge <james@daa.com.au>
12387 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
12388 that it is not jumpy.
12390 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
12392 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
12393 scrolling by pressing the shift key when using the scroll tool.
12395 * sheets/Makefile.am: fixed makefile so that install actually works
12396 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
12398 (SHEETS): install Circuit.sheet
12400 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
12401 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
12403 * sheets/Circuit.sheet:
12406 * sheets/Flowchart.sheet:
12407 * sheets/UML.sheet:
12408 * sheets/network.sheet:
12409 * sheets/sybase.sheet:
12412 * sheets/Circuit.sheet:
12413 added some missing French translations
12416 killed the temporary sheet namespace
12418 * objects/custom/custom.c:
12419 obsolete comment cleaned up
12421 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
12425 Added portugese translation from Pedro Morais
12426 <pmmm@rnl.ist.utl.pt>
12428 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
12430 Changed all sheets to be specified in xml.
12431 All sheet objects removed from the C code.
12432 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
12437 Updated version to 0.81cvs.
12440 Update run_dia.sh with sheet-dir.
12443 Load all sheets on startup.
12444 Create sheet directory first time.
12445 Don't call custom_register_sheets().
12448 Add sheetdir define
12451 Remove custom_register_sheets().
12454 Add sheet loading code.
12456 * sheet/Circuit.sheet:
12459 * sheet/Flowchart.sheet:
12461 * sheet/network.sheet:
12462 * sheet/sybase.sheet:
12465 * sheet/ER/weakentity.xpm:
12466 * sheet/UML/aggregation.xpm
12467 * sheet/UML/umlclass_template.xpm
12468 Added sheet pixmaps.
12469 These are moved from their old places.
12471 * sheet/.cvsignore:
12475 Removed sheet objects and sheet registration.
12477 * objects/ER/Makefile.am:
12478 * objects/ER/pixmaps/weakentity.xpm:
12479 * objects/UML/Makefile.am:
12480 * objects/UML/pixmaps/aggregation.xpm:
12481 * objects/UML/pixmaps/umlclass_template.xpm:
12482 Removed alternative pixmaps. (Moved to sheet).
12484 * objects/custom/Makefile.am:
12485 * objects/custom/load_sheet.[ch]:
12486 Removed old sheet loading code.
12488 * objects/custom/custom.c:
12489 Load all shapes instead of sheets.
12490 Removed custom_register_sheets().
12492 * objects/custom/custom_object.c:
12495 * objects/custom/shape_info.[ch]:
12496 Added shape_info_getbyname().
12498 * objects/flowchart/Makefile.am:
12499 * objects/flowchart/collate.shape
12500 * objects/flowchart/delay.shape
12501 * objects/flowchart/display.shape
12502 * objects/flowchart/document.shape
12503 * objects/flowchart/extract.shape
12504 * objects/flowchart/flowchart.c
12505 * objects/flowchart/intstorage.shape
12506 * objects/flowchart/magdisk.shape
12507 * objects/flowchart/magdrum.shape
12508 * objects/flowchart/magtape.shape
12509 * objects/flowchart/manualinput.shape
12510 * objects/flowchart/manualop.shape
12511 * objects/flowchart/merge.shape
12512 * objects/flowchart/offlinestore.shape
12513 * objects/flowchart/offpageconn.shape
12514 * objects/flowchart/or.shape
12515 * objects/flowchart/predefdproc.shape
12516 * objects/flowchart/preparation.shape
12517 * objects/flowchart/punchedcard.shape
12518 * objects/flowchart/punchedtape.shape
12519 * objects/flowchart/sort.shape
12520 * objects/flowchart/sumjunction.shape
12521 * objects/flowchart/terminal.shape
12522 * objects/flowchart/transaction.shape
12523 * objects/flowchart/transmittape.shape
12524 * objects/flowchart/pixmaps/collate.xpm
12525 * objects/flowchart/pixmaps/delay.xpm
12526 * objects/flowchart/pixmaps/display.xpm
12527 * objects/flowchart/pixmaps/document.xpm
12528 * objects/flowchart/pixmaps/extract.xpm
12529 * objects/flowchart/pixmaps/intstorage.xpm
12530 * objects/flowchart/pixmaps/magdisk.xpm
12531 * objects/flowchart/pixmaps/magdrum.xpm
12532 * objects/flowchart/pixmaps/magtape.xpm
12533 * objects/flowchart/pixmaps/manualinput.xpm
12534 * objects/flowchart/pixmaps/manualop.xpm
12535 * objects/flowchart/pixmaps/merge.xpm
12536 * objects/flowchart/pixmaps/offlinestore.xpm
12537 * objects/flowchart/pixmaps/offpageconn.xpm
12538 * objects/flowchart/pixmaps/or.xpm
12539 * objects/flowchart/pixmaps/predefdproc.xpm
12540 * objects/flowchart/pixmaps/preparation.xpm
12541 * objects/flowchart/pixmaps/punchedcard.xpm
12542 * objects/flowchart/pixmaps/punchedtape.xpm
12543 * objects/flowchart/pixmaps/sort.xpm
12544 * objects/flowchart/pixmaps/sumjunction.xpm
12545 * objects/flowchart/pixmaps/terminal.xpm
12546 * objects/flowchart/pixmaps/transaction.xpm
12547 * objects/flowchart/pixmaps/transmittape.xpm
12548 Moved shapes and their pixmaps to shapes/flowchart
12550 * shapes/Circuit/Makefile.am:
12551 * shapes/Circuit/index.sheet:
12552 Removed index.sheet.
12554 * shapes/Makefile.am:
12555 * shapes/flowchart/Makefile.am:
12556 * shapes/flowchart/*.shape:
12557 * shapes/flowchart/*.xpm:
12558 Added flowchart shapes. (Moved from objects/flowchart)
12561 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
12563 * app/app_procs.c: Fixed popt stuff.
12565 1999-11-01 James Henstridge <james@daa.com.au>
12567 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
12570 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
12574 Update version to 0.81.
12577 Update with news for 0.81.
12579 * shapes/Circuit/*:
12580 * shapes/Circuit_eu/*:
12581 Moved european circuit objects to Circuit sheet.
12583 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
12585 * lib/diagramdata.[ch]:
12586 Added layer_set_object_list() function.
12589 Added support for undo of reordered objects.
12590 Fix the undo of delete to keep the right order on undo.
12593 changed loop to object_add_updates_list() calls.
12594 Added undo support to bring to front/back.
12596 * app/disp_callbacks.c:
12597 * app/paginate_psprint.c:
12600 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
12602 This plugs some leaks. Thanks to
12603 Bruce Mitchener <bruce@cybersight.com> for running
12604 Dia through purify for me.
12607 Free displays and diagrams on exit.
12609 * app/modify_tool.c:
12610 Free gc when freeing tool.
12612 * lib/diagramdata.c:
12616 Free update and display lists when destroying display.
12618 * lib/diagramdata.c:
12619 Don't leak layer name.
12621 * objects/custom/load_sheet.c:
12622 * objects/custom/shape_info.c:
12623 Free loaded xml documents.
12625 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
12628 * app/object_ops.[ch]:
12629 Add undo handling to alignment ops.
12630 Based partially on patch by Dan Cohn <dan@internap.com>.
12632 * objects/standard/image.c (image_move_handle):
12633 Don't divide by zero for small images.
12634 Patch by Dan Cohn <dan@internap.com>.
12636 * objects/UML/class.c (umlclass_destroy):
12637 * objects/custom/custom_object.c (custom_destroy):
12638 Don't free connectionpoints before calling element_destroy
12639 which unconnects them.
12641 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
12643 * objects/custom/custom_object.c:
12644 Load and save padding too. Fixes strange load crashes.
12646 * app/group.c (group_destroy):
12647 Don't unconnect already freed connectionpoints when
12648 destroying group. Probably fixes bug reported by
12649 Elliot Lee <sopwith@redhat.com>.
12651 * app/render_gdk.c:
12652 Don't crash on zero-size (broken) bezier curves.
12653 Different sort of fix. This should work on closed bezier curves
12656 * objects/standard/textobj.c:
12657 Activate default properties dialog for Text objects.
12659 * app/render_eps.c:
12661 * app/preferences.c:
12662 * app/render_svg.c:
12663 fopen files in binary or text mode.
12665 1999-10-26 Alexander Larsson <alex@cendio.se>
12667 * app/render_gdk.c (bezier_add_lines):
12668 Don't crash on zero-size (broken) bezier curves.
12669 Fixes a crashing bug.
12671 1999-10-25 James Henstridge <james@daa.com.au>
12673 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
12674 before it is installed.
12676 * objects/flowchart/flowchart.c: use relative paths to find shapes.
12678 * objects/custom/custom.c (custom_object_load): take file names
12679 relative to $(pkgdatadir)/shape-internal, and check an environment
12680 variable for an alternative directory.
12682 * app/...: added copyright messages to the top of my new code.
12684 * app/paginate_psprint.c: some general clean ups. Also, give an error
12685 dialog if we can't open the command or output file for writing.
12687 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
12688 function so it would set orientation to landscape correctly.
12690 * app/paginate_psprint.c: use the paper settings that come with
12691 the diagram. Also implemented landscape printing.
12693 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
12696 * app/commands.[ch] (file_pagesetup_callback): added callback for
12697 the page setup dialog.
12699 * app/menus.c: added page setup menu item.
12701 * app/pagesetup.[ch]: implementation of the page setup dialog.
12703 * app/diapagelayout.[ch]: added accessors for the scaling factor.
12705 * app/load_save.c (diagram_load): load paper information from save
12707 (diagram_save): save the paper info.
12709 * lib/diagramdata.c (new_diagram_data): initialise paper info section
12710 of DiagramData structure.
12711 (diagram_data_destroy): free the paper name.
12713 * lib/diagramdata.h: added a paper member to the DiagramData structure
12714 that holds the page layout info for a diagram.
12716 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
12718 * objects/flowchart/box.c:
12719 * objects/flowchart/ellipse.c:
12720 * objects/flowchart/diamond.c:
12721 * objects/flowchart/parallelogram.c:
12722 Load and save padding too. Fixes strange load crashes.
12724 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
12726 * app/app_procs.c (name_is_lib):
12727 .dll, .sl and .so.0.0.0 are also libraries.
12729 1999-10-20 James Henstridge <james@daa.com.au>
12731 * configure.in: added extra makefile.
12733 * shapes/Circuit_eu/*: a new set of european circuit shapes from
12734 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
12735 (added fuses to makefile, fill the area of some of the components).
12737 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
12741 Add GDK_IMLIB_CFLAGS to includes.
12742 Changed --export-dynamic to -export-dynamic
12745 * objects/UML/message.c:
12746 Removed c++ comment.
12748 * lib/render_store.[ch]:
12749 Don't use empty structure. That is not Ansi C.
12751 1999-10-19 James Henstridge <james@daa.com.au>
12753 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
12754 the margin entries, as they allow interpretation of units.
12755 (paper_size_change): display the current page dimensions.
12757 * app/diaunitspinner.[ch]: a widget derived from the standard
12758 GtkSpinButton that tries to take units into account. So if you enter
12759 "1in" into the entry, it will convert it to 2.54cm.
12761 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
12764 Removed include of dlfcn.h
12766 1999-10-18 James Henstridge <james@daa.com.au>
12768 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
12769 bound on margin widths. It is set to the paper width/height.
12771 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
12772 routine for the diamond. This bug was found and fixed by Daniel Wang
12773 <danwang@CS.Princeton.EDU>
12775 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
12777 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
12778 remove warning (OS/2 version).
12780 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
12783 Put a pointer to objects/custom/README.
12785 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
12788 Updated version to 0.80
12791 Updated version to 0.80cvs
12793 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
12795 * Released Dia 0.80
12796 Tag called DIA_0_80
12798 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
12802 * objects/UML/Makefile.am
12803 * objects/ER/Makefile.am
12804 * objects/network/Makefile.am
12805 * objects/standard/Makefile.am
12806 * objects/FS/Makefile.am
12807 * objects/sybase/Makefile.am
12808 * objects/flowchart/Makefile.am
12809 * objects/custom/Makefile.am
12810 Added -I$(top_srcdir)/intl which is needed for
12811 --with-included-gettext.
12817 Updated swedish translation.
12819 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
12822 Updated version number to 0.80.
12828 Updated. Moved bugs to KNOWN_BUGS.
12831 Updated with 0.80 release notes.
12833 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
12836 For backwards compatibility, make sure handle 0 and 1 are the
12837 first and last handle. Fixes compatibility with 0.41, breaks
12838 compatibility with cvs version.
12839 Fixed bug in undo/redo of adding deleting endpoint segments
12840 when the endpoint was connected.
12841 Start OrthConn objects with three segments.
12843 1999-10-16 James Henstridge <james@daa.com.au>
12845 * objects/custom/custom_object.c (custom_update_data): changed
12846 resizing behaviour a bit so that shapes don't grow huge when you try
12847 to resize them to smaller than the size required by the text box.
12848 Also, now shapes will not grow with fixed aspect ratio when you enter
12849 text into them unless the shape has the fixed aspect ratio flag set.
12851 1999-10-15 James Henstridge <james@daa.com.au>
12853 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
12855 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
12857 * objects/flowchart/magdrum.shape:
12858 * objects/flowchart/offlinestore.shape:
12859 * objects/flowchart/punchedtape.shape:
12860 * objects/flowchart/transmittape.shape:
12861 * objects/flowchart/punchedcard.shape: new shapes.
12863 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
12865 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
12867 * objects/flowchart/collate.shape:
12868 * objects/flowchart/delay.shape:
12869 * objects/flowchart/extract.shape:
12870 * objects/flowchart/intstorage.shape:
12871 * objects/flowchart/magdisk.shape:
12872 * objects/flowchart/magtape.shape:
12873 * objects/flowchart/merge.shape:
12874 * objects/flowchart/or.shape:
12875 * objects/flowchart/sort.shape:
12876 * objects/flowchart/sumjunction.shape: new shapes.
12878 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
12882 Entering an erronous command as print command
12885 * app/paginate_psprint.c:
12886 Save all print dialog values for next time.
12889 Remove custom lib from DIA_LIB_PATH.
12891 1999-10-14 James Henstridge <james@daa.com.au>
12893 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
12895 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
12897 * objects/flowchart/offpageconn.shape:
12898 * objects/flowchart/manualop.shape:
12899 * objects/flowchart/preparation.shape:
12900 * objects/flowchart/manualinput.shape:
12901 * objects/flowchart/predefdproc.shape:
12902 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
12904 1999-10-13 James Henstridge <james@daa.com.au>
12906 * app/diapagelayout.[ch]: added accessors to paper information. The
12907 widget should be just about complete now.
12909 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
12910 It actually does something now.
12912 1999-10-12 James Henstridge <james@daa.com.au>
12914 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
12915 for the page layout widget.
12917 * app/diapagelayout.[ch]: start of page layout widget. Not actually
12918 built yet as it is not complete.
12920 * objects/flowchart/flowchart.c: added new shapes to sheet.
12922 * objects/flowchart/display.shape:
12923 * objects/flowchart/transaction.shape: new shapes.
12925 * AUTHORS: added my name to the spec file.
12927 * dia.spec: include the dia desktop entry to the spec file.
12929 * Makefile.am: install the dia.desktop file.
12931 * dia.desktop: added a gnome desktop entry so you can start dia
12932 from the gnome panel menu.
12934 1999-10-11 James Henstridge <james@daa.com.au>
12936 * objects/custom/custom_object.c:
12937 * objects/custom/shape_info.c: warning fixes.
12939 * objects/flowchart/document.shape: a shape file for the `document'
12942 * lib/custom.h: new header with the custom shape prototypes.
12944 * app/app_procs.c: register custom objects as well.
12945 (register_objects_in): close shared libraries if they don't load
12946 correctly, and call g_module_make_resident on libraries that load
12949 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
12951 * objects/custom/custom.c: removed get_version, added custom_ prefix
12952 to register_objects and register_sheets.
12954 * objects/custom/Makefile.am: converted to a normal library.
12956 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
12958 * app/lineprops_area.c:
12959 * app/render_svg.c:
12961 * objects/custom/shape_info.c:
12962 * objects/flowchart/box.c:
12963 * objects/flowchart/diamond.c:
12964 * objects/flowchart/ellipse.c:
12965 * objects/flowchart/parallelogram.c:
12966 * objects/network/flash.c:
12967 * objects/network/scead-plug.c:
12968 * objects/sybase/client.c:
12969 Removed -Wall warnings.
12971 * objects/network/bus.c:
12972 Removed unused functions.
12974 * objects/FS/flow-ortho.c:
12975 * objects/FS/flow-poly.c:
12976 * objects/FS/flow.c:
12977 * objects/FS/function.c:
12979 Implemented "non-implemented" undo for FS objects.
12980 Now at least it won't crash.
12982 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
12984 * objects/network/bus.c:
12986 Handles are now added and removed using the object menu.
12987 Default to 6 handles instead of 10.
12988 Changed name from "Standard - Bus" to "Network - Bus". Kept old
12989 name for backwards compatibility.
12991 * objects/network/network.c:
12992 Changed name from "Standard - Bus" to "Network - Bus". Kept old
12993 name for backwards compatibility.
12995 * app/properties.[ch]:
12997 Update properties in properties dialog if the shown object
12998 is part of and ObjectChange (undo or redo).
13001 Remove old known bugs list.
13003 * objects/UML/class_dialog.c:
13004 Removed debug printf's.
13006 1999-10-10 James Henstridge <james@daa.com.au>
13008 * objects/custom/custom.c (custom_object_load): new function that
13009 provides a nice entry point to the custom shape code for when it
13010 gets used by other libraries.
13012 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
13013 speeds builds up a bit.
13015 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
13016 (SUBDIRS): do not descend into pixmaps subdirs.
13018 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
13019 This speeds up build process.
13021 * objects/custom/custom.c (sheets): made variable static.
13023 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
13026 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
13028 * objects/custom/custom.c: look in ~/.shapes instead of
13029 ~/.dia_shapes as the per-user shapes directory.
13031 * app/preferences.c (prefs_save): save config to ~/.diarc.
13032 (prefs_load): load configuration from ~/.diarc. If the file
13033 does not exist, fallback on the old ~/.diarc location.
13035 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
13037 (register_all_objects): look for user specific objects in
13038 ~/.objects rather than ~/.dia_libs.
13040 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
13044 * objects/flowchart/box.c
13045 * objects/flowchart/ellipse.c
13046 * objects/flowchart/flowchart.c
13047 Use gmodule for dynamic linking. As gmodule is using
13048 RTLD_GLOBAL i had to change flowchart box and ellipse
13049 so the typenames doesn't conflict with the standard
13054 Use button box to make dialogs look better.
13056 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
13058 * objects/UML/class_dialog.c:
13059 * objects/UML/class.h:
13060 Implemented undo for "UML - Class" objects.
13061 Not 100% tested yet.
13063 * objects/UML/classicon.c:
13064 * objects/UML/constraint.c:
13065 * objects/UML/dependency.c:
13066 * objects/UML/generalization.c:
13067 * objects/UML/implements.c:
13068 * objects/UML/large_package.c:
13069 * objects/UML/lifeline.c:
13070 * objects/UML/message.c:
13071 * objects/UML/object.c:
13072 * objects/UML/realizes.c:
13073 * objects/UML/state.c:
13074 * objects/UML/usecase.c:
13077 * lib/connectionpoint.h:
13080 1999-10-09 James Henstridge <james@daa.com.au>
13082 * objects/custom/*.[ch]: added copyright notices to custom object
13085 * shapes/Circuit/hdiode.shape:
13086 * shapes/Circuit/hzener.shape:
13087 * shapes/Circuit/opamp.shape:
13088 * shapes/Circuit/vdiode.shape:
13089 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
13090 shapes look nice after the custom shape code changes.
13092 * objects/custom/README: updated docs to cover changes to drawing
13095 * objects/custom/custom_object.c (custom_draw): honour the line
13096 properties when drawing the shape.
13098 * objects/custom/shape_info.[ch]: added support for setting line
13099 properties for individual drawing elements in a custom shape. You
13100 can set the dash style, dash length, cap style and join style.
13102 1999-10-07 James Henstridge <james@daa.com.au>
13104 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
13105 for foreground and background.
13107 * objects/custom/custom_object.c (custom_draw): use the new style
13108 information when drawing the object.
13110 * objects/custom/shape_info.[ch]: store all shape style info in the
13111 GraphicStyle structure. This makes adding support for extra CSS
13112 attributes easier -- we don't have to keep adding extra arguments to
13113 a lot of functions.
13115 1999-10-05 James Henstridge <james@daa.com.au>
13117 * lib/intl.c (unalias_lang): merged in changes from the i18n code
13118 swiped from gnome-libs.
13120 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
13122 * objects/standard/image.c (get_directory):
13123 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
13125 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
13127 * lib/poly_conn.c (polyconn_destroy):
13128 Fix bug. Access of freed memory.
13129 Rememeber, you can't free the handles of an object
13130 before calling object_destroy(), as it unconnects the handles
13131 therefore referencing them.
13133 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
13136 undo_clear() didn't set stack->depth to zero.
13137 This made other undo functions crash after this had been called
13141 Slightly modified by Chris Love <clove@exactis.com>
13143 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
13145 * objects/UML/class.h:
13146 * objects/UML/class_dialog.c:
13147 Retrun NULL ObjectChange on class property change.
13148 This means no crashes, but "UML - Class" doesn't support undo yet.
13150 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
13155 * objects/UML/classicon.c:
13156 * objects/UML/dependency.c:
13157 * objects/UML/generalization.c:
13158 * objects/UML/implements.c:
13159 * objects/UML/large_package.c:
13160 * objects/UML/lifeline.c:
13161 * objects/UML/message.c:
13162 * objects/UML/object.c:
13163 * objects/UML/realizes.c:
13164 * objects/UML/state.c:
13165 * objects/UML/usecase.c:
13166 Update to new undo (w. get/set_state).
13167 Add object menu to add/delete segments.
13169 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
13172 Add equal distance alignment.
13174 * app/object_ops.c:
13175 Add equal distance alignment.
13176 Fix bug in adjacent alignment.
13178 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
13180 * objects/UML/constraint.c:
13181 Update to new undo (w. get/set_state).
13183 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
13185 * app/paginate_psprint.c:
13186 Save (parts, more todo) of the info in the print dialog to the
13187 next time it's opened.
13188 Patch from Yo Ric Dude <ricdude@toad.net>
13190 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
13193 Updated version string to 0.41cvs.
13195 * objects/UML/assocition.c:
13196 Update to new undo (w. get/set_state).
13197 Add object menu to add/delete segments.
13200 Added function debug_break() and called it after all
13201 objects and sheets are loaded. Place a breakpoint here if you
13202 want to debug objects. All symbols should be loaded.
13204 1999-09-12 James Henstridge <james@daa.com.au>
13206 * app/menus.c (display_menu_items): added print menu item.
13207 (filemenu): always add print menu item -- even if gnome-print is
13210 * app/commands.h, app/commands.c (file_print_callback): the print
13211 menu item is now available for both gnome-print and non gnome-print
13214 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
13215 print with the non gnome-print driver.
13217 1999-09-11 James Henstridge <james@daa.com.au>
13219 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
13220 printer dialog code out of commands.c.
13222 * app/paginate_psprint.c: new file containing the pagination code for
13225 * app/render_eps.c: made a few modifications so as well as producing
13226 EPS files, this renderer can be set up to do postscript printing.
13227 This basically entailed adding an extra function to create a RenderEPS
13228 renderer which did not bother setting the viewport for the document.
13229 That was left for the pagination code.
13231 1999-09-10 James Henstridge <james@daa.com.au>
13233 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
13234 gnome-print does not support elliptic arcs at the moment, approximate
13235 the ellipse with eight bezier curves. This gives a pretty good
13236 match to a true ellipse.
13238 1999-09-09 James Henstridge <james@daa.com.au>
13240 * app/commands.c (file_gnome_print_callback): added support for
13241 scaling the diagram. Also fixed a few other bugs.
13243 * app/paginate_gnomeprint.c (print_page): added ability to scale
13244 document. Fixed up test to see if the page has no objects on it.
13245 This should prevent some blank pages being printed. Non square
13246 objects such as lines could still cause problems.
13248 1999-09-08 James Henstridge <james@daa.com.au>
13250 * app/commands.c (file_gnome_print_callback): changed from using the
13251 standard printer selection dialog to one that also has a paper size
13254 * commands.[ch]: added callbacks for the print menu item. Currently
13255 it only does A4 output. I will make it configurable soon.
13257 * app/menus.c: add a print diagram menu item if gnome-print support
13260 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
13261 bit higher level than the gnome-print renderer. It splits the
13262 diagram into page size chunks and then renders them. For each
13263 page, it only renders the objects whose bounding box intersects
13264 the page, and it sets the clip mask so that the diagram does not
13265 overlap the margins.
13267 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
13268 that uses gnome-print as its back end.
13270 * configure.in: added a check for gnome-print. It is disabled by
13271 default because the code is not really working correctly yet.
13273 * app/menus.c: the delete object menu item was missing from the
13274 GnomeUIInfo style menus.
13276 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
13279 Added japanese to ALL_LINGUAS.
13280 Fix for Linux on Alpha.
13282 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
13284 * app/create_object.c (create_object_button_press):
13285 Always initialize tool->obj. Otherwise we store a null
13286 in the undo Change.
13289 Set linestyle before drawing cursor.
13290 Fix undo of backwards delete.
13292 1999-09-05 James Henstridge <james@daa.com.au>
13294 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
13296 * app/render_svg.c (draw_image): some fixes so that the appropriate
13297 style attributes are set. Before it was setting line styles on
13298 fill_* functions. Now it only does this for the draw_* variants.
13300 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
13301 variable so that custom shapes can be loaded.
13303 * shapes/: new directory for custom shapes. The Circuit sheet has
13306 1999-09-02 James Henstridge <james@daa.com.au>
13308 * TODO: removed a few todo items that have been implemented.
13310 * app/interface.c (create_sheets): enabled the popup page menu to the
13311 notebook. This can make it easier to select different sheets.
13313 * object/custom/Circuit/: added diode, zener diode, ground point and
13314 operational amplifier shapes.
13316 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
13317 if you want the output.
13319 * objects/custom/shape_info.c (parse_path): same here.
13321 * objects/custom/load_sheet.c (load_with_readdir): don't print so
13322 much debugging output. To get the previous level of output, define
13325 * objects/custom/shape_info.c (parse_svg_node): polygons were being
13326 recorded as polylines in the ShapeInfo structure.
13328 * objects/custom/README: some notes on writing new custom shapes.
13330 1999-09-01 James Henstridge <james@daa.com.au>
13332 * objects/custom/Circuit/hinductor.*:
13333 * objects/custom/Circuit/vinductor.*: added inductor shapes that
13334 also test out the bezier curve and SVG path support.
13336 * objects/custom/custom_object.c (custom_draw): added support for
13337 drawing bezier paths and filled shapes.
13339 * objects/custom/shape_info.c (parse_path): new function to parse
13340 SVG path elements. It does not do quadratic beziers or elliptic
13341 arcs though. Only moves, lines and cubic beziers.
13342 (*): added support for paths.
13344 1999-08-31 James Henstridge <james@daa.com.au>
13346 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
13348 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
13351 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
13354 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
13357 * lib/render_store.[ch]: use newer bezier functions.
13359 * lib/render.h: changed the bezier drawing functions to use an array
13360 of BezPoint structures instead of normal Point structures to allow
13361 lineto's mixed in with the curveto's.
13363 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
13365 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
13366 xpm images for different shapes to Makefile.
13368 * objects/custom/custom_object.c (custom_object_new): set the icon
13369 for the sheet button if there is one. Otherwise fall back on the
13370 default custom object icon.
13372 * objects/custom/shape_info.c (load_shape_info): read the sheet
13373 icon name from the shape file.
13375 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
13376 check the pixmap_file field for the name of a pixmap file to load
13379 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
13380 at the end of the structure, and it isn't used if the pixmap field
13381 is non NULL, so it should not break binary compatibility.
13383 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
13384 added support for the use of an index.sheet file so you can specify
13385 the ordering of the shapes in the sheet, and also internationalise
13386 the sheet name and actually be able to give a description. The old
13387 readdir based sheet loading code acts as a fallback if an index.sheet
13388 file can not be found.
13390 * objects/custom/custom_util.[ch]: new file containing useful routines
13391 needed by the custom object code. Currently only contains a simple
13392 routine for resolving relative paths.
13394 * objects/custom/custom_object.c (custom_draw): fixed problem with
13395 drawing rectangles if the shape has been flipped.
13397 1999-08-30 James Henstridge <james@daa.com.au>
13399 * objects/custom/custom_object.c (custom_get_object_menu): allow
13400 flipping of custom shapes. This uses the miggle click object
13403 * objects/custom/Circuit/npn.shape: fix aspect ratio.
13405 * objects/custom/custom_object.c (custom_update_data): honour the
13406 aspect ratio constraints.
13408 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
13409 tag parsing, so you can specify a free, fixed or a range for aspect
13410 ratios for the shape.
13412 1999-08-29 James Henstridge <james@daa.com.au>
13414 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
13415 up shape namespace tag.
13417 * objects/custom/shape_info.c (load_shape_info): check xml:lang
13418 attribute on <description> elements to support i18n for custom
13419 shape descriptions.
13420 Also changed the shape namespace for custom shapes to something
13421 a little more sensible.
13423 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
13425 * lib/intl.c: new file containing some functions for i18n stuff.
13427 * app/layer_dialog.c (create_button_box): fixed a warning.
13429 * objects/custom/custom_object.c: use current line style. Save dash
13432 * objects/flowchart/diamond.c: use current line style. Save dash
13435 * objects/flowchart/parallelogram.c: use current line style. Save
13438 * objects/flowchart/ellipse.c: use current line style. Save dash
13441 * objects/flowchart/box.c: use current line style. Save dash length.
13443 * objects/standard/ellipse.c: make ellipse use current line style.
13445 * objects/standard/box.c: use the line style set in the toolbox for
13446 new boxes, and remember the dash length.
13448 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
13451 1999-08-24 James Henstridge <james@daa.com.au>
13453 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
13454 to try to stop ellipse to get infinite width/height when we resize,
13455 while trying to keep the text inside the ellipse.
13457 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
13458 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
13459 resizing behaviour, so that you can't push objects round the screen
13460 with the resize handles.
13462 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
13463 get the OK buttons in the dialogs to take default clicks.
13465 * objects/custom/custom_object.c: added code so that resizing the
13466 shape does not end up pushing it round the screen.
13468 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
13470 * app/display.[ch]:
13471 Generate rectangle with the union of the damaged regions.
13472 This is used to optimize the grid paint and the object rendering.
13473 display_render_pixmap passes this info to grid_draw() and data_render().
13476 grid_draw doesn't draw grid lines outside of damaged rectangle.
13477 Sets dashlength when drawing non-solid grid.
13479 * lib/diagramdata.[ch]:
13480 data_render() and layer_render() takes an optional damaged rectangle
13481 argument. No objects not intersecting this are drawn.
13485 Call data_render with NULL update rectangle.
13487 1999-08-23 James Henstridge <james@daa.com.au>
13489 * objects/custom/custom_object.c (custom_update_data): if the aspect
13490 ratio is fixed, make sure the shape is not distorted.
13492 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
13493 a <fixaspectratio/> tag is given in the shape file.
13495 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
13496 added support for stroke-width, stroke and fill CSS attributes
13497 specified in style attributes of the SVG elements. The line width
13498 is relative to the user specified line width. The stroke and fill
13499 attributes can only be used to swap the foreground/background
13502 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
13503 sensitivity on the dash length selector when this function is called.
13505 * objects/standard/arc.c: same. Also handle dash length.
13506 * objects/standard/zigzagline.c: same.
13507 * objects/standard/polyline.c: same. Also handle dash length.
13508 * objects/standard/line.c: use default arrow/line styles.
13510 * app/interface.c: added callbacks to set the default attributes.
13512 * lib/attributes.c: added implementations of these functions.
13514 * lib/attributes.h: added extra prototypes for the new line properties
13515 area in the toolbox.
13517 * app/interface.c (create_lineprops_area): added line properties
13518 area to bottom of toolbox.
13520 * app/lineprops_area.h: a header exporting a few routines of the
13521 line properties area widgets.
13523 * app/lineprops_area.c: new file containing a selector for arrows
13524 and line styles to go in the main toolbox.
13526 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
13529 Update Gtk+ 1.0.5 comment to 1.2.0.
13538 Make sure we don't propagate -ldl and -lpopt to all LIBS
13539 by adding new var APP_LIBS that only app/dia links with.
13542 Update run_dia.sh to load custom and flowchart objects.
13544 * objects/ER/Makefile.am:
13545 * objects/FS/Makefile.am:
13546 * objects/UML/Makefile.am:
13547 * objects/network/Makefile.am:
13548 * objects/standard/Makefile.am:
13549 * objects/sybase/Makefile.am:
13550 Don't build versioned libs.
13552 1999-08-22 James Henstridge <james@daa.com.au>
13554 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
13557 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
13558 should actually work a bit now.
13560 * objects/custom/Circuit/*: a test sheet for the custom shape code.
13561 It is a small collection of circuit elements.
13563 * objects/custom/shape_info.c: fixed up loading of polylines and
13564 polygons. Before it was removing negative signs :(
13566 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
13567 placeholder was here before. I still need to work out how to set
13568 icons for individual custom shapes.
13570 * objects/custom/custom.c: added code to load the shapes into sheets
13571 properly. The shape files should be arranged into directories, and
13572 each directory represents a different sheet in the toolbox. This
13573 will make it very easy to distribute a collection of dia shapes as
13574 a tarball. I still need to work out internationalisation, and maybe
13575 also shape ordering in the sheet.
13577 * objects/custom/custom_object.c: fixed up dialogs for these objects.
13578 (custom_create): fix for objects without text areas.
13580 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
13581 and saving of custom object works correctly now.
13583 1999-08-21 James Henstridge <james@daa.com.au>
13585 * objects/flowchart/ellipse.c:
13586 * objects/flowchart/diamond.c:
13587 * objects/flowchart/parallelogram.c:
13588 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
13589 copying or loading these object types. Not all the connection
13590 points would be initialised correctly.
13592 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
13595 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
13596 build a versioned library. It will only ever be dlopen'd, so this
13599 * objects/custom/custom_object.c (custom_distance_from): allow
13600 selecting the object by clicking on the text. This fixes problems
13601 where the text box is outside the graphic.
13603 * objects/custom/shape_info.c (load_shape_info): fixed up reading
13604 of connections points. It should be possible to add connections
13605 to custom objects now.
13607 * objects/custom/custom_object.c (custom_update_data): fixed resizing
13608 due to changes to text.
13610 * configure.in: added extra makefiles.
13612 * objects/custom/shape_info.[ch]:
13613 * objects/custom/custom_object.c:
13614 * objects/custom/custom.c: the starts of custom shape support in dia.
13615 This is not built by default at the moment, since it is not quite
13616 complete. When it is, it will let you create more shapes for dia
13617 without writing a line of C. Its implementation includes buzzwords
13618 such as XML and SVG, so it must be good :)
13620 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
13622 * app/app_procs.c (app_exit): Use button labels "Quit" and
13623 "Cancel" instead of "Yes" and "No".
13624 Set default action to "Cancel" instead of "Quit".
13626 1999-08-19 James Henstridge <james@daa.com.au>
13628 * objects/flowchart/flowchart.c: added ellipse object.
13630 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
13632 1999-08-18 James Henstridge <james@daa.com.au>d
13634 * app/color_area.c (color_area_edit): small fix to prevent dia from
13635 segfaulting when you try to change the default foreground/background.
13637 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
13639 * app/diagram.[ch] (diagram_redraw_all):
13640 Added function that redraws all diagrams.
13642 * app/preferences.c (prefs_apply):
13643 Call diagram_redraw_all when prefs are changed.
13645 * app/render_svg.c:
13646 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
13647 older libxml's, and the old version works good enought here.
13649 1999-08-17 James Henstridge <james@daa.com.au>
13651 * lib/widgets.c: changed handlers that were connected to the GtkButton
13652 "pressed" signal to connect to the "clicked" signal. This removes the
13653 problem where dialogs are inactive until you click a mouse button
13654 after using a colour selector.
13656 * configure.in: added extra makefiles to AC_OUTPUT list.
13658 * objects/Makefile.am (SUBDIRS): added flowchart module
13660 * objects/flowchart/*: a collection of shapes for use in flowcharts.
13662 * app/color_area.c (color_area_events): similar here.
13664 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
13665 event is recieved with event->width == 0, which causes a warning if we
13666 try to create a pixmap of that width.
13668 * app/preferences.c, app/preferences.h, app/grid.c: added code to
13669 allow you to configure the colour of the grid, and also lets you
13670 set the grid to use dotted lines instead of solid ones.
13672 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
13673 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
13675 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
13676 export filter. It is not quite complete, but for most shapes it
13677 works as expected. Fonts still need a bit of work.
13679 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
13681 * configure.in: Added "en_GB" to ALL_LINGUAS.
13683 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
13686 Added Undo and Redo to GNOME menus.
13688 * objects/ER/attribute.c:
13689 * objects/ER/entity.c:
13690 * objects/ER/participation.c:
13691 * objects/ER/relationship.c:
13692 Added get/set_state functions.
13694 * objects/ER/participation.c:
13695 Added add/delete segment.
13698 Updated Swedish translation.
13700 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
13702 * app/preferences.[hc]:
13703 Added undo_depth pref.
13706 Never grow stack larger than pref.undo_depth.
13707 undo_depth == 0 means unlimited.
13708 Converted printfs to conditionally compiled DEBUG_PRINTFs.
13710 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
13715 * lib/render_object.c:
13716 * objects/ER/attribute.c:
13717 * objects/ER/entity.c:
13718 * objects/ER/participation.c:
13719 * objects/ER/relationship.c:
13720 * objects/FS/flow-ortho.c:
13721 * objects/FS/flow-poly.c:
13722 * objects/FS/flow.c:
13723 * objects/FS/function.c:
13724 * objects/UML/actor.c:
13725 * objects/UML/association.c:
13726 * objects/UML/class.c:
13727 * objects/UML/classicon.c:
13728 * objects/UML/component.c:
13729 * objects/UML/constraint.c:
13730 * objects/UML/dependency.c:
13731 * objects/UML/generalization.c:
13732 * objects/UML/implements.c:
13733 * objects/UML/large_package.c:
13734 * objects/UML/lifeline.c:
13735 * objects/UML/message.c:
13736 * objects/UML/note.c:
13737 * objects/UML/object.c:
13738 * objects/UML/realizes.c:
13739 * objects/UML/small_package.c:
13740 * objects/UML/state.c:
13741 * objects/UML/usecase.c:
13742 * objects/network/bus.c:
13743 * objects/standard/arc.c:
13744 * objects/standard/box.c:
13745 * objects/standard/ellipse.c:
13746 * objects/standard/image.c:
13747 * objects/standard/line.c:
13748 * objects/standard/polyline.c:
13749 * objects/standard/textobj.c:
13750 * objects/standard/zigzagline.c:
13751 Removed all traces of is_empty(). It doesn't work in an
13754 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
13759 Undoable grouping and ungrouping.
13761 * app/layer_dialog.c:
13762 * lib/diagramdata.[ch]:
13763 Undoable layer ops.
13765 * app/modify_tool.c:
13766 Undoable unconnect on handle move.
13768 * lib/orth_conn.[ch]:
13769 Working undoable add/remove segment.
13770 Removed endpoint_handles from OrthConn, renamed
13771 midpoint_handles to handles and put the endpoint
13774 * objects/standard/zigzagline.c:
13775 * objects/ER/participation.c:
13776 * objects/UML/association.c:
13777 * objects/UML/dependency.c:
13778 * objects/UML/generalization.c:
13779 * objects/UML/realizes.c:
13780 Update for the changes in OrthConn
13782 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
13784 * configure.in: Added "de" to ALL_LINGUAS.
13786 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
13798 Don't have the <Display> etc part of the menu strings
13799 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
13802 Don't have the <Display> etc part of the menu strings
13803 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
13804 Don't remove is_empty() objects, that don't work with undo.
13806 * lib/objchange.[ch]:
13808 Definition of ObjectChange. This is essentially an Change
13809 exported to the object libs. It encapsulates a change made
13810 to an objects internals. It can be applied, reverted and freed.
13811 There are also utility functions for doing ObjectChanges that
13812 only get/set the whole state of an object to store the change.
13813 This cannot be used when the object change deletes or adds a
13814 object which has references from other objects, eg. Handles which
13815 might be connected.
13818 Added objchange.c and objchange.h.
13821 Return NULL when loading fails.
13824 Menu callbacks return an ObjectChange.
13827 Reference objchange.o
13830 Key events return ObjectChange if they modify the object.
13834 Added object_add_handle_at() function.
13835 Apply properties returns an ObjectChange.
13836 Remove ObjectState and the get/set state functions, these
13837 don't always work. Use the new ObjectChange instead.
13840 Added object_add_handle_at() function implementation.
13842 * lib/orth_conn.[ch]:
13843 Use ObjectChange. Not finished yet.
13844 Removed get/set/free state functions
13846 * lib/poly_conn.[ch]:
13848 Don't remove segments that are small.
13849 Removed get/set/free state functions
13853 Added functions to get/set all text attributes.
13855 * objects/standard/arc.c:
13856 * objects/standard/box.c:
13857 * objects/standard/ellipse.c:
13858 * objects/standard/image.c:
13859 * objects/standard/line.c:
13860 * objects/standard/polyline.c:
13861 * objects/standard/textobj.c:
13862 * objects/standard/zigzagline.c:
13864 fixed bug in image_set_state.
13865 zigzagline.c not finished yet.
13867 * app/disp_callbacks.c:
13868 Use ObjectChange that are returned from menu callbacks and
13869 key_events for undo.
13871 * app/properties.c:
13872 Use ObjectChange that are returned from properties apply
13877 New undo type: ObjectChangeChange. This wraps a change to the
13878 internals of an object (and ObjectChange) in code that does
13879 app specific stuff (object_add_updates etc.)
13881 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
13883 * lib/orth_conn.[ch]:
13884 Added code for add/delete segment.
13886 * objects/standard/zigzagline.c:
13887 Use the new orth_conn code.
13890 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
13892 * objects/FS/Makefile.am
13893 Removed fs.h from sources.
13899 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
13901 * app/disp_callbacks.c (ddisplay_canvas_events):
13902 Fix for bug. Every other arrow-key press got lost.
13903 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
13906 change automake.sh to autogen.sh
13908 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
13911 Don't remove 'empty' objects.
13912 This violent destruction of objects won't work
13913 with the new undo framework.
13915 * app/disp_callbacks.c:
13916 Save undo info for object menu calls and key_events.
13918 * app/properties.c:
13919 Save undo info on properties apply.
13921 * lib/dia_image.[ch]:
13922 Add refcounting for images.
13924 * app/render_eps.c:
13925 * app/render_gdk.c:
13927 DiaImage * -> DiaImage
13930 Add undo functions for object state changes.
13934 change of semntics for focus->key_event.
13935 Now returns TRUE if the object recieving the event
13941 * lib/orth_conn.[ch]:
13942 Don't automatically create and delete segments when
13943 handles are moved. This is incompatible with undo.
13944 Added state get, set and free functions.
13946 * lib/orth_conn.[ch]:
13947 Added state get, set and free functions.
13949 * objects/UML/object.c:
13950 * objects/UML/uml.c:
13951 Fixed typo "UML - Objet" -> "UML - Object".
13952 Saved old for backwards compatibility.
13954 * objects/standard/arc.c:
13955 * objects/standard/box.c:
13956 * objects/standard/ellipse.c:
13957 * objects/standard/image.c:
13958 * objects/standard/line.c:
13959 * objects/standard/polyline.c:
13960 * objects/standard/textobj.c:
13961 * objects/standard/zigzagline.c:
13962 Added get/set state functions.
13963 Textobj has a redo crash-bug.
13964 Zigzagline needs object menus to add segments.
13967 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
13969 * app/render_eps.c (set_dashlength):
13970 Don't generate eps files with zero dash-length.
13972 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
13975 * app/create_object.c:
13977 Finished undo for create and paste.
13980 Started properties undo.
13982 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
13985 Added resizeable groups.
13988 Removed unused variable.
13992 Undo/redo for cut/delete done.
13994 * app/create_object.c:
13995 * app/modify_tool.c:
13996 * lib/diagramdata.[ch]:
13997 * app/diagram.[ch]:
13998 renamed diagram_add_selected -> diagram_select
13999 renamed diagram_remove_selected -> diagram_unselect
14001 * app/properties.[ch]:
14002 Added properties_hide_if_shown() function.
14004 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
14010 * app/commands.[ch]
14011 * app/modify_tool.[ch]
14012 * app/object_ops.[ch]
14013 * app/connectionpoint_ops.c
14015 Use undo functions.
14016 WARNING: Not finished. Will break.
14017 Finished: move object, move handle.
14020 Added diagram_selected_break_external() function.
14021 It removes all connections between selected objects
14023 Add undo stack to Diagram.
14025 * lib/diagramdata.[ch]
14026 Added layer_remove_objects() function
14028 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
14030 * objects/FS/Makefile.am
14031 * objects/sybase/Makefile.am
14032 Now uses GNOME_CFLAGS.
14035 Now compiles with GNOME even if popt.h isn't available.
14037 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
14040 * objects/Makefile.am
14042 First version of sybase objects from
14043 Brian Bruns <camber@umcc.ais.org>
14045 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
14048 Added fr to ALL_LINGUAS
14050 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
14054 Popt-code is activated if popt is available.
14056 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
14058 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
14060 * lib/orth_conn.[ch]:
14061 Added orthconn_get_middle_handle()
14064 Added text_set_cursor_at_end()
14067 Added first version of functions structure diagrams.
14069 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
14071 * app/modify_tool.c:
14072 Include math.h to remove warning.
14074 * app/commands.c (dialogs_properties_callback):
14075 Bring up correct properties dialog when selected
14077 From Dan Cohn <dan@internap.com>
14079 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
14081 Patch from Lars R. Clausen
14083 * app/modify_tool.c:
14084 Changed abs to fabs.
14086 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
14092 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
14094 Patches from Dan Cohn <dan@internap.com>
14096 * app/commands.[ch]:
14097 * app/display.[ch]:
14099 * app/preferences.[ch]:
14100 Implements ability to turn on/off connection points in
14101 current drawing and in global prefs.
14103 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
14105 * lib/widgets.c (dia_line_style_selector_init):
14108 * lib/diagramdata.c (layer_update_extents):
14109 Fixed uninitialized variable error.
14111 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
14114 Made some changes to the gdk_imlib visual+colormap setup.
14116 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14118 * objects/UML/usecase.c:
14119 * objects/UML/lifeline.c
14122 * objects/UML/object.c:
14123 * objects/UML/message.c:
14124 Changed font from Courier to Helvetica.
14128 Added dash lenth to the LineStyle widget.
14130 * objects/standard/ellipse.c :
14131 * objects/standard/zigzagline.c:
14132 * objects/standard/line.c:
14133 Added dash lenght property.
14135 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
14137 * app/render_eps.c:
14138 First shot at latin1 encoded eps files.
14139 Works, but the eps files get a bit large.
14141 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
14143 * objects/UML/class.[ch]:
14144 * objects/UML/uml.[ch]:
14145 Reverted the line wrap changes.
14146 Some day this might return, but it has to be selectable and
14147 default to off for loaded objects, otherwise it breaks file
14148 format compatibility.
14149 There was also some complains about how it looked, so a making it
14150 selectable is good for this too.
14152 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
14154 * objects/UML/class.[ch]:
14155 Some indentation cleanup.
14156 Added wrap_lines variable to class.
14157 I'll fix the line break stuff tomorrow.
14159 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
14162 Added ref to poly_conn.o.
14164 * objects/standard/polyline.c (polyline_draw):
14165 * objects/standard/zigzagline.c (zigzagline_draw):
14166 * objects/standard/arc.c (arc_draw):
14167 * objects/standard/line.c (line_draw):
14168 Draw lines before arrows. This makes hollow arrows not
14171 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
14173 Changes from Kim Peasley <kpeasley@ior.com>
14175 * objects/UML/class.c:
14176 Break lines with long operations so classes won't be
14179 * objects/UML/uml.[ch]:
14180 Helperfunctions for the above.
14182 * objects/UML/objects.c:
14183 Fix bug that duplicated the text in the attributes
14184 textwidget each time the object was selected.
14186 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
14188 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
14190 * app/modify_tool.c:
14191 * app/modify_tool.h:
14192 Control-drag is restricted to vertical/horizontal movement
14195 ModifierKeys argument added to object_move_handle
14197 * app/connectionpoint_ops.c:
14198 * app/create_object.c:
14199 * app/object_ops.c:
14200 * objects/ER/attribute.c:
14201 * objects/ER/entity.c:
14202 * objects/ER/participation.c:
14203 * objects/ER/relationship.c:
14204 * objects/UML/actor.c:
14205 * objects/UML/association.c:
14206 * objects/UML/class.c:
14207 * objects/UML/classicon.c:
14208 * objects/UML/component.c:
14209 * objects/UML/constraint.c:
14210 * objects/UML/dependency.c:
14211 * objects/UML/generalization.c:
14212 * objects/UML/implements.c:
14213 * objects/UML/large_package.c:
14214 * objects/UML/lifeline.c:
14215 * objects/UML/message.c:
14216 * objects/UML/note.c:
14217 * objects/UML/object.c:
14218 * objects/UML/realizes.c:
14219 * objects/UML/small_package.c:
14220 * objects/UML/state.c:
14221 * objects/UML/usecase.c:
14222 * objects/network/bus.c:
14223 * objects/standard/arc.c:
14224 * objects/standard/box.c:
14225 * objects/standard/ellipse.c:
14226 * objects/standard/image.c:
14227 * objects/standard/line.c:
14228 * objects/standard/polyline.c:
14229 * objects/standard/textobj.c:
14230 * objects/standard/zigzagline.c:
14231 Changed calls to move_handle to pass the new argument.
14235 Default line width, color etc #define'd
14238 Updates of danish menus
14240 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
14243 * dia_gnome_icon.png
14244 * dia_gnome_menu_icon.png
14246 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
14249 About dialog shows dia_logo.png. Removed the GNOME about dialog.
14252 Distribute the icons and install logo in pkgdatadir.
14255 Added DATADIR-define.
14257 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
14258 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
14261 Updated version number, made setup quiet, can build from cvs,
14262 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
14265 * objects/ER/Makefile.am
14266 * objects/UML/Makefile.am
14267 * objects/network/Makefile.am
14268 * objects/standard/Makefile.am
14269 now builds better with gnome
14271 * objects/UML/class_dialog.c
14272 Fixed typo -> po files must be updated too!!
14274 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
14277 Added reference so that widgets.o gets linked to the app.
14279 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14281 * objects/UML/classicon.c:
14284 * objects/UML/actor.c:
14285 Changed position of 'snap-to-grid' so connection points are
14288 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
14290 * objects/UML/classicon.c:
14291 Changed position of 'snap-to-grid'.
14292 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14294 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
14296 * objects/network/antenna.c
14297 * objects/network/flash.c
14298 * objects/network/hub.c
14299 * objects/network/modem.c
14300 * objects/network/modularswitch.c
14301 * objects/network/rj45plug.c
14302 * objects/network/scead-plug.c
14303 * objects/network/network.c
14304 * objects/network/Makefile.am
14305 * objects/network/pixmaps/antenna.xpm
14306 * objects/network/pixmaps/flash.xpm
14307 * objects/network/pixmaps/hub.xpm
14308 * objects/network/pixmaps/modem.xpm
14309 * objects/network/pixmaps/modularswitch.xpm
14310 * objects/network/pixmaps/rj45plug.xpm
14311 * objects/network/pixmaps/sceadplug.xpm
14312 * objects/network/pixmaps/Makefile.am
14313 Lots of new network objects from
14314 Roland Steinbach <roland@support-system.com>.
14316 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14318 * objects/UML/classicon.c:
14319 Fixed connection positions, saved type as int (it has 3 states),
14320 and other small fixes.
14322 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
14324 * app/preferences.c:
14326 Added preference compress_save. It lets dia save uncompressed
14329 * objects/UML/class.c:
14330 Fixed bug with size calculation on methods that had class scope.
14332 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14334 * objects/UML/usecase.c:
14335 Added collaboration mode
14336 Fixed connection points with text > ellipse bug and other
14339 * objects/UML/state.c:
14340 Fixed bug of bad position of text after being either end
14341 or begin, moved and returned to text
14343 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
14345 * app/preferences.c: Add prototype declaration for prefs_apply.
14347 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
14349 * app/preferences.c:
14351 Apply don't hide window.
14353 * app/properties.c:
14356 * objects/UML/object.c:
14357 * objdcts/UML/state.c:
14358 Some data was not copied on copy.
14361 Ben Hochstedler <benh@eeyore.moneng.mei.com>
14363 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
14366 Changed link order between X and libxml.
14367 Some people had problems with an old libz in their
14370 1999-04-09 Kjartan Maraas <kmaraas@online.no>
14372 * po/no.po: updated translation.
14374 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
14376 * lib/message.c (message_error):
14379 * app/commands.[ch]:
14380 * app/diagram.[ch]:
14381 Added begining of xfig importing
14383 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14385 * objects/UML/pixmaps/state.xpm:
14386 * objects/UML/state.c:
14387 New UML object state machine.
14389 * objects/UML/uml.c:
14390 * objects/UML/Makefile.am:
14391 * objects/UML/pixmaps/Makefile.am:
14392 Added the state object.
14394 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
14396 * objects/UML/usecase.c:
14397 Added dialog to allow move text outside the ellipse.
14399 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
14401 * Released Dia 0.41
14402 Tag called DIA_0_41
14407 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
14410 Updated version number to 0.41
14415 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
14418 Changed errormessage for --export-to-ps. Removed call to
14419 g_log_set_always_fatal().
14422 * app/disp_callbacks.c
14424 (i18n) Removed gettext from some debugmessages.
14427 Small fix in GNOME-menus. Added warning that will help track
14428 problems with translations.
14431 (i18n) Updated swedish translation.
14433 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
14438 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
14444 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
14447 (i18n) Updated the danish translation.
14448 From Lars R. Clausen.
14450 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
14453 (i18n) The popup menu is translated now.
14456 (i18n) Updated swedish translation.
14458 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
14460 * Released Dia 0.40
14461 Tag called DIA_0_40
14464 Updated for new release
14466 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
14468 * objects/network/bus.c:
14469 Added initialization of properties dialog to NULL.
14471 * app/commands.c (edit_cut_callback):
14472 Update menu sensitivity when cut object.
14474 * app/modify_tool.c (click_select_object):
14475 * app/modify_tool.c (modify_button_release):
14476 Call diagram_update_menu_sensitivity() when
14477 selecting objects to update stuff that depends
14478 on selected/not selected.
14480 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
14483 Change order of subdir so that libintl.a builds.
14484 Now passed make distcheck.
14486 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
14488 * lib/font.c (init_x11_font):
14491 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14493 * objects/UML/pixmaps/classicon.xpm:
14494 * objects/UML/classicon.c:
14495 * objects/UML/uml.c:
14496 Added the class stereotype icon objects.
14499 Changed default ps extension from .ps to .eps.
14501 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
14504 Added diamenu.h and intl.h
14509 * objects/UML/pixmaps/Makefile.am:
14512 * objects/standard/pixmaps/Makefile.am:
14515 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
14518 Use a scalable font before fixed when real font not found.
14523 * objects/standard/image.c:
14524 Better handling of loading/saving of images.
14527 Added some text about cvs, fonts and rewrote some parts.
14530 Updated with new stuff.
14533 Bump up version number to 0.40.
14535 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
14538 Moved diagram_add_ddisplay() call into new_display().
14539 Fixed new_display to not use uninitialized variables
14540 causing loaded files to show up as black (or garbage).
14544 Removed unneeded calls to diagram_add_ddisplay().
14546 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
14548 * objects/UML/lifeline.c:
14550 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
14552 * objects/UML/message.c:
14553 Fixed bug loading messages with null-text.
14554 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
14556 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
14559 Updated swedish translation.
14562 (GNOME) Removed help-browser from help menu. Fixed typo.
14565 (GNOME) Accelerators in diagrams should work now.
14567 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
14572 * app/disp_callbacks.c
14576 * app/preferences.c
14578 * lib/diagramdata.c
14584 * objects/network/*.c
14585 * objects/standard/*.c
14586 * po/update_pofiles_in.sh
14588 More i18n. All strings (expect rare debug messages) can be
14589 translated now. Moved intl.h from app to lib. Updated
14590 update_pofiles_in.sh to check all .c-files.
14592 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
14594 * app/disp_callbacks.c (ddisplay_canvas_events):
14595 Don't drop keys while num-lock, scroll-lock etc is on.
14597 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
14599 * app/render_eps.c (draw_image):
14600 Fixed exporting of images.
14601 Still not perfect, but not outright buggy.
14603 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
14607 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
14610 Added $* to the dia call in run_dia.sh
14612 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14615 Added color_equals() call.
14617 * objects/standard/arc.c:
14618 * objects/standard/line.c:
14619 Don't save unneccesary data.
14621 * objects/standard/box.c:
14622 * objects/standard/ellipse.c:
14623 * objects/standard/image.c:
14624 * objects/standard/polyline.c:
14625 * objects/standard/zigzagline.c:
14626 Share properties dialog.
14627 Don't save unneccesary data.
14629 1999-03-22 Seth Alves <alves@hungry.com>
14634 small changes so that gnome menus aren't broken
14636 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
14639 Added danish translation from lrclause@cs.uiuc.edu.
14644 * po/update_pofiles_in.sh:
14645 Added script that updates POFILES.in.
14646 This should probably be run automatically from somewhere.
14648 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
14650 * app/diagram.[ch]:
14651 Added function diagram_update_menu_sensitivity() which
14652 sets the sensitivity of some menu items. This function
14653 is called at each diagram state change (from diagram_modified()).
14654 This is needed because otherwise the keyboard accelerators
14655 don't work correctly.
14657 * app/display.[ch]:
14658 Changed display_set_menu_sensitivity() to display_update_menu_state().
14659 Moved lots of code to diagram_update_menu_sensitivity() in
14660 diagram.c. Optimized to only look up menu-items from path:s once.
14662 * app/disp_callbacks.c:
14664 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
14665 Need to set GDK_FOCUS_CHANGE_MASK.
14667 * app/create_object.c:
14668 Call diagram_modified when an object has been created and
14669 selected so that the menu sensitivity is updated.
14672 removed menus_set_sensitive() and menus_set_state(). Exported
14673 renamed function menus_get_item_from_path().
14675 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
14677 * app/disp_callbacks.c:
14678 Show (empty) object menus on object that has none.
14679 Show title on object menus.
14682 Set zoom factor correctly when opening new displays.
14683 Better setting of scrollbars.
14687 Some reformating cleanup.
14690 Added title to object menus.
14693 Added object menu method (NULL-valued) to all objects.
14695 * objects/standard/polyline.c:
14696 Added title to object menu.
14698 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
14700 * app/preferences.[ch]:
14701 New files. Implements the preferences dialog and
14702 loading/saving of ~/.diarc.
14705 Added preferences.[ch].
14708 Load preferences on startup.
14710 * app/commands.[ch]:
14711 Added file_preferences_callback to show the preferences dialog.
14713 * app/create_object.c:
14714 Update extents when creating object.
14715 Use the reset_tools_after_create preferences setting.
14718 Use preferences when creating new display.
14721 Add preferences to menu.
14724 * app/layer_dialog.c:
14725 * app/properties.c:
14726 Don't allow shrinking of dialog.
14727 Add i18n of some strings.
14729 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
14731 Norwegian translation added.
14733 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
14735 * objects/standard/line.c:
14736 * objects/standard/arc.c:
14737 * objects/standard/polyline.c:
14738 * objects/standard/zigzagline.c:
14739 Loading of arrow data fixed.
14741 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
14744 Update extents when saving and exporting to postscript.
14745 Fixes a bug with postscript bounding-box being wrong.
14748 Changed border width from 5 to 2.
14751 Move grouped objects by the move-point of the first object.
14752 Fixes bug that made all objects in the group be off-grid
14753 when moving the group, even though all objects was on-grid.
14755 * app/layer_dialog.c:
14756 Update extents when changing layer.
14758 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14760 * objects/UML/uml.c:
14761 * objects/UML/component.c:
14762 * objects/UML/pixmaps/component.xpm:
14763 Added the UML component object
14765 1999-03-04 Seth Alves <alves@hungry.com>
14767 * objects/UML/generalization.c (generalization_create): avoid
14768 math on uninitialized genlz->text_width (NaN causes sigfpe)
14770 * objects/UML/realizes.c (realizes_create): same
14772 * objects/UML/dependency.c (dependency_create): same
14774 1999-03-01 Seth Alves <alves@hungry.com>
14776 * app/display.c (ddisplay_active): don't fly a warning panel
14777 if ddisplay_active is called when no views are open.
14779 * app/commands.c (set_default_file_selection_directory): set
14780 file selector's default directory if there is already
14783 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
14786 New info about imlib requirements.
14789 Added lib/pixmaps/Makefile to created makefiles.
14793 Change from obsoleted to newer gtk calls.
14796 Pass filename of the diagram when loading and saving.
14797 This creates better oportunities to handle filename saving.
14800 Pass filenames to load and save methods.
14802 * lib/dia_image.[ch]:
14803 Added dia_image_get_broken() call that returns a image which
14804 is used for 'broken' images.
14806 * lib/pixmaps/.cvsignore:
14807 * lib/pixmaps/Makefile.am:
14808 * lib/pixmaps/broken.xpm:
14809 New files for the broken image bitmap.
14812 Fixed bug with double destroyed filedialog.
14815 Updated load and save prototypes to use the new filename argument.
14818 Render broken image instead of line when got no image.
14819 Use the new filename in load and save to save (if possible)
14820 relative pathnames and to better try to find loaded images.
14822 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
14825 Some updates to the todo file.
14829 Place over/place over => sent to back/bring to front.
14830 Added some keyboard shortcuts to menus.
14832 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
14835 Changed string saving/loading to a new method. This should
14836 be much better att handling &,<,> and whitespaces.
14837 Loading strings of the old kind is still supported for backwards
14840 * samples/ER-demo.dia:
14841 * samples/UML-demo.dia:
14842 Updated to use the new strings.
14845 statusbar modified update fix.
14847 1999-02-27 Seth Alves <alves@hungry.com>
14849 * app/app_procs.c (app_init): added a --export-to-ps option
14850 which will cause dia to load a dia file and save it as ps
14851 and then exit. this is a little bogus, because it still
14852 pops up a window. this option only shows up if --enable-gnome
14855 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
14856 menu when built with --enable-gnome
14858 * app/interface.c (create_display_shell): build status bar
14859 even if --enable-gnome is used
14861 * app/menus.c: menu fixes for --enable-gnome
14863 * app/commands.c (file_open_dialog_ok_callback): fixed up
14864 menus when --enable-gnome is used
14865 (file_export_to_eps_callback): set a default file name
14866 when dialog is created
14868 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
14870 * objects/UML/association.c (association_create):
14871 Fixed usage of not initialized variable.
14872 Pointed out by Seth Alves <alves@hungry.com>.
14874 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
14877 Fixed detection of gnome-xml.
14878 From Valtteri Vuorikoski <vuori@k.notcom.org>.
14881 Fixed error detection on dlsym calls.
14882 From Valtteri Vuorikoski <vuori@k.notcom.org>.
14884 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
14886 * objects/UML/message.c (fill_in_dialog):
14889 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14891 * objects/standard/zigzagline.c:
14892 * objects/standard/polyline.c:
14893 * objects/standard/line.c:
14894 * objects/standard/arc.c:
14898 Support for sizeable arrows.
14900 * objects/standard/box.c:
14901 * objects/standard/ellipse.c:
14902 * objects/standard/image.c:
14903 Changed creation handle to lower-right.
14904 Transparent box/ellipse.
14906 * objects/standard/image.c:
14907 Better layout of properties boxes.
14909 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14911 * objects/UML/message.c (fill_in_dialog):
14912 Fixed dialog fill in. Common dialog for all messages.
14914 * objects/UML/object.c:
14915 Added multiple instance. Dialog related bugs fixed.
14916 Common dialog for all instances. Completed copy and destroy.
14918 * objects/UML/lifeline.c (lifeline_load):
14919 Conn initialization bug fixed and few bad loading prevention flags.
14920 Common dialog for all lifeline objects.
14922 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14924 * lib/dia_image.[ch]:
14925 More work on the DiaImage abstraction.
14928 * app/render_eps.c:
14929 * app/render_gdk.c:
14930 * objects/standard/image.c:
14931 Use the new DiaImage calls.
14933 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14937 Reversed the meaning of align horizontal/vertical.
14939 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14941 * app/load_save.c (diagram_load):
14942 Statusbar update fix.
14944 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14946 * app/interface.c (create_display_shell):
14947 Fixed status bar size.
14949 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
14951 * lib/dia_image.[ch]:
14952 Added extern declaration for dia_image_release.
14953 Removed dia_image_draw, as it's not neseccary.
14955 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14957 * app/object_ops.c:
14959 Added equal distance alignment both vertical and horizontal.
14961 * objects/UML/object.c:
14962 Added a couple of attributes to load/read that were missing.
14964 * objects/UML/lifeline.c:
14965 Better handling of handles. Fixed another bug I forgot to add
14968 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
14970 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14972 * lib/dia_image.[ch]:
14974 New files. DiaImage wraps the GdkImlibImage.
14977 * app/render_eps.c:
14978 * app/render_gdk.c:
14979 * lib/render_store.[ch]:
14980 * objects/standard/image.c:
14981 Use the new DiaImagetype.
14984 Removed unused variable to eliminate warning.
14986 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
14988 * objects/standard/box.c:
14989 Added rounded corners on the box object.
14991 * lib/widgets.[ch]:
14992 Updated the DiaFileSelector widget.
14994 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14996 * objects/UML/object.c (objet_draw):
14997 Completed underlining of all object name lines.
14999 * objects/UML/message.c (fill_in_dialog):
15000 Fixed a bug that filled incorrectly the message's dialog.
15002 * objects/UML/lifeline.c (lifeline_load):
15003 Some cleanning and fixed a couple of bugs that caused
15004 crashes after reading diagrams with lifelines.
15007 Added flags to prevent crash with void strings
15009 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
15010 * app/display.[ch]:
15011 Added statusbar to the display widget. Currently shows the zoom
15012 factor and modified flag of the viewed diagram. The statusbar is
15013 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
15014 This caused the following additions:
15016 * app/diagram.[ch]:
15017 Added function diagram_set_modified. Calls
15018 ddisplay_update_statusbar for all displays showing the modified diagram.
15019 Changed diagram_modified to call diagram_set_modified.
15022 Added the creation of the statusbar.
15025 diagram_save now calls diagram_set_modified instead of setting
15026 dia->modified. Needed to force call to display_update_statusbar
15029 Changed the way view_show_all works. Now calls ddisplay_zoom
15030 instead of directly setting the zoom_factor, so the zoom factor is
15031 correctly shown in the statusbar.
15034 Fixed rubberband zoom to use ddisplay_zoom().
15036 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
15039 Rudimentary GNOME session management.
15041 * app/disp_callbacks.c
15045 GNOME menus. Problems:
15046 Callbacks doesn't get user_data.
15047 Weird warnings when creating popup menus.
15048 menus_set_sensitive(), menus_set_state() doesn't work.
15050 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15053 Add AM_PATH_GDK_IMLIB() call.
15056 Add gdk_imlib to linking flags.
15060 Print library-loading error messages on stdout too.
15063 Add standard image to toolbox.
15065 * app/render_eps.c:
15066 Set a more reasonable dot length. Fixed
15067 missing initialization of dot length.
15068 Added draw_image methods.
15070 * app/render_gdk.c (new_gdk_renderer):
15071 Dot a bit wider. Looks good in normal mode now.
15073 * objects/standard/image.c:
15074 * objects/standard/pixmaps/image.xpm:
15075 New files. Standard object for images.
15077 * app/render_eps.c (set_linestyle):
15078 * app/render_gdk.c (set_linestyle):
15079 * lib/widgets.c (dia_line_style_selector_init):
15081 New line style DOTTED.
15084 * lib/render_store.c:
15085 Change DrawImage call to use gdk_imlib.
15087 * lib/widgets.[ch]:
15088 Added widgets for selecting files.
15089 Added dotted to the linestyle selector.
15091 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
15093 * objects/network/printer.c:
15094 * objects/network/network.c:
15095 * objects/network/pixmaps/printer.xpm:
15096 * objects/network/.cvsignore:
15097 * objects/network/Makefile.am:
15098 * objects/network/pixmaps/Makefile.am:
15099 New printer object in network.
15100 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
15103 Added known XML bug.
15105 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
15109 Reverted back from #include <gnome-xml/tree.h> to
15110 #include <tree.h> as this is fixed by the xml-config program.
15111 The former way broke for some people.
15112 Reported by blizzard@redhat.com.
15114 * objects/UML/lifeline.c:
15115 * objects/UML/message.c:
15116 * objects/UML/object.c:
15117 Removed some warnings.
15119 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15121 * objects/UML/lifeline.c:
15122 Fixed connection points over the life line when the focus of
15123 control is not drawn.
15125 * objects/UML/message.c:
15126 Now a recursive message can be freely resized using the handles.
15128 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15130 * objects/UML/lifeline.c:
15131 Added connection points.
15132 Added properties dialog with the option to draw/hide focus of control
15133 box and destruction mark.
15135 * objects/UML/object.c:
15136 Added properties dialog and stereotype, explicit state and attributes.
15137 It's also possible to mark the object as active.
15139 * objects/UML/pixmaps/object.xpm:
15142 * objects/UML/message.c:
15143 Added "recursive" message type (was not necessary to use OrthConn).
15145 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
15147 * objects/standard/arc.c:
15148 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
15150 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
15152 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
15156 Update xml includes to gnome-xml/*.h.
15158 * objects/standard/arc.c:
15159 Only one property dialog per type.
15160 Fix arrows directions.
15162 * objects/standard/box.c:
15163 * objects/standard/ellipse.c:
15164 * objects/standard/textobj.c
15165 Added default properties dialog.
15168 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15170 * objects/UML/Makefile.am:
15171 * objects/UML/uml.c:
15172 * objects/UML/lifeline.c:
15173 * objects/UML/object.c:
15174 * objects/UML/message.c:
15175 * objects/UML/pixmaps/lifeline.xpm:
15176 * objects/UML/pixmaps/object.xpm:
15177 * objects/UML/pixmaps/message.xpm:
15178 Added 3 new UML objects for dynamic modeling. To avoid internal
15179 conflicts, the name "objet" is used for object "object".
15182 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
15185 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
15187 * app/display.[ch]:
15188 * app/modify_tool.c:
15189 Added autoscrolling while doing rubber-band select.
15190 This patch from Matthias Köster
15191 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
15194 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
15196 * app/defaults.[ch]:
15197 New files, deals with default properties dialog.
15200 New file. Contains definitions for the new object menu.
15202 * lib/poly_conn.[ch]:
15203 New file. Base class for poly-line like objects.
15205 * objects/standard/polyline.c:
15206 * objects/standard/pixmaps/polyline.xpm:
15207 New files. Polyline object.
15210 Fixed bug with infinite loop when registering sheets.
15213 Removed unneccesary stuff.
15215 * app/disp_callbacks.c:
15216 Support for object menus.
15219 Added polyline to toolbox.
15220 Added call to tool_options_dialog_show() when double clicking on
15224 New function tool_options_dialog_show() for tool properties.
15230 Added ObjectType methods for handling object default dialogs.
15231 Added Object method for handling object_menu.
15232 Added unused methods to ObjectTypeOps for future binary
15235 * lib/widgets.[ch]:
15236 Added DiaArrowTypeSelector widget.
15238 * objects/standard/arc.c:
15239 * objects/standard/zigzagline.c:
15240 Added support for default properties.
15242 * objects/standard/line.c:
15243 Added support for default properties.
15244 Just use one properties dialog for all line objects. NOTE: This
15245 seems to have a bug. We're working on it.
15247 * standard/standard.c:
15248 Add the polyline object.
15250 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
15252 * app/modify_tool.c:
15253 Commented out buggy transitive select function. It wasn't really
15254 meant to go into cvs.
15257 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
15269 Swedish translation. Not completed.
15273 Added possibility to enable GNOME specific code with configure.
15276 Added possibility to set debug level with configure.
15279 Added about dialog.
15285 Added some GNOME specific code. Not ready for use.
15287 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
15290 Added text about needing gtk 1.1.13 and gnome-xml.
15293 Described changes since last version (0.20).
15295 Released version 0.30, tagged DIA_0_30.
15297 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
15299 * app/magnify.c (magnify_button_release):
15300 Fixed a problem when zooming in on a very small box would
15301 not release the grabbed pointer-focus.
15303 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
15305 * app/load_save.c (diagram_load):
15306 Be somewhat more robust when loading files that
15309 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
15313 * objects/UML/uml.c:
15314 * objects/network/network.c:
15315 * objects/standard/standard.c:
15316 Added versioning of object libraries.
15318 * app/create_object.c:
15319 Don't change tool when an object is created.
15321 * objects/network/network.c:
15326 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
15329 Updated gtk requirement to Gtk+ 1.1.13.
15332 Always add one screenful of scrolling space on
15333 each side of a diagram window.
15335 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
15338 Tell automake to auto-install missing files.
15341 Renamed deprecated Gtk+ function.
15343 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
15347 * samples/Makefile.am:
15348 * samples/ER-demo.dia:
15349 * samples/UML-demo.dia:
15350 Added samples directory.
15351 Added samples for ER and UML.
15354 * app/disp_callbacks.c:
15356 Zoom is done by sqrt(2) instead of 2.
15357 Lots of more zoom options in the menu.
15359 * objects/ER/relationship.c:
15360 Relationships have 8 connectionpoints instead of 4.
15362 * objects/UML/class.c:
15363 UML class name font a bit smaller.
15364 Fixed stupid bug in the copy operation.
15367 Displays are opened at 500x400 instead of 256x256.
15370 Fixup of internal error message.
15372 * app/color_area.c:
15374 * app/modify_tool.c:
15376 Removed debug printf's.
15379 Added new known bug.
15381 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
15385 Fixed so accelerator groups work in all windows.
15386 Updated to new gtk function names.
15392 Updated to new gtk function names.
15393 Set sensitivity of the align menu items.
15395 * objects/ER/pixmaps/Makefile.am:
15396 * objects/UML/pixmaps/Makefile.am:
15397 * objects/network/pixmaps/Makefile.am:
15398 Fix so that make dist works.
15401 * app/color_area.c:
15405 * app/layer_dialog.c:
15407 * app/object_ops.c:
15408 * app/properties.c:
15409 * lib/diagramdata.[ch]:
15411 * lib/objects/ER/attribute.c:
15412 * lib/objects/ER/entity.c:
15413 * lib/objects/ER/participation.c:
15414 * lib/objects/ER/relationship.c:
15415 * lib/objects/ER/.c:
15416 * objects/UML/actor.c:
15417 * objects/UML/association.c:
15418 * objects/UML/class_dialog.c:
15419 * objects/UML/dependency.c:
15420 * objects/UML/generalization.c:
15421 * objects/UML/large_package.c:
15422 * objects/UML/realizes.c:
15425 Updated to new gtk function names.
15428 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
15434 Fixed loading of diagrams specified as arguments.
15436 * objects/ER/attribute.c:
15437 * objects/ER/entity.c:
15439 * objects/ER/participation.c:
15440 * objects/ER/relationship.c:
15441 Updated the ER objects.
15444 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
15448 * objects/Makefile.am:
15449 * objects/ER/attribute.c:
15450 * objects/ER/entity.c:
15452 * objects/ER/participation.c:
15453 * objects/ER/relationship.c:
15454 * objects/ER/pixmaps/Makefile.am:
15455 * objects/ER/pixmaps/attribute.xpm:
15456 * objects/ER/pixmaps/entity.xpm:
15457 * objects/ER/pixmaps/participation.xpm:
15458 * objects/ER/pixmaps/relationship.xpm:
15459 * objects/ER/pixmaps/weakentity.xpm:
15460 First commit of entity relationship objects.
15461 These were done by hallon@lysator.liu.se.
15462 There are still stuff to do on these.
15464 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
15469 * app/diagram.[ch]:
15470 Change diagram_remove_all_selected to take new argument
15471 delete_empty. Empty objects are deleted only if it is TRUE.
15472 Removed call to close_eps_renderer. This is now done in end_render
15473 in the eps renderer.
15475 * app/create_object.c:
15476 * app/layer_dialog.c:
15477 Update calls to diagram_remove_all_selected.
15480 Update calls to diagram_remove_all_selected.
15481 Some code reformating.
15482 Changed order of adding updates i align_h and align_v.
15484 * app/modify_tool.c:
15485 Update calls to diagram_remove_all_selected.
15486 Added pointer grab when doing rubber-band selection, this fixes
15487 the bug when draging the box over to another window.
15489 * app/connectionpoint_ops.[ch]:
15490 diagram_update_connections_object changed to take an argument
15491 update_nonmoved. This lets connections that has not moved, but
15492 the stuff they're connected to has been moved work.
15493 Update calls to the new diagram_update_connections_object.
15495 * app/properties.c:
15496 Update calls to the new diagram_update_connections_object.
15497 Update extents when properties are applied.
15499 * app/disp_callbacks.c:
15500 Added support for zooming with the '+' and '-' keys.
15503 Removed old keyboard shortcuts for zoom.
15506 Added calls begin_render and end_render to renderer.
15507 These can be used for setup and cleanup.
15509 * lib/diagramdata.c:
15510 Added calls to begin_render and end_render in data_render.
15512 * app/render_gdk.c:
15513 Added begin_render and end_render.
15515 * app/render_eps.[ch]:
15516 Added begin_render and end_render.
15517 Moved close_eps_renderer code to end_render.
15518 Various fixes to the generated eps code. This fixes importing
15519 generated eps into LYX.
15521 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
15527 Menus for alignment updated.
15529 * app/object_ops.[ch]:
15530 Functions for object alignment updated.
15532 * app/commands.[ch]:
15533 Object alignment callbacks updated.
15534 New diagrams are called Untitled-<nr>.
15536 * app/layer_dialog.c:
15537 Active layer selected when showing layers from new
15541 Compress xml files when saving.
15542 Use xml namespace 'dia'.
15545 Minor comment update.
15547 * objects/UML/class_dialog.c:
15548 Cleanup of the gkt_list_item moving code.
15549 Fixed bug with update of operation when moving parameters.
15551 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
15553 * app/layer_dialog.[ch]:
15554 Fixed the rest of the layers dialog.
15557 Added call to redo layer dialogs diagram list when changing
15560 * lib/diagramdata.[ch]:
15561 Added data_raise_layer and data_lower_layer functions for
15562 raising/lowering layers. Added data_add_layer_at for adding a
15563 layer at a specified index.
15565 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
15567 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
15570 Added support for reading diagrams from the command line.
15572 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
15574 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
15576 * app/commands.[ch]:
15577 Added objects_align_callback().
15580 Added align objects to menu.
15582 * app/object_ops.[ch]:
15583 Add object_list_align().
15585 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
15586 * app/layer_dialog.[ch]:
15587 New files. Handles the layers dialog. Needs a bugfix for glib to
15588 work. Sent patch to gtk-list.
15590 * app/pixmaps/new.xpm:
15591 * app/pixmaps/eye.xbm:
15592 * app/pixmaps/lower.xpm:
15593 * app/pixmaps/raise.xpm:
15594 * app/pixmaps/delete.xpm:
15595 New files. Images for the layer dialog buttons.
15597 * lib/diagramdata.h
15598 * lib/diagramdata.c
15599 New files for the DiagramData and Layer structures and functions.
15602 Added call to create_layer_dialog() on startup.
15604 * app/commands.[ch]:
15605 New callbacks for showing the properties and layout dialog.
15606 Changes for the new DiagramData structure.
15608 * app/connectionpoint_ops.c:
15609 * app/cut_n_paste.c:
15610 * app/diagram.[ch]:
15611 * app/display.[ch]:
15613 * app/modify_tool.c:
15614 * app/object_ops.[ch]:
15615 * app/render_eps.c:
15617 Changes for the new DiagramData structure.
15620 * app/properties.c:
15621 Set correct wmclasses.
15624 Fix load and save of layers.
15627 Update DTD for layers.
15630 New menus for dialogs.
15636 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
15639 Removed the gtk 1.1.5 stuff.
15642 Updated gtk check to version 1.1.5.
15643 Updated version from 0.20 to 0.30
15645 * app/commands.[ch]:
15646 Updated some callbacks to be of type GtkItemFactoryCallback1.
15647 Not all are done yet, but it works anyway.
15650 Removed Gtk 1.0.0 GtkAcceleratorTable references.
15654 Update to Gtk 1.1.x functions.
15655 Use ItemFactory instead of MenuFactory.
15657 * app/render_gdk.c:
15658 Removed Gtk 1.0.0 references.
15660 * objects/UML/class_dialog.c:
15661 Scrolled window updates for Gtk 1.1.5.
15664 Removed ugly fix for gnome-xml bug. Make sure you get the
15665 newest version of gnome-xml from CVS.
15667 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
15670 Removed the xml load/save line.
15676 Removed building of files.c
15679 * lib/connection.c:
15683 * lib/render_object.c:
15684 * objects/UML/actor.c:
15685 * objects/UML/association.c:
15686 * objects/UML/class.c:
15687 * objects/UML/constraint.c:
15688 * objects/UML/dependency.c:
15689 * objects/UML/generalization.c:
15690 * objects/UML/implements.c:
15691 * objects/UML/large_package.c:
15692 * objects/UML/note.c:
15693 * objects/UML/realizes.c:
15694 * objects/UML/small_package.c:
15695 * objects/UML/uml.c:
15696 * objects/UML/usecase.c:
15697 * objects/network/bus.c:
15698 * objects/standard/arc.c:
15699 * objects/standard/box.c:
15700 * objects/standard/ellipse.c:
15701 * objects/standard/line.c:
15702 * objects/standard/textobj.c:
15703 * objects/standard/zigzagline.c:
15704 Removed all includes of files.h
15707 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
15710 Made the val property of string be implied.
15711 This makes it possible to save strings that
15712 are NULL. Just leave out val.
15714 * objects/lib/dia_xml.c:
15715 Fixed string so that it is possible to save strings
15716 that are NULL. Also made an ugly workaround of a
15717 bug in gnome-xml which removes empty properties.
15719 * objects/lib/orth_conn.c:
15720 Fixed a bug in saving. Forgot to step through the
15723 * objects/UML/association.c:
15724 * objects/UML/class.c:
15725 * objects/UML/constraint.c:
15726 * objects/UML/dependency.c:
15727 * objects/UML/generalization.c:
15728 * objects/UML/implements.c:
15729 * objects/UML/large_package.c:
15730 * objects/UML/note.c:
15731 * objects/UML/small_package.c:
15732 * objects/UML/realizes.c:
15733 * objects/UML/usecase.c:
15734 * objects/UML/actor.c:
15735 Fixed UML objects to save as xml.
15736 The last two were done by asierra@servidor.unam.mx (asierra-981204)
15738 * objects/UML/uml.[ch]:
15739 Updated *_write() and *_read() functions to use xml.
15741 * objects/network/bus.c:
15742 * objects/network/computer.c:
15743 * objects/network/disc.c:
15744 * objects/network/monitor.c:
15745 Updated network diagrams to use xml.
15747 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
15750 New file. DTD that describes the xml file format
15753 * lib/dia_xml.[ch]:
15754 New files. Support for saving object to xml files.
15759 Added check for and usage of gnome-xml library.
15762 Major chages. Now saves/loads diagrams as xml.
15765 * lib/element.[ch]:
15766 * lib/connection.[ch]:
15767 * lib/orth_conn.[ch]:
15768 * lib/render_object.[ch]:
15770 Updated object support load/save functions for xml:
15772 * object/standard/arc.c:
15773 * object/standard/box.c:
15774 * object/standard/ellipse.c:
15775 * object/standard/line.c:
15776 * object/standard/textobj.c:
15777 * object/standard/zigzagline.c:
15778 Updated all standard objects to use xml.
15781 Only the standard objects are converted right now, don't
15782 save or load uml or network diagrams yet. Also, since this
15783 is new code it is deemed a bit unstable.
15788 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
15790 * objects/UML/class.c:
15791 Changed classname font to Helvetica.
15792 Added more space above the classname
15794 * objects/UML/usecase.c:
15795 Correct placements of connectionpoints on ellipse.
15796 Better algorithm for deciding aspect ration on
15799 These changes were made by Alejandro Aguilar Sierra
15800 <asierra@servidor.unam.mx>. (asierra-981201)
15802 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
15804 * objects/UML/actor.c:
15805 Changed the extents and alignment of the element
15808 * objects/UML/.cvsignore:
15809 Added usecase.lo and actor.lo.
15811 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
15813 * objects/UML/actor.c:
15814 * objects/UML/usecase.c:
15815 * objects/UML/pixmaps/actor.xpm:
15816 * objects/UML/pixmaps/case.xpm:
15817 New files. Implements usecase and actor UML objects.
15818 These objects are done by Alejandro Aguilar Sierra
15819 <asierra@servidor.unam.mx>.
15821 * objects/UML/Makefile.am:
15822 * objects/UML/pixmaps/Makefile.am:
15823 Added usecase and actor to makefile.
15826 Added Alejandro and Jerome to autors list.
15828 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
15830 * objects/UML/class.c (umlclass_load):
15831 Fixed typo. Reported by Jerome.Abela@solsoft.fr
15833 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
15835 * app/properties.c:
15836 Update connections when doing apply in the properties window.
15838 * objects/UML/uml.[ch]:
15839 * objects/UML/class.[ch]:
15840 * objects/UML/class_dialog.c:
15841 Added connection points on both sides of attributes and
15842 operations in UML classes.
15843 Based on idea from Jerome.Abela@solsoft.fr
15845 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
15848 Some new documentation about handles and connectionpoints.
15851 Added functions object_add_connectionpoint and
15852 object_remove_connectionpoint for handling a dynamic
15853 number of connectionpoints.
15855 * objects/UML/class.c:
15856 Only reserve space for stereotype when it is shown.
15858 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
15860 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
15862 * app/connectionpoint_ops.c:
15864 * app/disp_callbacks.c:
15865 * app/display.[ch]:
15867 * app/handle_ops.c:
15869 * app/modify_tool.c:
15870 * app/render_gdk.[ch]:
15872 Huge cleanup of internal rendering system.
15873 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
15874 This gives a few new methods for Interactive Renderers for setting
15875 clipping regions and drawing pixel based lines and rects.
15876 Updated the rest of the code to use the new stuff.
15878 * app/render_eps.c:
15882 * objects/standard/zigzagline.c
15883 Fixed unused variable warnings.
15886 Fixedbug with stringwidth where width==0.
15891 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
15893 * lib/widgets.[ch]:
15894 Added suppot for setting the font of a
15895 DiaFontSelector widget.
15896 Also fixed some typos in the header.
15899 Added a comment about the GetPRoperties method call.
15900 You have to make sure to update widget state when
15901 this method is called. (Not all objects do this yet,
15907 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
15910 Fixed problem with height of ascent and descent for fonts.
15911 It didn't use the whole height (==ascent+descent) when calculatine
15912 ascent_ratio and descent_ratio.
15914 * objects/standard/textobj.c:
15915 * objects/standard/box.c:
15916 * objects/standard/ellipse.c:
15917 * objects/standard/line.c:
15918 * objects/standard/arc.c:
15919 Updated and added property dialogs for these objects.
15920 Also added line width/color/style to those objects
15921 that didn't have it.
15922 This change breaks fileformat compatibility for these objects.
15924 * objects/standard/zigzagline.c:
15925 Changed zigzagline to be based on OrthConn, much nicer.
15926 Also added line style and color to properties.
15927 This change breaks fileformat compatibility for zigzagline.
15930 Fixed bug in message(). Forgot a pair of '&'.
15932 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
15934 * lib/widgets.[ch]:
15935 Added DiaColorSelector widget.
15936 This is a colored button that pops up a color selection
15937 dialog when pressed.
15939 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
15941 * lib/widgets.[ch]:
15943 New files, added widgets for selecting fonts, alignment
15944 and line-style. Will be used later.
15946 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
15950 * objects/UML/Makefile.am:
15951 * objects/network/Makefile.am:
15952 * objects/standard/Makefile.am:
15953 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
15954 in all Makefile.am.
15956 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
15958 * app/handle_ops.c (handle_draw):
15959 connected HANDLE_MINOR_CONTROL also becomes red.
15961 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
15964 removed -ldl from linking. This is added if needed by configure.
15967 Open dlls with RTLD_LAZY if it is defined.
15968 Some cleanups: char *error -> const char *error
15969 Added fprintf()'s to where we exited because of errors.
15972 Include <sys/types.h>
15974 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
15979 Detect dlopen better.
15980 Detect wether dlopen needs an underscore in the identifier.
15981 This code was mostly borrowed from guile.
15985 * objects/standard/standard.c:
15986 * objects/network/network.c:
15987 * objects/UML/uml.c:
15989 Changed the way sheets reference objects to use just the
15990 name. Changed module loading to a two stage model:
15991 First register_objects() is called for all modules.
15992 Then register_sheets() is called. This means that
15993 sheets can safely include objects from other modules.
15996 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
15998 * objects/network/bus.c:
15999 * objects/network/network.c:
16000 * objects/network/Makefile.am:
16001 New file bus.c. Added new object: Ethernet bus.
16003 * objects/standard/box.c:
16004 Added call to gtk_spin_button_set_numeric for linewidth spinner
16005 in property dialog.
16007 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
16009 * app/connectionpoint_ops.c:
16010 * app/create_object.c:
16012 * app/handle_ops.c:
16013 * app/modify_tool.c:
16014 * lib/connection.c:
16019 * loads of objects:
16020 Changed handle->connectable to handle->connect_type.
16021 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
16022 that their connections don't break when moving objects.
16025 Always select the last handle in an object that has
16026 the closest distance.
16028 * lib/geometry.[ch]:
16029 Added rectangle_add_point function.
16032 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
16034 * app/properties.[ch]: New files. Handles the new properties
16037 * app/modify_tool.c: Changed to use new properties dialog.
16039 * app/object_ops.[ch]: Removed object_changed_callback, as it's
16040 not needed anymore. This is now handled differently in
16044 Changed the properties ops for objects. Removed typedefs
16045 ChangedObjectTime and ObjectChangedFunc needed for the old way.
16046 Added object_return_null function.
16049 * lib/render_object.c:
16051 Changed objects to use the new properties dialog.
16054 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
16056 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
16059 * autogen.sh: New file. Copied from gtk and added a call to
16060 libtoolize. Anyone knows why this isn't done in gtk?
16062 * Removed autogenerated files.
16064 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
16066 * Added call setlocale(LC_NUMERIC, "C") so that formating of
16067 floating-point numbers in postscript output will be correct.
16068 * Did some cleanup of generated postscript files.