1 2004-05-17 Hans Breuer <hans@breuer.org>
3 * lib/object_defaults.c : don't 'failed to load external
4 entity "NULL"' when the defaults file does not exist,
7 * lib/widgets.c : fixed possible menu leak
8 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
9 avoid finalization of floating references, bug #142307
11 2004-04-21 Tomasz Kłoczko <kloczek@pld.org.pl>
13 * acinclude.m4: minor fixes (added missing [] quotation).
15 2004-04-13 Lars Clausen <larsØraeder.dk>
17 * app/interface.c (toolbox_delete):
18 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
19 cancels quit due to modified diagrams.
21 2004-04-07 Samúel Jón Gunnarsson <sammi@techattack.nu>
23 * is.po: Added "is" to ALL_LINGUAS.
25 2004-04-04 Lars Clausen <lars@raeder.dk>
31 * doc/{en,pl}/dia.xml:
34 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
36 2004-04-03 Lars Clausen <lars@raeder.dk>
38 * objects/standard/ellipse.c (ellipse_copy): Properly copy the
39 handle in the middle of the ellipse.
41 2004-03-21 Hans Breuer <hans@breuer.org>
43 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
44 burden should be shared and not be win32 only ;) [this time
45 build was broken by adding GtkType to widget.h]
47 * objects/standard/box.c objects/standard/ellipse.c :
48 for code clarification compare (obj->aspect != FREE_ASPECT)
49 and not (obj->aspect); no binary effect.
51 * app/paginate_psprint.c : don't leak printcmd
53 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
54 standard C requires variables to be declared at the beginning of
55 a block, also there is no fabsf() with msvc
57 * app/win32print.[ch] : make win32_printer_close() return an
58 error code, it's used as pclose replacement
60 2004-03-20 Lars Clausen <lars@raeder.dk>
62 * RELEASE-PROCESS: Mention PATCH keyword in release process.
64 2004-03-19 Lars Clausen <lars@raeder.dk>
66 * xmldocs.make: Fixed apparent uninstall error.
69 * doc/en/dia-manual.xml:
70 * doc/pl/dia-manual.xml:
73 * NEWS: Version 0.93-pre1.
75 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
76 borelli): Remove some deprecated stuff.
78 2004-03-18 Lars Clausen <lars@raeder.dk>
80 * Makefile.am: Try better uninstall thing for scrollkeeper.
82 * objects/ER/entity.c:
83 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
84 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
85 1, 1 exactly, as well as associative ER entities.
87 2004-03-17 Lars Clausen <lars@raeder.dk>
89 * Makefile.am: Make distcheck not complain about scrollkeeper
90 problems (as per advice from James Henstridge).
92 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
93 standard installation.
95 * objects/standard/ellipse.c: Better strings for object menu.
97 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
98 of dialogs (shame on you, glade!)
100 * objects/custom/custom_object.c (custom_setup_properties):
101 Removed debugging output
103 * app/paginate_psprint.c (diagram_print_ps): Slightly more
104 readable printer error messages.
108 * doc/en/Makefile.am:
109 * doc/pl/Makefile.am:
110 New more standard way to install the XML-based manuals.
112 2004-03-15 Lars Clausen <lars@raeder.dk>
114 * objects/standard/box.c (box_move_handle): More intuitive fixed
117 * objects/standard/ellipse.c:
118 * objects/standard/box.c:
121 * app/layer_dialog.[ch]:
122 Patch from Steve Langasek <vorlon@debian.org>:
123 Fixes startup crash on Alpha (bug #137169)
125 * objects/standard/box.c: Aspect fixing like ellipses.
127 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
129 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
130 pixmaps, now can uninstall properly.
132 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
133 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
135 Added object menu access.
137 2004-03-07 Hans Breuer <hans@breuer.org>
139 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
140 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
141 would not use deprecated apis, but it's much simpler this way)
143 * lib/makefile.msc : build the above new widgets and render_pixmap
144 * lib/libdia.def app/dia.def app/makefile.msc : updated
146 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
147 what I saw, i.e. how big is an empty array supposed to be ? ;-).
149 disp_callbacks.c(188) : error C2059: syntax error : '}'
150 disp_callbacks.c(191) : warning C4034: sizeof returns 0
152 * app/interface.c : #include "dialinechooser.h"
154 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
155 [one more reason not to use it here : it's quite slow compared to
156 the native win32 font renderer ;]
158 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
159 a GtkDialog*, removed unneeded cast
161 * app/render_eps.c : avoid assignment warning for void* user_data
164 2004-03-06 Steffen Macke sdteffen@web.de>
166 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
169 2004-03-06 Lars Clausen <lars@raeder.dk>
171 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
174 * lib/font.c: Simple cleanup system for layout cache removes any
175 layout that hasn't been used for 10 minutes, but only during idle
178 2004-03-05 Lars Clausen <lars@raeder.dk>
180 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
181 (lluis padro) (#130887): Extended Electric shapes with vertical
184 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
185 start with "Create a" or "A", always capitalize first word).
187 * objects/standard/ellipse.c: Patch from Grégoire Dooms
188 <dooms@info.ucl.ac.be>: Add extra connection point in center of
189 ellipse. Additionally added a handle in the center, and resize is
190 now around the center.
193 * sheets/Makefile.am (SUBDIRS):
194 * sheets/IsometricMap.sheet.in:
195 * shapes/Map/Isometric/*
196 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
198 2004-03-04 Lars Clausen <lars@raeder.dk>
201 * lib/pixmaps/Makefile.am:
203 Better installation handling of pixmaps.
205 * lib/diagdkrenderer.c:
206 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
207 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
210 2004-03-03 Lars Clausen <lars@raeder.dk>
212 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
213 * lib/diagdkrenderer.c:
214 * lib/diasvgrenderer.c:
215 * lib/dialibartrenderer.c:
216 * lib/diainteractiverenderer.c:
217 * lib/prop_text.c (multistringprop_handle_key):
219 * lib/dia_image.c (dia_image_rgba_data):
221 * lib/diagramdata.c (layer_set_object_list):
224 Getting rid of compile warnings.
226 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
227 images. Also remove unused decls.
229 2004-03-02 Lars Clausen <lars@raeder.dk>
232 * lib/widgets.c (dia_size_selector_init): Add images to the size
233 selector chain widget. Also new function to load installed images
234 from files (better than from included XPM, IMHO).
236 2004-03-02 Lars Clausen <lars@raeder.dk>
239 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
243 * lib/widgets.c (dia_size_selector_init): Work
244 on getting proper icon onto the size selector. Need simple image
245 load mechanism in utils.
249 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
250 strings, handle utf8 strlen properly. Bug #135930.
252 2004-03-01 Lars Clausen <lars@raeder.dk>
254 * shapes/Cybernetics/*:
255 * sheets/Cybernetics.sheet.in:
256 * sheets/Makefile.am:
257 * shapes/Makefile.am:
258 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
259 Roggendorf): Cybernetic shapes (#95553).
261 2004-03-01 Lars Clausen <lars@raeder.dk>
263 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
265 * lib/diatypes.h: New type DiaSizeSelector.
267 * lib/widgets.[ch]: New size selector widgets that selects two
268 values (width and height, nominally) optionally linked to keep
271 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
273 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
274 in front of file. Bug #128600.
278 * app/lineprops_area.[ch]:
280 * lib/dialinechooser.[ch]:
281 * lib/widgets.c (dia_line_style_selector_init): use line preview
282 instead of text labels. This involve moving away line_chooser to lib
285 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
288 * app/Makefile.am (dia_core_files):
289 * app/interface.c (create_lineprops_area):
290 * app/render_pixmap.[ch]:
292 * lib/diaarrowchooser.[ch]:
296 * lib/render_pixmap.[ch]:
297 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
298 of text labels. This involve moving away arrow_chooser to lib from
301 2004-02-29 Lars Clausen <lars@raeder.dk>
303 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
304 being updated half-way through destruction. To be removed when
305 the lists are replaced by something better.
307 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
308 Accelerators for class dialog. Bug #130995.
309 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
314 * objects/GRAFCET/step.c:
315 * objects/Misc/analog_clock.c:
316 * objects/chronogram/chronoline.c:
317 * objects/chronogram/chronoref.c:
318 Change to american spelling (color, not colour) to ease
319 translators job. Note that a number of translations may need an
320 update now. Bug #120466.
322 2004-02-29 Lars Clausen <lars@raeder.dk>
324 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
325 Better arrow handling for missing arrows.
327 * plug-ins/metapost/render_metapost.[ch]: Patch from
328 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
329 size. See bug #135363.
331 * app/app_procs.c (app_init): If non-interactive, or if
332 --log-to-stderr used, send all messages to stderr. This should
333 mean that old diaconv == dia --export-to-format=FOO BAR
335 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
337 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
339 2004-02-28 Lars Clausen <lars@raeder.dk>
341 * lib/text.c (text_key_event): Patch from Kouhei Sutou
342 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
344 2004-02-27 Lars Clausen <lars@raeder.dk>
346 * KNOWN_BUGS: Added info on most commonly reported bugs, with
349 * app/disp_callbacks.c (popup_object_menu): Unified properties
350 entry, fixes bug #105080.
352 * app/diagram.c (diagram_update_menu_sensitivity):
353 * app/menus.h (struct _UpdatableMenuItems):
354 * app/menus.c (menus_initialize_updatable_items): Menu items
355 changed around, align menus flattened, properties entry ghosted,
356 dialogs menu removed, more shortcuts added. Closing bugs #94018,
358 Also taking out Gnome menus for now. They don't allow shortcuts,
359 so what are they good for?
361 2004-02-27 Lars Clausen <lars@raeder.dk>
363 * app/menus.c (display_menu_items):
364 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
367 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
369 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
371 2004-02-23 Lars Clausen <lars@raeder.dk>
373 * app/app_procs.c (app_init): Comments for translators.
375 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
377 * app/preferences.c (prefs_create_dialog): Change packing policy
378 for widget to expand.
380 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
381 running with a debugger.
383 2004-02-19 Lars Clausen <lars@raeder.dk>
385 * app/undo.[ch]: Adding last-saved information to undo to allow a
386 diagram with all changes since last save undo to be marked as
387 nonmodified. Still needs integration with actual undo
391 * app/diagram_tree.c (diagram_tree_update):
393 * app/display.c (update_modified_status):
394 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
395 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
398 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
399 vs. EPSI, comment out EPSI until preview is in there.
402 * lib/diarenderer.c: Removing debugging printfs.
404 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
407 * objects/standard/arc.c (arc_update_handles): Check to avoid
408 crash when start and end points are the same.
410 2004-02-19 Lars Clausen <lars@raeder.dk>
412 * objects/standard/bezier.c:
413 * objects/standard/line.c (line_load):
414 * objects/standard/polyline.c (polyline_load):
415 * objects/standard/zigzagline.c (zigzagline_load):
416 * objects/standard/arc.c (arc_load):
417 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
418 instead of hardcoding.
420 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
422 * app/disp_callbacks.c (popup_object_menu): append a menu item to
425 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
427 * app/app_procs.c: declare rc properly with the proper #ifdef
429 2004-02-17 Lars Clausen <lars@raeder.dk>
431 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
432 objects (which seemingly FIG itself breaks, or else there is no
435 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
437 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
438 width renderable in xfig. Helps on bug #133637, but does not
439 quite fix it -- something about depth is wrong.
441 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
442 Extern definitions for Mac compilation.
444 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
445 (jdassen@debian.org): Include fix.
447 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
448 sure the initial diagram size is correct.
450 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
452 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
453 CPPFLAGS, as per automake warning.
454 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
455 LDFLAGS, as per automake warning.
456 (run_dia.sh): More robust creation, and more easily moved.
458 * app/undo.c (group_objects_revert): Don't double-free the objects
459 list. (#129221) Call object_add_updates on grouped objects.
460 (ungroup_objects_revert): Call object_add_updates on grouped objects.
462 * lib/diagramdata.c: Internal
465 * lib/polyshape.c (polyshape_update_data): Correctly calculate
466 directions for polyshape corners (thanks, Valgrind!)
469 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
471 * lib/arrows.h: Default arrow size defined. After all are using
472 this, may lower to 0.4 or so.
474 * app/lineprops_area.[ch]: New function to set the arrow type for an
477 * app/interface.c (create_lineprops_area): Set default line to
478 have an arrow (fairly likely to be what's wanted, plus it shows
479 the user where arrows are set).
481 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
483 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
485 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
486 Dotted lines should use dot_length, not dash_length.
488 2004-02-06 Hans Breuer <hans@breuer.org>
490 * app/interface.c : don't use gtk_drawing_area_size() to avoid
491 the defaut size being also the minimum size. Instead use
492 gtk_window_set_default_size() on the display shell. Fixes #130982.
494 [fixing #131210, but umlauts in the 'main' filename still not really
495 supported on systems where filesystem encoding != utf8
496 (Problems with recent file menu and window title)]
497 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
498 to deal with possible differnces in filename encodings, see
499 g_filename_<to|from>_utf8()
500 * objects/standard/image.c : use them.
502 * lib/widgets.c : handle possible encoding difference here, too.
503 Also get rid of most warnings by using const and GTK casts where
504 appropriate; one wrong cast (probably causing a crash) was found/fixed
505 by this - the remaining give a hint on finally leaking FontSelectorEntry.
507 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
508 dia_file_selector_<get|set>_file to behave like the respective Gtk
509 functions do : encoding- and const-wise ;-)
511 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
513 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
515 2004-01-19 Hans Breuer <hans@breuer.org>
517 * app/app_procs.c app/diaconv :
518 only call bind_textdomain_codeset when available, what's good
519 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
520 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
522 2004-01-19 Steffen Macke <sdteffen@web.de>
524 * makefile.msc: updated for new GAIM-like installer build; sync'ed
525 ALL_LINGUAS with configure.in
527 2004-01-18 Hans Breuer <hans@breuer.org>
529 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
530 by not passing NULL to g_print()
532 * app/interface.c (create_toolbox) : actually use
533 persitence_register_window() to restore toolbox window size
535 * app/makefile.msc lib/makefile.msc : allow to deselect
536 building with Freetype by command line to nmake like :
537 nmake -f makefile.msc "NOFT2=1"
539 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
540 far as possible with Dia's limited line style
541 * plug-ins/python/pydia-property.c : allow to get and set
542 Linestyle, style and dash(length)
544 * lib/object.h : removed typedef for ObjectId not use anywhere
546 2004-01-17 Hans Breuer <hans@breuer.org>
548 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
549 doc/shape.dtd doc/custom-shapes :
550 support for images in custom shapes, also removed some long-time
553 * doc/en/*.xml : fixed crippled line ends which get created
554 when windoze line ends are checkin from the unix side
556 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
558 * configure.in: Added "sq" to ALL_LINGUAS.
560 2004-01-11 Hans Breuer <hans@breuer.org>
564 * objects/SADT/annotation.c : use text_destroy() not g_free()
566 * objects/chronogram/chronoline.c : neither leak chronoline::events
569 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
571 2004-01-11 Hans Breuer <hans@breuer.org>
574 * objects/custom/custom_object.c : more properties optional
575 to be backward compatible for older diagrams not having them
576 set. (Try to load samples/all_objects.dia)
578 [less memory leaks thanks valgrind ;-]
580 * app/recent_files.c (recent_file_history_write) :
581 g_free(history_filename);
582 (recent_file_menu_item) : use g_path_get_basename()
583 which already strdups, free result of g_strescape()
585 * app/filedlg.c (create_export_menu) : return of
586 filter_get_export_filter_label() must be g_free()'d
587 (create_open_menu) : same for import
589 * app/export_png.c (export_png_ok) : destroy info ptr
590 with png_destroy_write_struct()
592 * app/app_procs.c (app_init) : g_free(export_format_string);
594 * lib/font.c (dia_font_finalize) : finalize parent_class, too
595 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
596 refing it a second time, g_type_create_from_instance() is enough
598 * lib/object_defaults.c (_obj_store) : don't mess with names
599 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
601 2004-01-11 Steffen Macke <sdteffen@web.de>
603 * app/diapsftrenderer.c: including ftoutln.h
604 * app/makefile.msc: updated for freetype build
605 * lib/libdia.def: added dia_font_get_context()
606 * lib/dialibartrenderer.c (draw_string): added cast
608 2004-01-10 Hans Breuer <hans@breuer.org>
610 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
611 transformed coordinates, fixes bug 130804
613 2004-01-10 Hans Breuer <hans@breuer.org>
615 * app/filedlg.c app/app_procs.c : don't try to destroy
616 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
617 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
618 returns. Fixes 'has no handler' bugs like #121019
620 2004-01-10 Hans Breuer <hans@breuer.org>
622 * objects/UML/class.c objects/UML/class_dialog.c :
623 handle umlclass->name being empty to avoid, i.e. fix #127968
625 [plugging memleaks, thanks valgrind :-]
627 * lib/dia_xml.c (data_string) : don't leak return value
628 of xmlNodeListGetString()
630 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
631 before returning, maybe alloca() would be the better
634 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
636 * lib/font.c (dia_font_build_layout) : don't leak result
639 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
640 (this is the one which got me started using valgrind, see #130816)
642 2004-01-07 Sanlig Badral <badral@openmn.org>
644 * configure.in: Added "mn" to ALL_LINGUAS.
646 2003-01-04 Hans Breuer <hans@breuer.org>
648 * lib/diagdkrenderer.c : replace rendering of really small (height
649 less than 2 pixels) with a simple dashed line, you wont notice the
650 differnce beside it being much faster. This allows ...
651 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
652 * app/navigation.c : ... and lets you see an read rendered text even
653 in the nice navigation popup.
655 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
656 (draw_string) : don't leak temporary image
658 2003-01-04 Hans Breuer <hans@breuer.org>
660 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
661 * app/interface.c : use dia-app-icons.h to give Dia window icons
663 * lib/dia_image.c lib/color.c : _never_ call functions implemented
664 in app/ from lib/. It is not portable and broken from design
665 * app/app_procs.c : call color_init() and dia_image_init() conditional,
666 i.e. only if running interactive.
668 * lib/font.h : #include <time.h>
670 * lib/libdia.def : updated externals
672 * objects/UML/actor.c
673 objects/UML/association.c (todo)
675 objects/UML/class.[hc] objects/UML/class_dialog.c
676 objects/UML/classicon.c
677 objects/UML/component.c
678 objects/UML/constraint.c
679 objects/UML/dependency.c
680 objects/UML/generalization.c
681 objects/UML/implements.c
682 objects/UML/large_package.c
683 objects/UML/lifeline.c
684 objects/UML/message.c
687 objects/UML/realizes.c
688 objects/UML/small_package.c
690 objects/UML/usecase.c
692 : ported coloring of most UML objects (bug #97517, orginal
693 work Mathias Hasselmann)
695 * lib/properties.h : add _OPTIONAL variants for
696 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
697 i.e. default colored - UML diagrams without complaining
698 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
699 not set properties with the help of PXP_NOTSET. Otherwise
700 optional attributes would lead to wrong initialization.
702 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
703 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
704 Same for most other selectors which probably should be rewritten
705 to the combo box with tree model from Gtk+ 2.4
707 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
709 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
710 being the Right Thing(tm) to use on Solaris.
712 * objects/standard/bezier.c (bezierline_draw): Don't draw
713 guidelines if not selected.
715 * lib/object.[ch] (dia_object_is_selected): Function to check whether
716 a given object is selected. O(n), where n is # selected objects.
719 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
721 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
722 Fonts dialog is closed without pressing Ok (bug #128646).
724 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
726 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
729 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
731 * INSTALL: Updated list of requirements (bug #129653)
733 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
734 Pionchon <luc@handhelds.org>.
736 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
738 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
739 empty or NULL strings (bug #130097).
741 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
743 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
744 Added checks against color_black.
746 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
748 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
749 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
752 * objects/UML/component_feature.c: Patch from W. Borgert
753 <debacle@debian.org>: Add handle to component feature text.
755 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
757 * lib/font.c: Caching PangoLayout for better rendering speed.
759 2003-12-30 Lars Clausen <lars@raeder.dk>
761 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
762 get absolute file name from relative.
763 * app/recent_files.c (recent_file_history_add): Use absolute
764 filenames for recent files menu so that files can be found when
765 Dia is invoked from other places.
767 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
768 Actually load different diagrams if such are requested on command
771 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
772 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
774 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
775 remove text rendering. May be turned into greeking at some later
779 * app/Makefile.am (dia_core_files):
780 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
781 Adds navigation window a la Gimp, though without text being
784 2003-12-27 Luc Pionchon <luc@handhelds.org>
786 * app/navigation.h: (new file)
787 * app/navigation.c: (new file) creates a navigation window with a
788 thumbnail view of the whole diagram.
789 * app/Makefile.am (dia_core_files): added new files.
791 * app/interface.c (create_display_shell): added a button between
792 the scrollbars to popup a navigation window.
794 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
796 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
797 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
798 not want text rendering.
800 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
802 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
804 * objects/custom/shape_info.[ch]: Cleanup.
806 * objects/custom/custom_object.[ch]: Changed to use new props
811 * lib/prop_inttypes.c:
812 * lib/prop_geomtypes.c: Added *prop_get_data_size.
814 * lib/libdia.def: Added object_load_props.
816 * configure.in: Better FT2 version test, from bug #129225.
818 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
820 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
821 Lehmann <holger.lehmann@catworkx.de>.
823 * plug-ins/xslt/Makefile.am:
824 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
827 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
829 * lib/diagdkrenderer.c: Add implementation so text is still
830 rendered. May be improved later.
836 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
837 Allow running without a $DISPLAY!
839 * lib/color.c: Remove warnings for non-interactive run.
844 * app/app_procs.[ch]:
845 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
846 to specify size for PNG output.
848 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
849 render a little smaller, so as to fit the big ones.
851 * lib/arrows.[ch]: New arrow type from W. Borgert
852 <debacle@debian.org>: Filled Dot and Triangle.
854 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
856 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
859 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
861 * acinclude.m4: Better Python configure code patch (can't find
862 author, author please speak up!)
864 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
866 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
869 2003-11-30 Hans Breuer <hans@breuer.org>
871 * plug-ins/python/diasvg.py : initialize self.dash_length
872 in constructor to avoid crashing if the renderer user
873 does not set it before first usage.
875 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
877 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
881 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
882 development and stable versions.
884 * lib/text.c (text_draw): Use new renderer function to draw the
888 * lib/diarenderer.c: New renderer function "draw_text" with
889 default implementation. This function should eventually be the
890 main interface, as it will be able to handle width and caching of
891 rendering internally. All users of draw_string should convert to
892 use Text objects and call either renderer->draw_text or text_draw,
893 the latter if the text can be edited in-place (as should be the
896 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
898 * shapes/Circuit/hresistor.shape: First example of extra
901 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
903 * plug-ins/shape/shape-export.c:
904 * lib/diasvgrenderer.h:
905 * lib/diasvgrenderer.c:
906 * plug-ins/svg/render_svg.c (new_svg_renderer):
907 Actually store the font size, using DiaRenderer's font fields.
909 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
911 * objects/custom/shape_info.[ch]:
912 * objects/custom/custom_object.[ch]:
913 Support for extra attributes in custom objects.
915 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
917 * app/diagram.c (diagram_update_menu_sensitivity): More
918 intelligent checks for menu sensitivity. Might be slow on huge
919 diagrams, but I think other things outweigh it by a lot.
921 * app/menus.[ch]: Make "Bring Forwards"
922 and "Send Backwards" updateable.
924 2003-11-22 Steffen Macke <sdteffen@web.de>
926 * shapes/Assorted/arrow-turn-up.shape:
927 * shapes/Assorted/arrow-turn-up.png:
928 * sheets/Assorted/Makefile.am:
929 * sheets/Assorted.sheet.in: Added new arrow
931 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
940 * app/diagram_tree_menu.c
941 * app/diagram_tree_window.c
942 * app/diapagelayout.c
943 * app/diaunitspinner.c
948 * app/lineprops_area.c
949 * app/linewidth_area.c
952 * app/paginate_psprint.c
954 * app/plugin-manager.c
959 * app/sheets_dialog.c
960 * app/sheets_dialog_callbacks.c
961 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
962 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
964 * TODO: Updated, note on EPS transparency.
966 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
968 * objects/UML/class.c (umlclass_draw): Allow classes with no name
971 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
974 * doc/en/dia-manual.xml:
977 * NEWS: Another Brown Bag release for parenting problems,
978 including a crash bug fix.
980 * app/connectionpoint_ops.c (diagram_update_connections_object):
981 Also update connections when moving children. This can cause
982 move_handle to be called twice, so it must be idempotent.
984 * app/load_save.c: Loading and saving of children totally redone.
985 Now doesn't violate assumption that all objects in a layer are
986 placed in order in XML file.
988 * objects/UML/branch.c (branch_create): Don't lie about being
991 * objects/UML/node.c (node_create):
992 * objects/UML/large_package.c (largepackage_create): Drag with
993 lower right-hand handle at creation like all other objects.
995 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
997 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
998 parenting drop to behave like a move inside, i.e. constrain place
999 instead of trying to resize. 'Cause, resizing cannot be done for
1000 all objects (e.g. UML Class). Also simplified the algorithm a lot
1003 * app/load_save.c: Saving and loading of connection points for
1004 children added. Prototypes for static functions added.
1006 * lib/dynamic_obj.c: Removed debugging output.
1008 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
1010 * doc/en/dia-manual.xml:
1011 * doc/pl/dia-manual.sgml:
1015 * NEWS: Brown Bag release 0.92.1
1017 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
1019 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
1021 * app/app_procs.c (app_init): Rearrangement for translators.
1023 2003-10-24 Steffen Macke <sdteffen@web.de>
1025 * lib/text.c(text_key_event): enforcing the inserted text length now,
1028 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
1030 * MAINTAINERS: Change Debian maintainer to be the default address.
1032 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
1033 args to match prototype, thus removing crashbug #125159.
1035 * RELEASE-PROCESS: Note to self.
1037 2003-10-22 Steffen Macke <sdteffen@web.de>
1039 * doc/en/dia-manual.xml: removed superfluous external references
1041 2003-10-21 Steffen Macke <sdteffen@web.de>
1043 * lib/libdia.def: added filter_get_by_name
1044 * app/render_eps.c: moved extensions definition outside #ifdef
1046 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
1050 Removed old Dia manual, put new one in doc/en/. Translations
1051 should go in doc/??/.
1053 * doc/en/dia-manual.xml:
1054 * doc/pl/dia-manual.sgml:
1055 * dia.spec (Release):
1058 * NEWS: 0.92 is here!
1062 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
1063 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
1066 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
1068 * doc/en/usage-objects-selecting.xml: Commented out empty note.
1070 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
1072 * doc/pl/dia-manual.sgml:
1073 * doc/en/dia-manual.xml:
1077 * dia.spec (Release): Pre7.
1079 * app/diapsrenderer.c (draw_string): Convert string to print based
1080 on current locale. If conversion fails, fall back to UTF-8 (which
1081 is almost certain to be messy).
1083 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
1085 * doc/pl/dia-manual.sgml:
1086 * dia.spec (Release):
1090 * doc/en/dia-manual.xml: Pre6.
1092 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
1093 TeX chars in strings -- must be possible to use TeX text in there.
1094 Also avoids infinite loop bug (#124464) Will get option for this
1097 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
1099 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
1101 * doc/en/dia-manual.xml:
1102 * doc/pl/dia-manual.sgml:
1103 * dia.spec (Release):
1108 * app/authors.h: Removed duplicate of M. C. Nelson.
1110 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
1112 * app/export_png.c: Unique name for libart PNG export: png-libart.
1114 * app/render_eps.c: Unique names for the two eps export methods:
1115 eps-builtin, eps-pango.
1117 * lib/filter.h: Binary compatibility change:
1118 Added unique name to export filters. Can be NULL.
1119 * lib/filter.c (filter_get_by_name): Finding a filter by
1122 * app/app_procs.h: Changed prototype for do_convert.
1123 * app/app_procs.c (app_init): Support for non-extension file
1124 format selection for export. Also allow extension to differ from
1125 that specified by the filters. A bit of refactoring, too.
1127 2003-09-28 Steffen Macke <sdteffen@web.de>
1129 * makefile.msc: added target po to update the translations
1131 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
1134 * dia.spec (Release):
1136 * doc/pl/dia-manual.sgml:
1137 * doc/en/dia-manual.xml:
1138 Pre4 is given a short try.
1140 * configure.in: Give all necessary libs to PNG test.
1142 * lib/font.c: Added legacy entries for sans, serif and monospace.
1144 * app/app_procs.c (internal_plugin_init):
1147 Added PS fonts output for Unix.
1149 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
1150 factor to make PS fonts stay in boxes.
1152 2003-08-03 Hans Breuer <hans@breuer.org>
1154 * config.h.win32 : close the version string
1156 * lib/libdia.def : with color_white, color_black being static
1157 on win32 they can not be exported anymore either
1159 * lib/dialibartrenderer.c : text rendering is back on win32,
1160 only by Gdk though; almost a year seems to be enough to
1161 wait for my patch at bug #94791 to be accepted ...
1163 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
1165 * shapes/network/{digitizing_board.png,plotter.png,
1166 laptop.png,telephone.png}: 22x22 icons.
1168 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
1170 * doc/pl/dia-manual.sgml:
1171 * doc/en/dia-manual.xml:
1172 * dia.spec (Release):
1176 pre3 improves font rendering speed.
1178 * app/app_procs.c (app_init): Don't do pango init here, it's done
1179 on demand in font.c now.
1181 * lib/font.c: Load pango context on demand rather than during
1182 init/all the time strikes a better balance between working font
1183 size and speed. Still need to cache width calculations.
1185 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
1187 * lib/dia_xml.c: Enable pretty printing. Should have been added
1190 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
1192 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
1193 adjustment a bit for half diamond and open round.
1195 * RELEASE-PROCESS: Added note about notifying translators and
1198 * doc/pl/dia-manual.sgml:
1199 * doc/en/dia-manual.xml:
1200 * dia.spec (Release):
1204 Update to 0.92-pre2.
1206 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
1208 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
1209 calculation for half diamond and open round.
1212 * objects/UML/component_feature.c:
1213 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
1214 arrows instead of specific little hacks. Much nicer, but damn
1215 there's a lot of arrows.
1217 * lib/dialibartrenderer.c (begin_render):
1218 * app/render_libart.c (begin_render): Use correct DPI for screen
1219 (well, actually the default DPI of 75 for now).
1221 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
1223 * lib/diagdkrenderer.c (draw_string): Some reformatting.
1225 * app/app_procs.c (app_init): Note on what should be done for the
1226 pango context now, only it doesn't work:(
1228 * lib/font.c (dia_font_new): Make sure to load fonts that are
1229 used, using a reasonable pango_context. Also a comment on the
1232 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
1234 * doc/pl/graphics/*.png:
1235 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
1236 loop (bug #121817). PL translator may want to change the
1237 home_network png to be in Polish. If the docs get translated into
1238 more languages, we'll want to find out how to share these things.
1240 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
1242 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
1243 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
1246 * app/filedlg.c (file_save_as_callback): Put filename setting
1247 together. (Preparation for allowing default save dir.)
1249 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
1250 correctly this time:)
1252 * app/dia-props.c (diagram_properties_show):
1253 * app/properties.c (properties_show): Make sure the
1254 dialogs are transient for the correct diagram.
1256 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
1258 * configure.in: Make sure -lz -lm is passed into second png test
1259 as well (stupid AC_LINK_IFELSE can't take it as an argument).
1261 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
1262 comment-filled files readable. Once we have a 'generic data'
1263 system, we can put comments in there.
1265 2003-09-06 Steffen Macke <sdteffen@web.de>
1267 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
1268 g_string_sized_new() instead of g_string_new() to make it compile
1269 * app/Makefile.am: including dia.ico and dia.rc in the tarball
1270 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
1271 for non-solid linestyles - otherwise custom linestyles have to be used.
1273 2003-09-02 Steffen Macke <sdteffen@web.de>
1275 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
1278 2003-09-02 Christian Neumair <chris@gnome-de.org>
1280 * sheets/Pneumatic.sheet.in: Slight unification fix.
1282 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
1286 * dia.spec (Release):
1287 * doc/en/dia-manual.xml:
1288 * doc/pl/dia-manual.sgml:
1289 * NEWS: Update to 0.92-pre1.
1291 * app/properties.c (properties_key_event): Removing Esc/Enter
1292 handling for now, interferes to much with regular dialog usage.
1294 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
1295 Function to escape special TeX characters. Not in use yet, as
1296 PSTricks output by default is TeX strings. Should get a save-time
1299 2008-09-01 Steffen Macke <sdteffen@web.de>
1301 * lib/paper.h: explanatory comment on width and height
1303 2003-08-30 Steffen Macke <sdteffen@web.de>
1306 * lib/color.h: made color_white, color_black static on win32
1308 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
1310 * configure.in (PNG_LIBS): Something in the png tests added an
1311 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
1313 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
1315 * configure.in: Quote correctly for temporarily adding freetype
1318 * app/preferences.c (prefs_save): Remove debugging g_print.
1320 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
1322 * objects/flowchart/parallelogram.c (pgram_update_data):
1323 Directions for connections, better system for placing
1326 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
1328 * lib/diagramdata.c (layer_find_closest_object_except): Look all
1329 the way through the object list, so the foremost object is selected.
1331 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
1332 included for diagramdata.c.
1334 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
1335 newline in multistringprop not close the dialog. Failed so far.
1337 2003-08-25 Steffen Macke <sdteffen@web.de>
1339 * app/commands.c: using CHM instead of HTML on win32 if available
1340 * lib/diagramdata.h: including dynamic_obj.h
1342 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
1344 * app/properties.c (properties_key_event): Make Enter = Ok for
1345 properties dialogs. Still some problems with this and Esc for
1346 Cancel, for instances escaping out of a menu closes the dialog.
1348 * objects/UML/association.c (association_get_properties):
1349 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
1352 * app/diapsft2renderer.c (draw_string): Use
1353 dia_font_scaled_build_layout to ensure similarity of text.
1355 * lib/diagramdata.c: Remove obj from dynobj list when removing
1356 from layer to avoid nasty race conditions.
1358 * app/undo.c (group_objects_revert): Make sure to unparent and
1359 remove from dynobj list when changing layers objects.
1361 2003-08-23 Steffen Macke <sdteffen@web.de>
1363 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
1364 StretchBlt(); fixes #92249
1366 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
1368 * app/filedlg.c (file_save_as_callback):
1369 * app/preferences.h:
1370 * app/preferences.c (prefs_data):
1371 * lib/diagramdata.h:
1372 * lib/diagramdata.c (new_diagram_data):
1373 * app/load_save.c (diagram_data_load):
1374 Let the document remember whether it was compressed. The user can
1375 still override this in the Save As... dialog, and that will still
1376 be remembered as the default for new diagrams.
1378 2003-08-23 Steffen Macke <sdteffen@web.de>
1380 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
1382 2003-08-22 Steffen Macke <sdteffen@web.de>
1384 * plug-ins/xslt/dia-uml.xsl:
1385 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
1386 table containing a list of components grouped by stereotype
1388 2003-08-21 Steffen Macke <sdteffen@web.de>
1390 * lib/makefile.msc: added connectionpoint.obj
1391 * lib/libdia.def: added connpoint_update, find_slope_directions
1392 * app/disp_callbacks.c: including scroll_tool.h
1393 * obj/makefile.msc: added component_feature.obj
1394 * app/paginate_gdiprint.c: fixed loop initialization in
1395 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
1398 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
1400 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
1403 * lib/diagramdata.h: Colors added to prefs.
1404 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
1405 New field for pagebreak color, which should
1406 behave the same as grid color and be settable for a diagram.
1408 * app/diagram.c (diagram_init): Update diagram pagebreak color
1411 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
1414 * app/preferences.[ch]: Default diagram colors now #defines, so
1415 loading can use it. Also, colors are now in NewDiagramData, so
1416 are passed nicely into new diagrams directly from prefs. Yum.
1418 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
1419 Support for loading and saving grid and pagebreak colors with the
1420 diagram. I'm inclined to make all the three Colors in diagram
1421 Color*s instead, so we can tell if they're specified for the
1422 diagram or merely the default setting. There'd be no way for the
1423 user to tell if the color of a diagram is default, though, unless
1424 we add a 'reset to default' button to prefs.
1426 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
1427 pagebreak color. Unsensitizing grid size when dynamic.
1429 * objects/UML/component.c: Patch from Krzysztof Foltman
1430 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
1431 third. Makes the left side connections actually be on the line
1434 2003-08-20 Steffen Macke <sdteffen@web.de>
1436 * lib/libdia.def: added layer_find_closest_object_except
1437 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
1439 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
1443 * app/scroll_tool.c:
1445 * app/disp_callbacks.c:
1446 * app/create_object.h:
1447 * app/create_object.c: Patch from Krzysztof Foltman
1448 <kfoltman@onet.pl>: Middle button can scroll transiently when
1449 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
1453 * sheets/UML.sheet.in:
1454 * sheets/UML/receptacle.xpm:
1455 * sheets/UML/Makefile.am:
1456 * sheets/UML/eventsource.xpm:
1457 * sheets/UML/eventsink.xpm:
1458 * objects/UML/pixmaps/facet.xpm:
1459 * objects/UML/uml.c (dia_plugin_init):
1460 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
1461 * objects/UML/component_feature.c:
1462 Patch from W. Borgert <debacle@debian.org>: Add event sources and
1465 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
1467 * lib/object.h: Turning some comments into doxygen style.
1469 * lib/object_defaults.c (dia_object_defaults_load)
1470 (dia_object_default_get, dia_object_default_create):
1471 Fixing up existing documentation.
1473 * lib/object.h: Doxygen style documentation begun.
1475 * app/create_object.c:
1477 * app/connectionpoint_ops.c:
1478 * app/disp_callbacks.c:
1479 * app/modify_tool.c:
1481 * objects/network/wanlink.c (wanlink_move_handle):
1482 * objects/network/bus.c (bus_move_handle):
1484 * objects/flowchart/parallelogram.c (pgram_move_handle):
1485 * objects/flowchart/ellipse.c (ellipse_move_handle):
1486 * objects/flowchart/diamond.c (diamond_move_handle):
1487 * objects/flowchart/box.c (box_move_handle):
1489 * objects/custom/custom_object.c (custom_move_handle):
1491 * objects/chronogram/chronoref.c (chronoref_move_handle):
1492 * objects/chronogram/chronoline.c (chronoline_move_handle):
1494 * objects/SADT/box.c (sadtbox_move_handle):
1495 * objects/SADT/arrow.c (sadtarrow_move_handle):
1496 * objects/SADT/annotation.c (annotation_move_handle):
1498 * objects/Misc/analog_clock.c (analog_clock_move_handle):
1500 * objects/GRAFCET/vergent.c (vergent_move_handle):
1501 * objects/GRAFCET/vector.c (arc_move_handle):
1502 * objects/GRAFCET/transition.c (transition_move_handle):
1503 * objects/GRAFCET/step.c (step_move_handle):
1504 * objects/GRAFCET/condition.c (condition_move_handle):
1505 * objects/GRAFCET/action.c (action_move_handle):
1507 * objects/FS/function.c:
1508 * objects/FS/flow.c:
1509 * objects/FS/flow-ortho.c (orthflow_move_handle):
1510 * objects/FS/flow-poly.c (flow_move_handle):
1512 * objects/UML/usecase.c (usecase_move_handle):
1513 * objects/UML/state_term.c (state_move_handle):
1514 * objects/UML/state.c (state_move_handle):
1515 * objects/UML/small_package.c (smallpackage_move_handle):
1516 * objects/UML/realizes.c (realizes_move_handle):
1517 * objects/UML/object.c (objet_move_handle):
1518 * objects/UML/note.c (note_move_handle):
1519 * objects/UML/node.c (node_move_handle):
1520 * objects/UML/message.c (message_move_handle):
1521 * objects/UML/lifeline.c (lifeline_move_handle):
1522 * objects/UML/large_package.c (largepackage_move_handle):
1523 * objects/UML/implements.c (implements_move_handle):
1524 * objects/UML/generalization.c (generalization_move_handle):
1525 * objects/UML/fork.c (fork_move_handle):
1526 * objects/UML/dependency.c (dependency_move_handle):
1527 * objects/UML/constraint.c (constraint_move_handle):
1528 * objects/UML/compprop.c (compprop_move_handle):
1529 * objects/UML/component.c (component_move_handle):
1530 * objects/UML/branch.c (branch_move_handle):
1531 * objects/UML/association.c (association_move_handle):
1532 * objects/UML/actor.c (actor_move_handle):
1533 * objects/UML/activity.c (state_move_handle):
1534 * objects/UML/class.c (umlclass_move_handle):
1536 * objects/standard/ellipse.c (ellipse_move_handle):
1537 * objects/standard/zigzagline.c (zigzagline_move_handle):
1538 * objects/standard/textobj.c (textobj_move_handle):
1539 * objects/standard/polyline.c (polyline_move_handle):
1540 * objects/standard/polygon.c (polygon_move_handle):
1541 * objects/standard/line.c (line_move_handle):
1542 * objects/standard/image.c (image_move_handle):
1543 * objects/standard/bezier.c (bezierline_move_handle):
1544 * objects/standard/arc.c (arc_move_handle):
1545 * objects/standard/beziergon.c (beziergon_move_handle):
1546 * objects/standard/box.c (box_move_handle):
1548 * objects/ER/relationship.c (relationship_move_handle):
1549 * objects/ER/participation.c (participation_move_handle):
1550 * objects/ER/entity.c (entity_move_handle):
1551 * objects/ER/attribute.c (attribute_move_handle):
1553 * lib/polyshape.c (polyshape_move_handle):
1555 * lib/orth_conn.c (orthconn_move_handle):
1557 * lib/neworth_conn.c (neworthconn_move_handle):
1558 * lib/neworth_conn.h:
1559 * lib/element.c (element_move_handle):
1561 * lib/connection.c (connection_move_handle):
1563 * lib/beziershape.c (beziershape_move_handle):
1564 * lib/beziershape.h:
1565 * lib/bezier_conn.c (bezierconn_move_handle):
1566 * lib/bezier_conn.h:
1567 *BINARY COMPATIBILITY CHANGE*
1568 Update prototype for *_move_handle() to include connectionpoint,
1569 and also pass on modifiers. Pass in connectionpoint where
1572 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
1573 file connectionpoint.c.
1575 2003-08-17 Danilo Šegan <dsegan@gmx.net>
1577 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
1579 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
1581 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
1583 * lib/beziershape.c (beziershape_update_data): Autoroute
1584 directions for beziershapes!
1586 * lib/connectionpoint.c (find_slope_directions):
1587 * lib/connectionpoint.h: Function for finding the available
1588 directions on a slope.
1590 * lib/polyshape.c: Reasonable directions for
1593 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
1595 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
1596 * objects/GRAFCET/vergent.c (vergent_update_data):
1597 * objects/GRAFCET/transition.c (transition_update_data):
1598 * objects/GRAFCET/action.c (action_update_data):
1599 * objects/GRAFCET/step.c (step_update_data):
1600 * objects/FS/function.c (function_update_data):
1601 * lib/connpoint_line.c (connpointline_putonaline):
1602 * objects/ER/attribute.c (attribute_update_data):
1603 * objects/ER/entity.c (entity_update_data):
1604 * objects/ER/relationship.c (relationship_update_data):
1605 * objects/chronogram/chronoline.c (chronoline_update_data): Set
1606 directions for connection points.
1608 * objects/UML/component.c (component_create): Set to allow
1611 * app/create_object.c (create_object_button_press):
1612 * app/diagram.[ch] (diagram_find_clicked_object_except):
1613 * lib/diagramdata.[ch] (layer_find_closest_object_except):
1614 Avoid parenting to objects you're connecting to (otherwise you
1615 couldn't make a connection out of a parenting object). To do
1616 this, added functions to find the nearest object except a given
1619 * app/render_libart.c: Rearrange libart include to avoid multiple
1620 include program (and put libart includes inside #ifdef!)
1622 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
1624 * lib/dialibartrenderer.c: Don't include art_config.h if others
1625 also do, as it isn't #ifdef'd.
1627 * objects/flowchart/ellipse.c (ellipse_update_data): Add
1628 directions for connection points.
1630 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
1632 * objects/flowchart/box.c (box_update_data): Add directions, use
1634 (box_load): Use g_malloc0.
1636 * lib/Makefile.am (libdia_la_SOURCES):
1637 * lib/connectionpoint.c (connpoint_update):
1638 Function to call to update a connection point info in _update_data().
1640 * lib/connectionpoint.h: Convenience DIR_ macros.
1642 * app/preferences.c (prefs_data): Make pretty formatted XML the
1645 * lib/dialibartrenderer.c:
1646 * app/render_libart.c: Make sure art_config.h is included, cause
1647 some libart headers are broken.
1649 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
1650 after test. Add freetype-config cflags to cflags variable.
1652 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
1654 * app/authors.h: Credits for Krzysztof.
1656 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
1657 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
1658 than the description) is visible in the title of the properties
1659 dialog. That ought to be a short description (translatable),
1660 though we still want long descriptions for the tooltips. Hmmm...
1662 * configure.in: Updated to use AC_LINK_IFELSE instead of
1663 AC_TRY_COMPILE, also force to link to check libs on Solaris.
1665 * objects/ER/entity.c (entity_load):
1666 * objects/ER/attribute.c (attribute_load):
1667 * lib/attributes.c (attributes_set_default_font):
1668 Check if font is non-null before unreffing.
1670 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
1672 * app/diagram.c (diagram_ungroup_selected)
1673 (diagram_group_selected): Use the undo apply to make sure grouping
1674 and ungrouping is done in consistent manners. This removes a fair
1675 amount of duplicated code from diagram.c.
1677 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
1678 (group_objects_revert, group_objects_apply): Working undo/redo for
1679 diagram tree updates. The initial actions still don't quite work.
1681 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
1683 * app/create_object.c (create_object_button_press):
1685 * app/diagram.c: Undo support for parenting. Uses apply/revert in
1686 undo only for manipulating the parent/child relationships. Things
1687 like removing an object doesn't use the undo functions for
1688 parenting, so any updates to come (like to diagramtree) should be
1691 2003-08-03 Hans Breuer <hans@breuer.org>
1693 * app/create_object.c : minor formating and g_new0 for
1696 * lib/bezier_conn.[hc] lib/beziershape.[hc]
1697 lib/prop_geomtypes.c (prop_geomtypes_register)
1698 objects/standard/bezier.c objects/standard/beziergon.c :
1699 ability to set bezpoints via StdProp api
1701 * plug-ins/python/pydia-property.c : convert list of tuples
1704 * plug-ins/python/diasvg_import.py : use it to
1705 implement part of path parsing. Also minor improvements
1706 like inheritance of group attributes to members,
1707 whitespace, title and style:text/css ignoring ;-)
1709 2003-08-02 Hans Breuer <hans@breuer.org>
1711 * lib/connections.c (connection_move_handle): return
1712 something to make it compile
1713 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
1714 must return a value -> dito
1715 [Is there a warnings-as-errors switch we could use with gcc
1716 to avoid such in future ?]
1718 * plug-ins/python/pydia-object.h : define *_Check macros
1719 * plug-ins/python/diamodule.c : provide dia.group_create()
1720 * plug-ins/python/pydia-diagramdata.c : add
1721 DiaDiagramData.add_layer()
1722 * plug-ins/python/pydia-property.c : allow to set color by
1725 * plug-ins/python/diasvg_import.py : based on the above
1726 implement a) group support, b) rgb(1,2,3) color handling,
1727 and somewhat fishy data:image/png;base64 support (create
1728 temporary files from inline image data)
1729 d) dump the import errors as text into an 'Error' layer
1731 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
1732 stray " in draw_rect and corrected error message formating
1734 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
1735 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
1738 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
1740 * app/magnify.c (create_magnify_tool): allocate with g_new0()
1742 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
1743 preferences values (see bug 118570). Also group items into a GtkFrame.
1745 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
1750 * app/commands.c (objects_unparent_children_callback):
1752 * app/diagram.c (diagram_unparent_selected,
1753 (diagram_update_menu_sensitivity):
1754 Added unparenting of single children.
1756 * lib/bezier_conn.c:
1757 * lib/bezier_conn.h:
1758 * lib/beziershape.c:
1759 * lib/beziershape.h:
1765 * lib/neworth_conn.c:
1766 * lib/neworth_conn.h:
1773 * objects/EML/instantiation.c:
1774 * objects/EML/interaction-ortho.c:
1775 * objects/EML/interaction.c:
1776 * objects/EML/process.c:
1777 * objects/ER/attribute.c:
1778 * objects/ER/entity.c:
1779 * objects/ER/participation.c:
1780 * objects/ER/relationship.c:
1781 * objects/FS/flow-ortho.c:
1782 * objects/FS/flow-poly.c:
1783 * objects/FS/flow.c:
1784 * objects/FS/function.c:
1785 * objects/GRAFCET/action.c:
1786 * objects/GRAFCET/condition.c:
1787 * objects/GRAFCET/step.c:
1788 * objects/GRAFCET/transition.c:
1789 * objects/GRAFCET/vector.c:
1790 * objects/GRAFCET/vergent.c:
1791 * objects/Misc/analog_clock.c:
1792 * objects/SADT/annotation.c:
1793 * objects/SADT/arrow.c:
1794 * objects/SADT/box.c:
1795 * objects/UML/activity.c:
1796 * objects/UML/actor.c:
1797 * objects/UML/association.c:
1798 * objects/UML/branch.c:
1799 * objects/UML/class.c:
1800 * objects/UML/classicon.c:
1801 * objects/UML/component.c:
1802 * objects/UML/constraint.c:
1803 * objects/UML/dependency.c:
1804 * objects/UML/fork.c:
1805 * objects/UML/generalization.c:
1806 * objects/UML/implements.c:
1807 * objects/UML/large_package.c:
1808 * objects/UML/lifeline.c:
1809 * objects/UML/message.c:
1810 * objects/UML/node.c:
1811 * objects/UML/note.c:
1812 * objects/UML/object.c:
1813 * objects/UML/realizes.c:
1814 * objects/UML/small_package.c:
1815 * objects/UML/state.c:
1816 * objects/UML/state_term.c:
1817 * objects/UML/usecase.c:
1818 * objects/chronogram/chronoline.c:
1819 * objects/chronogram/chronoref.c:
1820 * objects/custom/custom_object.c:
1821 * objects/flowchart/box.c:
1822 * objects/flowchart/diamond.c:
1823 * objects/flowchart/ellipse.c:
1824 * objects/flowchart/parallelogram.c:
1825 * objects/network/bus.c:
1826 * objects/network/wanlink.c:
1827 * objects/standard/arc.c:
1828 * objects/standard/bezier.c:
1829 * objects/standard/beziergon.c:
1830 * objects/standard/box.c:
1831 * objects/standard/ellipse.c:
1832 * objects/standard/image.c:
1833 * objects/standard/line.c:
1834 * objects/standard/polygon.c:
1835 * objects/standard/polyline.c:
1836 * objects/standard/textobj.c:
1837 * objects/standard/zigzagline.c:
1838 Binary compatibility update: Added return value for foo_move() and
1839 foo_move_handle(). Orthconn derivatives also returns change from
1840 orthconn_move_handle().
1842 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
1843 doesn't support it yet.
1845 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
1846 Add returning ObjectChange from object moves. Needs to handle
1847 multiple object moves.
1849 * app/modify_tool.c (modify_motion, modify_release): Add
1850 ObjectChange from move & move_handle to undo stack.
1852 * objects/EML/instantiation.c (instantiation_move): Removing
1853 duplicate move & update.
1855 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
1857 * plug-ins/xfig/xfig-export.c: Added support for arrow head
1858 export. Many arrow types not supported by XFig, replacing those
1859 with standard arrows. Not sure whether it'd be better to render
1860 them as a group of lines instead. You'd lose the arrow-ness for
1861 further editing, but preserve the actual shape of it. Also added
1862 support for dash length.
1864 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
1866 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
1867 description for version 3.2, for reference.
1869 * plug-ins/xfig/xfig-import.c: Added import of arrows.
1871 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
1872 Align Vertical Adjacent call _v rather than _h.
1874 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
1876 * app/scroll_tool.c (create_scroll_tool):
1877 * app/modify_tool.c (create_modify_tool): use g_new0() to
1880 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
1882 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
1884 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
1886 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
1888 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
1890 * configure.in: Added Belarusian to ALL_LINGUAS.
1892 2003-07-19 Hans Breuer <hans@breuer.org>
1895 Make the xslt plug-in work on win32, too. It appears
1896 to require a quite recent version of libxml and libxslt,
1897 otherwise windoze pathes aren't translated correctly
1898 during file processing
1901 * plug-ins/xslt/xslt.h : #include <glib.h> before
1904 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
1905 the 'script' file finding similar to how it is done
1906 with the python scripts (no need for hardcoded pathes,
1907 removed the 'plugin' part from the path)
1909 * plug-ins/xslt/stylesheets.xml : added again. It does
1910 not have any path but only the pure filename again
1912 * plug-ins/xslt/stylesheets.xml.in : removed
1914 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
1915 rule to process stylesheets.xml.in
1917 * plug-ins/makefile.msc : added xslt
1919 2003-07-19 Hans Breuer <hans@breuer.org>
1921 Finally Dia learned to remember the recent selected sheet
1923 * app/preferences.[hc] : added prefs.recent_sheet
1924 * app/interface.c : restore and remember the sheet-option-menu
1925 history, but only if the respective number is stiil available.
1926 This additional adds robustness against running Dia without
1927 any sheet (e.g. installation problems)
1928 * app/app_procs.c : call prefs_safe() in app_exit() to remember
1929 changes which are not done by the prefernces dialog
1931 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
1932 removed every call (especially the conditional ones) to prefs_safe().
1933 Before prefs_safe() was called _many_ times during Dia startup
1935 2003-07-18 Hans Breuer <hans@breuer.org>
1937 * app/makefile.msc lib/makefile.msc lib/libdia.def :
1940 * lib/color.c : use gtk_widget_get_default_visual();
1941 as suggested in #114536
1943 * app/interface.c app/disp_callbacks.c :
1944 moved round_up () to the latter file where it is used
1946 * app/linewidth_area.c : #include "interface.h" for
1947 interface_get_toolbox_shell()
1949 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
1951 * plug-ins/pixbuf/.cvsignore
1952 * shapes/Cisco/.cvsignore:
1955 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
1957 * app/dia-props.c (diagram_properties_retrieve): Use
1958 diagram_get_name() to add the diagram name to the diagram
1962 * app/diagram.c (diagram_get_name): New function to get a
1963 reasonable diagram name.
1965 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
1966 info. Still need to be able to set dynamic grid. Also ought to
1967 follow Gnome style and have instant apply.
1969 * app/preferences.h:
1970 * app/preferences.c (prefs_data): Remove option to use stippled
1971 grid, add option for major line offset. Default to 5 minor lines
1973 Add option for dynamically sized grid.
1975 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
1977 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
1978 stippled/solid to display minor/major grid lines. Line drawing in
1979 separate functions away from calculating line distance.
1981 * app/grid.h: Split page break drawing out of grid_draw.
1983 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
1984 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
1985 when menu item is selected.
1987 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
1989 * configure.in: Removed -Winline flag to make way for important
1992 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
1993 non-compressed. Should fix bug #117381, also look prettier.
1996 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
1997 Set up desktop info more properly.
1999 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
2016 Autorouting directions patch from Krzysztof Foltman
2019 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
2020 GNOME parent menu items.
2022 * app/authors.h: Added Vadim to contributors list.
2024 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
2026 * app/commands.[ch]:
2027 * app/create_object.c:
2028 * app/disp_callbacks.[ch]:
2039 * objects/UML/large_package.c: Patch from Vadim Berezniker
2040 <vadim@berezniker.com>:
2041 Objects may "parent" other objects, i.e. contain them within
2042 themselves, restrain them and move them along. Some more stuff is
2043 needed, such as selection and individual unparenting. This adds
2044 parenting to UML - Large Package rather than Box.
2046 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
2048 * app/linewidth_area.c: Patch from Krzysztof Foltman
2049 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
2050 conform more, at least:).
2052 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
2053 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
2054 arcs. Implemented images (though there is some pixelization and
2055 banding in the output). Changed output file format to be a little
2058 * app/app_procs.c (app_exit): Added message for double exit, which
2059 shouldn't happen any more. Also preventing strange g_object_unref
2060 messages by having a printf after gtk_main_quit. This is really
2063 * app/interface.c (toolbox_delete): Avoid double app_exit call by
2064 removing handler for destroy when delete is called.
2066 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
2069 * app/display.c (ddisplay_scroll_to_object,
2070 ddisplay_scroll_center_point): New function for easy scrolling to
2073 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
2075 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
2076 $(srcdir) on stylesheets.xml.
2078 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
2079 diagram menus (since they're at the top by default now). Also
2080 move the Properties... menu item from Dialogs to Objects. Dialogs
2081 menu should disappear at some point.
2083 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
2084 ./configure from ./autogen.sh, as configure may need to be run
2085 from a different directory. (Also more standard this way.)
2087 * app/app_procs.c (app_init):
2088 * app/Makefile.am (INCLUDES): Gnome standardization patch from
2091 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
2093 * objects/flowchart/parallelogram.c (pgram_update_data):
2094 Left/right alignment for parallelograms. Doesn't use all
2095 available space, but then pgrams also ignore their shear value.
2096 This thing needs a loving hand.
2098 2003-07-01 Hans Breuer <hans@breuer.org>
2100 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
2101 * lib/proplist.c : don't complain if optional attr is missing
2102 * lib/orth_conn.h : make "orth_autoroute" optional to
2103 stop complaining with older files.
2105 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
2107 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
2109 2003-06-05 Andrew Halper <ashalper@cox.net>
2111 * app/diagram_tree.c : add scrolling of drawing area
2112 to desired object on "Locate". Patch modified to use new ddisplay
2113 function ddisplay_scroll_to_object().
2115 2003-06-11 Lars Clausen <lars@raeder.dk>
2117 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
2118 info. Before next version, the grid dialog (view dialog, really)
2119 must be redone to allow a) instant apply, b) apply to all
2120 diagrams, and c) setting colour, dynamic, major lines.
2122 * app/preferences.h:
2123 * app/preferences.c (prefs_data): Remove option to use stippled
2124 grid, add option for major line offset. Default to 5 minor lines
2126 Add option for dynamically sized grid.
2128 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
2130 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
2131 stippled/solid to display minor/major grid lines. Line drawing in
2132 separate function away from calculating line distance.
2134 * app/grid.h: Split page break drawing out of grid_draw.
2136 2003-05-15 Hans Breuer <hans@breuer.org>
2138 * plug-ins/python/diasvg.py : add xlink definition,
2139 also avoid to put spaces into attribute values. At least
2140 Sodipodi doesn't like them in width/height attributes
2142 * plug-ins/python/diasvg_import.py : add simple scaling.
2143 Some (more) handling for <svg>, <desc>, <circle>
2145 * plug-ins/python/scascale.py : (new file) which does
2146 some experimental scaling via StdProp api
2148 * plug-ins/python/pydia-cpoint.c
2149 plug-ins/python/pydia-handle.c : return PyDiaPoint for
2150 obj.pos not simple tuples. PyDiaPoint has a tuple interface
2151 so this may even be api compatible ...
2153 2003-05-11 Hans Breuer <hans@breuer.org>
2155 * app/line_area.c : add window position persitence
2157 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
2158 'poly_points' via StdProp api
2159 * lib/neworth_conn.h : don't rely on OrthConn and
2160 NewOrtConn having the same struct offsets
2162 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
2163 to help separating 'useful' properies - in terms of
2166 * objects/custom/custom_object.c
2168 add the missing prop_desc_list_calculate_quarks to
2169 all the *_describe_props()
2171 * objects/standard/beziergon.c objects/standard/bezier.c :
2172 explicit initializtion of default_user_data
2173 * objects/standard/polygon.c objects/standard/polyline.c :
2174 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
2176 * plug-ins/python/diamodule.c : implement dia.register_import
2178 * plug-ins/python/makefile.msc : need to link with Pango
2179 for pango_color_parse()
2181 * plug-ins/python/pydia-property.c : add a bunch of type
2182 conversions to PyDiaProperty_ApllyToObject()
2184 * plug-ins/python/diasvg_import.py : (new file) which currently
2185 is mainly a stress test for PyDia but for some files already
2186 produces better results than svg-import.c
2188 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
2190 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
2191 type-less operations.
2193 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
2195 * configure.in(ALL_LINGUAS): Added "ms".
2197 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
2199 * plug-ins/xslt/xslt.c (xslt_ok):
2200 * plug-ins/shape/shape-export.c (new_shape_renderer):
2201 * plug-ins/svg/render_svg.c (new_svg_renderer):
2202 * plug-ins/hpgl/hpgl.c (export_data):
2203 * plug-ins/dxf/dxf-export.c (export_dxf):
2204 * plug-ins/metapost/render_metapost.c (export_metapost):
2205 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
2206 * plug-ins/xfig/xfig-export.c (export_fig):
2207 * plug-ins/wpg/wpg.c (export_data):
2208 * plug-ins/cgm/cgm.c (export_cgm):
2209 * app/render_eps.c (export_eps):
2210 * app/export_png.c (export_png_ok):
2211 * app/load_save.c (diagram_data_save): Adding and standardizing
2212 output file error messages to include fopen error message.
2214 2003-05-01 Steffen Macke <sdteffen@web.de>
2216 * app/persistence.c: do not use unistd.h for MSVC build
2218 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
2220 * sheets/Assorted.sheet.in
2221 * sheets/Circuit.sheet.in
2222 * sheets/Contact.sheet.in
2223 * sheets/EML.sheet.in
2224 * sheets/ER.sheet.in
2225 * sheets/Electric.sheet.in
2226 * sheets/FS.sheet.in
2227 * sheets/Flowchart.sheet.in
2228 * sheets/GRAFCET.sheet.in
2229 * sheets/Logic.sheet.in
2230 * sheets/MSE.sheet.in
2231 * sheets/Misc.sheet.in
2232 * sheets/Pneumatic.sheet.in
2233 * sheets/SADT.sheet.in
2234 * sheets/SDL.sheet.in
2235 * sheets/UML.sheet.in
2236 * sheets/chronogram.sheet.in
2237 * sheets/ciscohub.sheet.in
2238 * sheets/ciscomisc.sheet.in
2239 * sheets/cisconetwork.sheet.in
2240 * sheets/ciscorouter.sheet.in
2241 * sheets/civil.sheet.in
2242 * sheets/network.sheet.in
2243 * sheets/sybase.sheet.in:
2244 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
2245 standardizes shape descriptions to use no articles, no 'create
2248 * app/interface.c (tool_data): Standard objects follow same
2251 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
2253 * app/color_area.c (color_area_edit): More informative title on
2254 color selection dialog.
2256 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
2257 sensitivity when dropping object in. Also reset tool to pointer.
2259 * objects/flowchart/diamond.c (diamond_update_data):
2260 * objects/flowchart/parallelogram.c (pgram_update_data): Added
2261 left and right alignment options.
2263 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
2265 * objects/flowchart/box.c: Added left and right alignment options.
2267 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
2269 * app/persistence.c (persistence_load): Test existence of
2270 persistence file before trying to open it.
2272 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
2274 * app/properties.c: Escape now closes properties dialogs.
2276 2003-04-25 Hans Breuer <hans@breuer.org>
2278 * app/config.h.win32 : bump version to 0.91+cvs
2280 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
2282 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
2284 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
2287 * app/presistence.c : need to #include "dia_xml_libxml.h"
2290 * app/layer_dialog.c : make delayed creation work by protecting
2291 all non static layer_dialog_*() with :
2292 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
2293 create_layer_dialog();
2294 * app/app_procs.c : removed /* create_layer_dialog(); */
2296 * objects/uml/association.c : give it a minimal StdProp
2297 implementation to fix bug #108896
2298 * lib/object_defaults.c : don't try to copy props if there
2299 is no obj->ops->describe_props
2301 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
2303 * objects/standard/image.c (image_create):
2304 * objects/standard/ellipse.c (ellipse_create):
2305 * objects/standard/box.c (box_create):
2306 * objects/flowchart/ellipse.c (ellipse_create):
2307 * objects/flowchart/diamond.c (diamond_create):
2308 * objects/flowchart/box.c (box_create):
2309 * objects/custom/custom_object.c (custom_create):
2310 * objects/ER/relationship.c (relationship_create):
2311 * objects/ER/entity.c (entity_create):
2312 * objects/ER/attribute.c (attribute_create): Initialize
2313 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
2315 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
2319 * plug-ins/Makefile.am:
2320 * plug-ins/xslt/Makefile.am:
2321 * plug-ins/xslt/xslt.c (dia_plugin_init):
2322 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
2323 automake-style if to only include xslt dir when needed. Works
2324 with automake 1.4 and up, at least.
2326 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
2328 * lib/diasvgrenderer.c (draw_string):
2329 * lib/dia_svg.c (dia_svg_parse_style): Use
2330 text-anchor:(start|middle|end).
2332 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
2333 polygon rather than polyline & avoid missing line pieces.
2334 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
2335 black-filled things.
2337 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
2339 * app/persistence.c (persistence_load): Check that persistence
2340 file exists before trying to read it.
2341 (persistence_update_window): Removed printf.
2343 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
2345 * lib/autoroute.c: Take badness into the layouters again, as some
2346 of them know they can do things that are pretty but would be
2347 counted as ugly by the default calculation.
2349 * objects/UML/large_package.c: Shrink package name box when no
2350 stereotype is present.
2352 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
2353 * lib/orth_conn.c: Added object menu item for autorouting.
2355 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
2356 Autorouting, plus set initial dragging handle to be the end, not
2358 (orthflow_draw): Flipped arrow place to be at the end, as
2359 originally intended (got lost in arrow update).
2361 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
2362 * objects/UML/dependency.c (dependency_get_object_menu):
2363 * objects/UML/association.c (association_get_object_menu):
2364 * objects/UML/realizes.c (realizes_get_object_menu):
2365 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
2366 * objects/GRAFCET/vector.c (arc_get_object_menu):
2367 * objects/ER/participation.c (participation_get_object_menu):
2368 * objects/EML/instantiation.c (instantiation_get_object_menu):
2369 * objects/UML/generalization.c (generalization_get_object_menu):
2370 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
2371 Autorouting setup (currently disabled for SADT/arrow).
2373 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
2375 * lib/autoroute.c: Removed printfs.
2378 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
2379 non-connected orthconns too.
2381 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
2384 * lib/orth_conn.c: Function to set autorouting on/off, use
2385 autorouting in move_handle (turns off when a middle handle is
2386 moved), added to standard orthconn props.
2388 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
2389 Stopped signal emission for check menu items being set to on/off.
2391 * objects/standard/zigzagline.c: Added autorouting object menu item.
2393 * lib/autoroute.c: Added last cases of autoroute layout, fixed
2394 floating point comparison bug, cleaned up layouters, tweaked
2395 badness to allow kinks.
2397 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
2399 * lib/connectionpoint.h: Changed DIR_* macros to go around the
2402 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
2404 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
2405 old cruft, added call to autoroute (currently cannot be turned
2406 off). Need to check what undo thinks about this.
2407 * lib/autoroute.[ch]: Fairly working simple layout.
2409 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
2410 * lib/autoroute.[ch]: Start of proper autorouting functionality.
2412 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
2414 * lib/prop_widgets.c: Show labels on ListProp.
2416 2003-04-11 Steffen Macke <sdteffen@web.de>
2418 * doc/en/dia-manual.xml: removed reference of non-existing authors
2420 * doc/en/usage-objects-selecting: commented out misleading section
2423 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
2425 * app/app_procs.c (app_init): Layer window now opened at startup
2428 * lib/prop_widgets.c: Show labels on ListProp.
2430 2003-04-09 Steffen Macke <sdteffen@web.de>
2432 * doc/en/*.sgml: removed files
2433 * doc/en/*.xml: added files
2434 * doc/en/Makefile.am: switched to XML DocBook
2436 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
2438 * plug-ins/xslt/xslt.c (dia_plugin_init):
2439 * configure.in: Added --with-xslt-prefix to allow other XSLT
2440 placements than /usr/lib.
2442 2003-04-09 Steffen Macke <sdteffen@web.de>
2444 * lib/makefile.mingw: updated to include latest files, including
2446 * lib/geometry.h: don't define isinf and finite for mingw gcc build
2448 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
2450 * app/persistence.h:
2451 * app/persistence.c (persistence_register_window_create):
2452 * app/app_procs.c (app_init):
2453 Register window function that doesn't create the window unless it
2454 should be open. Other windows should move to this, so startup
2455 speed can be reduced.
2457 * app/persistence.h: Removed call prototype for update_window, now
2459 * app/persistence.c (persistence_register_window): A number of
2460 fixes. Doesn't forget position when window is closed. Now
2461 actually loads prefs.
2463 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
2466 * app/preferences.c (prefs_data):
2467 * app/diagram_tree_window.h:
2468 * app/diagram_tree_window.c: Added persistence registering.
2469 Removed prefs items storing size and openness.
2471 * app/sheets_dialog.c (create_sheets_main_dialog): Added
2472 persistence registering.
2474 * app/Makefile.am (dia_core_files): Added persistence files.
2477 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
2478 that dirs are present.
2480 * app/app_procs.c (app_init): Loads persistent values on startup.
2481 (app_exit): Saves persistent values on exit.
2483 * app/layer_dialog.c (create_layer_dialog): Registers the layer
2484 window for persistence.
2486 * app/persistence.[ch]: New files handling various kinds of
2489 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
2491 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
2492 head spacing calculations. Added half-circle arrow from Matthieu
2493 Sozeau <mattam@netcourrier.com>
2495 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
2497 * app/app_procs.c (app_init): Moved layer dialog init to allow
2498 tooltips to be initialized.
2500 * app/interface.c (create_display_shell): More tooltips.
2502 * app/linewidth_area.c (linewidth_area_create)
2503 (linewidth_area_events):
2504 * app/color_area.c (color_area_events, color_area_create):
2505 Made tooltips work by embedding drawing_area in event_box.
2507 * app/interface.c (create_display_shell,
2508 (create_lineprops_area, create_color_area): Added a few tooltips.
2510 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
2512 * app/pixmaps/off-grid.xpm:
2513 * app/pixmaps/on-grid.xpm:
2514 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
2517 * app/commands.c (view_snap_to_grid_callback):
2518 * app/display.c (ddisplay_set_snap_to_grid)
2519 (update_snap_grid_status):
2520 * app/interface.c (create_display_shell, grid_toggle_snap):
2521 Added snap-to-grid status button.
2523 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
2525 * app/app_procs.c (app_init): Create a new diagram if a file on
2526 the command line isn't found.
2528 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
2530 * lib/dialibartrenderer.c (draw_string): Correct color handling
2533 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
2536 * doc/en/dia-manual.sgml:
2537 * doc/pl/dia-manual.sgml:
2539 * dia.spec (Release):
2540 Version 0.91 is here!
2542 2003-02-10 Steffen Macke <sdteffen@web.de>
2544 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
2545 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
2546 non-ANSI characters, closes #107980
2548 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
2552 * dia.spec (Release):
2553 * doc/en/dia-manual.sgml: Upping to pre6.
2555 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
2557 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
2558 #107511: Make arrow selector for correct arrow type.
2560 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
2562 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
2565 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
2567 * doc/en/dia-manual.sgml:
2570 * dia.spec (Release): Upping to pre5.
2572 * configure.in: Add freetype-config derived libs to the
2573 AC_CHECK_LIB statement for freetype.
2575 2003-02-28 Hans Breuer <hans@breuer.org>
2577 [fix for bug #107203]
2579 * lib/diarenderer.c : add warning 'implementation'
2580 for fill_rect to avoid crashing with a renderer
2581 which does not implement this required function.
2583 * plug-ins/dxf/dxf-export.c : provide - still empty -
2584 'implementations' for fill_rect and fill_polygon
2585 to suppress the above warnings. Now it works like
2588 2003-02-28 Steffen Macke <sdteffen@web.de>
2590 * samples/all_objects.dia: New sheet containing all dia shapes
2591 and objects; one layer per sheet
2593 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
2595 * lib/prop_text.c (multistringprop_get_widget,
2596 multistringprop_reset_widget, multistringprop_set_from_widget):
2597 Now uses GtkTextView instead of deprecated stuff, and also works:)
2599 * configure.in: Slightly more informative error message for isinf.
2601 * dia.spec (Requires): Require libxml2 rather than libxml.
2603 2003-02-28 Steffen Macke <sdteffen@web.de>
2605 * shapes/Circuit/hjumper.png:
2606 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
2609 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
2611 * doc/en/dia-manual.sgml:
2613 * dia.spec (Release):
2614 * NEWS: New prerelease 0.91pre4, two important fixes.
2616 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
2618 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
2621 * app/commands.c (help_manual_callback): More correct URL for help
2622 page (include file://, was broken on Dillo without it).
2624 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
2626 * app/disp_callbacks.c: Set modifed when text is changed.
2628 * app/modify_tool.c (modify_button_release): Allow undo for moving
2631 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
2634 * doc/en/dia-manual.sgml:
2636 * configure.in: New prerelease with important bugfix.
2637 * shapes/network/digitizing_board.png:
2638 * shapes/network/plotter.png: Re-adding with -kb.
2640 2003-02-17 Abel Cheung <maddog@linux.org.hk>
2642 * app/app_procs.c (app_init): Add comment for translators.
2644 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
2646 * lib/filter.c (filter_register_import, filter_register_export):
2647 Don't accept filters with NULL description.
2649 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
2650 (as we assume the description is available in other places).
2652 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
2654 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
2655 * app/display.c (ddisplay_resize_canvas): Use
2656 ddisplay_add_update_all().
2657 (ddisplay_add_update_all): Free display and update lists when
2658 doing update_all, as they'll be regenerated immediately to cover
2659 all visible area. Fixes bug #106165, crash when resizing. This
2660 appears to be the original AA crash bug, believed long extinct.
2662 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
2664 * app/commands.c (help_manual_callback): Use file: protocol for
2667 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
2669 * plug-ins/xslt/stylesheets: Removed old-style config file.
2671 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
2673 * plug-ins/xslt/Makefile.am:
2674 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
2675 handling (no more DIA_PLUGIN_PATH).
2677 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
2679 * plug-ins/svg/render_svg.c:
2680 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
2682 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
2684 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
2685 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
2686 side of the triangle is longer than the hypotenuse. Rounding
2689 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
2693 * doc/en/dia-manual.sgml: Update for pre2.
2695 * app/menus.c (display_menu_items): Fixed wrongly place separators.
2697 * objects/flowchart/box.c (box_update_data): Applied patch from
2698 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
2701 * app/paginate_psprint.c (print_page): Set paper name, so it
2702 convinces ps printers to use to right size.
2704 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
2706 * app/properties.c (properties_show): Hide the dialog if the
2707 object is NULL (get rid of 'no properties' randomly popping up).
2709 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
2711 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
2712 for diagrams not starting at origo.
2714 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
2716 * dia.spec (BuildRequires): Use libxml2-devel.
2718 * plug-ins/pixbuf/Makefile.am: Added to CVS.
2720 * RELEASE-PROCESS: Note on RPM version numbers.
2722 * app/interface.c (create_display_shell): Don't set as toolbar
2723 under Unix, either. Especially not the diagram shell. It removes
2724 it from the taskbar and makes it unresizable, always-on-top with
2725 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
2726 appropriate thing, UTILITY, is not good either, you lose resizing
2727 and minimizing/maximizing under OpenBox.
2729 * app/menus.c (display_menu_items): Set delete item to use Delete.
2731 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
2733 * dia.spec (BuildRequires, Requires): Updated for Gtk2
2736 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
2737 display flush when getting focus in, or we may get an update after
2738 the diagram has been destroyed in some cases. Fixes bug #105221.
2740 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
2742 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
2744 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
2745 - gnome-compiled Dia will now read files specified on the command line.
2747 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
2749 * INSTALL (REQUIREMENTS): Updated requirements section.
2751 * configure.in: Better finite() check from Mårten Svantesson
2752 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
2755 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
2757 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
2759 * app/app_procs.c (debug_break): Added some code to avoid
2760 over-eager optimizations removing the call. Surely there's a
2761 nicer way, but I'm not sure how.
2763 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
2764 that set text to black.
2766 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
2768 * NEWS: Mention of Twiki as doc source for Python.
2770 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
2771 libart/libpng is not available. Later when we have a way of
2772 letting the user pick options in the file select dialog we shall
2773 allow the choice when applicable.
2775 2003-02-02 Steffen Macke <sdteffen@web.de>
2777 * doc/en/usage-loadsave.sgml:
2778 * doc/en/usage-objects.sgml: patch from
2779 James K. Lowden <jklowden@schemamania.org> to fix
2782 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
2784 * plug-ins/Makefile.am (SUBDIRS):
2785 * plug-ins/pixbuf/pixbuf.c:
2786 * plug-ins/pixbuf/Makefile.am:
2788 Added pixbuf plugin to Makefile.am, but for import only. PNG
2789 export handled by libart, which is better. JPG export is
2790 discouraged. BMP is not much used on Unix. Next release will
2791 integrate libart to allow all outputs.
2793 2003-02-01 Hans Breuer <hans@breuer.org>
2795 * app/preferences.c :
2797 the last two dialogs with 'old' button order finally
2798 are converted to gtk2, no GnomeDialog in all of Dia
2801 2003-02-01 Hans Breuer <hans@breuer.org>
2803 * app/filedlg.c : don't try to use a button as
2804 'overwrite-file-dialog'-parent, use the FileSelDialog
2807 * plug-ins/pixbuf/pixbuf.c : make it work with
2808 system-visual-depth < 24. Remove 'bmp' from output
2809 format extensions, it just was wishful thinking.
2811 * plug-ins/python/Makefile.am : added the four new python
2812 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
2814 2003-02-01 Hans Breuer <hans@breuer.org>
2816 * NEWS : updated content beside dependencies
2818 2003-02-01 Hans Breuer <hans@breuer.org>
2820 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
2821 to make it useable across DLL boundaries
2822 * app/lineprops_area.c : same code to access arrow_types
2825 * objects/UML/class.c : the non empty string is e.g.
2826 comment != NULL && comment[0] != '\0'
2827 * objects/UML/uml.c : same here, don't bother with
2828 empty operation stereotypes
2830 2003-02-01 Steffen Macke <sdteffen@web.de>
2832 * app/lineprops_area.c: latest changes do not work on
2833 windows, using old code without tooltips
2834 * makefile.msc: fixed copying of wmf.dll
2835 * plug-ins/makefile.msc:
2837 * lib/makefile.msc: now linking libintl
2838 * config.h.win32: enabling native language support
2840 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
2842 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
2843 -ldl and -lglib. May or may not work on windows...awaiting verdict.
2845 2003-01-31 Daniel Yacob <locales@geez.org>
2847 * configure.in: Added am (Amharic) to ALL_LINGUAS.
2849 2003-01-31 Steffen Macke <sdteffen@web.de>
2851 * objects/UML/class.c (umlclass_calculate_data): fixed crash
2852 when comments were visible, no class comment available and
2855 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
2857 * RELEASE-PROCESS: Updated to fit new install-module syntax.
2858 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
2861 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
2867 Prerelease version changes, version 0.91-pre1.
2869 * app/sheets_dialog_callbacks.h:
2870 * app/sheets_dialog_callbacks.c:
2871 * app/sheets_dialog.c (create_sheets_main_dialog):
2872 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
2873 to handle destruction of main dialog cleanly, but it's a mess.
2875 * configure.in: Downgraded ieeefp test to make it not produce
2878 * lib/widgets.c (dia_arrow_selector_set_arrow):
2879 (dia_line_style_selector_set_linestyle): Select menu dot
2882 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
2883 adjustment for diamondheads.
2885 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
2887 * app/properties.c (create_dialog): Destroy properties dialog and
2890 * app/sheets_dialog_callbacks.c
2891 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
2892 if the old one is destroyed.
2894 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
2896 * app/export_png.c (export_png_ok): Added info on resolution.
2897 Should (next release) improve export dialog to allow setting
2898 resolution instead of pixels.
2900 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
2901 to generate arrowheads as well as tooltips.
2903 * lib/arrows.c: Added hollow diamond to menudesc list.
2906 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
2907 unify with rendered menu.
2909 * lib/diarenderer.c (draw_line_with_arrows)
2910 (draw_polyline_with_arrows, draw_arc_with_arrows)
2911 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
2912 without changing renderer API. Thanks to David Scherba for
2913 providing inspiration.
2915 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
2917 * app/interface.c (create_display_shell):
2918 * app/display.h: Patching from Hubert Figuiere
2919 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
2922 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
2924 * app/defaults.c (defaults_show): Fixed defaults closing bug.
2925 Thanks to Hans for pointing it out.
2927 2003-01-25 Hans Breuer <hans@breuer.org>
2929 * app/commands.c : don't warn about crashing libart renderer
2930 on win32. It simply doesn't render text anymore :-(
2932 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
2934 * objects/UML/class.c : don't access umlclass->properties_dialog
2935 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
2936 which sets the former to NULL by destroy_properties_dialog() callback.
2938 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
2940 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
2942 * plug-ins/python/pydia-image.c : add image.uri member
2943 not only useful for SVG rendering
2945 * plug-ins/python/diasvg.py : (new file) a more advanced
2946 example. A full blown SVG Renderer, currently only
2947 registered for .svgz
2949 * plug-ins/python/export-object.py : write text props
2951 * plug-ins/python/debug_objects.py : write prop.type and
2954 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
2956 * objects/UML/association.c (association_update_data): Better
2957 bounding box for assoc with arrows.
2959 * lib/properties.h: New flag for properties with multiple values
2962 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
2963 arrow updating in dialog. Was broken due to changes from destroy
2966 * app/commands.c (view_aa_callback): AA warning only for Windows
2967 -- I trust the Unix side well enough.
2969 * app/render_libart.c (get_text_width):
2970 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
2971 font height can be taken from parent instance.
2973 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
2974 (get_text_width): Proper cursor positioning for libart renderer.
2975 Ought to have a DiaInteractiveRenderer that these two can inherit
2976 from, that knows about transform.
2978 2003-01-25 Steffen Macke <sdteffen@web.de>
2980 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
2981 plug-in still not working on win32
2983 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
2985 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
2986 gdk_window_get_pointer to avoid destroy crash. Simpler than I
2989 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
2991 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
2992 bail out on gtk options.
2994 * lib/message.c (gtk_message_internal): Better handling of destroy
2997 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
2999 * app/color_area.c (color_area_edit):
3000 * lib/widgets.c (dia_file_selector_browse_pressed)
3001 (dia_color_selector_pressed):
3002 * app/plugin-manager.c (get_plugin_manager):
3003 * app/filedlg.c (file_open_callback, file_save_as_callback)
3004 (file_export_callback):
3005 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
3006 handling of destroy event.
3008 2003-01-22 Alan Horkan <horkana@tcd.ie>
3010 * app/commands.c (file_new_callback): Changed Untitled to Diagram
3013 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
3015 * app/preferences.c (prefs_create_dialog):
3016 * app/linewidth_area.c (linewidth_create_dialog):
3017 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
3018 * app/layer_dialog.c (create_layer_dialog)
3019 (layer_dialog_edit_layer): Correct handling of destroy signal.
3021 * app/diapsft2renderer.c (set_font): Adjust silly random factor
3022 for change in font.c
3024 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
3026 * lib/font.c (dia_font_build_layout): Let's all use the same weird
3029 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
3030 * app/layer_dialog.c (create_layer_dialog)
3031 (layer_dialog_edit_layer):
3032 * app/filedlg.c (file_open_callback, file_save_as_callback)
3033 (file_export_callback):
3034 * app/dia-props.c (create_diagram_properties_dialog):
3035 * app/defaults.c (defaults_dialog_destroyed):
3036 * app/color_area.c (color_area_edit): Dialog destroy event handling.
3038 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
3040 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
3041 defaults dialog destroyed.
3043 2003-01-19 Steffen Macke <sdteffen@web.de>
3045 * objects/makefile.msc: added bondgraph
3046 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
3047 to compile pixbuf.dll
3048 * makefile.msc: copying all objects and dlls now
3050 2003-01-19 Hans Breuer <hans@breuer.org>
3052 * app/diagram.[hc] : provide dia_open_diagrams(), make
3053 open_diagrams variable static
3054 * app/dia.def : export it (to be used by PyDia)
3055 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
3056 app/display.c app/dynamic_refresh.c app/layer_dialog.c
3057 app/load_save.c : make use of dia_open_diagrams()
3059 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
3060 on win32. It removes the diagram window from the taskbar and
3061 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
3063 * app/menus.c : add '...' to menu entries where a dialog
3065 * app/recent_files.c app/dia_embedd.c : reflect the above in
3066 menus_get_item_from_path() calls
3068 * lib/libdia.def : add dia_image_rgba_data
3070 * lib/properties.h lib/prop_text.[hc] : add new property
3072 * objects/UML/class.[hc] object/UML/class_dialog.c : use
3073 StringList for attributes_strings and operations_strings to
3074 make this calculated data accessible via the Property API
3076 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
3077 provide dia.new() to create a new diagram, dia.registered_types()
3078 to get on Dia's type registry, dia.message() for simple dialogs
3080 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
3081 to create a new display from a diagram. Let diagram.extents and
3082 diagram.bg_color return the same types as in diagramdata.*
3084 * plug-ins/python/pydia-geometry.c : add a read-only
3085 'sequence interface' to DiaPoint and DiaRectangle
3087 * plug-ins/python/pydia-property.c : allow to get on StringList
3090 * plug-ins/python/pydia-render.c : fix typo to make it compile
3092 * plug-ins/python/python-startup.py : removed 'import pygtk'
3093 again. This file does not need any gtk UI, and some python
3094 plug-ins don't do either
3096 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
3097 it should actually work as intended again
3099 * plug-ins/python/group_props.py : (new file) a prototype for
3100 one the most requested features: Change properties of selected
3101 objects in one step. Requires pygtk.
3103 * plug-ins/python/select_by.py : (new file) select objects by
3104 common properties. Requires pygtk.
3106 [Start of 'PyDia Self Documentation Series']
3108 * plug-ins/python/pydiadoc.py : (new file) generates a new
3109 diagram which contains all objects of dir(dia)
3111 * plug-ins/python/otypes.py : (new file) generates a new diagram
3112 which contains all the currently registered object types sorted
3113 by their containing package
3115 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
3117 * configure.in: Added check for Pango >= 1.1.5, which appears to
3118 be enough to have text work.
3119 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
3120 do it. AC_SUBST should be idempotent, though.
3122 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
3124 * configure.in (HAVE_FREETYPE): Better test for freetype version
3126 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
3128 * lib/font.c: Renamed global_size_one to global_zoom_factor to
3129 avoid confusion, and added comment. Set scale factor in
3130 dia_font_build_layout to 1.0 for Unix side. This fixes at least
3131 my weird scaling problems. Fonts are now of the expectable size,
3132 i.e. the space between lines at size 1.0 is 1.0. If we want a
3133 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
3134 diagrams, though there will always be differences.
3136 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
3138 * plug-ins/python/python-startup.py:
3139 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
3141 * plug-ins/python/python.c (dia_plugin_init): Added warning
3142 message for missing startup file.
3144 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
3146 * lib/dia_image.c (dia_image_rgb_data):
3147 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
3148 involving EPS. Can't do transparency in EPS yet.
3151 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
3152 data as one chunk. Documentation for the RGB data getting funcs.
3153 (dia_image_rgb_data): Added comment.
3155 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
3158 2003-01-13 Steffen Macke <sdteffen@web.de>
3160 * lib/dia_image.c: dia_image_rgb_data() is working for
3161 non-alpha images now. Fixes #93762
3162 * Makefile.am: added makefile.msc to EXTRA_DIST
3164 2003-01-10 Steffen Macke <sdteffen@web.de>
3166 * app/paginate_psprint.c: Closing print dialog when file
3167 could not be written. Fixes #84746
3169 2003-01-04 Steffen Macke <sdteffen@web.de>
3171 * doc/custom-shapes: incomplete description of <svg:text>
3173 2003-01-03 Steffen Macke <sdteffen@web.de>
3175 * makefile.msc(new): new makefile to create file
3176 structure suitable for running dia win32 under
3177 $(TOP)/dia/build/win32
3179 2003-01-02 Steffen Macke <sdteffen@web.de>
3181 * lib/dia_svg.c: including stdlib.h
3182 * lib/makefile.msc: added gdk_pixbuf libs to linker
3183 * app/makefile.msc: added gdk_pixbuf libs, made libart
3184 libs compatible with gnuwin32 package
3186 2003-01-01 Hans Breuer <hans@breuer.org>
3188 * lib/font.c : more comment about global_size_one
3190 * app/menus.c : <control>[<shift>]A for plain gtk build too.
3192 * plug-ins/wmf/wmf.cpp : some type juggling to make
3195 2002-12-31 Steffen Macke <sdteffen@web.de>
3197 * app/makefile.msc: added hint on how to enable console output
3199 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
3201 * objects/standard/textobj.c (textobj_load): Get the handle type
3202 right, at least to be the same as when created.
3204 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
3206 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
3208 2002-12-08 Hans Breuer <hans@breuer.org>
3210 * app/commands.c : fixed bug #85315 'give diagram properties,
3211 instead of no object selected error' almost a one-liner
3213 * app/splash.c : don't make having the logo pixmap
3214 mandatory. Fixes bug #96068.
3216 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
3217 sequence by connecting to the "delete_event"
3218 * app/objects/uml/class_dialog.c : handle "destroy" for
3221 * lib/libdia.def : remove diaXmlNewChild again
3223 * app/paginate_gdiprint.cpp : reflect Dia's page setting
3224 portrait/landscape in the windoze print dialog
3226 * objects/makefile.msc : only UML needs to link against
3227 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
3229 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
3231 * objects/standard/ellipse.c (ellipse_distance_from):
3232 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
3233 correct distance function. Could be faster, but it's not really
3236 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
3238 * lib/font.c: Changed global_size_one to more correct 28.35.
3243 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
3246 2002-12-07 Hans Breuer <hans@breuer.org>
3248 * lib/widgets.c : g_file_get_contents() silently assumes
3249 a binary file. Reflect when creating the font_menu file
3250 to get rid of junk in font menus
3252 2002-12-06 Hans Breuer <hans@breuer.org>
3254 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
3255 removed 0xD 0xD 0xA line ends which get created by
3256 cvs if windoze line ends 0xD 0xA are checked in from
3257 *nix and checked out on win32.
3259 * app/preferences.c : changed toolbox_on_top default to
3260 false. It is currently not possible to change the behaviour
3261 at runtime, at least not on win32.
3263 * lib/dialibartrenderer.c : bug #94791 'rendering to
3264 bitmap without PangoFt2' got delayed to milestone future
3265 so wrap libart text rendering into PANGO_WIN32_FUTURE.
3266 It is not available without my Pango patch in bugzilla.
3268 * lib/font.c : added comment to global_size_one and adapt
3269 the arbitrary size scaling in dia_font_build_layout() for
3270 win32, too. This is needed to get an acceptable font size
3271 approximation for Dia 0.90 and earlier files.
3272 Also #include "message.h".
3274 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
3275 reflect movement of group.[hc]
3276 * lib/group.h : export group_type which gets used by app/*
3278 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
3279 to get the GtkTypeInfo definition
3281 * plug-ins/makefile.msc : dxf and xfig don't need to link
3282 against app/ anymore now that group is moved to lib/
3284 * plug-ins/python/pydia-render.c : remove massive leaking
3285 of self, i.e. PyDiaRenderer
3287 * plug-ins/python/makefile.msc : remove linking against
3290 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
3292 * objects/standard/line.c: Removed properties options for gaps,
3293 until release is done.
3295 * configure.in: Check for freetype version.
3297 * lib/text.c (text_insert_char): Fixed small buffer overflow for
3300 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
3302 * app/diapsft2renderer.h:
3303 * app/diapsft2renderer.c:
3304 * app/diapsrenderer.h:
3305 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
3307 * app/render_eps.c (export_eps, new_psprint_renderer): Using
3308 PS_FT2 renderer when available. Old render stuff killed. Yay!
3310 * lib/properties.h: Fixed bad frame end def.
3312 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
3314 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
3316 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
3318 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
3320 * lib/font.c: Now checking for the proper dia-style standard fonts.
3323 * app/Makefile.am: Moving group.[ch]
3325 * plug-ins/dxf/dxf-import.c:
3326 * plug-ins/xfig/xfig-import.c:
3327 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
3331 * lib/object.c (object_list_move_delta, object_copy_list):
3332 * lib/object.h: Moved some object-related functions from
3333 object_ops to object to assist moving group.c.
3335 * lib/diatypes.h: Added Group typedef.
3338 * lib/group.c: Moved from app to lib to a) resolve plug-ins
3339 references, and b) make groups more "real" objects.
3341 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
3343 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
3345 * lib/font.c (dia_font_init): Added check that the three standard
3348 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
3351 * app/load_save.c: Linebreaks in dia files, no indentation.
3352 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
3355 * objects/standard/line.c: Small but important fixes to the line
3359 * lib/dia_xml.c (diaXmlNewChild):
3360 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
3361 XML prettyprinting wrapper.
3363 2002-12-03 Steffen Macke <sdteffen@web.de>
3365 * shapes/Cisco/Makefile.am:
3366 * shapes/Cisco/*.shape: finished conversion of Cisco icons
3369 2002-12-02 Steffen Macke <sdteffen@web.de>
3371 * doc/en/Makefile.am:
3372 * doc/en/usage-objects.sgml:
3373 * doc/en/graphics/line_icon.png: (new) added line icon
3375 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
3377 * objects/standard/line.c: Binary search object edge line gap.
3379 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
3381 * configure.in: Added Cisco makefile, sorted Makefiles list.
3383 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
3385 * configure.in: Now checks for availability of PangoFT2 and
3386 FreeType, raising an error if not found.
3388 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
3391 2002-12-01 Steffen Macke <sdteffen@web.de>
3393 * doc/en/usage-loadsave.sgml: updated information on import
3396 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
3398 * app/commands.c (edit_copy_callback): Freeing copy_list.
3400 2002-11-28 Steffen Macke <sdteffen@web.de>
3402 * app/render_libart.c: art_config.h was included twice
3404 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
3406 * sheets/.cvsignore: More ignorance.
3408 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
3410 * lib/prop_widgets.h: Two (currently unused) settings for frame
3413 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
3414 (by default) foldable.
3416 * lib/propinternals.h:
3417 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
3418 widgets in a more controlled manner.
3420 * objects/standard/line.c (line_update_data): Line gap things
3421 inserted. Can do xeyes now:)
3423 2002-11-26 Christian Neumair <chris@gnome-de.org>
3425 * .cvsignore: Changed.
3426 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
3427 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
3430 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
3432 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
3434 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
3435 passing to font hash.
3437 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
3438 utf-8 or locale-convertible before adding to dialog text. This
3439 probably needs done in a number of places where we get text from
3440 the environment and send it to GTK to display.
3442 * lib/widgets.c: Fixed case problems for font menu entries.
3444 * objects/SADT/annotation.c: Don't run the event test (but leave
3445 it here for inspiration).
3448 * lib/widgets.h: Allowing setting preview text for fonts.
3450 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
3452 * objects/bondgraph/Makefile.am:
3453 * objects/bondgraph/bondgraph.c:
3455 * objects/Makefile.am: Added bond graph dir.
3457 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
3459 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
3461 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
3463 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
3466 * app/diapsrenderer.c: Freetype rendering is back in force.
3468 * app/disp_callbacks.c: Added missing updates for pre-text-change.
3470 2002-11-25 David Hoover <jazzdaq@yahoo.com>
3472 * app/render_libart.c: Added missing #include line for libart.
3475 * lib/geometry.c: Added point_convex function. This computes
3476 points inside a line segment (0 <= alpha <= 1) or outside the
3477 line segment (alpha < 0 | alpha > 1).
3479 * objects/standard/line.c: Line now has additional code/attributes
3480 which permit the line to extend past the line anchors (gap < 0) or
3481 leave a gap without reaching the anchor (gap > 0). If no gap is
3482 specified, the default gap of 0 will result in identical line
3483 behavior as before. If the 'fractional' attributes are TRUE, the
3484 gap length is not fixed, but a percentage of the line length. I
3485 did not know how create the GTK widgets so the gap code currently
3486 cannot be used without adding XML attributes by hand.
3488 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
3490 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
3492 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
3494 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
3496 * lib/font.c: Debugging functionality in separate functions.
3498 * lib/widgets.c: Using fontsel with context.
3500 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
3502 * objects/custom/custom_object.c: Orientation handling for shapes,
3503 patch thanks to Martin Hans <opfinder@gmx.net>.
3505 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
3506 work on even better orientation handling.
3508 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
3509 casting NULL pointers. Should be unnecessary in an upcoming GTK
3512 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
3516 * lib/widgets.c: Now uses correct context to get font families.
3518 * lib/diagdkrenderer.c (get_text_width, draw_string):
3519 * lib/dialibartrenderer.c (draw_string):
3521 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
3522 (dia_font_build_layout): Unified the twiddle factors into a use of
3523 global_size_one. But I deeply distrust Pango for seeming to
3524 change size of fonts every time I turn my back.
3529 * app/menus.h: Updated some more methods to also be more specific
3533 * app/recent_files.c:
3534 Changed to return most specific type, to avoid run-time type errors.
3536 * app/menus.c (menus_get_item_from_path): Non-gnome version now
3537 gets menu_item rather than widget, which works better.
3539 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
3541 * app/display.c: (new_display):
3542 * app/menus.c: (menus_get_item_from_path):
3543 Relying on the tearoff to locate the input methods menu wasn't a
3544 good idea: tearoffs seem to be an endangered species nowadays.
3545 Anyway, the IM menu seems to be working now.
3547 * app/interface.c: hinted the window manager that the toolbox window
3548 is a toolbox window. Not that my (fairly default configuration)
3549 sawfish cares, but other NETWM compliant WMs may.
3556 * app/layer_dialog.c:
3557 * app/linewidth_area.c:
3559 * app/sheets_dialog.c:
3562 The GTK doc says to avoir gtk_window_set_wmclass() and
3563 gtk_window_set_policy(), and use gtk_window_set_role() and
3564 gtk_window_set_resizable(), respectively.
3566 * app/preferences.c: (prefs_create_dialog):
3567 * app/preferences.h:
3568 * app/display.c: (display_set_active):
3569 Added a preference to have the toolbox hover over diagram windows.
3571 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
3573 * lib/diagdkrenderer.c (get_text_width, draw_string):
3574 Freetype-based string drawing now works. Not very fast, though.
3575 I wish I could use the graphics card for this:( I'm doing three
3576 bitmap loops where I should be doing one. The size is not correct
3577 either, despite having get_text_width give the right thing.
3579 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
3581 * app/connectionpoint_ops.c (diagram_update_connections_object):
3582 Allows more than one connectionpoint on an object to be moved at a
3585 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
3587 * configure.in: Added cs to ALL_LINGUAS.
3589 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
3591 * app/paginate_psprint.c: Removed unnecessary decl of autosave
3594 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
3596 * app/export_png.c (export_png_ok): Saving more variables from the
3599 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
3601 * lib/dialibartrenderer.c (begin_render):
3602 (end_render): Correct pushing and popping of font contexts.
3603 (draw_string): Double zooming eliminated, strange twiddle factor
3604 introduced (grumble). Close to working now, but there are still
3605 strange differences from font to font. In particular, some fonts
3606 really mess with the cursor and extents.
3608 * app/render_eps.c (export_eps):
3609 * app/diapsrenderer.c (dia_ps_renderer_finalize):
3610 Fixed file closing confusion, no longer dependent on PS/EPS.
3612 * app/diagram.c (diagram_place_down_selected)
3613 (diagram_place_up_selected): Now implemented.
3615 * lib/font.c (dia_font_init):
3617 Redesigned the font init/context pushing code. Start of fix for
3618 font name differences.
3620 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
3622 * app/sheets_dialog_callbacks.c: Fix a typo.
3624 2002-10-15 Hans Breuer <hans@breuer.org>
3626 * app/diapsrenderer.[hc] : (new files, old content :-)
3627 simple base class for post script rendering. Does neither
3628 use Pango/FT2 nor does it handle non latin1 characters.
3629 The fancy stuff which nowadays appears to be needed should
3630 probably be done in derived class(es)
3632 * app/makefile.msc app/Makefile.am : added new files
3634 * app/paginate_psrint.c : re-enabled and used as test
3635 for the simple ps renderer above.
3637 * app/render_eps.[hc] : ripped out common ps code and
3638 moved to DiaPsRenderer. The rest of the file is mostly
3639 disabled. And I don't understand enough of it to
3642 * app/diaepsrenderer.h : short lived, removed.
3644 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
3646 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
3647 as a plugin (thanks to Torben Nielsen).
3649 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
3651 * app/diaepsrenderer.h:
3653 * app/paginate_psprint.c:
3654 #ifdef'd out enough ps stuff to allow compile. Now we just need
3657 2002-10-12 Hans Breuer <hans@breuer.org>
3659 [last plug-in ported]
3661 * plug-ins/xfig/xfig-export.c : ported to new renderer api
3663 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
3664 scale color values to [0..1.0] to properly reconstruct
3667 * plug-ins/xfig/xfig-common.c : some cleaning
3669 2002-10-12 Hans Breuer <hans@breuer.org>
3671 [decrease inter-plug-in-dependencies]
3673 * objects/custom/shape_info.[hc] : move parse_style()
3674 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
3675 the related structs and constants.
3676 * objects/custom/custom_object.c : reflect namespace
3679 * lib/dia_svg.[hc] : new files
3680 * lib/makefile.msc lib/Makefile.am : add new files
3681 * lib/libdia.def : updated externals
3683 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
3685 * plug-ins/svg/svg.c : enable svg import for win32 (and
3686 probably for other non ELF builds)
3688 * plug-ins/makefile.msc : enable svg import
3690 2002-10-11 Hans Breuer <hans@breuer.org>
3692 * plug-ins/metapost/render_metapost.[hc] : ported
3694 * plug-ins/pstricks/render_pstricks.[hc] : dito
3696 2002-10-11 Hans Breuer <hans@breuer.org>
3698 * plug-ins/cgm/cgm.c : ported, appears to work as before,
3699 but graphic apps available to me can't import the generated
3700 files (the could not with Dia-0.90 cgm as well) ...
3702 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
3703 Removed all those function which did emulate 'complex'
3704 drawing ops with basic ones (e.g. rect by line) cause this
3705 stuff is already provided by the base class
3706 * plug-ins/dxf/dxf-import.c : removed render.h include
3708 * plug-ins/python/pydia-font.[hc]
3709 plug-ins/python/pydia-text.c : finally ported to new font api
3711 * plug-ins/python/pydia-layer.c : add extra parameter
3712 to layer_find_closest_connectionpoint()
3714 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
3716 * plug-ins/python/python.c : added missing copyright notice
3718 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
3719 actually use the renderers set_font implementation
3721 * plug-ins/renderer.inc : unused now, removed
3722 * plug-ins/Makefile.am : reflect it
3724 2002-10-08 Hans Breuer <hans@breuer.org>
3726 * app/render_gdk.c : don't add the InteractiveRenderer
3727 interface multiple times (it's added to the type, not
3729 * app/render_libart.c : dito. It's currently added
3730 unconditional cause eport_png uses it, but claims
3731 to be non-interactive. Probably set_size should be moved
3732 to the DiaRenderer interface.
3734 * lib/dialibartrenderer.c : add implementations for
3735 get_<width|height>_pixels. Libart rendering works again.
3736 DiaLibartRenderer::draw_image : use dia_image_rowstride()
3739 * lib/diatransform.c(dia_transform_coords_double) :
3740 don't ROUND() the returned values
3742 * plug-ins/pixbuf/pixbuf.c : added import function. It
3743 simply creates a wrapping "Standard - Image" object.
3745 * plug-ins/shape/shape-export.c : use the more direct
3746 method to call base class methods
3748 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
3750 * lib/font.c (dia_font_init): Changed dia_font_init to return old
3751 pango context, to allow stacked contexts (for printing while
3760 * lib/connectionpoint.h
3763 * lib/diagdkrenderer.h
3765 * lib/dialibartrenderer.h
3768 * lib/diasvgrenderer.h
3769 * lib/diatransform.h
3776 * lib/neworth_conn.h
3791 Moved all externally visible struct typedefs into diatypes.h, as
3792 per Hans' suggestions.
3794 2002-10-07 Steffen Macke <sdteffen@web.de>
3796 * lib/Makefile.am: removed a '\' causing problems
3798 2002-10-07 Hans Breuer <hans@breuer.org>
3800 [Libart Renderer resurrected; almost it's compiling but
3801 almost instantly crashing :-]
3803 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
3804 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
3805 * lib/diatransform.[hc] : added dia_transform_coords_double()
3807 * app/display.c : the right parameters for new_renderer_libart()
3808 * app/export_png.c : ported, removed the blind Display hack
3810 * app/makefile.msc lib/makefile.msc
3811 lib/Makefile.am : updated
3813 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
3815 2002-10-06 Hans Breuer <hans@breuer.org>
3817 * plug-ins/pixbuf/pixbuf.c : (new file)
3818 there is a new export plug-in called 'Pixbuf' which uses
3819 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
3820 formats (currently only PNG and JPEG).
3822 2002-10-06 Hans Breuer <hans@breuer.org>
3825 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
3827 * lib/dia-enums.h lib/diatransform.[hc]
3828 lib/diarenderer.[hc] lib/diainteractiverenderer.c
3829 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
3832 * lib/makefile.msc lib/makefile.am : added new files
3834 * lib/plug-ins.c : g_module_error() returns a locale
3835 string, convert to utf8 before further usage
3837 * lib/render.h : #error out. Everything including this
3839 * lib/*.[hc] : ported to new renderer api
3841 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
3842 just to make the rest compile
3843 * app/render_eps.c : temporary disabled all of this
3844 * app/render_eps.h : removed RendererEPS
3846 * app/render_gdk.[hc] : a small wrapper around the new
3847 DiaGdkRenderer form lib/*
3849 * app/render_libart.h : removed RenderLibart definition
3850 * app/render_libart.c : not yet ported to new DiaRenderer
3851 but having an implementation to untie form FT2 dependency
3852 at least on win32. It is using new Pango api form bug #94791
3854 * app/render_pixmap.[hc] : a small wrapper around the new
3855 DiaGdkRenderer form lib/*
3857 * app/display.h : removed render_*.h includes
3858 * app/display.c : the only place where specific
3859 renderers need to be known
3861 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
3862 use new DiaInteractiveRenderer interface
3864 * app/*.c : ported to new renderer api
3865 * object/*/*.c : ported to new renderer api
3866 s/render.h/diarenderer.h/
3867 s/Renderer/DiaRenderer/
3868 s/renderer->ops/renderer_ops/
3869 add in every draw method:
3870 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
3872 * plug-ins/hpgl/hpgl.c :
3873 plug-ins/wmf/wmf.cpp
3874 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
3875 * plug-ins/shape/shape-export.c
3876 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
3877 (nice how small these files became :-)
3879 2002-09-28 Hans Breuer <hans@breuer.org>
3881 * */makefile.msc : updated
3883 * app/defaults.c : don't gdk_invalidate_rect(NULL)
3884 * app/disp_callbacks.c :
3885 can't cast GtkWindow to GdkWindow, use shell->window
3886 (ddisplay_unrealize) don't use already unrefed im_context
3888 can't cast from GtkMenu to GtkMenuItem
3889 (ddisp_destroy) : mark im_context as unrefed
3891 * lib/dia_xml (data_font) : prefer new font format over old one
3892 (data_add_font) : write the legacy name to allow file exchange
3893 with pre Pango versions of Dia, which would otherwise crash
3894 on missing font 'name' attribute.
3895 * lib/font.c (dia_font_get_legacy_name) : improved implementation
3896 to get a better match.
3898 * lib/libdia.def : updated
3900 * lib/messages.c : don't gdk_widget_show(NULL)
3902 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
3904 [make Dia compile, link _and_ work with mingw/gcc3.2]
3906 * config.h.win32 : #define LIBXML, this gets defined from libxml
3907 header but only for _MSC_VER. The mingw build did access an
3908 unitialized function pointer for xmlFree.
3910 * */makefile.mingw : updated (some plug-ins have build issues)
3912 * lib/handle.h lib/object.h : there appears to be no
3913 forward declaration of the form
3914 typedef enum _HandleId HandleId
3915 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
3916 use of enum `_HandleId' without previous declaration
3918 * app/paginate_gdiprint.cpp : added a hack to avoid g++
3919 naming conflict on 'export'
3921 * app/paginate_gdiprint.h : forward declare Diagram
3923 * objects/SADT/annotaion.c : use g_random_double()
3925 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
3927 * app/modify_tool.c: Made motion not happen until sufficiently
3928 large or past double-click interval, to avoid accidental moving
3929 when doubleclicking. Got the double-click time right, and fixed
3930 some issues with release. There are some corner cases that may
3931 exhibit strange behaviour, will look at those later. Nah, let's
3932 not care about those, they are rare and not dangerous.
3934 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
3936 * app/layer_dialog.c:
3938 * plug-ins/dxf/dxf-import.c:
3939 * plug-ins/python/pydia-diagram.c:
3940 * lib/diagramdata.c:
3941 * lib/diagramdata.h:
3942 Improved the consistency of the obj->parent_layer backlinks (esp.
3947 * lib/dynamic_obj.[ch] (NEW):
3950 * app/dynamic_refresh.[ch] (NEW):
3951 * objects/Misc/analog_clock.c:
3952 Added support for dynamic refresh (animated objects).
3954 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
3956 Patch from Owen Taylor <otaylor@redhat.com>:
3957 * doc/en/Makefile.am:
3958 * doc/en/dia-manual.sgml:
3959 * doc/en/usage-objects.sgml:
3960 * doc/en/usage-quickstart.sgml:
3961 * doc/pl/Makefile.am:
3962 * doc/pl/dia-manual.sgml:
3963 * doc/pl/usage-objects.sgml:
3964 * doc/pl/usage-quickstart.sgml:
3966 - Change the DTD declration from an outdated GNOME one to a
3969 - Remove close tags for <graphics> which aren't allowed for
3972 - A hacky fix for a problem where some versions of db2html don't
3973 create *.css files. (If *.css doesn't match anything, then you get
3974 the global explicitely.)
3978 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
3980 * objects/custom/custom_object.c:
3981 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
3982 were never properly prepared for use when reloading a shape with
3983 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
3984 reporting the problem and coming up with a fix! (Closes: #93974)
3986 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
3987 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
3990 * app/display.c: updated menu item paths Alan's patch had moved.
3992 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
3993 load the sheet-provided icon (libpng versions mismatch, grrr.).
3996 * objects/Makefile.am:
3997 * objects/Misc/Makefile.am (NEW):
3998 * objects/Misc/libmisc.c (NEW):
3999 * objects/Misc/analog_clock.c (NEW):
4000 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
4001 * sheets/Misc.sheet.in: just a little experiment...
4003 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
4005 * plug-ins/xlst/Makefile.am: found a way to silence automake while
4006 not forcing everyone to build using libxslt.
4010 * lib/object_defaults.c:
4013 * lib/properties.[ch]:
4015 * objects/standard/box.c:
4016 * objects/UML/state_term.c:
4018 * objects/FS/flow-ortho.c:
4022 * app/diagram_tree.c:
4024 * app/disp_callbacks.c:
4027 * app/lineprops_area.c:
4029 * app/preferences.c:
4032 * app/sheets_dialog_callbacks.c:
4033 * plug-ins/xslt/xslt.c:
4034 * plug-ins/metapost/render_metapost.c:
4035 * plug-ins/xfig/xfig-export.c:
4036 * plug-ins/shape/shape-export.c:
4038 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
4039 unused variables, mostly)
4042 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
4044 * app/Makefile.am: modified run_dia.sh so that we recover the
4045 ability to run a debugger despite libtool's hacks.
4047 * plug-ins/dxf/Makefile.am:
4049 "make distcheck" fixes.
4051 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
4053 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
4054 <mfranzoni@madd.it>: Check for the type being NULL.
4056 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
4058 * app/render_eps.c (set_font): Re-tweaked font size for printing.
4060 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
4062 Patch from Angus Ainslie <angusa@deltatee.com>:
4063 * plug-ins/dxf/dxf-import.c:
4064 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
4066 (plus a couple extra fixes by me, such as the removal of printf's,
4067 adapting for recent changes, and killed a couple warnings)
4069 * app/authors.h: a 60K patch isn't insignificant, is it?
4071 2002-09-09 Tor Lillqvist <tml@iki.fi>
4073 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
4074 as before) and -lfreetype (using AC_CHECK_LIB). At least on
4075 Solaris with Sun's compiler (Forte C), you need to link also the
4076 dia application with -lfreetype, even if it is implicitly linked
4077 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
4078 which is what they actually mean. Use FREETYPE_LIBS for
4081 Don't look for libsunmath if isinf() is not found in math.h (as on
4082 Solaris). The sunmath library is part of Forte C and not present
4083 on all machines. Besides, even if isinf was found in libsunmath,
4084 we didn't use it in the Makefile.am.
4086 Fix a couple of bashisms.
4088 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
4089 too, on Solaris with Forte C.
4091 Don't try to use the gcc flags with other compilers.
4092 DIA_CHECK_CFLAG gives a false indication that Forte C understands
4093 the gcc -f switches, but in fact they get interpreted meaning
4094 something completely different.
4096 Define the automake conditional HAVE_CGC.
4098 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
4100 Use -export-dynamic only with gcc.
4103 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
4104 PANGOFT2_CFLAGS rename.
4106 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
4108 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
4111 * lib/paper.c: Workaround for gccism: Can't use inline this way with
4114 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
4116 * lib/text.c(set_string): fixed a memory leak (char* ain't no
4117 std::auto_ptr<char> !).
4120 * app/interface.[ch]:
4121 * app/ddisp_callbacks.[ch]: Added some basic support for input
4122 methods (GtkIMContext-based)
4125 * app/Makefile.am: made libdia a shared object (per Tor
4126 Lillqvist's suggestion/request), to cope for platforms with a less
4127 than par dynamic library loader.
4129 * app/display.c: disabled the input method menu (I really don't
4130 see where and how to put them. Blame Frozen Bubble )
4132 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
4134 * objects/flowchart/box.c (box_update_data): Made resizing
4135 possible again (only set width & height when resized too small).
4137 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
4139 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
4142 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
4144 * app/authors.h: now showing Akira TAGOH's name in the native script.
4146 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
4148 * plug-ins/xslt/xslt.c: Removed glib warning for unset
4151 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
4153 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
4154 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
4157 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
4159 * objects/UML/class.c: Fixed showing of empty stereotypes and got
4160 the string placed correctly.
4162 2002-08-30 Hans Breuer <hans@breuer.org>
4164 * lib/font.c (dia_font_get_style) : don't shift already
4165 shifted DIA_FONT values.
4167 * lib/libdia.def : updated externals
4169 * app/disp_callbacks.c : on win32 GdkEventKey::string already
4170 is in UTF-8. (Longterm this probably should be handled on the
4173 * app/command.[hc] app/display.[hc] app/menus.c : add code to
4174 switch display renderers again. The libart renderer is very
4175 useful for win9x with it's limited GDI.
4177 * app/render_gdk.c : use g_warning instead of printf which gets
4178 nowhere on win32 (non console apps)
4180 * app/render_libart.c : make it compile without FREETYPE
4182 * objects/makefile.msc plug-ins/makefile.msc : added clean target
4184 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
4186 * app/render_eps.c (postscript_draw_contour): Debugging statement
4187 that allowed me to figure out font problems.
4189 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
4190 items for font styles.
4192 * objects/FS/flow-poly.c:
4193 * objects/FS/flow-ortho.c:
4194 * objects/FS/flow.c: Further conversion away from GTK dialogs.
4195 Can't set a default label right now:(
4197 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
4199 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
4200 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
4202 * Makefile.am: rules relating to AUTHORS and THANKS
4204 * AUTHORS: file content changed to more accurately
4205 reflect guideline requirements.
4206 * TODO: warning added about Gnome BTS.
4207 * KNOWN_BUGS: warning added about Gnome BTS.
4211 * AUTHORS: added full copyright info.
4212 * mkauthors-placeholder: (removed)
4214 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
4216 * app/paginate_psprint.c (print_page): Fixed text printing after
4217 tip from Dov Grobgeld.
4219 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
4221 * app/paginate_psprint.c (print_page): Fixed color of clip
4224 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
4226 * sheets/Makefile.am: enabled intltool-merge translation cache for
4230 * mkauthors-placeholder:
4231 * AUTHORS: revived that file (in a placeholder form) so that
4232 automake stops yelling.
4233 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
4236 Heh, by the way, thanks Christophe. I feel better now.
4238 2002-08-25 Christophe Merlet <christophe@merlet.net>
4240 * app/command.c: Removed invalid multibyte sequence in Chepelov.
4242 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
4244 * lib/dia_image.c (dia_image_rgb_data):
4245 Bugfixes in image data retrieval.
4247 * app/render_eps.c: Refactoring of new_*_renderer.
4249 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
4253 * lib/dia_image.c: Support for rowstride != width (odd width images)
4255 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
4257 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
4258 * plug-ins/xfig/xfig-import.c: Removed assertion.
4260 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
4262 * lib/paper.c: Removed app/preferences.h reference.
4264 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
4266 * plug-ins/svg/svg-import.c:
4267 * plug-ins/xfig/xfig-import.c:
4268 * lib/Makefile.am (libdia_a_SOURCES):
4269 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
4271 * objects/standard/create.h:
4272 * objects/standard/polygon.c (polygon_create):
4273 * objects/standard/polyline.c (polyline_create):
4274 * objects/standard/beziergon.c (beziergon_create):
4275 * objects/standard/bezier.c (bezierline_create):
4276 Moving create.h into lib.
4278 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
4280 * app/render_libart.[ch]: Work on PNG font export. Something's
4281 still fishy with the scaling, I don't get it.
4284 * app/interface.c: Replaced broken zoom combo with entry+menu.
4285 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
4287 * app/render_gdk.c (get_text_width): Checks for validity of text.
4288 Temporary help while debugging input -- should only activate on
4291 * objects/SADT/annotation.c:
4292 * objects/GRAFCET/transition.c:
4293 * objects/FS/function.c: Removal of gtk.h include.
4295 * objects/UML/state.c (state_load): Warnings about using State
4296 object for initial/final states.
4298 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
4300 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
4302 * app/render_eps.c: Text rendering that scales correctly. Too bad
4303 the standard fonts don't get selected right.
4305 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
4307 * lib/diagramdata.h:
4308 * lib/paper.c (get_paper_info):
4310 * plug-ins/xfig/xfig-import.c:
4311 Committed before testing. I am so embarrased. This compiles, now
4312 that the includes are in the right order.
4314 * app/diagram.c (diagram_init):
4315 * app/app_procs.c (do_convert):
4316 * app/preferences.h:
4317 * lib/diagramdata.h:
4318 * lib/diagramdata.c (new_diagram_data):
4320 * lib/paper.c (get_paper_info):
4321 Moved new_diagram part of prefs into lib/diagramdata.h. More
4322 could be done in new_diagram_data() now.
4324 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
4326 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
4328 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
4330 * configure.in: removed silly user-visible comment
4332 (actually, this is a dummy entry before I manually run nemo; for
4333 some dist-upgrade related reason, this morning's run aborted before
4334 the snapshots were created)
4336 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
4338 * objects/network/wanlink.c:
4339 * objects/network/bus.c:
4342 * objects/custom/custom_object.c:
4343 * objects/network/wanlink.c:
4344 * objects/flowchart/parallelogram.c:
4345 * objects/flowchart/ellipse.c:
4346 * objects/flowchart/diamond.c:
4347 * objects/flowchart/box.c:
4348 Removed GTK defaults stuff.
4350 * objects/UML/fork.c:
4351 * objects/UML/object.c:
4352 * objects/UML/lifeline.c:
4353 * objects/UML/branch.c:
4354 * objects/GRAFCET/transition.c:
4355 * objects/FS/function.c: Removed GTK include.
4357 * objects/FS/flow-ortho.c:
4358 * objects/FS/flow.c: Made the label behave again.
4359 Also removed GTK defaults stuff.
4361 2002-08-06 Hans Breuer <hans@breuer.org>
4363 * app/autosave.c : ported to GDir which is the improved
4364 cross platform replacement for <dirent.h>
4366 * app/makefile.msc : build autosave.obj
4368 * app/font.c : some (bad?) code calls
4369 dia_font_scaled_decent() not only with empty string but
4370 with NULL. Handle it gracefully.
4372 * lib/paper.c : don't depend on ../app. Although IMO
4373 this shouldn't be allowed on any platform it is only
4374 disabled for win32, where it simply doesn't work
4377 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
4379 * objects/fs/flow.c : conditionalize debug spew, disabled
4380 and 'ported' to use g_print. Simple printf won't work with
4381 standard win32 gui apps, may even crash them.
4383 * plug-ins/makefile.msc : DISABLED svg-import cause it
4384 depends on ../objects/custom. This not only break the
4385 build for all non ELF systems but IMO also isn't acceptable
4386 from a design point of view. See dia-list mail on subject.
4388 * plug-ins/python/makefile.msc :
4389 plug-ins/python/python.c : remove all references to dirent
4391 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
4393 * configure.in: added ro to ALL_LINGUAS
4397 * ../translation-graphs/transgraph.py: added support for fuzzy
4398 translations. Enlarged the graphs.
4400 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
4402 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
4403 key events according to locale. No clue if this works for
4406 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
4408 * lib/text.c: Various UTF8 related fixes, in particular in
4409 deleting. Text_insert_char is fine, far as I can tell.
4411 * app/interface.c (create_display_shell):
4412 * app/commands.c: Now uses gtk_clipboard functions, for they are
4413 much simpler. Also handles Win32 clipboard. Non-ascii chars
4414 don't seem to get handled correctly by text_insert_char in
4417 * app/commands.c (received_selection_handler): Got utf8 handling
4418 on paste, and individual char handling out of commands.c. Pasting
4419 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
4421 * lib/message.c (gtk_message_internal): Message dialog re-shown
4422 when new message appears. Maybe it should even move to top?
4426 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
4427 (again) and case-insensitive.
4429 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
4432 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
4434 * app/commands.c (edit_cut_text_callback):
4435 * lib/text.c (text_delete_all): Now functioning undo for text cut.
4437 * app/commands.c (edit_cut_text_callback): Now removes text.
4438 Undo is broken, though.
4440 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
4442 * app/diagram.c (diagram_update_menu_sensitivity):
4443 Making cut_text active.
4446 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
4447 clipboard. Also removed AA callback.
4449 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
4451 * objects/chronogram/chronoref.c:
4452 * objects/chronogram/chronoline.c:
4453 * objects/SADT/annotation.c:
4454 * objects/SADT/arrow.c:
4455 * objects/SADT/box.c:
4456 * objects/GRAFCET/vergent.c:
4457 * objects/GRAFCET/vector.c:
4458 * objects/GRAFCET/step.c:
4459 * objects/GRAFCET/condition.c:
4460 * objects/GRAFCET/action.c:
4461 * objects/ER/participation.c:
4462 * objects/ER/relationship.c:
4463 * objects/ER/entity.c:
4464 * objects/ER/attribute.c:
4465 Removing unnecessary GTK references.
4467 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
4469 * objects/standard/image.c:
4470 * objects/standard/textobj.c:
4471 * objects/standard/ellipse.c:
4472 * objects/standard/polygon.c:
4473 * objects/standard/beziergon.c:
4474 * objects/standard/box.c:
4475 Making default default properties.
4477 * objects/standard/image.c:
4478 * objects/standard/arc.c:
4479 * objects/standard/box.c:
4480 * objects/standard/zigzagline.c:
4481 * objects/standard/polyline.c:
4482 * objects/standard/line.c:
4483 * objects/standard/ellipse.c:
4484 * objects/standard/polygon.c:
4485 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
4487 * lib/object_defaults.c (dia_object_default_create):
4490 * lib/object.c (object_copy_using_properties):
4491 * lib/propdialogs.c:
4492 * lib/propinternals.h:
4493 * lib/propobject.c (object_create_props_dialog)
4494 (object_copy_props):
4495 Removing the standard (toolbox) properties from defaults dialogs.
4497 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
4499 * lib/font.c (dia_font_scaled_string_width)
4500 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
4502 * lib/text.c (text_calc_boundingbox): Take descent into account.
4504 * objects/standard/bezier.c (bezierline_draw):
4505 * lib/render.c (draw_bezier_with_arrows):
4506 Better arrow drawing for beziers. Doesn't change the mouse-click
4509 * lib/arrows.h: Some const-ness.
4511 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
4513 * lib/render.c (draw_arc_with_arrows):
4514 * objects/standard/arc.c (arc_draw): Better arrow drawing for
4515 arcs. Doesn't change the mouse-click area yet.
4517 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
4523 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
4525 * app/group.c (group_draw): Forgotten commit: Groups to draw as
4526 objects (using default routines).
4530 * lib/diagramdata.h:
4531 * lib/diagramdata.c (layer_find_closest_connectionpoint):
4532 * objects/standard/zigzagline.c (zigzagline_move_handle):
4533 * app/diagram.c (diagram_find_closest_connectionpoint):
4534 * plug-ins/python/pydia-diagram.c
4535 (PyDiaDiagram_FindClosestConnectionPoint):
4536 * app/object_ops.c (object_connect_display)
4537 (object_find_connectpoint_display)
4538 * app/create_object.c (create_object_button_press)
4539 (create_object_motion):
4540 * app/modify_tool.c (modify_motion):
4541 Adding object param to allow connectionpoint and handle coinciding.
4543 * objects/standard/zigzagline.c (zigzagline_check_orientation):
4544 Fixing minor problems.
4546 * objects/standard/ellipse.c (ellipse_update_data):
4547 Added direction hints.
4549 * lib/diagramdata.c:
4552 * lib/diagramdata.h:
4553 * objects/standard/zigzagline.c:
4554 First working example of zigzagline hints, currently only between
4557 2002-07-27 Steffen Macke <sdteffen@web.de>
4559 * plug-ins/svg/render_svg.c: added support for rounded
4560 rectangles (fixes #69053 if compile with
4562 * object/custom/shape_info.[c|h]: made parse_style and
4563 parse_path accessible for svg plug-in
4564 * plug-ins/svg/Makefile.am:
4565 * plug-ins/svg/svg.c:
4566 * plug-ins/svg/svg-import.c(new): added SVG import filter
4568 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
4570 * objects/standard/box.c:
4571 * objects/standard/zigzagline.c (zigzagline_move):
4572 More work on zigzagline hints.
4574 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
4575 * lib/connectionpoint.h:
4576 Hints for zigzaglines.
4578 * app/properties.c (properties_show):
4579 * app/defaults.c (defaults_show):
4581 * lib/propobject.c (object_create_props_dialog):
4583 * objects/FS/flow-poly.c:
4584 * objects/network/wanlink.c:
4585 * objects/network/bus.c:
4586 * objects/UML/class.h:
4587 * objects/UML/class_dialog.c:
4588 * objects/UML/association.c:
4589 Start of removing toolbox props from props dialogs.
4593 * app/lineprops_area.c (dia_arrow_chooser_new):
4594 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
4596 * app/create_object.c:
4597 * app/modify_tool.c:
4602 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
4604 * app/preferences.c:
4606 * app/diapagelayout.c:
4607 New prefs selector kind PREF_CHOICE chooses between a list of
4608 strings. Used for picking default paper.
4610 * app/preferences.c (prefs_data):
4611 * lib/paper.c (get_paper_info): Added prefs setting for
4614 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
4615 line segments at the ends (bug #86603).
4617 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
4619 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
4620 #60324: Now calls update_data after copy.
4622 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
4623 Now doesn't steal selection from non-object tools.
4625 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
4627 * app/commands.c (help_manual_callback): Uses BROWSER environment
4628 variable when available.
4630 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
4632 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
4633 object from the new sheet when changing.
4635 * app/app_procs.c (app_init): Uses more standard size icon, from
4636 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
4638 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
4640 * objects/UML/implements.c (implements_update_data):
4641 * objects/UML/realizes.c (realizes_update_data):
4642 * objects/UML/dependency.c (dependency_update_data):
4643 Test for null strings before calling on ascent.
4645 * objects/UML/realizes.c (realizes_draw):
4646 * objects/UML/message.c (message_draw):
4647 * objects/UML/generalization.c (generalization_draw):
4648 * objects/UML/dependency.c (dependency_draw)
4649 * objects/UML/constraint.c (constraint_draw):
4650 * objects/GRAFCET/condition.c (condition_draw):
4651 * objects/UML/association.c (association_draw):
4652 * objects/FS/flow-ortho.c (orthflow_draw):
4653 * objects/FS/flow.c (flow_draw): Change to use
4654 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
4657 * lib/arrows.c (calculate_arrow_point):
4660 * objects/standard/zigzagline.c:
4661 * objects/standard/polyline.c:
4662 * objects/standard/line.c: Work towards better arrow drawing.
4664 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
4666 * objects/UML/state.c: Starting phase-out of State object as
4667 initial/final state (which never worked right).
4669 * app/app_procs.c (app_init): --version command line option for
4672 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
4674 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
4676 * app/render_eps.c: Removed debugging info.
4678 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
4679 Kludge to make ascent and descent work for empty strings. Won't
4680 work when using non-ASCII fonts. Better would be to get a
4681 PangoFont and ask directly.
4683 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
4686 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
4689 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
4691 * plug-ins/xfig/xfig-export.c: First use of draw_object render
4692 function: All shapes are now groups in XFig export.
4694 * lib/diagramdata.c (normal_render):
4697 * app/display.c (ddisplay_obj_render):
4698 New render function for drawing objects, allows renderers to group
4699 or otherwise specially handle objects. We may want to reconsider
4700 calling it in app/display.c, as we 'know' the object draw function
4701 is the default one there.
4703 * lib/Makefile.am: Removed extra \ that broke stuff.
4705 * plug-ins/xfig/xfig-import.c:
4706 Spline import for xfig. Not perfect.
4708 * objects/standard/create.h:
4709 * objects/standard/bezier.c (bezierline_create):
4710 * lib/bezier_conn.c:
4711 * lib/beziershape.c (beziershape_set_points):
4712 * lib/bezier_conn.h:
4713 * lib/beziershape.h:
4714 Support for creating beziers non-interactively.
4716 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
4718 * plug-ins/xfig/xfig-import.c: Support for polygons and
4719 polylines. Special warning handling system removed.
4721 * lib/message.c (gtk_message_internal): Fixed bug involving
4722 closing message window and then getting repeated message.
4726 * configure.in (GETTEXT_PACKAGE):
4727 Update based on bug #88199. Hopefully this doesn't break too much
4730 * dia.desktop.in (_Comment): Changed after suggestion from
4731 calum.benson@ireland.sun.com (bug 88345)
4733 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
4734 <loli@unsa.edu.ar> that makes user/system distinction better.
4736 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
4738 * app/render_libart.c: Got the context right, removed crashes.
4748 Remove libart #defines from most places (still around for png export).
4750 * app/render_libart.h:
4751 * app/render_libart.c:
4752 * configure.in (HAVE_LIBART):
4753 Starting on update of libart stuff for png export (without X).
4755 * app/autosave.h (autosave_check_autosave):
4758 * app/Makefile.am (dia_core_files):
4760 * app/diagram.c (diagram_set_modified):
4762 * app/app_procs.c (app_init):
4763 Autosave support. No automatic restore yet.
4765 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
4767 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
4770 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
4772 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
4774 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
4776 * Fix for 'make dist' etc. --- problem caused by
4777 previous AUTHORS patch.
4779 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
4781 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
4783 (set_font): NULL check.
4785 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
4787 * app/disp_callbacks.c:
4789 Addition to the object menus allows check menu items.
4791 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
4793 * HACKING: completely changed to bring up-to-date.
4794 * AUTHORS: file needs REMOVING from CVS as now
4795 dynamically generated.
4796 * app/authors.h: split into subcategories for original
4797 authors, maintainers, etc.
4798 * app/app_procs.c: --credits rewritten to support new
4800 * app/commands.c: no changes to about box code, comment
4802 * Makefile.am: added rule for AUTHORS. I'm still
4803 inexperienced with automake, it seems to work, but
4804 for AUTHORS-related bugs, look at this change first.
4806 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
4808 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
4809 work. Back to including xslt dir always.
4811 * objects/UML/uml.c:
4812 * objects/UML/class.h:
4813 * objects/UML/class_dialog.c:
4814 * objects/UML/class.c: Patch from
4815 <mattam@netcourrier.com>: Adds comment visibility switch, also
4818 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
4819 for state/fork/activity stuff.
4820 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
4821 * objects/UML/Makefile.am:
4822 * objects/UML/uml.c:
4823 * sheets/UML.sheet.in: Added new objects activity, fork,
4825 * objects/UML/pixmaps/state_term.xpm:
4826 * objects/UML/state_term.c: New, only initial/final states.
4827 * objects/UML/pixmaps/activity.xpm:
4828 * objects/UML/activity.c: New, activity state.
4829 * objects/UML/pixmaps/fork.xpm:
4830 * objects/UML/fork.c: New, fork/join bar.
4831 * objects/UML/pixmaps/state.xpm: state icon.
4835 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
4836 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
4839 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
4841 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
4844 * app/Makefile.am: Commented out the diaconv parts while it's not
4845 used anyway. To come back later.
4847 * configure.in (HAVE_FREETYPE):
4850 * app/render_eps.c: Support for printing with freetype, better
4851 encapsulated now. Renders the text nicely, but ignores font
4852 setting. Requires pangoft2 to get the font outline, but non-text
4853 objects can still be rendered without it.
4856 * app/commands.c (objects_place_up_callback)
4857 (objects_place_down_callback):
4859 * app/diagram.c (diagram_place_down_selected)
4860 (diagram_place_up_selected): Starting support for moving objects
4863 * app/menus.c: Removed character/numeral shortcuts.
4865 2002-07-06 Hans Breuer <hans@breuer.org>
4867 * makefile.am app/makefile.am lib/makefile.am
4868 objects/makefile.am plug-ins/makefile.am
4869 plug-ins/python/makefile.am :
4870 added required files for win32 build to EXTRA_DIST
4872 * app/paginate_psprint.c app/render_eps.c
4874 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
4875 on Pango as currently is on win32 => no PostScript
4878 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
4879 use '/* noop */;' for empty case labels; replace
4880 debug spew printf with g_print which is guaranteed
4881 to work on win32, too.
4883 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
4884 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
4885 in the pango_font_description_set_weight() api documentation
4886 Take care for them in dia_font_get_style() too.
4888 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
4889 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
4890 rename Obliquity to Slant which appears to be the usual name,
4891 also rename dia_font_get_style_string -> dia_font_get_slant_string
4893 * plug-ins/wmf/wmf.cpp : finally ported to new font api
4895 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
4897 * objects/uml/association.c class.c large_package.c message.c
4898 if g_free() is used g_strdup needs to be used.
4899 * objects/custom/shape_info.c
4900 objects/ER/attribute.c entity.c
4901 objects/standard/image.c
4902 app/sheets_dialog_callbacks.c : more strdup cleaning
4904 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
4906 * app/render_eps.c: Non-crashing printing (made the right
4907 context). Font output still fscked up.
4909 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
4911 * app/authors.h: Added file --- now master
4912 location for contributors data.
4913 * app/app_procs.c: Added --credits option.
4914 * app/commands.c: Modified about box to use
4917 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
4919 * app/render_eps.c: First stab at EPS rendering using the contour
4920 code from PAPS. Crashes.
4922 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
4924 * app/recent_files.c (recent_file_history_remove):
4925 Fixed call to g_list_delete_link discarding return value.
4927 * lib/widgets.c (dia_font_selector_set_styles):
4928 * lib/font.h (DiaFontWeight):
4929 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
4931 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
4933 Contribution from Alan Horkan <horkana@tcd.ie>:
4936 * sheets/Assorted.sheet:
4937 A set of 40 assorted geometric shapes.
4939 * sheets/Assorted.sheet.in:
4940 * sheets/Makefile.am
4941 * shapes/Assorted/Makefile.am:
4942 * shapes/Makefile.am:
4945 Done the integration job of Alan's shapes. (Translators: have fun!)
4947 * po/dia.pot: refreshed the main potfile.
4949 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
4951 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
4953 * objects/UML/class.[ch]:
4954 * objects/UML/class_dialog.c:
4955 changed the number of connection points from a hardcoded value of
4956 8 to a #defined constant
4958 (I changed the constant back from 20 to 8, until we better know
4959 how we'll handle more connection points on the UML class in the
4960 future -- but Tim's patch is a welcome clean-up).
4962 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
4964 * shapes/MSE/demultiplexer.xpm:
4965 * shapes/MSE/node_center.xpm:
4966 * shapes/MSE/multiplexer.xpm:
4967 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
4968 Horkan <horkana@tcd.ie>
4970 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
4972 * lib/widgets.c: Total rehash of font selector, with font dialog
4973 option, expanding list (not LRU yet), and stuff.
4975 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
4979 Added a set of new setter/getters, some of them more specially for
4982 * plug-ins/shape/shape-export.c: (new_shape_renderer),
4983 (destroy_shape_renderer), (set_font), (draw_string):
4984 * plug-ins/svg/render_svg.c: (new_svg_renderer),
4985 (destroy_svg_renderer), (set_font), (draw_string):
4987 Actually exported the font face, style, weight and size (sodipodi
4988 agrees with dia on how a small sample should look like (a sample
4989 0.90 would not even display anyways). Yay !)
4991 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
4993 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
4995 (end of ChangeLog-less patch)
4997 * objects/custom/shape_info.c (parse_style): now understands the
4998 font-style and font-weight attributes as well. Does not use
4999 anymore dia_font_new_from_legacy_name().
5001 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
5003 * objects/standard/textobj.c: Now uses stdprops for defaults.
5005 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
5006 * lib/font.c (dia_font_get_style): Style now linear and conversion
5009 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
5012 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
5014 * plug-ins/dxf/dxf-import.c:
5015 using dia_font_new_from_style()
5017 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
5019 * objects/UML/class.[ch]: Added a comment field to class
5020 * objects/UML/uml.[ch]: Added a comment field to attributes,
5021 operations and parameters.
5022 * objects/UML/class_dialog.c: Added code for the new comment
5024 * plug-ins/xslt/*.xsl: Added some code to handle comments.
5025 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
5026 Added a $directory parameter for stylesheets so the output is
5027 in the good place (not in the $PWD).
5031 * AUTHORS: added contributors, updated maintainers. Removed the
5032 specific areas of action.
5034 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
5035 from a patch by Xing Wang <quixon@gnuchina.org>:
5037 * app/commands.c: help_about_callback now supports
5038 new-style GNOME about box as well as old GTK style.
5039 code also tidied (Closes: #85726)
5043 * app/commands.c: fixed the copyright (it's not all FSF), and
5044 maintainers. Synced contributors list with AUTHORS.
5046 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
5048 * lib/message.c: More work on repeating messages, now with
5051 2002-06-24 Hans Breuer <hans@breuer.org>
5053 * lib/widget.c : some more bits in place, at least
5054 it does something useful instead of crashing. Much
5055 better - but not all ok :-)
5057 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
5059 * lib/message.c (gtk_message_internal): First stab at repeating
5062 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
5065 * objects/GRAFCET/*.c:
5067 * objects/UML/association.c: (one instance forgotten)
5068 * objects/UML/large_package.c:
5069 * objects/standard/textobj.c:
5072 using dia_font_new_from_style()
5074 2002-06-23 Hans Breuer <hans@breuer.org>
5076 * lib/font.c : giving some love to
5077 dia_font_new_from_legacy_name() that is making
5078 import of old files as painless as possible and
5079 provide an almost exact match where possible.
5080 It does not yet fully work because it interfers
5081 with the Style to DiaStyle conversion which comes
5084 [Changing these files is only allowed with Dia-0.90]
5085 * broken-files/fonts-0.90.dia : including the
5086 common hard-coded fonts from Dia-0.90. It also
5087 has drawn bounding-boxes for win32 as they were calculated
5088 from the former version (they were all too big).
5089 * broken-files/fonts-0.90-full.dia : all hardcoded
5090 fonts including the asian versions. On my machine
5091 this gives _a lot_ complaining about missing fonts
5092 and a finally a broken file display. Anyone having
5095 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
5097 * objects/chronogram/*.c:
5098 * objects/custom/custom_object.c:
5100 using dia_font_new_from_style()
5102 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
5104 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
5105 font selector (stability, insensitivity).
5107 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
5108 stretching scheme for tweaking, and made scaling scheme faster
5110 (dia_font_dia_style_to_pango): Oops, % != /.
5112 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
5115 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
5117 * plug-ins/xslt : Added an XSLT plugin to export dia files using
5118 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
5119 It includes a small config file to tell it what stylesheets to use.
5123 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
5124 GTK2.0/HIG compliant (the labels could be slightly more verbose,
5125 perhaps). Added back a couple forgotten _(). Removed //-style
5128 2002-06-23 Hans Breuer <hans@breuer.org>
5131 (dia_plugin_get_name) : don't crash plugin_manager
5133 (dia_plugin_load) : reuse the description field to
5134 store the error string if loading fails.
5136 * lib/font.[hc] : starting to beautify the new
5137 font api: proper namespacing, adding convenience
5138 functions like dia_font_new_from_style(), ...
5140 * objects/uml/*.c : use the new convenience functions.
5142 [Next thing I plan to do is changing the other font
5143 functions to take DiaStyle and make Style and
5144 BASIC_*_FONT vanish. As well as giving some love to
5145 dia_font_new_from_legacy_name().
5146 If anyone want's to help on converting the other
5147 objects to the new api during that, I would highly
5150 2002-06-23 Hans Breuer <hans@breuer.org>
5152 * lib/font.c : made it compile and small indent fixes.
5153 Is there a code-has-no-effect-so-needs-not-be-valid
5156 * lib/widgets.c : use g_strcasecmp
5158 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
5162 * lib/widgets.c: Font names sorted, style selector widget
5163 reappeared. Doesn't select the old style yet.
5165 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
5167 * lib/font.c: one who expects a text's font to be changed shall
5168 actually request the attributes to apply to the whole range of the
5171 * lib/font.c: extents computation was wrong.
5173 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
5174 if a last NULL parameter is added...
5176 * lib/font.c: extents computation was completely wrong. This looks
5177 much better this time.
5179 * objects/UML/class.c: fixed the various strings positions.
5181 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
5182 macros to get the hardcoded base fonts.
5184 * objects/ER/relationship.c: wasn't converted to DiaFont*
5186 2002-06-22 Hans Breuer <hans@breuer.org>
5188 * lib/widget.c : dont use backend specific functions
5189 to get on the font_families. Including it would mean
5190 including <windows.h> which breaks due to namespace
5193 * lib/libdia.def : updated externals
5195 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
5197 * lib/font.c : added empty dia_font_init_instance function,
5198 reformatting of dia_fon_unref to allow to set breakpoint,
5199 dia_fon_build_layout() : dont crash on string==NULL
5201 * lib/text.c (text_set_attributes) : don't unref the wrong font
5203 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
5204 stores lowercased font names, but dia_font_get_family()
5207 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
5210 * app/render_gdk.c: Patch from Hans Breuer.
5212 * app/Makefile.am (dia_core_files): diaconv commented out for now.
5214 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
5216 * lib/all files touched yesterday: took into account some of Hans
5218 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
5220 * objects/chronogram/*:
5223 * objects/flowchart/*:
5225 * objects/GRAFCET/*:
5227 * objects/standard/textobj.?:
5229 converted to the new DiaFonts.
5232 * plug-ins/pstricks/*:
5236 Made minimalistic conversions so that they'd at least compile.
5239 * app/render_pixmap.c:
5240 Converted to the new DiaFonts.
5245 made the minimal changes so that it would at least build.
5247 *** At this point, the thing builds on my machine, but segfaults
5250 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
5252 * configure.in: removed the backend-specific pango pkg_modules
5253 (trivial to add back if needed, when actually needed)
5256 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
5257 renderer. The APIs will have completely changed when we get around
5258 to redo a renderer for it, anyways.
5260 * font.[ch]: rewrote everything from scratch, with a Pango
5261 implementation. Normally, only backend-neutral things should go in
5264 **WARNING**: new rules for managing DiaFont* pointers: these are
5265 reference-counted GObjects. One >must< diafont_ref() and
5266 diafont_unref() as appropriate. I wish I could overload operator=()...
5268 lib/plug-ins.h: bumped up the plug-in API.
5273 lib/object_defaults:
5274 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
5275 again tomorrow with GObject.
5277 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
5279 **** The rest of the tree should be updated as well ****
5281 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
5285 * app/render_pixmap.c:
5286 * app/render_pixmap.h:
5287 * app/render_libart.h:
5288 * app/render_libart.c:
5290 * lib/font.c: Removed freetype stuff (still around in
5291 lib/widgets.c 'cause we might want the font selector widget).
5293 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
5295 * shapes/network/laptop.(xml|shape):
5296 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
5297 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
5299 2002-06-17 Hans Breuer <hans@breuer.org>
5301 * lib/object_defaults.c : #include <libxml/tree.h> not
5302 <tree.h> pointed out by Xing Wang
5304 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
5306 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
5308 * app/color_area.c: Update to
5309 gtk_color_selection_*_current_color() fixed bad crash issues, plus
5310 updated color conversions.
5312 * sheets/ER/weakentity.xpm: Accepted patch from
5313 quixon@gnuchina.org to make icon match actual appearance.
5315 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
5316 quixon@gnuchina.org.
5318 2002-06-16 Hans Breuer <hans@breuer.org>
5320 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
5321 good tradition of information hiding. Add new function
5322 dia_plugin_get_symbol()
5323 * app/sheets.c app/sheets_dialog_callbacks.c : use it
5325 * app/sheets.c : stop complaining about object_get_type()
5326 returning NULL. This is a consequence of e.g. disabling
5327 plug-ins at runtime _and_ it was and is gracefully handled.
5328 Spitting out g_warning for it isn't appropriate.
5330 * lib/object.[ch] : removed dead code
5332 * app/plugin-mangager.c : almost complete rewrite for gtk2
5333 using GtkListStore/GtkTreeView
5335 * lib/libdia.def : updated externals
5337 * todo.gtk2 : updated, that is removed already done steps
5339 2002-06-15 Hans Breuer <hans@breuer.org>
5341 * objects/uml/class_dialog.c : clean some left-over
5342 utf8-mess, return 0 from "focus_out_event" handlers
5343 to avoid asserting in gtk (#78305). Reconstruct
5344 stereotype/NULL behaviour to avoid rendering empty
5345 stereotypes on classes and member functions
5347 [#56109 - Provide object defaults for StdProp objects,
5348 some remaining issues are discussed in bugzilla]
5350 * lib/object_defaults.c : (new file) manage default properties
5351 of dia objects. The serialization is done with standard
5352 object methods in a diagram compatible format.
5354 * lib/object.c : add object_registry_foreach() which allows
5355 to iterate over all registered object types
5357 * lib/object.h : added prototypes object_default*() and
5358 object_registry_foreach()
5360 * lib/makefile.am lib/makefile.msc : add new file to build
5362 * lib/libdia.def : export new functions
5364 * app/defaults.c : provide StdProp based defaults if the
5365 ObjectType doesn't implement it's own default functions
5367 * app/create_object.c : through dia_object_default_create()
5368 * app/disp_callbacks.c : same here
5370 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
5372 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
5373 sensitivity for deleting segments.
5375 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
5377 * app/color_area.c: (color_area_events):
5378 * app/diagram.c: (diagram_destroy):
5379 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
5381 * app/load_save.c: (diagram_data_load):
5382 * app/menus.c: (menus_get_item_from_path):
5383 * app/preferences.c: (prefs_load):
5384 * app/render_gdk.c: (get_text_width):
5386 * lib/color.c: (color_convert):
5387 * lib/dia_dirs.c: (dia_config_filename):
5388 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
5389 * lib/intl.c: (intl_get_language_list):
5390 * lib/message.c: (message):
5392 * lib/paper.c: (get_default_paper):
5393 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
5394 * lib/widgets.c: (dia_file_selector_get_file):
5396 * objects/standard/image.c: (get_directory):
5400 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
5402 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
5404 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
5406 * app/interface.c: sscanf now returns EOF on empty string, so
5407 handle no match for zoom factor better => correct zoom at start.
5409 * app/sheets.c (create_object_pixmap): Tried to display empty error.
5410 (sheets_optionmenu_create): Died when not finding specified
5411 sheet. Don't think it should.
5413 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
5414 (bug #84367) to place the text better.
5416 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
5418 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
5420 * app/commands.c: Removed unnecessary gnome include. Removed
5421 GNOME-Print support.
5423 * app/menus.h: Removed now unnecessary gnome include.
5425 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
5426 GNOME-specific stock buttons
5428 2002-06-09 Hans Breuer <hans@breuer.org>
5430 * app/app_procs.c : convert 'Modified diagrams exits'
5431 dialog to use GtkMessageDialog. That gives us:
5432 - icons without Gnome dependency
5433 - much less code, also cross platform
5434 - improved useability ?
5436 * app/color_area.c : the Color Selection Widget looked
5437 quite wrong (alpha problems). Fix it by merging in required
5438 changes stolen from The Gimp cvs
5439 * app/color_area.h : to get the right appearance the maskes
5440 needed to be taken into account
5441 * app/interface.c : adapt to color_area_create changes.
5442 Also remove some dead code and finally remove cvs autexpansion,
5443 I was bothered enough by irrelevant differences :-)
5445 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
5446 api, i.e stocks and response to make the GnomeDialog usage
5447 obsolete. Also fixed the issue with closing the 'parent'
5448 before closing the dialog
5450 * app/display.[ch] : removed some dead code and conversion
5451 to new GtkDialog api. Also trying to conform to new HIG
5452 standard http://developer.gnome.org/projects/gup/hig/
5454 2002-06-09 Hans Breuer <hans@breuer.org>
5456 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
5459 * lib/dia_image.c : gtk_widget_set_default_visual()
5460 remove. It does nothing with Gtk2.
5462 * lib/libdia.def : added ps_unicoder exports
5464 * lib/message.c : remove #GNOME use GtkMessageDialog.
5465 Yeah, Dia gets dialogs wit icons cross-platform.
5467 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
5468 to gtk_spin_button_get_value()
5470 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
5472 add #undef GTK_DISABLE_DEPRECATED to still use ...
5473 * lib/prop_text.c : ... GtkText
5474 * lib/prop_widgets.c : ... GtkList
5475 * lib/prop_dialogs.c : ... gtk_signal_connect and more
5476 * lib/widgets.c : ... (too much to list here)
5478 * lib/ps-utf8.c : #include <string.h>
5480 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
5483 * Makefile.am: Adapted for gtk2.
5484 Removed dependencies on libunicode, on iconv(), on langinfo().
5486 * acconfig.h: removed (now obsolete)
5488 * lib/charconv.[ch]: removed (superceded by glib)
5489 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
5491 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
5492 libunicode types for their glib counterparts. Fixed the include
5493 paths for libxml2. Removed all traces of libxml1 or non-UTF8
5494 support (there were remains in objects/uml).
5497 2002-06-08 Hans Breuer <hans@breuer.org>
5499 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
5500 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
5501 Also use g_strdup()'s handling of NULL by returning NULL
5502 again at all places I found (remove unnecessary if's)
5504 * todo.gtk2 : new file to keep notes about gtk2 porting,
5505 further issues and thoughts and some status information.
5506 Also sent to dia-list ('Dia goes Gtk2 ...').
5508 [make it compile with GTK+ 2.0]
5510 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
5511 removed definition of S_ISDIR, S_ISREG and getlogin
5513 * */makefile.msc : Use GTK2 and libxml2
5514 BEWARE: makefile.am, configure.in not yet ported !
5516 * app/app_procs.c app/diagram.c : remove
5517 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
5518 but set use gtk_menu_set_accel_path() on menu creation
5520 * app/color_area.c lib/widgets.c :
5521 make use of gtk_color_selection_set_has_palette ()
5523 * app/commands.c : gdk_pixbuf_new_from_file wants an
5524 extra argument. Convert from DIR to GDir usage.
5526 * app/diagram_tree.c(button_press_callback) : need to return
5527 FALSE in the signal handler to let gtk process it further.
5528 (get_object_name) : don't leak 'prop'
5530 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
5531 dia_page_layout_destroy() getting called more than once
5533 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
5536 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
5538 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
5539 IIRC this code will not compile unchanged when USE_XIM is defined ...
5541 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
5543 * app/interface.c : there is no widget->klass anymore in Gtk,
5544 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
5545 parameter. Some tweaking of GtkWrapBox usage to get four tools in
5547 switch off GTK's double buffering on Dia's canvas. Otherwise we would
5548 get triple buffering and flicker.
5549 Replace call to GTK private function _gtk_accel_group_attach()
5550 with public gtk_window_add_accel_group()
5552 * app/layer_dialog.c : adapt to GtkTypeInfo changes
5554 * app/load_save.c lib/plug-ins.c lib/sheet.c
5555 objects/custom/custom.c :
5556 simplified by using g_file_test()
5558 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
5559 to gtk_accel_map_<save|load>. Also added common stock-icons
5562 * app/preferences.c : use gtk_button_set_label() instead
5563 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
5565 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
5566 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
5569 * app/recent_files.c : removed GLIB_CHECK_VERSION
5572 plug-ins/metapost/render_metapost.c
5573 plug-ins/pstricks/render_pstricks.c
5574 plug-ins/svg/render_svg.c :
5575 replace getlogin() with g_get_user_name() which always
5578 * app/render_gdk.c : gdk_region_union_with_rect() modifies
5579 inplace now and returns nothing, also less #hell
5581 * app/render_libart.c : some initial #hell cleaning, SuckFont
5582 still needs to vanish
5584 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
5585 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
5587 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
5588 * app/sheets_dialog_callbacks.c : some #hell and adaptions
5589 needed to GtkWrapBox api changes
5592 * lib/charconv.[hc] : removed from build
5593 [changed appropriate]
5594 * lib/prop_inttypes.c lib/prop_text.c :
5596 * lib/text.c : ported from HEAD but keep original indent
5597 intact. Original was done by Akira TAGOH.
5599 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
5601 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
5603 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
5604 same on all platforms now!
5606 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
5608 * lib/message.c : remove "charconv.h"
5610 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
5613 * lib/sheet.c : convert from DIR to GDir usage
5615 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
5617 * lib/widgets.h : include gtk<label|colorseldialog>.h
5620 * objects/fs/flow.c :
5621 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
5623 * objects/custom/custom.c : convert from DIR to GDir usage
5626 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
5629 2002-05-03 Hans Breuer <hans@breuer.org>
5631 * lib/dia_xml.c : make the well formed utf8 check
5632 actually work for û (non 7-bit ascii encoding)
5633 and fixed the file re-writing if the check fails.
5634 Thanks to Vitaly Lipatov for noticing the misbehaviour.
5636 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
5637 comment on last ressort font. Thanks to Maxim Sobolev.
5639 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
5641 * sheets/network.sheet.in: corrected a typo in plotter invocation.
5643 2002-06-03 Steffen Macke <sdteffen@web.de>
5645 * shapes/network/digitizing_board.png:
5646 * shapes/network/digitizing_board.shape:
5647 * shapes/network/plotter.png:
5648 * shapes/network/plotter.shape:
5649 * shapes/network/Makefile.am
5650 * sheets/network.sheet.in: added new plotter and digitizing
5653 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
5655 * lib/font.c: made a symptomatic fix to a segfault reported by
5656 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
5657 won't prevent dia from terminating, but should give more
5658 user-friendly information about why did it terminate.
5660 Two patches from <robert.young@dsto.defence.gov.au>:
5662 * app/display.c: fix the size of the canvas area which gets
5663 redrawn. There was an off-by one error (Closes #83659)
5665 * app/display.c: make sure we redraw all screen only when we
5666 really have to (some update_areas were mistakenly ignored) (Closes
5669 * NEWS: added a new entry for the future. Put there a reminder to
5670 update the dependencies.
5672 * configure.in: put in notes about what will change shortly.
5673 upped the version to 0.90+cvs (did also in config.h.win32)
5674 upped the minimum version for intltools (now 0.21)
5676 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
5682 bumped up version number to 0.90. Yay!
5684 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
5686 * doc/pl/Makefile.am:
5687 * doc/en/Makefile.am: fixed a "make install" problem when db2html
5688 is not present (Reported by Andrew Ferrier
5689 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
5690 problem which prevented me from ever seeing the problem in doc/en...
5692 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
5694 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
5695 way to read the font path from the XFS configuration files in
5696 order to enable FreeType (fixes #83098).
5698 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
5705 bumped up version number to 0.90.RC3
5707 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
5709 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
5710 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
5711 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
5712 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
5713 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
5714 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
5715 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
5716 Added Polish documentation.
5718 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
5720 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
5721 format for the UML State object. Now there's a hack to reload
5722 older files, and get them converted on the fly.
5723 Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
5727 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
5728 and adapter the proplist predicates. A LOAD_ONLY property is for
5729 when you have legacy to support but can't resist moving your
5730 fields around... (was needed to support the above state.c fix).
5732 If the in-core of your object changes and you need a LOAD_ONLY
5733 property for the old format, you must keep some spare room in your
5734 object's struct to accomodate for the potential old-style
5735 attributes. Then in foo_load(), after having called
5736 object_load_using_properties(), you must inspect the old-style
5737 fields and act accordingly. Don't ever change the on-disk formats...
5739 * objects/UML/object.c:
5740 * objects/UML/small_package.c: added a check against empty
5741 stereotypes still consuming space. Reported by Dolores Alia de
5742 Saravia <loli@unsa.edu.ar>. Thanks!
5744 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
5746 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
5747 using libtool on an AFS partition.
5749 * po/update_potfiles_in.sh: now simply calls the recent intltools
5750 features; they work better than hand-crafted half-ignorant
5751 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
5754 * po/POTFILES.in: added back two files update_potfiles_in.sh
5755 didn't take into account. Now this file is not automatically
5757 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
5758 (the usual suspects, in fact).
5760 * configure.in: improved the isinf() / isfinite() detection on
5761 Solaris (MÃ¥rten Svantesson)
5763 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
5765 * configure.in: one expression was replacing $CFLAGS, removing
5766 whatever was previously in.
5767 Added more checks for isinf() and finite() on Solaris.
5769 * lib/geometry.h: added a macro defintion for isinf() if not
5770 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
5773 * app/commands.c: "cut" did not set the 'modified' bit (paste has
5774 been for a little while). Fixes #82994.
5776 * Makefile.am: added more stuff to distclean-local. This should make
5777 "make distcheck" pass! Thanks to the author of
5778 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
5779 ... I wonder who this Henstridge guy is ... ;-)
5780 Darn. Still doesn't pass. I give up for tonight.
5782 * po/update_potfiles_in.sh: updated to take care of sheet files,
5783 and to filter out the EML plug-in.
5784 * po/POTFILES.in: updated with all .c and all .sheet.in files
5786 * po/dia.pot, po/*.po: again updated all .po files with all
5787 strings (with the updated POTFILES). Now with the up-to-date
5788 POTFILES, just all languages have some fuzzy or untranslated
5789 strings (not that the 100% team was that large beforehand...)
5791 * po-checktrans: removed the comment about .po files not holding
5792 all translatable stuff, since now they do.
5794 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
5800 bumped up version number to 0.90.RC2
5802 2002-05-20 Hans Breuer <hans@breuer.org>
5804 * app/load_save.c : starting to increase
5805 Dias tolerance on incomplete/broken files. The
5806 corresponding bug is #56233. But the patch there does
5807 neither apply anymore nor does it really fix the problem
5808 but only delays it, e.g. even if it would be allowed
5809 to read a file without any layers, the later code can't
5811 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
5812 handle passing in NULL for the node gracefully.
5814 * shapes/network/printer.shape : added two more connection
5815 points - one at each side - to fix bug #60359
5817 * app/commands.c (edit_copy_callback) :
5818 add ddisplay_do_update_menu_sensitivity() to make
5819 sequence select-copy-paste work.
5821 2002-05-20 Hans Breuer <hans@breuer.org>
5823 * app/create_object.c (create_object_button_press) :
5824 added a call to ddisplay_do_update_menu_sensitivity()
5825 to make Ctrl^D etc work after object creation.
5828 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
5830 * objects/ER/entity.c:
5831 * objects/ER/attribute.c:
5832 * objects/ER/relationship.c: Patch to allow text size change from
5833 Celso Tetsuo Nagase Suzuki.
5835 2002-05-18 Steffen Macke <sdteffen@web.de>
5837 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
5839 * doc/en/graphics/greendots.png:
5840 * doc/en/home_network.png:
5841 * doc/en/line_props.png:
5843 * dia_gnome_icon.png:
5844 * dia_gnome_menu_icon.png:
5846 * shapes/network/telephone.png:
5847 * shapes/Logic/and.png:
5848 * shapes/Logic/buffer.png:
5849 * shapes/Logic/connector.png:
5850 * shapes/Logic/inverter.png:
5851 * shapes/Logic/nand.png:
5852 * shapes/Logic/nor.png:
5853 * shapes/Logic/not.png:
5854 * shapes/Logic/or.png:
5855 * shapes/logic/xor.png:
5856 * samples/ER-demo.dia:
5858 * samples/UML-demo.dia:
5859 * samples/chronograms.dia:
5860 * samples/grafcet.dia: re-added as binary files
5862 2002-05-17 Hans Breuer <hans@breuer.org>
5864 * lib/libdia.def : reflect removing of render_store.[ch]
5866 * */makefile.mingw : remove VERSION definition it's
5867 done in config.h.win32. Dia still doesn't work if
5868 build with mingw ...
5870 * RELEASE-PROCESS : removed */makefile.mingw
5872 * app/sheets_dialog_callbacks.c : if we use those
5873 ugly charconv_gtk_* functions lib/charconv.h needs to
5875 * lib/charconv.h : ... and needs to contain the
5876 necesseray prototypes _and_ #defines
5878 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
5879 is deprecated and does nothing but spit a warning. This broke
5880 the shape format writing. Fixed.
5881 Also with libxml2 pretty formatted xml isn't the default
5882 anymore, but needs to be enabled explicit: It is done now
5883 for shape files, which almost always needed to be edited by
5886 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
5887 from stderr - which is invalid on Dia/win32 - to g_print -
5888 which opens up a console window if necessary. This way
5889 a xml-deprecation-error shouldn't stay unnoticed next time
5891 2002-05-17 Steffen Macke <sdteffen@web.de>
5893 * shapes/Misc/folder.png:
5894 * shapes/Misc/file.png: re-added as binary files
5896 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
5898 * lib/font.c: Fixed segfault for fonts without family_name.
5900 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
5902 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
5904 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
5905 Lars' request, minor cosmetic stuff (mostly _() of human-readable
5906 XML comments in .sheet files; one translator booby-trap disarmed).
5908 * lib/charconv.c: moved #hell inside the body of the new
5909 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
5912 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
5914 * plug-ins/wpg/Makefile.am (INCLUDES):
5915 * plug-ins/shape/Makefile.am (INCLUDES):
5916 * plug-ins/svg/Makefile.am (INCLUDES):
5917 * plug-ins/pstricks/Makefile.am (INCLUDES):
5918 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
5919 and DEBUG_CFLAGS in some missing places.
5921 * MAINTAINERS: New file containing list of known package
5925 * lib/charconv.c: Charconv versions of some common gtk calls.
5927 * app/sheets_dialog_callbacks.c
5928 (on_sheets_new_dialog_button_ok_clicked),
5929 (on_sheets_dialog_button_edit_clicked),
5930 (on_sheets_dialog_button_remove_clicked),
5931 (on_sheets_edit_dialog_button_ok_clicked):
5932 * app/sheets.c (sheets_optionmenu_create),
5933 (sheets_optionmenu_create): Added utf8 translations.
5935 * app/sheets_dialog.c:
5937 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
5939 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
5941 * po/POTFILES.in: added app/sheets_dialog.c
5943 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
5945 * lib/charconv.c: (charconv_local8_to_utf8),
5946 (charconv_utf8_to_local8): tweaked the warnings to get more
5948 * lib/font.c: (font_get_suckfont): handled a potential case of
5949 uninitialised data being used (just paranoid)
5951 * objects/GRAFCET/boolequation.c: (opstring),
5952 (opblock_get_boundingbox), (opblock_draw),
5953 (boolequation_calc_boundingbox): some extra hoops needed now dia
5954 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
5955 symbols can't yet be used with their proper Unicode cells, since
5956 gtk will demand them in the Symbol font, expressed in the local
5959 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
5960 the fix just above).
5962 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
5964 * app/diagram_tree.c (get_object_name): Check that name property
5965 doesn't have null string.
5967 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
5969 * autogen.sh (DIE): Added conditional --force to gettextize.
5971 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
5974 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
5976 * RELEASE-PROCESS: added James' notes on how to properly make the
5979 * configure.in: removed macro nesting related to libpng.h, which
5980 was causing some problems on some systems (like mine, which made
5983 Made --enable-unicode, previously an option, the mandatory case.
5985 * app/Makefile.am: updated EXTRA_DIST
5988 * app/makefile.mingw:
5990 * doc/en/dia-manual.sgml:
5991 * plug-ins/makefile.mingw:
5992 * configure.in: bumped up the version number to 0.90.RC1
5994 * lib/render_objects.[ch]:
5995 * po/POTFILES.in: removed render_objects from the build.
5997 * plug-ins/Makefile.am:
5998 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
5999 so we keep its source in the tarball.
6001 * objects/network/*.c, Makefile.am:
6002 * objects/sybase/*.c, Makefile.am:
6003 * po/POTFILES.in: cleaned up the non-existent files from the po
6006 * plug-ins/Makefile.am: re-enabled metapost plug-in.
6008 2002-05-13 Steffen Macke <sdteffen@web.de>
6011 * app/command.c: added M. C. Nelson to the Authors
6012 * sheets/Circuit/Makefile.am: added firewall shape to build
6013 * sheets/network/Makefile.am: added telephone and microphone
6016 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
6018 * RELEASE-PROCESS: Added list of files that contain the release
6019 number or should otherwise be changed at each release.
6021 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
6023 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
6024 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
6026 2002-05-12 Hans Breuer <hans@breuer.org>
6028 * config.h.win32 : changed VERSION to 0.90.RC1
6030 * app/makefile.msc lib/makefile.msc : use renamed
6031 gdk-pixbuf version (same content but renamed because
6032 all the other gtk+ dlls are renamed) to avoid trouble
6033 mixing gtk versions (of which one would not
6036 * app/app_procs.c : removed recently unneeded
6037 inclusion of "sheets.h"
6039 * app/render_gdk.c : removed my own debug spew
6040 which should never made it to cvs
6042 * lib/render_object.[hc] : added
6043 #error "File not used anymore."
6045 * lib/libdia.def : updated externals
6047 * app/interface.c : dropped filenames need to be
6048 converted from uri with Gtk+2.0
6050 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
6052 * RELEASE-PROCESS (new): a draft document about how to release. To
6053 be discussed. (already with some input from Hans Breuer)
6055 2002-05-12 Steffen Macke <sdteffen@web.de>
6057 * sheets/Makefile.am: re-added Misc sheet to make process
6059 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
6061 * objects/FS/function.c: Added comments to humungous list of menu
6062 items, to aid translators.
6064 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6066 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
6068 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
6070 * app/interface.c (create_toolbox): Disallow shrinking beyond
6071 requested size. Fixes bug #59439, and confirms to GTK guidelines
6072 (see gtk_window_set_policy).
6073 (create_sheets): Removed now unnecessary set_usize call.
6075 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6077 * lib/beziershape.c (remove_handles): Fixing removal of last
6078 segment. Undo of removal still hokey.
6080 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
6082 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
6084 * lib/beziershape.c (beziershape_init): Removed early call to
6085 beziershape_update_data where points aren't set yet.
6086 (beziershape_add_segment): Use segment 0 instead of overflowing
6087 points array with segment+1.
6088 (beziershape_remove_segment): Proper offset for fixing
6090 (remove_handles): Proper offset.
6092 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
6094 * objects/GRAFCET/action.c (action_update_data): Init x value of
6095 click point for call to connpointlist_adjust_count.
6097 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
6099 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
6100 setting to where values are inited.
6102 * lib/polyshape.c (polyshape_init): Removed call to
6103 polyshape_update_data that tried to use uninitialized data.
6105 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6107 * app/sheets_dialog.c: Mass removal of //-style comments. The
6108 Irix compiler doesn't like them:( I do...
6110 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
6112 * app/render_libart.c (draw_string): Bail out when no GDK font is
6114 (set_font): Give error when font not found.
6115 (set_fillstyle): Intlized error msg.
6117 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
6118 modified when applied (and ok only does apply if apply is set
6119 sensitive). Fixes bug #75623.
6121 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
6123 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
6125 2002-05-05 Steffen Macke <sdteffen@web.de>
6127 * app/Makefile.am: added $(UNICODE_CFLAGS)
6129 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
6131 * app/commands.c (help_manual_callback): Check return value of
6134 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
6136 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
6139 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
6141 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
6143 * objects/UML/uml.c (uml_operation_read): Fix of UML default
6146 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6148 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
6149 Added button to toggle diagram compression.
6151 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6153 * lib/font.c: Support for loading extra kerning files, plus got
6154 rid of rounding errors. Bounding box mostly perfect for freetype
6156 (font_string_width): Fudge factor to get around nonlinearity of
6159 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
6161 * lib/font.c (font_string_width): YA font calculation scheme, with
6164 * objects/UML/class.c (umlclass_calculate_data): Uses the same
6165 font for drawing and calculating now.
6167 * configure.in: Added utime.h check.
6169 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
6170 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
6172 2002-04-26 Hans Breuer <hans@breuer.org>
6174 [ Instead of fixing about 70 occurances in 20 files
6175 where GTK_TALKS_UTF8_WE_DONT needed to be handled
6176 Dia on win32 from now on uses glib-2.0 and not
6177 only talks utf-8 with gtk-1.3 but also internally.
6178 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
6181 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
6182 #undef GTK_TALKS_UTF8_WE_DONT
6184 * */makefile.msc : changes to use glib-2.0 (still
6185 using gtk+1.3(win32-production)
6187 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
6188 adapt kevent->string handling, add <string.h>
6189 * app/render_gdk.c (get_text_width) : the length given
6190 is in chars, gdk_text_width() needs bytes
6192 * app/render_libart.c :
6193 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
6194 (could simplify the same way as done in render_gdk.c)
6196 * app/diagram_tree.c app/paginate_gdiprint.cpp
6198 * lib/prop_basic.c lib/prop_geomtypes.c
6199 lib/propdialgs.c lib/propobject.c :
6200 added <string.h> which is now removed from charconv.h
6202 * lib/charconv.h : optional use infrastructure from
6203 glib-2.0 -> only five direct function mapping left
6205 * lib/charconv.c : avoid to build this with glib-2.0
6207 * lib/font.c : no string conversion needed anymore
6208 when Dia and Gtk talk utf-8, also code adaptions
6209 for GLIB_CHECK_VERSION(2,0,0)
6211 * lib/libdia.def : removed charconv functions
6213 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
6214 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
6216 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
6217 removed GTK_TALKS_UTF8_WE_DONT
6219 * lib/text.c : finally(?) fixed cursor <place|move>ment
6220 for Umlauts. Also fixed char insertion, still wondering
6221 how this could ever work. Does realloc on Linux
6222 initialize the memory with zeros ?
6224 * objects/chronogram/chronoline_event.c
6225 objects/grafcet/boolequation.c :
6226 there is no uni_get_utf8 when building for glib-2.0.
6227 Replace with g_utf8_get_char() and g_utf8_next_char().
6229 * objects/uml/stereotype.c (bracketted_to_string) :
6230 simplify while adding code for glib-2.0 build
6232 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
6234 * app/diagram.h: Autosave field
6235 * app/diagram.c (diagram_set_modified): Sets autosave field.
6237 * objects/UML/usecase.c (usecase_update_data):
6238 * objects/flowchart/ellipse.c (ellipse_update_data):
6239 * objects/flowchart/parallelogram.c (pgram_update_data):
6240 * objects/flowchart/diamond.c (diamond_update_data):
6241 * objects/custom/custom_object.c (custom_update_data):
6242 * objects/UML/state.c (state_update_data):
6243 * objects/UML/small_package.c (smallpackage_update_data):
6244 * objects/UML/object.c (objet_update_data):
6245 * objects/UML/note.c (note_update_data):
6246 * objects/UML/node.c (node_update_data):
6247 * objects/UML/component.c (component_update_data):
6248 * objects/UML/classicon.c (classicon_update_data):
6249 * objects/UML/actor.c (actor_update_data):
6250 * objects/SADT/box.c (sadtbox_update_data):
6251 * objects/FS/function.c (function_update_data):
6252 All now update text boundaries from update_data.
6254 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
6257 2002-04-26 Hans Breuer <hans@breuer.org>
6259 * config.h.win32 : added VERSION definition here
6260 (and removed from makefile.msc's)
6262 * app/makefile.msc : added new files
6264 * app/app_procs.c (app_init): remove sheets_dialog_create()
6265 from start-up and ...
6267 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
6268 sheet_dialog here when it is really needed.
6269 #include "../lib/message.h", make sheets_dialog_create()
6270 return it's success or failing on (!custom_type_symbol).
6271 Although editing shapes is nice IMHO it isn't crucial enough
6272 to abort() Dia if it isn't possible.
6274 * app/sheet.h : adapt create_sheet_dialog() prototype
6276 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
6278 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
6279 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
6280 name space corrections for utime() and utim_buf #ifdef
6283 * lib/libdia.def : export new sheet functions
6285 * lib/makefile.msc : added new files
6287 * lib/render.c : don't put draw_bezier_with_arrows() in
6288 the DrawLineWithArrowsFunc slot
6290 * objects/custom/custom_object.c : #include <gmodule.h>
6291 and export 'custom_type' via G_MODULE_EXPORT
6293 * objects/uml/class_dialog.c : removed 'incompatible
6294 types' warnings. Some refactoring while making it fit
6295 on screen with 800x600 again.
6297 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
6299 * plug-ins/python/pydia-handle.h : extra parameter to
6300 PyDiaHandle_New to store the owner of the handle
6301 * plug-ins/python/pydia-handle.c : store handle owner
6302 on construction and use it in new method .connect()
6303 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
6304 adapt to changed prototype
6306 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
6308 * lib/text.c (text_calc_boundingbox): Will now return early if box
6311 * objects/flowchart/box.c (box_update_data): Now updates text
6312 width info from update_data.
6314 2002-04-23 Steffen Macke <sdteffen@web.de>
6316 * plug-ins/xfig/xfig-import.c: fixed text import
6318 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
6320 * app/export_png.c: Moved dialog functions to their own file.
6321 * app/dialogs.[ch]: New files with standard functions for creating
6322 small, transient dialogs (e.g. export options).
6323 * app/Makefile.am: Added dialogs.[ch]
6325 2002-04-19 Steffen Macke <sdteffen@web.de>
6327 * shapes/Misc/folder.*:
6328 * shapes/Misc/file.*:
6329 * shapes/Misc/Makefile.am:
6330 * shapes/Makefile.am:
6331 * sheets/Misc.sheet.in:
6332 * sheets/Makefile.am:
6333 * configure.in: added new Misc sheet containing filesystem shapes
6335 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
6337 * app/lineprops_area.c: Arrow selector in toolbox changed to use
6338 standard arrowdraw code. Line is thinner to make some arrowheads
6341 2002-04-18 Steffen Macke <sdteffen@web.de>
6343 * sheets/network.sheet.in:
6344 * shapes/network/telephone.shape:
6345 * shapes/network/Makefile.am: added telephone shape
6347 2002-04-16 Steffen Macke <sdteffen@web.de>
6349 * sheets/EML.sheet.in: commented out unavailable shapes
6351 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
6353 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
6354 variable assignment.
6356 2002-04-15 Steffen Macke <sdteffen@web.de>
6358 * plug-ins/dxf/dxf-import.c: text import works again
6359 * shapes/Pneumatic/Makefile.am: added compush shape
6360 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
6363 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
6365 * All these modifications are for the 'Sheets and Objects' dialog
6368 * app/pixmaps/line_break.xpm: new icon representing a line break.
6370 * app/pixmaps/n_a.xpm: new empty icon representing not available.
6372 * app/Makefile.am: added sheets_*.[ch] files to compile list.
6374 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
6376 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
6378 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
6380 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
6382 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
6384 * app/sheets_dialog_callbacks.h: [new file] support for " " "
6386 * app/interface.c: added 'interface_current_sheet_name' global to
6387 fill_sheet_wbox(); made fill_sheet_menu() non-static
6389 * app/interface.h: added extern declaration for aboves.
6391 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
6393 * app/sheets.h: [new file] declarations for backing store structures
6395 * lib/sheet.c: modification of new_sheet() parameters; introduction
6396 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
6397 changes to load_register_sheet().
6399 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
6400 added 'has_icon_on_sheet' flag to SheetObject structure; added
6401 'filename', 'scope', 'shadowing' fields to Sheet structure.
6403 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
6406 * lib/plug-isn.h: see above.
6408 * lib/object.c: added 'sheet.h' to include list; added several
6410 to detect objects which are not found on any sheet (for future use)
6411 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
6412 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
6414 * lib/object.h: added public declarations for above functions where
6417 * objects/custom/custom.c: made custom_object_load() non-static so we
6418 can load and interpret .shape files from the Sheets & Objects dialog
6420 * objects/custom/custom_object.c: made 'custom_type' non-static so
6421 we can differentiate between SVG shapes and other types.a
6423 2002-04-07 Hans Breuer <hans@breuer.org>
6425 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
6426 from 2002-01-22 to not destroy diagram->data->selected.
6427 Avoids to crash on Objects/Align/Vertical/Top
6429 * app/render_eps.c (draw_string) : un-const buffer
6430 It isn't at all const (g_malloc(), assignment, g_free()).
6431 Doesn't gcc catch such ?
6433 * lib/arrows.h : prototype calculate_arrow_point()
6435 * lib/font.c (font_get_suckfont) : no need to
6436 special case gdk_draw_string() with GTK_TALKS_UTF8,
6437 cause all the parameter differences are handled above
6439 * lib/libdia.def : updated externals
6441 * lib/makefile.msc : removed string_prerenderer, added render
6443 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
6444 is expected. [Sometimes it's good to read compiler warnings.]
6446 * objects/standard/image.c : simplified by use of g_strconcat()
6448 * plug-ins/python/makefile.msc : updated for Python 2.2
6450 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
6452 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
6453 directionality problem for zero-length line segments.
6455 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
6457 * app/diagram.c (diagram_ungroup_selected)
6458 (diagram_update_menu_sensitivity): Now allows ungrouping of
6459 several groups at once.
6461 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
6463 * lib/render.c, all renderers: Binary incompatibility, change to
6464 expandable renderops structure.
6466 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
6468 * objects/standard/Makefile.am:
6469 * objects/network/Makefile.am:
6470 * objects/UML/Makefile.am:
6471 * objects/ER/Makefile.am:
6472 * objects/FS/Makefile.am:
6473 * objects/flowchart/Makefile.am:
6474 * objects/custom/Makefile.am:
6475 * objects/GRAFCET/Makefile.am:
6476 * objects/chronogram/Makefile.am:
6477 * objects/SADT/Makefile.am:
6478 * plug-ins/cgm/Makefile.am:
6479 * plug-ins/pstricks/Makefile.am:
6480 * plug-ins/hpgl/Makefile.am:
6481 * plug-ins/wpg/Makefile.am:
6482 * plug-ins/svg/Makefile.am:
6483 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
6485 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
6487 * app/render_eps.c: Support for dumping TrueType fonts (taken from
6490 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
6492 * lib/render.c: New abstract super class for renderers.
6494 2002-03-07 Akira TAGOH <tagoh@redhat.com>
6496 * objects/ER/attribute.c (attribute_save): save a font property.
6497 (attribute_load): load a font property, and if can't load it, it's
6500 * objects/ER/entity.c (entity_save): save a font property.
6501 (entity_load): load a font property, and if can't load it, it's
6504 * objects/ER/relationship.c (relationship_save): save a font property.
6505 (relationship_load): load a font property, and if can't load it, it's
6508 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
6510 (umlclass_save): save the font and the font size properties.
6511 (umlclass_load): load the font and the font size properties.
6513 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
6515 * lib/string_prerenderer.[ch] (REMOVED):
6517 * lib/diagramdata.c:
6519 * app/render_eps.c: got rid of the string-specific string
6520 prerenderer, transitioned its functionality towards Lars'
6523 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
6525 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
6526 may need to rerun aclocal.
6528 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
6530 * lib/font.c: First attempt at Unicodeness for Freetype.
6532 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6534 * lib/font.c (font_string_width): Fixed font_string_width for
6535 freetype. BB is now almost right.
6537 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
6540 * app/paginate_psprint.c (paginate_psprint):
6542 * app/render_eps.c: Support for dumping postscript fonts into
6543 postscript files with freetype. Fairly primitive, but works.
6544 Unicode version may have problems.
6546 2002-02-28 Akira TAGOH <tagoh@redhat.com>
6548 * objects/UML/class_dialog.c (class_read_from_dialog)
6549 (class_fill_in_dialog), (class_create_page): add the font selector and
6550 the font size selector.
6552 * objects/UML/class.c (umlclass_draw): uses each font_height.
6553 (umlclass_calculate_data): ditto.
6554 (fill_in_fontdata): add initial value of new font_height.
6555 (umlclass_copy): add new font_height.
6557 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
6559 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
6561 * lib/font.c: calculate font metrics properly and stop guessing at
6564 2002-02-28 Akira TAGOH <tagoh@redhat.com>
6566 * configure.in: changed gtk_advancement value to dia_talks_utf8.
6567 right now Dia is working with UTF-8 internally. it means Dia probably
6568 support most languages also including the languages which heretofore
6569 didn't work correctly.
6571 2002-02-26 Akira TAGOH <tagoh@redhat.com>
6573 * objects/FS/function.c: add related text properties.
6574 (function_get_props), (function_set_props): add handling attribute.
6576 * objects/FS/flow.c: add related text properties.
6577 (flow_get_props), (flow_set_props): add handling attribute.
6579 * objects/FS/flow-ortho.c: add related text properties.
6580 (orthflow_set_props), (orthflow_get_props): add handling attribute.
6582 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
6584 * objects/ER/entity.c: ditto.
6586 * objects/ER/attribute.c: ditto.
6588 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
6590 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
6592 * autogen.sh: add a check for missing intltoolize.
6594 2002-02-20 Akira TAGOH <tagoh@redhat.com>
6596 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
6597 charcode, it was registered the duplicate item to HashTable. fix.
6599 * app/render_gnomeprint.c (get_width_string): add new function.
6600 (draw_string): fix non-multibyte specific code.
6602 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
6604 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
6606 * lib/font.c: do not try to search paths that do not begin with
6607 '/', like X Font Server addresses.
6609 * objects/UML/message.c (message_draw): free mname when not
6610 message->text but CREATE or DESTROY.
6612 * objects/UML/uml.h:
6613 * objects/UML/uml.c:
6614 * objects/UML/class_dialog.c: added code to handle a stereotype
6615 attribute for operations.
6617 2002-02-19 Akira TAGOH <tagoh@redhat.com>
6619 * lib/Makefile.am: add LIBART_CFLAGS.
6621 2002-02-15 Hans Breuer <hans@breuer.org>
6623 * lib/font.c (font_get_suck_font): the black and white pixel values
6624 need to be taken from a 1 bit colormap rather than the default colormap.
6625 (fixed again, last time was 2000-05-26)
6627 Also handle the case where GTK_TALKS_UTF8 and expects all strings
6628 passed in to be in this encoding.
6630 * lib/libdia.def : export suck_font_free()
6632 * lib/text.c (text_draw) : avoid circular dependency to ../app
6633 at least for the !USE_XIM case, where it is unnecessary.
6635 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
6637 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
6639 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
6640 * sheets/Circuit.sheet.in: added new shape microphone
6641 * shapes/Circuit/speaker_de.shape: Added a connection point.
6643 2002-02-13 Akira TAGOH <tagoh@redhat.com>
6645 * app/render_libart.c (draw_string): fixed build issue for Win32.
6647 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
6650 * configure.in: fixed testing gtk_advancement.
6652 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
6654 2002-02-12 Akira TAGOH <tagoh@redhat.com>
6656 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
6659 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
6661 * app/group.c (group_copy): Made new object properly initialized
6664 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
6666 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
6668 2002-02-10 Akira TAGOH <tagoh@redhat.com>
6670 * lib/text.c (text_draw): fixed XIM transaction.
6672 * app/interface.c (create_display_shell): add signal for
6675 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
6677 (set_input_dialog): remove.
6678 (ddisplay_canvas_events): remove XIM transaction. it can't transact
6679 correctly on this function.
6681 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6684 * app/export_png.c: Added checks for interactivity (maybe this
6685 should be a hook after all?).
6687 * app/filedlg.c (file_export_callback): Made export dialog add
6688 suffix when reopened.
6690 * app/export_png.c: Added dialog asking for export size.
6692 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6694 * lib/widgets.c: Fixed font reselection problem and first font
6697 * objects/UML/actor.c (actor_update_data): Changed to have
6698 connection points below text.
6700 2002-02-08 Akira TAGOH <tagoh@redhat.com>
6702 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
6705 2002-02-07 Akira TAGOH <tagoh@redhat.com>
6707 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
6708 strings which is given.
6709 (suck_font): remove. it's any longer needed.
6711 * app/render_libart.c (set_font): don't get suckfont.
6712 (draw_string): get suckfont only which is needed for now.
6714 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6716 * lib/text.c: Fixes for misunderstood width functions.
6718 2002-02-05 Hans Breuer <hans@breuer.org>
6720 * lib/dia_xml.c : use g_strconcat() instead of
6721 malloc, strcpy, strcat dance
6722 * app/properties.c : same here and plug memory leak
6723 (gtk functions don't eat strings)
6725 * objects/UML/message.c : there is no g_sprintf()
6726 use g_strdup_printf() instead ...
6728 2002-02-05 Akira TAGOH <tagoh@redhat.com>
6730 * lib/message.c (gtk_message_internal): doesn't need to convert to
6733 * app/render_libart.c (draw_string): fixed transaction for UTF-8
6735 (get_text_width): ditto.
6737 * app/Makefile.am (EXTRA_DIST):
6738 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
6740 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
6741 This function needs ifdef HAVE_FREETYPE because don't use it for
6744 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
6746 * NEWS: updated with the new dependencies.
6748 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
6750 * objects/UML/class.h:
6751 * objects/UML/class.c:
6752 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
6753 property using a GtkMenu. Options are Undefined, In, Out, In & Out
6755 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
6757 * app/render_libart.c: Slow but working libart freetype renderer,
6760 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6762 * app/render_gdk.c (draw_string): Fixed gc_function bug.
6764 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
6766 * lib/font.c (freetype_render_string):
6769 * app/render_gdk.h: Changed freetype_render_string to use
6770 callback. Rendering is broken.
6772 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
6774 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
6776 * objects/UML/uml.h:
6777 * objects/UML/uml.c: added UMLInheritanceType and isQuery
6778 (constant) UML Operation attributes. UMLInheritanceType is either
6779 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
6781 * objects/UML/class.h:
6782 * objects/UML/class.c:
6783 * objetcs/UML/class_dialog.c: added code to handle new
6784 UMLOperation attributes via a GtkMenu and a checkbox.
6786 2002-02-03 Akira TAGOH <tagoh@redhat.com>
6788 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
6789 several client doesn't work with previous codes.
6791 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
6793 * lib/font.c (freetype_render_string): Kerning. Very few fonts
6796 2002-02-02 Akira TAGOH <tagoh@redhat.com>
6798 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
6799 when doing the operation like invert the objects after active view is
6800 destroyed. when changes focus, it needs to set active_display.
6802 * app/layer_dialog.c (dia_layer_update_from_layer):
6803 (layer_dialog_edit_layer): need to convert to locale encoding
6804 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
6805 (edit_layer_ok_callback):
6806 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
6808 * lib/diagramdata.c (new_diagram_data): ditto.
6810 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
6812 * lib/diagramdata.c (new_layer): use utfchar instead of char for
6815 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
6816 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
6817 it's needed for now. also this function needs prototype declaration.
6819 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6821 * lib/widgets.c: Style now functional on font selector. Some leak
6822 possible, but doesn't show up under stress test.
6824 2002-01-31 Akira TAGOH <tagoh@redhat.com>
6826 * app/plugin-manager.c (clist_select_row): name and description needs to
6827 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
6828 (get_plugin_manager): ditto.
6830 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
6832 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
6835 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
6836 when prop->string_data is NULL.
6838 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
6841 * lib/widgets.h: New font selector separating font and style.
6842 Style not functional yet.
6844 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
6847 * app/render_gdk.c (draw_string): More freetype support, now
6848 renders text. Still broken is font selection and exporting.
6850 2002-01-30 Akira TAGOH <tagoh@redhat.com>
6852 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
6855 * objects/chronogram/chronoline.c (chronoline_create): ditto.
6857 * objects/UML/usecase.c (usecase_create): ditto.
6859 * objects/UML/state.c (state_create): ditto.
6861 * objects/UML/object.c (objet_create): ditto.
6863 * objects/UML/node.c (node_create): ditto.
6865 * objects/UML/message.c (message_create): ditto.
6867 * objects/UML/component.c (component_create): ditto.
6869 * objects/UML/classicon.c (classicon_create): ditto.
6871 * objects/UML/actor.c (actor_create): ditto.
6873 * objects/SADT/box.c (sadtbox_create): ditto.
6875 * objects/SADT/annotation.c (annotation_create): ditto.
6877 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
6879 * objects/GRAFCET/step.c (STEP_FONT):
6880 * (step_create): ditto.
6882 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
6884 * objects/GRAFCET/action.c (ACTION_FONT):
6885 (action_create): ditto.
6887 * objects/FS/function.c (function_create): ditto.
6889 * objects/FS/flow.c (flow_create):
6891 (flow_apply_defaults): ditto.
6893 * objects/FS/flow-poly.c (flow_create):
6895 (flow_apply_defaults): ditto.
6897 * objects/FS/flow-ortho.c (orthflow_create):
6899 (orthflow_apply_defaults): ditto.
6901 * objects/ER/relationship.c: use utfchar instead of char for structure.
6902 (relationship_create): name needs to convert to UTF-8.
6904 * objects/ER/attribute.c: use utfchar instead of char for structure.
6905 (attribute_create): name needs to convert to UTF-8.
6907 * objects/ER/entity.c: use utfchar instead of char for structure.
6908 (entity_create): name needs to convert to UTF-8.
6910 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
6911 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
6912 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
6913 items. if GTK_TALKS_UTF8 isn't defined.
6915 2002-01-29 Akira TAGOH <tagoh@redhat.com>
6917 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
6918 it was my careless mistake...
6920 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
6921 a font name, because there are strings which isn't shown by "Courier".
6922 We need to consider a way to feel free to choose a font at runtime.
6924 * lib/render_object.c (render_object_load): ditto.
6926 * lib/text.c (data_text): ditto.
6928 * objects/EML/instantiation.c (instantiation_create): ditto.
6930 * objects/EML/interaction-ortho.c (interaction_ortho_create):
6931 (interaction_ortho_load): ditto.
6933 * objects/EML/interaction.c (interaction_create):
6934 (interaction_load): ditto.
6936 * objects/EML/process.c (fill_in_fontdata): ditto.
6938 * objects/ER/attribute.c (attribute_create):
6939 (attribute_load): ditto.
6941 * objects/ER/entity.c (entity_create):
6942 (entity_load): ditto.
6944 * objects/ER/relationship.c (relationship_create):
6945 (relationship_load): ditto.
6947 * objects/UML/association.c (association_create):
6948 (association_load): ditto.
6950 * objects/UML/class.c (fill_in_fontdata): ditto.
6952 * objects/UML/constraint.c (constraint_create): ditto.
6954 * objects/UML/dependency.c (dependency_create): ditto.
6956 * objects/UML/generalization.c (generalization_create): ditto.
6958 * objects/UML/implements.c (implements_create): ditto.
6960 * objects/UML/large_package.c (largepackage_create): ditto.
6962 * objects/UML/note.c (note_create): ditto.
6964 * objects/UML/realizes.c (realizes_create): ditto.
6966 * objects/UML/small_package.c (smallpackage_create): ditto.
6968 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
6970 * objects/custom/custom_object.c (custom_create): ditto.
6972 * objects/network/antenna.c (render_to_store): ditto.
6974 * objects/network/computer.c (render_to_store): ditto.
6976 * objects/network/disc.c (render_to_store): ditto.
6978 * objects/network/flash.c (render_to_store): ditto.
6980 * objects/network/hub.c (render_to_store): ditto.
6982 * objects/network/modem.c (render_to_store): ditto.
6984 * objects/network/modularswitch.c (render_to_store): ditto.
6986 * objects/network/monitor.c (render_to_store): ditto.
6988 * objects/network/printer.c (render_to_store): ditto.
6990 * objects/network/rj45plug.c (render_to_store): ditto.
6992 * objects/network/scead-plug.c (render_to_store): ditto.
6994 * objects/standard/textobj.c (textobj_load): ditto.
6996 * objects/sybase/client.c (render_to_store): ditto.
6998 * objects/sybase/dataserver.c (render_to_store): ditto.
7000 * objects/sybase/ltm.c (render_to_store): ditto.
7002 * objects/sybase/repserver.c (render_to_store): ditto.
7004 * objects/sybase/rsm.c (render_to_store): ditto.
7006 * objects/sybase/stableq.c (render_to_store): ditto.
7008 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
7010 * objects/UML/uml.h (UML_STEREOTYPE_START):
7011 (UML_STEREOTYPE_END): changes default strings.
7013 2002-01-28 Akira TAGOH <tagoh@redhat.com>
7015 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
7016 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
7017 which is given to arguments isn't UTF-8. so don't need to convert it.
7018 if GTK+ handle UTF-8, also don't need to convert it.
7020 (bracketted_to_string): fixed transaction for UTF-8 support.
7021 also start/end bracket is not necessarily 1 character. so that when use
7022 strend(), it doesn't work correctly.
7023 (string_to_stereotype): use utfchar instead of char.
7024 (remove_stereotype_from_string): ditto.
7025 (stereotype_to_string): ditto.
7027 * objects/UML/stereotype.h: ditto.
7029 * objects/UML/message.c: use utfchar instead of char for structure.
7030 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
7032 * objects/UML/small_package.c: use utfchar instead of char for structure.
7034 * objects/UML/realizes.c: ditto.
7036 * objects/UML/object.c: ditto.
7038 * objects/UML/large_package.c: ditto.
7040 * objects/UML/implements.c: ditto.
7042 * objects/UML/generalization.c: ditto.
7044 * objects/UML/dependency.c: ditto.
7046 * objects/UML/constraint.c: ditto.
7048 * objects/UML/component.c: ditto.
7050 * objects/UML/class_dialog.c (attributes_get_current_values):
7051 (attributes_list_new_callback, attributes_fill_in_dialog):
7052 (parameters_set_values, parameters_get_values):
7053 (parameters_get_current_values, parameters_list_new_callback):
7054 (operations_set_values, operations_get_values):
7055 (operations_get_current_values, operations_list_new_callback):
7056 (operations_fill_in_dialog, templates_set_values):
7057 (templates_get_values, templates_get_current_values):
7058 (templates_list_new_callback, templates_fill_in_dialog):
7059 fixed transaction for UTF-8 support.
7061 2002-01-27 Akira TAGOH <tagoh@redhat.com>
7063 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
7065 * objects/UML/class_dialog.c (class_read_from_dialog):
7066 (class_fill_in_dialog):
7067 (attributes_get_values): ditto.
7069 * objects/UML/actor.c (actor_create): ditto.
7071 * objects/UML/class.c (umlclass_calculate_data): ditto.
7073 * objects/UML/association.c (association_apply_properties):
7074 (fill_in_dialog): ditto.
7076 * objects/UML/uml.c (uml_get_attribute_string):
7077 (uml_get_operation_string):
7078 (uml_get_parameter_string):
7079 (uml_get_formalparameter_string): use utfchar instead of char.
7081 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
7084 * objects/UML/class.h: use utfchar instead of char.
7086 * lib/dia_xml.c (data_add_string): ditto.
7088 * lib/text.c (text_insert_char): fixed characters# calculation
7089 when includes multibytes character in strings.
7091 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
7093 Patch from Richard Rowell <rwrowell@bellsouth.net>:
7095 * app/lineprops_area.c:
7098 * lib/widgets.c: added crow foot arrow and cross arrow
7100 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
7102 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
7104 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
7106 * po/update.pl (REMOVED):
7107 * po/update.sh (REMOVED):
7108 * xml-i18n-merge.in.kg (REMOVED):
7109 * xml-i18n-update.in.kg (REMOVED):
7110 * sheets/Makefile.am:
7113 * configure.in: converted from xml-i18n-tools to intltools
7115 This looks like it fixes the build bugs of the snapshot tarballs,
7116 and it supersedes #69611.
7118 2002-01-25 Akira TAGOH <tagoh@redhat.com>
7120 * lib/text.c (text_insert_char): fixed characters# calculation.
7121 it's not string length.
7123 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
7124 is defined, needs to convert a description to UTF-8.
7126 * app/render_gdk.c (get_text_width): fixed transaction for
7127 UTF-8 support. also should uses gdk_text_width_wc() instead
7128 of gdk_text_width().
7130 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
7131 is defined, needs to convert to locale encoding for display.
7132 Also use utfchar instead of char for argument.
7134 2002-01-24 Hans Breuer <hans@breuer.org>
7136 * app/commands.c(edit_paste_callback and more) :
7137 call diagram_modified(ddisp->diagram) to fix #68083
7138 (help_menu_callback) : plug a DIR leak
7140 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
7141 GTK_TALKS_UTF8_WE_DONT
7143 * app/render_gdk.c(get_text_with) : it's a bad idea to use
7144 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
7145 gdk_text_width(). The length value is still questionable ...
7147 * lib/charconv.c : use functions already available in early
7148 GLIB-1.3 days whiches API hasn't changed since, to avoid
7149 version problems with the win32 build
7151 * lib/font.c : finally fix #58045 and #68208
7153 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
7155 2002-01-24 Akira TAGOH <tagoh@redhat.com>
7157 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
7158 no strings, fixed transaction.
7160 * lib/charconv.h: fixed typo.
7162 * app/menus.c: fixed typo.
7164 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
7166 * objects/UML/object.c: attrib's type uses utfchar instead of char.
7168 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
7170 * lib/text.c (text_create_change): use unichar instead of char.
7172 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
7173 use utfchar instead of char.
7175 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
7178 * lib/charconv.c (charconv_utf8_get_char): add new function.
7180 2002-01-23 Akira TAGOH <tagoh@redhat.com>
7182 * lib/text.c (text_delete_forward, text_delete_backward,
7183 text_split_line): fixed transaction for UTF-8 support.
7185 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
7186 strlen[] has string length for UTF-8, so has to use alloclen[].
7190 * .cvsignore: add dia.pot.
7192 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
7194 * configure.in: Added "sk" to ALL_LINGUAS.
7196 2002-01-22 Akira TAGOH <tagoh@redhat.com>
7198 * lib/text.c (text_set_string, new_text, text_copy,
7199 text_get_string_copy, text_join_lines): use utfchar instead of gchar
7202 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
7205 * lib/charconv.c (charconv_utf8_strchr): add new function.
7207 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
7209 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
7211 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
7212 strings to the appropriate encoding.
7214 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
7216 * app/object_ops.c (object_list_align_[hv]): Leak fix.
7218 * lib/Makefile.am (INCLUDES): Added debug flags.
7220 * app/object_ops.c: Fixed ordering problem of align equi-distant &
7223 2002-01-21 Akira TAGOH <tagoh@redhat.com>
7225 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
7228 * objects/GRAFCET/boolequation.c: fixed invalid comment.
7230 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
7231 when defined UNICODE_WORK_IN_PROGRESS.
7233 * lib/dia_xml.c (data_add_string): fixed typo.
7235 2002-01-20 Akira TAGOH <tagoh@redhat.com>
7237 * configure.in: fixed test gtk_advancement.
7239 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
7241 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
7244 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
7246 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
7247 tool tips, preferences, and arbitrarily long ~/.dia/history
7249 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
7250 removed 'Open Recent'; added new separators for recent documents on
7253 * app/interface.[ch] (interface_get_toolbox_shell): new function
7255 * app/diagram.c: added new parameter to recent_file_history_add() call
7257 * app/preferences.[ch]: added new 'Recent documents list size'
7260 2002-01-18 Akira TAGOH <tagoh@redhat.com>
7262 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
7263 if it failed, should be used gdk_font_load ().
7265 * lib/font.c (font_data): added the font entries for CJK.
7267 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
7269 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
7271 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
7273 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
7275 Patch from Martin Cracauer <cracauer@cons.org>:
7277 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
7280 2002-01-01 Hans Breuer <hans@breuer.org>
7282 * app/command.c : optional use GDI printing on windoze
7284 * app/preferences.[hc] : add option 'prefer_psprint' to
7285 select the print engine to use (could be used for Dia/Gnome
7288 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
7289 wmf plug-in with the common win32 print api. Now printing
7290 should work almost as expected from a windows program :-)
7292 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
7293 to .edit_delete to avoid clashes with C++
7295 * app/makefile.msc : updated for GDI printing
7297 * plug-ins/wmf/wmf.cpp : some small modifications to support
7298 GDI printing. Also swap R and B channel in draw_image()
7300 * app/makefile.am : added windows only files to EXTRA_DIST
7302 * objects/uml/class.c(umlclass_set_props) : force recalculation
7303 when applying properties
7305 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
7306 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
7307 many incompatible changes (and would force a gtk update)
7309 * objects/makefile.msc : don't build C-Objects which are
7310 already available as 'pure shape'
7312 * plug-ins/makefile.msc : remove diaimport from build. It was
7313 only available via mailing-list and is broken since the
7317 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
7319 * app/preferences.[hc] : tweaked preferences.c to make
7320 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
7321 added some more DiagramTree prefererences and their own
7324 * app/diagram_tree.[hc] : allow to sort by object type or name
7325 and hide by type ...
7326 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
7327 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
7329 * app/diagram_tree_window.c : handle hidden types and window
7332 2001-12-20 Hans Breuer <hans@breuer.org>
7334 * plug-ins/python/Makefile.am : patch from Peter Moulder
7335 <pmoulder@csse.monash.edu.au> to make the python plug-in
7336 compile on *nix too.
7338 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
7340 Patch from Alan <horkana@tcd.ie>:
7342 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
7344 2001-11-20 Hans Breuer <hans@breuer.org>
7346 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
7348 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
7350 * app/diagram_tree.[hc] : Added new functions and types for
7351 sorting diagram and objects, and attaching the popup menus.
7353 * app/preferences.h: Added more diagram tree preferences, using a
7354 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
7355 height and width of the diagram tree window and the default sort
7356 orders for diagrams and objects.
7358 * app/preferences.c (prefs_data): Added new entries for the new
7359 diagram tree preferences.
7361 * app/preferences.c (prefs_tabs): New tab for diagram tree
7364 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
7365 * app/diagram_tree_window.c (diagram_tree_window_new):
7366 * app/interface.c (create_tree_window): The diagram tree window is
7367 initialised using the DiagramTreeConfig part of prefs.
7370 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
7372 * app/diagram_tree_menu.[hc]: New files. Functions to create the
7373 diagram tree popup menus.
7375 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
7376 the diagram tree popup menus.
7378 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
7381 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
7383 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
7384 double-clicking a diagram tree node raises the diagram window
7385 to the foreground (and, if a object node was clicked, selects the
7386 object in the diagram).
7388 * app/diagram_tree.c (select_tree_widget): selecting an object
7389 node with single click simply updates it (no raise).
7391 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
7392 These changes make the diagram tree lazy: it is not created unless
7393 the diagram tree window is requested.
7395 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
7396 function for creating the tree window.
7398 * app/interface.c (create_tree_window): call
7399 create_diagram_tree_window() instead of diagram_window().
7401 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
7402 (diagram_tree_update, diagram_tree_update_name)
7403 (diagram_tree_add_object, diagram_tree_add_objects)
7404 (diagram_tree_remove_object, diagram_tree_remove_objects)
7405 (diagram_tree_update_object): accept a NULL tree as a nominal
7406 argument (and do nothing in this case!), so that the diagram tree
7407 is not initialised if not used.
7409 * app/diagram_tree_window.c (diagram_tree): do not create the
7410 diagram tree until diagram_window() or diagtree_show_callback()
7413 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
7414 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
7416 * app/diagram_tree_window.[hc] : (new files) implementation of
7417 the diagram tree window, a container for a diagram tree. [Removed
7418 the horizontal scroll bar glitch by disableing it]
7420 * app/diagram_tree.[hc] : (new files) implementation of the
7421 diagram tree widget. [Don't rely on the layers GPtrArray to be
7422 NULL terminated, but use its ->len field]
7424 * app/Makefile.am (dia_core_files): added new files
7425 diagram_tree.[hc] and diagram_tree_window.[hc]
7427 * app/interface.[hc] : (create_tree_window): this function
7428 creates the new diagram tree window widget
7430 * app/undo.c (delete_objects_apply) (delete_objects_revert)
7431 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
7432 (ungroup_objects_apply) (ungroup_objects_revert):
7433 every time that an undoable command modifies a diagram
7434 adding/removing/(un)grouping objects, a diagram_tree_something() is
7435 invoked to keep the diagram tree window in sync
7437 * app/properties.c (properties_apply): call to
7438 diagram_object_modified(), which updates the diagram tree window
7439 when the properties of an object are modified
7441 * app/preferences.[hc] : new "show_diagram_tree" configuration option
7442 (whether the diagram tree window should be shown on dia startup)
7444 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
7446 * app/diagram.h (diagram_object_modified): callback notifying of a
7447 diagram object modification
7449 * app/diagram.c (diagram_load_into): added call to
7450 diagram_tree_add() to add newly loaded diagrams to the diagram
7452 (diagram_destroy): call to diagram_tree_remove() to remove a
7453 destroyed diagram from the diagram tree window
7454 (diagram_add_object): call to diagram_tree_add_object() to add an
7455 object to the diagram tree window
7456 (diagram_add_object_list): as above, but with an object list
7457 (diagram_selected_break_external): deletion of objects from the
7458 diagram is detected here, and diagram_tree_remove_object() is
7459 invoked to remove the object from the diagram tree window (it
7460 would be nice to have a diagram_remove_object() in the Diagram
7462 (diagram_set_filename): update the diagram tree window when a
7463 diagram's filename changes
7465 * app/commands.c (file_new_callback): added call to
7466 diagram_tree_add() to add newly created diagrams to the diagram
7469 * app/app_procs.c (app_init): added call to create_tree_window()
7471 * app/makefile.msc : updated
7473 2001-10-28 Hans Breuer <hans@breuer.org>
7475 * app/preferences.h (DiaPreferences):
7476 * app/preferences.c (prefs_data): new "show_diagram_tree"
7477 configuration option (whether the diagram tree window should be
7478 shown on dia startup)
7480 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
7481 entry (both for GNOME and gtk)
7483 * app/diagram.h (diagram_object_modified): callback notifying of a
7484 diagram object modification
7486 * app/diagram.c (diagram_load_into): added call to
7487 diagram_tree_add() to add newly loaded diagrams to the diagram
7489 (diagram_destroy): call to diagram_tree_remove() to remove a
7490 destroyed diagram from the diagram tree window
7491 (diagram_add_object): call to diagram_tree_add_object() to add an
7492 object to the diagram tree window
7493 (diagram_add_object_list): as above, but with an object list
7494 (diagram_selected_break_external): deletion of objects from the
7495 diagram is detected here, and diagram_tree_remove_object() is
7496 invoked to remove the object from the diagram tree window (it
7497 would be nice to have a diagram_remove_object() in the Diagram
7499 (diagram_set_filename): update the diagram tree window when a
7500 diagram's filename changes
7502 * app/commands.c (file_new_callback): added call to
7503 diagram_tree_add() to add newly created diagrams to the diagram
7506 * app/app_procs.c (app_init): added call to create_tree_window()
7508 2001-10-28 Hans Breuer <hans@breuer.org>
7510 * plug-ins/python/pydia-property.c : apparently I missed
7511 to commit this last time. Now it has some more SetAttr
7512 support (apply from property)
7514 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
7516 * plug-ins/python/pydia-text.[ch] : new files
7518 2001-10-14 Hans Breuer <hans@breuer.org>
7520 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
7521 strings. Use g_strdup() for these.
7523 libxml2 does not produce 'any extra indentation when saving a tree'
7524 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
7525 libxml(1). To get human readable XML some extra tweaking is required.
7526 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
7527 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
7528 * app/preferences.[ch] : initialize 'pretty_formated_xml'
7530 * lib/libdia.def : updated externals
7532 * lib/properties.h : add prototype for prop_list_from_single ()
7534 * plug-ins/makefile.msc : build metapost plug-in
7536 * plug-ins/metapost/render_metapost.c : msvc does not like
7537 switch labels without operation 'default: }'. Added a noop.
7539 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
7540 * plug-ins/python/diamodule.c : added PyDiaText
7541 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
7542 Although the python plug-in does not use libxml at all, the
7543 headers are required to use the lib/prop*.h headers
7545 * plug-ins/python/pydia-diagramdata.c : added wrappers for
7546 update_extents and get_sorted_selected (should I duplicate
7547 more functions from PyDiaDiagram or should they be moved?)
7549 * plug-ins/python/pydia-properties.c : allow to set (some) properties
7550 through the dictionary api
7551 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
7552 * plug-ins/python/pydia-property.c : implement it (currently only
7553 string properties can be set)
7555 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
7556 Quoting myself: 'Still not convinced that this is better than an
7557 integral property->type and some casting ...
7558 It is trading a straightforward 40 lines switch statement to
7559 this nice 'type safe' function mapping (about 125 lines)'
7560 (But now it works again, better than changing the News file :)
7562 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
7564 patch from <robert.young@dsto.defence.gov.au>:
7565 * objects/UML/component.c: remember to set font in UML component
7566 object (fixes #62132)
7568 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
7570 * plug-ins/metapost/metapost.c:
7571 * plug-ins/metapost/Makefile.am:
7572 * plug-ins/metapost/render_metapost.c:
7573 * plug-ins/metapost/render_metapost.h:
7574 Metapost renderer from Chris Sperandio
7576 2001-09-14 Hans Breuer <hans@breuer.org>
7578 * app/render_gdk.c : reflect the fact, that GTK already talks
7579 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
7582 * app/render_libart.c : trying to fix #58045 but it appears
7583 to be an Gdk/win32, too.
7585 * lib/charconv.c : handle utf8 conversion with the help of
7586 glib-1.3 even in the !HAVE_UNICODE case.
7588 * lib/dia_xml.c : reduce complaing about missing encoding, by
7589 detecting if the default (utf8) would break the file.
7591 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
7593 * lib/charconv.c: (get_local_charset): at least please try to not
7594 silently change the logic, while avoiding crashes.
7596 * lib/font.c: (suck_font): put a #error, we have a nasty something
7597 to fix there before we switch to Gtk 2.0.
7599 2001-09-09 Hans Breuer <hans@breuer.org>
7601 * **/makefile.mingw : Approach to compile Dia with mingw.
7602 Compiling mostly works but running does not (yet) ...
7605 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
7606 Apparently mingw needs it too.
7607 - enable 'normalization' of a null verctor. Otherwise the beziergon
7608 bounding box calculation would be broken at least with msvc. What's
7609 the mathematical correct result of 0.0/0.0 ?
7611 * lib/dia_xml.c : isinf() for mingw too.
7613 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
7616 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
7619 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
7621 * lib/libdia.def : updated externals. Apparently mingw needs
7622 them to produce the right mangling.
7624 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
7627 2001-09-08 Wang Jian <lark@linux.net.cn>
7629 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
7631 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
7633 * lib/dia_xml_libxml.h:
7634 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
7635 libxml1's code, to rework the output file before it gets committed
7636 to disk. This is rubbish, and will be removed when libxml2
7637 switches from discouraged to mandatory.
7638 All in all, this fixes #60152.
7641 * lib/charconv.c: (charconv_unichar_to_utf8):
7642 made the type of the input parameter explicitly an unsigned long.
7644 * configure.in: Added a check for libz (we must now include it
7645 explicitly, for xmlDiaSaveFile).
7647 * app/load_save.c: (diagram_data_save):
7648 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
7649 (dia_pluginrc_write):
7650 * plug-ins/shape/shape-export.c: (new_shape_renderer),
7651 (end_render), (draw_string):
7652 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
7655 Made sure we always write UTF-8 XML files, and through
7658 * NEWS: documented that fact.
7660 2001-09-07 James Henstridge <james@daa.com.au>
7662 * configure.in (found_libxml): refactor the check for libxml a
7663 little so that it handles finding both libxml1 and 2 better.
7665 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
7667 * app/app_procs.c: removed a spurious } which caused a compilation
7668 error in the (!HAVE_GNOME && HAVE_POPT_H) case
7670 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
7671 don't know what ANSI X3.4-1968 is. I didn't know until this day,
7672 but it's just plain old ASCII. Added a check to shield the poor
7675 Patches from <robert.young@dsto.defence.gov.au>:
7677 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
7678 width and height of text before calculating bounds. Fixes #59928
7680 * app/preferences.c: Moved grid related items into Grid Tab.
7682 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
7684 * app/interface.c: (create_zoom_widget): connected one more signal
7685 to the Zoom selector combo's list. Fixes #59879.
7687 * app/app_procs.[ch]: (app_init) (do_convert)
7688 (build_output_file_name): brought back into the main executable
7689 the rare useful bits of the ill-fated diaconv. This means we have
7690 one new feature : --export-to-format (-t), which should make
7691 writing conversion scripts easier, and a crude implementation of
7692 -t and -e for the poptless argument parsing, which means the Win32
7693 port should be able to take advantage of it (that should make
7694 resolving #58197 possible).
7696 * app/diaconv.c: kept the poor duck compiling (but that's about
7699 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
7702 * NEWS: updated about the new feature above, and documented the
7703 "missing encoding specification" complaint.
7705 2001-09-01 Abel Cheung <maddog@linux.org.hk>
7707 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
7709 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
7711 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
7714 2001-09-01 James Henstridge <james@daa.com.au>
7716 * */Makefile.am: various changes to include missing files, and fix
7717 sheets dir to handle building with builddir != srcdir.
7719 * autogen.sh: unconditionally pass the --enable-maintainer-mode
7720 and --enable-db2html flags so that builds from CVS work correctly.
7722 * configure.in: increment version number. Also add an
7723 --enable-db2html flag. Without the flag, db2html won't be run (if
7724 the flag is passed and db2html is not present, do nothing).
7726 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
7728 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
7729 even compiled. It's really too bad there is no lint tool easily
7730 available (or a more cautious, pedandic, paranoid and verbose
7731 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
7733 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
7736 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
7737 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
7739 * app/menu.c: added ellipsis(...) to diagram properties menu item.
7740 * app/dia-props.c: diagram properties dialog contents did not
7741 represent current diagram settings.
7742 * app/dia-props.[ch]:
7743 * app/display.c: diagram properties contents now follows currently
7745 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
7747 * AUTHORS: added Robert Young.
7749 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
7751 * app/modify_tool.c: (modify_button_release): Patch from
7752 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
7753 #59090: if selection dragging was released outside of the window,
7754 artifacts of the selection box remained.
7756 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
7758 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
7760 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
7763 * sheets/Makefile.am: prepared the terrain for the Version of
7764 xml-i18n-tools Which Comes After 0.9 (and which will feature at
7765 last a sane behaviour with XML files). Some reasonible delay
7766 before enforcing that version *will* be given.
7768 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
7770 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
7771 becomes a nonexistent symbol.
7773 2001-08-18 Hans Breuer <hans@breuer.org>
7775 * app/app_procs.c : made it compile without ENABLE_NLS
7777 * app/diap_callbacks.c : strcmp isn't guaranteed to work
7782 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
7784 xmlGetProp, ... -> xmlFree
7785 malloc, strdup -> free
7786 g_new, g_malloc, g_strdup - > g_free
7788 * app/win32print.c : some more error checking, still not
7791 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
7793 * lib/dia_xml.c : msvc still has no unistd.h
7796 * lib/sheets.c : temporary resolved libxml include brokeness
7798 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
7799 changes. Compiles again, but doesn't do anything useful anymore.
7800 (see THE_PROP_TYPE_IS_INTEGRAL)
7802 * **/makefile.msc : updated to use LIBXML2
7804 * lib/libdia.def : reflect api changes
7806 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
7808 * config.h.win32: added defines telling that gtk speaks UTF8.
7809 Hans, I believe this reflects what GTK on Win32 does.
7811 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
7813 * lib/prop_inttypes.c:
7815 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
7818 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
7819 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
7820 search for plug-ins is done.
7821 * app/Makefile.am: made app/run_dia.sh use the // capability. No
7822 need to update this anymore if we get a new plug-in library (or
7825 * lib/dia_xml.c: #include <unistd.h> was missing.
7828 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
7829 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
7832 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
7834 * sheets/civil.sheet: removed duplicate "Danish" entries.
7839 * sheets/Makefile.am:
7841 * Makefile.am: applied the xml-i18n-tools README's instructions.
7843 * po/(da de fr hu nl nn no sl).po: merged the translations from
7844 the sheet files into the .po files. I hope I haven't mixed
7846 * sheets/*.sheet (REMOVED):
7847 * sheets/*.sheet.in (NEW): moved the sheet files sans
7848 translations into .sheet.in files.
7850 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
7851 because we don't yet want to force all translators to work using
7852 UTF-8 editors. We'll want to do that sometime (sooner rather than
7853 later). Okay, I sing a slightly different tune in po/ChangeLog...
7855 * dia.desktop (REMOVED):
7856 * dia.desktop.in (NEW): used also the x18t infrastructure for
7859 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
7860 "official" version of x18t with support for .sheet files is available.
7861 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
7862 "official" version of x18t which doesn't corrupt UTF-8 data in XML
7865 ** yes, we are now using xml-i18n-tools to manage the sheet
7866 translations. For the Win32 build, Nemo stores snapshots of
7867 translated strings next to the CVS snapshots. **
7869 * sheets/checktrans.py: suddenly, some sheets have lots of
7870 translations (objects which existed before sheets, mostly).
7871 Adapted the formatting.
7873 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
7875 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
7876 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
7877 <robert.young@dsto.defence.gov.au>, to fix #59090.
7879 * app/display.c: (ddisplay_scroll): While at it, added some
7880 margin, so that autoscrolling can happen within a margin outside
7881 the diagram's extents.
7885 * app/disp_callbacks.c: Robert "forced" me to go when I usually
7886 don't, namely the app/ directory. So while I was there, I
7887 scratched a long-time itch. If no object has focus, pressing the
7888 space bar will select back the tool which was selected before the
7889 current one (I find this especially useful with "reset after create" !)
7891 * lib/proplist.c: (prop_list_from_single): Renamed
7892 prop_list_singleton() to avoid confusion with the Singleton
7893 pattern (which it definitely is not).
7895 * lib/propobject.c: (object_prop_by_name_type),
7896 (object_prop_by_name): The "flags" parameter was not necessary.
7897 These don't return synthetic properties, but properties built from
7898 a real property description list; therefore, we don't call
7899 make_new_prop() but use the existing property descriptor, which
7900 has perfectly valid (and meaningful) flags.
7902 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
7903 new predicates better reflect the reason why properties exist when
7904 they're created by make_new_prop() or object_prop_by_name().
7906 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
7907 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
7910 * lib/properties.h: reflects all the above changes.
7912 * objects/SADT/arrow.c:
7913 * objects/SADT/annotation.c:
7914 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
7917 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
7920 * lib/proplist.c: (prop_list_singleton):
7921 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
7922 Added these, to simplify interactions of plug-ins with the StdProp
7927 * lib/dia_xml_libxml.h (NEW):
7932 * objects/custom/shape_info.c: A few prototypes were causing
7933 #include hell, because we generally attempt to not pull the whole
7934 libxml header set when we include dia_xml.h. Moved those
7935 prototypes away for the rare cases they're necessary.
7937 2001-08-15 Hans Breuer <hans@breuer.org>
7939 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
7942 * lib/makefile.msc : updated
7944 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
7945 use G_GNUC_FUNCTION instead.
7947 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
7949 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
7950 msvc instead of cleaning missing includes
7952 * plug-ins/wmf/wmf.cpp :
7953 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
7955 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
7962 * objects/custom/shape_info.c:
7963 * plug-ins/shape/shape-export.c:
7964 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
7965 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
7966 removed xmlKeepBlanksDefault(0) in favour for proper
7967 xmlIsBlankNode() testing. Lots of other fixups to use the
7968 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
7969 make libxml1 output correct files.
7971 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
7972 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
7973 packages). If both devel packages are found, the build will stop
7974 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
7976 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
7977 allocate the first handle :-)
7979 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
7980 a cast and a sizeof.</gratuitous>
7982 * objects/custom/custom_object.c: (custom_copy): don't call
7983 text_get_attrbutes if the shape has no text...
7984 (custom_update_data): The info->resize_with_text code was a bit
7985 directive; basically, the shape's bounding box was forced to be
7986 proportional to the text's bounding box.... This fixes #57187.
7988 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
7989 default for info->aspect_ratio; unobfuscated a line about
7990 info->resize_with_text;
7992 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
7994 * lib/properties.h: added comments next to the PROP_TYPEs to tell
7995 which C Property subclass to use.
7997 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
7998 cast-ridden form of setting properties in a list, in favour for
7999 the "local pointers" form. I'll take any better offer...
8001 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
8003 * lib/font.c: fprintf(...) --> fprintf(format...)
8005 * configure.in: added a disabled versioned test for glib.
8006 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
8007 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
8008 g_critical() with a simple g_error(). Proper fix is to implement
8011 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
8015 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
8016 * lib/proplist.c: (find_prop_by_name_and_type):
8017 * lib/prop_basic.c: (make_new_prop), (initialize_property):
8018 * lib/propoffsets.c: (do_set_props_from_offsets),
8019 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
8020 Added a type_quark member to PropDescription, Property and
8021 PropOffset. Used it to implement a safety in
8022 do_[sg]et_props_from_offsets().
8024 * objects/flowchart/diamond.c: the diamond's text was not saved,
8025 and thus not even copied (c&p).
8026 * objects/standard/textobj.c: ditto.
8028 Most of the above changes thanks to Robert Young's testing. Thanks !
8030 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
8032 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
8035 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
8037 * lib/proplist.c (prop_list_from_descs): added a call to
8038 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
8039 too embarrassing to tell.
8041 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
8042 while loop to a for loop, for symmetry with
8043 prop_offset_list_calculate_quarks().
8045 * lib/geometry.h: new inline function, rectangle_equals.
8047 * lib/diagramdata.[ch]: refactored a bit the diagram extents
8048 computation logic, and changed it to always be the union of the
8049 visible layers' extents. This should close #58882 (Debian
8050 #107167), and fixes #55498.
8052 * app/display.c: made the initial visible box more coherent with
8053 the diagram being loaded's extents.
8055 * app/prop_attr.c: don't set the font (from offset) if font_data
8056 is NULL. Two brainos in colorprop_load() and fontprop_load().
8058 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
8060 * lib/properties.[ch]: split in a lot of pieces:
8062 * lib/prop_*.[ch] (NEW): all property types are now first-class
8063 objects, inheriting from the original abstract Property type.
8064 * lib/propdesc.c (NEW): property description handling routines
8065 * lib/propoffsets.c (NEW): property offset handling routines
8066 * lib/proplist.c (NEW): property list handling routines
8067 * lib/propobject.c (NEW): property list <-> object routines
8068 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
8070 * lib/propinternals.h: prototypes for stuff not usually needed by
8071 the outside of StdProps.
8072 * lib/Makefile.am: a lot of new files have been added...
8074 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
8075 BOTH INTERFACES AND RUN-TIME STABILITY.
8077 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
8079 * lib/object.h: removed the incestuous relationship with
8080 properties.h' contents. Now a Property list is a GPtrArray -->
8081 object interface change !
8083 * app/app_procs.c/app_init(): removed a disabled call to a
8084 non-existent routine. Added a call to stdprops_init().
8086 * objects/Makefile.am: disabled the construction of EML. I'm not
8087 touching these until a certain issue is solved (or this module
8090 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
8091 objects to the interface changes.
8093 * app/disp_callbacks.c: killed a warning.
8094 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
8097 The macros PROP_VALUE_* have disappeared. Adapted to using the new
8100 * plug-ins/dxf/dxf-import.c:
8101 * plug-ins/xfig/xfig-import.c:
8102 PROP_VALUE_* macros have been removed. Converted to the new API.
8104 * plug-ins/python/**/*: I gave up converting this; I can't
8105 compile --with-python (problems with object.h defined both by us
8106 and by Python). I'll gladly help whomever cares to fix it !
8107 (or, fix it myself if someone tells me how to compile it).
8109 * configure.in: added the UNICODE-related progress defines.
8112 * lib/geometry.h: On Solaris and perhaps other systems, finite()
8113 is defined in ieeefp.h rather than in math.h. Patch from Andrew
8114 Halper <ashalper@acm.org> with further modifications, isinf() is
8115 provided by -lsunmath (sunmath.h).
8117 * lib/font.c: conditionally disabled Lars' debugging messages.
8118 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
8120 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
8122 * lib/bezier_conn.h:
8123 * objects/standard/bezier.c (bezierline_create):
8124 * lib/bezier_conn.c (bezierconn_init):
8125 Preparations for use of userdata for bezier lines.
8127 * objects/standard/polygon.c:
8128 * objects/standard/create.h:
8131 * plug-ins/xfig/xfig-import.c:
8132 Use of user_data for polygon as well, including adding
8133 polyshape_set_points. Include file for non-interactive
8134 creation of standard objects, objects/standard/create.h
8136 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
8143 More preliminary freetype support. Not at all functional, crashes
8148 * objects/standard/polyline.c:
8149 Support for creating polyline objects with more than two points.
8150 This includes an extra function and a prototype change in the
8151 poly_conn lib object.
8153 * lib/object.c (object_copy): Fixed memory leak of handles and
8156 2001-08-08 Abel Cheung <maddog@linux.org.hk>
8158 * dia.desktop: added traditional Chinese strings
8160 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
8162 * NEWS: updated to reflect build-time dependencies.
8164 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
8165 around obj->ops->describe_props(obj). Quarks are none of an
8166 object's business in the general case...
8167 * lib/text.c: Added an apply_textattr_properties() function to
8168 factor out some common code related to applying a dialog's text
8169 attribute properties to a (Text *) which wasn't edited there.
8170 Ditto for textstr, for the string part of an objet.
8172 * objects/GRAFCET/action.c:
8173 * objects/SADT/annotation.c:
8174 * objects/SADT/box.c: used apply_textattr_properties().
8176 * objects/UML/actor.c:
8177 * objects/UML/branch.c:
8178 * objects/UML/component.c:
8179 * objects/UML/constraint.c:
8180 * objects/UML/small_package.c:
8181 * objects/UML/state.c:
8182 * objects/UML/usecase.c:
8183 * objects/UML/large_package.c:
8184 * objects/UML/note.c:
8185 * objects/UML/node.c:
8186 * objects/UML/message.c:
8187 * objects/UML/classicon.c:
8188 * objects/UML/object.c:
8189 * objects/UML/realizes.c:
8190 * objects/UML/dependency.c:
8191 * objects/UML/implements.c:
8192 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
8193 (most objects were already using StdProps to some extent ; this
8194 systematises usage and removes some dead wood).
8196 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
8197 * objects/UML/uml.[ch]: audited for UTF-8.
8199 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
8200 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
8201 private (ISO-8859-1) definition.
8203 * lib/charconv.c: Added a warning if we didn't run
8204 nl_langinfo(CODESET) but rely instead on a hardcoded default.
8206 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
8209 * app/disp_callbacks.c: added a way for an object to cause an
8210 already realised menu to be destroyed (for instance if it changes
8213 * objects/custom/custom_object.c: used the above to fix #55073.
8215 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
8217 * configure.in: Remove 2.50 prereq.
8219 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
8221 * po-checktrans.py: under some circumstances, there was one column
8222 more than what was supposed to be, thus breaking the formatting.
8224 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
8226 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
8228 * NEWS: updated with new stuff since 0.88
8230 * shapes/network/antenna.shape: the text was misplaced ; fixed.
8232 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
8233 firewall router (upon request from Cyril Lacoux
8234 <clacoux@easter-eggs.com>)
8236 * configure.in (didn't rename to configure.ac): autoconf 2.50
8237 constructs were used ; added an AC_PREREQ call to guard against
8240 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
8242 * lib/properties.c: minor clean-ups with the event delivery code.
8244 * EML/instantiation.c: brought this object back from stone and ice
8247 * app/diaconv.c(NEW): added a command-line conversion tool. Still
8248 lacks a man page and correctness. In fact, it doesn't work. Please
8249 see #58196 if you want to finish it.
8251 * lib/message.[ch]: redefined things a little so that a different
8252 message_internal routine could be passed.
8253 applications can use that to fit themselves to the display model.
8255 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
8257 * objects/SADT/box.c:
8258 * objects/GRAFCET/action.c: spelling in property descriptors (name
8260 * objects/SADT/annotation.c: ditto, plus a temporary test of the
8261 event delivery code (try to click on the "click me !" button !).
8264 * lib/properties.[ch]: improved (fixed) support for group event
8265 handlers. Fixed various things from yesterday's code to make it
8266 not too obviously crash.
8268 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
8270 * app/group.c: added delivery of events to the first member of the
8271 group which is able to process it.
8273 * lib/properties.c(prop_desc_lists_intersection): properties
8274 don't match if they don't have identical event handler.
8275 * lib/properties.h: simplified the PropEventHandler signature.
8277 Event delivery code is still untested so far, but should be
8280 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
8282 * lib/properties.[ch]: Added (untested !) property event handler
8283 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
8284 generating such events. This stuff compiles, and should lurk
8285 around silently as long as you don't declare property descriptors
8286 with events (AFAICT).
8287 In object_create_props_dialog() and friends:
8288 attached a single structure with lots of data instead of lots of
8289 little attachments of data to the dialog widget.
8291 * lib/object.h: fixed mild typedef breakage introduced by the above.
8293 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
8295 * lots of files: Changed Font to DiaFont
8296 * */Makefile.am: Added FREETYPE_LIBS
8297 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
8299 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
8301 * configure.in: Added "nn" to ALL_LINGUAS.
8303 2001-07-09 Alex Larsson <alexl@redhat.com>
8305 * app/disp_callbacks.c:
8306 Add gdk_im_ready() calls to XIM code.
8308 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
8310 * lib/properties.[ch]: splitted prop_get_widget() into
8311 prop_get_widget() (gives a widget but doesn't fill it) and
8312 prop_reset_widget() (fills an existing widget with a property's value).
8314 * lib/widgets.[ch]: const enforcement police work.
8316 * shapes/network/antenna.shape: added a connection point at top,
8317 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
8319 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
8321 * intl/*: tested with gettext-0.10.38
8322 * configure.in: moved a macro call around (AM_PROG_CC) to keep
8323 some of autogen.sh from complaining.
8324 * INSTALL: added a warning against gettext older than at least 0.10.36
8326 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
8328 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
8329 AM_ICONV (both provided by gettext)
8331 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
8333 * lib/charconv.c: corrected the degraded mode for when
8334 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
8336 * objects/chronoline/chronoline_events.c: UTF8 compliance.
8338 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
8340 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
8341 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
8342 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
8345 * objects/chronogram/chronoline.c:
8346 * objects/chronogram/chronoref.c: took advantage of the above to
8347 make nicer looking dialogs.
8349 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
8350 from libunicode's internals).
8351 * lib/message.c: convert strings to local encoding prior to
8352 display (UNICODE_WORK_IN_PROGRESS)
8353 * lib/properties.[ch]: convert strings to local encoding prior to
8354 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
8355 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
8356 * lib/stringprerenderer.[ch]: ditto
8358 (lib/text.c has been audited for UTF8, but the size of the changes
8359 make them inappropriate for commit before 0.89)
8361 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
8363 * objects/boolequation.h (<save|load>_boolequation): made the
8364 prototypes for match the .c file.
8366 * samples/grafcet.dia: minor non-conformance with IEC-848
8367 fixed (in the transition from step 100 to step 101).
8369 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
8370 disallow editing of properties if the object is part of a group.
8372 * objects/chronogram/chronoline.c:
8373 * objects/SADT/annotation.c:
8374 * objects/SADT/box.c:
8375 * objects/GRAFCET/step.c:
8376 * objects/GRAFCET/transition.c:
8377 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
8379 2001-06-12 Hans Breuer <hans@breuer.org>
8381 * lib/libdia.def : removed lazyprop exports
8382 * lib/makefile.msc : removed lazyprop.obj
8384 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
8385 and avoid crashes by always creating a custom->text,
8386 when (custom->info->has_text)
8388 * objects/makefile.msc : removed sybase from build
8390 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
8391 ObjectNode is a pointer already, which is what we want
8392 instead of a pointer pointer.
8394 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
8395 and implemented working export for images
8397 * shapes/network/zip-disk.shape : added connection points
8399 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
8401 * objects/SADT/box.c: removed lazyprops for standard props.
8402 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
8403 * objects/chronograms/chronoref.c: ditto
8407 * lib/connpoint_line.c:
8408 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
8409 * lib/properties.[ch]: new property types:
8410 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
8411 - PROP_TYPE_MULTISTRING: same as string, but renders as a
8412 multi-line entry box.
8413 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
8414 in a tabbed-notebook style (this is a bit complicated to use;
8415 see objects/chronograms/chronoline.c for an example).
8417 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
8419 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
8420 * objects/GRAFCET/step.c: ditto.
8421 * objects/GRAFCET/vector.c: ditto.
8422 * objects/SADT/annotation.c: ditto.
8423 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
8425 * lib/properties.[ch]: two more non-visible types
8426 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
8428 * lib/neworthconn.[ch]:
8429 * lib/orthconn.[ch]: added support for manipulation through
8430 standard properties.
8432 * configure.in: removed -fomit-frame-pointer, this seems to
8433 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
8436 * charconv.[ch]: more functions from unicode.h.
8437 get_local_charset() wasn't working properly, fixed now.
8438 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
8441 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
8442 * lib/lazyprops.[ch]: put a big fat warning in.
8444 * app/render_eps.c: one line mysteriously went away, causing a
8445 variable to be used uninitialised....
8447 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
8449 * app/app_procs.c: commented out the call to
8450 bind_textdomain_codeset(): it's premature.
8452 * lib/connpoint_line.c: a NULL point can be given to
8453 connpointline_adjust_count(), in case there's not really a clicked
8456 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
8457 #include order troubles. #included by lib/text.h, so there is no
8458 impact outside lib/.
8459 * lib/properties.[ch]: added support for CONNPOINT_LINE and
8460 (nonvisible) TEXT properties.
8462 * objects/GRAFCET/action.c:
8463 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
8466 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
8467 standard properties code). Grafted a dynamic number of connection
8468 points (heavily inspired from what Vergent does). This is the real
8471 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
8473 * lib/fonts.c: some hardening (mostly g_assert())
8474 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
8476 * app/app_procs.c (app_init): added a call to
8477 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
8478 (UNICODE_WORK_IN_PROGRESS).
8480 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
8482 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
8484 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
8485 (fixes #55863) : some clean-ups in the handling of connection
8486 points. Now the total number of connection points is just a
8487 #define (the proper solution is to retrofit the GRAFCET Vergent's
8488 dynamic behaviour wrt connection points).
8490 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
8492 * app/app_procs.c (app_init): added a call to unicode_init() (only
8493 if HAVE_UNICODE, of course).
8495 * lib/charconv.c: simplified the code which detects the local
8496 charset. No need to use <langinfo.h>, libunicode already takes the
8497 burden of figuring that out. Also, if local charset is utf8, no
8498 conversion will take place.
8499 Exposed a way to get the current charset (similar to
8500 unicode_get_charset() but actually working, hopefully).
8502 * lib/charconv.h: Added a partial non-UTF8 implementation of
8503 unicode.h if !HAVE_UNICODE (actually, all the time for the
8504 moment). The UTF8 implementation is just macros on libunicode (use
8505 the functions prefixed by uni_, as defined by charconv.h, not
8506 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
8507 From now on, all strings which don't *need* to be ASCII should be
8508 utfchar *, not gchar *. Just include charconv.h, let it sort out
8509 the details (such as: "is libunicode available and enabled?")
8511 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
8512 "API" instead of directly libunicode. Removed the now unnecessary
8513 speculative clustering of characters in encoding pages.
8515 * app/render_eps.c: made the local8->utf8 conversions dependent of
8516 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
8517 boundary will be when this WIP is done).
8519 * lib/dia_xml.c (data_point): fixed a format string typo.
8521 * po/POTFILES.in: added all C files from lib/
8523 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
8525 * app/disp_callbacks.c: make sure the objects' connected objects
8526 are updated when the objects' size changes after a keypress event
8529 * configure.in: added a big warning about the possible future
8530 non-optionality of --enable-unicode.
8532 * TODO: removed entries which look like done ; added a few ones
8533 (Bugzilla "enhancement" bugs may be a better way to keep track of
8536 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
8538 * objects/UML/message.c: got rid of #55564 and of message_copy()
8539 by using more standard properties (are the message_state_*()
8540 functions still necessary ?)
8542 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
8545 * objecs/custom/shape_info.c:
8546 * plug-ins/shape/shape-export.c:
8547 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
8548 use xmlChar instead of obsolete CHAR.
8550 2001-06-03 Hans Breuer <hans@breuer.org>
8552 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
8553 * app/commands.c : give the right number of parameters
8554 to diagram_update_menu_sensitivity ()
8556 * app/preferences.c : do proper initialization for DiaPrefsData:
8557 render_bounding_boxes. It would be a real surprise if 'hidden'
8558 properties would have ever worked before.
8559 Don't try to access the widgets of hidden property, it does not
8562 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
8563 it is defined in libdia, but initialized from dia app, which
8564 otherwise gave nice start-up crashes.
8566 * lib/diagramdata.c : initialize the color for rendering bounding
8567 boxes in the Dia range (0 .. 1.0)
8569 * lib/libdia.def : added *_bbox functions for export
8571 * lib/makefile.msc : added new sources
8573 * objects/custom/custom_object.c : use HAVE_UNISTD_H
8575 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
8578 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
8579 removes a translation of menus (in a place where there shouldn't
8580 have been), which gets rid of a waterfall of warnings if LANG!=C,
8581 and a fix to #55047.
8583 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
8585 * lib/charconv.c : added #include <errno.h>
8587 * app/dia_embedd.c : updated menus_get_item_from_path usage
8589 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
8591 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
8592 Added a special case for Symbol strings, so that they're not
8593 re-encoded using the LN encoding (we use the bare Adobe encoding
8596 * objects/custom/custom_object.c: Now that #52912 is fixed,
8597 I could remove the ugly hack I wrote to squash the shape bounding box
8598 problem shown by Ben A. Hetland a few months ago, and fix it
8601 * lib/text.c: enlarged a little the bounding box to account for
8602 the cursor in rightmost position.
8604 * lib/diagramdata.c: draw bounding boxes only if the relevant
8605 variable is set (as before), but also only if the rendere is
8606 interactive (ie, don't bother rendering bounding boxes on
8608 Made the bounding box's line width a fixed value, 0.01
8610 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
8611 and assymmetric control beziers. Implemented ellipse_bbox().
8613 * Makefile.am: incantations to get po/dia.pot build, as suggested
8614 by Hubert in #55075.
8616 * shapes/network/computer.shape: typo fixed.
8617 * shapes/network/antenna.shape: fixed #55074 (antenna is now
8618 properly translucent, except for its base where it makes sense. It
8619 doesn't look that ugly anymore if transparent mode is on).
8621 * configure.in: --enable-unicode is now the default. This
8622 still currently affects only printing.
8624 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
8626 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
8627 The overshoot code is buggy, and the bounding boxes for polyshapes
8628 looks a bit cheezy. To be done ASAP.
8630 2001-05-26 James Henstridge <james@daa.com.au>
8632 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
8633 This should clear up some of the build problems people have been
8636 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
8638 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
8641 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
8642 box code (beginning with lines, polylines and polybeziers), into a
8643 more generic facility. While at it, a better shot at correctly
8644 computing the bounding box of a Bezieroid (should take care of
8645 #53424, #51233 and of course is part 1 of #52912).
8647 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
8648 into a hidden preference (set render_bounding_boxes in diarc).
8649 * app/preferences.[ch]: Added support for hidden preferences.
8651 * lib/geometry.[ch]: sprinkled with "const" modifiers.
8653 * lib/bezier_conn.[ch]:
8654 * lib/beziershape.[ch]:
8655 * lib/connection.[ch]:
8657 * lib/poly_conn.[ch]:
8658 * lib/orth_conn.[ch]:
8659 * lib/neworth_conn.[ch]:
8660 * lib/polyshape.[ch]: adapted to take advantage of
8661 boundingbox.[ch] instead of relying on private (duplicate) code.
8664 * object/GRAFCET/action.c:
8665 * objects/GRAFCET/condition.c:
8666 * objects/GRAFCET/vergent.c:
8667 * objects/GRAFCET/vector.c:
8668 * objects/SADT/annotation.c:
8669 * objects/SADT/arrow.c:
8670 * objects/ER/participation.c:
8671 * objects/UML/constraint.c:
8672 * objects/UML/implements.c:
8673 * objects/UML/lifeline.c:
8674 * objects/UML/message.c:
8675 * objects/UML/realizes.c:
8676 * objects/UML/generalization.c:
8677 * objects/UML/association.c:
8678 * objects/UML/dependency.c:
8679 * objects/FS/flow-ortho.c:
8680 * objects/network/bus.c:
8681 * objects/standard/arc.c:
8682 * objects/standard/bezier.c:
8683 * objects/standard/beziergon.c:
8684 * objects/standard/line.c:
8685 * objects/standard/polygon.c:
8686 * objects/standard/zigzagline.c:
8688 * objects/standard/polyline.c: Some *BBExtras structures changed
8689 names while moving to boundingbox.[ch]. A trivial mass-renaming.
8691 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
8693 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
8694 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
8696 * app/display.c (ddisplay_update_scrollbars): from Patrick's
8697 suggestion, remove the extra scrollable area (it was only visible
8698 to the scrollbars). This is experimental.
8700 * objects/custom/custom_object.c: If a shape's icon file doesn't
8701 exist, warn and substitute a default icon, instead of crashing.
8704 * objects/network/network.c:
8705 * shapes/network/modularswitch.(shape|xpm) (NEW):
8706 * shapes/network/printer.(shape|xpm) (NEW):
8707 * shapes/network/genmonitor.(shape|xpm) (NEW):
8708 * shapes/network/computer.(shape|xpm) (NEW):
8709 * shapes/network/Makefile.am: four less objects, four more shapes.
8710 These were the last known RenderObjects. (phew !)
8714 * objects/sybase/Makefile.am:
8715 * objects/network/Makefile.am: Removed the older Renderobjects
8716 from the build, and their infrastructure (not yet deleted,
8719 * shapes/network/sceadplug.shape:
8720 * shapes/network/antenna.shape:
8721 * shapes/network/modem.shape:
8722 * shapes/network/hub.shape:
8723 * shapes/network/rj45plug.shape:
8724 * shapes/sybase/client.shape:
8725 * shapes/sybase/dataserver.shape:
8726 * shapes/sybase/ltm.shape:
8727 * shapes/sybase/repserver.shape:
8728 * shapes/sybase/rsm.shape:
8729 * shapes/sybase/stableq.shape: Minor corrections (line widths were
8730 ten times too narrow).
8732 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
8734 * objects/network/network.c:
8735 * shapes/network/sceadplug.(shape|xpm) (NEW):
8736 * shapes/network/antenna.(shape|xpm) (NEW):
8737 * shapes/network/modem.(shape|xpm) (NEW):
8738 * shapes/network/Makefile.am: four less objects, four more shapes.
8741 * lib/diagramdata.c:
8743 * lib/string_prerenderer.[ch] (NEW):
8744 Add a new renderer primitive, predraw_string() (does nothing, to be
8745 used as a hook to optimise the character encodings if needed).
8746 Added a string pre-renderer, which can be viewed as a filter
8747 renderer (to route draw_string() to predraw_string() and ignore
8748 the rest, in a first rendering pass)
8750 * app/render_eps.c: Took advantage of the above to make wholly
8751 optimised Postscript encoding page(s), even (especially) with
8752 non-latin1 code (HAVE_UNICODE must be true).
8754 (#53512 in fact is wholly resolved).
8756 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
8758 * lib/charconv.c: steps towards resolution of #53512 (inspired by
8759 Alexey Novodvorsky <aen@logic.ru>'s patch).
8761 * app/menus.c (dia_menu_signal_proxy): checked that the signal
8762 handler is not NULL before transferring control to it... (fixes #52836)
8764 * app/app_procs.c (app_init): removed non-constant initialiser
8767 * objects/custom/custom_object.c:
8768 * objects/custom/shape_info.[ch]:
8769 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
8770 <skh@mathstar.com>. This add support for a <svg:text> shape
8771 element, and some related style properties (font, font height,
8774 * doc/custom_shapes: a precision about the meaning of case in a
8775 SVG path (closes #52364)
8777 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
8778 fixed by <drk@sgi.com>)
8780 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
8782 * objects/network/network.c:
8783 * shapes/network/Makefile.am:
8784 * shapes/network/hub.(shape|xpm) (NEW):
8785 * shapes/network/flash.(shape|xpm) (NEW):
8786 * shapes/network/rj45plug.(shape|xpm) (NEW):
8787 More shapes, less renderobjects.
8789 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
8791 * plug-ins/svg/render_svg.c: typo made exported ellipses
8792 corrupted (zero Y pseudo-radius).
8794 * objects/network/network.c:
8795 * objects/network/disc.c:
8796 * shapes/network/disc.(shape|xpm): Converted the first
8797 Renderobject into a shape. Normally, old diagrams should reload
8798 without problems (please check this against your diagrams). More
8799 flexibility should be gained that way. I intend to hunt and
8800 eradicate all renderobjects as I can commit cycles to that.
8802 * objects/Makefile.am:
8805 * objects/sybase/sybase.c:
8806 * shapes/sybase/Makefile.am(NEW):
8807 * shapes/sybase/client.(xpm|shape) (NEW):
8808 * shapes/sybase/dataserver.(xpm|shape) (NEW):
8809 * shapes/sybase/ltm.(xpm|shape) (NEW):
8810 * shapes/sybase/repserver.(xpm|shape) (NEW):
8811 * shapes/sybase/rsm.(xpm|shape) (NEW):
8812 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
8813 renderobjects into shapes. The Sybase objects are now not compiled
8814 anymore, and ready to be nuked if nobody objects in the next few weeks.
8818 * app/disp_callbacks.c:
8820 * app/interface.[ch]:
8822 * app/modify_tool.c:
8823 * app/preferences.[ch]:
8824 * app/recent_files.c:
8825 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
8826 a menu bar reflecting the popup menu, to each display window. This
8827 is optional (changing the preference currently doesn't affect
8828 already opened windows; a few other rough edges to cut).
8830 * plug-ins/wpg/wpg.c:
8831 * plug-ins/xfig/xfig-import.c:
8832 * plug-ins/python/pydia-property.c:
8833 * plug-ins/python/pydia-properties.c:
8834 * plug-ins/python/pydia-geometry.c:
8835 * plug-ins/pstricks/render_pstricks.c:
8837 * objects/EML/dbox.c:
8838 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
8841 * lib/ps-utf8.c: improved the clustering of alphabetic character
8842 definitions in custom encodings pages.
8844 2001-05-02 Hans Breuer <hans@breuer.org>
8846 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
8847 of 'obj_bb' to PROP_TYPE_RECT
8849 * objects/custom/custom_object.c : take all quarks into account,
8850 not only 4 as copy&paste suggests
8852 * objects/uml/objects.c : completed the implementation of the
8853 property api to avoid reading of totally bogus data. Removed
8854 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
8855 there was too much but too less ...
8857 The above changes removed all known crashes (mentioned below)
8858 from the Property API. Property access is still incomplete though.
8860 * objects/flowchart/box.c :
8861 * objects/flowchart/diamond.c :
8862 * objects/flowchart/ellipse.c :
8863 * objects/flowchart/parallelogram.c :
8864 * objects/uml/classicon.c :
8865 * objects/uml/state.c : calculate number of quarks from quark array
8866 size instead of using hardcoded values for consistence and to avoid
8867 future bugs like the above
8869 * objects/eml/nlist.c : include <string.h> for strcmp()
8871 * lib/dia_xml.c : relax g_warning for values, which
8872 appear to be too small. There is nothing which prevents
8875 * plug-ins/python/pydia-geometry.c : changed stringifying of
8876 geometry objects accept BezPoint back to %f, which does not
8877 crash anymore, because all the data is intialized now and it
8878 simply is more readable than %e ...
8880 * plug-ins/python/python-startup.py : removed dependency
8881 to PyGtk, because it isn't required here and probably won't
8882 in i.e.: export filters.
8884 * plug-ins/python/gtkcons.py : create the gtkoutfile even
8885 if sys.stderr.fileno() isn't supported
8887 * app/makefile.msc : make version 0.88
8888 * plug-ins/makefile.msc : make version 0.88 an added new
8891 2001-05-11 James Henstridge <james@daa.com.au>
8893 * NEWS: remember to add news items this time.
8895 * dia.spec: update spec file for 0.88 release.
8897 * configure.in: up version number to 0.88
8899 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
8900 preventing any of the useful python scripts from being
8903 * sheets/Makefile.am (sheet-translation-report): fix bustage I
8904 introduced in my fixups for the 0.87 release :(
8906 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
8908 * plug-ins/xfig/xfig-import.c: Finally got groups working.
8910 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
8912 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
8915 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
8918 * lib/Makefile.am: fix makefile breakage which led to not
8919 including ps-utf8.[ch] in the released tarballs.
8921 2001-05-09 James Henstridge <james@daa.com.au>
8923 * Makefile.am (core-translation-report): dist scripts needed for
8924 this target, and change to $(srcdir) before running.
8926 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
8927 files aren't automatically included in the tarball by automake
8928 because they could be generated files.
8930 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
8932 * doc/en/Makefile.am (install-data-hook): fix up where graphics
8935 * configure.in: up version number to 0.87
8937 * plug-ins/python/*.py: no longer necessary to explicitly set
8938 sys.argv, as python.c does it for us now (like it should).
8940 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
8943 * plug-ins/python/python-startup.py: startup script that imports
8944 all modules in $(datadir)/dia/python and ~/.dia/python.
8946 * plug-ins/python/python.c (dia_plugin_init): change so that it
8947 only runs the $(datadir)/dia/python-startup.py script. Make sure
8948 that sys.argv and __main__.__file__ are set when calling the
8951 * plug-ins/python/Makefile.am: update makefile. Make it install
8952 gtkcons.py plugin. I haven't set any other plugins to install, as
8953 they look like they are mainly for debugging purposes.
8955 * configure.in: add tests to detect if python is available, so we
8956 can build the python plugin. Only run if --with-python passed to
8959 2001-05-08 James Henstridge <james@daa.com.au>
8961 * acinclude.m4: add macros for detecting python.
8963 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
8964 at GNOME_APP_UI_SUBTREE entries.
8965 (menus_add_path): function to add a menu item to the menubars.
8966 Uses a hash table to keep track of extra menu items it adds. Also
8967 notifies the item factory about the entries so that accels can be
8969 (menus_add_path): implement gtk only version.
8970 (menus_init): use menus_add_path() to add the menu.
8971 (plugin_callback): simplify.
8973 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
8975 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
8977 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
8979 * plug-ins/xfig/xfig-export.c:
8980 * plug-ins/xfig/xfig-common.c:
8981 * plug-ins/xfig/xfig-import.c:
8982 * plug-ins/xfig/xfig.c:
8983 * plug-ins/xfig/xfig.h:
8984 * app/Makefile.am: Added support for exporting to Fig format
8985 (except splits, which are less powerful in Fig). Some refactoring
8988 2001-05-02 Hans Breuer <hans@breuer.org>
8990 * plug-ins/python/debug_objects.py : added another
8991 test to get massive crashes from the Property API due
8992 to unintialized data.
8994 * app/menu.c : the callback_action wasn't incremented
8995 (should have checked my last optimization). Now more
8996 than one plug-in callback is supported again.
8998 * plug-ins/python/pydia-geometry.c : avoid crashes from
8999 glib, when trying to g_strdup_printf unintialized floats.
9001 * plug-ins/python/pydia-property.c : avoid crashes from
9002 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
9004 2001-05-01 Hans Breuer <hans@breuer.org>
9006 * objects/makefile.msc : added eml
9007 * objects/eml/instantiation.c : initialize 'inst' pointer
9008 before using, zero initialization for objects
9009 * objects/eml/interaction-ortho.c :
9010 * objects/eml/interaction.c : zero initialization for objects
9012 * app/menus.c : removed Gimp mru stuff which slipped in at
9013 2000-08-15, was never activated and will never be needed,
9014 because of Steffens recent file list patch added at 2001-01-05.
9016 * objects/eml/*.c : some more zero initialization of objects
9017 to avoid infinite (uninitialized) bounding boxes
9019 Implemented a callback api which allows plug-ins to register
9020 menu call backs. Dia for Gnome should compile, but will need
9021 some extra tweaking to make it work because I can't test it.
9023 * plug-ins/python/pydia-error.h :
9024 * plug-ins/python/pydia-render.c : moved Pxthon function return
9025 value handling from pydia-render.c to pydia-error.h, to make it
9027 * plug-ins/python/diamodule.c : implement callback function
9028 registration from and relaying to Python code
9030 * app/menus.c : register and use plug-in menu callbacks
9032 * lib/filter.[hc] : implement filter_register_callback() and
9033 filter_get_callbacks() for the above
9034 * lib/libdia.def : export them
9036 * plug-ins/python/debug_objects.py (new file):
9037 sample using the above
9039 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
9041 * plug-ins/shape/shape-export.c (new_shape_renderer):
9042 The name of a shape is now taken from the dir, to conform with
9045 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
9047 * app/properties.c (properties_show): Added title containing
9048 object type, plus (hopefully) fix of the ghost properties dialog.
9050 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
9052 * app/display.c: remove the display idle handler in case we
9053 destroy the ddisplay (caused crashes in ddd, probably random
9058 * Makefile.am: hack around gettext-0.10.36's new "features".
9060 * lib/properties.[ch]: added new function object_copy_props().
9061 Added new property type PROP_TYPE_ENDPOINTS
9063 * lib/connection.h: added support for load/saving through the
9064 properties interface.
9066 * lib/object.[ch]: object_load/save/copy_using_properties()
9067 support functions (code factorisations).
9069 * objects/GRAFCET/boolequation.c: check against null values in
9070 boolequation_set_value() and boolequation_destroy().
9072 * objects/GRAFCET/transition.c: Converted from lazyprops to
9073 standard properties. 31% less (x86) code !
9075 * objects/GRAFCET/condition.c: also converted from lazyprops to
9076 standard properties. Also killed lots of code.
9078 2001-04-13 Hans Breuer <hans@breuer.org>
9080 * plug-ins/wmf/wmf.cpp : changed text conversion from
9081 g_utf8_utf16 to g_convert usage. The latter function is already
9082 available in tml's last "official" Gtk+ version (2000-12-26).
9083 This change allows to use recent Dia with either the official
9084 version or the latest cvs "gtk-1-3-win32-production"-branch.
9086 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
9088 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
9089 * app/disp_callbacks.c:
9090 - Allow submenus in DiaMenus.
9091 - Don't require DiaMenu.title to be non-null (so that
9092 submenus aren't required to have titles)
9094 * objects/FS/function.c:
9095 - object menu now has submenus, an almost complete list of
9096 standard-basis verbs, and a start on nouns.
9097 - box padding, dash length, and other visual attributes are
9098 scaled by the font size... eventually font height will be
9099 a function property.
9100 - draw functions with smaller font to make initial view hold
9101 a reasonable number of functions.
9103 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
9106 * sheets/chronogram.sheet:
9107 * sheets/jigsaw.sheet:
9108 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
9109 Wieers <dag@wieers.com>
9111 2001-04-13 Hans Breuer <hans@breuer.org>
9113 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
9114 to ensure that all the deinitialization is only done once. Fixes
9115 recent app exit crash on win32
9117 * lib/dia_xml.c : provide isinf() replacement for msc which does only
9120 * lib/libdia.def : updated
9122 * objects/makefile.msc : added wanlink.c
9124 * objects/network/wanlink.c : added M_PI_2 definition for poor
9125 platforms which don't have one
9127 * objects/standard/arc.c :
9128 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
9129 initialized which led to rather huge bounding boxes (try Ctrl^A on
9130 diagrams with Arcs or ZigZagLines).
9131 * objects/*/*.c : to avoid further bugs like the above changed all
9132 object initializations to g_malloc0 or g_new0
9135 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
9137 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
9138 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
9140 * objects/UML/class.c:
9141 * objects/UML/usecase.c:
9142 * objects/UML/large_package.c:
9143 * objects/UML/message.c:
9144 * objects/UML/object.c:
9145 * objects/UML/lifeline.c:
9146 * objects/FS/flow.c:
9147 * objects/FS/flow-ortho.c:
9148 * objects/FS/function.c:
9149 * objects/custom/custom_object.c:
9150 * objects/GRAFCET/vergent.c:
9151 * objects/chronogram/chronoref.c:
9152 * objects/SADT/box.c:
9153 * objects/SADT/annotation.c:
9154 * plug-ins/dxf/dxf-import.c:
9155 * plug-ins/xfig/xfig-import.c:
9156 * plug-ins/wpg/wpg.c:
9159 * app/display.c: /* certainly more WIP than dead code there */
9160 Unused variables, unused static function definitions, forgotten or
9161 incomplete prototypes added or fixed, lack of const or unwanted const,
9162 etc. (mostly clean-ups of leftovers of the pre-properties era).
9163 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
9166 * app/lineprops_area.c: More of the same. Missing prototypes
9167 added, and functions unused outside made static.
9169 * app/recent_files.c:
9171 * app/defaults.c: some variables are used only when doing a GNOME
9174 * app/magnify.c: missing #include <stdlib.h>.
9176 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
9178 These are a lot of clean-ups (by the way, this compiles and runs
9179 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
9180 for DEAD_CODE, and if it's yours, judge it.
9182 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
9184 * plug-ins/dxf-import.c: some progress with the arcs; still some
9185 clean-ups to do and line width scaling issues to figure out.
9187 * objects/standard/arc.c: start_point and end_point properties
9188 (duplicated from standard/line.c)
9190 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
9193 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
9195 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
9196 preliminary support for arcs (doesn't work). Circles and ellipses are
9197 now transparent. Coordinate and width scaling are now a common
9198 static constant (probably before morphing into a preference).
9200 * sheet/checktrans.py: improved error reporting. Made checktrans
9201 count lack of <name xml:lang="code"> as a lack of translation for
9202 language "code" (no, it's not a plot to bring down other
9203 language's scores !)
9205 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
9206 in the header, and have <name xml:lang="fr"> components.
9208 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
9210 * objects/custom/custom_object.c: temporary hack to fix the shape
9211 bounding box reported by Ben A. Hetland. Proper fix isn't .87
9212 material, see bugzilla #52912.
9214 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
9216 * objects/standard/image.c (get_directory): Now uses
9217 G_SEPARATOR_CHAR_S instead of "/"
9219 * sheets/network.sheet:
9220 * sheets/Logic.sheet:
9221 * sheets/Flowchart.sheet:
9222 * sheets/Electric.sheet:
9223 * sheets/Circuit.sheet:
9225 * sheets/Pneumatic.sheet:
9228 * sheets/GRAFCET.sheet:
9230 * sheets/chronogram.sheet:
9231 * sheets/civil.sheet:
9232 * sheets/network.sheet:
9233 Danish translations.
9235 * objects/standard/image.c (get_directory): Changed get_directory
9236 to use g_dirname to find the directory part.
9238 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
9241 * sheets/Electric.sheet:
9242 * sheets/Flowchart.sheet:
9243 * sheets/Logic.sheet:
9244 * sheets/network.sheet: More Dutch translations from Dag Wieers.
9246 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
9248 * sheets/checktrans.py: now emits a warning when two descriptions
9249 for a single language code are found.
9252 * sheets/Makefile.am: -translation-reports now also depend on their
9255 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
9257 * sheets/Circuit.sheet:
9258 * sheets/Contact.sheet:
9259 * sheets/Logic.sheet:
9260 * sheets/chronogram.sheet:
9261 * sheets/sybase.sheet:
9262 Dutch translations from Dag Wieers <dag@wieers.com>
9264 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
9266 * po-checktrans.py: Now shows the detailed counts alongside the
9267 percentage of translations.
9269 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
9272 * po-checktrans (NEW):
9273 * po-checktrans.py (NEW): builds core-translation-report:
9274 percentages of core (gettext) translations done [Not placed into
9275 po/ where that should belong, because of integration fear^Wissues
9278 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
9279 sheets/sheet-translation-report probably ought to be copied on the
9280 user's /usr/share/doc/dia (or equivalent) directory.
9282 * sheets/Makefile.am: sheet-translation-report now a simple
9283 EXTRA_DIST; make install won't install it by default.
9285 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
9287 * app/preferences.c: changed the default grid colour to something
9290 * shapes/SDL/*.shape:
9291 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
9292 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
9293 DIA FILES (well, for files using SDL), see the mailing list
9294 archive "SDL (ab)using the global shape namespace" for a script to
9297 * sheets/SDL.sheet: translated into French
9298 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
9300 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
9302 * lib/dia_xml.c: made data_point() more paranoid
9304 * sheets/Makefile.am:
9305 * sheets/checktrans (NEW):
9306 * sheets/checktrans.py: Made checktrans handle more gracefully the
9307 absence of python and python-xml packages, and made the error
9308 message more helpful.
9310 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
9312 * lib/render_object.c (new_render_object): Made initial handles
9313 behave like on most other objects.
9315 * app/load_save.c (read_objects): Fixed premature free'ing ofr
9316 typestr causing garbage.
9318 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9320 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
9321 accouting for handle ordering through copy and save. (#51479)
9323 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
9325 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
9327 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
9329 * sheets/Circuit.sheet
9331 * sheets/network.sheet: Updated German translations
9333 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
9336 * app/lineprops_area.c: The return of the revenge of the arrow
9337 heads. Now all types covered by ISO 10303-201 should be covered.
9339 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
9341 * sheets/Flowchart.sheet: translations in probably Hungarian were
9342 a victim of cut-n-paste from the German one. Fixed (hopefully).
9343 * sheet/UML.sheet: translation in probably Norwegian was a victim
9344 of cut-n-paste from the French one. Fixed (hopefully).
9345 * sheets/Logic.sheet: French translation not tagged with
9348 * sheets/checktrans.py:
9349 * sheets/Makefile.am: new file, sheet-translation-report, to be
9350 installed along the sheets, show how much of them has been
9351 translated into which language (I wish the result was prettier...)
9353 * po/README: most translators don't read this file, but anyway...
9355 * sheets/.cvsignore:
9356 * objects/network/.cvsignore: the usual negotiation with CVS.
9358 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
9360 * sheets/*.sheet: French translations
9362 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
9364 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
9366 ** objects/network/network.c:
9367 ** objects/network/wanlink.c:
9368 ** objects/network/pixmaps/wanlink.c:
9369 ** sheets/network.sheet:
9370 ** objects/network/Makefile.am: a better object to use instead of
9371 the older WAN Connection.
9373 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
9375 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
9378 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
9379 Arc; kept the C file name (because CVS wouldn't like it), and
9380 still registering the older object name (but advertising the newer
9381 one in sheets/GRAFCET.sheet).
9383 2001-03-24 Hans Breuer <hans@breuer.org>
9385 * app/dia.def : some plug-ins (currently only python, xfig) are using
9386 functions from the dia executable. To get them working these functions
9387 need to be explicit exported on win32. IMO the much cleaner way would
9388 be to move these functions to libdia, but that would require some
9389 long term restructuring ...
9391 * lib/libdia.def : updated
9393 * plug-ins/makefile.msc : build xfig plug-in
9395 2001-03-24 Hans Breuer <hans@breuer.org>
9397 * app/diagram.c : g_strdup (dia->filename) because it will be
9400 * app/display.c : set ddisp->renderer to NULL after destruction.
9401 This may solve or help to identify erroneous access to it after
9404 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
9405 get 'umlauts' working
9407 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
9409 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
9410 were reversed... (look for the patch, and drink a beer to my
9413 2001-03-23 Hans Breuer <hans@breuer.org>
9415 * app/app_procs.c : don't g_error () if the config directory
9416 can't be created (at least not on windoze) because it's quite
9417 common that the user don't read or understand the FAQ ...
9419 * app/cursor.c : use ddisplay_active () instead of active_display
9422 * app/display.[hc] : made active_display var static and provide
9423 an accessor funtion ddisplay_active_diagram ()
9425 * app/dia-props.c : don't store the active_diagram, but ask
9426 for it everytime it needed.
9428 * lib/properties.h : #include "intl.h"
9430 * lib/makefile.msc : need to take care of inclusion order to
9431 avoid clashes with gtk+2.0's gdk-pixbuf
9433 * objects/makefile.msc : added uml/stereotype.c to build
9435 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
9437 * **/*.c: Added config.h to the remaining .c files, and changed
9438 all to be <config.h>.
9440 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
9445 * app/lineprops_area.c: added new arrow types with double
9448 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
9450 * shapes/Civil/civil_gas_bottle.xpm
9451 * shapes/Civil/civil_gas_bottle.shape
9452 * sheets/civil.sheet
9453 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
9456 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
9458 * objects/custom/shape_info.c (load_shape_info):
9459 * objects/custom/shape_info.h:
9460 * objects/custom/custom_object.c (custom_update_data):
9461 Better support for text outside the box -- new attributes 'resize'
9462 and 'align' for text entity. Align not fully supported yet.
9464 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
9466 2001-03-20 James Henstridge <james@daa.com.au>
9468 * app/interface.c (display_data_received_callback): comment out
9471 2001-03-19 James Henstridge <james@daa.com.au>
9473 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
9475 * objects/UML/realizes.c: similar here.
9477 * objects/UML/implements.c: similar here.
9479 * objects/UML/component.c: similar here.
9481 * objects/UML/generalization.c: same here.
9483 * objects/UML/dependency.c: allow NULL for ->name and
9484 ->stereotype. This fixes a number of problems in loading saved
9487 * lib/properties.c: various changes so that NULL string properties
9490 * objects/standard/line.c (line_update_data):
9491 line->extra.start_long and line->extra.end_long were not being
9492 initialised. This fixes potential problems with the bounding box
9493 of "Standard - Line" objects.
9495 2001-03-19 Hans Breuer <hans@breuer.org>
9497 * app/commands.c : added win32 specific code to display a html
9498 file. #include "text.h" for text_delete_all prototype.
9501 * app/dia.rc : (new) to give Dia win32 an icon
9503 * app/win32print.[ch] : new files to support direct postscript
9504 file printing on win32. Beware: it *requires* a ps-printer!
9506 * app/paginate_psprint.c : disable the signal code for win32 build
9507 and added small specific changes to support win32print.
9509 * app/makefile.msc : added win32print and linking shell32.lib
9511 * lib/libdia.def : updated
9513 2001-03-18 Kevin Breit <battery841@mediaone.net>
9515 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
9518 2001-03-17 James Henstridge <james@daa.com.au>
9520 * app/paginate_psprint.c (diagram_print_ps): add code that traps
9521 SIGPIPEs during printing. This gets rid of a number of crashes
9522 caused by printing (eg. typing an incorrect print command).
9524 * dia.spec (%install): gzip the manpage.
9526 * lib/beziershape.c (beziershape_save): fix off by one error in
9527 beziershape save code, which was adding an extra segment to the
9530 * app/menus.c: add a separator in the gnome version of the help
9533 * app/app_procs.c (app_init): add a --nosplash argument which
9534 disables the splash screen.
9536 * app/dia_embedd.c (main): don't leave the splash screen open for
9537 embeddable component.
9539 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
9540 didn't seem to be showing the splash screen like expected, so I
9541 have replaced it with some code that calls gtk_main() until the
9542 first exposure of the window.
9544 2001-03-16 James Henstridge <james@daa.com.au>
9546 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
9548 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
9551 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
9553 * app/Makefile.am (dia_core_files): remove splash.h from file
9554 list, as it doesn't exist.
9556 * doc/en/Makefile.am (uninstall-local): remove the docdir on
9559 * doc/Makefile.am (uninstall-local): target to remove the C
9562 * dia.spec (%files): include the documentation in the package.
9564 * app/menus.c (toolbox_menu_items): add menu item for manual,
9565 which calls help_manual_callback.
9567 * app/commands.c (help_manual_callback): find help file and load
9568 netscape to view it.
9570 * app/commands.h: add prototype for help_manual_callback()
9572 * doc/Makefile.am (helpdir): similar here.
9574 * doc/en/Makefile.am (helpdir): make the helpdir
9575 $(pkgdatadir)/help/en in the non gnome case.
9577 * configure.in (HAVE_GNOME): add conditional.
9579 * doc/en/Makefile.am: handle the graphics in a more general way,
9580 so it is easier for Kevin to add them to the build (just add them
9581 to the GRAPHICS var).
9583 * app/Makefile.am (embed_extra_print_files): make the case of
9584 building without gnome-print support but with bonobo support work.
9585 dia-embedd needs to be include the gnome-print
9587 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
9589 * samples/Makefile.am: included all samples in the distribution....
9591 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
9593 * configure.in: removed premature test for DPS. Added -*- m4 -*-
9594 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
9595 vanished, removed it from ALL_LINGUAS.
9597 * lib/charconv.[ch] (NEW): a very small wrapper around
9598 unicode_iconv to convert strings between utf8 and local charset
9599 (actually, ISO-8859-1, though one can do
9600 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
9602 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
9603 library to help build Postscript streams which use as many custom
9604 font encodings as necessary to correctly represent all characters
9605 used (testing from users with non-latin1 and/or more than 256
9606 characters in routine use *very* welcome).
9608 * app/Makefile.am, lib/Makefile.am: integrated these into the
9611 * shapes/Logic/.cvsignore (NEW): .cvsignore
9613 * app/render_eps.h: forwarded some changes Lars forgot to include.
9614 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
9617 2001-03-08 Kevin Breit <battery841@mediaone.net>
9619 * doc/en/home_network.png: Added file.
9620 * doc/en/line_props.png: Added file.
9621 * doc/en/usage-objects.sgml: Added two graphics to file.
9622 * doc/en/usage-quickstart.sgml: Added one graphic to file.
9624 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
9626 * app/grid.h: Place comment around text after #endif.
9627 * lib/bezier_conn.c: #include <string.h>.
9628 * lib/beziershape.c: #include <string.h>.
9629 * lib/connpoint_line.h: Comment after #endif.
9630 * lib/dia_dirs.c: #include <string.h>.
9631 * lib/element.c: Same.
9632 * lib/lazyprops.c: #include <config.h> and "intl.h".
9633 * lib/lazyprops.h: Comment out text after #endif.
9634 * lib/neworth_conn.c: #include <string.h>
9635 * lib/orth_conn.c: Same here.
9636 * lib/poly_conn.c: Here too.
9637 * lib/polyshape.c: And here.
9638 * lib/properties.c: Remove #include "intl.h" from here and add
9639 an array of static strings to work around bug in gettext that
9640 makes it miss strings in a #define body.
9641 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
9642 * objects/GRAFCET/boolequation.h: Same here.
9643 * objects/chronogram/chronoline_event.h: Add prototype for
9646 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9648 * objects/FS/function.c:
9649 * objects/FS/flow.c:
9650 * objects/FS/flow-ortho.c:
9651 Updated to use properties.
9653 2001-03-03 James Henstridge <james@daa.com.au>
9655 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
9656 button labels when creating them.
9658 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9660 * objects/UML/actor.c
9661 * objects/UML/realizes.c
9662 * objects/UML/implements.c
9663 * objects/UML/generalization.c
9664 * objects/UML/dependency.c
9665 * objects/UML/constraint.c
9666 Updated to use properties.
9668 * objects/UML/stereotype.c
9669 * objects/UML/stereotype.h
9670 Generalized to any kind of bracketting.
9672 2001-02-28 James Henstridge <james@daa.com.au>
9674 * app/menus.c: add help entry to the help menu. Need to get this
9675 working for the non GNOME case as well (maybe put help under
9676 $(datadir)/dia/help for non GNOME?)
9678 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
9680 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
9681 this element so that we get a meaningful filename in the html
9684 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
9687 * configure.in (DB2HTML): add a check for the db2html program, and
9688 set an automake conditional if it is found.
9690 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
9691 and descend into doc/ directory while building.
9693 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
9694 we need more complex rules for building the docs.
9696 2001-02-25 Hans Breuer <hans@breuer.org>
9698 * config.h.win32 : some cleanup
9700 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
9701 are deprecated since glib-1.3.2. Sorry needing to use them
9702 contionally, but there is no glib-1.2 for win32
9704 * app/recent_files.c : use g_strescape (params) conditionally
9706 * lib/connection.c : include string.h for memcpy
9708 * lib/geometry.h : added some stuff for compatibility with
9709 msvc, which previously came from included config.h
9711 * lib/libdia.def : updated
9713 * objects/makefile.msc : updated
9715 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
9716 'extra' used without having been initialized
9718 * objects/network/bus.c(658) : initialize 'extra'
9720 * plug-ins/makefile.msc : updated
9722 * plug-ins/cgm/cgm.c :
9723 * plug-ins/pstricks/render_pstricks.c :
9724 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
9727 * plug-ins/python/python.c : use HAVE_DIRENT_H
9729 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9731 * lib/connection.c (connection_update_boundingbox):
9732 Made the BB shrink on right and lower sides, too.
9734 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
9736 * */*.c: #incude <config.h> at the top.
9737 * */*.h: Remove include of "config.h" since it should only
9738 be included in .c files and at the very top for things to
9740 * sheets/*.sheet: Updated Norwegian translations.
9742 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9744 * objects/UML/small_package.c:
9745 * objects/UML/class.c:
9746 * objects/UML/node.c:
9747 * objects/UML/usecase.c:
9748 * objects/UML/lifeline.c:
9749 * objects/UML/message.c:
9750 Various cleanup of properties in particular. Now much more use of
9751 standard properties.
9753 * lib/diagramdata.c (layer_render): Visualization of bounding
9754 boxes, for debugging purpoises.
9756 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
9759 * lib/connection.[ch]:
9760 * lib/poly_conn.[ch]:
9761 * lib/polyshape.[ch]:
9762 * lib/bezier_conn.[ch]:
9763 * lib/beziershape.[ch]:
9764 * lib/orth_conn.[ch]:
9765 * lib/neworth_conn.[ch]:
9766 * lib/element.[ch]: Changed a bit the _update_boundingbox()
9767 interface. Now the parent elements have an extra_spacing
9768 structure, which child objects just need to fill, to take care of
9769 most arrow & line width extra space needs.
9771 * objects/**/*.c: updated all objects to the new interface.
9772 While at it, killed all instances of (Object *) downcasts (phew !)
9774 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
9775 doesn't speak about.
9777 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
9779 * sheets/Logic.sheet: New sheet for Logic symbols.
9781 2001-02-21 James Henstridge <james@daa.com.au>
9783 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
9784 widget by its path name. Walks the GnomeUIInfo heirachy rather
9785 than widget tree, compares untranslated label names and ignores
9786 underscores in the labels.
9787 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
9788 lookups are not dependent on the current locale, as with
9789 gnome_app_find_menu_pos.
9791 * acconfig.h: guard against multiple inclusion of config.h.
9793 * app/select.c (select_style_callback): simply set the selection
9794 style to the value of action.
9796 * app/menus.c (menus_init): simplify the item factory based menu
9797 code a bit. It looks like it was using some code cut and pasted
9798 from the gimp, which looked a bit unnecessary. Things work fine
9800 (selectmenu): set the action to the type of selection mode
9802 (display_menu_items): use the symbolic enumeration values for the
9805 * app/plugin-manager.c:
9806 * app/plugin-manager.h:
9810 * app/select.h: change prototypes.
9812 * app/commands.c: update all callback prototypes, and get rid of
9813 some #ifdef GNOME's.
9815 * app/commands.h: change function prototypes.
9817 * app/dia_embedd.c (save_fn):
9818 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
9820 * app/menus.c (menus_init): for gnome menus, use
9821 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
9822 structure that proxies the callbacks to have the same signature as
9823 GtkItemFactory type 1 callbacks.
9824 (menus_init): for GTK menus, change from callback type 2 to type
9826 (display_menu_items): add back tearoffs. I don't know who removed
9827 these for the gtk menu case.
9829 2001-02-20 Kevin Breit <battery841@mediaone.net>
9831 * doc/en/usage-objects-special.sgml: Fixed a few of the special
9832 object descriptions. More to come in the next few days.
9834 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
9836 * app/render_eps.c: Fixed for internationalized floating point
9839 * objects/UML/note.c: Fixed properties -- was missing
9840 Get/ApplyPropertiesFunc. Also improved update to recalculate text
9843 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
9845 * plug-ins/xfig/xfig-import.c:
9846 File added importing xfig files. Still very rough, but good
9847 enough to let others hack on it.
9849 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
9852 * app/linewidth_area.c:
9856 * objects/ER/attribute.c:
9857 * objects/ER/entity.c:
9858 * objects/ER/relationship.c:
9859 * objects/custom/custom_object.c:
9860 * objects/flowchart/box.c:
9861 * objects/flowchart/diamond.c:
9862 * objects/flowchart/ellipse.c:
9863 * objects/flowchart/parallelogram.c:
9864 * objects/standard/box.c:
9865 * objects/standard/textobj.c: per Vlad Harchev's request, made
9866 page sizes of gtk_adjustments different than their step sizes.
9867 When sensible values of page size weren't found (overwhelming
9868 majority of cases), page sizes were set to 10.0 * respective step
9871 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
9873 * objects/network/hub.c:
9874 Patch from Hubert Figuiere applied, adding connection points.
9876 2001-02-02 James Henstridge <james@daa.com.au>
9878 * app/display.c (new_display): set update id to 0 here.
9879 (ddisplay_update_handler): rename from ddisplay_flush, and set
9880 update_id to 0 at end of processing.
9881 (ddisplay_flush): new implementation that simply sets an idle
9882 handler to perform the actual drawing.
9884 * app/display.h: add structure member to hold the redraw idle
9887 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
9889 * objects/standard/ellipse.c (ellipse_copy):
9890 * objects/standard/zigzagline.c (zigzagline_copy):
9891 Fix of copying provided by Martin Hawlisch.
9893 2001-01-23 Kevin Breit <battery841@mediaone.net>
9895 * doc/en/graphics/: added directory
9897 * doc/en/graphics/greendots.png: added file
9899 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
9902 2001-01-23 Kevin Breit <battery841@mediaone.net>
9904 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
9905 thanks to John Fleck!
9907 2001-01-21 Kevin Breit <battery841@mediaone.net>
9909 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
9911 2001-01-12 Michael Meeks <michael@helixcode.com>
9913 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
9914 so our POA gets setup properly.
9916 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
9919 * configure.in: Use bonobox_print.
9921 * app/dia_embedd.c (embeddable_factory): add print interface.
9922 (object_print): impl.
9924 2001-01-11 Michael Meeks <michael@helixcode.com>
9926 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
9927 (load_fn, save_fn): impl.
9928 (view_factory): hide modified status bar, & use activate fn.
9929 (refresh_view): force redraws of the views.
9930 (view_show_hide): split from
9931 (dia_view_activate): here.
9933 * app/diagram.c (diagram_load_into): split from diagram_load.
9934 (new_diagram): simplify bu splittin stuff into
9935 (diagram_init): here.
9937 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
9939 * shapes/jigsaw/*.shape: replaced #000000 with foreground
9940 and #ffffff with background
9942 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
9944 *configure.in: GTK+-build was broken due to missing
9947 2001-01-06 Michael Meeks <michael@helixcode.com>
9949 * app/dia_embedd.c (main): add running context support.
9950 (dia_embeddable_destroy): remove old running object counting.
9951 (embeddable_factory): ditto.
9952 (view_factory): comment out menu path hiding.
9954 * lib/sheet.c (load_register_sheet): use free to free
9955 stuff from libxml not g_free.
9957 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
9959 * configure.in: remove USE_OAF checks, check for a precice
9960 Bonobo version >= 0.31, revamp bits.
9962 * app/dia_embedd.c (init_server_factory): upd.
9963 (init_dia_factory): remove OAF conditionals, everything uses
9966 * app/GNOME_Dia.oafinfo: rename OAFIIDs
9968 * app/Makefile.am: remove ancient gnorba code.
9969 rename dia.oafinfo to GNOME_Dia.oafinfo
9971 2001-01-07 Hans Breuer <Hans@Breuer.Org>
9975 * readme.win32 : some more files required or useful to build
9978 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
9979 fill_bezier implementation, boundary drawing in fill mode, etc.
9980 Next one complaining gets the source, uncommented ...
9982 * shapes/network/router-symbol.xpm
9983 * shapes/network/switch-atm-symbol.xpm
9984 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
9985 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
9986 the files as XPMs. Maybe the X versions of these functions are more
9989 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
9991 * plug-ins/python/Makefile.am: added libart path
9993 * plug-ins/python/python.c: added dirent.h
9995 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
9997 2001-01-06 Hans Breuer <Hans@Breuer.Org>
9999 * objects/uml/actor.c
10000 * objects/uml/branch.c
10001 * objects/uml/class.c
10002 * objects/uml/classicon.c
10003 * objects/uml/component.c
10004 * objects/uml/large_package.c
10005 * objects/uml/node.c
10006 * objects/uml/note.c
10007 * objects/uml/object.c
10008 * objects/uml/small_package.c
10009 * objects/uml/state.c
10010 * objects/uml/usecase.c : started to implement the generic property
10011 interface for the uml objects. Would appreciate some help on how
10012 to implement properties which are list of properties themselves,
10013 e.g. member functions and their parameters of UMLClass.
10015 2001-01-06 Hans Breuer <Hans@Breuer.Org>
10017 * plug-ins/python/diamodule.c : finally ported to win32.
10018 Added new objects and implemented register_export function.
10020 * plug-ins/python/pydia-object.h
10021 * plug-ins/python/pydia-display.c
10022 * plug-ins/python/pydia-handle.c
10023 PyObject_HEAD_INIT needs some tweakink on win32. Done in
10024 pydia-object.h; others files simply using it.
10026 * plug-ins/python/pydia-layer.c : reflect
10027 layer_find_closest_connection(_)point renaming
10029 * plug-ins/python/pydia-object.c : add property properties.
10030 Also change bounding_box to DiaRectangle.
10032 * plug-ins/python/python.c : extended error reporting; use
10033 all *.py files from Dia's plug-in dir instead of hardcoded
10034 test.py. This sollution should be fine with Win32, but on
10035 Unix it may need some tweaking (dunno) ...
10037 * plug-ins/python/export-object.py
10038 * plug-ins/python/export-render.py : test and documentation
10039 implementations for export filter implementations in Python
10041 * plug-ins/python/pydia-color.[hc]
10042 * plug-ins/python/pydia-diagramdata.[hc]
10043 * plug-ins/python/pydia-error.[hc]
10044 * plug-ins/python/pydia-export.[hc]
10045 * plug-ins/python/pydia-font.[hc]
10046 * plug-ins/python/pydia-geometry.[hc]
10047 * plug-ins/python/pydia-image.[hc]
10048 * plug-ins/python/pydia-properties.[hc]
10049 * plug-ins/python/pydia-property.c
10050 * plug-ins/python/pydia-render.c : new objects in new files
10052 * plug-ins/python/makefile.am : added new files but can't test it
10054 * plug-ins/python/pydia.def
10055 * plug-ins/python/makefile.msc : for win32 build
10057 * plug-ins/cgm/cgm.c
10058 * plug-ins/dxf/dxf-import.c
10059 * plug-ins/dxf/dxf-export.c
10060 * plug-ins/hpgl/hpgl.c : reflect export API change
10062 * plug-ins/shape/shape-export.c : reflect export API change
10063 and check for libart (better the availibility of a png exporter)
10064 at run-time instead of compile-time.
10066 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
10068 * app/recent_files.h was missing from Hans's commit
10070 * plug-ins/shape/shape_export.c: shape export was broken
10071 due to interface changes
10073 2001-01-05 Hans Breuer <Hans@Breuer.Org>
10075 Applied Steffen's recent file list patch :
10076 * app/Makefile.am : added recent_files.[hc]
10077 * app/diagram.c : add files to recent file list
10078 * app/menus.c : add recent file menu
10079 * app/app_procs.c : changed initialization order to
10080 make recent file list work with command line processing.
10082 The Filter export()/import() functions have got an additional
10083 parameter to allow multiple filters via one C callback (required
10084 for Python bindings)
10086 * app/commands.[hc] : corrected the signature for gtk menu callback
10087 functions, which actually use the second or third parameter. This
10088 is the absolute minimum change to make these functions/menu entries
10089 work again. Using the other possible gtk menu callback signature
10090 would have required one more function to change. (see mailing list
10091 thread "Objects/Align/Equal Distance" for more information.
10093 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
10094 zoom-combo focus patch
10097 * app/interface.c : wrapped the Zoom Combo code into
10098 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
10099 improvement but cluttering the user interface. Also it wasn't
10100 compiling on Win32 anyway. The win32 version does define
10101 WITHOUT_ZOOM_COMBO to keep the old look.
10102 There are plans to use the statusbar to display size and placement
10103 of selected objects, whereas the Zoom Combo would need to get out
10104 of the way as well.
10106 Added "Save Changes?" to diagram close dialog. Hopefuly the
10107 Yes/No/Cancel option isn't too much windoze like. IHMO this is
10108 an useability improvement.
10113 * app/layer_dialog.c
10114 * app/paginate_psprint.c
10116 - reflect signature changing of filter->export function
10117 - replaced '/' with G_DIR_SEPARARTOR where appropriate
10119 * app/diaunitspinner.c
10120 * app/render_libart.c
10121 added misssing headers like <string.h>
10123 * app/object_ops.c : fixed copy&paste bug in dialog string
10125 * app/splash.c : gdk_widget_show_now () does not ensure actual
10126 drawing of the splash screen, at least not on win32. Reuse the
10127 previous implementation with gtk_main_iteration() again.
10129 * */makefile.msc : make use of the build module (available in
10130 gnome-cvs/build. Updated for other source changes
10132 * lib/filter.h : added an user_data pointer to <ex/im>port()
10133 function signature and Dia<Im/Ex>portFilter to allow different
10134 filters to reuse the same callback function
10136 * lib/font.c : #include <string.h>
10141 * lib/neworth_conn.c
10142 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
10144 * */*.def : export function definition files required by win32 build
10146 * objects/custom/custom.c : #include <string.h>
10148 * plug-ins/pstricks/render_pstricks.c
10149 * plug-ins/shape/shape_export.c
10150 * plug-ins/svg/render_svg.c
10151 reflect changes to filter export function signature
10153 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
10154 mostly work as expected
10155 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
10156 to build the wmf plug-in because on the one hand the GDI emulation
10157 isn't finished and on the other hand it isn't required when building
10158 for win32. Is there anybody out there, who wants to save WMF on non
10159 windoze platforms ?
10161 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
10162 offset into account.
10164 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
10166 * app/Makefile.am: added missing plug-ins to run_dia.sh
10168 * lib/paper.c: added paper sizes A0, A1, A2
10170 * objects/UML/class.c
10171 objects/UML/class.h
10172 objects/UML/class_dialog.c: added support for colored UML
10175 2000-12-30 Kevin Breit <battery841@mediaone.net>
10177 * doc/en/usage-customization.sgml: added more content
10179 2000-12-24 Kevin Breit <battery841@mediaone.net>
10181 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
10182 <remy.viard@laposte.net>
10184 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
10186 * added limiting lines to Civil Engineering sheet,
10187 fixed vertical pump icon
10189 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
10191 * updated/additional Civil Engineering shapes: better icons,
10192 shapes use foreground/background colors now and are filled
10194 2000-12-03 Kevin Breit <battery841@mediaone.net>
10196 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
10197 the selection <sect1>
10199 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
10201 * app/load_save.c (diagram_data_save): avoid using obsoleted
10202 libxml calls (only matters when compiling with libxml2)
10204 2000-11-25 James Henstridge <james@daa.com.au>
10206 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
10207 handle the tool drops on the canvas.
10209 * app/interface.c (display_data_received_callback): do the check
10210 to make sure that the drag is from a local toolbox here as well.
10212 * app/interface.c (create_tools): unref the pixmap/mask after
10213 creating the GtkPixmap.
10214 (tool_setup_drag_source): function to set up a drag source for
10215 create object tool buttons.
10216 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
10217 (fill_sheet_wbox): same here.
10218 (create_display_shell): set up the display canvas as a drag
10220 (display_drop_callback, display_data_received_callback): functions
10221 to handle drops of tool buttons.
10223 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
10224 does weird shit to the user_data pointer for a menu item. Object
10225 alignment should work again now.
10227 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
10228 NULL, and mark this function static.
10229 (app_splash_init): use gtk_widget_show_now() instead of the
10230 gtk_main_iteration loop.
10231 (app_splash_init): connecting gtk_widget_destroy to the destroy
10232 signal of a widget seems pretty useless.
10234 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
10236 * doc/en/dia-manual.sgml:
10237 Added sect1 for advanced object types. Starting development
10240 2000-11-18 Kevin Breit <battery841@mediaone.net>
10242 * doc/en/dia-manual.sgml:
10243 Stupid spelling fixes.
10245 2000-11-18 Kevin Breit <battery841@mediaone.net>
10247 * doc/en/dia-manual.sgml:
10248 Just some small changes I made. Props to Greg LeBlanc on the
10251 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
10254 (ddisplay_add_display_area): Clip input rectangle to
10255 the visible part of the display.
10256 (ddisplay_scroll): Optimization, don't scroll and
10257 redraw if moving to the same position as before.
10259 * app/render_libart.c (renderer_libart_copy_to_window):
10260 Removed sanity check. Now moved to ddisplay_add_display_area().
10263 Added return at end of file.
10265 2000-11-13 Kevin Breit <battery841@mypad.com>
10266 * doc/en/dia-manual.sgml
10267 Commited manual changes from Henry House <hajhouse@houseag.com>
10269 2000-10-21 Hans Breuer <Hans@Breuer.Org>
10270 * lib/beziershape.c :
10271 The previous code was accessing unowned memory due to IHMO
10272 wrong index calculation. Now it appears to be fixed.
10276 * plug-ins/makefile.msc
10277 * objects/makefile.msc
10278 * app/makefile.msc: (new files)
10279 Makefiles for Dia on Win32, Micro$oft VC only.
10281 * plug-ins/pstricks/render_pstricks.c
10282 * plug-ins/dxf/dxf-import.c
10283 * plug-ins/shape/shape-export.c
10284 * plug-ins/svg/render_svg.c
10287 * app/preferences.c
10291 * objects/custom/custom.c
10292 * objects/standard/image.c
10293 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
10294 where appropriate, add missing prototypes like <string.h>
10296 * plug-ins/wmf/wmf_gdi.cpp
10297 * plug-ins/wmf/wmf_gdi.h:
10298 start of wmf write functions for non Win32 platform. Not
10299 finished yet. The other way to get it working maybe to
10300 link the plug-in against wine libs.
10302 * plug-ins/wpg/wpg.c : add missing brace
10304 * app/load_save.c :
10305 Handling for unknown objects at load time. Previously Dia
10306 was crashing, if you try to load a file referencing objects
10307 whiches plug-ins aren't installed/available. Now it spits out
10308 a warning and ignores the unknown objects.
10311 toolbox DND support for files like The Gimp does it.
10315 Simple splash screen support and usage.
10318 Splash screen, portability fixes, dont' g_error if there is
10319 g_get_homedir return NULL. This may remove the one and only
10323 Make it compile without ENABLE_NLS
10325 * app/render_libart.c :
10326 Sanity check to avoid calling libart with wrong window coordinates.
10327 They come from the update handler. Direct Gdk is dealing nicely
10328 with coordinates out of range, libart does access un-owned memory
10329 in this case, mostly causing crashes.
10331 * app/winmain.c: (new file) Export the Win32 Gui version of the
10332 main function. This file is only required for Windoze.
10334 * app/splash.c: (new file) splash screen implementation
10338 * lib/diavar.h: (new file)
10339 moved special variable export code to diavar.h, because it is
10340 needed in color.h and font.h
10343 M$VC cann't export inlined functions. Quick hack to let it
10344 link again. Probably the glib mechanics should be used here?
10346 * objects/UML/lifeline.c : initialize var before usage
10348 * objects/GRAFCET/step.c : removed unused var
10350 2000-10-14 James Henstridge <james@daa.com.au>
10352 * app/render_gnomeprint.c (draw_image): change code so images
10353 don't get flipped when printing.
10355 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
10356 sure that the return value of
10357 gnome_print_context_new_with_paper_size is not NULL.
10359 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
10360 into a series of bezier segments.
10361 (fill_arc): similar code to handle filled arc segments.
10363 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
10370 * app/disp_callbacks.c
10372 * app/linewidth_area.c
10373 * app/paginate_psprint.c
10374 * app/preferences.c
10378 * app/neworth_conn.c
10380 * objects/standard/box.c: various small changes to get rid of
10381 annoying warnings (eg faulty prototypes and unused variables)
10383 * app/disp_callbacks.c
10386 * app/magnify.h: update magnify tool icon when pressing/releasing
10387 shift. I will try to make something more general so that similar
10388 things can be used by other tools.
10390 * shapes/SDL/inout.shape
10391 * shapes/SDL/return.shape: fixed some typos
10393 2000-10-09 James Henstridge <james@daa.com.au>
10395 * objects/custom/shape_info.c (parse_path): apply patch from
10396 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
10399 2000-10-08 James Henstridge <james@daa.com.au>
10401 * objects/standard/image.c (image_set_props): if the file could not
10402 be loaded, show the broken image icon.
10404 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
10406 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
10408 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
10409 object icon when loading from a file. This allows you to have PNG
10410 icon files for shapes.
10412 2000-10-07 James Henstridge <james@daa.com.au>
10414 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
10416 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
10417 GDK_IMLIB_CFLAGS reference.
10419 * app/commands.c (help_about_callback): remove imlib code.
10421 * lib/dia_image.c: only include the pixbuf version of the image
10424 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
10426 * configure.in (CPPFLAGS): remove the check for imlib, as we now
10427 require gdk-pixbuf.
10429 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
10430 conditionally define \setfont as well.
10432 2000-10-05 James Henstridge <james@daa.com.au>
10434 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
10435 preamble so that we define \setlinejoinmode and \setlinecaps
10436 commands conditionally on them being undefined. This way, the
10437 pstricks output files should work without modification, and will
10438 support the commands when they are implemented in pstricks.
10440 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
10442 * dia.desktop: added hungarian translations to dia.desktop
10444 2000-10-04 James Henstridge <james@daa.com.au>
10446 * sheets/UML.sheet: fix typo.
10448 * objects/custom/shape_info.c: use strtod instead of g_strtod.
10449 (parse_path): actually call setlocale around strtod calls.
10451 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
10452 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
10453 the g_strtod wrapper.
10455 * shapes/SDL/: add SDL shapes from Rubens Ramos
10456 <rubens_ramos@yahoo.com>
10458 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
10460 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
10462 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
10463 W. Michael Petullo <mike@flyn.org>.
10465 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
10466 from the 0.86 tarball) and jigsaw.sheet.
10468 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
10470 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
10472 * shapes/network/: add network-additional shapes here.
10474 * sheets/network.sheet: add the network-additional shapes from
10475 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
10478 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
10480 * configure.in: Updated ALL_LINGUAS
10482 * po/nl.po: Removed newline from translation
10484 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
10486 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
10487 logo filename generation.
10489 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
10490 Avoiding "//dia_logo.png".
10492 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
10494 * app/filedlg.c: add include <sys/types.h> to
10495 remove warning. (OS/2)
10497 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
10499 * objects/chronogram/chronoline_event.c (reparse_clevent):
10500 the __checksum routine was simply bogus. Redone it in a slightly
10501 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
10503 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
10505 * app/create_object.c (create_object_button_press):
10506 * app/modify_tool.c (click_select_object):
10507 * lib/object.h: select renamed to selectf to prevent
10508 compiler problems with function select(). OS/2 version.
10510 2000-09-08 Karsten Weiss <knweiss@gmx.de>
10512 * po/de.po: Updated.
10514 2000-09-07 Karsten Weiss <knweiss@gmx.de>
10516 * dia.desktop: Added German translation
10517 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
10519 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
10521 * configure.in (ALL_LINGUAS): added "es"
10523 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
10528 * app/scroll_tool.c:
10529 Standardized cursor function get_cursor(). Magnify now has
10530 looking-glass cursor with + and -.
10532 * app/create_object.c (create_object_button_press):
10533 Newly created connections now snap to connection points even when
10536 2000-08-17 Daniel Egger <egger@suse.de>
10538 * app/menus.c: #ifdef'ed some code for the none GNOME
10540 * app/dia_embedd.c: Changed obvious hackery. Can anyone
10541 please have a look at the GNOME UI menu creation? The
10542 gnome-app-helper code is ages old and plainly broken!
10544 2000-08-15 Daniel Egger <egger@suse.de>
10551 * app/select.c: First big patch to get the menus
10552 working again in the international version. Copied
10553 some code written by Sven and me from GIMP and
10554 thus implemented automatic tearoffmenu creation and
10555 proper translation. I also removed that pseudo
10556 radiomenu hack and cleaned up several translation
10557 hacks which have never really worked. All in all
10558 this is part I of the big menu patch. Enjoy and tell
10559 me if you detect any problems.
10561 2000-08-14 Daniel Egger <egger@suse.de>
10563 * sheets/UML.sheet: Changed one German translation as
10564 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
10566 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
10568 * app/diapagelayout.c:
10569 * lib/diagramdata.c:
10570 * lib/diagramdata.h:
10573 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
10574 selecting paper size for a new diagram. TODO: Use libpaper if
10575 available and use gnome_paper-stuff if using GNOME.
10577 * sheets/Electric.sheet: fixed typo.
10579 2000-08-08 James Henstridge <james@daa.com.au>
10581 * po/README: added a readme file to tell translators to translate
10582 the .sheet files as well.
10584 * app/commands.c (help_about_callback): fix small bug where we tried
10585 to gdk_bitmap_unref() the mask for the about box image, even though
10586 it was NULL. Now check for a NULL mask.
10588 2000-08-07 Daniel Egger <egger@suse.de>
10590 * sheets/*.sheet: Added translations for the name
10591 in the toolbar tab. Brushed up some descriptions
10592 and some translations a bit.
10594 2000-08-06 James Henstridge <james@daa.com.au>
10596 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
10597 identifier and dtd url for SVG output.
10598 (new_svg_renderer): fix the output of the viewBox output. The
10599 second two numbers are the width and height -- not the right
10600 and bottom sides of the box.
10602 * shapes/*/*.shape: update svg namespace URI.
10604 * objects/custom/shape_info.c (load_shape_info): change the
10605 namespace URI for custom shapes yet again to match the Candidate
10606 Recommedation. It looks like this one will probably be the final
10609 * app/display.c (new_display): remove the code that sets ic and
10610 ic_attr members to NULL, as one of the previous function calls
10611 causes the display to be realised. This means that the ic gets
10612 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
10615 2000-08-06 James Henstridge <james@daa.com.au>
10617 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
10619 * NEWS: fixed date in NEWS file, as I will release today.
10621 * README: updated the README a little. Added note that Dia is now
10624 * dia.spec: fix up spec file.
10626 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
10628 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
10629 get heaps of warnings when you turn off debugging.
10630 Also made a few other warning fixes.
10632 2000-08-02 James Henstridge <james@daa.com.au>
10634 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
10636 * configure.in: update version number.
10638 2000-08-01 James Henstridge <james@daa.com.au>
10640 * app/commands.c (help_about_callback): add Hans to about dialog.
10642 * doc/shape.dtd: dtd for shape file format.
10644 * doc/custom-shapes: update doc file about creating custom shapes.
10646 * shapes/*/*.shape: change namespace URI for the SVG portion to the
10647 one for the latest draft.
10649 * shapes/*/*.shape: fix up rect definitions.
10651 * objects/custom/shape_info.c (load_shape_info): recognise newer
10652 namespace tag for SVG.
10653 (parse_svg_node): the rect element should take attributes x, y, width
10654 and height -- not x1,y1,x2,y2.
10656 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
10657 output to use the newest draft DTD.
10659 * plug-ins/svg/svg.c: initialisation code for plugin.
10661 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
10663 * plug-ins/svg/Makefile.am: makefile for svg plugin.
10665 * app/app_procs.c (internal_plugin_init): don't register the svg
10666 export filter here.
10668 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
10670 2000-07-31 James Henstridge <james@daa.com.au>
10672 * objects/standard/textobj.c (textobj_get_defaults):
10673 * objects/standard/polygon.c (polygon_get_defaults):
10674 * objects/standard/image.c (image_get_defaults):
10675 * objects/standard/ellipse.c (ellipse_get_defaults):
10676 * objects/standard/box.c (box_get_defaults):
10677 * objects/standard/beziergon.c (beziergon_get_defaults):
10678 * objects/flowchart/parallelogram.c (pgram_get_defaults):
10679 * objects/flowchart/ellipse.c (ellipse_get_defaults):
10680 * objects/flowchart/diamond.c (diamond_get_defaults):
10681 * objects/flowchart/box.c (box_get_defaults):
10682 * objects/custom/custom_object.c (custom_get_defaults):
10683 * objects/FS/flow.c (flow_get_defaults):
10684 * objects/FS/flow-poly.c (flow_get_defaults):
10685 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
10688 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
10689 widgets for various object types.
10690 (create_dialog): ref and sink the no_defaults_dialog.
10692 * app/preferences.c (prefs_create_dialog): change
10693 gtk_container_border_width call to gtk_container_set_border_width.
10695 2000-07-29 James Henstridge <james@daa.com.au>
10697 * app/commands.c (view_aa_callback): show a warning dialog if
10700 * app/interface.c (fill_sheet_menu): don't add a menu item for
10703 2000-07-26 James Henstridge <james@daa.com.au>
10705 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
10707 * app/menus.c: remove edit grid menu item.
10709 * app/commands.[ch] (view_edit_grid_callback): removed.
10711 * app/display.c (new_display): don't initialise removed Grid members.
10713 * app/grid.c: remove unused functions.
10715 * app/grid.h: remove dialog related stuff from Grid structure.
10716 Remove prototypes for dialog functions.
10718 * app/menus.c: add to menus
10720 * app/commands.[ch] (view_diagram_properties_callback): new command
10721 for showing the diagram properties dialog.
10723 * app/dia-props.[ch]: a new diagram properties dialog. To replace
10724 the edit grid dialog.
10726 2000-07-25 James Henstridge <james@daa.com.au>
10728 * app/grid.c (grid_x_update):
10729 (grid_y_update): as the grid setting is stored with the diagram,
10730 update all displays when a change is made.
10732 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
10734 * app/create_object.c (create_object_button_press):
10735 (create_object_motion): use new snap_to_grid signature.
10737 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
10738 and handle invisible grid lines.
10739 (snap_to_grid): use new grid settings. Also changed signature to
10740 take a DDisplay rather than Grid pointer.
10741 (grid_show_dialog): get the defaults from the correct place.
10743 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
10745 * app/diagram.c (new_diagram): set the grid size defaults from the
10748 * app/load_save.c (diagram_data_save): save grid and guide info to
10750 (diagram_data_load): add guide and grid load support.
10752 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
10755 * lib/diagramdata.h: add members to DiagramData for grid and guide
10758 * configure.in (BONOBO_LIBS): update configure scripts
10760 * app/dia.oafinfo: oafinfo file for dia embeddables.
10762 * app/dia_embedd.c: add OAF support.
10764 2000-07-24 James Henstridge <james@daa.com.au>
10766 * plug-ins/wpg/Makefile.am:
10767 * plug-ins/pstricks/Makefile.am:
10768 * plug-ins/hpgl/Makefile.am:
10769 * plug-ins/dxf/Makefile.am: same here.
10771 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
10772 the required libraries, and the link line was causing libtool not
10773 to build a shared library on some systems :(
10775 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
10776 be checking x, not n.
10778 2000-07-23 James Henstridge <james@daa.com.au>
10780 * app/preferences.c (prefs_data): set the "reset tools after
10781 create" preference to true by default. That seems to be what most
10784 * app/interface.c (create_sheets): instead of a notebook, use an
10785 option menu that updates the sheet tools. The notebook tabs were
10786 getting a bit unwieldly, so the option menu should fix that. This
10787 also reduces the number of widgets in the tools radio button
10788 group, which should make the UI a little more responsive.
10790 2000-07-19 Fatih Demir <kabalak@gmx.net>
10792 * configure.in: Added tr to ALL_LINGUAS.
10793 [ Yeah, we're now having a Turkish translation,
10796 * dia.desktop: Added the Turkish entries.
10798 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
10800 * doc/diagram.dtd: changed string-element so it conforms to the
10803 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
10805 * configure.in: added chinese.
10806 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
10814 objects/custom/shape_info.c:
10815 shapes/Circuit/npn.shape:
10816 shapes/Circuit/pnp.shape:
10817 sheets/*.sheet: dia now works with libxml2.
10818 Libxml2 is a bit more picky when parsing xml and reported errors on all
10819 sheet files because they use non ascii characters (added
10820 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
10821 I commented out these.
10823 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
10825 * configure.in (ALL_LINGUAS): added Italian
10827 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
10829 * configure.in (ALL_LINGUAS): added Korean
10831 2000-06-25 James Henstridge <james@daa.com.au>
10833 * objects/flowchart/parallelogram.c (pgram_create): use default font
10834 and add properties interface support.
10836 * objects/flowchart/ellipse.c (ellipse_create): use default font and
10837 add properties interface support.
10839 * objects/flowchart/diamond.c (diamond_create): use default font and
10840 add properties interface code.
10842 * objects/flowchart/box.c (box_create): use default font.
10844 * objects/custom/custom_object.c (custom_create): use default font
10847 * objects/standard/textobj.c (textobj_create): update to use default
10850 * lib/attributes.c: add implementations.
10852 * lib/attributes.h (attributes_[gs]et_default_font): add function
10853 prototypes for setting/getting a default font.
10855 2000-06-24 James Henstridge <james@daa.com.au>
10857 * app/paginate_gnomeprint.h: updated prototype.
10859 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
10860 diagram page settings.
10862 * objects/standard/beziergon.c (beziergon_copy): same here.
10864 * objects/standard/polygon.c (polygon_copy): copy the fill colour
10868 * app/tool.h (tool_options_dialog_show):
10869 * app/scroll_tool.h (free_scroll_tool):
10870 * app/render_svg.h:
10871 * app/render_libart.h (renderer_libart_copy_to_window):
10872 * app/render_gdk.h (renderer_gdk_copy_to_window):
10873 * app/properties.h (properties_hide_if_shown):
10874 * app/preferences.h (prefs_load):
10875 * app/object_ops.h:
10876 * app/modify_tool.h (free_modify_tool):
10877 * app/magnify.h (free_magnify_tool):
10878 * app/linewidth_area.h (linewidth_area_create):
10879 * app/layer_dialog.h:
10880 * app/handle_ops.h (handle_is_clicked):
10882 * app/grid.h (grid_destroy_dialog):
10883 * app/defaults.h (defaults_show):
10884 * app/cut_n_paste.h (cnp_exist_stored_objects):
10885 * app/create_object.h (free_create_object_tool):
10886 * app/connectionpoint_ops.h (diagram_unconnect_selected):
10888 * app/color_area.h (color_area_create):
10889 * app/app_procs.h (app_is_embedded): remove extern keyword from
10890 function prototypes.
10893 * lib/sheet.h (load_all_sheets):
10894 * lib/render_store.h:
10895 * lib/render_object.h (render_object_load):
10896 * lib/polyshape.h (polyshape_closest_segment):
10897 * lib/poly_conn.h (polyconn_closest_segment):
10900 * lib/objchange.h (new_object_state_change):
10901 * lib/neworth_conn.h (neworthconn_add_segment):
10902 * lib/message.h (message_error):
10905 * lib/font.h (font_descent):
10906 * lib/focus.h (remove_focus):
10908 * lib/diagramdata.h:
10909 * lib/dia_xml.h (data_add_composite):
10911 * lib/connpoint_line.h:
10912 * lib/connection.h (connection_move_handle):
10914 * lib/attributes.h (attributes_set_default_line_style):
10915 * lib/arrows.h (arrow_draw): remove extern keyword from function
10916 definitions. It is not required for functions.
10918 * plug-ins/dxf/Makefile.am (INCLUDES):
10919 * plug-ins/pstricks/Makefile.am (INCLUDES):
10920 * plug-ins/cgm/Makefile.am (INCLUDES):
10921 * objects/SADT/Makefile.am (INCLUDES):
10922 * objects/chronogram/Makefile.am (INCLUDES):
10923 * objects/GRAFCET/Makefile.am (INCLUDES):
10924 * objects/flowchart/Makefile.am (INCLUDES):
10925 * objects/sybase/Makefile.am (INCLUDES):
10926 * objects/FS/Makefile.am (INCLUDES):
10927 * objects/standard/Makefile.am (INCLUDES):
10928 * objects/network/Makefile.am (INCLUDES):
10929 * objects/UML/Makefile.am (INCLUDES): same here.
10931 * objects/ER/Makefile.am: changed inclusion of some macros to
10934 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
10935 handle the plug in extension, rather than have all the #ifdef's in
10938 * plug-ins/Makefile.am: add renderer.inc to dist.
10940 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
10942 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
10944 * lib/plug-ins.c: Handle OS/2 dll's too.
10946 2000-06-07 James Henstridge <james@daa.com.au>
10948 * app/plugin-manager.c (get_plugin_manager): set some table
10949 packing options to make it look a little nicer.
10951 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
10952 makefiles for these plug-ins.
10954 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
10956 * configure.in: added hpgl and wpg directories to build. Added
10957 note about whether gnome-print support was enabled, and noted that
10958 it is not recommended.
10960 2000-06-06 James Henstridge <james@daa.com.au>
10962 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
10963 a little work, but I am checking them in so I don't lose them.
10965 2000-06-01 James Henstridge <james@daa.com.au>
10967 * objects/standard/arc.c: added extra properties.
10969 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
10970 was using the wrong index into the handles array. This gets corner
10971 type changing working correctly.
10973 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
10974 to properties code (no editing or loading yet though). Also added
10975 support for point array manipulation through the offsets interfaces.
10977 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
10979 * app/interface.c (origin_button_press): changes so the origin
10980 button doesn't grab the pointer when we pop up the menu.
10982 * app/commands.c (help_about_callback): fix small memory leak in
10985 * app/menus.c (menus_init): fixed breakage I introduced in the non
10986 gnome menus when I was doing the menu changes. The tearoffs work
10987 really nicely in plain gtk mode as well.
10989 * objects/standard/beziergon.c (beziergon_create): changed the
10990 returned handles to match the handle numbering changes. Now
10991 segment addition and removal works correctly with undo!
10993 * lib/beziershape.c: various changes to the code. Changed the
10994 numbering of handles, and fixed the segment removal code.
10996 2000-05-31 James Henstridge <james@daa.com.au>
10998 * objects/standard/beziergon.c: remove connection point handling.
10999 There is still a bit of work to be done to get adding and removing
11000 of segments working correctly.
11002 * lib/beziershape.c: add connection point handling to beziershape.
11003 I set it for two connection points per segment.
11005 2000-05-30 James Henstridge <james@daa.com.au>
11007 * objects/standard/polygon.c: don't do connectionpoint handling.
11009 * lib/polyshape.c: changed to handle connection points internally.
11010 Also, don't worry about connections to handles on polyshape, as
11011 all handles are non connectable.
11013 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
11015 * configure.in: Added finnish
11017 2000-05-30 James Henstridge <james@daa.com.au>
11019 * sheets/*.sheet: translation updates to the .sheet files.
11021 * po/fr.po: updated po file from Christophe Merlet.
11023 * menus.h: removed prototypes for functions which have been removed.
11025 2000-05-29 James Henstridge <james@daa.com.au>
11027 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
11028 item in the option menu when changing selected diagram.
11030 * app/dia_embedd.c (view_factory): fix up function to work with new
11033 * app/disp_callbacks.c (ddisplay_realize): remove call to
11034 display_set_active from here.
11035 (ddisplay_canvas_events): move call here. This gets rid of all the
11036 warnings, as the renderer has been fully set up correctly at this
11039 * app/menus.c (menus_init): add the tearoff item to the start of the
11042 * app/app_procs.c (create_user_dirs): we don't need to create the
11043 menus directory anymore.
11045 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
11046 necessary to update the menu state here, as it was done when the
11047 active display was set.
11049 * app/display.c (display_set_active): update the menu state when
11050 changing active displays.
11052 * app/interface.c (origin_button_press): set the display as active
11053 when a click is made on the menu button.
11055 * app/menus.c (menus_init): set up a quit function to save the accels
11057 Add tearoff items for the non GNOME menus, add accelerators for
11058 several GNOME menus.
11060 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
11061 menus_get_image_menu().
11063 * app/menus.c (menus_get_item_from_path): use display_menus here
11064 rather than ddisp->popup.
11066 * app/display.h: remove the popup member in the DDisplay structure.
11068 * app/interface.c: remove option of not using wrap box.
11069 (create_toolbox): change to always use menus_get_toolbox_menubar
11070 even when using gnome menus.
11071 (create_display_shell): use menus_get_image_menu to load accelerators
11072 only -- not the actual popup menu.
11074 * app/menus.c (menus_init): new function to create the menus.
11075 (menus_get_toolbox_menubar): use this function whether gnome is
11076 in use or not. Changed to use menus_init.
11077 (menus_get_image_menu): same here. Also, now this function always
11078 returns the same menu, rather than a new one each time.
11079 (menus_init): read a menurc file to load accelerators here.
11081 2000-05-28 James Henstridge <james@daa.com.au>
11083 * app/display.c (ddisplay_really_destroy): unset active display if
11084 active display is destroyed.
11085 (ddisplay_active): simplify function to return active_display as set
11086 by display_set_active. This allows using a pinned menu with any
11087 display -- not just the one it was popped up from.
11088 (display_set_active): notify the layer dialog of change of diagrams
11089 when active diagram changes.
11091 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
11092 on button and key presses.
11093 (ddisplay_realize): set active display on realize.
11095 * app/display.c (display_set_active): simple implementation of this
11098 * app/display.h (display_set_active): add prototype for setting
11099 the active display.
11101 * app/interface.c (create_display_shell): don't give focus to the
11104 * app/menus.c: fix up menus for Beziergon.
11106 * app/interface.c (create_display_shell): make the widget in the
11107 top left corner a button that can be used to pop up the right click
11108 menu, like in gimp and sketch.
11110 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
11113 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
11114 add code to set corner types for beziergon.
11116 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
11118 (beziershape_move_handle): use the previous corner type for right
11121 * app/interface.c (tool_data): add beziergon to toolbox.
11123 * objects/standard/standard.c (dia_plugin_init): initialise the new
11124 Beziergon object type.
11126 * objects/standard/beziergon.c: an object based on BezierShape.
11128 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
11130 * lib/beziershape.[ch]: new files implementing a bezier shape.
11132 2000-05-26 James Henstridge <james@daa.com.au>
11134 * lib/text.c (text_key_event): handle multibyte inserts.
11135 (text_key_event): also add home and end keybindings.
11137 * app/interface.c (create_display_shell): connect handlers for
11138 focus_in_event, focus_out_event, realize and unrealize signals.
11140 * app/display.[ch] (new_display): initialise input context members.
11142 * app/disp_callbacks.[ch]: added XIM support here.
11144 * lib/font.c (suck_font): the black and white pixel values should be
11145 taken from a 1 bit colormap rather than the default colormap.
11147 Hans Breuer's Windows patches ...
11149 * lib/font.c: use Courier New for fixed width font on windows
11152 * lib/dia_image.h: change to "struct _DiaImage".
11154 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
11156 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
11157 mouse button for object menu. This will make two button mouse owners
11160 2000-05-25 James Henstridge <james@daa.com.au>
11162 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
11164 * app/app_procs.c (app_init): add extra NULL argument to call of
11167 * app/load_save.h: remove prototype.
11169 * app/load_save.c: remove diagram_data function here.
11171 * app/diagram.h: added prototype.
11173 * app/diagram.c (diagram_load): new function here, which uses import
11176 * plug-ins/dxf/dxf.c: register the import filter as well.
11178 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
11179 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
11181 * objects/standard/line.c: add start_point and end_point properties
11182 to standard line object.
11184 2000-05-21 James Henstridge <james@daa.com.au>
11186 * app/paginate_psprint.c: added missing include of locale.h.
11188 * objects/custom/custom_object.c (custom_draw): use fabs rather than
11189 abs for scaling factors.
11190 (custom_distance_from): same here.
11192 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
11194 2000-05-18 James Henstridge <james@daa.com.au>
11196 * po/POTFILES.in: updated POTFILES.in.
11198 * dia.spec: incremented version number in spec file.
11200 * NEWS: added (lots of) news items for the 0.85 release.
11202 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
11205 * configure.in: updated version number here.
11207 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
11209 2000-05-17 James Henstridge <james@daa.com.au>
11211 * app/app_procs.c (internal_plugin_init): register the native import
11214 * app/load_save.c (diagram_data_load, diagram_load): split this
11215 function into two -- one that does all the work on the DiagramData
11216 structure, and the other that provides compatibility with the old
11218 (dia_import_filter): use diagram_data_load to define an import
11221 * app/diagram.h (new_diagram): added const to prototype.
11223 * app/filedlg.c (file_open_callback): change to use new import filter
11226 * lib/filter.c: added import filter management functions.
11228 * lib/filter.h: added prototypes for import filter interface.
11230 * app/commands.c (help_about_callback): updated about dialog to
11231 contain a few more names.
11233 2000-05-16 James Henstridge <james@daa.com.au>
11235 * configure.in (Configuration): added a status message to the end of
11236 the configure script to give the user some idea of what was
11239 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
11241 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
11244 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
11247 * configure.in (AM_PATH_LIBART): use the check function provided
11248 with libart rather than our own code. It is more reliable, and
11249 it only requires that people who build out of CVS have libart.m4
11250 installed (not necessarily all of libart).
11251 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
11253 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
11255 * dia.desktop: Added Swedish translation.
11257 2000-05-09 James Henstridge <james@daa.com.au>
11259 * lib/dia_xml.c: you can't free a const pointer, so remove const
11260 from variable definitions.
11262 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
11263 initialised correctly.
11265 * app/render_svg.c (export_svg): set locale to C.
11267 * app/paginate_psprint.c (paginate_psprint): set locale to C.
11269 * app/render_eps.c (export_eps): set locale to C for EPS export.
11271 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
11272 (data_add_point): same here.
11273 (data_add_rectangle): same here.
11274 (data_real): use g_strtod to convert strings to real numbers, so that
11275 locales are taken into account.
11276 (data_point): same here.
11277 (data_rectangle): same here.
11279 * AUTHORS: added Henk and Jacek to authors file.
11281 Daniel Egger's code cleanups.
11283 * app/select.c (select_invert_callback): remove unused variable.
11285 * app/plugin-manager.c (get_plugin_manager): fix typo.
11287 * app/load_save.c (read_connections, write_objects):
11288 (write_connections): made some functions static.
11290 * app/interface.c (toolbox_delete, toolbox_destroy): made some
11293 * app/filedlg.c (file_export_callback): remove unused variable.
11295 * app/app_procs.c: various warning fixes.
11297 Integrating Jacek Pliszka's pstricks export filter.
11299 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
11301 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
11302 renderer (with a few small modifications by me).
11304 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
11306 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
11308 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
11311 * sheets/Makefile.am:
11312 * shapes/Makefile.am:
11313 * shapes/Civil/Makefile.am:
11314 * sheets/civil.sheet:
11316 Added civil/hydraulic/structural engineering objects from
11317 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
11319 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
11321 * objects/FS/flow-poly.c:
11322 * objects/FS/flow.c:
11323 Fix division by zero in point_normalize().
11324 Patch by David Thompson <dcthomp@mail.utexas.edu>
11326 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
11329 * lib/bezier_conn.c:
11330 * lib/connpoint_line.c:
11331 Added checks for zero-length lines before calls to point_normalize.
11333 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11335 * app/preferences.c (prefs_data): Changed
11336 reversed_dragging_intersects to not make the dialog ridiculously
11339 2000-04-22 James Henstridge <james@daa.com.au>
11341 Hans's win32 patches:
11343 * app/export_png.c: include message.h
11344 * app/interface.c: include dia_dirs.h
11345 * app/linewidth_area.c: check for rint
11346 * app/main.c: include interface.h
11347 * app/paginate_psprint.c: remove unused variable.
11348 * app/preferences.c: include message.h
11349 * app/render_svg.c: include stdlib.h
11350 * app/select.c: include object_ops.h
11351 * lib/dia_dirs.c: miscelaneous fixes for win32.
11352 * lib/dia_image.c: include string.h
11353 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
11354 * lib/properties.c: include stdlib.h
11355 * lib/properties.h: define extra data for standard properties as
11356 static variables on win32 (to get around dynamic linker problems).
11357 * objects/standard/polygon.c: polygon_create_change missing return
11360 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
11362 * configure.in (ALL_LINGUAS): added Catalan
11364 2000-04-18 James Henstridge <james@daa.com.au>
11366 * objects/standard/bezier.c (bezierline_get_object_menu): add a
11367 separator to the object menu between the add/remove segment items
11368 and the corner type items.
11369 (bezierline_get_object_menu): add code to disable the menu item for
11370 the current corner type. Really just a cosmetic change.
11372 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
11373 a NULL for the label or with no associated callback.
11375 * objects/standard/bezier.c (bezierline_menu_items): use the
11376 enumeration values rather than numeric values for the corner types.
11378 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
11379 structure, and add code to handle it. Also, don't save the corner
11380 types inline in the bez_points node. The way it is conditionally
11381 including the element just feels like it will break.
11383 * lib/geometry.h (BezPoint): removed the corner_type stuff from
11384 BezPoint. The corner type stuff is a user interface level idea rather
11385 than something required by the renderer, so should be taken care of
11386 at the object level.
11388 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11390 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
11391 checks. Weren't able to reproduce original bug, tough.
11393 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
11395 * sheets/Electric.sheet:
11396 * sheets/Contact.sheet:
11397 * sheets/Pneumatic.sheet:
11398 * sheets/Circuit.sheet: sprayed some <br/>'s around.
11399 (added a few French translations in the last file)
11401 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11404 * lib/bezier_conn.h:
11405 * objects/standard/bezier.c:
11406 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
11407 bezier points. Only one minor problem known: Menus are active
11408 for endpoints minor handles.
11409 11:28: Save and load now works, too.
11410 (bezierconn_closest_major_handle): 12:03: New function to get the
11411 non-control point handle associated with the nearest control
11413 Also fixed the menu activation problem, and made remove_segment
11414 not remove the endpoint.
11416 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11418 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
11421 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
11423 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
11424 <sys/stat.h>. OS/2 patch.
11426 2000-04-15 James Henstridge <james@daa.com.au>
11428 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
11429 Thompson's patch that adds undo support to the function structure
11432 2000-04-14 James Henstridge <james@daa.com.au>
11434 * objects/custom/custom_object.c (custom_distance_from): new
11435 implementation of distance algorithm that actually takes the
11436 display list into account when calculating the distance. Much nicer
11437 than a simple bounding box.
11439 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
11441 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
11443 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11445 * objects/standard/polygon.c: Start of polygons own changes (for
11446 connectionpoints). Need to do seperate changes in polyshape, too,
11447 rather than reuse the bezier changes.
11449 2000-04-13 James Henstridge <james@daa.com.au>
11451 * lib/dia_image.c (dia_image_draw): use the new enumeration values
11452 from after the gdk-pixbuf cleanup.
11454 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
11455 on for loop. Last set of coefficients were not beeing calculated,
11456 which caused a bit of breakage.
11458 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
11459 functions in geometry.c for calculating the closest segment.
11460 (bezierconn_distance_from): use distance_bez_line_point to calculate
11463 * lib/geometry.c (distance_bez_line_point): new function to calculate
11464 the distance from an open bezier line to a point.
11465 (distance_bez_shape_point): new function to calculate the distance
11466 from a closed bezier shape.
11467 (distance_ellipse_point): new function to calculate the distance from
11468 a filled ellipse to a point.
11470 * lib/geometry.h (BezPoint): moved this structure here from render.h
11472 2000-04-12 James Henstridge <james@daa.com.au>
11474 * lib/geometry.c (distance_bez_seg_point): new function to calculate
11475 the distance from a bezier segment.
11477 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
11478 to calculate the distance from the object.
11480 * lib/geometry.c (distance_polygon_point): function for calculating
11481 the distance from a polygon to a point.
11483 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
11486 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
11487 breaks can be inserted in the tool box.
11489 * doc/sheet.dtd: updated the DTD
11490 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
11492 2000-04-12 James Henstridge <james@daa.com.au>
11494 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
11495 macro if the dialog is a GtkDialog :(
11497 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11499 * objects/standard/polygon.c: Connectionpoints now properly
11500 managed in a GList. As far as I can tell, this will not dieturb
11501 the order (but I have the nagging doubt...)
11503 * lib/polyshape.c: No longer knows about connectionpoints.
11505 2000-04-11 James Henstridge <james@daa.com.au>
11507 * app/Makefile.am: fix makefile for bonobo build.
11509 * configure.in: fix checks for bonobo.
11511 * app/menus.c: added entries for the plugin manager.
11513 * app/Makefile.am (dia_core_files): added plugin manager to files
11516 * app/plugin-manager.[ch]: the plugin manager dialog.
11518 * app/display.c (display_update_menu_state): set the antialiased
11519 menu entry to the correct value.
11521 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
11523 * objects/custom/custom_object.c: not all renderers like ellipses with
11524 negative dimensions. This could cause ellipses to disappear when using
11525 the flip_h and flip_v functions.
11527 * samples/grafcet.dia: fixed speling and correctness.
11529 2000-04-11 James Henstridge <james@daa.com.au>
11531 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
11532 exposed the dia_plugin_load and dia_plugin_unload functions.
11534 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
11535 already created PluginInfo structure.
11537 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
11540 * lib/sheet.c: fix up call to dia_config_filename.
11542 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
11543 file. This would save information such as which plugins not to
11544 load during startup.
11546 2000-04-09 James Henstridge <james@daa.com.au>
11548 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
11550 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
11552 * lib/plug-ins.c (dia_register_plugins):
11553 Don't free the value returned from g_getenv.
11555 2000-04-09 Anders Carlsson <andersca@gnu.org>
11557 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
11559 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
11561 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
11562 right to left, select objects that intersect the rubberbanding rectangle
11563 instead of selecting objects that are in the rectangle.
11565 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
11567 * lib/diagramdata.h: Likewise.
11570 2000-04-09 James Henstridge <james@daa.com.au>
11572 * lib/plug-ins.[ch]: add copyright messages to files.
11574 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
11577 * objects/sybase/sybase.c (dia_plugin_init):
11578 * objects/network/network.c (dia_plugin_init):
11579 * objects/flowchart/flowchart.c (dia_plugin_init):
11580 * objects/custom/custom.c (dia_plugin_init):
11581 * objects/chronogram/chronogram.c (dia_plugin_init):
11582 * objects/UML/uml.c (dia_plugin_init):
11583 * objects/SADT/sadt.c (dia_plugin_init):
11584 * objects/GRAFCET/grafcet.c (dia_plugin_init):
11585 * objects/FS/fs.c (dia_plugin_init):
11586 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
11589 * objects/standard/standard.c (dia_plugin_init): change over to new
11592 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
11593 the version checker for plugins.
11595 * app/app_procs.c: remove plugin loading code from here, and use
11596 code from plug-ins.[ch]. Also move registration of internal
11597 objects/filters to a `builtin' plugin.
11599 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
11601 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
11603 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
11604 defined variable in EXTRA_DIST.
11606 * app/preferences.h: removed dia_config_filename from header.
11608 * app/preferences.c: removed dia_config_filename function.
11610 * lib/dia_dirs.c (dia_config_filename): moved function over to this
11611 file. Also changed implementation slightly so that it should work
11612 on the win32 port correctly (and use NT home directories).
11614 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
11615 it should have been.
11617 * lib/plug-ins.[ch]: new plugin loading code.
11619 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11621 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
11623 * lib/polyshape.c: Fix closest segment finding, exposes deeper
11624 bugs in adding corners to 'wraparound' segment.
11626 * objects/standard/polygon.c: Added connection points (fixed so
11627 far), set menu sensitivity.
11629 * lib/polyshape.c: Changed to box-style handles, fixed for start
11630 and ends not being special, added initial connections,
11632 * lib/dummy_dep.h: Added polyshape (gotcha!)
11634 * objects/standard/pixmaps/ellipse.xpm:
11635 * objects/standard/pixmaps/box.xpm:
11636 Filled element pixmaps with white.
11639 * objects/standard/polygon.c:
11641 * objects/standard/standard.c:
11642 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
11643 * lib/Makefile.am (libdia_a_SOURCES):
11645 * app/interface.c (tool_data):
11646 Added Standard/Polygon object and PolyShape lib object. Still
11647 needs inside grab and connection points.
11649 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
11652 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
11655 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
11656 if (argv) outside ifdefs.
11658 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11660 * objects/standard/image.c (image_set_props):
11661 Aspect ratio is back in town.
11663 * app/Makefile.am (dia_LDADD):
11666 Check for gdk_pixbuf (by default disabled, for now)
11668 * app/render_eps.c (draw_image):
11669 * app/render_libart.c (draw_image):
11670 * app/render_gnomeprint.c (draw_image):
11671 Support for alpha mask in rendering. Color postscript, too.
11675 Support for gdk_pixbuf and proper masking for exports.
11677 2000-04-01 Kjartan Maraas <kmaraas@online.no>
11679 * sheets/*.sheets: Updated Norwegian translations.
11681 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
11683 * lib/text.c (text_insert_char):
11684 * lib/render_store.c (add_data):
11685 Made realloc double the alloced space rather than add
11686 a fixed amount, to reduce memory stress.
11688 * app/select.c: Added new select method 'Transitive'
11689 that select every reachable (by connections) object.
11691 2000-03-27 Kjartan Maraas <kmaraas@online.no>
11693 * dia.desktop: Added Norwegian translation.
11695 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
11697 * app/render_eps.c:
11698 * app/render_svg.c:
11699 Don't dereference NULL pointer if the renderer
11700 couldn't open the file. Fix by Lars Clausen.
11701 Bug reported by Martin Chisholm <b1mt@unb.ca>
11703 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
11707 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
11709 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
11711 * app/dia.gnorba (location_info):
11712 Changed to correct executable name.
11714 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
11717 Don't do any argument parsing or initialization
11720 * app/dia_embedd.c:
11721 Call init_server_factroy before app_init.
11722 Call app_init with argv==NULL
11723 Now we don't get any critical error on startup.
11726 Add Electric and Pneumatic to makefile list.
11728 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
11730 * shapes/Electric/*:
11731 * sheets/Electric.sheet:
11732 Add some Electric circuit shapes.
11734 * shapes/Pneumatic/*:
11735 * sheets/Pneumatic.sheet:
11736 Add some Pneumatic & Hydraulic circuit shapes
11737 (both sheets are still incomplete, though feature enough
11738 things for basic circuits).
11740 * shapes/Contact/l_*.(xpm|shape):
11741 * sheets/Contact.sheet
11742 * shapes/Contact/Makefile.am
11743 made the older electric circuit shapes in Contact obsolete (disabled
11744 them in the sheet, made that sheet Ladder only). Fixed the makefile
11745 for forgotten items.
11747 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
11750 Add support for Dia bonobo component.
11751 Currently a bit raw, so it's commented out.
11753 * app/dia_embedd.c:
11755 New files for embedding dia.
11756 The menu disabling hack is a bit gross. Esp. for GNOME.
11759 Add new function app_is_embedded();
11762 Don't destroy diagram when last display is destroyed if embedded.
11765 Change initialization of display so it works with embedding.
11768 Clarify comment about display destruction.
11770 * app/interface.[ch]:
11771 Added top_level_window argument to create_display_shell.
11772 Don't open a top-level window if embedding.
11773 Don't quit app if trying to close toolbox window when embedding.
11774 Add toolbox_show() and toolbox_hide().
11777 Added app_is_embedded() function (just returns false).
11778 Added toolbox_show() call in main().
11781 Added code for getting toolbox menus. This is used to
11782 hide some menu items when running embedded.
11785 Include sheet.h to remove warning.
11787 * objects/UML/association.c:
11788 Clarify association direction text.
11790 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
11793 Fixed man page so whatis parsing works.
11795 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
11797 * app/render_libart.c (new_libart_renderer):
11798 Fix from segg <segg@infonet.ca> to compile without libart.
11799 I forgot to change the stub for new_libart_renderer when doing
11800 the interactive renderer stuff for libart.
11802 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
11804 * dia.desktop: Added Irish translation.
11806 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
11808 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
11810 * app/load_save.c (fchmod): OS/2 defines only.
11812 2000-03-07 James Henstridge <james@daa.com.au>
11814 * lib/properties.c (prop_get_widget): set the position in the option
11817 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
11820 * app/export_png.c:
11821 * app/render_libart.[ch]:
11822 Don't export png:s with an interactive libart renderer.
11824 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
11826 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
11828 2000-03-02 James Henstridge <james@daa.com.au>
11830 * dia.spec (%build): unset LINGUAS before running configure. This
11831 ensures that all translations get included in the RPM.
11833 * lib/properties.c (object_create_props_dialog): put in a check for
11834 a NULL return from the describe_props() object method.
11835 (prop_desc_lists_union): make sure that the returned array is not
11837 (prop_desc_lists_intersection): same here.
11839 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
11841 * objects/ER/Makefile.am:
11842 * objects/FS/Makefile.am:
11843 * objects/UML/Makefile.am:
11844 Don't link object libs with gtk.
11846 2000-02-29 James Henstridge <james@daa.com.au>
11848 * app/preferences.c (prefs_save): check to see if the file could
11849 be opened before writing the prefs.
11851 * app/disp_callbacks.c (popup_object_menu): pass the button event
11852 to gtk_menu_popup. This allows you to click and release to open
11854 (ddisplay_canvas_events): same here.
11855 (create_object_menu): set the object type menu item in the object
11856 menu to be insensitive.
11858 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
11859 as we are now requiring a new version of libxml.
11861 * dia.spec: updated version number. Added requirement for
11864 * configure.in: incremented version number to 0.84.
11865 Added check for libxml >= 1.8.5. This will prevent some of the
11866 problems people have had with broken libxml versions.
11868 * NEWS: added news items.
11870 * app/interface.c (create_color_area): removed call to realize parent
11871 widget. Segg <segg@infonet.ca> reported that it caused a warning,
11872 but I haven't seen it on my copy of dia.
11874 2000-02-28 James Henstridge <james@daa.com.au>
11876 * app/export_png.c: added copyright notice, and made the band height
11879 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
11881 * lib/font.c (suck_font):
11882 Fixed off-by one bug in font pixmap height.
11883 Fixes the problem with garbage at the bottom of some text in aa mode
11884 and in png exported files.
11886 2000-02-27 James Henstridge <james@daa.com.au>
11888 * app/app_procs.c: add the png export filter if it was compiled in.
11890 * app/export_png.c (export_png): new PNG export filter. This requires
11891 the libart renderer to work as it needs a renderer that renders to a
11894 * configure.in: add check for libpng.
11896 * lib/message.c (message_internal): use a GNOME dialog here as well.
11898 * app/display.c (ddisplay_close): use a GNOME dialog here.
11900 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
11901 when exporting to EPS. This is because some people said the EPS
11902 output was too large
11904 2000-02-26 James Henstridge <james@daa.com.au>
11906 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
11909 * app/app_procs.c (app_exit): use a GNOME dialog here.
11911 * app/preferences.c (prefs_create_dialog): if GNOME support is
11912 enabled, show a GNOME dialog.
11914 * app/grid.c (grid_draw): use preferences when drawing page break
11917 * app/preferences.c: add page break preferences to dialog.
11919 * app/preferences.h: added page break preferences.
11921 2000-02-25 James Henstridge <james@daa.com.au>
11923 * sheets/UML.sheet: added new objects.
11925 * objects/UML/uml.c: link in the two new objects.
11927 * objects/UML/node.c:
11928 * objects/UML/branch.c: new UML objects from Stfan Seefeld
11929 <seefelds@magellan.umontreal.ca>.
11931 2000-02-24 James Henstridge <james@daa.com.au>
11933 * objects/custom/custom_object.c: converted to use the properties
11934 interface. In the future, it would be nice to add support for
11935 defining custom properties for custom objects, but that can wait.
11937 2000-02-22 James Henstridge <james@daa.com.au>
11939 * sheets/Circuit.sheet: added new circuit shapes to sheet.
11941 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
11942 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
11943 and adds a few new features.
11945 2000-02-21 Daniel Egger <egger@suse.de>
11947 * sheets/*.sheets: Added German translations and made some
11948 corrections to the others.
11950 2000-02-21 James Henstridge <james@daa.com.au>
11952 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
11954 * shapes/Circuit/...: added new shapes from Erik Janssens.
11956 2000-02-20 James Henstridge <james@daa.com.au>
11958 * app/interface.c (create_color_area): realize the parent window
11961 * objects/standard/image.c: properties patch for standard image
11962 object, from Lars Clausen.
11964 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
11966 * lib/properties.h (PropType): added file property type.
11968 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
11971 * app/interface.c: use wrap box for toolbox.
11973 * app/Makefile.am: added new files.
11975 * app/gtk*wrapbox.[ch]: added wrap box widget.
11977 2000-02-19 James Henstridge <james@daa.com.au>
11979 * sheets/network.sheet: added extra shapes to networks sheet.
11981 * configure.in (AC_OUTPUT): added shapes/network/Makefile
11983 * shapes/network/*: added shapes that were posted to the list a while
11986 * shapes/Makefile.am (SUBDIRS): added network subdirectory
11988 * app/menus.c (toolbox_menu_items): don't right justify help menu for
11989 gtk+ version of menus.
11991 * app/properties.c (create_dialog): use a GnomeDialog if we happen
11994 2000-02-18 James Henstridge <james@daa.com.au>
11996 * objects/flowchart/box.c: set extra data for corner radius and text
11997 padding properties.
11999 * objects/standard/box.c: set extra data for corner radius property.
12001 * lib/properties.h: set extra data in some standard properties.
12003 * lib/properties.c (prop_get_widget): look at the extra data for
12004 int, real and enum property types. They now use GtkSpinButton and
12005 GtkOptionMenu respectively.
12007 * lib/properties.h: extra data members for creating property setting
12010 2000-02-17 James Henstridge <james@daa.com.au>
12012 * objects/flowchart/box.c: reverted load/save functions back to
12013 previous implementations. Made box use standard property names.
12015 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
12017 * app/grid.c: add more digits to the grid edit dialog. This patch
12018 was also from Lars Clausen.
12020 * objects/standard/zigzagline.c:
12021 * objects/standard/textobj.c:
12022 * objects/standard/polyline.c:
12023 * objects/standard/line.c:
12024 * objects/standard/ellipse.c:
12025 * objects/standard/box.c:
12026 * objects/standard/bezier.c:
12027 * objects/standard/arc.c: patches to add properties code to standard
12028 objects. Based on patches from Lars Clausen. I have also removed
12029 some dead code from the files.
12031 * lib/properties.h (PROP_STD_*): define a number of standard
12032 properties. Where appropriate, objects should include these
12033 properties in their PropDescription list. This way, the intersection
12034 of properties of two different shapes will be greater.
12036 2000-02-14 James Henstridge <james@daa.com.au>
12038 * objects/flowchart/box.c (box_load, box_save): use property save
12039 routines. Make sure that any props not handled by object_load_props
12040 are loaded before calling object_load_props, or we get errors because
12041 update_data is called.
12043 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
12044 error that could cause properties to be loaded incorrectly.
12045 (object_set_props_from_offsets): similar here.
12047 * lib/properties.[ch] (prop_{load,save}): functions for loading
12048 or saving a property in Dia's XML file format.
12049 (object_{load,save}_props): load or save some properties of an
12050 object. These functions should help simplify the load/save methods
12051 of objects that implement the properties interface.
12053 2000-02-13 James Henstridge <james@daa.com.au>
12055 * objects/flowchart/box.c: use offset code to simplify property
12058 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
12060 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
12062 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
12064 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
12066 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
12069 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
12072 Add the custom object to DIA_LIB_PATH in run_dia.sh
12074 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
12076 * sheets/Circuit.sheet:
12077 * shapes/l_sout* (NEW):
12078 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
12079 variants of simple, inverted, set and reset outputs.
12080 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
12081 probably a split of Contact and Ladder sheets. And then a major
12082 revamping of the Contact sheet.
12084 2000-02-10 James Henstridge <james@daa.com.au>
12086 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
12088 * app/app_procs.c (register_all_objects): don't explicitely
12089 register the custom objects library -- let it be loaded by the
12090 normal plugin loading methods.
12092 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
12094 * objects/custom/Makefile.am: build libcustom_objects as a shared
12097 * objects/custom/shape_info.[ch]: don't read the description field
12098 of custom shapes. It makes more sense to have these in the sheet
12099 file to localise the parts of dia that translators have to deal
12102 * objects/custom/custom_object.c (custom_object_new): do not
12103 create the sheet object for the new custom shape -- this is
12104 handled by the custom sheet code.
12106 * objects/custom/custom.c: change over to being a normal plug-in
12107 rather than being linked with the main dia executable.
12109 2000-02-09 James Henstridge <james@daa.com.au>
12111 * sheets/Circuit.sheet:
12112 * sheets/Flowchart.sheet:
12113 * sheets/Contact.sheet: fixed up sheets.
12115 * objects/custom/custom_object.c (custom_object_new): set the
12116 extra ObjectType fields.
12118 * lib/sheet.c: use extra ObjectType fields when creating sheet
12119 objects. Give a warning if <shape> tags are found in a sheet
12120 file. Now the custom sheet code does not know about custom
12121 shapes -- they look like any other object type.
12123 * lib/object.h (ObjectType): added extra members
12125 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
12127 * app/linewidth_area.c:
12128 Added code to set arbitrary line width.
12129 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
12131 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
12133 * app/linewidth_area.c:
12135 Add support for font-sucking.
12136 Implementation borrowed from gnome-canvas.
12138 * app/render_libart.[ch]:
12139 Implement text rendering.
12141 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
12143 * app/properties.c (create_dialog):
12144 ref and sink no_properties_dialog.
12146 2000-02-07 James Henstridge <james@daa.com.au>
12148 * app/group.c (group_describe_props): new function. Return the
12149 intersection of the properties of the contained objects that
12150 implement the describe_props interface.
12151 (group_get_props): implement by iterating through contained objects
12152 and calling their get_props method until all properties have been
12153 set. Maybe this should go through all objects all the time??
12154 (group_set_props): implement by calling set_props method on all
12156 (group_ops): use standard props dialog creation routines.
12158 * lib/properties.c (prop_desc_lists_intersection): fix implementation
12159 of intersection -- I was using i++ instead of i-- in a for loop :(
12161 * objects/custom/custom.c (custom_register_objects): fix usage
12162 of dia_get_data_directory again.
12164 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
12165 actually read the sheets.
12167 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
12169 Win32 port by Hans Breuer <Hans@Breuer.org>
12172 Remove DATADIR and LIBDIR defines.
12175 Add dia_dirs.c and dia_dirs.h
12176 Added DATADIR and LIBDIR defines.
12178 * lib/dia_dirs.[ch]:
12179 New files for handling special directories.
12184 * objects/custom/custom.c:
12185 Fix warnings. Use directory functions.
12188 Add prototype for diagram_redraw_all.
12190 * app/diaunitspinner.c:
12193 * app/preferences.c:
12197 Win32 doesn't have mkstemp and fchmod.
12199 * app/paginate_psprint.c:
12200 Win32 calls popen _popen and pclose _pclose.
12203 Win32 calls finite _finite.
12206 Win32 needs to dllexport the color vars.
12208 * objects/GRAFCET/step.c:
12209 * objects/chronogram/chronoref.c:
12210 snprintf -> g_snprintf
12212 2000-02-05 James Henstridge <james@daa.com.au>
12214 * lib/properties.c: more fixes so that it doesn't crash when using
12215 properties. The undo/redo stuff also works!!
12217 * objects/flowchart/box.c (box_{describe, get, set}_props): test
12218 object where I have implemented the new properties interface
12219 complete with automatic properties dialog generation.
12221 * lib/properties.c (object_apply_props): fixed stupid error when
12222 creating the old_props array. Also, it no longer frees the props
12223 array -- you will have to do that yourself.
12225 2000-02-04 James Henstridge <james@daa.com.au>
12227 * app/properties.c (properties_apply): pass object_part to
12230 * lib/object.h (ApplyPropertiesFunc): added widget argument.
12232 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
12233 created this way as well.
12235 * objects/*/*.c: ref and sink the properties dialog window for each
12236 widget. It can't rely on ref count being incremented by
12237 properties_show anymore.
12239 * app/properties.c (properties_show): don't ref the widget before
12240 removing it, or its ref count will increase each time you open the
12241 properties dialog. Don't unparent the widget, as container_remove
12244 * lib/object.h: fixed up prototypes for new object methods.
12246 * lib/properties.[ch]: added functions for automatically creating
12247 a properties dialog from the output of describe_props, get_props and
12249 (object_apply_props): apply properties and return an ObjectChange
12250 structure that can be used for undo.
12252 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
12254 * objects/GRAFCET/transition.c: minor leak plugged.
12256 * sheets/GRAFCET.sheet:
12257 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
12258 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
12260 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
12261 new ones (for condition.c).
12262 * objects/GRAFCET/action.c: added connection points for the conditions.
12263 * samples/grafcet.dia: updated the sample to improve conformance to
12264 IEC 848 and take advantage of dia's new features.
12266 * lib/geometry.h: (point_get_normed) fixed a typo.
12268 2000-02-02 James Henstridge <james@daa.com.au>
12270 * lib/object.h: added object functions describe_props, get_props and
12271 set_props. Do type definitions so that object.h doesn't need to
12272 include properties.h, since properties.h includes object.h.
12274 * lib/properties.[ch]: more hacking.
12276 * po/de.po: updated po file.
12278 2000-01-30 James Henstridge <james@daa.com.au>
12280 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
12281 check to see if the C compiler accepts the flag beforehand.
12283 * lib/properties.[ch]: start of properties code.
12285 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
12287 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
12289 * sheets/GRAFCET.sheet:
12290 * sheets/GRAFCET/etapemc.xpm: (NEW)
12291 * sheets/GRAFCET/etapesp.xpm: (NEW)
12292 * objects/GRAFCET/step.c: Added the macro and
12293 sub-program call step types.
12295 * objects/GRAFCET/receptivity.[ch]: renamed to
12296 objects/GRAFCET/boolequation.[ch].
12297 * objects/GRAFCET/transition.c: changed (Receptivity *) to
12300 * lib/connpoint_line.[ch]:
12301 * objects/chronogram/chronoline.c:
12302 * objects/chronogram/chronoref.c:
12303 * objects/GRAFCET/vergent.c:
12304 * objects/standard/line.c:
12305 * objects/SADT/box.c: Minor CPL interface changes, factored out the
12306 point count adjustment code into the CPL object.
12308 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
12310 * app/render_libart.c:
12311 Added support for images and bezier curves.
12312 Only text/fonts missing now.
12314 * app/render_gdk.c:
12315 Removed old erronous comment.
12317 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
12319 * objects/chronogram/chronoline_event.c: removed references to
12320 lround(). Please don't insist, I'm already red of shame.
12322 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
12324 * app/render_libart.[ch]:
12326 Non-finished libart renderer.
12329 Added HAVE_LIBART flag
12335 Call gdk_rbg_init().
12337 * app/connectionpoint_ops.c:
12338 * app/disp_callbacks.c:
12340 * app/handle_ops.c:
12342 * app/modify_tool.c:
12343 Change ddisp->renderer type from RendererGdk * to Renderer *
12344 Draw zoom and select rects in ddisp->canvas->window instead
12345 of ddisp->renderer->renderer->pixmap.
12347 * app/display.[ch]:
12348 Add aa_renderer to DDisplay, and support for it.
12349 New function ddisplay_set_renderer() for changing renderer.
12350 Add ddisplay_transform_coords_double() function, used by aa renderer.
12351 Change ddisp->renderer type from RendererGdk * to Renderer *
12354 Add antialias to menu.
12356 * app/commands.[ch]:
12357 add view_aa_callback function
12358 Change ddisp->renderer type from RendererGdk * to Renderer *
12360 * lib/geometry.[ch]:
12361 Added IntRectangle and int_rectangle_union.
12363 2000-01-28 James Henstridge <james@daa.com.au>
12365 * app/commands.h: removed prototypes.
12367 * app/commands.c: removed the functions that have been moved to
12370 * app/filedlg.h: added new prototypes.
12372 * app/filedlg.c (file_open_callback): move open dialog to this
12373 file. This implementation should remember the current directory
12374 between file loads.
12375 (file_save_as_callback): moved this dialog as well.
12376 (file_save_callback): moved this function here.
12378 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
12379 align page boundaries to the origin.
12381 * app/diagram.c (diagram_update_extents): redraw the diagram if the
12382 scaling factor changes while updating the extents. This is so the
12383 page breaks get redrawn correctly.
12385 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
12388 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
12389 For normal mode, use (0,0) as the origin. For `fit to' mode, use
12390 the corner of the bounding box.
12392 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
12393 into page setup dialog.
12394 (pagesetup_apply): apply new `fit to' attributes to the diagram.
12396 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
12397 (diagram_data_save): save `fit to' data.
12399 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
12400 (data_update_extents): when in `fit to' mode, update scale factor
12401 when we update the extents.
12403 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
12406 * .../.cvsignore: added some cvsignore files to quieten cvs.
12408 * app/pagesetup.c (pagesetup_changed): added code to change the
12409 scaling/fit to values as you change the options in the page setup
12410 dialog. I haven't added code so that the fit to options are saved
12413 * app/diapagelayout.[ch]: changed the scaling portion of the widget
12414 to make it easier to set a `fit to' style scaling factor.
12416 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
12417 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
12418 but connpoint_line-based, so that there's a connection point at the
12419 middle of each segment. Currently only the SADT arrow uses this.
12421 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
12423 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
12424 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
12425 saving and editing of properties (and default properties).
12426 See the new objects (GRAFCET, SADT, chonograms) for examples.
12427 For already too hairy stuff, see objects/chronogram/chronoline.c.
12429 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
12430 evenly spaced connection points, which the user can add or remove at
12431 will. An object can own several connection point lines. See the SADT
12432 Box, or the GRAFCET vergents for examples.
12434 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
12435 quiet about unused stuff.
12437 * objects/GRAFCET (NEW):
12438 * samples/grafcet.dia (NEW):
12439 Added support for GRAFCET charts.
12441 * objects/chronogram (NEW):
12442 * samples/chronograms.dia (NEW):
12443 Added support for chronograms (feature requested by Ronald L. Chichest;
12444 I found I'd use it often, too).
12446 * objects/standard/line.c: Replace the middle connectionpoint by
12447 a whole connection point line, which defaults to one point (hint,
12448 hint). New Line object menu to take advantage of this.
12449 "Bothwards" compatibility is preserved (although you may loose
12450 connections if you load a newer file in a older dia).
12452 * app/lineprops_area.c:
12454 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
12455 (feature requested by Benjamin Kahn).
12456 Merged in Steffen Macke's slashed arrow head type.
12458 * app/Makefile.am (app/run_dia.sh actually):
12459 Added $DEBUGGER in front of dia's invocation, so that
12460 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
12461 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
12462 "EFENCE=-lefence" to link with Electric Fence.
12464 * configure.in: Made gcc do more aggressive optimisations on i386, and
12467 2000-01-24 James Henstridge <james@daa.com.au>
12469 * lib/geometry.[ch]: added inline versions of functions. Used
12470 glib's G_INLINE_FUNC stuff, so it should still work on systems
12471 without inline funcs.
12473 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
12474 it outputs the correct element id for the ellipse objects.
12476 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
12478 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
12479 object_add_handle_at. Message typo fixed.
12481 * lib/sheet.c (load_register_sheet):
12482 potential bug fixed (warning hunt).
12484 * objects/custom/custom.c (custom_object_load): disabled an assertion
12485 which made dia abort upon failure to load a shape file. Fixed a
12488 * objects/custom/shape_info.c (load_shape_info): Made the custom
12489 shape load code ignore XML comments between <?xml ...?> and the
12490 root object (mostly useful to put the emacs magic comments).
12492 * app/load_save.c: Made dia do backup copies of files when saving,
12493 and complain in case of failure.
12495 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
12497 * AUTHORS: fixed my address (ISP thought it was a great idea to change
12502 * shapes/Contact/*:
12503 * sheets/Contact.sheet:
12504 * sheets/Makefile.am:
12505 Added support for Contact and LADDER charts.
12507 * dia.desktop: Added a French translation.
12509 2000-01-23 James Henstridge <james@daa.com.au>
12511 * app/commands.c (help_about_callback): don't die if can't load
12514 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
12515 out NaN's when performing bezier curve subdivision.
12517 * objects/custom/custom_object.c: initialise memory of Custom structs
12520 * app/render_svg.c (draw_image): added image support to the XML
12521 output filter. The image is just referenced, rather than being
12522 included inline, so if you copy the SVG file somewhere else, you
12523 may need to move the images or fix up the links.
12525 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
12526 so the text is not just displayed in black all the time.
12528 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
12530 * configure.in: fixed libpopt test so we wont try to build with
12533 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
12535 * configure.in: Added "uk" to ALL_LINGUAS.
12537 1999-12-24 James Henstridge <james@daa.com.au>
12539 * po/ru.po: updated russian translation from Valek Filippov.
12541 * app/render_svg.c (new_svg_renderer): make output use 19991203
12542 version of SVG DTD. Use viewBox to set the extents of the view.
12544 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
12545 ftp.gnome.org as the download.
12547 * TODO (TODO): weeded out completed todo items and added a few extra.
12549 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
12551 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
12552 be good to get rid of the object/shape distinction and separate
12553 the custom shape code out from the main application.
12555 * objects/custom/README, diagram.dtd: moved to new doc directory.
12556 Renamed the custom shapes README to custom-shapes. Also updated
12557 custom shape docs a bit and removed the section on sheet files, as
12558 that has changed a bit.
12560 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
12561 of the image data is larger than the maximum cell array. I should
12562 add code to break scan lines down further in this case, but for now
12563 an error message is better than an infinite loop.
12565 * app/filedlg.c (file_export_ok_callback): show a dialog if we
12566 couldn't determine the export filter to use.
12568 * app/commands.c (help_about_callback): fixed up about box logo
12569 expose bug. Now just use a GtkPixmap widget rather than a
12570 GtkDrawingArea and calling gdk_imlib_paste_image.
12572 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
12573 because automake does not always get things right.
12575 * configure.in: updated version number to 0.83.
12577 * app/preferences.c (prefs_save):
12578 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
12579 for fopen. Text is the default file mode anyway.
12581 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
12582 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
12583 * app/load_save.c (write_objects, write_connections):
12584 * app/filedlg.c (file_export_ok_callback):
12585 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
12586 * lib/dia_xml.c (data_add_point, data_add_rectangle):
12587 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
12588 snprintf to calls to g_snprintf.
12590 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
12591 as the picture name.
12593 1999-12-23 James Henstridge <james@daa.com.au>
12595 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
12596 negative numbers. This fixes the upside down text problem I was
12598 (draw_image): implemented the image code. It will try to split the
12599 image data up into bands if it is too big to fit into a single
12600 cgm cell array element. It will have problems if you try to insert
12601 an image wider than about 10,000 pixels though.
12603 * Makefile.am: use gnomedatadir for the files that need to be
12604 installed in gnome's datadir. This is mainly to help people doing
12605 packages for weird setups.
12607 1999-12-22 James Henstridge <james@daa.com.au>
12609 * plug-ins/cgm/cgm.c: added support for text. Now only images and
12610 beziers are left to do. The text seems to be the wrong way up
12611 still. This is probably a problem with character orientation
12612 element, but I have used what the settings given in the standard.
12613 Other than this, the CGMs dia produces are readable (and displayable)
12614 by ralcgm and corel draw.
12615 (draw_string): subtract from the X coord rather than the Y coord for
12616 center and right aligned text.
12618 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
12619 the size of a real number, and changed name of write_double to
12620 write_real. Consider changing to fixed real encoding. Also, now
12621 all element headers are correct. Once the real number encoding is
12622 fixed, only text, beziers and images are left to do.
12624 1999-12-21 James Henstridge <james@daa.com.au>
12626 * Makefile.am (SUBDIRS): recurse into plug-ins.
12628 * configure.in: add plug-ins directory makefiles to list.
12630 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
12631 not done yet. Also, the output files are not quite correct.
12633 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
12634 font. It doesn't work if you do.
12636 1999-12-20 James Henstridge <james@daa.com.au>
12638 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
12639 export the files. Instead, use filter_guess_export_filter to
12640 guess the correct format to save in and use the appropriate filter.
12641 It defaults to postscript for compatibility.
12643 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
12646 * app/commands.[ch]: removed export to eps functions.
12648 * app/menus.c: removed export to eps menu items.
12650 * app/app_procs.c: register new export filters.
12652 * app/load_save.[ch]: define dia native export filter.
12654 * app/render_eps.[ch]: define eps export filter.
12656 * lib/filter.h: added diafilename argument to the DiaExportFunc
12657 prototype. This is useful for putting the source of the diagram
12658 into the output file for instance.
12660 * app/app_procs.c (app_init): register the SVG export filter. Have
12661 to get EPS code converted to this API, and maybe also allow saving in
12662 DIA's native format from the export dialog. In fact, it is now
12663 possible to load an export filter from a shared library and it will
12664 integrate into the interface correctly.
12666 * app/menus.c: removed references to the SVG renderer.
12668 * app/commands.[ch]: removed svg stuff.
12670 * app/diagram.[ch]: removed diagram_export_to_svg function.
12672 * app/render_svg.[ch]: added a DiaExportFilter structure for this
12675 * app/filedlg.[ch]: code for the new export diagram dialog. Will
12676 probably move the open/save dialogs to this file as well.
12678 1999-12-19 James Henstridge <james@daa.com.au>
12680 * lib/filter.[ch]: start of interface for generalised handling of
12681 filters. I have only done code for export filters so far. I still
12682 need to do the gui for this, and convert the current SVG and EPS
12683 filters to the new API.
12685 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
12686 weren't setting the last handle correctly. It was actually assigning
12687 to the wrong position in the handles array, so the last handle was
12688 left as NULL, which caused the segfault.
12690 * objects/standard/image.c (image_copy): modified routine so that
12691 it just adds a reference to the DiaImage structure in the new image
12692 object. This seems to have cleared up the problems with copying
12695 * dia.spec: spec file additions from John Gotts.
12697 1999-12-12 James Henstridge <james@daa.com.au>
12699 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
12700 has not been released yet though.
12702 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
12705 The following based on a patch from Lars Clausen:
12707 * objects/standard/bezier.c (bezierline_move_handle): when performing
12708 the initial drag of the bezierline, move the control points to keep
12711 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
12712 make the new control points a bit closer to the major point.
12714 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
12715 as the reason for the move.
12716 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
12719 * lib/handle.h: new handle move reasons.
12721 1999-12-09 James Henstridge <james@daa.com.au>
12723 * dia.spec: include the new files in RPMs.
12725 * Makefile.am: install these new files.
12727 * dia.keys.in: file describing actions and icon for dia diagrams for
12728 use in the gnome file manager.
12730 * dia.mime: a file defining the application/x-dia-diagram mime type.
12732 * dia-diagram.png: an icon for dia diagrams.
12734 1999-12-08 James Henstridge <james@daa.com.au>
12736 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
12738 * plug-ins/python/pydia-display.[ch]: wrapper for display.
12740 * objects/standard/ellipse.c: applied Lars's patch to optionally not
12741 draw the background of the ellipse.
12743 * app/load_save.c (read_connections): do some sanity checking on the
12744 handle and connection point numbers before performing the object
12747 * lib/bezier_conn.c (bezierconn_load): give the correct number of
12748 handles when loading a BezierConn.
12750 1999-12-07 Kjartan Maraas <kmaraas@online.no>
12752 * sheets/*.sheet: Finished Norwegian translations.
12754 1999-12-07 James Henstridge <james@daa.com.au>
12756 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
12757 (PyDia_GetObjectType): find object type function.
12759 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
12760 method for diagrams.
12762 * plug-ins/python/pydia-object.c: added methods for DiaObject and
12765 * AUTHORS: added Lars and Cyrille to the authors file.
12767 * objects/standard/bezier.c (bezierline_add_segment_callback): place
12768 new point correctly.
12770 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
12772 * lib/bezier_conn.c: applied Lars's patch for placement of the new
12773 point when adding a segment to a BezierConn.
12775 1999-12-06 James Henstridge <james@daa.com.au>
12777 * plug-ins/python/test.py: test script for the python plug-in.
12779 * plug-ins/python/python.c: this file contains the plug-in startup
12780 code for the python plugin. Right now, it just initialises the
12781 dia module and executes a script.
12783 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
12785 * objects/standard/bezier.c (bezierline_draw): draw control lines for
12786 bezier curve if we are using an interactive renderer (ie. only if
12787 displaying to the screen).
12789 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
12790 to draw control lines on to a bezier curve. Based on implementation
12793 * objects/standard/bezier.c (bezierline_delete_segment_callback):
12794 calculate segment number using closest_segment rather than
12795 closest_handle. Sometimes the closest handle is part of a different
12797 (bezierline_draw): use correct size for start arrow.
12799 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
12800 * lib/geometry.c (distance_line_point): added notes to documentation
12802 * app/object_ops.c (object_list_align_v):
12803 (object_list_align_h): fix of by one error when calculating free space
12804 for equal distance alignment.
12805 * app/menus.c (objects_align_h, objects_align_v): include align
12806 adjacent menu items in the gnome version of the menus.
12807 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
12808 align adjacent menu items correctly.
12811 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
12814 * objects/standard/bezier.c: converted bezierline to use BezierConn.
12815 Still a few bugs. It crashes on deleting line segments.
12817 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
12819 1999-12-05 James Henstridge <james@daa.com.au>
12821 * lib/bezier_conn.[ch]: start of BezierConn object
12823 * app/interface.c: add bezierline to toolbox.
12825 * objects/standard/standard.c: initialise bezierline.
12827 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
12828 made a few modifications to get it working nicely. It still needs
12829 a bit of work though. Maybe create a BezierConn object in lib.
12831 1999-12-02 James Henstridge <james@daa.com.au>
12833 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
12835 * plug-ins/python/Makefile.am: tried building everything. It is
12836 building as a library at the moment. I will have to convert it
12837 to a libtool library and add some initialisation code.
12839 * plug-ins/python/diamodule.c: start of the dia module, using the
12840 other object wrappers. Not complete.
12842 1999-12-01 James Henstridge <james@daa.com.au>
12844 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
12845 the handles and connections attributes.
12847 * plug-ins/python/pydia-layer.c: added functions that use
12850 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
12852 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
12854 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
12855 I am currently wrapping the basic elements in the diagram in python
12856 objects -- nothing to see or play with yet.
12858 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
12862 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
12864 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
12868 Added russian translation from Valek Filippov <frob@df.ru>
12870 1999-11-24 James Henstridge <james@daa.com.au>
12873 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
12874 discussed with Alex. Also added extra makefiles so that make install
12877 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
12879 * app/preferences.[ch]:
12881 Added snap to grid preference.
12882 Patch from Michael Leslie <mles@springboardwireless.com>
12884 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
12890 * objects/custom/shape_info.c:
12891 All strings returned by libxml must be freed with free, not
12892 g_free, or there will be problems if you use memory debugging
12895 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
12897 * app/create_object.[ch]:
12900 * app/commands.[ch]:
12902 * app/interface.[ch]:
12903 Reverted the tool menu patch. It has some 'issues'.
12904 I liked it though, so it'll probably return.
12906 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
12908 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
12909 <bruce@cybersight.com> for some purify runs and analysis.
12910 Also a great thank you to Owen Taylor for creating MemProf, a
12911 free memory leak detector that was used to find and verify a
12912 lot of these fixes.
12915 * app/paginate_psprint.c:
12916 * app/render_eps.[ch]:
12917 * app/render_svg.[ch]:
12921 Don't add a reference to ddisp->shell. Why was this done in
12928 Free all strings returned from xmlGetProp
12930 * app/modify_tool.c:
12933 * objects/custom/custom.c:
12934 Use closedir() after opendir().
12936 * objects/custom/shape_info.c:
12937 User g_free() instead of "if (tmp) free(tmp)".
12940 Add newline at end of file.
12943 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
12945 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
12946 Adds tool menu and keyboard shortcuts.
12948 * app/create_object.[ch]:
12949 Use tool_set() instead of tool_reset().
12950 create_create_object_tool() takes extra type argument
12956 Moved tool_data here, export it.
12957 Add separate tool type for all create objects tools.
12958 new functions tool_set().
12961 New callback tool_set_callback.
12964 Moved some pixmaps to interface.c.
12967 Remove tool_data array (moved to tool.c).
12968 Use the tool_data from tool.c.
12969 Remove modify_tool_button global var.
12971 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
12973 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
12976 Interprets command-line arguments as files to open even when
12977 HAVE_POPT is not defined.
12980 Shift-clicking when zooming zooms out, like the Gimp.
12983 Has hotkeys for zoom-100% and snap-to-grid.
12985 1999-11-17 James Henstridge <james@daa.com.au>
12987 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
12988 that it is not jumpy.
12990 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
12992 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
12993 scrolling by pressing the shift key when using the scroll tool.
12995 * sheets/Makefile.am: fixed makefile so that install actually works
12996 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
12998 (SHEETS): install Circuit.sheet
13000 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
13001 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
13003 * sheets/Circuit.sheet:
13006 * sheets/Flowchart.sheet:
13007 * sheets/UML.sheet:
13008 * sheets/network.sheet:
13009 * sheets/sybase.sheet:
13012 * sheets/Circuit.sheet:
13013 added some missing French translations
13016 killed the temporary sheet namespace
13018 * objects/custom/custom.c:
13019 obsolete comment cleaned up
13021 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
13025 Added portugese translation from Pedro Morais
13026 <pmmm@rnl.ist.utl.pt>
13028 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
13030 Changed all sheets to be specified in xml.
13031 All sheet objects removed from the C code.
13032 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
13037 Updated version to 0.81cvs.
13040 Update run_dia.sh with sheet-dir.
13043 Load all sheets on startup.
13044 Create sheet directory first time.
13045 Don't call custom_register_sheets().
13048 Add sheetdir define
13051 Remove custom_register_sheets().
13054 Add sheet loading code.
13056 * sheet/Circuit.sheet:
13059 * sheet/Flowchart.sheet:
13061 * sheet/network.sheet:
13062 * sheet/sybase.sheet:
13065 * sheet/ER/weakentity.xpm:
13066 * sheet/UML/aggregation.xpm
13067 * sheet/UML/umlclass_template.xpm
13068 Added sheet pixmaps.
13069 These are moved from their old places.
13071 * sheet/.cvsignore:
13075 Removed sheet objects and sheet registration.
13077 * objects/ER/Makefile.am:
13078 * objects/ER/pixmaps/weakentity.xpm:
13079 * objects/UML/Makefile.am:
13080 * objects/UML/pixmaps/aggregation.xpm:
13081 * objects/UML/pixmaps/umlclass_template.xpm:
13082 Removed alternative pixmaps. (Moved to sheet).
13084 * objects/custom/Makefile.am:
13085 * objects/custom/load_sheet.[ch]:
13086 Removed old sheet loading code.
13088 * objects/custom/custom.c:
13089 Load all shapes instead of sheets.
13090 Removed custom_register_sheets().
13092 * objects/custom/custom_object.c:
13095 * objects/custom/shape_info.[ch]:
13096 Added shape_info_getbyname().
13098 * objects/flowchart/Makefile.am:
13099 * objects/flowchart/collate.shape
13100 * objects/flowchart/delay.shape
13101 * objects/flowchart/display.shape
13102 * objects/flowchart/document.shape
13103 * objects/flowchart/extract.shape
13104 * objects/flowchart/flowchart.c
13105 * objects/flowchart/intstorage.shape
13106 * objects/flowchart/magdisk.shape
13107 * objects/flowchart/magdrum.shape
13108 * objects/flowchart/magtape.shape
13109 * objects/flowchart/manualinput.shape
13110 * objects/flowchart/manualop.shape
13111 * objects/flowchart/merge.shape
13112 * objects/flowchart/offlinestore.shape
13113 * objects/flowchart/offpageconn.shape
13114 * objects/flowchart/or.shape
13115 * objects/flowchart/predefdproc.shape
13116 * objects/flowchart/preparation.shape
13117 * objects/flowchart/punchedcard.shape
13118 * objects/flowchart/punchedtape.shape
13119 * objects/flowchart/sort.shape
13120 * objects/flowchart/sumjunction.shape
13121 * objects/flowchart/terminal.shape
13122 * objects/flowchart/transaction.shape
13123 * objects/flowchart/transmittape.shape
13124 * objects/flowchart/pixmaps/collate.xpm
13125 * objects/flowchart/pixmaps/delay.xpm
13126 * objects/flowchart/pixmaps/display.xpm
13127 * objects/flowchart/pixmaps/document.xpm
13128 * objects/flowchart/pixmaps/extract.xpm
13129 * objects/flowchart/pixmaps/intstorage.xpm
13130 * objects/flowchart/pixmaps/magdisk.xpm
13131 * objects/flowchart/pixmaps/magdrum.xpm
13132 * objects/flowchart/pixmaps/magtape.xpm
13133 * objects/flowchart/pixmaps/manualinput.xpm
13134 * objects/flowchart/pixmaps/manualop.xpm
13135 * objects/flowchart/pixmaps/merge.xpm
13136 * objects/flowchart/pixmaps/offlinestore.xpm
13137 * objects/flowchart/pixmaps/offpageconn.xpm
13138 * objects/flowchart/pixmaps/or.xpm
13139 * objects/flowchart/pixmaps/predefdproc.xpm
13140 * objects/flowchart/pixmaps/preparation.xpm
13141 * objects/flowchart/pixmaps/punchedcard.xpm
13142 * objects/flowchart/pixmaps/punchedtape.xpm
13143 * objects/flowchart/pixmaps/sort.xpm
13144 * objects/flowchart/pixmaps/sumjunction.xpm
13145 * objects/flowchart/pixmaps/terminal.xpm
13146 * objects/flowchart/pixmaps/transaction.xpm
13147 * objects/flowchart/pixmaps/transmittape.xpm
13148 Moved shapes and their pixmaps to shapes/flowchart
13150 * shapes/Circuit/Makefile.am:
13151 * shapes/Circuit/index.sheet:
13152 Removed index.sheet.
13154 * shapes/Makefile.am:
13155 * shapes/flowchart/Makefile.am:
13156 * shapes/flowchart/*.shape:
13157 * shapes/flowchart/*.xpm:
13158 Added flowchart shapes. (Moved from objects/flowchart)
13161 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
13163 * app/app_procs.c: Fixed popt stuff.
13165 1999-11-01 James Henstridge <james@daa.com.au>
13167 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
13170 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
13174 Update version to 0.81.
13177 Update with news for 0.81.
13179 * shapes/Circuit/*:
13180 * shapes/Circuit_eu/*:
13181 Moved european circuit objects to Circuit sheet.
13183 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
13185 * lib/diagramdata.[ch]:
13186 Added layer_set_object_list() function.
13189 Added support for undo of reordered objects.
13190 Fix the undo of delete to keep the right order on undo.
13193 changed loop to object_add_updates_list() calls.
13194 Added undo support to bring to front/back.
13196 * app/disp_callbacks.c:
13197 * app/paginate_psprint.c:
13200 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
13202 This plugs some leaks. Thanks to
13203 Bruce Mitchener <bruce@cybersight.com> for running
13204 Dia through purify for me.
13207 Free displays and diagrams on exit.
13209 * app/modify_tool.c:
13210 Free gc when freeing tool.
13212 * lib/diagramdata.c:
13216 Free update and display lists when destroying display.
13218 * lib/diagramdata.c:
13219 Don't leak layer name.
13221 * objects/custom/load_sheet.c:
13222 * objects/custom/shape_info.c:
13223 Free loaded xml documents.
13225 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
13228 * app/object_ops.[ch]:
13229 Add undo handling to alignment ops.
13230 Based partially on patch by Dan Cohn <dan@internap.com>.
13232 * objects/standard/image.c (image_move_handle):
13233 Don't divide by zero for small images.
13234 Patch by Dan Cohn <dan@internap.com>.
13236 * objects/UML/class.c (umlclass_destroy):
13237 * objects/custom/custom_object.c (custom_destroy):
13238 Don't free connectionpoints before calling element_destroy
13239 which unconnects them.
13241 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
13243 * objects/custom/custom_object.c:
13244 Load and save padding too. Fixes strange load crashes.
13246 * app/group.c (group_destroy):
13247 Don't unconnect already freed connectionpoints when
13248 destroying group. Probably fixes bug reported by
13249 Elliot Lee <sopwith@redhat.com>.
13251 * app/render_gdk.c:
13252 Don't crash on zero-size (broken) bezier curves.
13253 Different sort of fix. This should work on closed bezier curves
13256 * objects/standard/textobj.c:
13257 Activate default properties dialog for Text objects.
13259 * app/render_eps.c:
13261 * app/preferences.c:
13262 * app/render_svg.c:
13263 fopen files in binary or text mode.
13265 1999-10-26 Alexander Larsson <alex@cendio.se>
13267 * app/render_gdk.c (bezier_add_lines):
13268 Don't crash on zero-size (broken) bezier curves.
13269 Fixes a crashing bug.
13271 1999-10-25 James Henstridge <james@daa.com.au>
13273 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
13274 before it is installed.
13276 * objects/flowchart/flowchart.c: use relative paths to find shapes.
13278 * objects/custom/custom.c (custom_object_load): take file names
13279 relative to $(pkgdatadir)/shape-internal, and check an environment
13280 variable for an alternative directory.
13282 * app/...: added copyright messages to the top of my new code.
13284 * app/paginate_psprint.c: some general clean ups. Also, give an error
13285 dialog if we can't open the command or output file for writing.
13287 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
13288 function so it would set orientation to landscape correctly.
13290 * app/paginate_psprint.c: use the paper settings that come with
13291 the diagram. Also implemented landscape printing.
13293 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
13296 * app/commands.[ch] (file_pagesetup_callback): added callback for
13297 the page setup dialog.
13299 * app/menus.c: added page setup menu item.
13301 * app/pagesetup.[ch]: implementation of the page setup dialog.
13303 * app/diapagelayout.[ch]: added accessors for the scaling factor.
13305 * app/load_save.c (diagram_load): load paper information from save
13307 (diagram_save): save the paper info.
13309 * lib/diagramdata.c (new_diagram_data): initialise paper info section
13310 of DiagramData structure.
13311 (diagram_data_destroy): free the paper name.
13313 * lib/diagramdata.h: added a paper member to the DiagramData structure
13314 that holds the page layout info for a diagram.
13316 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
13318 * objects/flowchart/box.c:
13319 * objects/flowchart/ellipse.c:
13320 * objects/flowchart/diamond.c:
13321 * objects/flowchart/parallelogram.c:
13322 Load and save padding too. Fixes strange load crashes.
13324 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
13326 * app/app_procs.c (name_is_lib):
13327 .dll, .sl and .so.0.0.0 are also libraries.
13329 1999-10-20 James Henstridge <james@daa.com.au>
13331 * configure.in: added extra makefile.
13333 * shapes/Circuit_eu/*: a new set of european circuit shapes from
13334 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
13335 (added fuses to makefile, fill the area of some of the components).
13337 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
13341 Add GDK_IMLIB_CFLAGS to includes.
13342 Changed --export-dynamic to -export-dynamic
13345 * objects/UML/message.c:
13346 Removed c++ comment.
13348 * lib/render_store.[ch]:
13349 Don't use empty structure. That is not Ansi C.
13351 1999-10-19 James Henstridge <james@daa.com.au>
13353 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
13354 the margin entries, as they allow interpretation of units.
13355 (paper_size_change): display the current page dimensions.
13357 * app/diaunitspinner.[ch]: a widget derived from the standard
13358 GtkSpinButton that tries to take units into account. So if you enter
13359 "1in" into the entry, it will convert it to 2.54cm.
13361 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
13364 Removed include of dlfcn.h
13366 1999-10-18 James Henstridge <james@daa.com.au>
13368 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
13369 bound on margin widths. It is set to the paper width/height.
13371 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
13372 routine for the diamond. This bug was found and fixed by Daniel Wang
13373 <danwang@CS.Princeton.EDU>
13375 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
13377 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
13378 remove warning (OS/2 version).
13380 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
13383 Put a pointer to objects/custom/README.
13385 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
13388 Updated version to 0.80
13391 Updated version to 0.80cvs
13393 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
13395 * Released Dia 0.80
13396 Tag called DIA_0_80
13398 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
13402 * objects/UML/Makefile.am
13403 * objects/ER/Makefile.am
13404 * objects/network/Makefile.am
13405 * objects/standard/Makefile.am
13406 * objects/FS/Makefile.am
13407 * objects/sybase/Makefile.am
13408 * objects/flowchart/Makefile.am
13409 * objects/custom/Makefile.am
13410 Added -I$(top_srcdir)/intl which is needed for
13411 --with-included-gettext.
13417 Updated swedish translation.
13419 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
13422 Updated version number to 0.80.
13428 Updated. Moved bugs to KNOWN_BUGS.
13431 Updated with 0.80 release notes.
13433 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
13436 For backwards compatibility, make sure handle 0 and 1 are the
13437 first and last handle. Fixes compatibility with 0.41, breaks
13438 compatibility with cvs version.
13439 Fixed bug in undo/redo of adding deleting endpoint segments
13440 when the endpoint was connected.
13441 Start OrthConn objects with three segments.
13443 1999-10-16 James Henstridge <james@daa.com.au>
13445 * objects/custom/custom_object.c (custom_update_data): changed
13446 resizing behaviour a bit so that shapes don't grow huge when you try
13447 to resize them to smaller than the size required by the text box.
13448 Also, now shapes will not grow with fixed aspect ratio when you enter
13449 text into them unless the shape has the fixed aspect ratio flag set.
13451 1999-10-15 James Henstridge <james@daa.com.au>
13453 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
13455 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
13457 * objects/flowchart/magdrum.shape:
13458 * objects/flowchart/offlinestore.shape:
13459 * objects/flowchart/punchedtape.shape:
13460 * objects/flowchart/transmittape.shape:
13461 * objects/flowchart/punchedcard.shape: new shapes.
13463 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
13465 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
13467 * objects/flowchart/collate.shape:
13468 * objects/flowchart/delay.shape:
13469 * objects/flowchart/extract.shape:
13470 * objects/flowchart/intstorage.shape:
13471 * objects/flowchart/magdisk.shape:
13472 * objects/flowchart/magtape.shape:
13473 * objects/flowchart/merge.shape:
13474 * objects/flowchart/or.shape:
13475 * objects/flowchart/sort.shape:
13476 * objects/flowchart/sumjunction.shape: new shapes.
13478 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
13482 Entering an erronous command as print command
13485 * app/paginate_psprint.c:
13486 Save all print dialog values for next time.
13489 Remove custom lib from DIA_LIB_PATH.
13491 1999-10-14 James Henstridge <james@daa.com.au>
13493 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
13495 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
13497 * objects/flowchart/offpageconn.shape:
13498 * objects/flowchart/manualop.shape:
13499 * objects/flowchart/preparation.shape:
13500 * objects/flowchart/manualinput.shape:
13501 * objects/flowchart/predefdproc.shape:
13502 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
13504 1999-10-13 James Henstridge <james@daa.com.au>
13506 * app/diapagelayout.[ch]: added accessors to paper information. The
13507 widget should be just about complete now.
13509 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
13510 It actually does something now.
13512 1999-10-12 James Henstridge <james@daa.com.au>
13514 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
13515 for the page layout widget.
13517 * app/diapagelayout.[ch]: start of page layout widget. Not actually
13518 built yet as it is not complete.
13520 * objects/flowchart/flowchart.c: added new shapes to sheet.
13522 * objects/flowchart/display.shape:
13523 * objects/flowchart/transaction.shape: new shapes.
13525 * AUTHORS: added my name to the spec file.
13527 * dia.spec: include the dia desktop entry to the spec file.
13529 * Makefile.am: install the dia.desktop file.
13531 * dia.desktop: added a gnome desktop entry so you can start dia
13532 from the gnome panel menu.
13534 1999-10-11 James Henstridge <james@daa.com.au>
13536 * objects/custom/custom_object.c:
13537 * objects/custom/shape_info.c: warning fixes.
13539 * objects/flowchart/document.shape: a shape file for the `document'
13542 * lib/custom.h: new header with the custom shape prototypes.
13544 * app/app_procs.c: register custom objects as well.
13545 (register_objects_in): close shared libraries if they don't load
13546 correctly, and call g_module_make_resident on libraries that load
13549 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
13551 * objects/custom/custom.c: removed get_version, added custom_ prefix
13552 to register_objects and register_sheets.
13554 * objects/custom/Makefile.am: converted to a normal library.
13556 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
13558 * app/lineprops_area.c:
13559 * app/render_svg.c:
13561 * objects/custom/shape_info.c:
13562 * objects/flowchart/box.c:
13563 * objects/flowchart/diamond.c:
13564 * objects/flowchart/ellipse.c:
13565 * objects/flowchart/parallelogram.c:
13566 * objects/network/flash.c:
13567 * objects/network/scead-plug.c:
13568 * objects/sybase/client.c:
13569 Removed -Wall warnings.
13571 * objects/network/bus.c:
13572 Removed unused functions.
13574 * objects/FS/flow-ortho.c:
13575 * objects/FS/flow-poly.c:
13576 * objects/FS/flow.c:
13577 * objects/FS/function.c:
13579 Implemented "non-implemented" undo for FS objects.
13580 Now at least it won't crash.
13582 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
13584 * objects/network/bus.c:
13586 Handles are now added and removed using the object menu.
13587 Default to 6 handles instead of 10.
13588 Changed name from "Standard - Bus" to "Network - Bus". Kept old
13589 name for backwards compatibility.
13591 * objects/network/network.c:
13592 Changed name from "Standard - Bus" to "Network - Bus". Kept old
13593 name for backwards compatibility.
13595 * app/properties.[ch]:
13597 Update properties in properties dialog if the shown object
13598 is part of and ObjectChange (undo or redo).
13601 Remove old known bugs list.
13603 * objects/UML/class_dialog.c:
13604 Removed debug printf's.
13606 1999-10-10 James Henstridge <james@daa.com.au>
13608 * objects/custom/custom.c (custom_object_load): new function that
13609 provides a nice entry point to the custom shape code for when it
13610 gets used by other libraries.
13612 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
13613 speeds builds up a bit.
13615 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
13616 (SUBDIRS): do not descend into pixmaps subdirs.
13618 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
13619 This speeds up build process.
13621 * objects/custom/custom.c (sheets): made variable static.
13623 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
13626 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
13628 * objects/custom/custom.c: look in ~/.shapes instead of
13629 ~/.dia_shapes as the per-user shapes directory.
13631 * app/preferences.c (prefs_save): save config to ~/.diarc.
13632 (prefs_load): load configuration from ~/.diarc. If the file
13633 does not exist, fallback on the old ~/.diarc location.
13635 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
13637 (register_all_objects): look for user specific objects in
13638 ~/.objects rather than ~/.dia_libs.
13640 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
13644 * objects/flowchart/box.c
13645 * objects/flowchart/ellipse.c
13646 * objects/flowchart/flowchart.c
13647 Use gmodule for dynamic linking. As gmodule is using
13648 RTLD_GLOBAL i had to change flowchart box and ellipse
13649 so the typenames doesn't conflict with the standard
13654 Use button box to make dialogs look better.
13656 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
13658 * objects/UML/class_dialog.c:
13659 * objects/UML/class.h:
13660 Implemented undo for "UML - Class" objects.
13661 Not 100% tested yet.
13663 * objects/UML/classicon.c:
13664 * objects/UML/constraint.c:
13665 * objects/UML/dependency.c:
13666 * objects/UML/generalization.c:
13667 * objects/UML/implements.c:
13668 * objects/UML/large_package.c:
13669 * objects/UML/lifeline.c:
13670 * objects/UML/message.c:
13671 * objects/UML/object.c:
13672 * objects/UML/realizes.c:
13673 * objects/UML/state.c:
13674 * objects/UML/usecase.c:
13677 * lib/connectionpoint.h:
13680 1999-10-09 James Henstridge <james@daa.com.au>
13682 * objects/custom/*.[ch]: added copyright notices to custom object
13685 * shapes/Circuit/hdiode.shape:
13686 * shapes/Circuit/hzener.shape:
13687 * shapes/Circuit/opamp.shape:
13688 * shapes/Circuit/vdiode.shape:
13689 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
13690 shapes look nice after the custom shape code changes.
13692 * objects/custom/README: updated docs to cover changes to drawing
13695 * objects/custom/custom_object.c (custom_draw): honour the line
13696 properties when drawing the shape.
13698 * objects/custom/shape_info.[ch]: added support for setting line
13699 properties for individual drawing elements in a custom shape. You
13700 can set the dash style, dash length, cap style and join style.
13702 1999-10-07 James Henstridge <james@daa.com.au>
13704 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
13705 for foreground and background.
13707 * objects/custom/custom_object.c (custom_draw): use the new style
13708 information when drawing the object.
13710 * objects/custom/shape_info.[ch]: store all shape style info in the
13711 GraphicStyle structure. This makes adding support for extra CSS
13712 attributes easier -- we don't have to keep adding extra arguments to
13713 a lot of functions.
13715 1999-10-05 James Henstridge <james@daa.com.au>
13717 * lib/intl.c (unalias_lang): merged in changes from the i18n code
13718 swiped from gnome-libs.
13720 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
13722 * objects/standard/image.c (get_directory):
13723 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
13725 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
13727 * lib/poly_conn.c (polyconn_destroy):
13728 Fix bug. Access of freed memory.
13729 Rememeber, you can't free the handles of an object
13730 before calling object_destroy(), as it unconnects the handles
13731 therefore referencing them.
13733 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
13736 undo_clear() didn't set stack->depth to zero.
13737 This made other undo functions crash after this had been called
13741 Slightly modified by Chris Love <clove@exactis.com>
13743 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
13745 * objects/UML/class.h:
13746 * objects/UML/class_dialog.c:
13747 Retrun NULL ObjectChange on class property change.
13748 This means no crashes, but "UML - Class" doesn't support undo yet.
13750 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
13755 * objects/UML/classicon.c:
13756 * objects/UML/dependency.c:
13757 * objects/UML/generalization.c:
13758 * objects/UML/implements.c:
13759 * objects/UML/large_package.c:
13760 * objects/UML/lifeline.c:
13761 * objects/UML/message.c:
13762 * objects/UML/object.c:
13763 * objects/UML/realizes.c:
13764 * objects/UML/state.c:
13765 * objects/UML/usecase.c:
13766 Update to new undo (w. get/set_state).
13767 Add object menu to add/delete segments.
13769 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
13772 Add equal distance alignment.
13774 * app/object_ops.c:
13775 Add equal distance alignment.
13776 Fix bug in adjacent alignment.
13778 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
13780 * objects/UML/constraint.c:
13781 Update to new undo (w. get/set_state).
13783 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
13785 * app/paginate_psprint.c:
13786 Save (parts, more todo) of the info in the print dialog to the
13787 next time it's opened.
13788 Patch from Yo Ric Dude <ricdude@toad.net>
13790 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
13793 Updated version string to 0.41cvs.
13795 * objects/UML/assocition.c:
13796 Update to new undo (w. get/set_state).
13797 Add object menu to add/delete segments.
13800 Added function debug_break() and called it after all
13801 objects and sheets are loaded. Place a breakpoint here if you
13802 want to debug objects. All symbols should be loaded.
13804 1999-09-12 James Henstridge <james@daa.com.au>
13806 * app/menus.c (display_menu_items): added print menu item.
13807 (filemenu): always add print menu item -- even if gnome-print is
13810 * app/commands.h, app/commands.c (file_print_callback): the print
13811 menu item is now available for both gnome-print and non gnome-print
13814 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
13815 print with the non gnome-print driver.
13817 1999-09-11 James Henstridge <james@daa.com.au>
13819 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
13820 printer dialog code out of commands.c.
13822 * app/paginate_psprint.c: new file containing the pagination code for
13825 * app/render_eps.c: made a few modifications so as well as producing
13826 EPS files, this renderer can be set up to do postscript printing.
13827 This basically entailed adding an extra function to create a RenderEPS
13828 renderer which did not bother setting the viewport for the document.
13829 That was left for the pagination code.
13831 1999-09-10 James Henstridge <james@daa.com.au>
13833 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
13834 gnome-print does not support elliptic arcs at the moment, approximate
13835 the ellipse with eight bezier curves. This gives a pretty good
13836 match to a true ellipse.
13838 1999-09-09 James Henstridge <james@daa.com.au>
13840 * app/commands.c (file_gnome_print_callback): added support for
13841 scaling the diagram. Also fixed a few other bugs.
13843 * app/paginate_gnomeprint.c (print_page): added ability to scale
13844 document. Fixed up test to see if the page has no objects on it.
13845 This should prevent some blank pages being printed. Non square
13846 objects such as lines could still cause problems.
13848 1999-09-08 James Henstridge <james@daa.com.au>
13850 * app/commands.c (file_gnome_print_callback): changed from using the
13851 standard printer selection dialog to one that also has a paper size
13854 * commands.[ch]: added callbacks for the print menu item. Currently
13855 it only does A4 output. I will make it configurable soon.
13857 * app/menus.c: add a print diagram menu item if gnome-print support
13860 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
13861 bit higher level than the gnome-print renderer. It splits the
13862 diagram into page size chunks and then renders them. For each
13863 page, it only renders the objects whose bounding box intersects
13864 the page, and it sets the clip mask so that the diagram does not
13865 overlap the margins.
13867 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
13868 that uses gnome-print as its back end.
13870 * configure.in: added a check for gnome-print. It is disabled by
13871 default because the code is not really working correctly yet.
13873 * app/menus.c: the delete object menu item was missing from the
13874 GnomeUIInfo style menus.
13876 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
13879 Added japanese to ALL_LINGUAS.
13880 Fix for Linux on Alpha.
13882 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
13884 * app/create_object.c (create_object_button_press):
13885 Always initialize tool->obj. Otherwise we store a null
13886 in the undo Change.
13889 Set linestyle before drawing cursor.
13890 Fix undo of backwards delete.
13892 1999-09-05 James Henstridge <james@daa.com.au>
13894 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
13896 * app/render_svg.c (draw_image): some fixes so that the appropriate
13897 style attributes are set. Before it was setting line styles on
13898 fill_* functions. Now it only does this for the draw_* variants.
13900 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
13901 variable so that custom shapes can be loaded.
13903 * shapes/: new directory for custom shapes. The Circuit sheet has
13906 1999-09-02 James Henstridge <james@daa.com.au>
13908 * TODO: removed a few todo items that have been implemented.
13910 * app/interface.c (create_sheets): enabled the popup page menu to the
13911 notebook. This can make it easier to select different sheets.
13913 * object/custom/Circuit/: added diode, zener diode, ground point and
13914 operational amplifier shapes.
13916 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
13917 if you want the output.
13919 * objects/custom/shape_info.c (parse_path): same here.
13921 * objects/custom/load_sheet.c (load_with_readdir): don't print so
13922 much debugging output. To get the previous level of output, define
13925 * objects/custom/shape_info.c (parse_svg_node): polygons were being
13926 recorded as polylines in the ShapeInfo structure.
13928 * objects/custom/README: some notes on writing new custom shapes.
13930 1999-09-01 James Henstridge <james@daa.com.au>
13932 * objects/custom/Circuit/hinductor.*:
13933 * objects/custom/Circuit/vinductor.*: added inductor shapes that
13934 also test out the bezier curve and SVG path support.
13936 * objects/custom/custom_object.c (custom_draw): added support for
13937 drawing bezier paths and filled shapes.
13939 * objects/custom/shape_info.c (parse_path): new function to parse
13940 SVG path elements. It does not do quadratic beziers or elliptic
13941 arcs though. Only moves, lines and cubic beziers.
13942 (*): added support for paths.
13944 1999-08-31 James Henstridge <james@daa.com.au>
13946 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
13948 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
13951 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
13954 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
13957 * lib/render_store.[ch]: use newer bezier functions.
13959 * lib/render.h: changed the bezier drawing functions to use an array
13960 of BezPoint structures instead of normal Point structures to allow
13961 lineto's mixed in with the curveto's.
13963 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
13965 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
13966 xpm images for different shapes to Makefile.
13968 * objects/custom/custom_object.c (custom_object_new): set the icon
13969 for the sheet button if there is one. Otherwise fall back on the
13970 default custom object icon.
13972 * objects/custom/shape_info.c (load_shape_info): read the sheet
13973 icon name from the shape file.
13975 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
13976 check the pixmap_file field for the name of a pixmap file to load
13979 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
13980 at the end of the structure, and it isn't used if the pixmap field
13981 is non NULL, so it should not break binary compatibility.
13983 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
13984 added support for the use of an index.sheet file so you can specify
13985 the ordering of the shapes in the sheet, and also internationalise
13986 the sheet name and actually be able to give a description. The old
13987 readdir based sheet loading code acts as a fallback if an index.sheet
13988 file can not be found.
13990 * objects/custom/custom_util.[ch]: new file containing useful routines
13991 needed by the custom object code. Currently only contains a simple
13992 routine for resolving relative paths.
13994 * objects/custom/custom_object.c (custom_draw): fixed problem with
13995 drawing rectangles if the shape has been flipped.
13997 1999-08-30 James Henstridge <james@daa.com.au>
13999 * objects/custom/custom_object.c (custom_get_object_menu): allow
14000 flipping of custom shapes. This uses the miggle click object
14003 * objects/custom/Circuit/npn.shape: fix aspect ratio.
14005 * objects/custom/custom_object.c (custom_update_data): honour the
14006 aspect ratio constraints.
14008 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
14009 tag parsing, so you can specify a free, fixed or a range for aspect
14010 ratios for the shape.
14012 1999-08-29 James Henstridge <james@daa.com.au>
14014 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
14015 up shape namespace tag.
14017 * objects/custom/shape_info.c (load_shape_info): check xml:lang
14018 attribute on <description> elements to support i18n for custom
14019 shape descriptions.
14020 Also changed the shape namespace for custom shapes to something
14021 a little more sensible.
14023 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
14025 * lib/intl.c: new file containing some functions for i18n stuff.
14027 * app/layer_dialog.c (create_button_box): fixed a warning.
14029 * objects/custom/custom_object.c: use current line style. Save dash
14032 * objects/flowchart/diamond.c: use current line style. Save dash
14035 * objects/flowchart/parallelogram.c: use current line style. Save
14038 * objects/flowchart/ellipse.c: use current line style. Save dash
14041 * objects/flowchart/box.c: use current line style. Save dash length.
14043 * objects/standard/ellipse.c: make ellipse use current line style.
14045 * objects/standard/box.c: use the line style set in the toolbox for
14046 new boxes, and remember the dash length.
14048 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
14051 1999-08-24 James Henstridge <james@daa.com.au>
14053 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
14054 to try to stop ellipse to get infinite width/height when we resize,
14055 while trying to keep the text inside the ellipse.
14057 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
14058 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
14059 resizing behaviour, so that you can't push objects round the screen
14060 with the resize handles.
14062 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
14063 get the OK buttons in the dialogs to take default clicks.
14065 * objects/custom/custom_object.c: added code so that resizing the
14066 shape does not end up pushing it round the screen.
14068 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
14070 * app/display.[ch]:
14071 Generate rectangle with the union of the damaged regions.
14072 This is used to optimize the grid paint and the object rendering.
14073 display_render_pixmap passes this info to grid_draw() and data_render().
14076 grid_draw doesn't draw grid lines outside of damaged rectangle.
14077 Sets dashlength when drawing non-solid grid.
14079 * lib/diagramdata.[ch]:
14080 data_render() and layer_render() takes an optional damaged rectangle
14081 argument. No objects not intersecting this are drawn.
14085 Call data_render with NULL update rectangle.
14087 1999-08-23 James Henstridge <james@daa.com.au>
14089 * objects/custom/custom_object.c (custom_update_data): if the aspect
14090 ratio is fixed, make sure the shape is not distorted.
14092 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
14093 a <fixaspectratio/> tag is given in the shape file.
14095 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
14096 added support for stroke-width, stroke and fill CSS attributes
14097 specified in style attributes of the SVG elements. The line width
14098 is relative to the user specified line width. The stroke and fill
14099 attributes can only be used to swap the foreground/background
14102 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
14103 sensitivity on the dash length selector when this function is called.
14105 * objects/standard/arc.c: same. Also handle dash length.
14106 * objects/standard/zigzagline.c: same.
14107 * objects/standard/polyline.c: same. Also handle dash length.
14108 * objects/standard/line.c: use default arrow/line styles.
14110 * app/interface.c: added callbacks to set the default attributes.
14112 * lib/attributes.c: added implementations of these functions.
14114 * lib/attributes.h: added extra prototypes for the new line properties
14115 area in the toolbox.
14117 * app/interface.c (create_lineprops_area): added line properties
14118 area to bottom of toolbox.
14120 * app/lineprops_area.h: a header exporting a few routines of the
14121 line properties area widgets.
14123 * app/lineprops_area.c: new file containing a selector for arrows
14124 and line styles to go in the main toolbox.
14126 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
14129 Update Gtk+ 1.0.5 comment to 1.2.0.
14138 Make sure we don't propagate -ldl and -lpopt to all LIBS
14139 by adding new var APP_LIBS that only app/dia links with.
14142 Update run_dia.sh to load custom and flowchart objects.
14144 * objects/ER/Makefile.am:
14145 * objects/FS/Makefile.am:
14146 * objects/UML/Makefile.am:
14147 * objects/network/Makefile.am:
14148 * objects/standard/Makefile.am:
14149 * objects/sybase/Makefile.am:
14150 Don't build versioned libs.
14152 1999-08-22 James Henstridge <james@daa.com.au>
14154 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
14157 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
14158 should actually work a bit now.
14160 * objects/custom/Circuit/*: a test sheet for the custom shape code.
14161 It is a small collection of circuit elements.
14163 * objects/custom/shape_info.c: fixed up loading of polylines and
14164 polygons. Before it was removing negative signs :(
14166 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
14167 placeholder was here before. I still need to work out how to set
14168 icons for individual custom shapes.
14170 * objects/custom/custom.c: added code to load the shapes into sheets
14171 properly. The shape files should be arranged into directories, and
14172 each directory represents a different sheet in the toolbox. This
14173 will make it very easy to distribute a collection of dia shapes as
14174 a tarball. I still need to work out internationalisation, and maybe
14175 also shape ordering in the sheet.
14177 * objects/custom/custom_object.c: fixed up dialogs for these objects.
14178 (custom_create): fix for objects without text areas.
14180 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
14181 and saving of custom object works correctly now.
14183 1999-08-21 James Henstridge <james@daa.com.au>
14185 * objects/flowchart/ellipse.c:
14186 * objects/flowchart/diamond.c:
14187 * objects/flowchart/parallelogram.c:
14188 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
14189 copying or loading these object types. Not all the connection
14190 points would be initialised correctly.
14192 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
14195 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
14196 build a versioned library. It will only ever be dlopen'd, so this
14199 * objects/custom/custom_object.c (custom_distance_from): allow
14200 selecting the object by clicking on the text. This fixes problems
14201 where the text box is outside the graphic.
14203 * objects/custom/shape_info.c (load_shape_info): fixed up reading
14204 of connections points. It should be possible to add connections
14205 to custom objects now.
14207 * objects/custom/custom_object.c (custom_update_data): fixed resizing
14208 due to changes to text.
14210 * configure.in: added extra makefiles.
14212 * objects/custom/shape_info.[ch]:
14213 * objects/custom/custom_object.c:
14214 * objects/custom/custom.c: the starts of custom shape support in dia.
14215 This is not built by default at the moment, since it is not quite
14216 complete. When it is, it will let you create more shapes for dia
14217 without writing a line of C. Its implementation includes buzzwords
14218 such as XML and SVG, so it must be good :)
14220 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
14222 * app/app_procs.c (app_exit): Use button labels "Quit" and
14223 "Cancel" instead of "Yes" and "No".
14224 Set default action to "Cancel" instead of "Quit".
14226 1999-08-19 James Henstridge <james@daa.com.au>
14228 * objects/flowchart/flowchart.c: added ellipse object.
14230 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
14232 1999-08-18 James Henstridge <james@daa.com.au>d
14234 * app/color_area.c (color_area_edit): small fix to prevent dia from
14235 segfaulting when you try to change the default foreground/background.
14237 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
14239 * app/diagram.[ch] (diagram_redraw_all):
14240 Added function that redraws all diagrams.
14242 * app/preferences.c (prefs_apply):
14243 Call diagram_redraw_all when prefs are changed.
14245 * app/render_svg.c:
14246 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
14247 older libxml's, and the old version works good enought here.
14249 1999-08-17 James Henstridge <james@daa.com.au>
14251 * lib/widgets.c: changed handlers that were connected to the GtkButton
14252 "pressed" signal to connect to the "clicked" signal. This removes the
14253 problem where dialogs are inactive until you click a mouse button
14254 after using a colour selector.
14256 * configure.in: added extra makefiles to AC_OUTPUT list.
14258 * objects/Makefile.am (SUBDIRS): added flowchart module
14260 * objects/flowchart/*: a collection of shapes for use in flowcharts.
14262 * app/color_area.c (color_area_events): similar here.
14264 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
14265 event is recieved with event->width == 0, which causes a warning if we
14266 try to create a pixmap of that width.
14268 * app/preferences.c, app/preferences.h, app/grid.c: added code to
14269 allow you to configure the colour of the grid, and also lets you
14270 set the grid to use dotted lines instead of solid ones.
14272 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
14273 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
14275 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
14276 export filter. It is not quite complete, but for most shapes it
14277 works as expected. Fonts still need a bit of work.
14279 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
14281 * configure.in: Added "en_GB" to ALL_LINGUAS.
14283 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
14286 Added Undo and Redo to GNOME menus.
14288 * objects/ER/attribute.c:
14289 * objects/ER/entity.c:
14290 * objects/ER/participation.c:
14291 * objects/ER/relationship.c:
14292 Added get/set_state functions.
14294 * objects/ER/participation.c:
14295 Added add/delete segment.
14298 Updated Swedish translation.
14300 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
14302 * app/preferences.[hc]:
14303 Added undo_depth pref.
14306 Never grow stack larger than pref.undo_depth.
14307 undo_depth == 0 means unlimited.
14308 Converted printfs to conditionally compiled DEBUG_PRINTFs.
14310 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
14315 * lib/render_object.c:
14316 * objects/ER/attribute.c:
14317 * objects/ER/entity.c:
14318 * objects/ER/participation.c:
14319 * objects/ER/relationship.c:
14320 * objects/FS/flow-ortho.c:
14321 * objects/FS/flow-poly.c:
14322 * objects/FS/flow.c:
14323 * objects/FS/function.c:
14324 * objects/UML/actor.c:
14325 * objects/UML/association.c:
14326 * objects/UML/class.c:
14327 * objects/UML/classicon.c:
14328 * objects/UML/component.c:
14329 * objects/UML/constraint.c:
14330 * objects/UML/dependency.c:
14331 * objects/UML/generalization.c:
14332 * objects/UML/implements.c:
14333 * objects/UML/large_package.c:
14334 * objects/UML/lifeline.c:
14335 * objects/UML/message.c:
14336 * objects/UML/note.c:
14337 * objects/UML/object.c:
14338 * objects/UML/realizes.c:
14339 * objects/UML/small_package.c:
14340 * objects/UML/state.c:
14341 * objects/UML/usecase.c:
14342 * objects/network/bus.c:
14343 * objects/standard/arc.c:
14344 * objects/standard/box.c:
14345 * objects/standard/ellipse.c:
14346 * objects/standard/image.c:
14347 * objects/standard/line.c:
14348 * objects/standard/polyline.c:
14349 * objects/standard/textobj.c:
14350 * objects/standard/zigzagline.c:
14351 Removed all traces of is_empty(). It doesn't work in an
14354 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
14359 Undoable grouping and ungrouping.
14361 * app/layer_dialog.c:
14362 * lib/diagramdata.[ch]:
14363 Undoable layer ops.
14365 * app/modify_tool.c:
14366 Undoable unconnect on handle move.
14368 * lib/orth_conn.[ch]:
14369 Working undoable add/remove segment.
14370 Removed endpoint_handles from OrthConn, renamed
14371 midpoint_handles to handles and put the endpoint
14374 * objects/standard/zigzagline.c:
14375 * objects/ER/participation.c:
14376 * objects/UML/association.c:
14377 * objects/UML/dependency.c:
14378 * objects/UML/generalization.c:
14379 * objects/UML/realizes.c:
14380 Update for the changes in OrthConn
14382 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
14384 * configure.in: Added "de" to ALL_LINGUAS.
14386 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
14398 Don't have the <Display> etc part of the menu strings
14399 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
14402 Don't have the <Display> etc part of the menu strings
14403 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
14404 Don't remove is_empty() objects, that don't work with undo.
14406 * lib/objchange.[ch]:
14408 Definition of ObjectChange. This is essentially an Change
14409 exported to the object libs. It encapsulates a change made
14410 to an objects internals. It can be applied, reverted and freed.
14411 There are also utility functions for doing ObjectChanges that
14412 only get/set the whole state of an object to store the change.
14413 This cannot be used when the object change deletes or adds a
14414 object which has references from other objects, eg. Handles which
14415 might be connected.
14418 Added objchange.c and objchange.h.
14421 Return NULL when loading fails.
14424 Menu callbacks return an ObjectChange.
14427 Reference objchange.o
14430 Key events return ObjectChange if they modify the object.
14434 Added object_add_handle_at() function.
14435 Apply properties returns an ObjectChange.
14436 Remove ObjectState and the get/set state functions, these
14437 don't always work. Use the new ObjectChange instead.
14440 Added object_add_handle_at() function implementation.
14442 * lib/orth_conn.[ch]:
14443 Use ObjectChange. Not finished yet.
14444 Removed get/set/free state functions
14446 * lib/poly_conn.[ch]:
14448 Don't remove segments that are small.
14449 Removed get/set/free state functions
14453 Added functions to get/set all text attributes.
14455 * objects/standard/arc.c:
14456 * objects/standard/box.c:
14457 * objects/standard/ellipse.c:
14458 * objects/standard/image.c:
14459 * objects/standard/line.c:
14460 * objects/standard/polyline.c:
14461 * objects/standard/textobj.c:
14462 * objects/standard/zigzagline.c:
14464 fixed bug in image_set_state.
14465 zigzagline.c not finished yet.
14467 * app/disp_callbacks.c:
14468 Use ObjectChange that are returned from menu callbacks and
14469 key_events for undo.
14471 * app/properties.c:
14472 Use ObjectChange that are returned from properties apply
14477 New undo type: ObjectChangeChange. This wraps a change to the
14478 internals of an object (and ObjectChange) in code that does
14479 app specific stuff (object_add_updates etc.)
14481 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
14483 * lib/orth_conn.[ch]:
14484 Added code for add/delete segment.
14486 * objects/standard/zigzagline.c:
14487 Use the new orth_conn code.
14490 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
14492 * objects/FS/Makefile.am
14493 Removed fs.h from sources.
14499 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
14501 * app/disp_callbacks.c (ddisplay_canvas_events):
14502 Fix for bug. Every other arrow-key press got lost.
14503 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
14506 change automake.sh to autogen.sh
14508 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
14511 Don't remove 'empty' objects.
14512 This violent destruction of objects won't work
14513 with the new undo framework.
14515 * app/disp_callbacks.c:
14516 Save undo info for object menu calls and key_events.
14518 * app/properties.c:
14519 Save undo info on properties apply.
14521 * lib/dia_image.[ch]:
14522 Add refcounting for images.
14524 * app/render_eps.c:
14525 * app/render_gdk.c:
14527 DiaImage * -> DiaImage
14530 Add undo functions for object state changes.
14534 change of semntics for focus->key_event.
14535 Now returns TRUE if the object recieving the event
14541 * lib/orth_conn.[ch]:
14542 Don't automatically create and delete segments when
14543 handles are moved. This is incompatible with undo.
14544 Added state get, set and free functions.
14546 * lib/orth_conn.[ch]:
14547 Added state get, set and free functions.
14549 * objects/UML/object.c:
14550 * objects/UML/uml.c:
14551 Fixed typo "UML - Objet" -> "UML - Object".
14552 Saved old for backwards compatibility.
14554 * objects/standard/arc.c:
14555 * objects/standard/box.c:
14556 * objects/standard/ellipse.c:
14557 * objects/standard/image.c:
14558 * objects/standard/line.c:
14559 * objects/standard/polyline.c:
14560 * objects/standard/textobj.c:
14561 * objects/standard/zigzagline.c:
14562 Added get/set state functions.
14563 Textobj has a redo crash-bug.
14564 Zigzagline needs object menus to add segments.
14567 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
14569 * app/render_eps.c (set_dashlength):
14570 Don't generate eps files with zero dash-length.
14572 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
14575 * app/create_object.c:
14577 Finished undo for create and paste.
14580 Started properties undo.
14582 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
14585 Added resizeable groups.
14588 Removed unused variable.
14592 Undo/redo for cut/delete done.
14594 * app/create_object.c:
14595 * app/modify_tool.c:
14596 * lib/diagramdata.[ch]:
14597 * app/diagram.[ch]:
14598 renamed diagram_add_selected -> diagram_select
14599 renamed diagram_remove_selected -> diagram_unselect
14601 * app/properties.[ch]:
14602 Added properties_hide_if_shown() function.
14604 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
14610 * app/commands.[ch]
14611 * app/modify_tool.[ch]
14612 * app/object_ops.[ch]
14613 * app/connectionpoint_ops.c
14615 Use undo functions.
14616 WARNING: Not finished. Will break.
14617 Finished: move object, move handle.
14620 Added diagram_selected_break_external() function.
14621 It removes all connections between selected objects
14623 Add undo stack to Diagram.
14625 * lib/diagramdata.[ch]
14626 Added layer_remove_objects() function
14628 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
14630 * objects/FS/Makefile.am
14631 * objects/sybase/Makefile.am
14632 Now uses GNOME_CFLAGS.
14635 Now compiles with GNOME even if popt.h isn't available.
14637 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
14640 * objects/Makefile.am
14642 First version of sybase objects from
14643 Brian Bruns <camber@umcc.ais.org>
14645 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
14648 Added fr to ALL_LINGUAS
14650 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
14654 Popt-code is activated if popt is available.
14656 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
14658 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
14660 * lib/orth_conn.[ch]:
14661 Added orthconn_get_middle_handle()
14664 Added text_set_cursor_at_end()
14667 Added first version of functions structure diagrams.
14669 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
14671 * app/modify_tool.c:
14672 Include math.h to remove warning.
14674 * app/commands.c (dialogs_properties_callback):
14675 Bring up correct properties dialog when selected
14677 From Dan Cohn <dan@internap.com>
14679 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
14681 Patch from Lars R. Clausen
14683 * app/modify_tool.c:
14684 Changed abs to fabs.
14686 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
14692 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
14694 Patches from Dan Cohn <dan@internap.com>
14696 * app/commands.[ch]:
14697 * app/display.[ch]:
14699 * app/preferences.[ch]:
14700 Implements ability to turn on/off connection points in
14701 current drawing and in global prefs.
14703 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
14705 * lib/widgets.c (dia_line_style_selector_init):
14708 * lib/diagramdata.c (layer_update_extents):
14709 Fixed uninitialized variable error.
14711 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
14714 Made some changes to the gdk_imlib visual+colormap setup.
14716 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14718 * objects/UML/usecase.c:
14719 * objects/UML/lifeline.c
14722 * objects/UML/object.c:
14723 * objects/UML/message.c:
14724 Changed font from Courier to Helvetica.
14728 Added dash lenth to the LineStyle widget.
14730 * objects/standard/ellipse.c :
14731 * objects/standard/zigzagline.c:
14732 * objects/standard/line.c:
14733 Added dash lenght property.
14735 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
14737 * app/render_eps.c:
14738 First shot at latin1 encoded eps files.
14739 Works, but the eps files get a bit large.
14741 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
14743 * objects/UML/class.[ch]:
14744 * objects/UML/uml.[ch]:
14745 Reverted the line wrap changes.
14746 Some day this might return, but it has to be selectable and
14747 default to off for loaded objects, otherwise it breaks file
14748 format compatibility.
14749 There was also some complains about how it looked, so a making it
14750 selectable is good for this too.
14752 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
14754 * objects/UML/class.[ch]:
14755 Some indentation cleanup.
14756 Added wrap_lines variable to class.
14757 I'll fix the line break stuff tomorrow.
14759 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
14762 Added ref to poly_conn.o.
14764 * objects/standard/polyline.c (polyline_draw):
14765 * objects/standard/zigzagline.c (zigzagline_draw):
14766 * objects/standard/arc.c (arc_draw):
14767 * objects/standard/line.c (line_draw):
14768 Draw lines before arrows. This makes hollow arrows not
14771 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
14773 Changes from Kim Peasley <kpeasley@ior.com>
14775 * objects/UML/class.c:
14776 Break lines with long operations so classes won't be
14779 * objects/UML/uml.[ch]:
14780 Helperfunctions for the above.
14782 * objects/UML/objects.c:
14783 Fix bug that duplicated the text in the attributes
14784 textwidget each time the object was selected.
14786 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
14788 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
14790 * app/modify_tool.c:
14791 * app/modify_tool.h:
14792 Control-drag is restricted to vertical/horizontal movement
14795 ModifierKeys argument added to object_move_handle
14797 * app/connectionpoint_ops.c:
14798 * app/create_object.c:
14799 * app/object_ops.c:
14800 * objects/ER/attribute.c:
14801 * objects/ER/entity.c:
14802 * objects/ER/participation.c:
14803 * objects/ER/relationship.c:
14804 * objects/UML/actor.c:
14805 * objects/UML/association.c:
14806 * objects/UML/class.c:
14807 * objects/UML/classicon.c:
14808 * objects/UML/component.c:
14809 * objects/UML/constraint.c:
14810 * objects/UML/dependency.c:
14811 * objects/UML/generalization.c:
14812 * objects/UML/implements.c:
14813 * objects/UML/large_package.c:
14814 * objects/UML/lifeline.c:
14815 * objects/UML/message.c:
14816 * objects/UML/note.c:
14817 * objects/UML/object.c:
14818 * objects/UML/realizes.c:
14819 * objects/UML/small_package.c:
14820 * objects/UML/state.c:
14821 * objects/UML/usecase.c:
14822 * objects/network/bus.c:
14823 * objects/standard/arc.c:
14824 * objects/standard/box.c:
14825 * objects/standard/ellipse.c:
14826 * objects/standard/image.c:
14827 * objects/standard/line.c:
14828 * objects/standard/polyline.c:
14829 * objects/standard/textobj.c:
14830 * objects/standard/zigzagline.c:
14831 Changed calls to move_handle to pass the new argument.
14835 Default line width, color etc #define'd
14838 Updates of danish menus
14840 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
14843 * dia_gnome_icon.png
14844 * dia_gnome_menu_icon.png
14846 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
14849 About dialog shows dia_logo.png. Removed the GNOME about dialog.
14852 Distribute the icons and install logo in pkgdatadir.
14855 Added DATADIR-define.
14857 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
14858 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
14861 Updated version number, made setup quiet, can build from cvs,
14862 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
14865 * objects/ER/Makefile.am
14866 * objects/UML/Makefile.am
14867 * objects/network/Makefile.am
14868 * objects/standard/Makefile.am
14869 now builds better with gnome
14871 * objects/UML/class_dialog.c
14872 Fixed typo -> po files must be updated too!!
14874 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
14877 Added reference so that widgets.o gets linked to the app.
14879 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14881 * objects/UML/classicon.c:
14884 * objects/UML/actor.c:
14885 Changed position of 'snap-to-grid' so connection points are
14888 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
14890 * objects/UML/classicon.c:
14891 Changed position of 'snap-to-grid'.
14892 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14894 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
14896 * objects/network/antenna.c
14897 * objects/network/flash.c
14898 * objects/network/hub.c
14899 * objects/network/modem.c
14900 * objects/network/modularswitch.c
14901 * objects/network/rj45plug.c
14902 * objects/network/scead-plug.c
14903 * objects/network/network.c
14904 * objects/network/Makefile.am
14905 * objects/network/pixmaps/antenna.xpm
14906 * objects/network/pixmaps/flash.xpm
14907 * objects/network/pixmaps/hub.xpm
14908 * objects/network/pixmaps/modem.xpm
14909 * objects/network/pixmaps/modularswitch.xpm
14910 * objects/network/pixmaps/rj45plug.xpm
14911 * objects/network/pixmaps/sceadplug.xpm
14912 * objects/network/pixmaps/Makefile.am
14913 Lots of new network objects from
14914 Roland Steinbach <roland@support-system.com>.
14916 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14918 * objects/UML/classicon.c:
14919 Fixed connection positions, saved type as int (it has 3 states),
14920 and other small fixes.
14922 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
14924 * app/preferences.c:
14926 Added preference compress_save. It lets dia save uncompressed
14929 * objects/UML/class.c:
14930 Fixed bug with size calculation on methods that had class scope.
14932 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14934 * objects/UML/usecase.c:
14935 Added collaboration mode
14936 Fixed connection points with text > ellipse bug and other
14939 * objects/UML/state.c:
14940 Fixed bug of bad position of text after being either end
14941 or begin, moved and returned to text
14943 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
14945 * app/preferences.c: Add prototype declaration for prefs_apply.
14947 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
14949 * app/preferences.c:
14951 Apply don't hide window.
14953 * app/properties.c:
14956 * objects/UML/object.c:
14957 * objdcts/UML/state.c:
14958 Some data was not copied on copy.
14961 Ben Hochstedler <benh@eeyore.moneng.mei.com>
14963 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
14966 Changed link order between X and libxml.
14967 Some people had problems with an old libz in their
14970 1999-04-09 Kjartan Maraas <kmaraas@online.no>
14972 * po/no.po: updated translation.
14974 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
14976 * lib/message.c (message_error):
14979 * app/commands.[ch]:
14980 * app/diagram.[ch]:
14981 Added begining of xfig importing
14983 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
14985 * objects/UML/pixmaps/state.xpm:
14986 * objects/UML/state.c:
14987 New UML object state machine.
14989 * objects/UML/uml.c:
14990 * objects/UML/Makefile.am:
14991 * objects/UML/pixmaps/Makefile.am:
14992 Added the state object.
14994 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
14996 * objects/UML/usecase.c:
14997 Added dialog to allow move text outside the ellipse.
14999 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
15001 * Released Dia 0.41
15002 Tag called DIA_0_41
15007 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
15010 Updated version number to 0.41
15015 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
15018 Changed errormessage for --export-to-ps. Removed call to
15019 g_log_set_always_fatal().
15022 * app/disp_callbacks.c
15024 (i18n) Removed gettext from some debugmessages.
15027 Small fix in GNOME-menus. Added warning that will help track
15028 problems with translations.
15031 (i18n) Updated swedish translation.
15033 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
15038 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
15044 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
15047 (i18n) Updated the danish translation.
15048 From Lars R. Clausen.
15050 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
15053 (i18n) The popup menu is translated now.
15056 (i18n) Updated swedish translation.
15058 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
15060 * Released Dia 0.40
15061 Tag called DIA_0_40
15064 Updated for new release
15066 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
15068 * objects/network/bus.c:
15069 Added initialization of properties dialog to NULL.
15071 * app/commands.c (edit_cut_callback):
15072 Update menu sensitivity when cut object.
15074 * app/modify_tool.c (click_select_object):
15075 * app/modify_tool.c (modify_button_release):
15076 Call diagram_update_menu_sensitivity() when
15077 selecting objects to update stuff that depends
15078 on selected/not selected.
15080 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
15083 Change order of subdir so that libintl.a builds.
15084 Now passed make distcheck.
15086 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
15088 * lib/font.c (init_x11_font):
15091 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15093 * objects/UML/pixmaps/classicon.xpm:
15094 * objects/UML/classicon.c:
15095 * objects/UML/uml.c:
15096 Added the class stereotype icon objects.
15099 Changed default ps extension from .ps to .eps.
15101 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
15104 Added diamenu.h and intl.h
15109 * objects/UML/pixmaps/Makefile.am:
15112 * objects/standard/pixmaps/Makefile.am:
15115 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
15118 Use a scalable font before fixed when real font not found.
15123 * objects/standard/image.c:
15124 Better handling of loading/saving of images.
15127 Added some text about cvs, fonts and rewrote some parts.
15130 Updated with new stuff.
15133 Bump up version number to 0.40.
15135 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
15138 Moved diagram_add_ddisplay() call into new_display().
15139 Fixed new_display to not use uninitialized variables
15140 causing loaded files to show up as black (or garbage).
15144 Removed unneeded calls to diagram_add_ddisplay().
15146 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
15148 * objects/UML/lifeline.c:
15150 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
15152 * objects/UML/message.c:
15153 Fixed bug loading messages with null-text.
15154 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
15156 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
15159 Updated swedish translation.
15162 (GNOME) Removed help-browser from help menu. Fixed typo.
15165 (GNOME) Accelerators in diagrams should work now.
15167 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
15172 * app/disp_callbacks.c
15176 * app/preferences.c
15178 * lib/diagramdata.c
15184 * objects/network/*.c
15185 * objects/standard/*.c
15186 * po/update_pofiles_in.sh
15188 More i18n. All strings (expect rare debug messages) can be
15189 translated now. Moved intl.h from app to lib. Updated
15190 update_pofiles_in.sh to check all .c-files.
15192 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
15194 * app/disp_callbacks.c (ddisplay_canvas_events):
15195 Don't drop keys while num-lock, scroll-lock etc is on.
15197 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
15199 * app/render_eps.c (draw_image):
15200 Fixed exporting of images.
15201 Still not perfect, but not outright buggy.
15203 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
15207 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
15210 Added $* to the dia call in run_dia.sh
15212 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15215 Added color_equals() call.
15217 * objects/standard/arc.c:
15218 * objects/standard/line.c:
15219 Don't save unneccesary data.
15221 * objects/standard/box.c:
15222 * objects/standard/ellipse.c:
15223 * objects/standard/image.c:
15224 * objects/standard/polyline.c:
15225 * objects/standard/zigzagline.c:
15226 Share properties dialog.
15227 Don't save unneccesary data.
15229 1999-03-22 Seth Alves <alves@hungry.com>
15234 small changes so that gnome menus aren't broken
15236 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
15239 Added danish translation from lrclause@cs.uiuc.edu.
15244 * po/update_pofiles_in.sh:
15245 Added script that updates POFILES.in.
15246 This should probably be run automatically from somewhere.
15248 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
15250 * app/diagram.[ch]:
15251 Added function diagram_update_menu_sensitivity() which
15252 sets the sensitivity of some menu items. This function
15253 is called at each diagram state change (from diagram_modified()).
15254 This is needed because otherwise the keyboard accelerators
15255 don't work correctly.
15257 * app/display.[ch]:
15258 Changed display_set_menu_sensitivity() to display_update_menu_state().
15259 Moved lots of code to diagram_update_menu_sensitivity() in
15260 diagram.c. Optimized to only look up menu-items from path:s once.
15262 * app/disp_callbacks.c:
15264 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
15265 Need to set GDK_FOCUS_CHANGE_MASK.
15267 * app/create_object.c:
15268 Call diagram_modified when an object has been created and
15269 selected so that the menu sensitivity is updated.
15272 removed menus_set_sensitive() and menus_set_state(). Exported
15273 renamed function menus_get_item_from_path().
15275 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
15277 * app/disp_callbacks.c:
15278 Show (empty) object menus on object that has none.
15279 Show title on object menus.
15282 Set zoom factor correctly when opening new displays.
15283 Better setting of scrollbars.
15287 Some reformating cleanup.
15290 Added title to object menus.
15293 Added object menu method (NULL-valued) to all objects.
15295 * objects/standard/polyline.c:
15296 Added title to object menu.
15298 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
15300 * app/preferences.[ch]:
15301 New files. Implements the preferences dialog and
15302 loading/saving of ~/.diarc.
15305 Added preferences.[ch].
15308 Load preferences on startup.
15310 * app/commands.[ch]:
15311 Added file_preferences_callback to show the preferences dialog.
15313 * app/create_object.c:
15314 Update extents when creating object.
15315 Use the reset_tools_after_create preferences setting.
15318 Use preferences when creating new display.
15321 Add preferences to menu.
15324 * app/layer_dialog.c:
15325 * app/properties.c:
15326 Don't allow shrinking of dialog.
15327 Add i18n of some strings.
15329 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
15331 Norwegian translation added.
15333 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
15335 * objects/standard/line.c:
15336 * objects/standard/arc.c:
15337 * objects/standard/polyline.c:
15338 * objects/standard/zigzagline.c:
15339 Loading of arrow data fixed.
15341 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
15344 Update extents when saving and exporting to postscript.
15345 Fixes a bug with postscript bounding-box being wrong.
15348 Changed border width from 5 to 2.
15351 Move grouped objects by the move-point of the first object.
15352 Fixes bug that made all objects in the group be off-grid
15353 when moving the group, even though all objects was on-grid.
15355 * app/layer_dialog.c:
15356 Update extents when changing layer.
15358 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15360 * objects/UML/uml.c:
15361 * objects/UML/component.c:
15362 * objects/UML/pixmaps/component.xpm:
15363 Added the UML component object
15365 1999-03-04 Seth Alves <alves@hungry.com>
15367 * objects/UML/generalization.c (generalization_create): avoid
15368 math on uninitialized genlz->text_width (NaN causes sigfpe)
15370 * objects/UML/realizes.c (realizes_create): same
15372 * objects/UML/dependency.c (dependency_create): same
15374 1999-03-01 Seth Alves <alves@hungry.com>
15376 * app/display.c (ddisplay_active): don't fly a warning panel
15377 if ddisplay_active is called when no views are open.
15379 * app/commands.c (set_default_file_selection_directory): set
15380 file selector's default directory if there is already
15383 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
15386 New info about imlib requirements.
15389 Added lib/pixmaps/Makefile to created makefiles.
15393 Change from obsoleted to newer gtk calls.
15396 Pass filename of the diagram when loading and saving.
15397 This creates better oportunities to handle filename saving.
15400 Pass filenames to load and save methods.
15402 * lib/dia_image.[ch]:
15403 Added dia_image_get_broken() call that returns a image which
15404 is used for 'broken' images.
15406 * lib/pixmaps/.cvsignore:
15407 * lib/pixmaps/Makefile.am:
15408 * lib/pixmaps/broken.xpm:
15409 New files for the broken image bitmap.
15412 Fixed bug with double destroyed filedialog.
15415 Updated load and save prototypes to use the new filename argument.
15418 Render broken image instead of line when got no image.
15419 Use the new filename in load and save to save (if possible)
15420 relative pathnames and to better try to find loaded images.
15422 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
15425 Some updates to the todo file.
15429 Place over/place over => sent to back/bring to front.
15430 Added some keyboard shortcuts to menus.
15432 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
15435 Changed string saving/loading to a new method. This should
15436 be much better att handling &,<,> and whitespaces.
15437 Loading strings of the old kind is still supported for backwards
15440 * samples/ER-demo.dia:
15441 * samples/UML-demo.dia:
15442 Updated to use the new strings.
15445 statusbar modified update fix.
15447 1999-02-27 Seth Alves <alves@hungry.com>
15449 * app/app_procs.c (app_init): added a --export-to-ps option
15450 which will cause dia to load a dia file and save it as ps
15451 and then exit. this is a little bogus, because it still
15452 pops up a window. this option only shows up if --enable-gnome
15455 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
15456 menu when built with --enable-gnome
15458 * app/interface.c (create_display_shell): build status bar
15459 even if --enable-gnome is used
15461 * app/menus.c: menu fixes for --enable-gnome
15463 * app/commands.c (file_open_dialog_ok_callback): fixed up
15464 menus when --enable-gnome is used
15465 (file_export_to_eps_callback): set a default file name
15466 when dialog is created
15468 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
15470 * objects/UML/association.c (association_create):
15471 Fixed usage of not initialized variable.
15472 Pointed out by Seth Alves <alves@hungry.com>.
15474 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
15477 Fixed detection of gnome-xml.
15478 From Valtteri Vuorikoski <vuori@k.notcom.org>.
15481 Fixed error detection on dlsym calls.
15482 From Valtteri Vuorikoski <vuori@k.notcom.org>.
15484 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
15486 * objects/UML/message.c (fill_in_dialog):
15489 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15491 * objects/standard/zigzagline.c:
15492 * objects/standard/polyline.c:
15493 * objects/standard/line.c:
15494 * objects/standard/arc.c:
15498 Support for sizeable arrows.
15500 * objects/standard/box.c:
15501 * objects/standard/ellipse.c:
15502 * objects/standard/image.c:
15503 Changed creation handle to lower-right.
15504 Transparent box/ellipse.
15506 * objects/standard/image.c:
15507 Better layout of properties boxes.
15509 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15511 * objects/UML/message.c (fill_in_dialog):
15512 Fixed dialog fill in. Common dialog for all messages.
15514 * objects/UML/object.c:
15515 Added multiple instance. Dialog related bugs fixed.
15516 Common dialog for all instances. Completed copy and destroy.
15518 * objects/UML/lifeline.c (lifeline_load):
15519 Conn initialization bug fixed and few bad loading prevention flags.
15520 Common dialog for all lifeline objects.
15522 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
15524 * lib/dia_image.[ch]:
15525 More work on the DiaImage abstraction.
15528 * app/render_eps.c:
15529 * app/render_gdk.c:
15530 * objects/standard/image.c:
15531 Use the new DiaImage calls.
15533 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
15537 Reversed the meaning of align horizontal/vertical.
15539 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
15541 * app/load_save.c (diagram_load):
15542 Statusbar update fix.
15544 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
15546 * app/interface.c (create_display_shell):
15547 Fixed status bar size.
15549 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
15551 * lib/dia_image.[ch]:
15552 Added extern declaration for dia_image_release.
15553 Removed dia_image_draw, as it's not neseccary.
15555 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15557 * app/object_ops.c:
15559 Added equal distance alignment both vertical and horizontal.
15561 * objects/UML/object.c:
15562 Added a couple of attributes to load/read that were missing.
15564 * objects/UML/lifeline.c:
15565 Better handling of handles. Fixed another bug I forgot to add
15568 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
15570 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15572 * lib/dia_image.[ch]:
15574 New files. DiaImage wraps the GdkImlibImage.
15577 * app/render_eps.c:
15578 * app/render_gdk.c:
15579 * lib/render_store.[ch]:
15580 * objects/standard/image.c:
15581 Use the new DiaImagetype.
15584 Removed unused variable to eliminate warning.
15586 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
15588 * objects/standard/box.c:
15589 Added rounded corners on the box object.
15591 * lib/widgets.[ch]:
15592 Updated the DiaFileSelector widget.
15594 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15596 * objects/UML/object.c (objet_draw):
15597 Completed underlining of all object name lines.
15599 * objects/UML/message.c (fill_in_dialog):
15600 Fixed a bug that filled incorrectly the message's dialog.
15602 * objects/UML/lifeline.c (lifeline_load):
15603 Some cleanning and fixed a couple of bugs that caused
15604 crashes after reading diagrams with lifelines.
15607 Added flags to prevent crash with void strings
15609 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
15610 * app/display.[ch]:
15611 Added statusbar to the display widget. Currently shows the zoom
15612 factor and modified flag of the viewed diagram. The statusbar is
15613 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
15614 This caused the following additions:
15616 * app/diagram.[ch]:
15617 Added function diagram_set_modified. Calls
15618 ddisplay_update_statusbar for all displays showing the modified diagram.
15619 Changed diagram_modified to call diagram_set_modified.
15622 Added the creation of the statusbar.
15625 diagram_save now calls diagram_set_modified instead of setting
15626 dia->modified. Needed to force call to display_update_statusbar
15629 Changed the way view_show_all works. Now calls ddisplay_zoom
15630 instead of directly setting the zoom_factor, so the zoom factor is
15631 correctly shown in the statusbar.
15634 Fixed rubberband zoom to use ddisplay_zoom().
15636 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
15639 Rudimentary GNOME session management.
15641 * app/disp_callbacks.c
15645 GNOME menus. Problems:
15646 Callbacks doesn't get user_data.
15647 Weird warnings when creating popup menus.
15648 menus_set_sensitive(), menus_set_state() doesn't work.
15650 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15653 Add AM_PATH_GDK_IMLIB() call.
15656 Add gdk_imlib to linking flags.
15660 Print library-loading error messages on stdout too.
15663 Add standard image to toolbox.
15665 * app/render_eps.c:
15666 Set a more reasonable dot length. Fixed
15667 missing initialization of dot length.
15668 Added draw_image methods.
15670 * app/render_gdk.c (new_gdk_renderer):
15671 Dot a bit wider. Looks good in normal mode now.
15673 * objects/standard/image.c:
15674 * objects/standard/pixmaps/image.xpm:
15675 New files. Standard object for images.
15677 * app/render_eps.c (set_linestyle):
15678 * app/render_gdk.c (set_linestyle):
15679 * lib/widgets.c (dia_line_style_selector_init):
15681 New line style DOTTED.
15684 * lib/render_store.c:
15685 Change DrawImage call to use gdk_imlib.
15687 * lib/widgets.[ch]:
15688 Added widgets for selecting files.
15689 Added dotted to the linestyle selector.
15691 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
15693 * objects/network/printer.c:
15694 * objects/network/network.c:
15695 * objects/network/pixmaps/printer.xpm:
15696 * objects/network/.cvsignore:
15697 * objects/network/Makefile.am:
15698 * objects/network/pixmaps/Makefile.am:
15699 New printer object in network.
15700 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
15703 Added known XML bug.
15705 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
15709 Reverted back from #include <gnome-xml/tree.h> to
15710 #include <tree.h> as this is fixed by the xml-config program.
15711 The former way broke for some people.
15712 Reported by blizzard@redhat.com.
15714 * objects/UML/lifeline.c:
15715 * objects/UML/message.c:
15716 * objects/UML/object.c:
15717 Removed some warnings.
15719 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15721 * objects/UML/lifeline.c:
15722 Fixed connection points over the life line when the focus of
15723 control is not drawn.
15725 * objects/UML/message.c:
15726 Now a recursive message can be freely resized using the handles.
15728 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15730 * objects/UML/lifeline.c:
15731 Added connection points.
15732 Added properties dialog with the option to draw/hide focus of control
15733 box and destruction mark.
15735 * objects/UML/object.c:
15736 Added properties dialog and stereotype, explicit state and attributes.
15737 It's also possible to mark the object as active.
15739 * objects/UML/pixmaps/object.xpm:
15742 * objects/UML/message.c:
15743 Added "recursive" message type (was not necessary to use OrthConn).
15745 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
15747 * objects/standard/arc.c:
15748 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
15750 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
15752 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
15756 Update xml includes to gnome-xml/*.h.
15758 * objects/standard/arc.c:
15759 Only one property dialog per type.
15760 Fix arrows directions.
15762 * objects/standard/box.c:
15763 * objects/standard/ellipse.c:
15764 * objects/standard/textobj.c
15765 Added default properties dialog.
15768 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
15770 * objects/UML/Makefile.am:
15771 * objects/UML/uml.c:
15772 * objects/UML/lifeline.c:
15773 * objects/UML/object.c:
15774 * objects/UML/message.c:
15775 * objects/UML/pixmaps/lifeline.xpm:
15776 * objects/UML/pixmaps/object.xpm:
15777 * objects/UML/pixmaps/message.xpm:
15778 Added 3 new UML objects for dynamic modeling. To avoid internal
15779 conflicts, the name "objet" is used for object "object".
15782 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
15785 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
15787 * app/display.[ch]:
15788 * app/modify_tool.c:
15789 Added autoscrolling while doing rubber-band select.
15790 This patch from Matthias Köster
15791 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
15794 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
15796 * app/defaults.[ch]:
15797 New files, deals with default properties dialog.
15800 New file. Contains definitions for the new object menu.
15802 * lib/poly_conn.[ch]:
15803 New file. Base class for poly-line like objects.
15805 * objects/standard/polyline.c:
15806 * objects/standard/pixmaps/polyline.xpm:
15807 New files. Polyline object.
15810 Fixed bug with infinite loop when registering sheets.
15813 Removed unneccesary stuff.
15815 * app/disp_callbacks.c:
15816 Support for object menus.
15819 Added polyline to toolbox.
15820 Added call to tool_options_dialog_show() when double clicking on
15824 New function tool_options_dialog_show() for tool properties.
15830 Added ObjectType methods for handling object default dialogs.
15831 Added Object method for handling object_menu.
15832 Added unused methods to ObjectTypeOps for future binary
15835 * lib/widgets.[ch]:
15836 Added DiaArrowTypeSelector widget.
15838 * objects/standard/arc.c:
15839 * objects/standard/zigzagline.c:
15840 Added support for default properties.
15842 * objects/standard/line.c:
15843 Added support for default properties.
15844 Just use one properties dialog for all line objects. NOTE: This
15845 seems to have a bug. We're working on it.
15847 * standard/standard.c:
15848 Add the polyline object.
15850 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
15852 * app/modify_tool.c:
15853 Commented out buggy transitive select function. It wasn't really
15854 meant to go into cvs.
15857 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
15869 Swedish translation. Not completed.
15873 Added possibility to enable GNOME specific code with configure.
15876 Added possibility to set debug level with configure.
15879 Added about dialog.
15885 Added some GNOME specific code. Not ready for use.
15887 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
15890 Added text about needing gtk 1.1.13 and gnome-xml.
15893 Described changes since last version (0.20).
15895 Released version 0.30, tagged DIA_0_30.
15897 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
15899 * app/magnify.c (magnify_button_release):
15900 Fixed a problem when zooming in on a very small box would
15901 not release the grabbed pointer-focus.
15903 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
15905 * app/load_save.c (diagram_load):
15906 Be somewhat more robust when loading files that
15909 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
15913 * objects/UML/uml.c:
15914 * objects/network/network.c:
15915 * objects/standard/standard.c:
15916 Added versioning of object libraries.
15918 * app/create_object.c:
15919 Don't change tool when an object is created.
15921 * objects/network/network.c:
15926 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
15929 Updated gtk requirement to Gtk+ 1.1.13.
15932 Always add one screenful of scrolling space on
15933 each side of a diagram window.
15935 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
15938 Tell automake to auto-install missing files.
15941 Renamed deprecated Gtk+ function.
15943 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
15947 * samples/Makefile.am:
15948 * samples/ER-demo.dia:
15949 * samples/UML-demo.dia:
15950 Added samples directory.
15951 Added samples for ER and UML.
15954 * app/disp_callbacks.c:
15956 Zoom is done by sqrt(2) instead of 2.
15957 Lots of more zoom options in the menu.
15959 * objects/ER/relationship.c:
15960 Relationships have 8 connectionpoints instead of 4.
15962 * objects/UML/class.c:
15963 UML class name font a bit smaller.
15964 Fixed stupid bug in the copy operation.
15967 Displays are opened at 500x400 instead of 256x256.
15970 Fixup of internal error message.
15972 * app/color_area.c:
15974 * app/modify_tool.c:
15976 Removed debug printf's.
15979 Added new known bug.
15981 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
15985 Fixed so accelerator groups work in all windows.
15986 Updated to new gtk function names.
15992 Updated to new gtk function names.
15993 Set sensitivity of the align menu items.
15995 * objects/ER/pixmaps/Makefile.am:
15996 * objects/UML/pixmaps/Makefile.am:
15997 * objects/network/pixmaps/Makefile.am:
15998 Fix so that make dist works.
16001 * app/color_area.c:
16005 * app/layer_dialog.c:
16007 * app/object_ops.c:
16008 * app/properties.c:
16009 * lib/diagramdata.[ch]:
16011 * lib/objects/ER/attribute.c:
16012 * lib/objects/ER/entity.c:
16013 * lib/objects/ER/participation.c:
16014 * lib/objects/ER/relationship.c:
16015 * lib/objects/ER/.c:
16016 * objects/UML/actor.c:
16017 * objects/UML/association.c:
16018 * objects/UML/class_dialog.c:
16019 * objects/UML/dependency.c:
16020 * objects/UML/generalization.c:
16021 * objects/UML/large_package.c:
16022 * objects/UML/realizes.c:
16025 Updated to new gtk function names.
16028 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
16034 Fixed loading of diagrams specified as arguments.
16036 * objects/ER/attribute.c:
16037 * objects/ER/entity.c:
16039 * objects/ER/participation.c:
16040 * objects/ER/relationship.c:
16041 Updated the ER objects.
16044 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
16048 * objects/Makefile.am:
16049 * objects/ER/attribute.c:
16050 * objects/ER/entity.c:
16052 * objects/ER/participation.c:
16053 * objects/ER/relationship.c:
16054 * objects/ER/pixmaps/Makefile.am:
16055 * objects/ER/pixmaps/attribute.xpm:
16056 * objects/ER/pixmaps/entity.xpm:
16057 * objects/ER/pixmaps/participation.xpm:
16058 * objects/ER/pixmaps/relationship.xpm:
16059 * objects/ER/pixmaps/weakentity.xpm:
16060 First commit of entity relationship objects.
16061 These were done by hallon@lysator.liu.se.
16062 There are still stuff to do on these.
16064 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
16069 * app/diagram.[ch]:
16070 Change diagram_remove_all_selected to take new argument
16071 delete_empty. Empty objects are deleted only if it is TRUE.
16072 Removed call to close_eps_renderer. This is now done in end_render
16073 in the eps renderer.
16075 * app/create_object.c:
16076 * app/layer_dialog.c:
16077 Update calls to diagram_remove_all_selected.
16080 Update calls to diagram_remove_all_selected.
16081 Some code reformating.
16082 Changed order of adding updates i align_h and align_v.
16084 * app/modify_tool.c:
16085 Update calls to diagram_remove_all_selected.
16086 Added pointer grab when doing rubber-band selection, this fixes
16087 the bug when draging the box over to another window.
16089 * app/connectionpoint_ops.[ch]:
16090 diagram_update_connections_object changed to take an argument
16091 update_nonmoved. This lets connections that has not moved, but
16092 the stuff they're connected to has been moved work.
16093 Update calls to the new diagram_update_connections_object.
16095 * app/properties.c:
16096 Update calls to the new diagram_update_connections_object.
16097 Update extents when properties are applied.
16099 * app/disp_callbacks.c:
16100 Added support for zooming with the '+' and '-' keys.
16103 Removed old keyboard shortcuts for zoom.
16106 Added calls begin_render and end_render to renderer.
16107 These can be used for setup and cleanup.
16109 * lib/diagramdata.c:
16110 Added calls to begin_render and end_render in data_render.
16112 * app/render_gdk.c:
16113 Added begin_render and end_render.
16115 * app/render_eps.[ch]:
16116 Added begin_render and end_render.
16117 Moved close_eps_renderer code to end_render.
16118 Various fixes to the generated eps code. This fixes importing
16119 generated eps into LYX.
16121 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
16127 Menus for alignment updated.
16129 * app/object_ops.[ch]:
16130 Functions for object alignment updated.
16132 * app/commands.[ch]:
16133 Object alignment callbacks updated.
16134 New diagrams are called Untitled-<nr>.
16136 * app/layer_dialog.c:
16137 Active layer selected when showing layers from new
16141 Compress xml files when saving.
16142 Use xml namespace 'dia'.
16145 Minor comment update.
16147 * objects/UML/class_dialog.c:
16148 Cleanup of the gkt_list_item moving code.
16149 Fixed bug with update of operation when moving parameters.
16151 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
16153 * app/layer_dialog.[ch]:
16154 Fixed the rest of the layers dialog.
16157 Added call to redo layer dialogs diagram list when changing
16160 * lib/diagramdata.[ch]:
16161 Added data_raise_layer and data_lower_layer functions for
16162 raising/lowering layers. Added data_add_layer_at for adding a
16163 layer at a specified index.
16165 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
16167 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
16170 Added support for reading diagrams from the command line.
16172 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
16174 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
16176 * app/commands.[ch]:
16177 Added objects_align_callback().
16180 Added align objects to menu.
16182 * app/object_ops.[ch]:
16183 Add object_list_align().
16185 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
16186 * app/layer_dialog.[ch]:
16187 New files. Handles the layers dialog. Needs a bugfix for glib to
16188 work. Sent patch to gtk-list.
16190 * app/pixmaps/new.xpm:
16191 * app/pixmaps/eye.xbm:
16192 * app/pixmaps/lower.xpm:
16193 * app/pixmaps/raise.xpm:
16194 * app/pixmaps/delete.xpm:
16195 New files. Images for the layer dialog buttons.
16197 * lib/diagramdata.h
16198 * lib/diagramdata.c
16199 New files for the DiagramData and Layer structures and functions.
16202 Added call to create_layer_dialog() on startup.
16204 * app/commands.[ch]:
16205 New callbacks for showing the properties and layout dialog.
16206 Changes for the new DiagramData structure.
16208 * app/connectionpoint_ops.c:
16209 * app/cut_n_paste.c:
16210 * app/diagram.[ch]:
16211 * app/display.[ch]:
16213 * app/modify_tool.c:
16214 * app/object_ops.[ch]:
16215 * app/render_eps.c:
16217 Changes for the new DiagramData structure.
16220 * app/properties.c:
16221 Set correct wmclasses.
16224 Fix load and save of layers.
16227 Update DTD for layers.
16230 New menus for dialogs.
16236 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
16239 Removed the gtk 1.1.5 stuff.
16242 Updated gtk check to version 1.1.5.
16243 Updated version from 0.20 to 0.30
16245 * app/commands.[ch]:
16246 Updated some callbacks to be of type GtkItemFactoryCallback1.
16247 Not all are done yet, but it works anyway.
16250 Removed Gtk 1.0.0 GtkAcceleratorTable references.
16254 Update to Gtk 1.1.x functions.
16255 Use ItemFactory instead of MenuFactory.
16257 * app/render_gdk.c:
16258 Removed Gtk 1.0.0 references.
16260 * objects/UML/class_dialog.c:
16261 Scrolled window updates for Gtk 1.1.5.
16264 Removed ugly fix for gnome-xml bug. Make sure you get the
16265 newest version of gnome-xml from CVS.
16267 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
16270 Removed the xml load/save line.
16276 Removed building of files.c
16279 * lib/connection.c:
16283 * lib/render_object.c:
16284 * objects/UML/actor.c:
16285 * objects/UML/association.c:
16286 * objects/UML/class.c:
16287 * objects/UML/constraint.c:
16288 * objects/UML/dependency.c:
16289 * objects/UML/generalization.c:
16290 * objects/UML/implements.c:
16291 * objects/UML/large_package.c:
16292 * objects/UML/note.c:
16293 * objects/UML/realizes.c:
16294 * objects/UML/small_package.c:
16295 * objects/UML/uml.c:
16296 * objects/UML/usecase.c:
16297 * objects/network/bus.c:
16298 * objects/standard/arc.c:
16299 * objects/standard/box.c:
16300 * objects/standard/ellipse.c:
16301 * objects/standard/line.c:
16302 * objects/standard/textobj.c:
16303 * objects/standard/zigzagline.c:
16304 Removed all includes of files.h
16307 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
16310 Made the val property of string be implied.
16311 This makes it possible to save strings that
16312 are NULL. Just leave out val.
16314 * objects/lib/dia_xml.c:
16315 Fixed string so that it is possible to save strings
16316 that are NULL. Also made an ugly workaround of a
16317 bug in gnome-xml which removes empty properties.
16319 * objects/lib/orth_conn.c:
16320 Fixed a bug in saving. Forgot to step through the
16323 * objects/UML/association.c:
16324 * objects/UML/class.c:
16325 * objects/UML/constraint.c:
16326 * objects/UML/dependency.c:
16327 * objects/UML/generalization.c:
16328 * objects/UML/implements.c:
16329 * objects/UML/large_package.c:
16330 * objects/UML/note.c:
16331 * objects/UML/small_package.c:
16332 * objects/UML/realizes.c:
16333 * objects/UML/usecase.c:
16334 * objects/UML/actor.c:
16335 Fixed UML objects to save as xml.
16336 The last two were done by asierra@servidor.unam.mx (asierra-981204)
16338 * objects/UML/uml.[ch]:
16339 Updated *_write() and *_read() functions to use xml.
16341 * objects/network/bus.c:
16342 * objects/network/computer.c:
16343 * objects/network/disc.c:
16344 * objects/network/monitor.c:
16345 Updated network diagrams to use xml.
16347 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
16350 New file. DTD that describes the xml file format
16353 * lib/dia_xml.[ch]:
16354 New files. Support for saving object to xml files.
16359 Added check for and usage of gnome-xml library.
16362 Major chages. Now saves/loads diagrams as xml.
16365 * lib/element.[ch]:
16366 * lib/connection.[ch]:
16367 * lib/orth_conn.[ch]:
16368 * lib/render_object.[ch]:
16370 Updated object support load/save functions for xml:
16372 * object/standard/arc.c:
16373 * object/standard/box.c:
16374 * object/standard/ellipse.c:
16375 * object/standard/line.c:
16376 * object/standard/textobj.c:
16377 * object/standard/zigzagline.c:
16378 Updated all standard objects to use xml.
16381 Only the standard objects are converted right now, don't
16382 save or load uml or network diagrams yet. Also, since this
16383 is new code it is deemed a bit unstable.
16388 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
16390 * objects/UML/class.c:
16391 Changed classname font to Helvetica.
16392 Added more space above the classname
16394 * objects/UML/usecase.c:
16395 Correct placements of connectionpoints on ellipse.
16396 Better algorithm for deciding aspect ration on
16399 These changes were made by Alejandro Aguilar Sierra
16400 <asierra@servidor.unam.mx>. (asierra-981201)
16402 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
16404 * objects/UML/actor.c:
16405 Changed the extents and alignment of the element
16408 * objects/UML/.cvsignore:
16409 Added usecase.lo and actor.lo.
16411 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
16413 * objects/UML/actor.c:
16414 * objects/UML/usecase.c:
16415 * objects/UML/pixmaps/actor.xpm:
16416 * objects/UML/pixmaps/case.xpm:
16417 New files. Implements usecase and actor UML objects.
16418 These objects are done by Alejandro Aguilar Sierra
16419 <asierra@servidor.unam.mx>.
16421 * objects/UML/Makefile.am:
16422 * objects/UML/pixmaps/Makefile.am:
16423 Added usecase and actor to makefile.
16426 Added Alejandro and Jerome to autors list.
16428 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
16430 * objects/UML/class.c (umlclass_load):
16431 Fixed typo. Reported by Jerome.Abela@solsoft.fr
16433 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
16435 * app/properties.c:
16436 Update connections when doing apply in the properties window.
16438 * objects/UML/uml.[ch]:
16439 * objects/UML/class.[ch]:
16440 * objects/UML/class_dialog.c:
16441 Added connection points on both sides of attributes and
16442 operations in UML classes.
16443 Based on idea from Jerome.Abela@solsoft.fr
16445 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
16448 Some new documentation about handles and connectionpoints.
16451 Added functions object_add_connectionpoint and
16452 object_remove_connectionpoint for handling a dynamic
16453 number of connectionpoints.
16455 * objects/UML/class.c:
16456 Only reserve space for stereotype when it is shown.
16458 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
16460 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
16462 * app/connectionpoint_ops.c:
16464 * app/disp_callbacks.c:
16465 * app/display.[ch]:
16467 * app/handle_ops.c:
16469 * app/modify_tool.c:
16470 * app/render_gdk.[ch]:
16472 Huge cleanup of internal rendering system.
16473 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
16474 This gives a few new methods for Interactive Renderers for setting
16475 clipping regions and drawing pixel based lines and rects.
16476 Updated the rest of the code to use the new stuff.
16478 * app/render_eps.c:
16482 * objects/standard/zigzagline.c
16483 Fixed unused variable warnings.
16486 Fixedbug with stringwidth where width==0.
16491 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
16493 * lib/widgets.[ch]:
16494 Added suppot for setting the font of a
16495 DiaFontSelector widget.
16496 Also fixed some typos in the header.
16499 Added a comment about the GetPRoperties method call.
16500 You have to make sure to update widget state when
16501 this method is called. (Not all objects do this yet,
16507 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
16510 Fixed problem with height of ascent and descent for fonts.
16511 It didn't use the whole height (==ascent+descent) when calculatine
16512 ascent_ratio and descent_ratio.
16514 * objects/standard/textobj.c:
16515 * objects/standard/box.c:
16516 * objects/standard/ellipse.c:
16517 * objects/standard/line.c:
16518 * objects/standard/arc.c:
16519 Updated and added property dialogs for these objects.
16520 Also added line width/color/style to those objects
16521 that didn't have it.
16522 This change breaks fileformat compatibility for these objects.
16524 * objects/standard/zigzagline.c:
16525 Changed zigzagline to be based on OrthConn, much nicer.
16526 Also added line style and color to properties.
16527 This change breaks fileformat compatibility for zigzagline.
16530 Fixed bug in message(). Forgot a pair of '&'.
16532 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
16534 * lib/widgets.[ch]:
16535 Added DiaColorSelector widget.
16536 This is a colored button that pops up a color selection
16537 dialog when pressed.
16539 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
16541 * lib/widgets.[ch]:
16543 New files, added widgets for selecting fonts, alignment
16544 and line-style. Will be used later.
16546 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
16550 * objects/UML/Makefile.am:
16551 * objects/network/Makefile.am:
16552 * objects/standard/Makefile.am:
16553 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
16554 in all Makefile.am.
16556 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
16558 * app/handle_ops.c (handle_draw):
16559 connected HANDLE_MINOR_CONTROL also becomes red.
16561 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
16564 removed -ldl from linking. This is added if needed by configure.
16567 Open dlls with RTLD_LAZY if it is defined.
16568 Some cleanups: char *error -> const char *error
16569 Added fprintf()'s to where we exited because of errors.
16572 Include <sys/types.h>
16574 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
16579 Detect dlopen better.
16580 Detect wether dlopen needs an underscore in the identifier.
16581 This code was mostly borrowed from guile.
16585 * objects/standard/standard.c:
16586 * objects/network/network.c:
16587 * objects/UML/uml.c:
16589 Changed the way sheets reference objects to use just the
16590 name. Changed module loading to a two stage model:
16591 First register_objects() is called for all modules.
16592 Then register_sheets() is called. This means that
16593 sheets can safely include objects from other modules.
16596 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
16598 * objects/network/bus.c:
16599 * objects/network/network.c:
16600 * objects/network/Makefile.am:
16601 New file bus.c. Added new object: Ethernet bus.
16603 * objects/standard/box.c:
16604 Added call to gtk_spin_button_set_numeric for linewidth spinner
16605 in property dialog.
16607 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
16609 * app/connectionpoint_ops.c:
16610 * app/create_object.c:
16612 * app/handle_ops.c:
16613 * app/modify_tool.c:
16614 * lib/connection.c:
16619 * loads of objects:
16620 Changed handle->connectable to handle->connect_type.
16621 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
16622 that their connections don't break when moving objects.
16625 Always select the last handle in an object that has
16626 the closest distance.
16628 * lib/geometry.[ch]:
16629 Added rectangle_add_point function.
16632 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
16634 * app/properties.[ch]: New files. Handles the new properties
16637 * app/modify_tool.c: Changed to use new properties dialog.
16639 * app/object_ops.[ch]: Removed object_changed_callback, as it's
16640 not needed anymore. This is now handled differently in
16644 Changed the properties ops for objects. Removed typedefs
16645 ChangedObjectTime and ObjectChangedFunc needed for the old way.
16646 Added object_return_null function.
16649 * lib/render_object.c:
16651 Changed objects to use the new properties dialog.
16654 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
16656 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
16659 * autogen.sh: New file. Copied from gtk and added a call to
16660 libtoolize. Anyone knows why this isn't done in gtk?
16662 * Removed autogenerated files.
16664 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
16666 * Added call setlocale(LC_NUMERIC, "C") so that formating of
16667 floating-point numbers in postscript output will be correct.
16668 * Did some cleanup of generated postscript files.