1 2005-02-25 Hans Breuer <hans@breuer.org>
3 * app/app_procs.c : don't requets to open a default display with
4 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
6 2005-02-22 Lars Clausen <lars@LittlePooter.local.>
8 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
11 2005-02-19 Lars Clausen <lars@raeder.dk>
13 * app/menus.c (display_menu_items): Applied patch from bug #94019:
14 Menu cleanup and addition of icons. Also a few additional stock
17 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
20 2005-02-14 Lars Clausen <lars@LittlePooter.local.>
22 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
24 2005-02-13 Lars Clausen <lars@raeder.dk>
26 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
27 width. Seems to work. Once tested some more, needs old code
30 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
31 warning by escaping & properly.
33 2005-02-06 Lars Clausen <lars@raeder.dk>
35 * app/filedlg.c (file_export_callback): Set correct extension as
36 soon every time the dialog is shown. Fixes bug #162535.
38 * app/display.c (ddisplay_set_origo): Use more standard
41 * app/modify_tool.c (modify_motion):
42 * app/create_object.c (create_object_motion): Put coordinates of
43 handle/object in status bar while moving. Fixes bug #163164.
45 2005-02-03 Lars Clausen <lars@raeder.dk>
47 * lib/.cvsignore: Added generated files diamarshal.[ch]
49 2005-02-02 Lars Clausen <lars@raeder.dk>
51 * configure.in: Add GLIB_GENMARSHAL def as suggested in
52 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
53 Now compiles on Linux.
55 2005-02-01 Lars Clausen <lars@raeder.dk>
57 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
58 need to translate the empty string. Especially not after
59 g_assert_not_reached(). Fixes bug #165966.
61 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
63 * objects/UML/activity.c : add fill- and line-colour properties
64 [applied by Hans Breuer, fixes bug #163260]
66 2004-01-28 Hans Breuer <hans@breuer.org>
68 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
69 update provided by Alan Horkan (fixes bug #159592)
71 2004-01-28 Hans Breuer <hans@breuer.org>
73 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
74 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
75 generalization, dependancies, parameterized classes ...
76 * plug-ins/xslt/styleshetts.xml : refernce it
77 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
79 2004-01-28 Hans Breuer <hans@breuer.org>
81 * objects/UML/transition.c : fill out the extra_spacing struct
82 in the OrtConn member, in order to avoid artifacts when draggin
83 the transition. (patch by Peter Allin, bug #144956)
85 2004-01-15 Hans Breuer <hans@breuer.org>
87 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
88 to something differnt than 0. Apparently there are case where Dia misses
89 to appropriately set it before requesting a dashed line (simple line with
90 arrow as described in bug #151716)
92 * lib/dia_dirs.c : special casing for drive letters which I broke with
95 2005-01-13 Hans Breuer <hans@breuer.org>
97 * app/interface.c(create_sheet_page) : remved dead long time code
99 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
100 it is availbale via header - which is the better style anyway
102 2004-12-31 Hans Breuer <hans@breuer.org>
104 * lib/dia_dirs.c(dia_get_canonical_path) : complete
105 rewrite to handle something like /mnt/some/where/../else
106 too. Workaround for bug #162637.
107 * app/filedlg.c : call gtk_file_chooser_set_current_name()
108 to workaround gtk_file_chooser_set_filename() not setting
109 it if the file does not exist
111 * sheets/Jackson.sheet.in app/menus.c : fixed typos
112 (Frank Arnold, bug #161676)
114 2004-12-31 Steffen Macke <sdteffen@gmail.com>
116 * doc/pl/*.xml: Added XML prolog
117 * makefile.msc: Added libxslt, fixed libxml, libart
119 2004-10-29 Alexander Shopov <ash@contact.bg>
121 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
123 2004-12-29 Lars Clausen <lars@raeder.dk>
125 * configure.in: Make gnomeprint be truly off by default (typo) and
126 show optional compilation correctly.
127 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
129 2004-12-22 Hans Breuer <hans@breuer.org>
131 * lib/widgets.c : destroy handlers can be called more than once,
132 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
134 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
136 * app/display.c : temporary debug code showing the
139 * app/dialibartrenderer.c(draw_string) : removed dead
140 code loading and leaking font and face
142 2004-12-15 Hans Breuer <hans@breuer.org>
144 * app/display.c : actually use the selction-changed signal for something
145 useful. Show selections representation on statusbar.
146 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
147 * app/diagram_tree.c : use new function (as in app/display.c) and only
148 poke into property internals at one place
149 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
152 2004-12-12 Hans Breuer <hans@breuer.org>
154 * lib/libdia.def app/dia.def : updated externals
156 * objects/custom/custom_object.c : custom_destroy is called per object.
157 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
158 reference to it. Fixes e.g. bug #158288, #160550, ...
160 * objects/UML/association.c(association_draw) : completed porting to
161 draw_polyline_with_arrows()
162 (association_update_data_end) : fixed typo in point compare
163 (association_update_data) : for name placement take degenerated
164 segements into account. Together this fixes bug #143891
166 2004-12-11 Hans Breuer <hans@breuer.org>
168 * lib/widgets.c(set_size_sensitivity) : revert inverted
169 logic for arrorw size selections, fixes bug #160527
171 2004-12-11 Hans Breuer <hans@breuer.org>
173 * lib/widgets.c(dia_font_selector_set_font) : initialize
174 the font style widget, too. Gets rid of empty font
175 style and thus default broken font style, e.g. UML::class_name
177 * lib/widgets.c(dia_color_selector_more_callback) : fill
178 the color palette from dynamic menu entries and also
179 preselect the current color to the last select entry
181 * plug-ins/python/pydia-diagramdata.c : hold a reference
182 to the underlying GObject
184 * app/Makefile.am app/diagrid.h : new file containing the
185 grid 'class' moved from DiagramData to Diagram.
186 Also moved pagebreak_color and guides cause they are only
187 used for visual appearance not 'data'.
188 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
189 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
192 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
193 lib/libdia.def : get rid of new_diagram_data()
194 Diagram _is_ DiagramData (and does not have one any longer,
195 just a compatibility pointer)
197 * lib/diarenderer.h : a small doc improvement
199 2004-12-11 Hans Breuer <hans@breuer.org>
201 * objects/UML/class.c : line wrapping code buffer
202 overrun fixed by Gabor Simon, bug #160865
204 2004-12-11 Hans Breuer <hans@breuer.org>
206 * plug-ins/python/pydia-diagram.c : hold a reference
207 to the diagram in PyDiaDiagram, avoids bug #159080
208 [another way to avoid is to detroy the dialog by
209 clsoing it. But now there is still a diagram to
210 apply the changes to, even if it's thrwon away just
213 2004-12-10 Hans Breuer <hans@breuer.org>
215 * **/*.c : fixed a bunch of warnings, not only for -ansi
216 (still too many of them, but -ansi works)
218 prop_geomtypes.h prop_geomtypes.c:306: warning: static
219 declaration for `fontsizeprop_reset_widget' follows non-static
220 dia_dirs.c:196: warning: return discards qualifiers from
224 shape_info.c:121: warning: static declaration for `parse_path'
228 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
229 arrow.c:244: warning: unused variable `i'
230 arrow.c:245: warning: unused variable `p'
231 arrow.c:246: warning: unused variable `zzr'
233 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
234 finally removed c++ comments
236 objects/Istar/goal.c : initialize connections::directions
237 while I was there - helps autorouting
239 * objects/KAOS/metaandorrel.c objects/Istar/link.c
240 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
241 (it would be quite simple to add image-from-memory support
244 * pydia-*.h : warning: no newline at end of file
246 * plug-ins/gprint/diagnomeprint.c : allow to unregister
247 and follow new unique name naming convention
248 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
251 2004-12-07 Hans Breuer <hans@breuer.org>
253 * objects/UML/message.c : better default for initial text placement
254 a suggested in bug #154306, Henning Mersch
255 * objects/UML/constraint.c : doing the same
257 * app/filedlg.c : include persistence.h for persistence_get_integer
258 * lib/libdia.def export it
260 2004-12-05 Hans Breuer <hans@breuer.org>
262 * app/grid.c : respect dynamic grid during snap-to, fixes
263 bug #135124, Dmitriy Morozov. Added some additional magic
264 to make the grid size more useable.
266 2004-12-05 Hans Breuer <hans@breuer.org>
268 * app/app_procs.c : make it compile for the HAVE_POPT and
269 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
271 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
272 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
273 when interactive. Fixes bug #119329
275 * plug-ins/cairo/diacairo.c : adapt to new type naming
276 scheme (introduced by accident;-) for pixbuf-*
277 * app/app_procs.c : reflect both type name changes
279 2004-12-04 Hans Breuer <hans@breuer.org>
281 * objects/standard/image.c : fix the correct warning
282 `image_file_name' might be used uninitialized
284 * app/filedlg.c : near complete rewrite
285 - removed 'related dialog', GtkOptionMenu, most global vars,
286 also don't hide the dialog but let it go.
287 - added: filter view by extension, hopefully working diagram
288 referencing, GtkComboBox usage
290 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
291 of im/export filter entries. So the user interface reflects
292 the dynamic nature of pixbuf loaders
294 * lib/filter.[ch] : implement filter_unregister_*port
295 lib/libdia.def : added new functions
296 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
297 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
298 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
299 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
300 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
301 use them in _plugin_unload () thus all these plug-ins
302 can be loaded used and unloaded during Dia's runtime
304 2004-12-04 Lars Clausen <lars@raeder.dk>
306 * lib/diagramdata.h: Access methods for units defined per diagram.
308 * lib/font.c (dia_font_new_from_style): More proper object creation.
310 * lib/properties.h: Refactored the PROP_STD_* macros to allow
313 * app/diagram.c (diagram_init): Force filename to be absolute
314 path, easing the job for load/save.
316 2004-12-03 Hans Breuer <hans@breuer.org>
318 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
319 added dia_font_set_height, dia_font_copy (note to self: don't try to
320 maintain these from the *NIX side ;)
322 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
323 the new color selection anymore
324 * objects/UML/class_dialog.c : with the above change it would have been more
325 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
326 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
328 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
329 (used in object vtable) and make its prototype match
331 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
332 correlate any of these strange crashing bug with it, but assume bad things to
333 happen when one passes stack allocated stuff to gtk_type_unique()
335 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
336 not there. Fixes most of the warnings from bug #156996
338 * lib/makefile.msc : rules to generate diamarshal.[ch]
340 2004-11-29 Hans Breuer <hans@breuer.org>
342 * app/disp_callbacks.c : reenable so-called preedit
343 as described in bug #158859, Etsushi Kato
344 Also fixed some compiler warnings while there.
346 * objects/standard/image.c(get_directory) : make
347 the documentation match the implementation.
348 (image_save) : don't write a leading slash on
351 * plug-ins/gprint/diagnomeprintrenderer.c :
352 switched to gnome-print-pango usage
354 * app/app_procs.c configure.in : although Dia
355 is not threaded it appears as if we have to
356 g_thread_init() to avoid crashing in some
357 libraries which are thread enabled
359 * lib/diamarshal.list lib/Makefile.am : start of
360 using GSignal to clean up some object relations
361 * lib/libdia.def : export marshallers
362 * app/diagram.[ch] : emit signals when REMOVED,
364 * app/display.c : added a connection to
365 SELECTION_CHANGED to test the new signal stuff
367 * app/diagram.c : fixed diagram_finalize while I
370 2004-11-28 Hans Breuer <hans@breuer.org>
372 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
373 the text if conversion to current locale fails. [This is actually
374 using code written four years ago;]
375 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
377 * objects/standard/image.c(image_load) : be more robust against
378 filenames which seem to be absolute
380 2004-11-27 Hans Breuer <hans@breuer.org>
382 * app/filedlg.c(file_save_callback) : convert to
383 filename encoding before passing to diagram_save()
384 Fixes bug #158381, thanks to Robert Ögren
386 2004-11-27 Hans Breuer <hans@breuer.org>
388 * lib/dialibartrenderer.c : sometimes its good to read
389 compiler warnings. Not only define renderer_finalize
390 but actually *use* it. Should plug a potential huge
393 * configure.in plug-ins/Makefile.am
394 plug-ins/gprint/Makefile.am : build the experimental
395 gnomeprint plug-in on *NIX, too.
396 * plug-ins/gprint/diagnomeprint.c : don't include
397 specific (private) backend headers but instead select
398 the desired backend via config key setting
400 * lib/diagdkrenderer.c : add 1 to size of filled arc
401 to be rendered by gdk. Fixes bug #150896.
403 * plug-ins/gprint/diagnomeprint.c
404 plug-ins/gprint/diagnomeprintrenderer.c : added magic
405 to better match page and dash sizes
407 2004-11-27 Hans Breuer <hans@breuer.org>
409 * plug-ins/shape/shape-export.c : it's g_strdup_printf
411 2004-11-27 Hans Breuer <hans@breuer.org>
413 * app/app_procs.c : mention eps-builtin aka. "using
414 latin1", does not fix the eps-pango issues but #150571
416 2004-11-27 Hans Breuer <hans@breuer.org>
418 * sheets/Cybernetics.sheet.in : changed encoding to
419 utf-8, patch from Takeshi AIHANA, fixes #149580
421 2004-11-27 Hans Breuer <hans@breuer.org>
423 * objects/custom/custom_object.c : many existing shapes
424 rely on a square default size, revert to it although
425 it originally was by a typo. Fixes bug #148527.
427 2004-11-27 Hans Breuer <hans@breuer.org>
429 * app/load_save.c(dia_cleanup_autosave)
430 app/diagram.c : don't use dia->filename if already
431 freed and dont use printf at all.
433 * app/paginate_psprint.c : not only set the renderer::paper
434 but also renderer::is_portrait. Should fix bug #142524
436 2004-11-26 Hans Breuer <hans@breuer.org>
438 * dia.desktop.in : added Bug Buddy headers (as seen
439 in planner). Hopefully the automatically filling of
440 bugs is more meaningful by this.
442 * objects/custom/custom_util.c objects/standard/image.c
443 lib/plug-ins.c : getting rid of deprecated g_dirname,
444 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
445 bytes inside a block of size 44 free'd
447 * lib/persistence.c(persistence_load_list) : don't
450 * lib/diaerror.[ch] : (new file) start of better error handling
451 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
452 added new files/funcs
453 * lib/proplist.c lib/propinternals.h (prop_list_load) :
454 allow to propagate error to caller. Also set PXP_NOTSET
455 to avoid applying unset properties, fixes bug #155255
456 * lib/propobject.c lib/prop_sdarray.c : still spewing
457 g_warnings but now with context information
459 * app/filedlg.c : more absolute filenames where required
460 and strip them where we need the filename only
461 Also explicit DONT choose gnome-vfs backend cause its
462 threading appears to crash Dia - at least in GNOME build,
465 2004-11-26 Hans Breuer <hans@breuer.org>
467 * app/filedlg.c : don't use relative filenames for
468 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
470 (export_set_extension) : if we don't have a filename don't
471 use it in strrchr() to avoid crashing
473 2004-11-23 Hans Breuer <hans@breuer.org>
475 * app/app_procs.c : fixed build for the GNOME case
476 (let's rip out POPT and depend on glib-2.6, please ;-)
478 2004-11-23 Hans Breuer <hans@breuer.org>
480 * app/app_procs.c : fixed typo which broke the
481 build for HAVE_POPT case
483 2004-11-21 Hans Breuer <hans@breuer.org>
485 * app/app_procs.c : some more #if-mess, but one day
486 we should rely on GLib's 2.6 Option Parser alone
488 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
489 and height for RoundRect() - otherwise size depends on offset,
490 shorten the unique name
492 * plug-ins/python/diamodule.c : provide a unique name
493 for python filters as well
495 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
496 by using the right colors (need black background cause we
497 are tinitng it with the real color later)
499 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
500 instead of hardcoded slahes, improved portability
502 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
503 plug-in. Also added some more error reporting (e.g. no printer driver)
505 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
506 plug-ins/makefile.msc : resurrection of the gnome print renderer.
507 Kinda works (alpha quality) for export but does not print yet.
508 With bug #158972 resolved this does even work on win32 :-)
510 2004-11-07 Hans Breuer <hans@breuer.org>
512 * doc/diagram.dtd : <composite> can have <composite/>,
513 <font/> has two 'optional' atributes 'style' and 'family',
514 these are used to store new (since 0.91) font info.
515 With this changes non of the issues in bug #147431 remains.
517 * plug-ins/python/otypes.py : starting to implement an
518 'create all known object' file as ne stress test source
519 for the dtd and Dia in general.
521 2004-11-06 Hans Breuer <hans@breuer.org>
523 * app/diapsrenderer.c : don't convert to locale but to
524 "LATIN1", fixes bug #146641
526 2004-11-06 Hans Breuer <hans@breuer.org>
528 * app/diagram_tree.c : still no C99 everwhere ...
529 * lib/libdia.def : update externals
530 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
532 * app/app_procs.[hc] : declare, use ...
533 app/winmain.c : ... and implement dia_redirect_console().
534 Even though newer Gtk version don't popup a console window
535 anymore redirecting the error messages to a file in $TEMP appears
536 to be much more reasonable than just ignoring it. Fixes bug #150777
537 based on a patch from Steffen Macke
539 2004-11-06 Hans Breuer <hans@breuer.org>
541 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
542 RoundRect() for high level renderer api implementation thus
543 fixing bug #138744 reported by Lars Clausen
545 2004-11-06 Hans Breuer <hans@breuer.org>
547 * app/prefernces.c : applied patch to make showing the diagram
548 menubar the default (advanced users know how to switch it off)
549 Fixes bug #150706, Steffen Macke
551 2004-11-06 Hans Breuer <hans@breuer.org>
553 * app/commands.c app/commands.h : added view_fullscreen_callback()
555 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
556 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
557 ALso modified to allow handling of unmodified keys again (aren't
558 there plenty of bug reports for this?
560 2004-11-06 Hans Breuer <hans@breuer.org>
562 * objects/UML/class_dialog.c : fixed casts for usage
563 of dia_color_selector_set_color()
565 * app/filedlg.c : pass a valid filenames to
566 gtk_file_chooser_set_filename(), if we don't have a name
567 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
568 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
569 assertion `local_full_path[0] == '/'' failed"
571 2004-11-06 Lars Clausen <lars@raeder.dk>
573 * app/properties.c (create_dialog):
574 * app/diagram_tree_window.h:
575 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
576 * app/diagram_tree_menu_callbacks.c:
577 * app/diagram_tree_window.c:
578 * app/diagram_tree_menu.c:
579 * app/diagram_tree.c: Changed to use persistence instead of
580 strange hacks in preferences.
583 * lib/persistence.c (persistent_list_get_glist): Don't deref null
584 pointer. New function persistent_list_remove_all, and
585 fixed persistent_list_remove to ... work!
587 2004-11-05 Lars Clausen <lars@raeder.dk>
589 * app/paginate_psprint.c (diagram_print_ps): Call
590 diagram_print_destroy on destroy rather than delete_event. That
591 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
594 2004-11-02 Lars Clausen <lars@raeder.dk>
596 * objects/UML/class.c (umlclass_load): Actually load the saved
597 fonts and font sizes. Fixes bug #157016
599 * configure.in: Require at least GTK+ 2.4.
601 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
602 finally, finally. Not quite bulletproof yet, and I need to figure
603 out a minimum version of Gtk that doesn't spew warnings all over.
605 * app/diagram.[ch]: diagram_set_filename with const filename.
607 * app/sheets_dialog_callbacks.c
608 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
609 correctly recreated. Still something fishy with the sheet menu in
610 the dialog after adding a new sheet. Probably the sheet name
613 2004-11-01 Lars Clausen <lars@raeder.dk>
615 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
616 stmping. Now requires g_free here and there.
618 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
619 for remembering last sheet, better off as persistent string. Must
620 hunt down other things like that.
622 * app/interface.c (create_sheets): Now remembers last sheet
623 selected again. Fixes bug #157036.
625 2004-11-01 Hans Breuer <hans@breuer.org>
627 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
628 will never become NULL but only point to the next char
629 which might indeed be \0]
630 Use tex_escape_string() to avoid writing invalid tex,
633 * **/* : a bunch of changes caused by trying 'make distcheck'
634 which still fails, see Bug #144527
636 2004-10-31 Lars Clausen <lars@raeder.dk>
638 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
639 floating point numbers being printed with commas. Fixes bug
642 * app/interface.c (create_sheet_dropdown_menu): New function to
643 create the sheet menu, and also allow recreation. Still buggy and
644 slightly prone to magic.
646 * objects/UML/class_dialog.c
647 (attributes_list_selection_changed_callback): Don't try to update
648 the widgets after they're destroyed. Fixes bug #156706 (I think).
650 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
651 adjustement. Fixes bug #154637
653 * sheets/ER/Makefile.am (PIX):
654 * sheets/GRAFCET/Makefile.am (PIX):
655 * sheets/Jackson/Makefile.am (PIX):
656 * sheets/Istar/Makefile.am (PIX):
657 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
658 XPM. Why these have their pictures in sheets rather than shapes I
659 don't know. Fixes bug #152142.
661 2004-10-31 Hans Breuer <hans@breuer.org>
663 * plug-ins/pixbuf/pixbuf.c : when running non interactive
664 Dia won't call color_init() as it assumes no display. If
665 we have one as tested ourselve we can as well color_init()
666 to avoid g_warnings() and produce the right collors.
669 * app/app-procs.c : try to be a little more helpful
670 and correct with regard to the command line options.
671 Renamed --export-to-format to --export-filter and some
674 2004-10-31 Hans Breuer <hans@breuer.org>
676 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
677 added GetDeviceCaps() dummy implementation to make
678 'wmf' compile on Linux, too.
680 2004-10-31 Hans Breuer <hans@breuer.org>
682 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
683 to finally fix the long lasting clipping issue, bug #85831
684 Also fixed the line style issue for printing on XP and don't
687 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
689 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
690 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
692 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
693 some info from the console (soon gone on windoze) to message_error()
694 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
695 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
697 plug-ins/python/diasvg_import.py : re.compile() only once per expression
698 and some more playing with scaling
700 * plug-ins/python/makefile.msc : updated
702 2004-10-30 Hans Breuer <hans@breuer.org>
704 * shapes/Civil/civil_arrow_right.shape : removed
705 <aspectratio type="fixed" /> thus allowing to change
706 width and height independently, fixes #154897
707 (Serge Robinson) by making it consistent with the
710 2004-10-30 Hans Breuer <hans@breuer.org>
712 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
713 on arrow being NULL, fixes bug #143063
715 2004-10-30 Hans Breuer <hans@breuer.org>
717 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
718 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
719 removed use of chached variable DiagramData::selected_count
720 * lib/diagramdata.h : renamed to selected_count_private
721 (kept for binary compatibility and sanity checks)
722 * lib/diagramdata.c : more checks on a screwed up selection list
724 * app/diagram.c(diagram_group_selected) : don't screw up the
725 DiagramData::selected list, was assignment of parent_list_affected(),
726 * lib/diagramdata.c (data_select, data_unselect) : protect against
727 multiple selections of the same object and removement of a not selected
728 object (apparently caused by the recently added group undo stuff)
729 together with the above this finally fixes bug #153525
731 * app/Makefile.am : fix ./autogen.sh ->
732 app/Makefile.am:171: blank line following trailing backslash
734 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
735 ddisplay_do_update_menu_sensitivity() here as well
737 * configure.in : make the experimental state of the cairo plug-in
740 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
741 try to update anything if we can't find an active diagram
742 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
744 * configure.in : another attempt to fix bug #156116. If there is
745 anyone with autotools knowledge reading this - help appreciated ;-)
747 2004-10-30 Hans Breuer <hans@breuer.org>
749 * objects/makefile.msc objects/UML/Makefile.am
750 objects/UML/uml.c objects/UML/transition.c
751 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
752 Patch from Peter Allin adds statechart transitions to the UML sheet -
753 bug #144956 - modified to not print("%s", NULL) which crashes on
754 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
756 2004-10-30 Hans Breuer <hans@breuer.org>
758 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
759 match the website anymore, i.e. sould remain unchanged.
760 See below and lib/dia_xml.h for the reasoning
762 * lib/libdia.def : removed dia_color_selector_get_type
764 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
765 (like broken PNG) and g_warning if appropriate
767 * app/interface.c : #include "message.h"
769 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
770 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
771 better to just move diaunitspinner to lib/ instead of polluting
772 widgets.[hc] even more ;)
773 * app/makefile.msc lib/libdia.def : updated
775 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
776 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
778 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
779 do something useful when compiled
781 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
782 Also some more #ifdefed backends usage.
784 2004-10-10 Lars Clausen <lars@raeder.dk>
786 * lib/widgets.c: Better labels for color selector menu.
788 * app/dia-props.c (diagram_properties_respond):
789 * app/preferences.c (prefs_get_value_from_widget): Don't assume
790 that a dia color selector is of type DiaColorSelector:)
792 * lib/widgets.[ch]: Color selector changed to dynamic menu.
794 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
797 2004-10-09 Lars Clausen <lars@raeder.dk>
799 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
800 arrow preview to avoid long arrow heads flipping.
802 * lib/arrows.[ch]: Support for getting from name to arrow type,
803 and for listing all arrow names.
805 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
807 * lib/libdia.def: Added new global functions.
809 * lib/persistence.[ch]: Two of the persistent_list functions to
810 return whether the item was found in the list.
812 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
813 the growing number of sheets.
815 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
818 2004-10-05 Lars Clausen <lars@raeder.dk>
820 * objects/UML/association.c: Patch from Harvey Thompson
821 <harveyandsu@yahoo.com>: Better placement of association texts.
823 2004-10-03 Lars Clausen <lars@raeder.dk>
825 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
826 use the fonts in question. Can't set tooltips with the name since
827 lib objects don't know the tool_tips thing, which is rather
830 2004-09-19 Hans Breuer <hans@breuer.org>
832 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
833 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
835 2004-09-19 Hans Breuer <hans@breuer.org>
837 * dia.desktop.in : string changes as proposed in bug #151822
839 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
840 appearts not to be needed on Linux and breaks the build
841 on OSX. Fixes bug #152970
843 2004-09-18 Lars Clausen <lars@raeder.dk>
845 * app/commands.c (view_show_all_callback): Add a bit of border
846 around Ctrl-E'd diagram, for easier select and better view of edges.
848 2004-09-19 Hans Breuer <hans@breuer.org>
850 * app/Makefile.am : trying to fix the fix from 2004-02-15
851 Overwriting AM_LDFLAGS still gave a automake warning and it
852 also appeard to break linking against gtklibs in a differnt
853 prefix. Use dia_LDFLAGS instead.
855 * plug-ins/svg/svg-import.c : initialize 'end' before usage
856 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
858 * lib/diarenderer.c : don't try to draw lines which are so much
859 degenerated that their point count became negative, fixes bug #148139
861 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
862 strings (NULL from g_strdup())
864 2004-09-10 Steffen Macke <sdteffen@web.de>
866 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
867 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
868 * app/create_object.c:
869 * app/diaunitspinner.c:
870 * app/disp_callbacks.c:
873 * lib/prop_geomtypes.c:
874 * lib/prop_geomtypes.h: made compile with msvc
876 2004-09-10 Lars Clausen <lars@raeder.dk>
878 * lib/widgets.c: Insulate conversion from outside API by adding
879 internal function to set value. Adjustment not appropriate for
882 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
884 2004-09-07 Lars Clausen <lars@raeder.dk>
886 * app/diapagelayout.c: Include from widgets.c rather than
889 2004-09-03 Lars Clausen <lars@raeder.dk>
891 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
892 as unit-based property testbed.
894 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
895 and fontsize widgets.
897 * app/Makefile.am (dia_core_files):
898 * app/diaunitspinner.h:
899 * app/diaunitspinner.c:
901 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
902 lib/widgets.[ch], as it's used in the properties code now.
904 2004-08-31 Steffen Macke <sdteffen@web.de>
906 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
908 2004-08-30 Lars Clausen <lars@raeder.dk>
911 * app/diagram.c (diagram_remove_all_selected): Remove debugging
916 * app/disp_callbacks.c:
918 * app/create_object.c:
923 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
924 current input object, multiple inputs per object, and tabbing
927 2004-08-28 Steffen Macke <sdteffen@web.de>
929 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
930 allow separate installer component "Translations"
932 2004-08-27 Akagic Amila <bono@linux.org.ba>
934 * configure.in: Added 'bs' to ALL_LINGUAS.
936 2004-08-26 Steffen Macke <sdteffen@web.de>
938 * app/makefile.msc: using /subsystem:windows again
939 * makefile.msc: updated ALL_LINGUAS
941 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
943 * configure.in: Add «nb» to ALL_LINGUAS.
945 2004-08-21 Steffen Macke <sdteffen@web.de>
947 * plug-ins/dxf/dxf-export.c: Patch from
948 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
950 2004-08-17 Lars Clausen <lars@raeder.dk>
953 * dia.spec (Release):
959 2004-08-13 Ankit Patel <ankit@redhat.com>
961 * configure.in: Added "gu" in ALL_LINGUAS.
963 2004-08-07 Lars Clausen <lars@raeder.dk>
969 * dia.spec (Release):
970 * NEWS: New release 0.94-pre6
972 2004-08-07 Lars Clausen <lars@raeder.dk>
974 * app/highlight.c (highlight_reset_objects): Unhighlight inside
978 * plug-ins/shape/shape-export.c: String capitalization fix from
979 Alan Horkan <horkana@tcd.ie>
981 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
982 Class object menu kinda work, rather than blow up. Doesn't do a
983 proper undoable change yet.
985 2004-08-06 Lars Clausen <lars@raeder.dk>
987 * app/filedlg.c (file_save_as_callback): Don't remove related
988 dialogs from the NULL diagram.
990 2004-08-02 Lars Clausen <lars@raeder.dk>
995 * dia.spec (Release):
996 * NEWS: Pre5 with leak fix.
998 * lib/font.c (dia_font_build_layout): Don't try to save an
999 allocation of LayoutCacheItem if it breaks layout cache hash.
1000 Also make hash function correct, remove explicit height entry
1001 (it's in pfd), and make sure things are correctly unreffed.
1002 Finally fixes #148141.
1004 * lib/text.c (text_set_attributes, text_set_font): Safely unref
1005 when changing font, and actually set the new font in
1007 (text_get_attributes): Ref copied font.
1009 2004-08-01 Lars Clausen <lars@raeder.dk>
1013 * dia.spec (Release):
1016 * doc/en/dia.xml: Prerelease 4.
1018 * lib/font.c (dia_font_build_layout): Better comparision and
1019 freeing of font cache.
1021 2004-07-31 Lars Clausen <lars@raeder.dk>
1023 * lib/font.c (dia_font_build_layout): Faster update to avoid
1026 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
1027 Correctly initialize export filter variable.
1029 2004-07-25 Lars Clausen <lars@raeder.dk>
1031 * dia.spec (Release):
1036 * doc/pl/dia.xml: Pre3 coming out.
1038 * lib/diarenderer.c (draw_polygon):
1039 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
1040 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
1041 rather than O (letter), and assert num_points > 1 rather than the
1044 * app/recent_files.c:
1047 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
1048 Make filenames conform to filesystem encoding.
1050 * RDP/.cvsignore: Added standard ignore.
1052 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
1053 last entry patch-panel, too.
1056 * shapes/Circuit/*.png:
1057 * shapes/Civil/*.png:
1058 * shapes/Contact/*.png:
1059 * shapes/Electric/*.png:
1061 * shapes/Pneumatic/*.png:
1063 * shapes/flowchart/*.png:
1064 * shapes/jigsaw/*.png:
1065 * shapes/network/*.png:
1066 * shapes/sybase/*.png:
1068 * dia_gnome_icon_large.png:
1069 * doc/pl/graphics/*.png: Set -kb for PNGs.
1071 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
1073 2004-07-22 Lars Clausen <lars@raeder.dk>
1079 * dia.spec (Release):
1080 * configure.in: Update to version 0.94-pre2.
1082 * app/load_save.c (diagram_data_write_doc): Use new namespace
1085 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
1086 hidden objects properties.
1088 * objects/standard/line.c: Remove halffinished line gap box from
1091 * app/paginate_psprint.c:
1092 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
1093 Immidi): Close export and print dialog with diagram as well.
1096 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
1097 borelli): Remove deprecated stuff (#137693)
1099 * app/dia-props.c (create_diagram_properties_dialog): Patch from
1100 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
1103 2004-07-21 Ray Strode <rstrode@redhat.com>
1105 * dia/dia.desktop.in: Add MimeType line to desktop file
1108 2004-07-18 Hans Breuer <hans@breuer.org>
1110 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
1111 sheets/UML/*.png : icons in png format
1112 Partial fixup of stuff broken with the following comment:
1113 "7 days : xpm->png, namespace fix, first rotation bits."
1115 * app/load_save.c(read_objects) : don't add objects to the layer.
1116 This function is called recursively and only the topmost objects
1117 belong in the layers object list. Fixes bug #145417 and is the
1118 the real fix for bug #142480
1120 * app/app_procs.c : make the --size hack even uglier, but work again
1122 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
1123 but g_free() what is returned by g_build_filename()
1125 * objects/custom/custom_object.c(custom_destroy) : handle all enum
1126 values in switch to get rid of the warning
1128 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
1129 of setlocale()/strtod()
1130 * lib/dia_svg.c : dito
1131 * lib/dia_xml.c : almost
1133 * plug-ins/python/group_props.py : use the string representation of
1134 value to ensure "unique values". If the strings would not be different
1135 the user cann't see the difference either
1137 2004-07-17 Lars Clausen <lars@raeder.dk>
1139 * lib/persistence.h: Have "void" in prototypes (#142663)
1141 * lib/widgets.c (dia_font_selector_init): Better string handling
1144 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
1146 * objects/standard/image.c (image_load): Use path of diagram
1147 rather than running directory as base for image file place.
1149 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
1152 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
1153 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
1155 * Re-added new sample diagrams binarily.
1157 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
1159 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
1160 Disabled keyboard accels when dragging an object.
1162 2004-07-14 Lars Clausen <lars@raeder.dk>
1164 * app/grid.c (snap_to_grid): Use diagrams grid setting to
1165 determine hex grid snap.
1167 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
1169 * app/interface.h: Avoid multiply defined symbols (#147396)
1171 2004-07-10 Lars Clausen <lars@raeder.dk>
1173 * app/sheets_dialog_callbacks.c (write_user_sheet):
1174 * lib/sheet.c (load_register_sheet): Don't introduce double
1175 slashes in namespace.
1177 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
1178 old diagrams, or XSLT will barf all over.
1180 * shapes/RDP/place.shape:
1181 * shapes/RDP/transition.shape:
1182 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
1183 shapes to use those.
1185 2004-07-07 Lars Clausen <lars@raeder.dk>
1188 * doc/{en,pl}/dia.xml:
1191 * NEWS: First prerelease of version 0.94. Now with release
1192 versions in a branch and main devel in the trunk.
1194 2004-07-05 Hans Breuer <hans@breuer.org>
1196 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
1197 -std=c89. Mostly //-comments and M_PI -> G_PI
1198 [Istar, Jackson, KAOS were removed from build cause they
1199 simply have *too* much C++ comments ;]
1200 * object/UML/association.c : use g_strdup() not plain strdup()
1201 * app/paginate_psprint.c : avoid storage size of `pipe_action'
1202 isn't known with more portable signal code
1204 * app/app_procs.c : don't call gtk_init() if just --version
1205 is requested (bug #144321, Vladimir Kondratiev)
1207 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
1208 DiaFont* if not NULL
1209 * objects/UML/class.c : moved fill_in_fontdata() to
1210 umlclass_load() to avoid such trouble, though unsure if
1211 this really is an improvement...
1213 * shapes/network/makefile.am : patch-panel added here too
1215 2004-07-04 Hans Breuer <hans@breuer.org>
1217 * sheets/network.sheet.in shapes/network/patch-panel.xpm
1218 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
1219 fixes bug #136629, James McDonald
1221 2004-07-04 Hans Breuer <hans@breuer.org>
1223 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
1224 lib/object_defaults.c : revert changing of Dia's XML namespace
1225 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
1226 about its purpose and relation to real world urls.
1228 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
1229 added comment about when to do so
1230 [Should have been long time ago and probably multiple times
1231 to avoid crashing on older plug-ins]
1232 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
1233 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
1235 * lib/object.c objects/UML/class.c : there are still compilers not
1236 supporting C99 and other GCCISMs like allocating dynamic sized arrays
1238 * objects/UML/class.h : there is a differnce between a list pointer
1239 and a list pointer pointer. We and GLib want the former.
1241 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
1242 if Gtk is initialized. Using gdk_display_get_default () avoids the
1243 app/* dependency and is also closer to the requirements of the
1246 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
1247 some #ifdefed support for Cairo backends not public available yet.
1249 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
1250 windoze platform supports them. This should fix bug #109818, at
1251 least for the majority running NT or above ...
1252 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
1254 * objects/makefile.msc : build Istar, Jackson and Kaos
1256 * objects/UML/class.c(umlclass_load) : don't wrap by default to
1257 keep old diagrams as they were - instead of this nice new effect ;-)
1258 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
1260 * objects/UML/class.c : mark for translation _("Wrap ...
1262 * objects/UML/class.c : more correct types, also some default properties
1263 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
1265 * objects/UML/activity.c : removed a leftover from the
1266 use-localization-for-font-substitution-hack
1268 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
1269 'cvs admin -kb *.png' PNG files should already be *added* as binary,
1270 otherwise they are not readable on line-end-converting-platforms
1272 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
1273 filter_get_by_name()
1275 * plug-ins/python/pydia-property.c : some more g_warnings for
1276 not implemented conversions
1278 * plug-ins/python/group_props.py : ensure unique property values
1279 at the right place. Now something like :
1280 - load an old UML class diagram
1281 - change one of the classes to wrap operations
1282 - select all classes (/Select/Same Type)
1283 - /Dialogs/Group Properties : check wrap_operations, select '1'
1284 - Ok, works like a charm :-)
1286 2004-07-04 Lars Clausen <lars@raeder.dk>
1288 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
1291 2004-07-03 Lars Clausen <lars@raeder.dk>
1293 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
1294 <LAV@VL3143.spb.edu>: Fixes console output problems and some
1295 interactiveness problems.
1297 2004-07-02 Lars Clausen <lars@reader.dk>
1299 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
1300 app isn't interactive.
1302 2004-07-01 Lars Clausen <lars@raeder.dk>
1304 * plug-ins/cairo/diacairo.c: Add init of last field of filter
1305 struct to remove crash.
1307 * sheets/Makefile.am (sheet_in_files):
1308 * shapes/Makefile.am:
1309 * sheets/ChemEng.sheet.in:
1310 * shapes/ChemEng/Makefile.am:
1312 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
1313 Chemical engineering shapes.
1315 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
1316 multiple arguments when using devel script.
1318 * app/display.c (new_display):
1320 * lib/diagramdata.c (new_diagram_data):
1321 * lib/diagramdata.h:
1322 * app/preferences.h:
1323 * app/preferences.c:
1326 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
1327 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
1330 * doc/pl/authors.xml:
1331 * doc/en/authors.xml:
1332 * lib/object_defaults.c (dia_object_defaults_save):
1333 * readme.win32 (BTW):
1334 * lib/persistence.c (persistence_save):
1335 * app/load_save.c (diagram_data_write_doc):
1336 * app/commands.c (help_about_callback):
1337 * README: Fix links to home page.
1340 * app/load_save.c (diagram_data_load):
1341 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
1342 loading, and guard against them when fonting.
1344 * lib/diarenderer.c (draw_rounded_polyline): Patch from
1345 anthonym@overture.com: Make limited rounding a corner-specific
1346 rendering-only thing.
1348 2004-06-30 Lars Clausen <lars@raeder.dk>
1350 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
1351 adjustment: If you can't fix it, at least don't change it.
1353 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
1354 code instead of individual code in here.
1356 2004-06-29 Lars Clausen <lars@raeder.dk>
1358 * objects/UML/association.c: Patch from Kiran
1359 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
1364 * lib/diarenderer.c (draw_rounded_polyline):
1365 * objects/standard/polyline.c (polyline_draw):
1366 * objects/standard/zigzagline.c (zigzagline_draw):
1367 Patch from anthonym@overture.com: Add rounded polylines.
1369 2004-06-27 Lars Clausen <lars@raeder.dk>
1371 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
1373 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
1374 free family list before taking out the pointer we need. Also set
1375 the entry_nr correctly so we get the menu set up right.
1377 2004-06-23 Lars Clausen <lars@raeder.dk>
1379 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
1380 images at the right place.
1382 * objects/Istar/actor.c
1383 * objects/Istar/goal.c
1384 * objects/Istar/istar.c
1385 * objects/Istar/istar.h
1386 * objects/Istar/link.c
1387 * objects/Istar/other.c
1388 * objects/Jackson/domain.c
1389 * objects/Jackson/jackson.c
1390 * objects/Jackson/jackson.h
1391 * objects/Jackson/phenomenon.c
1392 * objects/Jackson/requirement.c
1393 * objects/KAOS/goal.c
1394 * objects/KAOS/kaos.c
1395 * objects/KAOS/kaos.h
1396 * objects/KAOS/metaandorrel.c
1397 * objects/KAOS/metabinrel.c
1398 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
1399 <cp@cetic.be>: Fix instability issues caused by not returning NULL
1400 in *_move_handle and *_move. Also improved the headers with
1401 correct (c) information.
1403 2004-06-22 Lars Clausen <lars@raeder.dk>
1405 * objects/KAOS/goal.c:
1406 * objects/KAOS/other.c:
1407 * objects/Istar/actor.c:
1408 * objects/Istar/goal.c:
1409 * objects/Istar/other.c:
1410 * objects/Jackson/domain.c:
1411 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
1412 <cp@cetic.be>: Fix resize issues.
1414 * app/filedlg.c (file_dialog_hide): Patch from Kiran
1415 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
1416 related dialog. #129520.
1418 * app/dia-props.c (diagram_properties_show): Patch from Kiran
1419 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
1420 a child of its diagram. #129520.
1422 * objects/UML/association.c (association_load): Patch from Kiran
1423 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
1424 text placement. #118313.
1426 2004-06-17 Lars Clausen <lars@raeder.dk>
1428 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
1430 * Makefile.am: Make THANKS only be generated by maintainers.
1432 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
1435 * configure.in: Added three missing Makefiles.
1439 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
1440 diagram-related (save) dialog when closing diagram. To be
1441 extended to other dialogs.
1443 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
1445 * samples/Istar.dia:
1446 * samples/Jackson.dia:
1448 * sheets/Istar.sheet.in:
1449 * sheets/Jackson.sheet.in:
1450 * sheets/KAOS.sheet.in:
1455 * objects/Jackson/*:
1458 * objects/Makefile.am (SUBDIRS):
1459 * sheets/Makefile.am (SUBDIRS):
1460 * samples/Makefile.am: Additions from Christophe Ponsard
1461 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
1464 2004-06-12 Lars Clausen <lars@raeder.dk>
1467 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
1469 * lib/font.h: Toning down comments a bit:)
1471 * lib/font.c (dia_font_build_layout): Playing around with DPI
1473 * objects/UML/association.c (association_load): Avoid crashes on
1476 * objects/UML/association.c: Patch from kimmidi@novell.com:
1477 Improve placement of labels when vertical. Part fix of #118313
1479 * lib/object.c (dia_object_is_selected): Grouped objects are not
1480 selected, only the group itself. Thus, don't crash when grouping
1483 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
1484 on how to represent empty strings. Fixes #143639.
1486 * lib/object.c (dia_object_is_selected): Added comment answer.
1488 2004-06-12 Hans Breuer <hans@breuer.org>
1490 * lib/diagramdata.c lib/object.c : deal with grouped objects
1491 not knowing their parent_layer, i.e. avoid crashing in
1492 dia_object_is_selected() via group_draw() [ Triggered by
1493 playing with the Visio generated svg from bug #143455 ]
1495 * plug-ins/python/diasvg_import.py : started to implement
1496 transformation="translate(...)" and <style/> handling. Also
1497 use some other completely bogus values for em/ex scaling
1499 2004-06-08 Lars Clausen <lars@raeder.dk>
1501 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
1503 2004-06-07 Lars Clausen <lars@raeder.dk>
1505 * app/layer_dialog.c (layer_dialog_set_diagram):
1506 * app/display.c: Layer widget crash more properly dealt with in
1509 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
1510 widget deselect was called during destroy, but called
1511 ddisplay_flush, leading to a new display timeout after renderer
1514 * lib/widgets.c (dia_toggle_button_destroy):
1515 * app/recent_files.c (recent_file_menuitem_create):
1516 * lib/persistence.c (persistence_save_list):
1517 * app/commands.c (edit_delete_callback):
1518 * lib/object_defaults.c (dia_object_defaults_save):
1519 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
1522 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
1525 * lib/diagramdata.c (new_layer): Initialize connectibility.
1527 * app/display.c (ddisplay_obj_render):
1528 * app/diagram.c (diagram_find_closest_connectionpoint): Take
1529 connectibility into account.
1531 * app/layer_dialog.h (struct _DiaLayerWidget):
1532 * app/layer_dialog.c:
1533 Connectible toggle updates, now works fairly well.
1535 * app/select.c (select_transitive_callback): Make sure we're only
1536 selecting in the same layer.
1538 2004-06-04 Lars Clausen <lars@raeder.dk>
1540 * app/pixmaps/Makefile.am: Also install connectable images.
1542 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
1543 layer toggles from layer itself. Also update diagram correctly
1544 for visibility. Still need updates for connectivity behaviour.
1546 2004-06-03 Hans Breuer <hans@breuer.org>
1548 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
1550 * lib/diagdkrenderer.c(set_linejoin) : actually set
1551 join_style not cap_style
1552 (set_dashes): with the correct number of dashes
1554 2004-06-03 Lars Clausen <lars@raeder.dk>
1556 * app/modify_tool.c (click_select_object):
1557 * lib/text.c (text_set_cursor):
1558 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
1560 2004-05-31 Hans Breuer <hans@breuer.org>
1562 * lib/object_defaults.c : don't 'failed to load external
1563 entity "NULL"' when the defaults file does not exist,
1564 bug #108764 [again: somehow this got lost]
1566 * app/paginate_gdiprint.cpp : don guess the WMF export
1567 filter used for printing but find it by unique name.
1568 Also update for export_func renaming
1569 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
1570 provide some unique names
1572 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
1573 app/select.c : fix bug #140789 by always checking if there
1574 still is an active diagram before accessing it
1576 * app/defaults.c app/properties.c : user visible string should
1577 not read DiaObject but stay as "Object defaults/properties"
1579 * app/app_procs.c : reduce the hack to pass --size to the
1580 export via user_data to the only filter supporting it. Other
1581 filters would crash on it or do worse ;(
1583 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
1585 2004-05-31 Lars Clausen <lars@raeder.dk>
1588 * lib/widgets.c: Use GtkType rather than guint for
1589 dia_size_selector_get_type.
1591 2004-05-29 Lars Clausen <lars@raeder.dk>
1593 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
1594 that it matches the screen output for selfoverlapping polygons and
1597 2004-05-28 Hans Breuer <hans@breuer.org>
1599 * app/load_save.c : ignore empty groups on load and don't
1600 write empty groups while saving
1601 * lib/group.h (group_update_data): there is no first object
1602 in empty groups and they probably don't need an update at
1603 all. Maybe the shold just not exist ?
1605 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
1606 text positioning as well as drawing of images with alpha
1608 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
1609 HAVE_WINDOWS_H or G_OS_WIN32 is defined
1611 2004-05-28 Lars Clausen <lars@raeder.dk>
1613 * app/pixmaps/Makefile.am (imagedir):
1614 * app/pixmaps/visible.png:
1615 * app/pixmaps/visible-empty.png: New images for the visibility
1616 button in the layer dialog.
1618 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
1619 more border around the button. Still some left when hovering the
1620 mouse or selecting, and the grey background is annoying.
1622 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
1623 visibility connector.
1625 2004-05-26 Lars Clausen <lars@raeder.dk>
1627 * configure.in (DB2MAN): Better check for db2man docbook place.
1628 Need something even better.
1630 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
1632 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
1633 extraeneous borders.
1636 * dia_gnome_icon.png:
1637 * samples/render-test.dia: Rendering test from Hans.
1639 2004-05-24 Hans Breuer <hans@breuer.org>
1641 * lib/filter.h : renamed DiaExportFilter::export to
1642 _DiaExportFilter::export_func (should not use c++
1643 keywords (g++ specifc ?) in headers. Same for import
1644 out of pure symmetry reasons
1645 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
1646 app/diagram.c app/filedlg.c : reflect functions renaming
1648 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
1649 under *NIX, too. [If you want something done, do it yourself ;-]
1650 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
1651 with wmf.cpp's GDI usage
1652 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
1653 [For the moment it does not much more than compiling, i.e.
1654 the produced WMF files are invalid, if not created on windoze.]
1656 * configure.in : check for C++ to compile plug-in/wmf
1658 * objects/GRAFCET/boolequation.c : looks like fixing
1659 another leak (untested)
1661 2004-05-23 Hans Breuer <hans@breuer.org>
1663 * acinclude.m4 : another attempt to fix
1664 bug #142032 (still not sure it's the right one,
1665 but works for me(tm), which the other does not ;)
1667 * plug-ins/cairo/Makefile.am
1668 plug-ins/Makefile.am
1669 configure.in : support building the new cairo
1670 plug-in, if given --with-cairo and the cairo
1671 packages are found, see http://cairographics.org
1672 and also http://hans.breuer.org/dia/dia-cairo.htm
1674 * plug-ins/cairo/diacairo.c : make it compile
1675 with DEBUG_CAIRO defined, too.
1677 2004-05-23 Hans Breuer <hans@breuer.org>
1679 * plug-ins/cairo/Makefile.am : initial attempt
1681 * plug-ins/cairo/diacairo.c : a new exporter based on
1682 Cairo http://cairographics.org rendering api. Currently
1683 it just can export PNG and PS but one day it might get
1684 PDF and more almost for free. [It is not yet included
1685 in the *NIX build system due to lack of auto* magic.]
1687 * plug-ins/pixbuf/pixbuf.c : always register the export
1688 filter part. If the user does not want it it can be
1689 disabled by File/Plugins or explicit selected the other
1690 one in the Export Formats List
1692 2004-05-23 Hans Breuer <hans@breuer.org>
1694 * lib/dia_dirs.c : #include "message.h"
1695 lib/widgets.c : #include "persistence.h"
1696 lib/widgets.c(dia_font_selector_init) : still not C99
1697 lib/persitence.h : removed unimplemented prototype
1698 lib/persitence.c(persistence_load_list) : still not C99
1699 app/create_object.c : #include "highlight.h"
1700 app/layer_dialog.c : #include "widgets.h"
1701 app/modify_tool.c : prototype functions before usage
1702 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
1703 [otherwise one will have a hard time to make C++ compile ;]
1704 lib/dia_dirs.c : #include "message.h"
1705 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
1708 * plug-ins/xfig/xfig-import.c : dont initialize an int with
1711 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
1712 as documented, i.e. _not_ copying. Plugs a memory leak in
1713 lib/dialibartrenderer.c
1715 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
1716 to radius to more of a clue what it is representing
1718 * */makefile.msc lib/libdia.def : updated
1720 ChangeLog : fixed some date copy&paste bug
1722 2004-05-21 Lars Clausen <lars@raeder.dk>
1724 * NEWS: Release tag.
1726 * config.h.win32: Now 0.93+cvs
1728 * RELEASE-PROCESS: Update with new info about release branches.
1730 * Many files: Moved devel branch back into main trunk. Should
1731 have been done in the opposite way, with release in a branch.
1733 2004-05-20 Hans Breuer <hans@breuer.org>
1735 * acinclude.m4 : disable setting of PYTHON_PREFIX
1736 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
1737 as workaround for bug #142032 (the real fix would
1738 involve some auto* knowledge which I don't have
1741 * plug-ins/python/Makefile.am : more python
1742 plug-ins to be installed (especially svg import,
1743 but also 'simple scale' should be useable
1746 * plug-ins/python/scascale.py : update display
1747 after modifying selected objects
1749 * plug-ins/python/diasvg_import.py : initialize
1752 2004-05-18 Lars Clausen <lars@raeder.dk>
1754 * app/diagram_tree.c (select_node): Use
1755 diagram_remove_all_selected to kill selected list.
1757 * lib/font.c: Set language when using a different context.
1759 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
1760 and removed ctype include (#142661).
1762 * lib/paper.c (get_default_paper): Changed isalnum to
1763 g_ascii_isalnum and removed ctype include. (#142661)
1765 * objects/custom/shape_info.c:
1767 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
1769 2004-05-17 Hans Breuer <hans@breuer.org>
1771 * lib/object_defaults.c : don't 'failed to load external
1772 entity "NULL"' when the defaults file does not exist,
1775 * lib/widgets.c : fixed possible menu leak
1776 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
1777 avoid finalization of floating references, bug #142307
1779 2004-05-15 Lars Clausen <lars@raeder.dk>
1781 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
1782 fonts better (#138655)
1784 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
1786 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
1787 dist, xml, dbk and man. Also the sub-xml files. (#142098)
1789 * Makefile.am (CLEANFILES):
1790 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
1791 translation-reports, they are generated automagically. THANKS
1792 file not considered locally generated, so is not locally
1795 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
1797 * lib/diaarrowchooser.c:
1798 * lib/prop_attr.c: Fixing naming for arrowselector.
1800 * objects/UML/object.c (objet_type): Oops, little too aggressive
1801 with the DiaObject thing here:)
1803 * objects/custom/shape_info.c (parse_svg_node): Use
1804 g_ascii_isdigit instead of isdigit.
1806 * app/diaunitspinner.c (dia_unit_spinner_update):
1807 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
1808 instead of isspace avoids char subscript issues (#142467).
1810 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
1811 return value conflict.
1813 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
1814 value conflict. Also improved signature. (#142466)
1816 * app/load_save.c (diagram_data_load): Don't overwrite the list in
1817 the layer, but instead free the returned list (#142480)
1819 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
1820 for the grid widget.
1822 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
1824 * configure.in (DB2MAN): Currently just check for two known
1825 positions for the docbook xsl. Don't know a generic way to find
1826 this info. Ought to add an option for it, but then it's really
1827 only required for maintainers, I think. Maybe.
1829 * app/display.c (update_snap_grid_status): Remove nasty image
1830 toggling code not require for grid toggle button anymore. (#142475)
1832 * app/interface.c (create_display_shell): Use
1833 dia_toggle_button_new_with_images to create grid toggle button.
1834 Much nicer. (#142475)
1836 * app/menus.c (menus_initialize_updatable_items): Free the string
1837 along with the GString. (#142475)
1839 * lib/intl.c (free_alias_table): Free hash table entries in a
1840 proper way, avoiding duplicate frees. (#142475)
1842 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
1843 not put in the hash (avoid reading freed memory). (#142476)
1845 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
1847 (dia_font_selector_get_family_from_name): Stop leaking
1850 2004-05-14 Lars Clausen <lars@raeder.dk>
1852 * Transfer of fixes from release branch. Not the prettiest way to
1853 do it, this should be done during release, not afterwards.
1855 Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
1857 * acinclude.m4: minor fixes (added missing [] quotation).
1859 Lars Clausen <lars@raeder.dk>:
1861 * app/interface.c (toolbox_delete):
1862 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
1863 cancels quit due to modified diagrams.
1865 Samúel Jón Gunnarsson <sammi@techattack.nu>:
1867 * is.po: Added "is" to ALL_LINGUAS.
1869 Lars Clausen <lars@raeder.dk>:
1871 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
1873 Hans Breuer <hans@breuer.org>:
1875 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
1876 burden should be shared and not be win32 only ;) [this time
1877 build was broken by adding GtkType to widget.h]
1879 * objects/standard/box.c objects/standard/ellipse.c :
1880 for code clarification compare (obj->aspect != FREE_ASPECT)
1881 and not (obj->aspect); no binary effect.
1883 * app/paginate_psprint.c : don't leak printcmd
1885 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
1886 standard C requires variables to be declared at the beginning of
1887 a block, also there is no fabsf() with msvc
1889 * app/win32print.[ch] : make win32_printer_close() return an
1890 error code, it's used as pclose replacement
1892 Lars Clausen <lars@raeder.dk>:
1894 * RELEASE-PROCESS: Mention PATCH keyword in release process.
1896 2004-05-06 Lars Clausen <lars@raeder.dk>
1898 * lib/widgets.[ch]: Utility function to make a widget with two
1899 images (selected and non-selected).
1901 * lib/diagramdata.h: Renamed selectable to connectable.
1902 Selectable will come later.
1905 * app/pixmaps/Makefile.am (imagedir):
1906 * app/pixmaps/connectable.png:
1907 * app/pixmaps/connectable-empty.png: New images for the
1908 selectability widget. Proper installation, too.
1910 * app/layer_dialog.[ch]: Adding new button showing connectability
1911 status. Much cleaner way of doing the button, but some problems
1912 with the item getting selected
1914 * lib/widgets.h: Reminder of how to install images for use by
1915 dia_get_image_from_file.
1917 2004-05-05 Lars Clausen <lars@raeder.dk>
1919 * objects/network/Makefile.am:
1920 * objects/network/pixmaps/radiocell.xpm:
1921 * objects/network/pixmaps/basestation.xpm:
1922 * objects/network/network.c:
1923 * objects/network/basestation.c:
1924 * objects/network/radiocell.c:
1925 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
1928 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
1929 Backslash arrow head.
1931 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
1932 Notify takes care. Should maybe use that more.
1934 * lib/diagramdata.[ch]:
1935 * app/filedlg.c (file_export_ok_callback):
1936 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
1938 * app/dia-props.c (diagram_properties_respond):
1939 * app/diagram.c (diagram_set_modified):
1941 * app/disp_callbacks.c:
1943 * app/load_save.c (diagram_save):
1944 Better handling of undo and modified status -- only diagram
1945 properties and page setup explicitly set modified status, all
1946 other important changes should be done through the undo stack
1949 2004-05-04 Lars Clausen <lars@raeder.dk>
1951 * app/app_procs.c (app_init): Consistently open a new diagram if
1952 none specified, with standard name Diagram1.dia.
1954 * app/layer_dialog.c:
1955 * app/diagram.c (diagram_finalize):
1956 * app/commands.c (dialogs_layers_callback):
1957 * app/filedlg.c (file_export_ok_callback):
1958 * app/app_procs.c (app_exit):
1959 * app/display.c (display_set_active):
1960 * app/interface.c (dia_dnd_file_drag_data_received):
1961 * app/recent_files.c:
1962 Undone attempt at unifying the multi-diagram windows (like
1963 layers). It broke the layers and didn't make much sense for the
1964 diagram properties dialog anyway.
1968 * lib/diagramdata.c:
1970 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
1971 many subclasses have to be fixed. Fixed remaining
1972 Object/ObjectType renaming issues.
1974 2004-05-02 Lars Clausen <lars@raeder.dk>
1976 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
1977 having to make all the children objects conform to
1978 GObject style at once? Warning! Does not compile right now.
1980 * many, many files: Rename Object to DiaObject in preparation for
1981 making it a GObject.
1983 * app/diagram.[ch]: Turn diagram into a real GObject.
1986 * app/filedlg.c: Correctly ref and unref diagram.
1988 * lib/diagramdata.h: Starting to turn it into a GObject as well.
1990 2004-05-02 Lars Clausen <lars@raeder.dk>
1992 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
1995 * app/dia-props.c: Undo the attempt at making it really
1996 multi-diagram, now going for a one-diagram dialog.
1998 2004-04-30 Lars Clausen <lars@raeder.dk>
2000 * app/undo.c: Undoing broken undo stuff for diagram properties and
2001 page setup. Shouldn't be mixed into undo at all.
2003 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
2004 function to avoid in particular the grid crawling.
2006 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
2007 to allow aligning dashes, so they don't crawl.
2009 2004-04-28 Lars Clausen <lars@raeder.dk>
2011 * app/Makefile.am: New files diacanvas.[ch]
2013 * app/interface.c (create_display_shell): Use new diacanvas that
2014 allows placing widgets on canvas, for text edit.
2017 Early work towards rotation. No implementation yet.
2019 * app/layer_dialog.c (undo_layer):
2020 * objects/network/bus.c (bus_create_change):
2021 * objects/standard/box.c (aspect_create_change):
2022 * objects/standard/ellipse.c (aspect_create_change):
2023 Use g_new0 for change struct.
2025 * app/undo.c (diagram_change_apply_or_revert):
2026 Support for undo of diagram properties and page setup.
2028 * app/disp_callbacks.c (ddisplay_canvas_events):
2030 * lib/diagramdata.h:
2031 * app/modify_tool.c (click_select_object):
2032 * lib/text.c (text_register_editable):
2033 Starting work on new text editing model. Guarded by #ifdef so
2036 2004-04-07 Lars Clausen <lars@raeder.dk>
2038 * app/recent_files.c (open_recent_file_callback):
2039 * app/interface.c (origin_button_press):
2040 * app/filedlg.c (file_open_ok_callback):
2043 * app/commands.c (dialogs_layers_callback): Using new
2044 diagram_set_current() function to ensure auxilliary windows are
2047 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
2048 menu now borken. *sniff*
2050 * app/dia-props.c: Diagram properties window attempted
2051 persistentified. Trying to make more like layer dialog (since it
2052 already changes when the diagram changes), but some things still
2055 2004-04-06 Lars Clausen <lars@raeder.dk>
2057 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
2058 * lib/attributes.c (attributes_set_default_line_style):
2059 * app/interface.c (create_lineprops_area):
2060 Make line style persistent as well. Added function to directly
2061 set the style and dashlength of a dialinechooser.
2063 2004-04-03 Lars Clausen <lars@raeder.dk>
2065 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
2066 Copy the ellipse extra handle correctly.
2068 * objects/standard/box.c (box_move_handle): Move definitions
2069 according to bug #138925.
2071 2004-04-02 Lars Clausen <lars@raeder.dk>
2073 * app/recent_files.c: Use absolute name for recent files list.
2075 * lib/attributes.c: Set start and end arrow types, correctly.
2077 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
2080 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
2082 * app/interface.c (create_lineprops_area): Set persistently stored
2085 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
2088 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
2089 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
2091 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
2092 with what xfig does. Text now converted from latin-1 to utf-8
2093 (latin-1, since that's what xfig seems to use. Would like to see
2094 examples of non-latin-1 figs). String case problems fixed.
2096 2004-04-01 Lars Clausen <lars@raeder.dk>
2099 * app/interface.c: Default arrows now stored persistently, too.
2101 * lib/arrows.[ch]: New function to get arrow type from name.
2103 * app/color_area.c (color_area_create):
2105 * app/linewidth_area.c: Also persistent colors and line width.
2106 That was easy. Arrows and line style will take a bit more work,
2109 2004-04-01 Lars Clausen <lars@raeder.dk>
2111 * app/preferences.c: All preferences are now
2112 handled by persistence, old prefs load and store code is gone.
2114 * lib/persistence.[ch]: Added string and color persistents. This is
2115 a different string from the one used in the printer dialog, that
2116 one has a GtkEntry attached -- may want to make that one an
2117 encapsulation of this one or something.
2119 2004-03-31 Lars Clausen <lars@raeder.dk>
2121 * app/app_procs.c: Do persistence before prefs. Prefs are to be
2124 * lib/persistence.[ch]:
2125 * app/preferences.c: Adding persistence for integers, reals,
2126 booleans. Fixed stupid list bug. Test persistence for prefs.
2128 2004-03-30 Lars Clausen <lars@raeder.dk>
2130 * app/recent_files.c:
2131 Debugging of deallocation.
2134 Font menu now uses persistence. Ordering needs fixing, or it must
2138 * lib/Makefile.am (libdia_la_SOURCES):
2139 * app/Makefile.am (dia_core_files):
2140 * app/persistence.[ch]:
2141 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
2142 number of fixes, including multiple entries now being read
2143 properly. Still some oddity about the persistent list having the
2144 role as first entry (which makes the font menu crash after a few
2147 2004-03-26 Lars Clausen <lars@raeder.dk>
2149 * app/persistence.c:
2150 * app/recent_files.[ch]: Redoing the recent-files list using
2151 persistence, reducing code by about 50%. Still a problem when
2152 selecting an item from the menu -- possibly it doesn't like the
2153 menu being destroyed while in the callback?
2155 2004-03-25 Lars Clausen <lars@raeder.dk>
2157 * app/persistence.c (persistence_load_string): Missing semicolon?!?
2159 2004-03-24 Lars Clausen <lars@raeder.dk>
2163 * app/persistence.[ch]:
2164 * app/paginate_psprint.c (diagram_print_ps): New type of data can
2165 be stored persistently: Strings. Only the printer command/file
2166 go in here now, but things like creator, organization, diagram
2167 comments etc could also be handled this way.
2169 * objects/standard/beziergon.c (beziergon_draw): Avoid control
2170 lines when the object is not selected.
2172 2004-03-23 Lars Clausen <lars@raeder.dk>
2174 * lib/connectionpoint.h:
2175 * app/load_save.c: Allow connection points to have names, and
2176 handle that in load/store.
2178 * lib/dialibartrenderer.c: Better highlighting for text.
2180 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
2181 * lib/diagdkrenderer.c: Better highlighting for all, using same
2182 principles as libart highlighter.
2184 2004-03-22 Lars Clausen <lars@raeder.dk>
2186 * lib/dialibartrenderer.[ch]:
2187 * lib/diagdkrenderer.c:
2193 * app/modify_tool.c:
2194 * app/create_object.c:
2195 * app/highlight.[ch]:
2196 Added simple object highlighting. In GDK rendering, highlights
2197 the bbox, in libart highlights the outline of the object (except
2200 2004-03-22 Lars Clausen <lars@raeder.dk>
2202 * RELEASE-PROCESS: Added info on how to do a branch for
2203 development during release process.
2205 2004-03-20 Lars Clausen <lars@raeder.dk>
2207 * RELEASE-PROCESS: Mention PATCH keyword in release process.
2209 2004-03-19 Lars Clausen <lars@raeder.dk>
2211 * xmldocs.make: Fixed apparent uninstall error.
2214 * doc/en/dia-manual.xml:
2215 * doc/pl/dia-manual.xml:
2218 * NEWS: Version 0.93-pre1.
2220 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
2221 borelli): Remove some deprecated stuff.
2223 2004-03-18 Lars Clausen <lars@raeder.dk>
2225 * Makefile.am: Try better uninstall thing for scrollkeeper.
2227 * objects/ER/entity.c:
2228 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
2229 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
2230 1, 1 exactly, as well as associative ER entities.
2232 2004-03-17 Lars Clausen <lars@raeder.dk>
2234 * Makefile.am: Make distcheck not complain about scrollkeeper
2235 problems (as per advice from James Henstridge).
2237 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
2238 standard installation.
2240 * objects/standard/ellipse.c: Better strings for object menu.
2242 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
2243 of dialogs (shame on you, glade!)
2245 * objects/custom/custom_object.c (custom_setup_properties):
2246 Removed debugging output
2248 * app/paginate_psprint.c (diagram_print_ps): Slightly more
2249 readable printer error messages.
2253 * doc/en/Makefile.am:
2254 * doc/pl/Makefile.am:
2255 New more standard way to install the XML-based manuals.
2257 2004-03-15 Lars Clausen <lars@raeder.dk>
2259 * objects/standard/box.c (box_move_handle): More intuitive fixed
2262 * objects/standard/ellipse.c:
2263 * objects/standard/box.c:
2266 * app/layer_dialog.[ch]:
2267 Patch from Steve Langasek <vorlon@debian.org>:
2268 Fixes startup crash on Alpha (bug #137169)
2270 * objects/standard/box.c: Aspect fixing like ellipses.
2272 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
2274 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
2275 pixmaps, now can uninstall properly.
2277 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
2278 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
2280 Added object menu access.
2282 2004-03-07 Hans Breuer <hans@breuer.org>
2284 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
2285 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
2286 would not use deprecated apis, but it's much simpler this way)
2288 * lib/makefile.msc : build the above new widgets and render_pixmap
2289 * lib/libdia.def app/dia.def app/makefile.msc : updated
2291 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
2292 what I saw, i.e. how big is an empty array supposed to be ? ;-).
2293 Previously it gave :
2294 disp_callbacks.c(188) : error C2059: syntax error : '}'
2295 disp_callbacks.c(191) : warning C4034: sizeof returns 0
2297 * app/interface.c : #include "dialinechooser.h"
2299 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
2300 [one more reason not to use it here : it's quite slow compared to
2301 the native win32 font renderer ;]
2303 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
2304 a GtkDialog*, removed unneeded cast
2306 * app/render_eps.c : avoid assignment warning for void* user_data
2309 2004-03-06 Steffen Macke sdteffen@web.de>
2311 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
2314 2004-03-06 Lars Clausen <lars@raeder.dk>
2316 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
2319 * lib/font.c: Simple cleanup system for layout cache removes any
2320 layout that hasn't been used for 10 minutes, but only during idle
2323 2004-03-05 Lars Clausen <lars@raeder.dk>
2325 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
2326 (lluis padro) (#130887): Extended Electric shapes with vertical
2329 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
2330 start with "Create a" or "A", always capitalize first word).
2332 * objects/standard/ellipse.c: Patch from Grégoire Dooms
2333 <dooms@info.ucl.ac.be>: Add extra connection point in center of
2334 ellipse. Additionally added a handle in the center, and resize is
2335 now around the center.
2338 * sheets/Makefile.am (SUBDIRS):
2339 * sheets/IsometricMap.sheet.in:
2340 * shapes/Map/Isometric/*
2341 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
2343 2004-03-04 Lars Clausen <lars@raeder.dk>
2346 * lib/pixmaps/Makefile.am:
2348 Better installation handling of pixmaps.
2350 * lib/diagdkrenderer.c:
2351 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
2352 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
2355 2004-03-03 Lars Clausen <lars@raeder.dk>
2357 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
2358 * lib/diagdkrenderer.c:
2359 * lib/diasvgrenderer.c:
2360 * lib/dialibartrenderer.c:
2361 * lib/diainteractiverenderer.c:
2362 * lib/prop_text.c (multistringprop_handle_key):
2364 * lib/dia_image.c (dia_image_rgba_data):
2366 * lib/diagramdata.c (layer_set_object_list):
2369 Getting rid of compile warnings.
2371 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
2372 images. Also remove unused decls.
2374 2004-03-02 Lars Clausen <lars@raeder.dk>
2377 * lib/widgets.c (dia_size_selector_init): Add images to the size
2378 selector chain widget. Also new function to load installed images
2379 from files (better than from included XPM, IMHO).
2381 2004-03-02 Lars Clausen <lars@raeder.dk>
2384 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
2388 * lib/widgets.c (dia_size_selector_init): Work
2389 on getting proper icon onto the size selector. Need simple image
2390 load mechanism in utils.
2394 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
2395 strings, handle utf8 strlen properly. Bug #135930.
2397 2004-03-01 Lars Clausen <lars@raeder.dk>
2399 * shapes/Cybernetics/*:
2400 * sheets/Cybernetics.sheet.in:
2401 * sheets/Makefile.am:
2402 * shapes/Makefile.am:
2403 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
2404 Roggendorf): Cybernetic shapes (#95553).
2406 2004-03-01 Lars Clausen <lars@raeder.dk>
2408 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
2410 * lib/diatypes.h: New type DiaSizeSelector.
2412 * lib/widgets.[ch]: New size selector widgets that selects two
2413 values (width and height, nominally) optionally linked to keep
2416 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
2418 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
2419 in front of file. Bug #128600.
2423 * app/lineprops_area.[ch]:
2425 * lib/dialinechooser.[ch]:
2426 * lib/widgets.c (dia_line_style_selector_init): use line preview
2427 instead of text labels. This involve moving away line_chooser to lib
2430 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
2433 * app/Makefile.am (dia_core_files):
2434 * app/interface.c (create_lineprops_area):
2435 * app/render_pixmap.[ch]:
2437 * lib/diaarrowchooser.[ch]:
2440 * lib/propdialogs.c:
2441 * lib/render_pixmap.[ch]:
2442 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
2443 of text labels. This involve moving away arrow_chooser to lib from
2446 2004-02-29 Lars Clausen <lars@raeder.dk>
2448 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
2449 being updated half-way through destruction. To be removed when
2450 the lists are replaced by something better.
2452 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
2453 Accelerators for class dialog. Bug #130995.
2454 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
2457 * app/preferences.c:
2459 * objects/GRAFCET/step.c:
2460 * objects/Misc/analog_clock.c:
2461 * objects/chronogram/chronoline.c:
2462 * objects/chronogram/chronoref.c:
2463 Change to american spelling (color, not colour) to ease
2464 translators job. Note that a number of translations may need an
2465 update now. Bug #120466.
2467 2004-02-29 Lars Clausen <lars@raeder.dk>
2469 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
2470 Better arrow handling for missing arrows.
2472 * plug-ins/metapost/render_metapost.[ch]: Patch from
2473 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
2474 size. See bug #135363.
2476 * app/app_procs.c (app_init): If non-interactive, or if
2477 --log-to-stderr used, send all messages to stderr. This should
2478 mean that old diaconv == dia --export-to-format=FOO BAR
2480 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
2482 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
2484 2004-02-28 Lars Clausen <lars@raeder.dk>
2486 * lib/text.c (text_key_event): Patch from Kouhei Sutou
2487 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
2489 2004-02-27 Lars Clausen <lars@raeder.dk>
2491 * KNOWN_BUGS: Added info on most commonly reported bugs, with
2494 * app/disp_callbacks.c (popup_object_menu): Unified properties
2495 entry, fixes bug #105080.
2497 * app/diagram.c (diagram_update_menu_sensitivity):
2498 * app/menus.h (struct _UpdatableMenuItems):
2499 * app/menus.c (menus_initialize_updatable_items): Menu items
2500 changed around, align menus flattened, properties entry ghosted,
2501 dialogs menu removed, more shortcuts added. Closing bugs #94018,
2503 Also taking out Gnome menus for now. They don't allow shortcuts,
2504 so what are they good for?
2506 2004-02-27 Lars Clausen <lars@raeder.dk>
2508 * app/menus.c (display_menu_items):
2509 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
2512 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
2514 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
2516 2004-02-23 Lars Clausen <lars@raeder.dk>
2518 * app/app_procs.c (app_init): Comments for translators.
2520 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
2522 * app/preferences.c (prefs_create_dialog): Change packing policy
2523 for widget to expand.
2525 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
2526 running with a debugger.
2528 2004-02-19 Lars Clausen <lars@raeder.dk>
2530 * app/undo.[ch]: Adding last-saved information to undo to allow a
2531 diagram with all changes since last save undo to be marked as
2532 nonmodified. Still needs integration with actual undo
2536 * app/diagram_tree.c (diagram_tree_update):
2538 * app/display.c (update_modified_status):
2539 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
2540 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
2543 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
2544 vs. EPSI, comment out EPSI until preview is in there.
2547 * lib/diarenderer.c: Removing debugging printfs.
2549 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
2552 * objects/standard/arc.c (arc_update_handles): Check to avoid
2553 crash when start and end points are the same.
2555 2004-02-19 Lars Clausen <lars@raeder.dk>
2557 * objects/standard/bezier.c:
2558 * objects/standard/line.c (line_load):
2559 * objects/standard/polyline.c (polyline_load):
2560 * objects/standard/zigzagline.c (zigzagline_load):
2561 * objects/standard/arc.c (arc_load):
2562 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
2563 instead of hardcoding.
2565 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
2567 * app/disp_callbacks.c (popup_object_menu): append a menu item to
2570 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
2572 * app/app_procs.c: declare rc properly with the proper #ifdef
2574 2004-02-17 Lars Clausen <lars@raeder.dk>
2576 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
2577 objects (which seemingly FIG itself breaks, or else there is no
2580 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
2582 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
2583 width renderable in xfig. Helps on bug #133637, but does not
2584 quite fix it -- something about depth is wrong.
2586 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
2587 Extern definitions for Mac compilation.
2589 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
2590 (jdassen@debian.org): Include fix.
2592 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
2593 sure the initial diagram size is correct.
2595 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
2597 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
2598 CPPFLAGS, as per automake warning.
2599 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
2600 LDFLAGS, as per automake warning.
2601 (run_dia.sh): More robust creation, and more easily moved.
2603 * app/undo.c (group_objects_revert): Don't double-free the objects
2604 list. (#129221) Call object_add_updates on grouped objects.
2605 (ungroup_objects_revert): Call object_add_updates on grouped objects.
2607 * lib/diagramdata.c: Internal
2610 * lib/polyshape.c (polyshape_update_data): Correctly calculate
2611 directions for polyshape corners (thanks, Valgrind!)
2614 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
2616 * lib/arrows.h: Default arrow size defined. After all are using
2617 this, may lower to 0.4 or so.
2619 * app/lineprops_area.[ch]: New function to set the arrow type for an
2622 * app/interface.c (create_lineprops_area): Set default line to
2623 have an arrow (fairly likely to be what's wanted, plus it shows
2624 the user where arrows are set).
2626 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
2628 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
2630 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
2631 Dotted lines should use dot_length, not dash_length.
2633 2004-02-06 Hans Breuer <hans@breuer.org>
2635 * app/interface.c : don't use gtk_drawing_area_size() to avoid
2636 the defaut size being also the minimum size. Instead use
2637 gtk_window_set_default_size() on the display shell. Fixes #130982.
2639 [fixing #131210, but umlauts in the 'main' filename still not really
2640 supported on systems where filesystem encoding != utf8
2641 (Problems with recent file menu and window title)]
2642 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
2643 to deal with possible differnces in filename encodings, see
2644 g_filename_<to|from>_utf8()
2645 * objects/standard/image.c : use them.
2647 * lib/widgets.c : handle possible encoding difference here, too.
2648 Also get rid of most warnings by using const and GTK casts where
2649 appropriate; one wrong cast (probably causing a crash) was found/fixed
2650 by this - the remaining give a hint on finally leaking FontSelectorEntry.
2652 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
2653 dia_file_selector_<get|set>_file to behave like the respective Gtk
2654 functions do : encoding- and const-wise ;-)
2656 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
2658 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
2660 2004-01-19 Hans Breuer <hans@breuer.org>
2662 * app/app_procs.c app/diaconv :
2663 only call bind_textdomain_codeset when available, what's good
2664 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
2665 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
2667 2004-01-19 Steffen Macke <sdteffen@web.de>
2669 * makefile.msc: updated for new GAIM-like installer build; sync'ed
2670 ALL_LINGUAS with configure.in
2672 2004-01-18 Hans Breuer <hans@breuer.org>
2674 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
2675 by not passing NULL to g_print()
2677 * app/interface.c (create_toolbox) : actually use
2678 persitence_register_window() to restore toolbox window size
2680 * app/makefile.msc lib/makefile.msc : allow to deselect
2681 building with Freetype by command line to nmake like :
2682 nmake -f makefile.msc "NOFT2=1"
2684 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
2685 far as possible with Dia's limited line style
2686 * plug-ins/python/pydia-property.c : allow to get and set
2687 Linestyle, style and dash(length)
2689 * lib/object.h : removed typedef for ObjectId not use anywhere
2691 2004-01-17 Hans Breuer <hans@breuer.org>
2693 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
2694 doc/shape.dtd doc/custom-shapes :
2695 support for images in custom shapes, also removed some long-time
2698 * doc/en/*.xml : fixed crippled line ends which get created
2699 when windoze line ends are checkin from the unix side
2701 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
2703 * configure.in: Added "sq" to ALL_LINGUAS.
2705 2004-01-11 Hans Breuer <hans@breuer.org>
2707 [more less leaks ;-]
2709 * objects/SADT/annotation.c : use text_destroy() not g_free()
2711 * objects/chronogram/chronoline.c : neither leak chronoline::events
2712 nor chronoline::name
2714 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
2716 2004-01-11 Hans Breuer <hans@breuer.org>
2718 * lib/properties.h :
2719 * objects/custom/custom_object.c : more properties optional
2720 to be backward compatible for older diagrams not having them
2721 set. (Try to load samples/all_objects.dia)
2723 [less memory leaks thanks valgrind ;-]
2725 * app/recent_files.c (recent_file_history_write) :
2726 g_free(history_filename);
2727 (recent_file_menu_item) : use g_path_get_basename()
2728 which already strdups, free result of g_strescape()
2730 * app/filedlg.c (create_export_menu) : return of
2731 filter_get_export_filter_label() must be g_free()'d
2732 (create_open_menu) : same for import
2734 * app/export_png.c (export_png_ok) : destroy info ptr
2735 with png_destroy_write_struct()
2737 * app/app_procs.c (app_init) : g_free(export_format_string);
2739 * lib/font.c (dia_font_finalize) : finalize parent_class, too
2740 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
2741 refing it a second time, g_type_create_from_instance() is enough
2743 * lib/object_defaults.c (_obj_store) : don't mess with names
2744 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
2746 2004-01-11 Steffen Macke <sdteffen@web.de>
2748 * app/diapsftrenderer.c: including ftoutln.h
2749 * app/makefile.msc: updated for freetype build
2750 * lib/libdia.def: added dia_font_get_context()
2751 * lib/dialibartrenderer.c (draw_string): added cast
2753 2004-01-10 Hans Breuer <hans@breuer.org>
2755 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
2756 transformed coordinates, fixes bug 130804
2758 2004-01-10 Hans Breuer <hans@breuer.org>
2760 * app/filedlg.c app/app_procs.c : don't try to destroy
2761 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
2762 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
2763 returns. Fixes 'has no handler' bugs like #121019
2765 2004-01-10 Hans Breuer <hans@breuer.org>
2767 * objects/UML/class.c objects/UML/class_dialog.c :
2768 handle umlclass->name being empty to avoid, i.e. fix #127968
2770 [plugging memleaks, thanks valgrind :-]
2772 * lib/dia_xml.c (data_string) : don't leak return value
2773 of xmlNodeListGetString()
2775 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
2776 before returning, maybe alloca() would be the better
2777 choice but anyway ;)
2779 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
2781 * lib/font.c (dia_font_build_layout) : don't leak result
2784 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
2785 (this is the one which got me started using valgrind, see #130816)
2787 2004-01-07 Sanlig Badral <badral@openmn.org>
2789 * configure.in: Added "mn" to ALL_LINGUAS.
2791 2004-01-04 Hans Breuer <hans@breuer.org>
2793 * lib/diagdkrenderer.c : replace rendering of really small (height
2794 less than 2 pixels) with a simple dashed line, you wont notice the
2795 differnce beside it being much faster. This allows ...
2796 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
2797 * app/navigation.c : ... and lets you see an read rendered text even
2798 in the nice navigation popup.
2800 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
2801 (draw_string) : don't leak temporary image
2803 2004-01-04 Hans Breuer <hans@breuer.org>
2805 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
2806 * app/interface.c : use dia-app-icons.h to give Dia window icons
2808 * lib/dia_image.c lib/color.c : _never_ call functions implemented
2809 in app/ from lib/. It is not portable and broken from design
2810 * app/app_procs.c : call color_init() and dia_image_init() conditional,
2811 i.e. only if running interactive.
2813 * lib/font.h : #include <time.h>
2815 * lib/libdia.def : updated externals
2817 * objects/UML/actor.c
2818 objects/UML/association.c (todo)
2819 objects/UML/branch.c
2820 objects/UML/class.[hc] objects/UML/class_dialog.c
2821 objects/UML/classicon.c
2822 objects/UML/component.c
2823 objects/UML/constraint.c
2824 objects/UML/dependency.c
2825 objects/UML/generalization.c
2826 objects/UML/implements.c
2827 objects/UML/large_package.c
2828 objects/UML/lifeline.c
2829 objects/UML/message.c
2831 objects/UML/object.c
2832 objects/UML/realizes.c
2833 objects/UML/small_package.c
2835 objects/UML/usecase.c
2837 : ported coloring of most UML objects (bug #97517, orginal
2838 work Mathias Hasselmann)
2840 * lib/properties.h : add _OPTIONAL variants for
2841 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
2842 i.e. default colored - UML diagrams without complaining
2843 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
2844 not set properties with the help of PXP_NOTSET. Otherwise
2845 optional attributes would lead to wrong initialization.
2847 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
2848 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
2849 Same for most other selectors which probably should be rewritten
2850 to the combo box with tree model from Gtk+ 2.4
2852 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
2854 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
2855 being the Right Thing(tm) to use on Solaris.
2857 * objects/standard/bezier.c (bezierline_draw): Don't draw
2858 guidelines if not selected.
2860 * lib/object.[ch] (dia_object_is_selected): Function to check whether
2861 a given object is selected. O(n), where n is # selected objects.
2864 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
2866 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
2867 Fonts dialog is closed without pressing Ok (bug #128646).
2869 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
2871 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
2874 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
2876 * INSTALL: Updated list of requirements (bug #129653)
2878 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
2879 Pionchon <luc@handhelds.org>.
2881 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
2883 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
2884 empty or NULL strings (bug #130097).
2886 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
2888 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
2889 Added checks against color_black.
2891 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
2893 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
2894 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
2897 * objects/UML/component_feature.c: Patch from W. Borgert
2898 <debacle@debian.org>: Add handle to component feature text.
2900 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
2902 * lib/font.c: Caching PangoLayout for better rendering speed.
2904 2003-12-30 Lars Clausen <lars@raeder.dk>
2906 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
2907 get absolute file name from relative.
2908 * app/recent_files.c (recent_file_history_add): Use absolute
2909 filenames for recent files menu so that files can be found when
2910 Dia is invoked from other places.
2912 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
2913 Actually load different diagrams if such are requested on command
2916 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
2917 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
2919 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
2920 remove text rendering. May be turned into greeking at some later
2924 * app/Makefile.am (dia_core_files):
2925 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
2926 Adds navigation window a la Gimp, though without text being
2929 2003-12-27 Luc Pionchon <luc@handhelds.org>
2931 * app/navigation.h: (new file)
2932 * app/navigation.c: (new file) creates a navigation window with a
2933 thumbnail view of the whole diagram.
2934 * app/Makefile.am (dia_core_files): added new files.
2936 * app/interface.c (create_display_shell): added a button between
2937 the scrollbars to popup a navigation window.
2939 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
2941 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
2942 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
2943 not want text rendering.
2945 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
2947 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
2949 * objects/custom/shape_info.[ch]: Cleanup.
2951 * objects/custom/custom_object.[ch]: Changed to use new props
2956 * lib/prop_inttypes.c:
2957 * lib/prop_geomtypes.c: Added *prop_get_data_size.
2959 * lib/libdia.def: Added object_load_props.
2961 * configure.in: Better FT2 version test, from bug #129225.
2963 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
2965 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
2966 Lehmann <holger.lehmann@catworkx.de>.
2968 * plug-ins/xslt/Makefile.am:
2969 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
2970 and OWL XSLT sheets.
2972 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
2974 * lib/diagdkrenderer.c: Add implementation so text is still
2975 rendered. May be improved later.
2981 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
2982 Allow running without a $DISPLAY!
2984 * lib/color.c: Remove warnings for non-interactive run.
2989 * app/app_procs.[ch]:
2990 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
2991 to specify size for PNG output.
2993 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
2994 render a little smaller, so as to fit the big ones.
2996 * lib/arrows.[ch]: New arrow type from W. Borgert
2997 <debacle@debian.org>: Filled Dot and Triangle.
2999 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
3001 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
3004 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
3006 * acinclude.m4: Better Python configure code patch (can't find
3007 author, author please speak up!)
3009 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
3011 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
3014 2003-11-30 Hans Breuer <hans@breuer.org>
3016 * plug-ins/python/diasvg.py : initialize self.dash_length
3017 in constructor to avoid crashing if the renderer user
3018 does not set it before first usage.
3020 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
3022 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
3026 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
3027 development and stable versions.
3029 * lib/text.c (text_draw): Use new renderer function to draw the
3032 * lib/diarenderer.h:
3033 * lib/diarenderer.c: New renderer function "draw_text" with
3034 default implementation. This function should eventually be the
3035 main interface, as it will be able to handle width and caching of
3036 rendering internally. All users of draw_string should convert to
3037 use Text objects and call either renderer->draw_text or text_draw,
3038 the latter if the text can be edited in-place (as should be the
3041 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
3043 * shapes/Circuit/hresistor.shape: First example of extra
3046 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
3048 * plug-ins/shape/shape-export.c:
3049 * lib/diasvgrenderer.h:
3050 * lib/diasvgrenderer.c:
3051 * plug-ins/svg/render_svg.c (new_svg_renderer):
3052 Actually store the font size, using DiaRenderer's font fields.
3054 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
3056 * objects/custom/shape_info.[ch]:
3057 * objects/custom/custom_object.[ch]:
3058 Support for extra attributes in custom objects.
3060 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
3062 * app/diagram.c (diagram_update_menu_sensitivity): More
3063 intelligent checks for menu sensitivity. Might be slow on huge
3064 diagrams, but I think other things outweigh it by a lot.
3066 * app/menus.[ch]: Make "Bring Forwards"
3067 and "Send Backwards" updateable.
3069 2003-11-22 Steffen Macke <sdteffen@web.de>
3071 * shapes/Assorted/arrow-turn-up.shape:
3072 * shapes/Assorted/arrow-turn-up.png:
3073 * sheets/Assorted/Makefile.am:
3074 * sheets/Assorted.sheet.in: Added new arrow
3076 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
3084 * app/diagram_tree.c
3085 * app/diagram_tree_menu.c
3086 * app/diagram_tree_window.c
3087 * app/diapagelayout.c
3088 * app/diaunitspinner.c
3092 * app/layer_dialog.c
3093 * app/lineprops_area.c
3094 * app/linewidth_area.c
3097 * app/paginate_psprint.c
3099 * app/plugin-manager.c
3102 * app/recent_files.c
3104 * app/sheets_dialog.c
3105 * app/sheets_dialog_callbacks.c
3106 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
3107 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
3109 * TODO: Updated, note on EPS transparency.
3111 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
3113 * objects/UML/class.c (umlclass_draw): Allow classes with no name
3116 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
3119 * doc/en/dia-manual.xml:
3122 * NEWS: Another Brown Bag release for parenting problems,
3123 including a crash bug fix.
3125 * app/connectionpoint_ops.c (diagram_update_connections_object):
3126 Also update connections when moving children. This can cause
3127 move_handle to be called twice, so it must be idempotent.
3129 * app/load_save.c: Loading and saving of children totally redone.
3130 Now doesn't violate assumption that all objects in a layer are
3131 placed in order in XML file.
3133 * objects/UML/branch.c (branch_create): Don't lie about being
3136 * objects/UML/node.c (node_create):
3137 * objects/UML/large_package.c (largepackage_create): Drag with
3138 lower right-hand handle at creation like all other objects.
3140 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
3142 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
3143 parenting drop to behave like a move inside, i.e. constrain place
3144 instead of trying to resize. 'Cause, resizing cannot be done for
3145 all objects (e.g. UML Class). Also simplified the algorithm a lot
3148 * app/load_save.c: Saving and loading of connection points for
3149 children added. Prototypes for static functions added.
3151 * lib/dynamic_obj.c: Removed debugging output.
3153 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
3155 * doc/en/dia-manual.xml:
3156 * doc/pl/dia-manual.sgml:
3160 * NEWS: Brown Bag release 0.92.1
3162 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
3164 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
3166 * app/app_procs.c (app_init): Rearrangement for translators.
3168 2003-10-24 Steffen Macke <sdteffen@web.de>
3170 * lib/text.c(text_key_event): enforcing the inserted text length now,
3173 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
3175 * MAINTAINERS: Change Debian maintainer to be the default address.
3177 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
3178 args to match prototype, thus removing crashbug #125159.
3180 * RELEASE-PROCESS: Note to self.
3182 2003-10-22 Steffen Macke <sdteffen@web.de>
3184 * doc/en/dia-manual.xml: removed superfluous external references
3186 2003-10-21 Steffen Macke <sdteffen@web.de>
3188 * lib/libdia.def: added filter_get_by_name
3189 * app/render_eps.c: moved extensions definition outside #ifdef
3191 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
3195 Removed old Dia manual, put new one in doc/en/. Translations
3196 should go in doc/??/.
3198 * doc/en/dia-manual.xml:
3199 * doc/pl/dia-manual.sgml:
3200 * dia.spec (Release):
3203 * NEWS: 0.92 is here!
3207 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
3208 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
3211 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
3213 * doc/en/usage-objects-selecting.xml: Commented out empty note.
3215 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
3217 * doc/pl/dia-manual.sgml:
3218 * doc/en/dia-manual.xml:
3222 * dia.spec (Release): Pre7.
3224 * app/diapsrenderer.c (draw_string): Convert string to print based
3225 on current locale. If conversion fails, fall back to UTF-8 (which
3226 is almost certain to be messy).
3228 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
3230 * doc/pl/dia-manual.sgml:
3231 * dia.spec (Release):
3235 * doc/en/dia-manual.xml: Pre6.
3237 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
3238 TeX chars in strings -- must be possible to use TeX text in there.
3239 Also avoids infinite loop bug (#124464) Will get option for this
3242 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
3244 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
3246 * doc/en/dia-manual.xml:
3247 * doc/pl/dia-manual.sgml:
3248 * dia.spec (Release):
3253 * app/authors.h: Removed duplicate of M. C. Nelson.
3255 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
3257 * app/export_png.c: Unique name for libart PNG export: png-libart.
3259 * app/render_eps.c: Unique names for the two eps export methods:
3260 eps-builtin, eps-pango.
3262 * lib/filter.h: Binary compatibility change:
3263 Added unique name to export filters. Can be NULL.
3264 * lib/filter.c (filter_get_by_name): Finding a filter by
3267 * app/app_procs.h: Changed prototype for do_convert.
3268 * app/app_procs.c (app_init): Support for non-extension file
3269 format selection for export. Also allow extension to differ from
3270 that specified by the filters. A bit of refactoring, too.
3272 2003-09-28 Steffen Macke <sdteffen@web.de>
3274 * makefile.msc: added target po to update the translations
3276 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
3279 * dia.spec (Release):
3281 * doc/pl/dia-manual.sgml:
3282 * doc/en/dia-manual.xml:
3283 Pre4 is given a short try.
3285 * configure.in: Give all necessary libs to PNG test.
3287 * lib/font.c: Added legacy entries for sans, serif and monospace.
3289 * app/app_procs.c (internal_plugin_init):
3292 Added PS fonts output for Unix.
3294 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
3295 factor to make PS fonts stay in boxes.
3297 2003-08-03 Hans Breuer <hans@breuer.org>
3299 * config.h.win32 : close the version string
3301 * lib/libdia.def : with color_white, color_black being static
3302 on win32 they can not be exported anymore either
3304 * lib/dialibartrenderer.c : text rendering is back on win32,
3305 only by Gdk though; almost a year seems to be enough to
3306 wait for my patch at bug #94791 to be accepted ...
3308 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
3310 * shapes/network/{digitizing_board.png,plotter.png,
3311 laptop.png,telephone.png}: 22x22 icons.
3313 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
3315 * doc/pl/dia-manual.sgml:
3316 * doc/en/dia-manual.xml:
3317 * dia.spec (Release):
3321 pre3 improves font rendering speed.
3323 * app/app_procs.c (app_init): Don't do pango init here, it's done
3324 on demand in font.c now.
3326 * lib/font.c: Load pango context on demand rather than during
3327 init/all the time strikes a better balance between working font
3328 size and speed. Still need to cache width calculations.
3330 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
3332 * lib/dia_xml.c: Enable pretty printing. Should have been added
3335 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
3337 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
3338 adjustment a bit for half diamond and open round.
3340 * RELEASE-PROCESS: Added note about notifying translators and
3343 * doc/pl/dia-manual.sgml:
3344 * doc/en/dia-manual.xml:
3345 * dia.spec (Release):
3349 Update to 0.92-pre2.
3351 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
3353 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
3354 calculation for half diamond and open round.
3357 * objects/UML/component_feature.c:
3358 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
3359 arrows instead of specific little hacks. Much nicer, but damn
3360 there's a lot of arrows.
3362 * lib/dialibartrenderer.c (begin_render):
3363 * app/render_libart.c (begin_render): Use correct DPI for screen
3364 (well, actually the default DPI of 75 for now).
3366 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
3368 * lib/diagdkrenderer.c (draw_string): Some reformatting.
3370 * app/app_procs.c (app_init): Note on what should be done for the
3371 pango context now, only it doesn't work:(
3373 * lib/font.c (dia_font_new): Make sure to load fonts that are
3374 used, using a reasonable pango_context. Also a comment on the
3377 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
3379 * doc/pl/graphics/*.png:
3380 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
3381 loop (bug #121817). PL translator may want to change the
3382 home_network png to be in Polish. If the docs get translated into
3383 more languages, we'll want to find out how to share these things.
3385 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
3387 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
3388 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
3391 * app/filedlg.c (file_save_as_callback): Put filename setting
3392 together. (Preparation for allowing default save dir.)
3394 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
3395 correctly this time:)
3397 * app/dia-props.c (diagram_properties_show):
3398 * app/properties.c (properties_show): Make sure the
3399 dialogs are transient for the correct diagram.
3401 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
3403 * configure.in: Make sure -lz -lm is passed into second png test
3404 as well (stupid AC_LINK_IFELSE can't take it as an argument).
3406 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
3407 comment-filled files readable. Once we have a 'generic data'
3408 system, we can put comments in there.
3410 2003-09-06 Steffen Macke <sdteffen@web.de>
3412 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
3413 g_string_sized_new() instead of g_string_new() to make it compile
3414 * app/Makefile.am: including dia.ico and dia.rc in the tarball
3415 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
3416 for non-solid linestyles - otherwise custom linestyles have to be used.
3418 2003-09-02 Steffen Macke <sdteffen@web.de>
3420 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
3423 2003-09-02 Christian Neumair <chris@gnome-de.org>
3425 * sheets/Pneumatic.sheet.in: Slight unification fix.
3427 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
3431 * dia.spec (Release):
3432 * doc/en/dia-manual.xml:
3433 * doc/pl/dia-manual.sgml:
3434 * NEWS: Update to 0.92-pre1.
3436 * app/properties.c (properties_key_event): Removing Esc/Enter
3437 handling for now, interferes to much with regular dialog usage.
3439 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
3440 Function to escape special TeX characters. Not in use yet, as
3441 PSTricks output by default is TeX strings. Should get a save-time
3444 2008-09-01 Steffen Macke <sdteffen@web.de>
3446 * lib/paper.h: explanatory comment on width and height
3448 2003-08-30 Steffen Macke <sdteffen@web.de>
3451 * lib/color.h: made color_white, color_black static on win32
3453 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
3455 * configure.in (PNG_LIBS): Something in the png tests added an
3456 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
3458 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
3460 * configure.in: Quote correctly for temporarily adding freetype
3463 * app/preferences.c (prefs_save): Remove debugging g_print.
3465 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
3467 * objects/flowchart/parallelogram.c (pgram_update_data):
3468 Directions for connections, better system for placing
3471 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
3473 * lib/diagramdata.c (layer_find_closest_object_except): Look all
3474 the way through the object list, so the foremost object is selected.
3476 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
3477 included for diagramdata.c.
3479 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
3480 newline in multistringprop not close the dialog. Failed so far.
3482 2003-08-25 Steffen Macke <sdteffen@web.de>
3484 * app/commands.c: using CHM instead of HTML on win32 if available
3485 * lib/diagramdata.h: including dynamic_obj.h
3487 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
3489 * app/properties.c (properties_key_event): Make Enter = Ok for
3490 properties dialogs. Still some problems with this and Esc for
3491 Cancel, for instances escaping out of a menu closes the dialog.
3493 * objects/UML/association.c (association_get_properties):
3494 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
3497 * app/diapsft2renderer.c (draw_string): Use
3498 dia_font_scaled_build_layout to ensure similarity of text.
3500 * lib/diagramdata.c: Remove obj from dynobj list when removing
3501 from layer to avoid nasty race conditions.
3503 * app/undo.c (group_objects_revert): Make sure to unparent and
3504 remove from dynobj list when changing layers objects.
3506 2003-08-23 Steffen Macke <sdteffen@web.de>
3508 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
3509 StretchBlt(); fixes #92249
3511 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
3513 * app/filedlg.c (file_save_as_callback):
3514 * app/preferences.h:
3515 * app/preferences.c (prefs_data):
3516 * lib/diagramdata.h:
3517 * lib/diagramdata.c (new_diagram_data):
3518 * app/load_save.c (diagram_data_load):
3519 Let the document remember whether it was compressed. The user can
3520 still override this in the Save As... dialog, and that will still
3521 be remembered as the default for new diagrams.
3523 2003-08-23 Steffen Macke <sdteffen@web.de>
3525 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
3527 2003-08-22 Steffen Macke <sdteffen@web.de>
3529 * plug-ins/xslt/dia-uml.xsl:
3530 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
3531 table containing a list of components grouped by stereotype
3533 2003-08-21 Steffen Macke <sdteffen@web.de>
3535 * lib/makefile.msc: added connectionpoint.obj
3536 * lib/libdia.def: added connpoint_update, find_slope_directions
3537 * app/disp_callbacks.c: including scroll_tool.h
3538 * obj/makefile.msc: added component_feature.obj
3539 * app/paginate_gdiprint.c: fixed loop initialization in
3540 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
3543 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
3545 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
3548 * lib/diagramdata.h: Colors added to prefs.
3549 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
3550 New field for pagebreak color, which should
3551 behave the same as grid color and be settable for a diagram.
3553 * app/diagram.c (diagram_init): Update diagram pagebreak color
3556 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
3559 * app/preferences.[ch]: Default diagram colors now #defines, so
3560 loading can use it. Also, colors are now in NewDiagramData, so
3561 are passed nicely into new diagrams directly from prefs. Yum.
3563 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
3564 Support for loading and saving grid and pagebreak colors with the
3565 diagram. I'm inclined to make all the three Colors in diagram
3566 Color*s instead, so we can tell if they're specified for the
3567 diagram or merely the default setting. There'd be no way for the
3568 user to tell if the color of a diagram is default, though, unless
3569 we add a 'reset to default' button to prefs.
3571 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
3572 pagebreak color. Unsensitizing grid size when dynamic.
3574 * objects/UML/component.c: Patch from Krzysztof Foltman
3575 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
3576 third. Makes the left side connections actually be on the line
3579 2003-08-20 Steffen Macke <sdteffen@web.de>
3581 * lib/libdia.def: added layer_find_closest_object_except
3582 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
3584 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
3588 * app/scroll_tool.c:
3590 * app/disp_callbacks.c:
3591 * app/create_object.h:
3592 * app/create_object.c: Patch from Krzysztof Foltman
3593 <kfoltman@onet.pl>: Middle button can scroll transiently when
3594 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
3598 * sheets/UML.sheet.in:
3599 * sheets/UML/receptacle.xpm:
3600 * sheets/UML/Makefile.am:
3601 * sheets/UML/eventsource.xpm:
3602 * sheets/UML/eventsink.xpm:
3603 * objects/UML/pixmaps/facet.xpm:
3604 * objects/UML/uml.c (dia_plugin_init):
3605 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
3606 * objects/UML/component_feature.c:
3607 Patch from W. Borgert <debacle@debian.org>: Add event sources and
3610 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
3612 * lib/object.h: Turning some comments into doxygen style.
3614 * lib/object_defaults.c (dia_object_defaults_load)
3615 (dia_object_default_get, dia_object_default_create):
3616 Fixing up existing documentation.
3618 * lib/object.h: Doxygen style documentation begun.
3620 * app/create_object.c:
3622 * app/connectionpoint_ops.c:
3623 * app/disp_callbacks.c:
3624 * app/modify_tool.c:
3626 * objects/network/wanlink.c (wanlink_move_handle):
3627 * objects/network/bus.c (bus_move_handle):
3629 * objects/flowchart/parallelogram.c (pgram_move_handle):
3630 * objects/flowchart/ellipse.c (ellipse_move_handle):
3631 * objects/flowchart/diamond.c (diamond_move_handle):
3632 * objects/flowchart/box.c (box_move_handle):
3634 * objects/custom/custom_object.c (custom_move_handle):
3636 * objects/chronogram/chronoref.c (chronoref_move_handle):
3637 * objects/chronogram/chronoline.c (chronoline_move_handle):
3639 * objects/SADT/box.c (sadtbox_move_handle):
3640 * objects/SADT/arrow.c (sadtarrow_move_handle):
3641 * objects/SADT/annotation.c (annotation_move_handle):
3643 * objects/Misc/analog_clock.c (analog_clock_move_handle):
3645 * objects/GRAFCET/vergent.c (vergent_move_handle):
3646 * objects/GRAFCET/vector.c (arc_move_handle):
3647 * objects/GRAFCET/transition.c (transition_move_handle):
3648 * objects/GRAFCET/step.c (step_move_handle):
3649 * objects/GRAFCET/condition.c (condition_move_handle):
3650 * objects/GRAFCET/action.c (action_move_handle):
3652 * objects/FS/function.c:
3653 * objects/FS/flow.c:
3654 * objects/FS/flow-ortho.c (orthflow_move_handle):
3655 * objects/FS/flow-poly.c (flow_move_handle):
3657 * objects/UML/usecase.c (usecase_move_handle):
3658 * objects/UML/state_term.c (state_move_handle):
3659 * objects/UML/state.c (state_move_handle):
3660 * objects/UML/small_package.c (smallpackage_move_handle):
3661 * objects/UML/realizes.c (realizes_move_handle):
3662 * objects/UML/object.c (objet_move_handle):
3663 * objects/UML/note.c (note_move_handle):
3664 * objects/UML/node.c (node_move_handle):
3665 * objects/UML/message.c (message_move_handle):
3666 * objects/UML/lifeline.c (lifeline_move_handle):
3667 * objects/UML/large_package.c (largepackage_move_handle):
3668 * objects/UML/implements.c (implements_move_handle):
3669 * objects/UML/generalization.c (generalization_move_handle):
3670 * objects/UML/fork.c (fork_move_handle):
3671 * objects/UML/dependency.c (dependency_move_handle):
3672 * objects/UML/constraint.c (constraint_move_handle):
3673 * objects/UML/compprop.c (compprop_move_handle):
3674 * objects/UML/component.c (component_move_handle):
3675 * objects/UML/branch.c (branch_move_handle):
3676 * objects/UML/association.c (association_move_handle):
3677 * objects/UML/actor.c (actor_move_handle):
3678 * objects/UML/activity.c (state_move_handle):
3679 * objects/UML/class.c (umlclass_move_handle):
3681 * objects/standard/ellipse.c (ellipse_move_handle):
3682 * objects/standard/zigzagline.c (zigzagline_move_handle):
3683 * objects/standard/textobj.c (textobj_move_handle):
3684 * objects/standard/polyline.c (polyline_move_handle):
3685 * objects/standard/polygon.c (polygon_move_handle):
3686 * objects/standard/line.c (line_move_handle):
3687 * objects/standard/image.c (image_move_handle):
3688 * objects/standard/bezier.c (bezierline_move_handle):
3689 * objects/standard/arc.c (arc_move_handle):
3690 * objects/standard/beziergon.c (beziergon_move_handle):
3691 * objects/standard/box.c (box_move_handle):
3693 * objects/ER/relationship.c (relationship_move_handle):
3694 * objects/ER/participation.c (participation_move_handle):
3695 * objects/ER/entity.c (entity_move_handle):
3696 * objects/ER/attribute.c (attribute_move_handle):
3698 * lib/polyshape.c (polyshape_move_handle):
3700 * lib/orth_conn.c (orthconn_move_handle):
3702 * lib/neworth_conn.c (neworthconn_move_handle):
3703 * lib/neworth_conn.h:
3704 * lib/element.c (element_move_handle):
3706 * lib/connection.c (connection_move_handle):
3708 * lib/beziershape.c (beziershape_move_handle):
3709 * lib/beziershape.h:
3710 * lib/bezier_conn.c (bezierconn_move_handle):
3711 * lib/bezier_conn.h:
3712 *BINARY COMPATIBILITY CHANGE*
3713 Update prototype for *_move_handle() to include connectionpoint,
3714 and also pass on modifiers. Pass in connectionpoint where
3717 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
3718 file connectionpoint.c.
3720 2003-08-17 Danilo Å egan <dsegan@gmx.net>
3722 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
3724 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
3726 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
3728 * lib/beziershape.c (beziershape_update_data): Autoroute
3729 directions for beziershapes!
3731 * lib/connectionpoint.c (find_slope_directions):
3732 * lib/connectionpoint.h: Function for finding the available
3733 directions on a slope.
3735 * lib/polyshape.c: Reasonable directions for
3738 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
3740 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
3741 * objects/GRAFCET/vergent.c (vergent_update_data):
3742 * objects/GRAFCET/transition.c (transition_update_data):
3743 * objects/GRAFCET/action.c (action_update_data):
3744 * objects/GRAFCET/step.c (step_update_data):
3745 * objects/FS/function.c (function_update_data):
3746 * lib/connpoint_line.c (connpointline_putonaline):
3747 * objects/ER/attribute.c (attribute_update_data):
3748 * objects/ER/entity.c (entity_update_data):
3749 * objects/ER/relationship.c (relationship_update_data):
3750 * objects/chronogram/chronoline.c (chronoline_update_data): Set
3751 directions for connection points.
3753 * objects/UML/component.c (component_create): Set to allow
3756 * app/create_object.c (create_object_button_press):
3757 * app/diagram.[ch] (diagram_find_clicked_object_except):
3758 * lib/diagramdata.[ch] (layer_find_closest_object_except):
3759 Avoid parenting to objects you're connecting to (otherwise you
3760 couldn't make a connection out of a parenting object). To do
3761 this, added functions to find the nearest object except a given
3764 * app/render_libart.c: Rearrange libart include to avoid multiple
3765 include program (and put libart includes inside #ifdef!)
3767 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
3769 * lib/dialibartrenderer.c: Don't include art_config.h if others
3770 also do, as it isn't #ifdef'd.
3772 * objects/flowchart/ellipse.c (ellipse_update_data): Add
3773 directions for connection points.
3775 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
3777 * objects/flowchart/box.c (box_update_data): Add directions, use
3779 (box_load): Use g_malloc0.
3781 * lib/Makefile.am (libdia_la_SOURCES):
3782 * lib/connectionpoint.c (connpoint_update):
3783 Function to call to update a connection point info in _update_data().
3785 * lib/connectionpoint.h: Convenience DIR_ macros.
3787 * app/preferences.c (prefs_data): Make pretty formatted XML the
3790 * lib/dialibartrenderer.c:
3791 * app/render_libart.c: Make sure art_config.h is included, cause
3792 some libart headers are broken.
3794 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
3795 after test. Add freetype-config cflags to cflags variable.
3797 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
3799 * app/authors.h: Credits for Krzysztof.
3801 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
3802 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
3803 than the description) is visible in the title of the properties
3804 dialog. That ought to be a short description (translatable),
3805 though we still want long descriptions for the tooltips. Hmmm...
3807 * configure.in: Updated to use AC_LINK_IFELSE instead of
3808 AC_TRY_COMPILE, also force to link to check libs on Solaris.
3810 * objects/ER/entity.c (entity_load):
3811 * objects/ER/attribute.c (attribute_load):
3812 * lib/attributes.c (attributes_set_default_font):
3813 Check if font is non-null before unreffing.
3815 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
3817 * app/diagram.c (diagram_ungroup_selected)
3818 (diagram_group_selected): Use the undo apply to make sure grouping
3819 and ungrouping is done in consistent manners. This removes a fair
3820 amount of duplicated code from diagram.c.
3822 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
3823 (group_objects_revert, group_objects_apply): Working undo/redo for
3824 diagram tree updates. The initial actions still don't quite work.
3826 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
3828 * app/create_object.c (create_object_button_press):
3830 * app/diagram.c: Undo support for parenting. Uses apply/revert in
3831 undo only for manipulating the parent/child relationships. Things
3832 like removing an object doesn't use the undo functions for
3833 parenting, so any updates to come (like to diagramtree) should be
3836 2003-08-03 Hans Breuer <hans@breuer.org>
3838 * app/create_object.c : minor formating and g_new0 for
3841 * lib/bezier_conn.[hc] lib/beziershape.[hc]
3842 lib/prop_geomtypes.c (prop_geomtypes_register)
3843 objects/standard/bezier.c objects/standard/beziergon.c :
3844 ability to set bezpoints via StdProp api
3846 * plug-ins/python/pydia-property.c : convert list of tuples
3849 * plug-ins/python/diasvg_import.py : use it to
3850 implement part of path parsing. Also minor improvements
3851 like inheritance of group attributes to members,
3852 whitespace, title and style:text/css ignoring ;-)
3854 2003-08-02 Hans Breuer <hans@breuer.org>
3856 * lib/connections.c (connection_move_handle): return
3857 something to make it compile
3858 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
3859 must return a value -> dito
3860 [Is there a warnings-as-errors switch we could use with gcc
3861 to avoid such in future ?]
3863 * plug-ins/python/pydia-object.h : define *_Check macros
3864 * plug-ins/python/diamodule.c : provide dia.group_create()
3865 * plug-ins/python/pydia-diagramdata.c : add
3866 DiaDiagramData.add_layer()
3867 * plug-ins/python/pydia-property.c : allow to set color by
3870 * plug-ins/python/diasvg_import.py : based on the above
3871 implement a) group support, b) rgb(1,2,3) color handling,
3872 and somewhat fishy data:image/png;base64 support (create
3873 temporary files from inline image data)
3874 d) dump the import errors as text into an 'Error' layer
3876 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
3877 stray " in draw_rect and corrected error message formating
3879 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
3880 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
3883 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
3885 * app/magnify.c (create_magnify_tool): allocate with g_new0()
3887 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
3888 preferences values (see bug 118570). Also group items into a GtkFrame.
3890 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
3895 * app/commands.c (objects_unparent_children_callback):
3897 * app/diagram.c (diagram_unparent_selected,
3898 (diagram_update_menu_sensitivity):
3899 Added unparenting of single children.
3901 * lib/bezier_conn.c:
3902 * lib/bezier_conn.h:
3903 * lib/beziershape.c:
3904 * lib/beziershape.h:
3910 * lib/neworth_conn.c:
3911 * lib/neworth_conn.h:
3918 * objects/EML/instantiation.c:
3919 * objects/EML/interaction-ortho.c:
3920 * objects/EML/interaction.c:
3921 * objects/EML/process.c:
3922 * objects/ER/attribute.c:
3923 * objects/ER/entity.c:
3924 * objects/ER/participation.c:
3925 * objects/ER/relationship.c:
3926 * objects/FS/flow-ortho.c:
3927 * objects/FS/flow-poly.c:
3928 * objects/FS/flow.c:
3929 * objects/FS/function.c:
3930 * objects/GRAFCET/action.c:
3931 * objects/GRAFCET/condition.c:
3932 * objects/GRAFCET/step.c:
3933 * objects/GRAFCET/transition.c:
3934 * objects/GRAFCET/vector.c:
3935 * objects/GRAFCET/vergent.c:
3936 * objects/Misc/analog_clock.c:
3937 * objects/SADT/annotation.c:
3938 * objects/SADT/arrow.c:
3939 * objects/SADT/box.c:
3940 * objects/UML/activity.c:
3941 * objects/UML/actor.c:
3942 * objects/UML/association.c:
3943 * objects/UML/branch.c:
3944 * objects/UML/class.c:
3945 * objects/UML/classicon.c:
3946 * objects/UML/component.c:
3947 * objects/UML/constraint.c:
3948 * objects/UML/dependency.c:
3949 * objects/UML/fork.c:
3950 * objects/UML/generalization.c:
3951 * objects/UML/implements.c:
3952 * objects/UML/large_package.c:
3953 * objects/UML/lifeline.c:
3954 * objects/UML/message.c:
3955 * objects/UML/node.c:
3956 * objects/UML/note.c:
3957 * objects/UML/object.c:
3958 * objects/UML/realizes.c:
3959 * objects/UML/small_package.c:
3960 * objects/UML/state.c:
3961 * objects/UML/state_term.c:
3962 * objects/UML/usecase.c:
3963 * objects/chronogram/chronoline.c:
3964 * objects/chronogram/chronoref.c:
3965 * objects/custom/custom_object.c:
3966 * objects/flowchart/box.c:
3967 * objects/flowchart/diamond.c:
3968 * objects/flowchart/ellipse.c:
3969 * objects/flowchart/parallelogram.c:
3970 * objects/network/bus.c:
3971 * objects/network/wanlink.c:
3972 * objects/standard/arc.c:
3973 * objects/standard/bezier.c:
3974 * objects/standard/beziergon.c:
3975 * objects/standard/box.c:
3976 * objects/standard/ellipse.c:
3977 * objects/standard/image.c:
3978 * objects/standard/line.c:
3979 * objects/standard/polygon.c:
3980 * objects/standard/polyline.c:
3981 * objects/standard/textobj.c:
3982 * objects/standard/zigzagline.c:
3983 Binary compatibility update: Added return value for foo_move() and
3984 foo_move_handle(). Orthconn derivatives also returns change from
3985 orthconn_move_handle().
3987 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
3988 doesn't support it yet.
3990 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
3991 Add returning ObjectChange from object moves. Needs to handle
3992 multiple object moves.
3994 * app/modify_tool.c (modify_motion, modify_release): Add
3995 ObjectChange from move & move_handle to undo stack.
3997 * objects/EML/instantiation.c (instantiation_move): Removing
3998 duplicate move & update.
4000 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
4002 * plug-ins/xfig/xfig-export.c: Added support for arrow head
4003 export. Many arrow types not supported by XFig, replacing those
4004 with standard arrows. Not sure whether it'd be better to render
4005 them as a group of lines instead. You'd lose the arrow-ness for
4006 further editing, but preserve the actual shape of it. Also added
4007 support for dash length.
4009 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
4011 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
4012 description for version 3.2, for reference.
4014 * plug-ins/xfig/xfig-import.c: Added import of arrows.
4016 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
4017 Align Vertical Adjacent call _v rather than _h.
4019 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
4021 * app/scroll_tool.c (create_scroll_tool):
4022 * app/modify_tool.c (create_modify_tool): use g_new0() to
4025 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
4027 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
4029 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
4031 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
4033 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
4035 * configure.in: Added Belarusian to ALL_LINGUAS.
4037 2003-07-19 Hans Breuer <hans@breuer.org>
4040 Make the xslt plug-in work on win32, too. It appears
4041 to require a quite recent version of libxml and libxslt,
4042 otherwise windoze pathes aren't translated correctly
4043 during file processing
4046 * plug-ins/xslt/xslt.h : #include <glib.h> before
4049 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
4050 the 'script' file finding similar to how it is done
4051 with the python scripts (no need for hardcoded pathes,
4052 removed the 'plugin' part from the path)
4054 * plug-ins/xslt/stylesheets.xml : added again. It does
4055 not have any path but only the pure filename again
4057 * plug-ins/xslt/stylesheets.xml.in : removed
4059 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
4060 rule to process stylesheets.xml.in
4062 * plug-ins/makefile.msc : added xslt
4064 2003-07-19 Hans Breuer <hans@breuer.org>
4066 Finally Dia learned to remember the recent selected sheet
4068 * app/preferences.[hc] : added prefs.recent_sheet
4069 * app/interface.c : restore and remember the sheet-option-menu
4070 history, but only if the respective number is stiil available.
4071 This additional adds robustness against running Dia without
4072 any sheet (e.g. installation problems)
4073 * app/app_procs.c : call prefs_safe() in app_exit() to remember
4074 changes which are not done by the prefernces dialog
4076 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
4077 removed every call (especially the conditional ones) to prefs_safe().
4078 Before prefs_safe() was called _many_ times during Dia startup
4080 2003-07-18 Hans Breuer <hans@breuer.org>
4082 * app/makefile.msc lib/makefile.msc lib/libdia.def :
4085 * lib/color.c : use gtk_widget_get_default_visual();
4086 as suggested in #114536
4088 * app/interface.c app/disp_callbacks.c :
4089 moved round_up () to the latter file where it is used
4091 * app/linewidth_area.c : #include "interface.h" for
4092 interface_get_toolbox_shell()
4094 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
4096 * plug-ins/pixbuf/.cvsignore
4097 * shapes/Cisco/.cvsignore:
4100 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
4102 * app/dia-props.c (diagram_properties_retrieve): Use
4103 diagram_get_name() to add the diagram name to the diagram
4107 * app/diagram.c (diagram_get_name): New function to get a
4108 reasonable diagram name.
4110 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
4111 info. Still need to be able to set dynamic grid. Also ought to
4112 follow Gnome style and have instant apply.
4114 * app/preferences.h:
4115 * app/preferences.c (prefs_data): Remove option to use stippled
4116 grid, add option for major line offset. Default to 5 minor lines
4118 Add option for dynamically sized grid.
4120 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
4122 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
4123 stippled/solid to display minor/major grid lines. Line drawing in
4124 separate functions away from calculating line distance.
4126 * app/grid.h: Split page break drawing out of grid_draw.
4128 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
4129 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
4130 when menu item is selected.
4132 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
4134 * configure.in: Removed -Winline flag to make way for important
4137 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
4138 non-compressed. Should fix bug #117381, also look prettier.
4141 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
4142 Set up desktop info more properly.
4144 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
4161 Autorouting directions patch from Krzysztof Foltman
4164 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
4165 GNOME parent menu items.
4167 * app/authors.h: Added Vadim to contributors list.
4169 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
4171 * app/commands.[ch]:
4172 * app/create_object.c:
4173 * app/disp_callbacks.[ch]:
4184 * objects/UML/large_package.c: Patch from Vadim Berezniker
4185 <vadim@berezniker.com>:
4186 Objects may "parent" other objects, i.e. contain them within
4187 themselves, restrain them and move them along. Some more stuff is
4188 needed, such as selection and individual unparenting. This adds
4189 parenting to UML - Large Package rather than Box.
4191 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
4193 * app/linewidth_area.c: Patch from Krzysztof Foltman
4194 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
4195 conform more, at least:).
4197 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
4198 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
4199 arcs. Implemented images (though there is some pixelization and
4200 banding in the output). Changed output file format to be a little
4203 * app/app_procs.c (app_exit): Added message for double exit, which
4204 shouldn't happen any more. Also preventing strange g_object_unref
4205 messages by having a printf after gtk_main_quit. This is really
4208 * app/interface.c (toolbox_delete): Avoid double app_exit call by
4209 removing handler for destroy when delete is called.
4211 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
4214 * app/display.c (ddisplay_scroll_to_object,
4215 ddisplay_scroll_center_point): New function for easy scrolling to
4218 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
4220 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
4221 $(srcdir) on stylesheets.xml.
4223 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
4224 diagram menus (since they're at the top by default now). Also
4225 move the Properties... menu item from Dialogs to Objects. Dialogs
4226 menu should disappear at some point.
4228 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
4229 ./configure from ./autogen.sh, as configure may need to be run
4230 from a different directory. (Also more standard this way.)
4232 * app/app_procs.c (app_init):
4233 * app/Makefile.am (INCLUDES): Gnome standardization patch from
4236 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
4238 * objects/flowchart/parallelogram.c (pgram_update_data):
4239 Left/right alignment for parallelograms. Doesn't use all
4240 available space, but then pgrams also ignore their shear value.
4241 This thing needs a loving hand.
4243 2003-07-01 Hans Breuer <hans@breuer.org>
4245 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
4246 * lib/proplist.c : don't complain if optional attr is missing
4247 * lib/orth_conn.h : make "orth_autoroute" optional to
4248 stop complaining with older files.
4250 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
4252 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
4254 2003-06-05 Andrew Halper <ashalper@cox.net>
4256 * app/diagram_tree.c : add scrolling of drawing area
4257 to desired object on "Locate". Patch modified to use new ddisplay
4258 function ddisplay_scroll_to_object().
4260 2003-06-11 Lars Clausen <lars@raeder.dk>
4262 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
4263 info. Before next version, the grid dialog (view dialog, really)
4264 must be redone to allow a) instant apply, b) apply to all
4265 diagrams, and c) setting colour, dynamic, major lines.
4267 * app/preferences.h:
4268 * app/preferences.c (prefs_data): Remove option to use stippled
4269 grid, add option for major line offset. Default to 5 minor lines
4271 Add option for dynamically sized grid.
4273 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
4275 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
4276 stippled/solid to display minor/major grid lines. Line drawing in
4277 separate function away from calculating line distance.
4279 * app/grid.h: Split page break drawing out of grid_draw.
4281 2003-05-15 Hans Breuer <hans@breuer.org>
4283 * plug-ins/python/diasvg.py : add xlink definition,
4284 also avoid to put spaces into attribute values. At least
4285 Sodipodi doesn't like them in width/height attributes
4287 * plug-ins/python/diasvg_import.py : add simple scaling.
4288 Some (more) handling for <svg>, <desc>, <circle>
4290 * plug-ins/python/scascale.py : (new file) which does
4291 some experimental scaling via StdProp api
4293 * plug-ins/python/pydia-cpoint.c
4294 plug-ins/python/pydia-handle.c : return PyDiaPoint for
4295 obj.pos not simple tuples. PyDiaPoint has a tuple interface
4296 so this may even be api compatible ...
4298 2003-05-11 Hans Breuer <hans@breuer.org>
4300 * app/line_area.c : add window position persitence
4302 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
4303 'poly_points' via StdProp api
4304 * lib/neworth_conn.h : don't rely on OrthConn and
4305 NewOrtConn having the same struct offsets
4307 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
4308 to help separating 'useful' properies - in terms of
4311 * objects/custom/custom_object.c
4313 add the missing prop_desc_list_calculate_quarks to
4314 all the *_describe_props()
4316 * objects/standard/beziergon.c objects/standard/bezier.c :
4317 explicit initializtion of default_user_data
4318 * objects/standard/polygon.c objects/standard/polyline.c :
4319 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
4321 * plug-ins/python/diamodule.c : implement dia.register_import
4323 * plug-ins/python/makefile.msc : need to link with Pango
4324 for pango_color_parse()
4326 * plug-ins/python/pydia-property.c : add a bunch of type
4327 conversions to PyDiaProperty_ApllyToObject()
4329 * plug-ins/python/diasvg_import.py : (new file) which currently
4330 is mainly a stress test for PyDia but for some files already
4331 produces better results than svg-import.c
4333 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
4335 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
4336 type-less operations.
4338 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
4340 * configure.in(ALL_LINGUAS): Added "ms".
4342 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
4344 * plug-ins/xslt/xslt.c (xslt_ok):
4345 * plug-ins/shape/shape-export.c (new_shape_renderer):
4346 * plug-ins/svg/render_svg.c (new_svg_renderer):
4347 * plug-ins/hpgl/hpgl.c (export_data):
4348 * plug-ins/dxf/dxf-export.c (export_dxf):
4349 * plug-ins/metapost/render_metapost.c (export_metapost):
4350 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
4351 * plug-ins/xfig/xfig-export.c (export_fig):
4352 * plug-ins/wpg/wpg.c (export_data):
4353 * plug-ins/cgm/cgm.c (export_cgm):
4354 * app/render_eps.c (export_eps):
4355 * app/export_png.c (export_png_ok):
4356 * app/load_save.c (diagram_data_save): Adding and standardizing
4357 output file error messages to include fopen error message.
4359 2003-05-01 Steffen Macke <sdteffen@web.de>
4361 * app/persistence.c: do not use unistd.h for MSVC build
4363 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
4365 * sheets/Assorted.sheet.in
4366 * sheets/Circuit.sheet.in
4367 * sheets/Contact.sheet.in
4368 * sheets/EML.sheet.in
4369 * sheets/ER.sheet.in
4370 * sheets/Electric.sheet.in
4371 * sheets/FS.sheet.in
4372 * sheets/Flowchart.sheet.in
4373 * sheets/GRAFCET.sheet.in
4374 * sheets/Logic.sheet.in
4375 * sheets/MSE.sheet.in
4376 * sheets/Misc.sheet.in
4377 * sheets/Pneumatic.sheet.in
4378 * sheets/SADT.sheet.in
4379 * sheets/SDL.sheet.in
4380 * sheets/UML.sheet.in
4381 * sheets/chronogram.sheet.in
4382 * sheets/ciscohub.sheet.in
4383 * sheets/ciscomisc.sheet.in
4384 * sheets/cisconetwork.sheet.in
4385 * sheets/ciscorouter.sheet.in
4386 * sheets/civil.sheet.in
4387 * sheets/network.sheet.in
4388 * sheets/sybase.sheet.in:
4389 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
4390 standardizes shape descriptions to use no articles, no 'create
4393 * app/interface.c (tool_data): Standard objects follow same
4396 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
4398 * app/color_area.c (color_area_edit): More informative title on
4399 color selection dialog.
4401 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
4402 sensitivity when dropping object in. Also reset tool to pointer.
4404 * objects/flowchart/diamond.c (diamond_update_data):
4405 * objects/flowchart/parallelogram.c (pgram_update_data): Added
4406 left and right alignment options.
4408 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
4410 * objects/flowchart/box.c: Added left and right alignment options.
4412 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
4414 * app/persistence.c (persistence_load): Test existence of
4415 persistence file before trying to open it.
4417 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
4419 * app/properties.c: Escape now closes properties dialogs.
4421 2003-04-25 Hans Breuer <hans@breuer.org>
4423 * app/config.h.win32 : bump version to 0.91+cvs
4425 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
4427 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
4429 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
4432 * app/presistence.c : need to #include "dia_xml_libxml.h"
4435 * app/layer_dialog.c : make delayed creation work by protecting
4436 all non static layer_dialog_*() with :
4437 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
4438 create_layer_dialog();
4439 * app/app_procs.c : removed /* create_layer_dialog(); */
4441 * objects/uml/association.c : give it a minimal StdProp
4442 implementation to fix bug #108896
4443 * lib/object_defaults.c : don't try to copy props if there
4444 is no obj->ops->describe_props
4446 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
4448 * objects/standard/image.c (image_create):
4449 * objects/standard/ellipse.c (ellipse_create):
4450 * objects/standard/box.c (box_create):
4451 * objects/flowchart/ellipse.c (ellipse_create):
4452 * objects/flowchart/diamond.c (diamond_create):
4453 * objects/flowchart/box.c (box_create):
4454 * objects/custom/custom_object.c (custom_create):
4455 * objects/ER/relationship.c (relationship_create):
4456 * objects/ER/entity.c (entity_create):
4457 * objects/ER/attribute.c (attribute_create): Initialize
4458 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
4460 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
4464 * plug-ins/Makefile.am:
4465 * plug-ins/xslt/Makefile.am:
4466 * plug-ins/xslt/xslt.c (dia_plugin_init):
4467 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
4468 automake-style if to only include xslt dir when needed. Works
4469 with automake 1.4 and up, at least.
4471 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
4473 * lib/diasvgrenderer.c (draw_string):
4474 * lib/dia_svg.c (dia_svg_parse_style): Use
4475 text-anchor:(start|middle|end).
4477 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
4478 polygon rather than polyline & avoid missing line pieces.
4479 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
4480 black-filled things.
4482 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
4484 * app/persistence.c (persistence_load): Check that persistence
4485 file exists before trying to read it.
4486 (persistence_update_window): Removed printf.
4488 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
4490 * lib/autoroute.c: Take badness into the layouters again, as some
4491 of them know they can do things that are pretty but would be
4492 counted as ugly by the default calculation.
4494 * objects/UML/large_package.c: Shrink package name box when no
4495 stereotype is present.
4497 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
4498 * lib/orth_conn.c: Added object menu item for autorouting.
4500 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
4501 Autorouting, plus set initial dragging handle to be the end, not
4503 (orthflow_draw): Flipped arrow place to be at the end, as
4504 originally intended (got lost in arrow update).
4506 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
4507 * objects/UML/dependency.c (dependency_get_object_menu):
4508 * objects/UML/association.c (association_get_object_menu):
4509 * objects/UML/realizes.c (realizes_get_object_menu):
4510 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
4511 * objects/GRAFCET/vector.c (arc_get_object_menu):
4512 * objects/ER/participation.c (participation_get_object_menu):
4513 * objects/EML/instantiation.c (instantiation_get_object_menu):
4514 * objects/UML/generalization.c (generalization_get_object_menu):
4515 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
4516 Autorouting setup (currently disabled for SADT/arrow).
4518 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
4520 * lib/autoroute.c: Removed printfs.
4523 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
4524 non-connected orthconns too.
4526 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
4529 * lib/orth_conn.c: Function to set autorouting on/off, use
4530 autorouting in move_handle (turns off when a middle handle is
4531 moved), added to standard orthconn props.
4533 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
4534 Stopped signal emission for check menu items being set to on/off.
4536 * objects/standard/zigzagline.c: Added autorouting object menu item.
4538 * lib/autoroute.c: Added last cases of autoroute layout, fixed
4539 floating point comparison bug, cleaned up layouters, tweaked
4540 badness to allow kinks.
4542 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
4544 * lib/connectionpoint.h: Changed DIR_* macros to go around the
4547 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
4549 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
4550 old cruft, added call to autoroute (currently cannot be turned
4551 off). Need to check what undo thinks about this.
4552 * lib/autoroute.[ch]: Fairly working simple layout.
4554 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
4555 * lib/autoroute.[ch]: Start of proper autorouting functionality.
4557 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
4559 * lib/prop_widgets.c: Show labels on ListProp.
4561 2003-04-11 Steffen Macke <sdteffen@web.de>
4563 * doc/en/dia-manual.xml: removed reference of non-existing authors
4565 * doc/en/usage-objects-selecting: commented out misleading section
4568 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
4570 * app/app_procs.c (app_init): Layer window now opened at startup
4573 * lib/prop_widgets.c: Show labels on ListProp.
4575 2003-04-09 Steffen Macke <sdteffen@web.de>
4577 * doc/en/*.sgml: removed files
4578 * doc/en/*.xml: added files
4579 * doc/en/Makefile.am: switched to XML DocBook
4581 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
4583 * plug-ins/xslt/xslt.c (dia_plugin_init):
4584 * configure.in: Added --with-xslt-prefix to allow other XSLT
4585 placements than /usr/lib.
4587 2003-04-09 Steffen Macke <sdteffen@web.de>
4589 * lib/makefile.mingw: updated to include latest files, including
4591 * lib/geometry.h: don't define isinf and finite for mingw gcc build
4593 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
4595 * app/persistence.h:
4596 * app/persistence.c (persistence_register_window_create):
4597 * app/app_procs.c (app_init):
4598 Register window function that doesn't create the window unless it
4599 should be open. Other windows should move to this, so startup
4600 speed can be reduced.
4602 * app/persistence.h: Removed call prototype for update_window, now
4604 * app/persistence.c (persistence_register_window): A number of
4605 fixes. Doesn't forget position when window is closed. Now
4606 actually loads prefs.
4608 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
4611 * app/preferences.c (prefs_data):
4612 * app/diagram_tree_window.h:
4613 * app/diagram_tree_window.c: Added persistence registering.
4614 Removed prefs items storing size and openness.
4616 * app/sheets_dialog.c (create_sheets_main_dialog): Added
4617 persistence registering.
4619 * app/Makefile.am (dia_core_files): Added persistence files.
4622 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
4623 that dirs are present.
4625 * app/app_procs.c (app_init): Loads persistent values on startup.
4626 (app_exit): Saves persistent values on exit.
4628 * app/layer_dialog.c (create_layer_dialog): Registers the layer
4629 window for persistence.
4631 * app/persistence.[ch]: New files handling various kinds of
4634 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
4636 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
4637 head spacing calculations. Added half-circle arrow from Matthieu
4638 Sozeau <mattam@netcourrier.com>
4640 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
4642 * app/app_procs.c (app_init): Moved layer dialog init to allow
4643 tooltips to be initialized.
4645 * app/interface.c (create_display_shell): More tooltips.
4647 * app/linewidth_area.c (linewidth_area_create)
4648 (linewidth_area_events):
4649 * app/color_area.c (color_area_events, color_area_create):
4650 Made tooltips work by embedding drawing_area in event_box.
4652 * app/interface.c (create_display_shell,
4653 (create_lineprops_area, create_color_area): Added a few tooltips.
4655 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
4657 * app/pixmaps/off-grid.xpm:
4658 * app/pixmaps/on-grid.xpm:
4659 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
4662 * app/commands.c (view_snap_to_grid_callback):
4663 * app/display.c (ddisplay_set_snap_to_grid)
4664 (update_snap_grid_status):
4665 * app/interface.c (create_display_shell, grid_toggle_snap):
4666 Added snap-to-grid status button.
4668 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
4670 * app/app_procs.c (app_init): Create a new diagram if a file on
4671 the command line isn't found.
4673 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
4675 * lib/dialibartrenderer.c (draw_string): Correct color handling
4678 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
4681 * doc/en/dia-manual.sgml:
4682 * doc/pl/dia-manual.sgml:
4684 * dia.spec (Release):
4685 Version 0.91 is here!
4687 2003-02-10 Steffen Macke <sdteffen@web.de>
4689 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
4690 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
4691 non-ANSI characters, closes #107980
4693 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
4697 * dia.spec (Release):
4698 * doc/en/dia-manual.sgml: Upping to pre6.
4700 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
4702 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
4703 #107511: Make arrow selector for correct arrow type.
4705 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
4707 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
4710 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
4712 * doc/en/dia-manual.sgml:
4715 * dia.spec (Release): Upping to pre5.
4717 * configure.in: Add freetype-config derived libs to the
4718 AC_CHECK_LIB statement for freetype.
4720 2003-02-28 Hans Breuer <hans@breuer.org>
4722 [fix for bug #107203]
4724 * lib/diarenderer.c : add warning 'implementation'
4725 for fill_rect to avoid crashing with a renderer
4726 which does not implement this required function.
4728 * plug-ins/dxf/dxf-export.c : provide - still empty -
4729 'implementations' for fill_rect and fill_polygon
4730 to suppress the above warnings. Now it works like
4733 2003-02-28 Steffen Macke <sdteffen@web.de>
4735 * samples/all_objects.dia: New sheet containing all dia shapes
4736 and objects; one layer per sheet
4738 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
4740 * lib/prop_text.c (multistringprop_get_widget,
4741 multistringprop_reset_widget, multistringprop_set_from_widget):
4742 Now uses GtkTextView instead of deprecated stuff, and also works:)
4744 * configure.in: Slightly more informative error message for isinf.
4746 * dia.spec (Requires): Require libxml2 rather than libxml.
4748 2003-02-28 Steffen Macke <sdteffen@web.de>
4750 * shapes/Circuit/hjumper.png:
4751 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
4754 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
4756 * doc/en/dia-manual.sgml:
4758 * dia.spec (Release):
4759 * NEWS: New prerelease 0.91pre4, two important fixes.
4761 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
4763 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
4766 * app/commands.c (help_manual_callback): More correct URL for help
4767 page (include file://, was broken on Dillo without it).
4769 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
4771 * app/disp_callbacks.c: Set modifed when text is changed.
4773 * app/modify_tool.c (modify_button_release): Allow undo for moving
4776 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
4779 * doc/en/dia-manual.sgml:
4781 * configure.in: New prerelease with important bugfix.
4782 * shapes/network/digitizing_board.png:
4783 * shapes/network/plotter.png: Re-adding with -kb.
4785 2003-02-17 Abel Cheung <maddog@linux.org.hk>
4787 * app/app_procs.c (app_init): Add comment for translators.
4789 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
4791 * lib/filter.c (filter_register_import, filter_register_export):
4792 Don't accept filters with NULL description.
4794 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
4795 (as we assume the description is available in other places).
4797 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
4799 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
4800 * app/display.c (ddisplay_resize_canvas): Use
4801 ddisplay_add_update_all().
4802 (ddisplay_add_update_all): Free display and update lists when
4803 doing update_all, as they'll be regenerated immediately to cover
4804 all visible area. Fixes bug #106165, crash when resizing. This
4805 appears to be the original AA crash bug, believed long extinct.
4807 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
4809 * app/commands.c (help_manual_callback): Use file: protocol for
4812 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
4814 * plug-ins/xslt/stylesheets: Removed old-style config file.
4816 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
4818 * plug-ins/xslt/Makefile.am:
4819 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
4820 handling (no more DIA_PLUGIN_PATH).
4822 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
4824 * plug-ins/svg/render_svg.c:
4825 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
4827 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
4829 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
4830 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
4831 side of the triangle is longer than the hypotenuse. Rounding
4834 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
4838 * doc/en/dia-manual.sgml: Update for pre2.
4840 * app/menus.c (display_menu_items): Fixed wrongly place separators.
4842 * objects/flowchart/box.c (box_update_data): Applied patch from
4843 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
4846 * app/paginate_psprint.c (print_page): Set paper name, so it
4847 convinces ps printers to use to right size.
4849 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
4851 * app/properties.c (properties_show): Hide the dialog if the
4852 object is NULL (get rid of 'no properties' randomly popping up).
4854 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
4856 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
4857 for diagrams not starting at origo.
4859 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
4861 * dia.spec (BuildRequires): Use libxml2-devel.
4863 * plug-ins/pixbuf/Makefile.am: Added to CVS.
4865 * RELEASE-PROCESS: Note on RPM version numbers.
4867 * app/interface.c (create_display_shell): Don't set as toolbar
4868 under Unix, either. Especially not the diagram shell. It removes
4869 it from the taskbar and makes it unresizable, always-on-top with
4870 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
4871 appropriate thing, UTILITY, is not good either, you lose resizing
4872 and minimizing/maximizing under OpenBox.
4874 * app/menus.c (display_menu_items): Set delete item to use Delete.
4876 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
4878 * dia.spec (BuildRequires, Requires): Updated for Gtk2
4881 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
4882 display flush when getting focus in, or we may get an update after
4883 the diagram has been destroyed in some cases. Fixes bug #105221.
4885 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
4887 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
4889 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
4890 - gnome-compiled Dia will now read files specified on the command line.
4892 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
4894 * INSTALL (REQUIREMENTS): Updated requirements section.
4896 * configure.in: Better finite() check from MÃ¥rten Svantesson
4897 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
4900 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
4902 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
4904 * app/app_procs.c (debug_break): Added some code to avoid
4905 over-eager optimizations removing the call. Surely there's a
4906 nicer way, but I'm not sure how.
4908 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
4909 that set text to black.
4911 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
4913 * NEWS: Mention of Twiki as doc source for Python.
4915 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
4916 libart/libpng is not available. Later when we have a way of
4917 letting the user pick options in the file select dialog we shall
4918 allow the choice when applicable.
4920 2003-02-02 Steffen Macke <sdteffen@web.de>
4922 * doc/en/usage-loadsave.sgml:
4923 * doc/en/usage-objects.sgml: patch from
4924 James K. Lowden <jklowden@schemamania.org> to fix
4927 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
4929 * plug-ins/Makefile.am (SUBDIRS):
4930 * plug-ins/pixbuf/pixbuf.c:
4931 * plug-ins/pixbuf/Makefile.am:
4933 Added pixbuf plugin to Makefile.am, but for import only. PNG
4934 export handled by libart, which is better. JPG export is
4935 discouraged. BMP is not much used on Unix. Next release will
4936 integrate libart to allow all outputs.
4938 2003-02-01 Hans Breuer <hans@breuer.org>
4940 * app/preferences.c :
4942 the last two dialogs with 'old' button order finally
4943 are converted to gtk2, no GnomeDialog in all of Dia
4946 2003-02-01 Hans Breuer <hans@breuer.org>
4948 * app/filedlg.c : don't try to use a button as
4949 'overwrite-file-dialog'-parent, use the FileSelDialog
4952 * plug-ins/pixbuf/pixbuf.c : make it work with
4953 system-visual-depth < 24. Remove 'bmp' from output
4954 format extensions, it just was wishful thinking.
4956 * plug-ins/python/Makefile.am : added the four new python
4957 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
4959 2003-02-01 Hans Breuer <hans@breuer.org>
4961 * NEWS : updated content beside dependencies
4963 2003-02-01 Hans Breuer <hans@breuer.org>
4965 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
4966 to make it useable across DLL boundaries
4967 * app/lineprops_area.c : same code to access arrow_types
4970 * objects/UML/class.c : the non empty string is e.g.
4971 comment != NULL && comment[0] != '\0'
4972 * objects/UML/uml.c : same here, don't bother with
4973 empty operation stereotypes
4975 2003-02-01 Steffen Macke <sdteffen@web.de>
4977 * app/lineprops_area.c: latest changes do not work on
4978 windows, using old code without tooltips
4979 * makefile.msc: fixed copying of wmf.dll
4980 * plug-ins/makefile.msc:
4982 * lib/makefile.msc: now linking libintl
4983 * config.h.win32: enabling native language support
4985 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
4987 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
4988 -ldl and -lglib. May or may not work on windows...awaiting verdict.
4990 2003-01-31 Daniel Yacob <locales@geez.org>
4992 * configure.in: Added am (Amharic) to ALL_LINGUAS.
4994 2003-01-31 Steffen Macke <sdteffen@web.de>
4996 * objects/UML/class.c (umlclass_calculate_data): fixed crash
4997 when comments were visible, no class comment available and
5000 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
5002 * RELEASE-PROCESS: Updated to fit new install-module syntax.
5003 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
5006 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
5012 Prerelease version changes, version 0.91-pre1.
5014 * app/sheets_dialog_callbacks.h:
5015 * app/sheets_dialog_callbacks.c:
5016 * app/sheets_dialog.c (create_sheets_main_dialog):
5017 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
5018 to handle destruction of main dialog cleanly, but it's a mess.
5020 * configure.in: Downgraded ieeefp test to make it not produce
5023 * lib/widgets.c (dia_arrow_selector_set_arrow):
5024 (dia_line_style_selector_set_linestyle): Select menu dot
5027 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
5028 adjustment for diamondheads.
5030 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
5032 * app/properties.c (create_dialog): Destroy properties dialog and
5035 * app/sheets_dialog_callbacks.c
5036 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
5037 if the old one is destroyed.
5039 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
5041 * app/export_png.c (export_png_ok): Added info on resolution.
5042 Should (next release) improve export dialog to allow setting
5043 resolution instead of pixels.
5045 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
5046 to generate arrowheads as well as tooltips.
5048 * lib/arrows.c: Added hollow diamond to menudesc list.
5051 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
5052 unify with rendered menu.
5054 * lib/diarenderer.c (draw_line_with_arrows)
5055 (draw_polyline_with_arrows, draw_arc_with_arrows)
5056 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
5057 without changing renderer API. Thanks to David Scherba for
5058 providing inspiration.
5060 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
5062 * app/interface.c (create_display_shell):
5063 * app/display.h: Patching from Hubert Figuiere
5064 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
5067 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
5069 * app/defaults.c (defaults_show): Fixed defaults closing bug.
5070 Thanks to Hans for pointing it out.
5072 2003-01-25 Hans Breuer <hans@breuer.org>
5074 * app/commands.c : don't warn about crashing libart renderer
5075 on win32. It simply doesn't render text anymore :-(
5077 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
5079 * objects/UML/class.c : don't access umlclass->properties_dialog
5080 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
5081 which sets the former to NULL by destroy_properties_dialog() callback.
5083 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
5085 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
5087 * plug-ins/python/pydia-image.c : add image.uri member
5088 not only useful for SVG rendering
5090 * plug-ins/python/diasvg.py : (new file) a more advanced
5091 example. A full blown SVG Renderer, currently only
5092 registered for .svgz
5094 * plug-ins/python/export-object.py : write text props
5096 * plug-ins/python/debug_objects.py : write prop.type and
5099 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
5101 * objects/UML/association.c (association_update_data): Better
5102 bounding box for assoc with arrows.
5104 * lib/properties.h: New flag for properties with multiple values
5107 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
5108 arrow updating in dialog. Was broken due to changes from destroy
5111 * app/commands.c (view_aa_callback): AA warning only for Windows
5112 -- I trust the Unix side well enough.
5114 * app/render_libart.c (get_text_width):
5115 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
5116 font height can be taken from parent instance.
5118 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
5119 (get_text_width): Proper cursor positioning for libart renderer.
5120 Ought to have a DiaInteractiveRenderer that these two can inherit
5121 from, that knows about transform.
5123 2003-01-25 Steffen Macke <sdteffen@web.de>
5125 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
5126 plug-in still not working on win32
5128 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
5130 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
5131 gdk_window_get_pointer to avoid destroy crash. Simpler than I
5134 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
5136 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
5137 bail out on gtk options.
5139 * lib/message.c (gtk_message_internal): Better handling of destroy
5142 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
5144 * app/color_area.c (color_area_edit):
5145 * lib/widgets.c (dia_file_selector_browse_pressed)
5146 (dia_color_selector_pressed):
5147 * app/plugin-manager.c (get_plugin_manager):
5148 * app/filedlg.c (file_open_callback, file_save_as_callback)
5149 (file_export_callback):
5150 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
5151 handling of destroy event.
5153 2003-01-22 Alan Horkan <horkana@tcd.ie>
5155 * app/commands.c (file_new_callback): Changed Untitled to Diagram
5158 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
5160 * app/preferences.c (prefs_create_dialog):
5161 * app/linewidth_area.c (linewidth_create_dialog):
5162 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
5163 * app/layer_dialog.c (create_layer_dialog)
5164 (layer_dialog_edit_layer): Correct handling of destroy signal.
5166 * app/diapsft2renderer.c (set_font): Adjust silly random factor
5167 for change in font.c
5169 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
5171 * lib/font.c (dia_font_build_layout): Let's all use the same weird
5174 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
5175 * app/layer_dialog.c (create_layer_dialog)
5176 (layer_dialog_edit_layer):
5177 * app/filedlg.c (file_open_callback, file_save_as_callback)
5178 (file_export_callback):
5179 * app/dia-props.c (create_diagram_properties_dialog):
5180 * app/defaults.c (defaults_dialog_destroyed):
5181 * app/color_area.c (color_area_edit): Dialog destroy event handling.
5183 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
5185 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
5186 defaults dialog destroyed.
5188 2003-01-19 Steffen Macke <sdteffen@web.de>
5190 * objects/makefile.msc: added bondgraph
5191 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
5192 to compile pixbuf.dll
5193 * makefile.msc: copying all objects and dlls now
5195 2003-01-19 Hans Breuer <hans@breuer.org>
5197 * app/diagram.[hc] : provide dia_open_diagrams(), make
5198 open_diagrams variable static
5199 * app/dia.def : export it (to be used by PyDia)
5200 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
5201 app/display.c app/dynamic_refresh.c app/layer_dialog.c
5202 app/load_save.c : make use of dia_open_diagrams()
5204 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
5205 on win32. It removes the diagram window from the taskbar and
5206 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
5208 * app/menus.c : add '...' to menu entries where a dialog
5210 * app/recent_files.c app/dia_embedd.c : reflect the above in
5211 menus_get_item_from_path() calls
5213 * lib/libdia.def : add dia_image_rgba_data
5215 * lib/properties.h lib/prop_text.[hc] : add new property
5217 * objects/UML/class.[hc] object/UML/class_dialog.c : use
5218 StringList for attributes_strings and operations_strings to
5219 make this calculated data accessible via the Property API
5221 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
5222 provide dia.new() to create a new diagram, dia.registered_types()
5223 to get on Dia's type registry, dia.message() for simple dialogs
5225 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
5226 to create a new display from a diagram. Let diagram.extents and
5227 diagram.bg_color return the same types as in diagramdata.*
5229 * plug-ins/python/pydia-geometry.c : add a read-only
5230 'sequence interface' to DiaPoint and DiaRectangle
5232 * plug-ins/python/pydia-property.c : allow to get on StringList
5235 * plug-ins/python/pydia-render.c : fix typo to make it compile
5237 * plug-ins/python/python-startup.py : removed 'import pygtk'
5238 again. This file does not need any gtk UI, and some python
5239 plug-ins don't do either
5241 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
5242 it should actually work as intended again
5244 * plug-ins/python/group_props.py : (new file) a prototype for
5245 one the most requested features: Change properties of selected
5246 objects in one step. Requires pygtk.
5248 * plug-ins/python/select_by.py : (new file) select objects by
5249 common properties. Requires pygtk.
5251 [Start of 'PyDia Self Documentation Series']
5253 * plug-ins/python/pydiadoc.py : (new file) generates a new
5254 diagram which contains all objects of dir(dia)
5256 * plug-ins/python/otypes.py : (new file) generates a new diagram
5257 which contains all the currently registered object types sorted
5258 by their containing package
5260 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
5262 * configure.in: Added check for Pango >= 1.1.5, which appears to
5263 be enough to have text work.
5264 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
5265 do it. AC_SUBST should be idempotent, though.
5267 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
5269 * configure.in (HAVE_FREETYPE): Better test for freetype version
5271 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
5273 * lib/font.c: Renamed global_size_one to global_zoom_factor to
5274 avoid confusion, and added comment. Set scale factor in
5275 dia_font_build_layout to 1.0 for Unix side. This fixes at least
5276 my weird scaling problems. Fonts are now of the expectable size,
5277 i.e. the space between lines at size 1.0 is 1.0. If we want a
5278 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
5279 diagrams, though there will always be differences.
5281 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
5283 * plug-ins/python/python-startup.py:
5284 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
5286 * plug-ins/python/python.c (dia_plugin_init): Added warning
5287 message for missing startup file.
5289 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
5291 * lib/dia_image.c (dia_image_rgb_data):
5292 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
5293 involving EPS. Can't do transparency in EPS yet.
5296 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
5297 data as one chunk. Documentation for the RGB data getting funcs.
5298 (dia_image_rgb_data): Added comment.
5300 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
5303 2003-01-13 Steffen Macke <sdteffen@web.de>
5305 * lib/dia_image.c: dia_image_rgb_data() is working for
5306 non-alpha images now. Fixes #93762
5307 * Makefile.am: added makefile.msc to EXTRA_DIST
5309 2003-01-10 Steffen Macke <sdteffen@web.de>
5311 * app/paginate_psprint.c: Closing print dialog when file
5312 could not be written. Fixes #84746
5314 2003-01-04 Steffen Macke <sdteffen@web.de>
5316 * doc/custom-shapes: incomplete description of <svg:text>
5318 2003-01-03 Steffen Macke <sdteffen@web.de>
5320 * makefile.msc(new): new makefile to create file
5321 structure suitable for running dia win32 under
5322 $(TOP)/dia/build/win32
5324 2003-01-02 Steffen Macke <sdteffen@web.de>
5326 * lib/dia_svg.c: including stdlib.h
5327 * lib/makefile.msc: added gdk_pixbuf libs to linker
5328 * app/makefile.msc: added gdk_pixbuf libs, made libart
5329 libs compatible with gnuwin32 package
5331 2003-01-01 Hans Breuer <hans@breuer.org>
5333 * lib/font.c : more comment about global_size_one
5335 * app/menus.c : <control>[<shift>]A for plain gtk build too.
5337 * plug-ins/wmf/wmf.cpp : some type juggling to make
5340 2002-12-31 Steffen Macke <sdteffen@web.de>
5342 * app/makefile.msc: added hint on how to enable console output
5344 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
5346 * objects/standard/textobj.c (textobj_load): Get the handle type
5347 right, at least to be the same as when created.
5349 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
5351 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
5353 2002-12-08 Hans Breuer <hans@breuer.org>
5355 * app/commands.c : fixed bug #85315 'give diagram properties,
5356 instead of no object selected error' almost a one-liner
5358 * app/splash.c : don't make having the logo pixmap
5359 mandatory. Fixes bug #96068.
5361 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
5362 sequence by connecting to the "delete_event"
5363 * app/objects/uml/class_dialog.c : handle "destroy" for
5366 * lib/libdia.def : remove diaXmlNewChild again
5368 * app/paginate_gdiprint.cpp : reflect Dia's page setting
5369 portrait/landscape in the windoze print dialog
5371 * objects/makefile.msc : only UML needs to link against
5372 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
5374 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
5376 * objects/standard/ellipse.c (ellipse_distance_from):
5377 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
5378 correct distance function. Could be faster, but it's not really
5381 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
5383 * lib/font.c: Changed global_size_one to more correct 28.35.
5388 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
5391 2002-12-07 Hans Breuer <hans@breuer.org>
5393 * lib/widgets.c : g_file_get_contents() silently assumes
5394 a binary file. Reflect when creating the font_menu file
5395 to get rid of junk in font menus
5397 2002-12-06 Hans Breuer <hans@breuer.org>
5399 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
5400 removed 0xD 0xD 0xA line ends which get created by
5401 cvs if windoze line ends 0xD 0xA are checked in from
5402 *nix and checked out on win32.
5404 * app/preferences.c : changed toolbox_on_top default to
5405 false. It is currently not possible to change the behaviour
5406 at runtime, at least not on win32.
5408 * lib/dialibartrenderer.c : bug #94791 'rendering to
5409 bitmap without PangoFt2' got delayed to milestone future
5410 so wrap libart text rendering into PANGO_WIN32_FUTURE.
5411 It is not available without my Pango patch in bugzilla.
5413 * lib/font.c : added comment to global_size_one and adapt
5414 the arbitrary size scaling in dia_font_build_layout() for
5415 win32, too. This is needed to get an acceptable font size
5416 approximation for Dia 0.90 and earlier files.
5417 Also #include "message.h".
5419 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
5420 reflect movement of group.[hc]
5421 * lib/group.h : export group_type which gets used by app/*
5423 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
5424 to get the GtkTypeInfo definition
5426 * plug-ins/makefile.msc : dxf and xfig don't need to link
5427 against app/ anymore now that group is moved to lib/
5429 * plug-ins/python/pydia-render.c : remove massive leaking
5430 of self, i.e. PyDiaRenderer
5432 * plug-ins/python/makefile.msc : remove linking against
5435 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
5437 * objects/standard/line.c: Removed properties options for gaps,
5438 until release is done.
5440 * configure.in: Check for freetype version.
5442 * lib/text.c (text_insert_char): Fixed small buffer overflow for
5445 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
5447 * app/diapsft2renderer.h:
5448 * app/diapsft2renderer.c:
5449 * app/diapsrenderer.h:
5450 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
5452 * app/render_eps.c (export_eps, new_psprint_renderer): Using
5453 PS_FT2 renderer when available. Old render stuff killed. Yay!
5455 * lib/properties.h: Fixed bad frame end def.
5457 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
5459 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
5461 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
5463 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
5465 * lib/font.c: Now checking for the proper dia-style standard fonts.
5468 * app/Makefile.am: Moving group.[ch]
5470 * plug-ins/dxf/dxf-import.c:
5471 * plug-ins/xfig/xfig-import.c:
5472 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
5476 * lib/object.c (object_list_move_delta, object_copy_list):
5477 * lib/object.h: Moved some object-related functions from
5478 object_ops to object to assist moving group.c.
5480 * lib/diatypes.h: Added Group typedef.
5483 * lib/group.c: Moved from app to lib to a) resolve plug-ins
5484 references, and b) make groups more "real" objects.
5486 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
5488 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
5490 * lib/font.c (dia_font_init): Added check that the three standard
5493 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
5496 * app/load_save.c: Linebreaks in dia files, no indentation.
5497 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
5500 * objects/standard/line.c: Small but important fixes to the line
5504 * lib/dia_xml.c (diaXmlNewChild):
5505 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
5506 XML prettyprinting wrapper.
5508 2002-12-03 Steffen Macke <sdteffen@web.de>
5510 * shapes/Cisco/Makefile.am:
5511 * shapes/Cisco/*.shape: finished conversion of Cisco icons
5514 2002-12-02 Steffen Macke <sdteffen@web.de>
5516 * doc/en/Makefile.am:
5517 * doc/en/usage-objects.sgml:
5518 * doc/en/graphics/line_icon.png: (new) added line icon
5520 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
5522 * objects/standard/line.c: Binary search object edge line gap.
5524 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
5526 * configure.in: Added Cisco makefile, sorted Makefiles list.
5528 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
5530 * configure.in: Now checks for availability of PangoFT2 and
5531 FreeType, raising an error if not found.
5533 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
5536 2002-12-01 Steffen Macke <sdteffen@web.de>
5538 * doc/en/usage-loadsave.sgml: updated information on import
5541 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
5543 * app/commands.c (edit_copy_callback): Freeing copy_list.
5545 2002-11-28 Steffen Macke <sdteffen@web.de>
5547 * app/render_libart.c: art_config.h was included twice
5549 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
5551 * sheets/.cvsignore: More ignorance.
5553 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
5555 * lib/prop_widgets.h: Two (currently unused) settings for frame
5558 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
5559 (by default) foldable.
5561 * lib/propinternals.h:
5562 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
5563 widgets in a more controlled manner.
5565 * objects/standard/line.c (line_update_data): Line gap things
5566 inserted. Can do xeyes now:)
5568 2002-11-26 Christian Neumair <chris@gnome-de.org>
5570 * .cvsignore: Changed.
5571 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
5572 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
5575 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
5577 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
5579 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
5580 passing to font hash.
5582 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
5583 utf-8 or locale-convertible before adding to dialog text. This
5584 probably needs done in a number of places where we get text from
5585 the environment and send it to GTK to display.
5587 * lib/widgets.c: Fixed case problems for font menu entries.
5589 * objects/SADT/annotation.c: Don't run the event test (but leave
5590 it here for inspiration).
5593 * lib/widgets.h: Allowing setting preview text for fonts.
5595 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
5597 * objects/bondgraph/Makefile.am:
5598 * objects/bondgraph/bondgraph.c:
5600 * objects/Makefile.am: Added bond graph dir.
5602 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
5604 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
5606 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
5608 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
5611 * app/diapsrenderer.c: Freetype rendering is back in force.
5613 * app/disp_callbacks.c: Added missing updates for pre-text-change.
5615 2002-11-25 David Hoover <jazzdaq@yahoo.com>
5617 * app/render_libart.c: Added missing #include line for libart.
5620 * lib/geometry.c: Added point_convex function. This computes
5621 points inside a line segment (0 <= alpha <= 1) or outside the
5622 line segment (alpha < 0 | alpha > 1).
5624 * objects/standard/line.c: Line now has additional code/attributes
5625 which permit the line to extend past the line anchors (gap < 0) or
5626 leave a gap without reaching the anchor (gap > 0). If no gap is
5627 specified, the default gap of 0 will result in identical line
5628 behavior as before. If the 'fractional' attributes are TRUE, the
5629 gap length is not fixed, but a percentage of the line length. I
5630 did not know how create the GTK widgets so the gap code currently
5631 cannot be used without adding XML attributes by hand.
5633 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
5635 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
5637 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
5639 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
5641 * lib/font.c: Debugging functionality in separate functions.
5643 * lib/widgets.c: Using fontsel with context.
5645 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
5647 * objects/custom/custom_object.c: Orientation handling for shapes,
5648 patch thanks to Martin Hans <opfinder@gmx.net>.
5650 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
5651 work on even better orientation handling.
5653 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
5654 casting NULL pointers. Should be unnecessary in an upcoming GTK
5657 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
5661 * lib/widgets.c: Now uses correct context to get font families.
5663 * lib/diagdkrenderer.c (get_text_width, draw_string):
5664 * lib/dialibartrenderer.c (draw_string):
5666 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
5667 (dia_font_build_layout): Unified the twiddle factors into a use of
5668 global_size_one. But I deeply distrust Pango for seeming to
5669 change size of fonts every time I turn my back.
5674 * app/menus.h: Updated some more methods to also be more specific
5678 * app/recent_files.c:
5679 Changed to return most specific type, to avoid run-time type errors.
5681 * app/menus.c (menus_get_item_from_path): Non-gnome version now
5682 gets menu_item rather than widget, which works better.
5684 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
5686 * app/display.c: (new_display):
5687 * app/menus.c: (menus_get_item_from_path):
5688 Relying on the tearoff to locate the input methods menu wasn't a
5689 good idea: tearoffs seem to be an endangered species nowadays.
5690 Anyway, the IM menu seems to be working now.
5692 * app/interface.c: hinted the window manager that the toolbox window
5693 is a toolbox window. Not that my (fairly default configuration)
5694 sawfish cares, but other NETWM compliant WMs may.
5701 * app/layer_dialog.c:
5702 * app/linewidth_area.c:
5704 * app/sheets_dialog.c:
5707 The GTK doc says to avoir gtk_window_set_wmclass() and
5708 gtk_window_set_policy(), and use gtk_window_set_role() and
5709 gtk_window_set_resizable(), respectively.
5711 * app/preferences.c: (prefs_create_dialog):
5712 * app/preferences.h:
5713 * app/display.c: (display_set_active):
5714 Added a preference to have the toolbox hover over diagram windows.
5716 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
5718 * lib/diagdkrenderer.c (get_text_width, draw_string):
5719 Freetype-based string drawing now works. Not very fast, though.
5720 I wish I could use the graphics card for this:( I'm doing three
5721 bitmap loops where I should be doing one. The size is not correct
5722 either, despite having get_text_width give the right thing.
5724 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
5726 * app/connectionpoint_ops.c (diagram_update_connections_object):
5727 Allows more than one connectionpoint on an object to be moved at a
5730 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
5732 * configure.in: Added cs to ALL_LINGUAS.
5734 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
5736 * app/paginate_psprint.c: Removed unnecessary decl of autosave
5739 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
5741 * app/export_png.c (export_png_ok): Saving more variables from the
5744 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
5746 * lib/dialibartrenderer.c (begin_render):
5747 (end_render): Correct pushing and popping of font contexts.
5748 (draw_string): Double zooming eliminated, strange twiddle factor
5749 introduced (grumble). Close to working now, but there are still
5750 strange differences from font to font. In particular, some fonts
5751 really mess with the cursor and extents.
5753 * app/render_eps.c (export_eps):
5754 * app/diapsrenderer.c (dia_ps_renderer_finalize):
5755 Fixed file closing confusion, no longer dependent on PS/EPS.
5757 * app/diagram.c (diagram_place_down_selected)
5758 (diagram_place_up_selected): Now implemented.
5760 * lib/font.c (dia_font_init):
5762 Redesigned the font init/context pushing code. Start of fix for
5763 font name differences.
5765 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
5767 * app/sheets_dialog_callbacks.c: Fix a typo.
5769 2002-10-15 Hans Breuer <hans@breuer.org>
5771 * app/diapsrenderer.[hc] : (new files, old content :-)
5772 simple base class for post script rendering. Does neither
5773 use Pango/FT2 nor does it handle non latin1 characters.
5774 The fancy stuff which nowadays appears to be needed should
5775 probably be done in derived class(es)
5777 * app/makefile.msc app/Makefile.am : added new files
5779 * app/paginate_psrint.c : re-enabled and used as test
5780 for the simple ps renderer above.
5782 * app/render_eps.[hc] : ripped out common ps code and
5783 moved to DiaPsRenderer. The rest of the file is mostly
5784 disabled. And I don't understand enough of it to
5787 * app/diaepsrenderer.h : short lived, removed.
5789 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
5791 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
5792 as a plugin (thanks to Torben Nielsen).
5794 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
5796 * app/diaepsrenderer.h:
5798 * app/paginate_psprint.c:
5799 #ifdef'd out enough ps stuff to allow compile. Now we just need
5802 2002-10-12 Hans Breuer <hans@breuer.org>
5804 [last plug-in ported]
5806 * plug-ins/xfig/xfig-export.c : ported to new renderer api
5808 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
5809 scale color values to [0..1.0] to properly reconstruct
5812 * plug-ins/xfig/xfig-common.c : some cleaning
5814 2002-10-12 Hans Breuer <hans@breuer.org>
5816 [decrease inter-plug-in-dependencies]
5818 * objects/custom/shape_info.[hc] : move parse_style()
5819 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
5820 the related structs and constants.
5821 * objects/custom/custom_object.c : reflect namespace
5824 * lib/dia_svg.[hc] : new files
5825 * lib/makefile.msc lib/Makefile.am : add new files
5826 * lib/libdia.def : updated externals
5828 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
5830 * plug-ins/svg/svg.c : enable svg import for win32 (and
5831 probably for other non ELF builds)
5833 * plug-ins/makefile.msc : enable svg import
5835 2002-10-11 Hans Breuer <hans@breuer.org>
5837 * plug-ins/metapost/render_metapost.[hc] : ported
5839 * plug-ins/pstricks/render_pstricks.[hc] : dito
5841 2002-10-11 Hans Breuer <hans@breuer.org>
5843 * plug-ins/cgm/cgm.c : ported, appears to work as before,
5844 but graphic apps available to me can't import the generated
5845 files (the could not with Dia-0.90 cgm as well) ...
5847 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
5848 Removed all those function which did emulate 'complex'
5849 drawing ops with basic ones (e.g. rect by line) cause this
5850 stuff is already provided by the base class
5851 * plug-ins/dxf/dxf-import.c : removed render.h include
5853 * plug-ins/python/pydia-font.[hc]
5854 plug-ins/python/pydia-text.c : finally ported to new font api
5856 * plug-ins/python/pydia-layer.c : add extra parameter
5857 to layer_find_closest_connectionpoint()
5859 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
5861 * plug-ins/python/python.c : added missing copyright notice
5863 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
5864 actually use the renderers set_font implementation
5866 * plug-ins/renderer.inc : unused now, removed
5867 * plug-ins/Makefile.am : reflect it
5869 2002-10-08 Hans Breuer <hans@breuer.org>
5871 * app/render_gdk.c : don't add the InteractiveRenderer
5872 interface multiple times (it's added to the type, not
5874 * app/render_libart.c : dito. It's currently added
5875 unconditional cause eport_png uses it, but claims
5876 to be non-interactive. Probably set_size should be moved
5877 to the DiaRenderer interface.
5879 * lib/dialibartrenderer.c : add implementations for
5880 get_<width|height>_pixels. Libart rendering works again.
5881 DiaLibartRenderer::draw_image : use dia_image_rowstride()
5884 * lib/diatransform.c(dia_transform_coords_double) :
5885 don't ROUND() the returned values
5887 * plug-ins/pixbuf/pixbuf.c : added import function. It
5888 simply creates a wrapping "Standard - Image" object.
5890 * plug-ins/shape/shape-export.c : use the more direct
5891 method to call base class methods
5893 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
5895 * lib/font.c (dia_font_init): Changed dia_font_init to return old
5896 pango context, to allow stacked contexts (for printing while
5905 * lib/connectionpoint.h
5908 * lib/diagdkrenderer.h
5910 * lib/dialibartrenderer.h
5913 * lib/diasvgrenderer.h
5914 * lib/diatransform.h
5921 * lib/neworth_conn.h
5936 Moved all externally visible struct typedefs into diatypes.h, as
5937 per Hans' suggestions.
5939 2002-10-07 Steffen Macke <sdteffen@web.de>
5941 * lib/Makefile.am: removed a '\' causing problems
5943 2002-10-07 Hans Breuer <hans@breuer.org>
5945 [Libart Renderer resurrected; almost it's compiling but
5946 almost instantly crashing :-]
5948 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
5949 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
5950 * lib/diatransform.[hc] : added dia_transform_coords_double()
5952 * app/display.c : the right parameters for new_renderer_libart()
5953 * app/export_png.c : ported, removed the blind Display hack
5955 * app/makefile.msc lib/makefile.msc
5956 lib/Makefile.am : updated
5958 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
5960 2002-10-06 Hans Breuer <hans@breuer.org>
5962 * plug-ins/pixbuf/pixbuf.c : (new file)
5963 there is a new export plug-in called 'Pixbuf' which uses
5964 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
5965 formats (currently only PNG and JPEG).
5967 2002-10-06 Hans Breuer <hans@breuer.org>
5970 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
5972 * lib/dia-enums.h lib/diatransform.[hc]
5973 lib/diarenderer.[hc] lib/diainteractiverenderer.c
5974 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
5977 * lib/makefile.msc lib/makefile.am : added new files
5979 * lib/plug-ins.c : g_module_error() returns a locale
5980 string, convert to utf8 before further usage
5982 * lib/render.h : #error out. Everything including this
5984 * lib/*.[hc] : ported to new renderer api
5986 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
5987 just to make the rest compile
5988 * app/render_eps.c : temporary disabled all of this
5989 * app/render_eps.h : removed RendererEPS
5991 * app/render_gdk.[hc] : a small wrapper around the new
5992 DiaGdkRenderer form lib/*
5994 * app/render_libart.h : removed RenderLibart definition
5995 * app/render_libart.c : not yet ported to new DiaRenderer
5996 but having an implementation to untie form FT2 dependency
5997 at least on win32. It is using new Pango api form bug #94791
5999 * app/render_pixmap.[hc] : a small wrapper around the new
6000 DiaGdkRenderer form lib/*
6002 * app/display.h : removed render_*.h includes
6003 * app/display.c : the only place where specific
6004 renderers need to be known
6006 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
6007 use new DiaInteractiveRenderer interface
6009 * app/*.c : ported to new renderer api
6010 * object/*/*.c : ported to new renderer api
6011 s/render.h/diarenderer.h/
6012 s/Renderer/DiaRenderer/
6013 s/renderer->ops/renderer_ops/
6014 add in every draw method:
6015 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
6017 * plug-ins/hpgl/hpgl.c :
6018 plug-ins/wmf/wmf.cpp
6019 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
6020 * plug-ins/shape/shape-export.c
6021 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
6022 (nice how small these files became :-)
6024 2002-09-28 Hans Breuer <hans@breuer.org>
6026 * */makefile.msc : updated
6028 * app/defaults.c : don't gdk_invalidate_rect(NULL)
6029 * app/disp_callbacks.c :
6030 can't cast GtkWindow to GdkWindow, use shell->window
6031 (ddisplay_unrealize) don't use already unrefed im_context
6033 can't cast from GtkMenu to GtkMenuItem
6034 (ddisp_destroy) : mark im_context as unrefed
6036 * lib/dia_xml (data_font) : prefer new font format over old one
6037 (data_add_font) : write the legacy name to allow file exchange
6038 with pre Pango versions of Dia, which would otherwise crash
6039 on missing font 'name' attribute.
6040 * lib/font.c (dia_font_get_legacy_name) : improved implementation
6041 to get a better match.
6043 * lib/libdia.def : updated
6045 * lib/messages.c : don't gdk_widget_show(NULL)
6047 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
6049 [make Dia compile, link _and_ work with mingw/gcc3.2]
6051 * config.h.win32 : #define LIBXML, this gets defined from libxml
6052 header but only for _MSC_VER. The mingw build did access an
6053 unitialized function pointer for xmlFree.
6055 * */makefile.mingw : updated (some plug-ins have build issues)
6057 * lib/handle.h lib/object.h : there appears to be no
6058 forward declaration of the form
6059 typedef enum _HandleId HandleId
6060 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
6061 use of enum `_HandleId' without previous declaration
6063 * app/paginate_gdiprint.cpp : added a hack to avoid g++
6064 naming conflict on 'export'
6066 * app/paginate_gdiprint.h : forward declare Diagram
6068 * objects/SADT/annotaion.c : use g_random_double()
6070 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
6072 * app/modify_tool.c: Made motion not happen until sufficiently
6073 large or past double-click interval, to avoid accidental moving
6074 when doubleclicking. Got the double-click time right, and fixed
6075 some issues with release. There are some corner cases that may
6076 exhibit strange behaviour, will look at those later. Nah, let's
6077 not care about those, they are rare and not dangerous.
6079 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
6081 * app/layer_dialog.c:
6083 * plug-ins/dxf/dxf-import.c:
6084 * plug-ins/python/pydia-diagram.c:
6085 * lib/diagramdata.c:
6086 * lib/diagramdata.h:
6087 Improved the consistency of the obj->parent_layer backlinks (esp.
6092 * lib/dynamic_obj.[ch] (NEW):
6095 * app/dynamic_refresh.[ch] (NEW):
6096 * objects/Misc/analog_clock.c:
6097 Added support for dynamic refresh (animated objects).
6099 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
6101 Patch from Owen Taylor <otaylor@redhat.com>:
6102 * doc/en/Makefile.am:
6103 * doc/en/dia-manual.sgml:
6104 * doc/en/usage-objects.sgml:
6105 * doc/en/usage-quickstart.sgml:
6106 * doc/pl/Makefile.am:
6107 * doc/pl/dia-manual.sgml:
6108 * doc/pl/usage-objects.sgml:
6109 * doc/pl/usage-quickstart.sgml:
6111 - Change the DTD declration from an outdated GNOME one to a
6114 - Remove close tags for <graphics> which aren't allowed for
6117 - A hacky fix for a problem where some versions of db2html don't
6118 create *.css files. (If *.css doesn't match anything, then you get
6119 the global explicitely.)
6123 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
6125 * objects/custom/custom_object.c:
6126 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
6127 were never properly prepared for use when reloading a shape with
6128 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
6129 reporting the problem and coming up with a fix! (Closes: #93974)
6131 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
6132 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
6135 * app/display.c: updated menu item paths Alan's patch had moved.
6137 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
6138 load the sheet-provided icon (libpng versions mismatch, grrr.).
6141 * objects/Makefile.am:
6142 * objects/Misc/Makefile.am (NEW):
6143 * objects/Misc/libmisc.c (NEW):
6144 * objects/Misc/analog_clock.c (NEW):
6145 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
6146 * sheets/Misc.sheet.in: just a little experiment...
6148 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
6150 * plug-ins/xlst/Makefile.am: found a way to silence automake while
6151 not forcing everyone to build using libxslt.
6155 * lib/object_defaults.c:
6158 * lib/properties.[ch]:
6160 * objects/standard/box.c:
6161 * objects/UML/state_term.c:
6163 * objects/FS/flow-ortho.c:
6167 * app/diagram_tree.c:
6169 * app/disp_callbacks.c:
6172 * app/lineprops_area.c:
6174 * app/preferences.c:
6177 * app/sheets_dialog_callbacks.c:
6178 * plug-ins/xslt/xslt.c:
6179 * plug-ins/metapost/render_metapost.c:
6180 * plug-ins/xfig/xfig-export.c:
6181 * plug-ins/shape/shape-export.c:
6183 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
6184 unused variables, mostly)
6187 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
6189 * app/Makefile.am: modified run_dia.sh so that we recover the
6190 ability to run a debugger despite libtool's hacks.
6192 * plug-ins/dxf/Makefile.am:
6194 "make distcheck" fixes.
6196 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
6198 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
6199 <mfranzoni@madd.it>: Check for the type being NULL.
6201 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
6203 * app/render_eps.c (set_font): Re-tweaked font size for printing.
6205 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
6207 Patch from Angus Ainslie <angusa@deltatee.com>:
6208 * plug-ins/dxf/dxf-import.c:
6209 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
6211 (plus a couple extra fixes by me, such as the removal of printf's,
6212 adapting for recent changes, and killed a couple warnings)
6214 * app/authors.h: a 60K patch isn't insignificant, is it?
6216 2002-09-09 Tor Lillqvist <tml@iki.fi>
6218 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
6219 as before) and -lfreetype (using AC_CHECK_LIB). At least on
6220 Solaris with Sun's compiler (Forte C), you need to link also the
6221 dia application with -lfreetype, even if it is implicitly linked
6222 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
6223 which is what they actually mean. Use FREETYPE_LIBS for
6226 Don't look for libsunmath if isinf() is not found in math.h (as on
6227 Solaris). The sunmath library is part of Forte C and not present
6228 on all machines. Besides, even if isinf was found in libsunmath,
6229 we didn't use it in the Makefile.am.
6231 Fix a couple of bashisms.
6233 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
6234 too, on Solaris with Forte C.
6236 Don't try to use the gcc flags with other compilers.
6237 DIA_CHECK_CFLAG gives a false indication that Forte C understands
6238 the gcc -f switches, but in fact they get interpreted meaning
6239 something completely different.
6241 Define the automake conditional HAVE_CGC.
6243 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
6245 Use -export-dynamic only with gcc.
6248 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
6249 PANGOFT2_CFLAGS rename.
6251 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
6253 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
6256 * lib/paper.c: Workaround for gccism: Can't use inline this way with
6259 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
6261 * lib/text.c(set_string): fixed a memory leak (char* ain't no
6262 std::auto_ptr<char> !).
6265 * app/interface.[ch]:
6266 * app/ddisp_callbacks.[ch]: Added some basic support for input
6267 methods (GtkIMContext-based)
6270 * app/Makefile.am: made libdia a shared object (per Tor
6271 Lillqvist's suggestion/request), to cope for platforms with a less
6272 than par dynamic library loader.
6274 * app/display.c: disabled the input method menu (I really don't
6275 see where and how to put them. Blame Frozen Bubble )
6277 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
6279 * objects/flowchart/box.c (box_update_data): Made resizing
6280 possible again (only set width & height when resized too small).
6282 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
6284 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
6287 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
6289 * app/authors.h: now showing Akira TAGOH's name in the native script.
6291 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
6293 * plug-ins/xslt/xslt.c: Removed glib warning for unset
6296 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
6298 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
6299 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
6302 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
6304 * objects/UML/class.c: Fixed showing of empty stereotypes and got
6305 the string placed correctly.
6307 2002-08-30 Hans Breuer <hans@breuer.org>
6309 * lib/font.c (dia_font_get_style) : don't shift already
6310 shifted DIA_FONT values.
6312 * lib/libdia.def : updated externals
6314 * app/disp_callbacks.c : on win32 GdkEventKey::string already
6315 is in UTF-8. (Longterm this probably should be handled on the
6318 * app/command.[hc] app/display.[hc] app/menus.c : add code to
6319 switch display renderers again. The libart renderer is very
6320 useful for win9x with it's limited GDI.
6322 * app/render_gdk.c : use g_warning instead of printf which gets
6323 nowhere on win32 (non console apps)
6325 * app/render_libart.c : make it compile without FREETYPE
6327 * objects/makefile.msc plug-ins/makefile.msc : added clean target
6329 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
6331 * app/render_eps.c (postscript_draw_contour): Debugging statement
6332 that allowed me to figure out font problems.
6334 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
6335 items for font styles.
6337 * objects/FS/flow-poly.c:
6338 * objects/FS/flow-ortho.c:
6339 * objects/FS/flow.c: Further conversion away from GTK dialogs.
6340 Can't set a default label right now:(
6342 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
6344 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
6345 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
6347 * Makefile.am: rules relating to AUTHORS and THANKS
6349 * AUTHORS: file content changed to more accurately
6350 reflect guideline requirements.
6351 * TODO: warning added about Gnome BTS.
6352 * KNOWN_BUGS: warning added about Gnome BTS.
6356 * AUTHORS: added full copyright info.
6357 * mkauthors-placeholder: (removed)
6359 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
6361 * app/paginate_psprint.c (print_page): Fixed text printing after
6362 tip from Dov Grobgeld.
6364 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
6366 * app/paginate_psprint.c (print_page): Fixed color of clip
6369 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
6371 * sheets/Makefile.am: enabled intltool-merge translation cache for
6375 * mkauthors-placeholder:
6376 * AUTHORS: revived that file (in a placeholder form) so that
6377 automake stops yelling.
6378 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
6381 Heh, by the way, thanks Christophe. I feel better now.
6383 2002-08-25 Christophe Merlet <christophe@merlet.net>
6385 * app/command.c: Removed invalid multibyte sequence in Chepelov.
6387 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
6389 * lib/dia_image.c (dia_image_rgb_data):
6390 Bugfixes in image data retrieval.
6392 * app/render_eps.c: Refactoring of new_*_renderer.
6394 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
6398 * lib/dia_image.c: Support for rowstride != width (odd width images)
6400 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
6402 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
6403 * plug-ins/xfig/xfig-import.c: Removed assertion.
6405 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
6407 * lib/paper.c: Removed app/preferences.h reference.
6409 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
6411 * plug-ins/svg/svg-import.c:
6412 * plug-ins/xfig/xfig-import.c:
6413 * lib/Makefile.am (libdia_a_SOURCES):
6414 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
6416 * objects/standard/create.h:
6417 * objects/standard/polygon.c (polygon_create):
6418 * objects/standard/polyline.c (polyline_create):
6419 * objects/standard/beziergon.c (beziergon_create):
6420 * objects/standard/bezier.c (bezierline_create):
6421 Moving create.h into lib.
6423 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
6425 * app/render_libart.[ch]: Work on PNG font export. Something's
6426 still fishy with the scaling, I don't get it.
6429 * app/interface.c: Replaced broken zoom combo with entry+menu.
6430 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
6432 * app/render_gdk.c (get_text_width): Checks for validity of text.
6433 Temporary help while debugging input -- should only activate on
6436 * objects/SADT/annotation.c:
6437 * objects/GRAFCET/transition.c:
6438 * objects/FS/function.c: Removal of gtk.h include.
6440 * objects/UML/state.c (state_load): Warnings about using State
6441 object for initial/final states.
6443 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
6445 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
6447 * app/render_eps.c: Text rendering that scales correctly. Too bad
6448 the standard fonts don't get selected right.
6450 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
6452 * lib/diagramdata.h:
6453 * lib/paper.c (get_paper_info):
6455 * plug-ins/xfig/xfig-import.c:
6456 Committed before testing. I am so embarrased. This compiles, now
6457 that the includes are in the right order.
6459 * app/diagram.c (diagram_init):
6460 * app/app_procs.c (do_convert):
6461 * app/preferences.h:
6462 * lib/diagramdata.h:
6463 * lib/diagramdata.c (new_diagram_data):
6465 * lib/paper.c (get_paper_info):
6466 Moved new_diagram part of prefs into lib/diagramdata.h. More
6467 could be done in new_diagram_data() now.
6469 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
6471 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
6473 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
6475 * configure.in: removed silly user-visible comment
6477 (actually, this is a dummy entry before I manually run nemo; for
6478 some dist-upgrade related reason, this morning's run aborted before
6479 the snapshots were created)
6481 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
6483 * objects/network/wanlink.c:
6484 * objects/network/bus.c:
6487 * objects/custom/custom_object.c:
6488 * objects/network/wanlink.c:
6489 * objects/flowchart/parallelogram.c:
6490 * objects/flowchart/ellipse.c:
6491 * objects/flowchart/diamond.c:
6492 * objects/flowchart/box.c:
6493 Removed GTK defaults stuff.
6495 * objects/UML/fork.c:
6496 * objects/UML/object.c:
6497 * objects/UML/lifeline.c:
6498 * objects/UML/branch.c:
6499 * objects/GRAFCET/transition.c:
6500 * objects/FS/function.c: Removed GTK include.
6502 * objects/FS/flow-ortho.c:
6503 * objects/FS/flow.c: Made the label behave again.
6504 Also removed GTK defaults stuff.
6506 2002-08-06 Hans Breuer <hans@breuer.org>
6508 * app/autosave.c : ported to GDir which is the improved
6509 cross platform replacement for <dirent.h>
6511 * app/makefile.msc : build autosave.obj
6513 * app/font.c : some (bad?) code calls
6514 dia_font_scaled_decent() not only with empty string but
6515 with NULL. Handle it gracefully.
6517 * lib/paper.c : don't depend on ../app. Although IMO
6518 this shouldn't be allowed on any platform it is only
6519 disabled for win32, where it simply doesn't work
6522 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
6524 * objects/fs/flow.c : conditionalize debug spew, disabled
6525 and 'ported' to use g_print. Simple printf won't work with
6526 standard win32 gui apps, may even crash them.
6528 * plug-ins/makefile.msc : DISABLED svg-import cause it
6529 depends on ../objects/custom. This not only break the
6530 build for all non ELF systems but IMO also isn't acceptable
6531 from a design point of view. See dia-list mail on subject.
6533 * plug-ins/python/makefile.msc :
6534 plug-ins/python/python.c : remove all references to dirent
6536 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
6538 * configure.in: added ro to ALL_LINGUAS
6542 * ../translation-graphs/transgraph.py: added support for fuzzy
6543 translations. Enlarged the graphs.
6545 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
6547 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
6548 key events according to locale. No clue if this works for
6551 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
6553 * lib/text.c: Various UTF8 related fixes, in particular in
6554 deleting. Text_insert_char is fine, far as I can tell.
6556 * app/interface.c (create_display_shell):
6557 * app/commands.c: Now uses gtk_clipboard functions, for they are
6558 much simpler. Also handles Win32 clipboard. Non-ascii chars
6559 don't seem to get handled correctly by text_insert_char in
6562 * app/commands.c (received_selection_handler): Got utf8 handling
6563 on paste, and individual char handling out of commands.c. Pasting
6564 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
6566 * lib/message.c (gtk_message_internal): Message dialog re-shown
6567 when new message appears. Maybe it should even move to top?
6571 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
6572 (again) and case-insensitive.
6574 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
6577 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
6579 * app/commands.c (edit_cut_text_callback):
6580 * lib/text.c (text_delete_all): Now functioning undo for text cut.
6582 * app/commands.c (edit_cut_text_callback): Now removes text.
6583 Undo is broken, though.
6585 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
6587 * app/diagram.c (diagram_update_menu_sensitivity):
6588 Making cut_text active.
6591 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
6592 clipboard. Also removed AA callback.
6594 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
6596 * objects/chronogram/chronoref.c:
6597 * objects/chronogram/chronoline.c:
6598 * objects/SADT/annotation.c:
6599 * objects/SADT/arrow.c:
6600 * objects/SADT/box.c:
6601 * objects/GRAFCET/vergent.c:
6602 * objects/GRAFCET/vector.c:
6603 * objects/GRAFCET/step.c:
6604 * objects/GRAFCET/condition.c:
6605 * objects/GRAFCET/action.c:
6606 * objects/ER/participation.c:
6607 * objects/ER/relationship.c:
6608 * objects/ER/entity.c:
6609 * objects/ER/attribute.c:
6610 Removing unnecessary GTK references.
6612 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
6614 * objects/standard/image.c:
6615 * objects/standard/textobj.c:
6616 * objects/standard/ellipse.c:
6617 * objects/standard/polygon.c:
6618 * objects/standard/beziergon.c:
6619 * objects/standard/box.c:
6620 Making default default properties.
6622 * objects/standard/image.c:
6623 * objects/standard/arc.c:
6624 * objects/standard/box.c:
6625 * objects/standard/zigzagline.c:
6626 * objects/standard/polyline.c:
6627 * objects/standard/line.c:
6628 * objects/standard/ellipse.c:
6629 * objects/standard/polygon.c:
6630 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
6632 * lib/object_defaults.c (dia_object_default_create):
6635 * lib/object.c (object_copy_using_properties):
6636 * lib/propdialogs.c:
6637 * lib/propinternals.h:
6638 * lib/propobject.c (object_create_props_dialog)
6639 (object_copy_props):
6640 Removing the standard (toolbox) properties from defaults dialogs.
6642 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
6644 * lib/font.c (dia_font_scaled_string_width)
6645 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
6647 * lib/text.c (text_calc_boundingbox): Take descent into account.
6649 * objects/standard/bezier.c (bezierline_draw):
6650 * lib/render.c (draw_bezier_with_arrows):
6651 Better arrow drawing for beziers. Doesn't change the mouse-click
6654 * lib/arrows.h: Some const-ness.
6656 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
6658 * lib/render.c (draw_arc_with_arrows):
6659 * objects/standard/arc.c (arc_draw): Better arrow drawing for
6660 arcs. Doesn't change the mouse-click area yet.
6662 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
6668 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
6670 * app/group.c (group_draw): Forgotten commit: Groups to draw as
6671 objects (using default routines).
6675 * lib/diagramdata.h:
6676 * lib/diagramdata.c (layer_find_closest_connectionpoint):
6677 * objects/standard/zigzagline.c (zigzagline_move_handle):
6678 * app/diagram.c (diagram_find_closest_connectionpoint):
6679 * plug-ins/python/pydia-diagram.c
6680 (PyDiaDiagram_FindClosestConnectionPoint):
6681 * app/object_ops.c (object_connect_display)
6682 (object_find_connectpoint_display)
6683 * app/create_object.c (create_object_button_press)
6684 (create_object_motion):
6685 * app/modify_tool.c (modify_motion):
6686 Adding object param to allow connectionpoint and handle coinciding.
6688 * objects/standard/zigzagline.c (zigzagline_check_orientation):
6689 Fixing minor problems.
6691 * objects/standard/ellipse.c (ellipse_update_data):
6692 Added direction hints.
6694 * lib/diagramdata.c:
6697 * lib/diagramdata.h:
6698 * objects/standard/zigzagline.c:
6699 First working example of zigzagline hints, currently only between
6702 2002-07-27 Steffen Macke <sdteffen@web.de>
6704 * plug-ins/svg/render_svg.c: added support for rounded
6705 rectangles (fixes #69053 if compile with
6707 * object/custom/shape_info.[c|h]: made parse_style and
6708 parse_path accessible for svg plug-in
6709 * plug-ins/svg/Makefile.am:
6710 * plug-ins/svg/svg.c:
6711 * plug-ins/svg/svg-import.c(new): added SVG import filter
6713 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
6715 * objects/standard/box.c:
6716 * objects/standard/zigzagline.c (zigzagline_move):
6717 More work on zigzagline hints.
6719 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
6720 * lib/connectionpoint.h:
6721 Hints for zigzaglines.
6723 * app/properties.c (properties_show):
6724 * app/defaults.c (defaults_show):
6726 * lib/propobject.c (object_create_props_dialog):
6728 * objects/FS/flow-poly.c:
6729 * objects/network/wanlink.c:
6730 * objects/network/bus.c:
6731 * objects/UML/class.h:
6732 * objects/UML/class_dialog.c:
6733 * objects/UML/association.c:
6734 Start of removing toolbox props from props dialogs.
6738 * app/lineprops_area.c (dia_arrow_chooser_new):
6739 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
6741 * app/create_object.c:
6742 * app/modify_tool.c:
6747 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
6749 * app/preferences.c:
6751 * app/diapagelayout.c:
6752 New prefs selector kind PREF_CHOICE chooses between a list of
6753 strings. Used for picking default paper.
6755 * app/preferences.c (prefs_data):
6756 * lib/paper.c (get_paper_info): Added prefs setting for
6759 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
6760 line segments at the ends (bug #86603).
6762 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
6764 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
6765 #60324: Now calls update_data after copy.
6767 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
6768 Now doesn't steal selection from non-object tools.
6770 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
6772 * app/commands.c (help_manual_callback): Uses BROWSER environment
6773 variable when available.
6775 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
6777 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
6778 object from the new sheet when changing.
6780 * app/app_procs.c (app_init): Uses more standard size icon, from
6781 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
6783 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
6785 * objects/UML/implements.c (implements_update_data):
6786 * objects/UML/realizes.c (realizes_update_data):
6787 * objects/UML/dependency.c (dependency_update_data):
6788 Test for null strings before calling on ascent.
6790 * objects/UML/realizes.c (realizes_draw):
6791 * objects/UML/message.c (message_draw):
6792 * objects/UML/generalization.c (generalization_draw):
6793 * objects/UML/dependency.c (dependency_draw)
6794 * objects/UML/constraint.c (constraint_draw):
6795 * objects/GRAFCET/condition.c (condition_draw):
6796 * objects/UML/association.c (association_draw):
6797 * objects/FS/flow-ortho.c (orthflow_draw):
6798 * objects/FS/flow.c (flow_draw): Change to use
6799 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
6802 * lib/arrows.c (calculate_arrow_point):
6805 * objects/standard/zigzagline.c:
6806 * objects/standard/polyline.c:
6807 * objects/standard/line.c: Work towards better arrow drawing.
6809 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
6811 * objects/UML/state.c: Starting phase-out of State object as
6812 initial/final state (which never worked right).
6814 * app/app_procs.c (app_init): --version command line option for
6817 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
6819 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
6821 * app/render_eps.c: Removed debugging info.
6823 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
6824 Kludge to make ascent and descent work for empty strings. Won't
6825 work when using non-ASCII fonts. Better would be to get a
6826 PangoFont and ask directly.
6828 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
6831 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
6834 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
6836 * plug-ins/xfig/xfig-export.c: First use of draw_object render
6837 function: All shapes are now groups in XFig export.
6839 * lib/diagramdata.c (normal_render):
6842 * app/display.c (ddisplay_obj_render):
6843 New render function for drawing objects, allows renderers to group
6844 or otherwise specially handle objects. We may want to reconsider
6845 calling it in app/display.c, as we 'know' the object draw function
6846 is the default one there.
6848 * lib/Makefile.am: Removed extra \ that broke stuff.
6850 * plug-ins/xfig/xfig-import.c:
6851 Spline import for xfig. Not perfect.
6853 * objects/standard/create.h:
6854 * objects/standard/bezier.c (bezierline_create):
6855 * lib/bezier_conn.c:
6856 * lib/beziershape.c (beziershape_set_points):
6857 * lib/bezier_conn.h:
6858 * lib/beziershape.h:
6859 Support for creating beziers non-interactively.
6861 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
6863 * plug-ins/xfig/xfig-import.c: Support for polygons and
6864 polylines. Special warning handling system removed.
6866 * lib/message.c (gtk_message_internal): Fixed bug involving
6867 closing message window and then getting repeated message.
6871 * configure.in (GETTEXT_PACKAGE):
6872 Update based on bug #88199. Hopefully this doesn't break too much
6875 * dia.desktop.in (_Comment): Changed after suggestion from
6876 calum.benson@ireland.sun.com (bug 88345)
6878 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
6879 <loli@unsa.edu.ar> that makes user/system distinction better.
6881 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
6883 * app/render_libart.c: Got the context right, removed crashes.
6893 Remove libart #defines from most places (still around for png export).
6895 * app/render_libart.h:
6896 * app/render_libart.c:
6897 * configure.in (HAVE_LIBART):
6898 Starting on update of libart stuff for png export (without X).
6900 * app/autosave.h (autosave_check_autosave):
6903 * app/Makefile.am (dia_core_files):
6905 * app/diagram.c (diagram_set_modified):
6907 * app/app_procs.c (app_init):
6908 Autosave support. No automatic restore yet.
6910 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
6912 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
6915 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
6917 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
6919 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
6921 * Fix for 'make dist' etc. --- problem caused by
6922 previous AUTHORS patch.
6924 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
6926 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
6928 (set_font): NULL check.
6930 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
6932 * app/disp_callbacks.c:
6934 Addition to the object menus allows check menu items.
6936 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
6938 * HACKING: completely changed to bring up-to-date.
6939 * AUTHORS: file needs REMOVING from CVS as now
6940 dynamically generated.
6941 * app/authors.h: split into subcategories for original
6942 authors, maintainers, etc.
6943 * app/app_procs.c: --credits rewritten to support new
6945 * app/commands.c: no changes to about box code, comment
6947 * Makefile.am: added rule for AUTHORS. I'm still
6948 inexperienced with automake, it seems to work, but
6949 for AUTHORS-related bugs, look at this change first.
6951 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
6953 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
6954 work. Back to including xslt dir always.
6956 * objects/UML/uml.c:
6957 * objects/UML/class.h:
6958 * objects/UML/class_dialog.c:
6959 * objects/UML/class.c: Patch from
6960 <mattam@netcourrier.com>: Adds comment visibility switch, also
6963 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
6964 for state/fork/activity stuff.
6965 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
6966 * objects/UML/Makefile.am:
6967 * objects/UML/uml.c:
6968 * sheets/UML.sheet.in: Added new objects activity, fork,
6970 * objects/UML/pixmaps/state_term.xpm:
6971 * objects/UML/state_term.c: New, only initial/final states.
6972 * objects/UML/pixmaps/activity.xpm:
6973 * objects/UML/activity.c: New, activity state.
6974 * objects/UML/pixmaps/fork.xpm:
6975 * objects/UML/fork.c: New, fork/join bar.
6976 * objects/UML/pixmaps/state.xpm: state icon.
6980 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
6981 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
6984 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
6986 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
6989 * app/Makefile.am: Commented out the diaconv parts while it's not
6990 used anyway. To come back later.
6992 * configure.in (HAVE_FREETYPE):
6995 * app/render_eps.c: Support for printing with freetype, better
6996 encapsulated now. Renders the text nicely, but ignores font
6997 setting. Requires pangoft2 to get the font outline, but non-text
6998 objects can still be rendered without it.
7001 * app/commands.c (objects_place_up_callback)
7002 (objects_place_down_callback):
7004 * app/diagram.c (diagram_place_down_selected)
7005 (diagram_place_up_selected): Starting support for moving objects
7008 * app/menus.c: Removed character/numeral shortcuts.
7010 2002-07-06 Hans Breuer <hans@breuer.org>
7012 * makefile.am app/makefile.am lib/makefile.am
7013 objects/makefile.am plug-ins/makefile.am
7014 plug-ins/python/makefile.am :
7015 added required files for win32 build to EXTRA_DIST
7017 * app/paginate_psprint.c app/render_eps.c
7019 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
7020 on Pango as currently is on win32 => no PostScript
7023 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
7024 use '/* noop */;' for empty case labels; replace
7025 debug spew printf with g_print which is guaranteed
7026 to work on win32, too.
7028 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
7029 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
7030 in the pango_font_description_set_weight() api documentation
7031 Take care for them in dia_font_get_style() too.
7033 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
7034 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
7035 rename Obliquity to Slant which appears to be the usual name,
7036 also rename dia_font_get_style_string -> dia_font_get_slant_string
7038 * plug-ins/wmf/wmf.cpp : finally ported to new font api
7040 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
7042 * objects/uml/association.c class.c large_package.c message.c
7043 if g_free() is used g_strdup needs to be used.
7044 * objects/custom/shape_info.c
7045 objects/ER/attribute.c entity.c
7046 objects/standard/image.c
7047 app/sheets_dialog_callbacks.c : more strdup cleaning
7049 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
7051 * app/render_eps.c: Non-crashing printing (made the right
7052 context). Font output still fscked up.
7054 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
7056 * app/authors.h: Added file --- now master
7057 location for contributors data.
7058 * app/app_procs.c: Added --credits option.
7059 * app/commands.c: Modified about box to use
7062 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
7064 * app/render_eps.c: First stab at EPS rendering using the contour
7065 code from PAPS. Crashes.
7067 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
7069 * app/recent_files.c (recent_file_history_remove):
7070 Fixed call to g_list_delete_link discarding return value.
7072 * lib/widgets.c (dia_font_selector_set_styles):
7073 * lib/font.h (DiaFontWeight):
7074 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
7076 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
7078 Contribution from Alan Horkan <horkana@tcd.ie>:
7081 * sheets/Assorted.sheet:
7082 A set of 40 assorted geometric shapes.
7084 * sheets/Assorted.sheet.in:
7085 * sheets/Makefile.am
7086 * shapes/Assorted/Makefile.am:
7087 * shapes/Makefile.am:
7090 Done the integration job of Alan's shapes. (Translators: have fun!)
7092 * po/dia.pot: refreshed the main potfile.
7094 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
7096 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
7098 * objects/UML/class.[ch]:
7099 * objects/UML/class_dialog.c:
7100 changed the number of connection points from a hardcoded value of
7101 8 to a #defined constant
7103 (I changed the constant back from 20 to 8, until we better know
7104 how we'll handle more connection points on the UML class in the
7105 future -- but Tim's patch is a welcome clean-up).
7107 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
7109 * shapes/MSE/demultiplexer.xpm:
7110 * shapes/MSE/node_center.xpm:
7111 * shapes/MSE/multiplexer.xpm:
7112 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
7113 Horkan <horkana@tcd.ie>
7115 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
7117 * lib/widgets.c: Total rehash of font selector, with font dialog
7118 option, expanding list (not LRU yet), and stuff.
7120 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
7124 Added a set of new setter/getters, some of them more specially for
7127 * plug-ins/shape/shape-export.c: (new_shape_renderer),
7128 (destroy_shape_renderer), (set_font), (draw_string):
7129 * plug-ins/svg/render_svg.c: (new_svg_renderer),
7130 (destroy_svg_renderer), (set_font), (draw_string):
7132 Actually exported the font face, style, weight and size (sodipodi
7133 agrees with dia on how a small sample should look like (a sample
7134 0.90 would not even display anyways). Yay !)
7136 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
7138 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
7140 (end of ChangeLog-less patch)
7142 * objects/custom/shape_info.c (parse_style): now understands the
7143 font-style and font-weight attributes as well. Does not use
7144 anymore dia_font_new_from_legacy_name().
7146 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
7148 * objects/standard/textobj.c: Now uses stdprops for defaults.
7150 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
7151 * lib/font.c (dia_font_get_style): Style now linear and conversion
7154 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
7157 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
7159 * plug-ins/dxf/dxf-import.c:
7160 using dia_font_new_from_style()
7162 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
7164 * objects/UML/class.[ch]: Added a comment field to class
7165 * objects/UML/uml.[ch]: Added a comment field to attributes,
7166 operations and parameters.
7167 * objects/UML/class_dialog.c: Added code for the new comment
7169 * plug-ins/xslt/*.xsl: Added some code to handle comments.
7170 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
7171 Added a $directory parameter for stylesheets so the output is
7172 in the good place (not in the $PWD).
7176 * AUTHORS: added contributors, updated maintainers. Removed the
7177 specific areas of action.
7179 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
7180 from a patch by Xing Wang <quixon@gnuchina.org>:
7182 * app/commands.c: help_about_callback now supports
7183 new-style GNOME about box as well as old GTK style.
7184 code also tidied (Closes: #85726)
7188 * app/commands.c: fixed the copyright (it's not all FSF), and
7189 maintainers. Synced contributors list with AUTHORS.
7191 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
7193 * lib/message.c: More work on repeating messages, now with
7196 2002-06-24 Hans Breuer <hans@breuer.org>
7198 * lib/widget.c : some more bits in place, at least
7199 it does something useful instead of crashing. Much
7200 better - but not all ok :-)
7202 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
7204 * lib/message.c (gtk_message_internal): First stab at repeating
7207 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7210 * objects/GRAFCET/*.c:
7212 * objects/UML/association.c: (one instance forgotten)
7213 * objects/UML/large_package.c:
7214 * objects/standard/textobj.c:
7217 using dia_font_new_from_style()
7219 2002-06-23 Hans Breuer <hans@breuer.org>
7221 * lib/font.c : giving some love to
7222 dia_font_new_from_legacy_name() that is making
7223 import of old files as painless as possible and
7224 provide an almost exact match where possible.
7225 It does not yet fully work because it interfers
7226 with the Style to DiaStyle conversion which comes
7229 [Changing these files is only allowed with Dia-0.90]
7230 * broken-files/fonts-0.90.dia : including the
7231 common hard-coded fonts from Dia-0.90. It also
7232 has drawn bounding-boxes for win32 as they were calculated
7233 from the former version (they were all too big).
7234 * broken-files/fonts-0.90-full.dia : all hardcoded
7235 fonts including the asian versions. On my machine
7236 this gives _a lot_ complaining about missing fonts
7237 and a finally a broken file display. Anyone having
7240 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7242 * objects/chronogram/*.c:
7243 * objects/custom/custom_object.c:
7245 using dia_font_new_from_style()
7247 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
7249 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
7250 font selector (stability, insensitivity).
7252 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
7253 stretching scheme for tweaking, and made scaling scheme faster
7255 (dia_font_dia_style_to_pango): Oops, % != /.
7257 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7260 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
7262 * plug-ins/xslt : Added an XSLT plugin to export dia files using
7263 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
7264 It includes a small config file to tell it what stylesheets to use.
7268 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
7269 GTK2.0/HIG compliant (the labels could be slightly more verbose,
7270 perhaps). Added back a couple forgotten _(). Removed //-style
7273 2002-06-23 Hans Breuer <hans@breuer.org>
7276 (dia_plugin_get_name) : don't crash plugin_manager
7278 (dia_plugin_load) : reuse the description field to
7279 store the error string if loading fails.
7281 * lib/font.[hc] : starting to beautify the new
7282 font api: proper namespacing, adding convenience
7283 functions like dia_font_new_from_style(), ...
7285 * objects/uml/*.c : use the new convenience functions.
7287 [Next thing I plan to do is changing the other font
7288 functions to take DiaStyle and make Style and
7289 BASIC_*_FONT vanish. As well as giving some love to
7290 dia_font_new_from_legacy_name().
7291 If anyone want's to help on converting the other
7292 objects to the new api during that, I would highly
7295 2002-06-23 Hans Breuer <hans@breuer.org>
7297 * lib/font.c : made it compile and small indent fixes.
7298 Is there a code-has-no-effect-so-needs-not-be-valid
7301 * lib/widgets.c : use g_strcasecmp
7303 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
7307 * lib/widgets.c: Font names sorted, style selector widget
7308 reappeared. Doesn't select the old style yet.
7310 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
7312 * lib/font.c: one who expects a text's font to be changed shall
7313 actually request the attributes to apply to the whole range of the
7316 * lib/font.c: extents computation was wrong.
7318 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
7319 if a last NULL parameter is added...
7321 * lib/font.c: extents computation was completely wrong. This looks
7322 much better this time.
7324 * objects/UML/class.c: fixed the various strings positions.
7326 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
7327 macros to get the hardcoded base fonts.
7329 * objects/ER/relationship.c: wasn't converted to DiaFont*
7331 2002-06-22 Hans Breuer <hans@breuer.org>
7333 * lib/widget.c : dont use backend specific functions
7334 to get on the font_families. Including it would mean
7335 including <windows.h> which breaks due to namespace
7338 * lib/libdia.def : updated externals
7340 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
7342 * lib/font.c : added empty dia_font_init_instance function,
7343 reformatting of dia_fon_unref to allow to set breakpoint,
7344 dia_fon_build_layout() : dont crash on string==NULL
7346 * lib/text.c (text_set_attributes) : don't unref the wrong font
7348 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
7349 stores lowercased font names, but dia_font_get_family()
7352 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
7355 * app/render_gdk.c: Patch from Hans Breuer.
7357 * app/Makefile.am (dia_core_files): diaconv commented out for now.
7359 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
7361 * lib/all files touched yesterday: took into account some of Hans
7363 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
7365 * objects/chronogram/*:
7368 * objects/flowchart/*:
7370 * objects/GRAFCET/*:
7372 * objects/standard/textobj.?:
7374 converted to the new DiaFonts.
7377 * plug-ins/pstricks/*:
7381 Made minimalistic conversions so that they'd at least compile.
7384 * app/render_pixmap.c:
7385 Converted to the new DiaFonts.
7390 made the minimal changes so that it would at least build.
7392 *** At this point, the thing builds on my machine, but segfaults
7395 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
7397 * configure.in: removed the backend-specific pango pkg_modules
7398 (trivial to add back if needed, when actually needed)
7401 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
7402 renderer. The APIs will have completely changed when we get around
7403 to redo a renderer for it, anyways.
7405 * font.[ch]: rewrote everything from scratch, with a Pango
7406 implementation. Normally, only backend-neutral things should go in
7409 **WARNING**: new rules for managing DiaFont* pointers: these are
7410 reference-counted GObjects. One >must< diafont_ref() and
7411 diafont_unref() as appropriate. I wish I could overload operator=()...
7413 lib/plug-ins.h: bumped up the plug-in API.
7418 lib/object_defaults:
7419 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
7420 again tomorrow with GObject.
7422 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
7424 **** The rest of the tree should be updated as well ****
7426 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
7430 * app/render_pixmap.c:
7431 * app/render_pixmap.h:
7432 * app/render_libart.h:
7433 * app/render_libart.c:
7435 * lib/font.c: Removed freetype stuff (still around in
7436 lib/widgets.c 'cause we might want the font selector widget).
7438 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
7440 * shapes/network/laptop.(xml|shape):
7441 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
7442 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
7444 2002-06-17 Hans Breuer <hans@breuer.org>
7446 * lib/object_defaults.c : #include <libxml/tree.h> not
7447 <tree.h> pointed out by Xing Wang
7449 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
7451 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
7453 * app/color_area.c: Update to
7454 gtk_color_selection_*_current_color() fixed bad crash issues, plus
7455 updated color conversions.
7457 * sheets/ER/weakentity.xpm: Accepted patch from
7458 quixon@gnuchina.org to make icon match actual appearance.
7460 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
7461 quixon@gnuchina.org.
7463 2002-06-16 Hans Breuer <hans@breuer.org>
7465 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
7466 good tradition of information hiding. Add new function
7467 dia_plugin_get_symbol()
7468 * app/sheets.c app/sheets_dialog_callbacks.c : use it
7470 * app/sheets.c : stop complaining about object_get_type()
7471 returning NULL. This is a consequence of e.g. disabling
7472 plug-ins at runtime _and_ it was and is gracefully handled.
7473 Spitting out g_warning for it isn't appropriate.
7475 * lib/object.[ch] : removed dead code
7477 * app/plugin-mangager.c : almost complete rewrite for gtk2
7478 using GtkListStore/GtkTreeView
7480 * lib/libdia.def : updated externals
7482 * todo.gtk2 : updated, that is removed already done steps
7484 2002-06-15 Hans Breuer <hans@breuer.org>
7486 * objects/uml/class_dialog.c : clean some left-over
7487 utf8-mess, return 0 from "focus_out_event" handlers
7488 to avoid asserting in gtk (#78305). Reconstruct
7489 stereotype/NULL behaviour to avoid rendering empty
7490 stereotypes on classes and member functions
7492 [#56109 - Provide object defaults for StdProp objects,
7493 some remaining issues are discussed in bugzilla]
7495 * lib/object_defaults.c : (new file) manage default properties
7496 of dia objects. The serialization is done with standard
7497 object methods in a diagram compatible format.
7499 * lib/object.c : add object_registry_foreach() which allows
7500 to iterate over all registered object types
7502 * lib/object.h : added prototypes object_default*() and
7503 object_registry_foreach()
7505 * lib/makefile.am lib/makefile.msc : add new file to build
7507 * lib/libdia.def : export new functions
7509 * app/defaults.c : provide StdProp based defaults if the
7510 ObjectType doesn't implement it's own default functions
7512 * app/create_object.c : through dia_object_default_create()
7513 * app/disp_callbacks.c : same here
7515 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
7517 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
7518 sensitivity for deleting segments.
7520 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
7522 * app/color_area.c: (color_area_events):
7523 * app/diagram.c: (diagram_destroy):
7524 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
7526 * app/load_save.c: (diagram_data_load):
7527 * app/menus.c: (menus_get_item_from_path):
7528 * app/preferences.c: (prefs_load):
7529 * app/render_gdk.c: (get_text_width):
7531 * lib/color.c: (color_convert):
7532 * lib/dia_dirs.c: (dia_config_filename):
7533 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
7534 * lib/intl.c: (intl_get_language_list):
7535 * lib/message.c: (message):
7537 * lib/paper.c: (get_default_paper):
7538 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
7539 * lib/widgets.c: (dia_file_selector_get_file):
7541 * objects/standard/image.c: (get_directory):
7545 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
7547 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
7549 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
7551 * app/interface.c: sscanf now returns EOF on empty string, so
7552 handle no match for zoom factor better => correct zoom at start.
7554 * app/sheets.c (create_object_pixmap): Tried to display empty error.
7555 (sheets_optionmenu_create): Died when not finding specified
7556 sheet. Don't think it should.
7558 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
7559 (bug #84367) to place the text better.
7561 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
7563 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
7565 * app/commands.c: Removed unnecessary gnome include. Removed
7566 GNOME-Print support.
7568 * app/menus.h: Removed now unnecessary gnome include.
7570 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
7571 GNOME-specific stock buttons
7573 2002-06-09 Hans Breuer <hans@breuer.org>
7575 * app/app_procs.c : convert 'Modified diagrams exits'
7576 dialog to use GtkMessageDialog. That gives us:
7577 - icons without Gnome dependency
7578 - much less code, also cross platform
7579 - improved useability ?
7581 * app/color_area.c : the Color Selection Widget looked
7582 quite wrong (alpha problems). Fix it by merging in required
7583 changes stolen from The Gimp cvs
7584 * app/color_area.h : to get the right appearance the maskes
7585 needed to be taken into account
7586 * app/interface.c : adapt to color_area_create changes.
7587 Also remove some dead code and finally remove cvs autexpansion,
7588 I was bothered enough by irrelevant differences :-)
7590 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
7591 api, i.e stocks and response to make the GnomeDialog usage
7592 obsolete. Also fixed the issue with closing the 'parent'
7593 before closing the dialog
7595 * app/display.[ch] : removed some dead code and conversion
7596 to new GtkDialog api. Also trying to conform to new HIG
7597 standard http://developer.gnome.org/projects/gup/hig/
7599 2002-06-09 Hans Breuer <hans@breuer.org>
7601 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
7604 * lib/dia_image.c : gtk_widget_set_default_visual()
7605 remove. It does nothing with Gtk2.
7607 * lib/libdia.def : added ps_unicoder exports
7609 * lib/message.c : remove #GNOME use GtkMessageDialog.
7610 Yeah, Dia gets dialogs wit icons cross-platform.
7612 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
7613 to gtk_spin_button_get_value()
7615 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
7617 add #undef GTK_DISABLE_DEPRECATED to still use ...
7618 * lib/prop_text.c : ... GtkText
7619 * lib/prop_widgets.c : ... GtkList
7620 * lib/prop_dialogs.c : ... gtk_signal_connect and more
7621 * lib/widgets.c : ... (too much to list here)
7623 * lib/ps-utf8.c : #include <string.h>
7625 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
7628 * Makefile.am: Adapted for gtk2.
7629 Removed dependencies on libunicode, on iconv(), on langinfo().
7631 * acconfig.h: removed (now obsolete)
7633 * lib/charconv.[ch]: removed (superceded by glib)
7634 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
7636 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
7637 libunicode types for their glib counterparts. Fixed the include
7638 paths for libxml2. Removed all traces of libxml1 or non-UTF8
7639 support (there were remains in objects/uml).
7642 2002-06-08 Hans Breuer <hans@breuer.org>
7644 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
7645 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
7646 Also use g_strdup()'s handling of NULL by returning NULL
7647 again at all places I found (remove unnecessary if's)
7649 * todo.gtk2 : new file to keep notes about gtk2 porting,
7650 further issues and thoughts and some status information.
7651 Also sent to dia-list ('Dia goes Gtk2 ...').
7653 [make it compile with GTK+ 2.0]
7655 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
7656 removed definition of S_ISDIR, S_ISREG and getlogin
7658 * */makefile.msc : Use GTK2 and libxml2
7659 BEWARE: makefile.am, configure.in not yet ported !
7661 * app/app_procs.c app/diagram.c : remove
7662 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
7663 but set use gtk_menu_set_accel_path() on menu creation
7665 * app/color_area.c lib/widgets.c :
7666 make use of gtk_color_selection_set_has_palette ()
7668 * app/commands.c : gdk_pixbuf_new_from_file wants an
7669 extra argument. Convert from DIR to GDir usage.
7671 * app/diagram_tree.c(button_press_callback) : need to return
7672 FALSE in the signal handler to let gtk process it further.
7673 (get_object_name) : don't leak 'prop'
7675 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
7676 dia_page_layout_destroy() getting called more than once
7678 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
7681 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
7683 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
7684 IIRC this code will not compile unchanged when USE_XIM is defined ...
7686 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
7688 * app/interface.c : there is no widget->klass anymore in Gtk,
7689 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
7690 parameter. Some tweaking of GtkWrapBox usage to get four tools in
7692 switch off GTK's double buffering on Dia's canvas. Otherwise we would
7693 get triple buffering and flicker.
7694 Replace call to GTK private function _gtk_accel_group_attach()
7695 with public gtk_window_add_accel_group()
7697 * app/layer_dialog.c : adapt to GtkTypeInfo changes
7699 * app/load_save.c lib/plug-ins.c lib/sheet.c
7700 objects/custom/custom.c :
7701 simplified by using g_file_test()
7703 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
7704 to gtk_accel_map_<save|load>. Also added common stock-icons
7707 * app/preferences.c : use gtk_button_set_label() instead
7708 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
7710 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
7711 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
7714 * app/recent_files.c : removed GLIB_CHECK_VERSION
7717 plug-ins/metapost/render_metapost.c
7718 plug-ins/pstricks/render_pstricks.c
7719 plug-ins/svg/render_svg.c :
7720 replace getlogin() with g_get_user_name() which always
7723 * app/render_gdk.c : gdk_region_union_with_rect() modifies
7724 inplace now and returns nothing, also less #hell
7726 * app/render_libart.c : some initial #hell cleaning, SuckFont
7727 still needs to vanish
7729 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
7730 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
7732 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
7733 * app/sheets_dialog_callbacks.c : some #hell and adaptions
7734 needed to GtkWrapBox api changes
7737 * lib/charconv.[hc] : removed from build
7738 [changed appropriate]
7739 * lib/prop_inttypes.c lib/prop_text.c :
7741 * lib/text.c : ported from HEAD but keep original indent
7742 intact. Original was done by Akira TAGOH.
7744 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
7746 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
7748 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
7749 same on all platforms now!
7751 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
7753 * lib/message.c : remove "charconv.h"
7755 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
7758 * lib/sheet.c : convert from DIR to GDir usage
7760 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
7762 * lib/widgets.h : include gtk<label|colorseldialog>.h
7765 * objects/fs/flow.c :
7766 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
7768 * objects/custom/custom.c : convert from DIR to GDir usage
7771 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
7774 2002-05-03 Hans Breuer <hans@breuer.org>
7776 * lib/dia_xml.c : make the well formed utf8 check
7777 actually work for û (non 7-bit ascii encoding)
7778 and fixed the file re-writing if the check fails.
7779 Thanks to Vitaly Lipatov for noticing the misbehaviour.
7781 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
7782 comment on last ressort font. Thanks to Maxim Sobolev.
7784 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
7786 * sheets/network.sheet.in: corrected a typo in plotter invocation.
7788 2002-06-03 Steffen Macke <sdteffen@web.de>
7790 * shapes/network/digitizing_board.png:
7791 * shapes/network/digitizing_board.shape:
7792 * shapes/network/plotter.png:
7793 * shapes/network/plotter.shape:
7794 * shapes/network/Makefile.am
7795 * sheets/network.sheet.in: added new plotter and digitizing
7798 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
7800 * lib/font.c: made a symptomatic fix to a segfault reported by
7801 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
7802 won't prevent dia from terminating, but should give more
7803 user-friendly information about why did it terminate.
7805 Two patches from <robert.young@dsto.defence.gov.au>:
7807 * app/display.c: fix the size of the canvas area which gets
7808 redrawn. There was an off-by one error (Closes #83659)
7810 * app/display.c: make sure we redraw all screen only when we
7811 really have to (some update_areas were mistakenly ignored) (Closes
7814 * NEWS: added a new entry for the future. Put there a reminder to
7815 update the dependencies.
7817 * configure.in: put in notes about what will change shortly.
7818 upped the version to 0.90+cvs (did also in config.h.win32)
7819 upped the minimum version for intltools (now 0.21)
7821 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
7827 bumped up version number to 0.90. Yay!
7829 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
7831 * doc/pl/Makefile.am:
7832 * doc/en/Makefile.am: fixed a "make install" problem when db2html
7833 is not present (Reported by Andrew Ferrier
7834 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
7835 problem which prevented me from ever seeing the problem in doc/en...
7837 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
7839 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
7840 way to read the font path from the XFS configuration files in
7841 order to enable FreeType (fixes #83098).
7843 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
7850 bumped up version number to 0.90.RC3
7852 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
7854 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
7855 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
7856 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
7857 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
7858 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
7859 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
7860 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
7861 Added Polish documentation.
7863 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
7865 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
7866 format for the UML State object. Now there's a hack to reload
7867 older files, and get them converted on the fly.
7868 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
7872 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
7873 and adapter the proplist predicates. A LOAD_ONLY property is for
7874 when you have legacy to support but can't resist moving your
7875 fields around... (was needed to support the above state.c fix).
7877 If the in-core of your object changes and you need a LOAD_ONLY
7878 property for the old format, you must keep some spare room in your
7879 object's struct to accomodate for the potential old-style
7880 attributes. Then in foo_load(), after having called
7881 object_load_using_properties(), you must inspect the old-style
7882 fields and act accordingly. Don't ever change the on-disk formats...
7884 * objects/UML/object.c:
7885 * objects/UML/small_package.c: added a check against empty
7886 stereotypes still consuming space. Reported by Dolores Alia de
7887 Saravia <loli@unsa.edu.ar>. Thanks!
7889 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
7891 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
7892 using libtool on an AFS partition.
7894 * po/update_potfiles_in.sh: now simply calls the recent intltools
7895 features; they work better than hand-crafted half-ignorant
7896 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
7899 * po/POTFILES.in: added back two files update_potfiles_in.sh
7900 didn't take into account. Now this file is not automatically
7902 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
7903 (the usual suspects, in fact).
7905 * configure.in: improved the isinf() / isfinite() detection on
7906 Solaris (MÃ¥rten Svantesson)
7908 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
7910 * configure.in: one expression was replacing $CFLAGS, removing
7911 whatever was previously in.
7912 Added more checks for isinf() and finite() on Solaris.
7914 * lib/geometry.h: added a macro defintion for isinf() if not
7915 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
7918 * app/commands.c: "cut" did not set the 'modified' bit (paste has
7919 been for a little while). Fixes #82994.
7921 * Makefile.am: added more stuff to distclean-local. This should make
7922 "make distcheck" pass! Thanks to the author of
7923 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
7924 ... I wonder who this Henstridge guy is ... ;-)
7925 Darn. Still doesn't pass. I give up for tonight.
7927 * po/update_potfiles_in.sh: updated to take care of sheet files,
7928 and to filter out the EML plug-in.
7929 * po/POTFILES.in: updated with all .c and all .sheet.in files
7931 * po/dia.pot, po/*.po: again updated all .po files with all
7932 strings (with the updated POTFILES). Now with the up-to-date
7933 POTFILES, just all languages have some fuzzy or untranslated
7934 strings (not that the 100% team was that large beforehand...)
7936 * po-checktrans: removed the comment about .po files not holding
7937 all translatable stuff, since now they do.
7939 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
7945 bumped up version number to 0.90.RC2
7947 2002-05-20 Hans Breuer <hans@breuer.org>
7949 * app/load_save.c : starting to increase
7950 Dias tolerance on incomplete/broken files. The
7951 corresponding bug is #56233. But the patch there does
7952 neither apply anymore nor does it really fix the problem
7953 but only delays it, e.g. even if it would be allowed
7954 to read a file without any layers, the later code can't
7956 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
7957 handle passing in NULL for the node gracefully.
7959 * shapes/network/printer.shape : added two more connection
7960 points - one at each side - to fix bug #60359
7962 * app/commands.c (edit_copy_callback) :
7963 add ddisplay_do_update_menu_sensitivity() to make
7964 sequence select-copy-paste work.
7966 2002-05-20 Hans Breuer <hans@breuer.org>
7968 * app/create_object.c (create_object_button_press) :
7969 added a call to ddisplay_do_update_menu_sensitivity()
7970 to make Ctrl^D etc work after object creation.
7973 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
7975 * objects/ER/entity.c:
7976 * objects/ER/attribute.c:
7977 * objects/ER/relationship.c: Patch to allow text size change from
7978 Celso Tetsuo Nagase Suzuki.
7980 2002-05-18 Steffen Macke <sdteffen@web.de>
7982 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
7984 * doc/en/graphics/greendots.png:
7985 * doc/en/home_network.png:
7986 * doc/en/line_props.png:
7988 * dia_gnome_icon.png:
7989 * dia_gnome_menu_icon.png:
7991 * shapes/network/telephone.png:
7992 * shapes/Logic/and.png:
7993 * shapes/Logic/buffer.png:
7994 * shapes/Logic/connector.png:
7995 * shapes/Logic/inverter.png:
7996 * shapes/Logic/nand.png:
7997 * shapes/Logic/nor.png:
7998 * shapes/Logic/not.png:
7999 * shapes/Logic/or.png:
8000 * shapes/logic/xor.png:
8001 * samples/ER-demo.dia:
8003 * samples/UML-demo.dia:
8004 * samples/chronograms.dia:
8005 * samples/grafcet.dia: re-added as binary files
8007 2002-05-17 Hans Breuer <hans@breuer.org>
8009 * lib/libdia.def : reflect removing of render_store.[ch]
8011 * */makefile.mingw : remove VERSION definition it's
8012 done in config.h.win32. Dia still doesn't work if
8013 build with mingw ...
8015 * RELEASE-PROCESS : removed */makefile.mingw
8017 * app/sheets_dialog_callbacks.c : if we use those
8018 ugly charconv_gtk_* functions lib/charconv.h needs to
8020 * lib/charconv.h : ... and needs to contain the
8021 necesseray prototypes _and_ #defines
8023 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
8024 is deprecated and does nothing but spit a warning. This broke
8025 the shape format writing. Fixed.
8026 Also with libxml2 pretty formatted xml isn't the default
8027 anymore, but needs to be enabled explicit: It is done now
8028 for shape files, which almost always needed to be edited by
8031 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
8032 from stderr - which is invalid on Dia/win32 - to g_print -
8033 which opens up a console window if necessary. This way
8034 a xml-deprecation-error shouldn't stay unnoticed next time
8036 2002-05-17 Steffen Macke <sdteffen@web.de>
8038 * shapes/Misc/folder.png:
8039 * shapes/Misc/file.png: re-added as binary files
8041 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
8043 * lib/font.c: Fixed segfault for fonts without family_name.
8045 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
8047 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
8049 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
8050 Lars' request, minor cosmetic stuff (mostly _() of human-readable
8051 XML comments in .sheet files; one translator booby-trap disarmed).
8053 * lib/charconv.c: moved #hell inside the body of the new
8054 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
8057 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
8059 * plug-ins/wpg/Makefile.am (INCLUDES):
8060 * plug-ins/shape/Makefile.am (INCLUDES):
8061 * plug-ins/svg/Makefile.am (INCLUDES):
8062 * plug-ins/pstricks/Makefile.am (INCLUDES):
8063 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
8064 and DEBUG_CFLAGS in some missing places.
8066 * MAINTAINERS: New file containing list of known package
8070 * lib/charconv.c: Charconv versions of some common gtk calls.
8072 * app/sheets_dialog_callbacks.c
8073 (on_sheets_new_dialog_button_ok_clicked),
8074 (on_sheets_dialog_button_edit_clicked),
8075 (on_sheets_dialog_button_remove_clicked),
8076 (on_sheets_edit_dialog_button_ok_clicked):
8077 * app/sheets.c (sheets_optionmenu_create),
8078 (sheets_optionmenu_create): Added utf8 translations.
8080 * app/sheets_dialog.c:
8082 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
8084 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
8086 * po/POTFILES.in: added app/sheets_dialog.c
8088 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
8090 * lib/charconv.c: (charconv_local8_to_utf8),
8091 (charconv_utf8_to_local8): tweaked the warnings to get more
8093 * lib/font.c: (font_get_suckfont): handled a potential case of
8094 uninitialised data being used (just paranoid)
8096 * objects/GRAFCET/boolequation.c: (opstring),
8097 (opblock_get_boundingbox), (opblock_draw),
8098 (boolequation_calc_boundingbox): some extra hoops needed now dia
8099 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
8100 symbols can't yet be used with their proper Unicode cells, since
8101 gtk will demand them in the Symbol font, expressed in the local
8104 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
8105 the fix just above).
8107 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
8109 * app/diagram_tree.c (get_object_name): Check that name property
8110 doesn't have null string.
8112 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
8114 * autogen.sh (DIE): Added conditional --force to gettextize.
8116 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
8119 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
8121 * RELEASE-PROCESS: added James' notes on how to properly make the
8124 * configure.in: removed macro nesting related to libpng.h, which
8125 was causing some problems on some systems (like mine, which made
8128 Made --enable-unicode, previously an option, the mandatory case.
8130 * app/Makefile.am: updated EXTRA_DIST
8133 * app/makefile.mingw:
8135 * doc/en/dia-manual.sgml:
8136 * plug-ins/makefile.mingw:
8137 * configure.in: bumped up the version number to 0.90.RC1
8139 * lib/render_objects.[ch]:
8140 * po/POTFILES.in: removed render_objects from the build.
8142 * plug-ins/Makefile.am:
8143 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
8144 so we keep its source in the tarball.
8146 * objects/network/*.c, Makefile.am:
8147 * objects/sybase/*.c, Makefile.am:
8148 * po/POTFILES.in: cleaned up the non-existent files from the po
8151 * plug-ins/Makefile.am: re-enabled metapost plug-in.
8153 2002-05-13 Steffen Macke <sdteffen@web.de>
8156 * app/command.c: added M. C. Nelson to the Authors
8157 * sheets/Circuit/Makefile.am: added firewall shape to build
8158 * sheets/network/Makefile.am: added telephone and microphone
8161 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
8163 * RELEASE-PROCESS: Added list of files that contain the release
8164 number or should otherwise be changed at each release.
8166 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
8168 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
8169 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
8171 2002-05-12 Hans Breuer <hans@breuer.org>
8173 * config.h.win32 : changed VERSION to 0.90.RC1
8175 * app/makefile.msc lib/makefile.msc : use renamed
8176 gdk-pixbuf version (same content but renamed because
8177 all the other gtk+ dlls are renamed) to avoid trouble
8178 mixing gtk versions (of which one would not
8181 * app/app_procs.c : removed recently unneeded
8182 inclusion of "sheets.h"
8184 * app/render_gdk.c : removed my own debug spew
8185 which should never made it to cvs
8187 * lib/render_object.[hc] : added
8188 #error "File not used anymore."
8190 * lib/libdia.def : updated externals
8192 * app/interface.c : dropped filenames need to be
8193 converted from uri with Gtk+2.0
8195 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
8197 * RELEASE-PROCESS (new): a draft document about how to release. To
8198 be discussed. (already with some input from Hans Breuer)
8200 2002-05-12 Steffen Macke <sdteffen@web.de>
8202 * sheets/Makefile.am: re-added Misc sheet to make process
8204 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
8206 * objects/FS/function.c: Added comments to humungous list of menu
8207 items, to aid translators.
8209 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8211 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
8213 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
8215 * app/interface.c (create_toolbox): Disallow shrinking beyond
8216 requested size. Fixes bug #59439, and confirms to GTK guidelines
8217 (see gtk_window_set_policy).
8218 (create_sheets): Removed now unnecessary set_usize call.
8220 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8222 * lib/beziershape.c (remove_handles): Fixing removal of last
8223 segment. Undo of removal still hokey.
8225 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
8227 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
8229 * lib/beziershape.c (beziershape_init): Removed early call to
8230 beziershape_update_data where points aren't set yet.
8231 (beziershape_add_segment): Use segment 0 instead of overflowing
8232 points array with segment+1.
8233 (beziershape_remove_segment): Proper offset for fixing
8235 (remove_handles): Proper offset.
8237 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
8239 * objects/GRAFCET/action.c (action_update_data): Init x value of
8240 click point for call to connpointlist_adjust_count.
8242 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
8244 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
8245 setting to where values are inited.
8247 * lib/polyshape.c (polyshape_init): Removed call to
8248 polyshape_update_data that tried to use uninitialized data.
8250 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8252 * app/sheets_dialog.c: Mass removal of //-style comments. The
8253 Irix compiler doesn't like them:( I do...
8255 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
8257 * app/render_libart.c (draw_string): Bail out when no GDK font is
8259 (set_font): Give error when font not found.
8260 (set_fillstyle): Intlized error msg.
8262 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
8263 modified when applied (and ok only does apply if apply is set
8264 sensitive). Fixes bug #75623.
8266 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
8268 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
8270 2002-05-05 Steffen Macke <sdteffen@web.de>
8272 * app/Makefile.am: added $(UNICODE_CFLAGS)
8274 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
8276 * app/commands.c (help_manual_callback): Check return value of
8279 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
8281 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
8284 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
8286 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
8288 * objects/UML/uml.c (uml_operation_read): Fix of UML default
8291 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8293 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
8294 Added button to toggle diagram compression.
8296 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8298 * lib/font.c: Support for loading extra kerning files, plus got
8299 rid of rounding errors. Bounding box mostly perfect for freetype
8301 (font_string_width): Fudge factor to get around nonlinearity of
8304 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
8306 * lib/font.c (font_string_width): YA font calculation scheme, with
8309 * objects/UML/class.c (umlclass_calculate_data): Uses the same
8310 font for drawing and calculating now.
8312 * configure.in: Added utime.h check.
8314 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
8315 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
8317 2002-04-26 Hans Breuer <hans@breuer.org>
8319 [ Instead of fixing about 70 occurances in 20 files
8320 where GTK_TALKS_UTF8_WE_DONT needed to be handled
8321 Dia on win32 from now on uses glib-2.0 and not
8322 only talks utf-8 with gtk-1.3 but also internally.
8323 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
8326 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
8327 #undef GTK_TALKS_UTF8_WE_DONT
8329 * */makefile.msc : changes to use glib-2.0 (still
8330 using gtk+1.3(win32-production)
8332 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
8333 adapt kevent->string handling, add <string.h>
8334 * app/render_gdk.c (get_text_width) : the length given
8335 is in chars, gdk_text_width() needs bytes
8337 * app/render_libart.c :
8338 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
8339 (could simplify the same way as done in render_gdk.c)
8341 * app/diagram_tree.c app/paginate_gdiprint.cpp
8343 * lib/prop_basic.c lib/prop_geomtypes.c
8344 lib/propdialgs.c lib/propobject.c :
8345 added <string.h> which is now removed from charconv.h
8347 * lib/charconv.h : optional use infrastructure from
8348 glib-2.0 -> only five direct function mapping left
8350 * lib/charconv.c : avoid to build this with glib-2.0
8352 * lib/font.c : no string conversion needed anymore
8353 when Dia and Gtk talk utf-8, also code adaptions
8354 for GLIB_CHECK_VERSION(2,0,0)
8356 * lib/libdia.def : removed charconv functions
8358 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
8359 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
8361 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
8362 removed GTK_TALKS_UTF8_WE_DONT
8364 * lib/text.c : finally(?) fixed cursor <place|move>ment
8365 for Umlauts. Also fixed char insertion, still wondering
8366 how this could ever work. Does realloc on Linux
8367 initialize the memory with zeros ?
8369 * objects/chronogram/chronoline_event.c
8370 objects/grafcet/boolequation.c :
8371 there is no uni_get_utf8 when building for glib-2.0.
8372 Replace with g_utf8_get_char() and g_utf8_next_char().
8374 * objects/uml/stereotype.c (bracketted_to_string) :
8375 simplify while adding code for glib-2.0 build
8377 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
8379 * app/diagram.h: Autosave field
8380 * app/diagram.c (diagram_set_modified): Sets autosave field.
8382 * objects/UML/usecase.c (usecase_update_data):
8383 * objects/flowchart/ellipse.c (ellipse_update_data):
8384 * objects/flowchart/parallelogram.c (pgram_update_data):
8385 * objects/flowchart/diamond.c (diamond_update_data):
8386 * objects/custom/custom_object.c (custom_update_data):
8387 * objects/UML/state.c (state_update_data):
8388 * objects/UML/small_package.c (smallpackage_update_data):
8389 * objects/UML/object.c (objet_update_data):
8390 * objects/UML/note.c (note_update_data):
8391 * objects/UML/node.c (node_update_data):
8392 * objects/UML/component.c (component_update_data):
8393 * objects/UML/classicon.c (classicon_update_data):
8394 * objects/UML/actor.c (actor_update_data):
8395 * objects/SADT/box.c (sadtbox_update_data):
8396 * objects/FS/function.c (function_update_data):
8397 All now update text boundaries from update_data.
8399 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
8402 2002-04-26 Hans Breuer <hans@breuer.org>
8404 * config.h.win32 : added VERSION definition here
8405 (and removed from makefile.msc's)
8407 * app/makefile.msc : added new files
8409 * app/app_procs.c (app_init): remove sheets_dialog_create()
8410 from start-up and ...
8412 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
8413 sheet_dialog here when it is really needed.
8414 #include "../lib/message.h", make sheets_dialog_create()
8415 return it's success or failing on (!custom_type_symbol).
8416 Although editing shapes is nice IMHO it isn't crucial enough
8417 to abort() Dia if it isn't possible.
8419 * app/sheet.h : adapt create_sheet_dialog() prototype
8421 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
8423 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
8424 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
8425 name space corrections for utime() and utim_buf #ifdef
8428 * lib/libdia.def : export new sheet functions
8430 * lib/makefile.msc : added new files
8432 * lib/render.c : don't put draw_bezier_with_arrows() in
8433 the DrawLineWithArrowsFunc slot
8435 * objects/custom/custom_object.c : #include <gmodule.h>
8436 and export 'custom_type' via G_MODULE_EXPORT
8438 * objects/uml/class_dialog.c : removed 'incompatible
8439 types' warnings. Some refactoring while making it fit
8440 on screen with 800x600 again.
8442 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
8444 * plug-ins/python/pydia-handle.h : extra parameter to
8445 PyDiaHandle_New to store the owner of the handle
8446 * plug-ins/python/pydia-handle.c : store handle owner
8447 on construction and use it in new method .connect()
8448 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
8449 adapt to changed prototype
8451 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
8453 * lib/text.c (text_calc_boundingbox): Will now return early if box
8456 * objects/flowchart/box.c (box_update_data): Now updates text
8457 width info from update_data.
8459 2002-04-23 Steffen Macke <sdteffen@web.de>
8461 * plug-ins/xfig/xfig-import.c: fixed text import
8463 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
8465 * app/export_png.c: Moved dialog functions to their own file.
8466 * app/dialogs.[ch]: New files with standard functions for creating
8467 small, transient dialogs (e.g. export options).
8468 * app/Makefile.am: Added dialogs.[ch]
8470 2002-04-19 Steffen Macke <sdteffen@web.de>
8472 * shapes/Misc/folder.*:
8473 * shapes/Misc/file.*:
8474 * shapes/Misc/Makefile.am:
8475 * shapes/Makefile.am:
8476 * sheets/Misc.sheet.in:
8477 * sheets/Makefile.am:
8478 * configure.in: added new Misc sheet containing filesystem shapes
8480 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
8482 * app/lineprops_area.c: Arrow selector in toolbox changed to use
8483 standard arrowdraw code. Line is thinner to make some arrowheads
8486 2002-04-18 Steffen Macke <sdteffen@web.de>
8488 * sheets/network.sheet.in:
8489 * shapes/network/telephone.shape:
8490 * shapes/network/Makefile.am: added telephone shape
8492 2002-04-16 Steffen Macke <sdteffen@web.de>
8494 * sheets/EML.sheet.in: commented out unavailable shapes
8496 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
8498 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
8499 variable assignment.
8501 2002-04-15 Steffen Macke <sdteffen@web.de>
8503 * plug-ins/dxf/dxf-import.c: text import works again
8504 * shapes/Pneumatic/Makefile.am: added compush shape
8505 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
8508 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
8510 * All these modifications are for the 'Sheets and Objects' dialog
8513 * app/pixmaps/line_break.xpm: new icon representing a line break.
8515 * app/pixmaps/n_a.xpm: new empty icon representing not available.
8517 * app/Makefile.am: added sheets_*.[ch] files to compile list.
8519 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
8521 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
8523 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
8525 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
8527 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
8529 * app/sheets_dialog_callbacks.h: [new file] support for " " "
8531 * app/interface.c: added 'interface_current_sheet_name' global to
8532 fill_sheet_wbox(); made fill_sheet_menu() non-static
8534 * app/interface.h: added extern declaration for aboves.
8536 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
8538 * app/sheets.h: [new file] declarations for backing store structures
8540 * lib/sheet.c: modification of new_sheet() parameters; introduction
8541 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
8542 changes to load_register_sheet().
8544 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
8545 added 'has_icon_on_sheet' flag to SheetObject structure; added
8546 'filename', 'scope', 'shadowing' fields to Sheet structure.
8548 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
8551 * lib/plug-isn.h: see above.
8553 * lib/object.c: added 'sheet.h' to include list; added several
8555 to detect objects which are not found on any sheet (for future use)
8556 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
8557 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
8559 * lib/object.h: added public declarations for above functions where
8562 * objects/custom/custom.c: made custom_object_load() non-static so we
8563 can load and interpret .shape files from the Sheets & Objects dialog
8565 * objects/custom/custom_object.c: made 'custom_type' non-static so
8566 we can differentiate between SVG shapes and other types.a
8568 2002-04-07 Hans Breuer <hans@breuer.org>
8570 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
8571 from 2002-01-22 to not destroy diagram->data->selected.
8572 Avoids to crash on Objects/Align/Vertical/Top
8574 * app/render_eps.c (draw_string) : un-const buffer
8575 It isn't at all const (g_malloc(), assignment, g_free()).
8576 Doesn't gcc catch such ?
8578 * lib/arrows.h : prototype calculate_arrow_point()
8580 * lib/font.c (font_get_suckfont) : no need to
8581 special case gdk_draw_string() with GTK_TALKS_UTF8,
8582 cause all the parameter differences are handled above
8584 * lib/libdia.def : updated externals
8586 * lib/makefile.msc : removed string_prerenderer, added render
8588 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
8589 is expected. [Sometimes it's good to read compiler warnings.]
8591 * objects/standard/image.c : simplified by use of g_strconcat()
8593 * plug-ins/python/makefile.msc : updated for Python 2.2
8595 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
8597 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
8598 directionality problem for zero-length line segments.
8600 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
8602 * app/diagram.c (diagram_ungroup_selected)
8603 (diagram_update_menu_sensitivity): Now allows ungrouping of
8604 several groups at once.
8606 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
8608 * lib/render.c, all renderers: Binary incompatibility, change to
8609 expandable renderops structure.
8611 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
8613 * objects/standard/Makefile.am:
8614 * objects/network/Makefile.am:
8615 * objects/UML/Makefile.am:
8616 * objects/ER/Makefile.am:
8617 * objects/FS/Makefile.am:
8618 * objects/flowchart/Makefile.am:
8619 * objects/custom/Makefile.am:
8620 * objects/GRAFCET/Makefile.am:
8621 * objects/chronogram/Makefile.am:
8622 * objects/SADT/Makefile.am:
8623 * plug-ins/cgm/Makefile.am:
8624 * plug-ins/pstricks/Makefile.am:
8625 * plug-ins/hpgl/Makefile.am:
8626 * plug-ins/wpg/Makefile.am:
8627 * plug-ins/svg/Makefile.am:
8628 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
8630 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
8632 * app/render_eps.c: Support for dumping TrueType fonts (taken from
8635 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
8637 * lib/render.c: New abstract super class for renderers.
8639 2002-03-07 Akira TAGOH <tagoh@redhat.com>
8641 * objects/ER/attribute.c (attribute_save): save a font property.
8642 (attribute_load): load a font property, and if can't load it, it's
8645 * objects/ER/entity.c (entity_save): save a font property.
8646 (entity_load): load a font property, and if can't load it, it's
8649 * objects/ER/relationship.c (relationship_save): save a font property.
8650 (relationship_load): load a font property, and if can't load it, it's
8653 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
8655 (umlclass_save): save the font and the font size properties.
8656 (umlclass_load): load the font and the font size properties.
8658 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
8660 * lib/string_prerenderer.[ch] (REMOVED):
8662 * lib/diagramdata.c:
8664 * app/render_eps.c: got rid of the string-specific string
8665 prerenderer, transitioned its functionality towards Lars'
8668 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
8670 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
8671 may need to rerun aclocal.
8673 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
8675 * lib/font.c: First attempt at Unicodeness for Freetype.
8677 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8679 * lib/font.c (font_string_width): Fixed font_string_width for
8680 freetype. BB is now almost right.
8682 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
8685 * app/paginate_psprint.c (paginate_psprint):
8687 * app/render_eps.c: Support for dumping postscript fonts into
8688 postscript files with freetype. Fairly primitive, but works.
8689 Unicode version may have problems.
8691 2002-02-28 Akira TAGOH <tagoh@redhat.com>
8693 * objects/UML/class_dialog.c (class_read_from_dialog)
8694 (class_fill_in_dialog), (class_create_page): add the font selector and
8695 the font size selector.
8697 * objects/UML/class.c (umlclass_draw): uses each font_height.
8698 (umlclass_calculate_data): ditto.
8699 (fill_in_fontdata): add initial value of new font_height.
8700 (umlclass_copy): add new font_height.
8702 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
8704 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
8706 * lib/font.c: calculate font metrics properly and stop guessing at
8709 2002-02-28 Akira TAGOH <tagoh@redhat.com>
8711 * configure.in: changed gtk_advancement value to dia_talks_utf8.
8712 right now Dia is working with UTF-8 internally. it means Dia probably
8713 support most languages also including the languages which heretofore
8714 didn't work correctly.
8716 2002-02-26 Akira TAGOH <tagoh@redhat.com>
8718 * objects/FS/function.c: add related text properties.
8719 (function_get_props), (function_set_props): add handling attribute.
8721 * objects/FS/flow.c: add related text properties.
8722 (flow_get_props), (flow_set_props): add handling attribute.
8724 * objects/FS/flow-ortho.c: add related text properties.
8725 (orthflow_set_props), (orthflow_get_props): add handling attribute.
8727 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
8729 * objects/ER/entity.c: ditto.
8731 * objects/ER/attribute.c: ditto.
8733 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
8735 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
8737 * autogen.sh: add a check for missing intltoolize.
8739 2002-02-20 Akira TAGOH <tagoh@redhat.com>
8741 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
8742 charcode, it was registered the duplicate item to HashTable. fix.
8744 * app/render_gnomeprint.c (get_width_string): add new function.
8745 (draw_string): fix non-multibyte specific code.
8747 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
8749 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
8751 * lib/font.c: do not try to search paths that do not begin with
8752 '/', like X Font Server addresses.
8754 * objects/UML/message.c (message_draw): free mname when not
8755 message->text but CREATE or DESTROY.
8757 * objects/UML/uml.h:
8758 * objects/UML/uml.c:
8759 * objects/UML/class_dialog.c: added code to handle a stereotype
8760 attribute for operations.
8762 2002-02-19 Akira TAGOH <tagoh@redhat.com>
8764 * lib/Makefile.am: add LIBART_CFLAGS.
8766 2002-02-15 Hans Breuer <hans@breuer.org>
8768 * lib/font.c (font_get_suck_font): the black and white pixel values
8769 need to be taken from a 1 bit colormap rather than the default colormap.
8770 (fixed again, last time was 2000-05-26)
8772 Also handle the case where GTK_TALKS_UTF8 and expects all strings
8773 passed in to be in this encoding.
8775 * lib/libdia.def : export suck_font_free()
8777 * lib/text.c (text_draw) : avoid circular dependency to ../app
8778 at least for the !USE_XIM case, where it is unnecessary.
8780 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
8782 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
8784 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
8785 * sheets/Circuit.sheet.in: added new shape microphone
8786 * shapes/Circuit/speaker_de.shape: Added a connection point.
8788 2002-02-13 Akira TAGOH <tagoh@redhat.com>
8790 * app/render_libart.c (draw_string): fixed build issue for Win32.
8792 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
8795 * configure.in: fixed testing gtk_advancement.
8797 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
8799 2002-02-12 Akira TAGOH <tagoh@redhat.com>
8801 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
8804 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
8806 * app/group.c (group_copy): Made new object properly initialized
8809 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
8811 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
8813 2002-02-10 Akira TAGOH <tagoh@redhat.com>
8815 * lib/text.c (text_draw): fixed XIM transaction.
8817 * app/interface.c (create_display_shell): add signal for
8820 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
8822 (set_input_dialog): remove.
8823 (ddisplay_canvas_events): remove XIM transaction. it can't transact
8824 correctly on this function.
8826 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8829 * app/export_png.c: Added checks for interactivity (maybe this
8830 should be a hook after all?).
8832 * app/filedlg.c (file_export_callback): Made export dialog add
8833 suffix when reopened.
8835 * app/export_png.c: Added dialog asking for export size.
8837 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8839 * lib/widgets.c: Fixed font reselection problem and first font
8842 * objects/UML/actor.c (actor_update_data): Changed to have
8843 connection points below text.
8845 2002-02-08 Akira TAGOH <tagoh@redhat.com>
8847 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
8850 2002-02-07 Akira TAGOH <tagoh@redhat.com>
8852 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
8853 strings which is given.
8854 (suck_font): remove. it's any longer needed.
8856 * app/render_libart.c (set_font): don't get suckfont.
8857 (draw_string): get suckfont only which is needed for now.
8859 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8861 * lib/text.c: Fixes for misunderstood width functions.
8863 2002-02-05 Hans Breuer <hans@breuer.org>
8865 * lib/dia_xml.c : use g_strconcat() instead of
8866 malloc, strcpy, strcat dance
8867 * app/properties.c : same here and plug memory leak
8868 (gtk functions don't eat strings)
8870 * objects/UML/message.c : there is no g_sprintf()
8871 use g_strdup_printf() instead ...
8873 2002-02-05 Akira TAGOH <tagoh@redhat.com>
8875 * lib/message.c (gtk_message_internal): doesn't need to convert to
8878 * app/render_libart.c (draw_string): fixed transaction for UTF-8
8880 (get_text_width): ditto.
8882 * app/Makefile.am (EXTRA_DIST):
8883 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
8885 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
8886 This function needs ifdef HAVE_FREETYPE because don't use it for
8889 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
8891 * NEWS: updated with the new dependencies.
8893 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8895 * objects/UML/class.h:
8896 * objects/UML/class.c:
8897 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
8898 property using a GtkMenu. Options are Undefined, In, Out, In & Out
8900 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
8902 * app/render_libart.c: Slow but working libart freetype renderer,
8905 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8907 * app/render_gdk.c (draw_string): Fixed gc_function bug.
8909 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
8911 * lib/font.c (freetype_render_string):
8914 * app/render_gdk.h: Changed freetype_render_string to use
8915 callback. Rendering is broken.
8917 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
8919 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8921 * objects/UML/uml.h:
8922 * objects/UML/uml.c: added UMLInheritanceType and isQuery
8923 (constant) UML Operation attributes. UMLInheritanceType is either
8924 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
8926 * objects/UML/class.h:
8927 * objects/UML/class.c:
8928 * objetcs/UML/class_dialog.c: added code to handle new
8929 UMLOperation attributes via a GtkMenu and a checkbox.
8931 2002-02-03 Akira TAGOH <tagoh@redhat.com>
8933 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
8934 several client doesn't work with previous codes.
8936 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
8938 * lib/font.c (freetype_render_string): Kerning. Very few fonts
8941 2002-02-02 Akira TAGOH <tagoh@redhat.com>
8943 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
8944 when doing the operation like invert the objects after active view is
8945 destroyed. when changes focus, it needs to set active_display.
8947 * app/layer_dialog.c (dia_layer_update_from_layer):
8948 (layer_dialog_edit_layer): need to convert to locale encoding
8949 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
8950 (edit_layer_ok_callback):
8951 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
8953 * lib/diagramdata.c (new_diagram_data): ditto.
8955 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
8957 * lib/diagramdata.c (new_layer): use utfchar instead of char for
8960 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
8961 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
8962 it's needed for now. also this function needs prototype declaration.
8964 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
8966 * lib/widgets.c: Style now functional on font selector. Some leak
8967 possible, but doesn't show up under stress test.
8969 2002-01-31 Akira TAGOH <tagoh@redhat.com>
8971 * app/plugin-manager.c (clist_select_row): name and description needs to
8972 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
8973 (get_plugin_manager): ditto.
8975 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
8977 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
8980 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
8981 when prop->string_data is NULL.
8983 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8986 * lib/widgets.h: New font selector separating font and style.
8987 Style not functional yet.
8989 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
8992 * app/render_gdk.c (draw_string): More freetype support, now
8993 renders text. Still broken is font selection and exporting.
8995 2002-01-30 Akira TAGOH <tagoh@redhat.com>
8997 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
9000 * objects/chronogram/chronoline.c (chronoline_create): ditto.
9002 * objects/UML/usecase.c (usecase_create): ditto.
9004 * objects/UML/state.c (state_create): ditto.
9006 * objects/UML/object.c (objet_create): ditto.
9008 * objects/UML/node.c (node_create): ditto.
9010 * objects/UML/message.c (message_create): ditto.
9012 * objects/UML/component.c (component_create): ditto.
9014 * objects/UML/classicon.c (classicon_create): ditto.
9016 * objects/UML/actor.c (actor_create): ditto.
9018 * objects/SADT/box.c (sadtbox_create): ditto.
9020 * objects/SADT/annotation.c (annotation_create): ditto.
9022 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
9024 * objects/GRAFCET/step.c (STEP_FONT):
9025 * (step_create): ditto.
9027 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
9029 * objects/GRAFCET/action.c (ACTION_FONT):
9030 (action_create): ditto.
9032 * objects/FS/function.c (function_create): ditto.
9034 * objects/FS/flow.c (flow_create):
9036 (flow_apply_defaults): ditto.
9038 * objects/FS/flow-poly.c (flow_create):
9040 (flow_apply_defaults): ditto.
9042 * objects/FS/flow-ortho.c (orthflow_create):
9044 (orthflow_apply_defaults): ditto.
9046 * objects/ER/relationship.c: use utfchar instead of char for structure.
9047 (relationship_create): name needs to convert to UTF-8.
9049 * objects/ER/attribute.c: use utfchar instead of char for structure.
9050 (attribute_create): name needs to convert to UTF-8.
9052 * objects/ER/entity.c: use utfchar instead of char for structure.
9053 (entity_create): name needs to convert to UTF-8.
9055 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
9056 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
9057 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
9058 items. if GTK_TALKS_UTF8 isn't defined.
9060 2002-01-29 Akira TAGOH <tagoh@redhat.com>
9062 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
9063 it was my careless mistake...
9065 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
9066 a font name, because there are strings which isn't shown by "Courier".
9067 We need to consider a way to feel free to choose a font at runtime.
9069 * lib/render_object.c (render_object_load): ditto.
9071 * lib/text.c (data_text): ditto.
9073 * objects/EML/instantiation.c (instantiation_create): ditto.
9075 * objects/EML/interaction-ortho.c (interaction_ortho_create):
9076 (interaction_ortho_load): ditto.
9078 * objects/EML/interaction.c (interaction_create):
9079 (interaction_load): ditto.
9081 * objects/EML/process.c (fill_in_fontdata): ditto.
9083 * objects/ER/attribute.c (attribute_create):
9084 (attribute_load): ditto.
9086 * objects/ER/entity.c (entity_create):
9087 (entity_load): ditto.
9089 * objects/ER/relationship.c (relationship_create):
9090 (relationship_load): ditto.
9092 * objects/UML/association.c (association_create):
9093 (association_load): ditto.
9095 * objects/UML/class.c (fill_in_fontdata): ditto.
9097 * objects/UML/constraint.c (constraint_create): ditto.
9099 * objects/UML/dependency.c (dependency_create): ditto.
9101 * objects/UML/generalization.c (generalization_create): ditto.
9103 * objects/UML/implements.c (implements_create): ditto.
9105 * objects/UML/large_package.c (largepackage_create): ditto.
9107 * objects/UML/note.c (note_create): ditto.
9109 * objects/UML/realizes.c (realizes_create): ditto.
9111 * objects/UML/small_package.c (smallpackage_create): ditto.
9113 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
9115 * objects/custom/custom_object.c (custom_create): ditto.
9117 * objects/network/antenna.c (render_to_store): ditto.
9119 * objects/network/computer.c (render_to_store): ditto.
9121 * objects/network/disc.c (render_to_store): ditto.
9123 * objects/network/flash.c (render_to_store): ditto.
9125 * objects/network/hub.c (render_to_store): ditto.
9127 * objects/network/modem.c (render_to_store): ditto.
9129 * objects/network/modularswitch.c (render_to_store): ditto.
9131 * objects/network/monitor.c (render_to_store): ditto.
9133 * objects/network/printer.c (render_to_store): ditto.
9135 * objects/network/rj45plug.c (render_to_store): ditto.
9137 * objects/network/scead-plug.c (render_to_store): ditto.
9139 * objects/standard/textobj.c (textobj_load): ditto.
9141 * objects/sybase/client.c (render_to_store): ditto.
9143 * objects/sybase/dataserver.c (render_to_store): ditto.
9145 * objects/sybase/ltm.c (render_to_store): ditto.
9147 * objects/sybase/repserver.c (render_to_store): ditto.
9149 * objects/sybase/rsm.c (render_to_store): ditto.
9151 * objects/sybase/stableq.c (render_to_store): ditto.
9153 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
9155 * objects/UML/uml.h (UML_STEREOTYPE_START):
9156 (UML_STEREOTYPE_END): changes default strings.
9158 2002-01-28 Akira TAGOH <tagoh@redhat.com>
9160 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
9161 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
9162 which is given to arguments isn't UTF-8. so don't need to convert it.
9163 if GTK+ handle UTF-8, also don't need to convert it.
9165 (bracketted_to_string): fixed transaction for UTF-8 support.
9166 also start/end bracket is not necessarily 1 character. so that when use
9167 strend(), it doesn't work correctly.
9168 (string_to_stereotype): use utfchar instead of char.
9169 (remove_stereotype_from_string): ditto.
9170 (stereotype_to_string): ditto.
9172 * objects/UML/stereotype.h: ditto.
9174 * objects/UML/message.c: use utfchar instead of char for structure.
9175 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
9177 * objects/UML/small_package.c: use utfchar instead of char for structure.
9179 * objects/UML/realizes.c: ditto.
9181 * objects/UML/object.c: ditto.
9183 * objects/UML/large_package.c: ditto.
9185 * objects/UML/implements.c: ditto.
9187 * objects/UML/generalization.c: ditto.
9189 * objects/UML/dependency.c: ditto.
9191 * objects/UML/constraint.c: ditto.
9193 * objects/UML/component.c: ditto.
9195 * objects/UML/class_dialog.c (attributes_get_current_values):
9196 (attributes_list_new_callback, attributes_fill_in_dialog):
9197 (parameters_set_values, parameters_get_values):
9198 (parameters_get_current_values, parameters_list_new_callback):
9199 (operations_set_values, operations_get_values):
9200 (operations_get_current_values, operations_list_new_callback):
9201 (operations_fill_in_dialog, templates_set_values):
9202 (templates_get_values, templates_get_current_values):
9203 (templates_list_new_callback, templates_fill_in_dialog):
9204 fixed transaction for UTF-8 support.
9206 2002-01-27 Akira TAGOH <tagoh@redhat.com>
9208 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
9210 * objects/UML/class_dialog.c (class_read_from_dialog):
9211 (class_fill_in_dialog):
9212 (attributes_get_values): ditto.
9214 * objects/UML/actor.c (actor_create): ditto.
9216 * objects/UML/class.c (umlclass_calculate_data): ditto.
9218 * objects/UML/association.c (association_apply_properties):
9219 (fill_in_dialog): ditto.
9221 * objects/UML/uml.c (uml_get_attribute_string):
9222 (uml_get_operation_string):
9223 (uml_get_parameter_string):
9224 (uml_get_formalparameter_string): use utfchar instead of char.
9226 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
9229 * objects/UML/class.h: use utfchar instead of char.
9231 * lib/dia_xml.c (data_add_string): ditto.
9233 * lib/text.c (text_insert_char): fixed characters# calculation
9234 when includes multibytes character in strings.
9236 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
9238 Patch from Richard Rowell <rwrowell@bellsouth.net>:
9240 * app/lineprops_area.c:
9243 * lib/widgets.c: added crow foot arrow and cross arrow
9245 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
9247 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
9249 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
9251 * po/update.pl (REMOVED):
9252 * po/update.sh (REMOVED):
9253 * xml-i18n-merge.in.kg (REMOVED):
9254 * xml-i18n-update.in.kg (REMOVED):
9255 * sheets/Makefile.am:
9258 * configure.in: converted from xml-i18n-tools to intltools
9260 This looks like it fixes the build bugs of the snapshot tarballs,
9261 and it supersedes #69611.
9263 2002-01-25 Akira TAGOH <tagoh@redhat.com>
9265 * lib/text.c (text_insert_char): fixed characters# calculation.
9266 it's not string length.
9268 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
9269 is defined, needs to convert a description to UTF-8.
9271 * app/render_gdk.c (get_text_width): fixed transaction for
9272 UTF-8 support. also should uses gdk_text_width_wc() instead
9273 of gdk_text_width().
9275 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
9276 is defined, needs to convert to locale encoding for display.
9277 Also use utfchar instead of char for argument.
9279 2002-01-24 Hans Breuer <hans@breuer.org>
9281 * app/commands.c(edit_paste_callback and more) :
9282 call diagram_modified(ddisp->diagram) to fix #68083
9283 (help_menu_callback) : plug a DIR leak
9285 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
9286 GTK_TALKS_UTF8_WE_DONT
9288 * app/render_gdk.c(get_text_with) : it's a bad idea to use
9289 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
9290 gdk_text_width(). The length value is still questionable ...
9292 * lib/charconv.c : use functions already available in early
9293 GLIB-1.3 days whiches API hasn't changed since, to avoid
9294 version problems with the win32 build
9296 * lib/font.c : finally fix #58045 and #68208
9298 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
9300 2002-01-24 Akira TAGOH <tagoh@redhat.com>
9302 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
9303 no strings, fixed transaction.
9305 * lib/charconv.h: fixed typo.
9307 * app/menus.c: fixed typo.
9309 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
9311 * objects/UML/object.c: attrib's type uses utfchar instead of char.
9313 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
9315 * lib/text.c (text_create_change): use unichar instead of char.
9317 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
9318 use utfchar instead of char.
9320 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
9323 * lib/charconv.c (charconv_utf8_get_char): add new function.
9325 2002-01-23 Akira TAGOH <tagoh@redhat.com>
9327 * lib/text.c (text_delete_forward, text_delete_backward,
9328 text_split_line): fixed transaction for UTF-8 support.
9330 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
9331 strlen[] has string length for UTF-8, so has to use alloclen[].
9335 * .cvsignore: add dia.pot.
9337 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
9339 * configure.in: Added "sk" to ALL_LINGUAS.
9341 2002-01-22 Akira TAGOH <tagoh@redhat.com>
9343 * lib/text.c (text_set_string, new_text, text_copy,
9344 text_get_string_copy, text_join_lines): use utfchar instead of gchar
9347 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
9350 * lib/charconv.c (charconv_utf8_strchr): add new function.
9352 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
9354 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
9356 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
9357 strings to the appropriate encoding.
9359 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
9361 * app/object_ops.c (object_list_align_[hv]): Leak fix.
9363 * lib/Makefile.am (INCLUDES): Added debug flags.
9365 * app/object_ops.c: Fixed ordering problem of align equi-distant &
9368 2002-01-21 Akira TAGOH <tagoh@redhat.com>
9370 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
9373 * objects/GRAFCET/boolequation.c: fixed invalid comment.
9375 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
9376 when defined UNICODE_WORK_IN_PROGRESS.
9378 * lib/dia_xml.c (data_add_string): fixed typo.
9380 2002-01-20 Akira TAGOH <tagoh@redhat.com>
9382 * configure.in: fixed test gtk_advancement.
9384 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
9386 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
9389 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
9391 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
9392 tool tips, preferences, and arbitrarily long ~/.dia/history
9394 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
9395 removed 'Open Recent'; added new separators for recent documents on
9398 * app/interface.[ch] (interface_get_toolbox_shell): new function
9400 * app/diagram.c: added new parameter to recent_file_history_add() call
9402 * app/preferences.[ch]: added new 'Recent documents list size'
9405 2002-01-18 Akira TAGOH <tagoh@redhat.com>
9407 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
9408 if it failed, should be used gdk_font_load ().
9410 * lib/font.c (font_data): added the font entries for CJK.
9412 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
9414 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
9416 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
9418 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
9420 Patch from Martin Cracauer <cracauer@cons.org>:
9422 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
9425 2002-01-01 Hans Breuer <hans@breuer.org>
9427 * app/command.c : optional use GDI printing on windoze
9429 * app/preferences.[hc] : add option 'prefer_psprint' to
9430 select the print engine to use (could be used for Dia/Gnome
9433 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
9434 wmf plug-in with the common win32 print api. Now printing
9435 should work almost as expected from a windows program :-)
9437 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
9438 to .edit_delete to avoid clashes with C++
9440 * app/makefile.msc : updated for GDI printing
9442 * plug-ins/wmf/wmf.cpp : some small modifications to support
9443 GDI printing. Also swap R and B channel in draw_image()
9445 * app/makefile.am : added windows only files to EXTRA_DIST
9447 * objects/uml/class.c(umlclass_set_props) : force recalculation
9448 when applying properties
9450 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
9451 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
9452 many incompatible changes (and would force a gtk update)
9454 * objects/makefile.msc : don't build C-Objects which are
9455 already available as 'pure shape'
9457 * plug-ins/makefile.msc : remove diaimport from build. It was
9458 only available via mailing-list and is broken since the
9462 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
9464 * app/preferences.[hc] : tweaked preferences.c to make
9465 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
9466 added some more DiagramTree prefererences and their own
9469 * app/diagram_tree.[hc] : allow to sort by object type or name
9470 and hide by type ...
9471 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
9472 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
9474 * app/diagram_tree_window.c : handle hidden types and window
9477 2001-12-20 Hans Breuer <hans@breuer.org>
9479 * plug-ins/python/Makefile.am : patch from Peter Moulder
9480 <pmoulder@csse.monash.edu.au> to make the python plug-in
9481 compile on *nix too.
9483 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
9485 Patch from Alan <horkana@tcd.ie>:
9487 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
9489 2001-11-20 Hans Breuer <hans@breuer.org>
9491 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
9493 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
9495 * app/diagram_tree.[hc] : Added new functions and types for
9496 sorting diagram and objects, and attaching the popup menus.
9498 * app/preferences.h: Added more diagram tree preferences, using a
9499 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
9500 height and width of the diagram tree window and the default sort
9501 orders for diagrams and objects.
9503 * app/preferences.c (prefs_data): Added new entries for the new
9504 diagram tree preferences.
9506 * app/preferences.c (prefs_tabs): New tab for diagram tree
9509 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
9510 * app/diagram_tree_window.c (diagram_tree_window_new):
9511 * app/interface.c (create_tree_window): The diagram tree window is
9512 initialised using the DiagramTreeConfig part of prefs.
9515 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
9517 * app/diagram_tree_menu.[hc]: New files. Functions to create the
9518 diagram tree popup menus.
9520 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
9521 the diagram tree popup menus.
9523 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
9526 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
9528 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
9529 double-clicking a diagram tree node raises the diagram window
9530 to the foreground (and, if a object node was clicked, selects the
9531 object in the diagram).
9533 * app/diagram_tree.c (select_tree_widget): selecting an object
9534 node with single click simply updates it (no raise).
9536 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
9537 These changes make the diagram tree lazy: it is not created unless
9538 the diagram tree window is requested.
9540 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
9541 function for creating the tree window.
9543 * app/interface.c (create_tree_window): call
9544 create_diagram_tree_window() instead of diagram_window().
9546 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
9547 (diagram_tree_update, diagram_tree_update_name)
9548 (diagram_tree_add_object, diagram_tree_add_objects)
9549 (diagram_tree_remove_object, diagram_tree_remove_objects)
9550 (diagram_tree_update_object): accept a NULL tree as a nominal
9551 argument (and do nothing in this case!), so that the diagram tree
9552 is not initialised if not used.
9554 * app/diagram_tree_window.c (diagram_tree): do not create the
9555 diagram tree until diagram_window() or diagtree_show_callback()
9558 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
9559 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
9561 * app/diagram_tree_window.[hc] : (new files) implementation of
9562 the diagram tree window, a container for a diagram tree. [Removed
9563 the horizontal scroll bar glitch by disableing it]
9565 * app/diagram_tree.[hc] : (new files) implementation of the
9566 diagram tree widget. [Don't rely on the layers GPtrArray to be
9567 NULL terminated, but use its ->len field]
9569 * app/Makefile.am (dia_core_files): added new files
9570 diagram_tree.[hc] and diagram_tree_window.[hc]
9572 * app/interface.[hc] : (create_tree_window): this function
9573 creates the new diagram tree window widget
9575 * app/undo.c (delete_objects_apply) (delete_objects_revert)
9576 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
9577 (ungroup_objects_apply) (ungroup_objects_revert):
9578 every time that an undoable command modifies a diagram
9579 adding/removing/(un)grouping objects, a diagram_tree_something() is
9580 invoked to keep the diagram tree window in sync
9582 * app/properties.c (properties_apply): call to
9583 diagram_object_modified(), which updates the diagram tree window
9584 when the properties of an object are modified
9586 * app/preferences.[hc] : new "show_diagram_tree" configuration option
9587 (whether the diagram tree window should be shown on dia startup)
9589 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
9591 * app/diagram.h (diagram_object_modified): callback notifying of a
9592 diagram object modification
9594 * app/diagram.c (diagram_load_into): added call to
9595 diagram_tree_add() to add newly loaded diagrams to the diagram
9597 (diagram_destroy): call to diagram_tree_remove() to remove a
9598 destroyed diagram from the diagram tree window
9599 (diagram_add_object): call to diagram_tree_add_object() to add an
9600 object to the diagram tree window
9601 (diagram_add_object_list): as above, but with an object list
9602 (diagram_selected_break_external): deletion of objects from the
9603 diagram is detected here, and diagram_tree_remove_object() is
9604 invoked to remove the object from the diagram tree window (it
9605 would be nice to have a diagram_remove_object() in the Diagram
9607 (diagram_set_filename): update the diagram tree window when a
9608 diagram's filename changes
9610 * app/commands.c (file_new_callback): added call to
9611 diagram_tree_add() to add newly created diagrams to the diagram
9614 * app/app_procs.c (app_init): added call to create_tree_window()
9616 * app/makefile.msc : updated
9618 2001-10-28 Hans Breuer <hans@breuer.org>
9620 * app/preferences.h (DiaPreferences):
9621 * app/preferences.c (prefs_data): new "show_diagram_tree"
9622 configuration option (whether the diagram tree window should be
9623 shown on dia startup)
9625 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
9626 entry (both for GNOME and gtk)
9628 * app/diagram.h (diagram_object_modified): callback notifying of a
9629 diagram object modification
9631 * app/diagram.c (diagram_load_into): added call to
9632 diagram_tree_add() to add newly loaded diagrams to the diagram
9634 (diagram_destroy): call to diagram_tree_remove() to remove a
9635 destroyed diagram from the diagram tree window
9636 (diagram_add_object): call to diagram_tree_add_object() to add an
9637 object to the diagram tree window
9638 (diagram_add_object_list): as above, but with an object list
9639 (diagram_selected_break_external): deletion of objects from the
9640 diagram is detected here, and diagram_tree_remove_object() is
9641 invoked to remove the object from the diagram tree window (it
9642 would be nice to have a diagram_remove_object() in the Diagram
9644 (diagram_set_filename): update the diagram tree window when a
9645 diagram's filename changes
9647 * app/commands.c (file_new_callback): added call to
9648 diagram_tree_add() to add newly created diagrams to the diagram
9651 * app/app_procs.c (app_init): added call to create_tree_window()
9653 2001-10-28 Hans Breuer <hans@breuer.org>
9655 * plug-ins/python/pydia-property.c : apparently I missed
9656 to commit this last time. Now it has some more SetAttr
9657 support (apply from property)
9659 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
9661 * plug-ins/python/pydia-text.[ch] : new files
9663 2001-10-14 Hans Breuer <hans@breuer.org>
9665 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
9666 strings. Use g_strdup() for these.
9668 libxml2 does not produce 'any extra indentation when saving a tree'
9669 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
9670 libxml(1). To get human readable XML some extra tweaking is required.
9671 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
9672 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
9673 * app/preferences.[ch] : initialize 'pretty_formated_xml'
9675 * lib/libdia.def : updated externals
9677 * lib/properties.h : add prototype for prop_list_from_single ()
9679 * plug-ins/makefile.msc : build metapost plug-in
9681 * plug-ins/metapost/render_metapost.c : msvc does not like
9682 switch labels without operation 'default: }'. Added a noop.
9684 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
9685 * plug-ins/python/diamodule.c : added PyDiaText
9686 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
9687 Although the python plug-in does not use libxml at all, the
9688 headers are required to use the lib/prop*.h headers
9690 * plug-ins/python/pydia-diagramdata.c : added wrappers for
9691 update_extents and get_sorted_selected (should I duplicate
9692 more functions from PyDiaDiagram or should they be moved?)
9694 * plug-ins/python/pydia-properties.c : allow to set (some) properties
9695 through the dictionary api
9696 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
9697 * plug-ins/python/pydia-property.c : implement it (currently only
9698 string properties can be set)
9700 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
9701 Quoting myself: 'Still not convinced that this is better than an
9702 integral property->type and some casting ...
9703 It is trading a straightforward 40 lines switch statement to
9704 this nice 'type safe' function mapping (about 125 lines)'
9705 (But now it works again, better than changing the News file :)
9707 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
9709 patch from <robert.young@dsto.defence.gov.au>:
9710 * objects/UML/component.c: remember to set font in UML component
9711 object (fixes #62132)
9713 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
9715 * plug-ins/metapost/metapost.c:
9716 * plug-ins/metapost/Makefile.am:
9717 * plug-ins/metapost/render_metapost.c:
9718 * plug-ins/metapost/render_metapost.h:
9719 Metapost renderer from Chris Sperandio
9721 2001-09-14 Hans Breuer <hans@breuer.org>
9723 * app/render_gdk.c : reflect the fact, that GTK already talks
9724 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
9727 * app/render_libart.c : trying to fix #58045 but it appears
9728 to be an Gdk/win32, too.
9730 * lib/charconv.c : handle utf8 conversion with the help of
9731 glib-1.3 even in the !HAVE_UNICODE case.
9733 * lib/dia_xml.c : reduce complaing about missing encoding, by
9734 detecting if the default (utf8) would break the file.
9736 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
9738 * lib/charconv.c: (get_local_charset): at least please try to not
9739 silently change the logic, while avoiding crashes.
9741 * lib/font.c: (suck_font): put a #error, we have a nasty something
9742 to fix there before we switch to Gtk 2.0.
9744 2001-09-09 Hans Breuer <hans@breuer.org>
9746 * **/makefile.mingw : Approach to compile Dia with mingw.
9747 Compiling mostly works but running does not (yet) ...
9750 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
9751 Apparently mingw needs it too.
9752 - enable 'normalization' of a null verctor. Otherwise the beziergon
9753 bounding box calculation would be broken at least with msvc. What's
9754 the mathematical correct result of 0.0/0.0 ?
9756 * lib/dia_xml.c : isinf() for mingw too.
9758 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
9761 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
9764 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
9766 * lib/libdia.def : updated externals. Apparently mingw needs
9767 them to produce the right mangling.
9769 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
9772 2001-09-08 Wang Jian <lark@linux.net.cn>
9774 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
9776 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
9778 * lib/dia_xml_libxml.h:
9779 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
9780 libxml1's code, to rework the output file before it gets committed
9781 to disk. This is rubbish, and will be removed when libxml2
9782 switches from discouraged to mandatory.
9783 All in all, this fixes #60152.
9786 * lib/charconv.c: (charconv_unichar_to_utf8):
9787 made the type of the input parameter explicitly an unsigned long.
9789 * configure.in: Added a check for libz (we must now include it
9790 explicitly, for xmlDiaSaveFile).
9792 * app/load_save.c: (diagram_data_save):
9793 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
9794 (dia_pluginrc_write):
9795 * plug-ins/shape/shape-export.c: (new_shape_renderer),
9796 (end_render), (draw_string):
9797 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
9800 Made sure we always write UTF-8 XML files, and through
9803 * NEWS: documented that fact.
9805 2001-09-07 James Henstridge <james@daa.com.au>
9807 * configure.in (found_libxml): refactor the check for libxml a
9808 little so that it handles finding both libxml1 and 2 better.
9810 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
9812 * app/app_procs.c: removed a spurious } which caused a compilation
9813 error in the (!HAVE_GNOME && HAVE_POPT_H) case
9815 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
9816 don't know what ANSI X3.4-1968 is. I didn't know until this day,
9817 but it's just plain old ASCII. Added a check to shield the poor
9820 Patches from <robert.young@dsto.defence.gov.au>:
9822 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
9823 width and height of text before calculating bounds. Fixes #59928
9825 * app/preferences.c: Moved grid related items into Grid Tab.
9827 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
9829 * app/interface.c: (create_zoom_widget): connected one more signal
9830 to the Zoom selector combo's list. Fixes #59879.
9832 * app/app_procs.[ch]: (app_init) (do_convert)
9833 (build_output_file_name): brought back into the main executable
9834 the rare useful bits of the ill-fated diaconv. This means we have
9835 one new feature : --export-to-format (-t), which should make
9836 writing conversion scripts easier, and a crude implementation of
9837 -t and -e for the poptless argument parsing, which means the Win32
9838 port should be able to take advantage of it (that should make
9839 resolving #58197 possible).
9841 * app/diaconv.c: kept the poor duck compiling (but that's about
9844 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
9847 * NEWS: updated about the new feature above, and documented the
9848 "missing encoding specification" complaint.
9850 2001-09-01 Abel Cheung <maddog@linux.org.hk>
9852 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
9854 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
9856 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
9859 2001-09-01 James Henstridge <james@daa.com.au>
9861 * */Makefile.am: various changes to include missing files, and fix
9862 sheets dir to handle building with builddir != srcdir.
9864 * autogen.sh: unconditionally pass the --enable-maintainer-mode
9865 and --enable-db2html flags so that builds from CVS work correctly.
9867 * configure.in: increment version number. Also add an
9868 --enable-db2html flag. Without the flag, db2html won't be run (if
9869 the flag is passed and db2html is not present, do nothing).
9871 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
9873 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
9874 even compiled. It's really too bad there is no lint tool easily
9875 available (or a more cautious, pedandic, paranoid and verbose
9876 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
9878 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
9881 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
9882 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
9884 * app/menu.c: added ellipsis(...) to diagram properties menu item.
9885 * app/dia-props.c: diagram properties dialog contents did not
9886 represent current diagram settings.
9887 * app/dia-props.[ch]:
9888 * app/display.c: diagram properties contents now follows currently
9890 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
9892 * AUTHORS: added Robert Young.
9894 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
9896 * app/modify_tool.c: (modify_button_release): Patch from
9897 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
9898 #59090: if selection dragging was released outside of the window,
9899 artifacts of the selection box remained.
9901 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
9903 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
9905 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
9908 * sheets/Makefile.am: prepared the terrain for the Version of
9909 xml-i18n-tools Which Comes After 0.9 (and which will feature at
9910 last a sane behaviour with XML files). Some reasonible delay
9911 before enforcing that version *will* be given.
9913 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
9915 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
9916 becomes a nonexistent symbol.
9918 2001-08-18 Hans Breuer <hans@breuer.org>
9920 * app/app_procs.c : made it compile without ENABLE_NLS
9922 * app/diap_callbacks.c : strcmp isn't guaranteed to work
9927 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
9929 xmlGetProp, ... -> xmlFree
9930 malloc, strdup -> free
9931 g_new, g_malloc, g_strdup - > g_free
9933 * app/win32print.c : some more error checking, still not
9936 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
9938 * lib/dia_xml.c : msvc still has no unistd.h
9941 * lib/sheets.c : temporary resolved libxml include brokeness
9943 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
9944 changes. Compiles again, but doesn't do anything useful anymore.
9945 (see THE_PROP_TYPE_IS_INTEGRAL)
9947 * **/makefile.msc : updated to use LIBXML2
9949 * lib/libdia.def : reflect api changes
9951 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
9953 * config.h.win32: added defines telling that gtk speaks UTF8.
9954 Hans, I believe this reflects what GTK on Win32 does.
9956 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
9958 * lib/prop_inttypes.c:
9960 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
9963 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
9964 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
9965 search for plug-ins is done.
9966 * app/Makefile.am: made app/run_dia.sh use the // capability. No
9967 need to update this anymore if we get a new plug-in library (or
9970 * lib/dia_xml.c: #include <unistd.h> was missing.
9973 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
9974 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
9977 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
9979 * sheets/civil.sheet: removed duplicate "Danish" entries.
9984 * sheets/Makefile.am:
9986 * Makefile.am: applied the xml-i18n-tools README's instructions.
9988 * po/(da de fr hu nl nn no sl).po: merged the translations from
9989 the sheet files into the .po files. I hope I haven't mixed
9991 * sheets/*.sheet (REMOVED):
9992 * sheets/*.sheet.in (NEW): moved the sheet files sans
9993 translations into .sheet.in files.
9995 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
9996 because we don't yet want to force all translators to work using
9997 UTF-8 editors. We'll want to do that sometime (sooner rather than
9998 later). Okay, I sing a slightly different tune in po/ChangeLog...
10000 * dia.desktop (REMOVED):
10001 * dia.desktop.in (NEW): used also the x18t infrastructure for
10004 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
10005 "official" version of x18t with support for .sheet files is available.
10006 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
10007 "official" version of x18t which doesn't corrupt UTF-8 data in XML
10010 ** yes, we are now using xml-i18n-tools to manage the sheet
10011 translations. For the Win32 build, Nemo stores snapshots of
10012 translated strings next to the CVS snapshots. **
10014 * sheets/checktrans.py: suddenly, some sheets have lots of
10015 translations (objects which existed before sheets, mostly).
10016 Adapted the formatting.
10018 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
10020 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
10021 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
10022 <robert.young@dsto.defence.gov.au>, to fix #59090.
10024 * app/display.c: (ddisplay_scroll): While at it, added some
10025 margin, so that autoscrolling can happen within a margin outside
10026 the diagram's extents.
10030 * app/disp_callbacks.c: Robert "forced" me to go when I usually
10031 don't, namely the app/ directory. So while I was there, I
10032 scratched a long-time itch. If no object has focus, pressing the
10033 space bar will select back the tool which was selected before the
10034 current one (I find this especially useful with "reset after create" !)
10036 * lib/proplist.c: (prop_list_from_single): Renamed
10037 prop_list_singleton() to avoid confusion with the Singleton
10038 pattern (which it definitely is not).
10040 * lib/propobject.c: (object_prop_by_name_type),
10041 (object_prop_by_name): The "flags" parameter was not necessary.
10042 These don't return synthetic properties, but properties built from
10043 a real property description list; therefore, we don't call
10044 make_new_prop() but use the existing property descriptor, which
10045 has perfectly valid (and meaningful) flags.
10047 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
10048 new predicates better reflect the reason why properties exist when
10049 they're created by make_new_prop() or object_prop_by_name().
10051 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
10052 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
10055 * lib/properties.h: reflects all the above changes.
10057 * objects/SADT/arrow.c:
10058 * objects/SADT/annotation.c:
10059 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
10062 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10064 * lib/properties.h:
10065 * lib/proplist.c: (prop_list_singleton):
10066 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
10067 Added these, to simplify interactions of plug-ins with the StdProp
10072 * lib/dia_xml_libxml.h (NEW):
10077 * objects/custom/shape_info.c: A few prototypes were causing
10078 #include hell, because we generally attempt to not pull the whole
10079 libxml header set when we include dia_xml.h. Moved those
10080 prototypes away for the rare cases they're necessary.
10082 2001-08-15 Hans Breuer <hans@breuer.org>
10084 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
10087 * lib/makefile.msc : updated
10089 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
10090 use G_GNUC_FUNCTION instead.
10092 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
10094 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
10095 msvc instead of cleaning missing includes
10097 * plug-ins/wmf/wmf.cpp :
10098 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
10100 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10107 * objects/custom/shape_info.c:
10108 * plug-ins/shape/shape-export.c:
10109 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
10110 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
10111 removed xmlKeepBlanksDefault(0) in favour for proper
10112 xmlIsBlankNode() testing. Lots of other fixups to use the
10113 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
10114 make libxml1 output correct files.
10116 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
10117 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
10118 packages). If both devel packages are found, the build will stop
10119 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
10121 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
10122 allocate the first handle :-)
10124 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
10125 a cast and a sizeof.</gratuitous>
10127 * objects/custom/custom_object.c: (custom_copy): don't call
10128 text_get_attrbutes if the shape has no text...
10129 (custom_update_data): The info->resize_with_text code was a bit
10130 directive; basically, the shape's bounding box was forced to be
10131 proportional to the text's bounding box.... This fixes #57187.
10133 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
10134 default for info->aspect_ratio; unobfuscated a line about
10135 info->resize_with_text;
10137 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10139 * lib/properties.h: added comments next to the PROP_TYPEs to tell
10140 which C Property subclass to use.
10142 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
10143 cast-ridden form of setting properties in a list, in favour for
10144 the "local pointers" form. I'll take any better offer...
10146 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
10148 * lib/font.c: fprintf(...) --> fprintf(format...)
10150 * configure.in: added a disabled versioned test for glib.
10151 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
10152 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
10153 g_critical() with a simple g_error(). Proper fix is to implement
10156 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
10159 * lib/properties.h:
10160 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
10161 * lib/proplist.c: (find_prop_by_name_and_type):
10162 * lib/prop_basic.c: (make_new_prop), (initialize_property):
10163 * lib/propoffsets.c: (do_set_props_from_offsets),
10164 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
10165 Added a type_quark member to PropDescription, Property and
10166 PropOffset. Used it to implement a safety in
10167 do_[sg]et_props_from_offsets().
10169 * objects/flowchart/diamond.c: the diamond's text was not saved,
10170 and thus not even copied (c&p).
10171 * objects/standard/textobj.c: ditto.
10173 Most of the above changes thanks to Robert Young's testing. Thanks !
10175 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
10177 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
10180 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
10182 * lib/proplist.c (prop_list_from_descs): added a call to
10183 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
10184 too embarrassing to tell.
10186 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
10187 while loop to a for loop, for symmetry with
10188 prop_offset_list_calculate_quarks().
10190 * lib/geometry.h: new inline function, rectangle_equals.
10192 * lib/diagramdata.[ch]: refactored a bit the diagram extents
10193 computation logic, and changed it to always be the union of the
10194 visible layers' extents. This should close #58882 (Debian
10195 #107167), and fixes #55498.
10197 * app/display.c: made the initial visible box more coherent with
10198 the diagram being loaded's extents.
10200 * app/prop_attr.c: don't set the font (from offset) if font_data
10201 is NULL. Two brainos in colorprop_load() and fontprop_load().
10203 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
10205 * lib/properties.[ch]: split in a lot of pieces:
10207 * lib/prop_*.[ch] (NEW): all property types are now first-class
10208 objects, inheriting from the original abstract Property type.
10209 * lib/propdesc.c (NEW): property description handling routines
10210 * lib/propoffsets.c (NEW): property offset handling routines
10211 * lib/proplist.c (NEW): property list handling routines
10212 * lib/propobject.c (NEW): property list <-> object routines
10213 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
10215 * lib/propinternals.h: prototypes for stuff not usually needed by
10216 the outside of StdProps.
10217 * lib/Makefile.am: a lot of new files have been added...
10219 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
10220 BOTH INTERFACES AND RUN-TIME STABILITY.
10222 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
10224 * lib/object.h: removed the incestuous relationship with
10225 properties.h' contents. Now a Property list is a GPtrArray -->
10226 object interface change !
10228 * app/app_procs.c/app_init(): removed a disabled call to a
10229 non-existent routine. Added a call to stdprops_init().
10231 * objects/Makefile.am: disabled the construction of EML. I'm not
10232 touching these until a certain issue is solved (or this module
10235 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
10236 objects to the interface changes.
10238 * app/disp_callbacks.c: killed a warning.
10239 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
10242 The macros PROP_VALUE_* have disappeared. Adapted to using the new
10245 * plug-ins/dxf/dxf-import.c:
10246 * plug-ins/xfig/xfig-import.c:
10247 PROP_VALUE_* macros have been removed. Converted to the new API.
10249 * plug-ins/python/**/*: I gave up converting this; I can't
10250 compile --with-python (problems with object.h defined both by us
10251 and by Python). I'll gladly help whomever cares to fix it !
10252 (or, fix it myself if someone tells me how to compile it).
10254 * configure.in: added the UNICODE-related progress defines.
10257 * lib/geometry.h: On Solaris and perhaps other systems, finite()
10258 is defined in ieeefp.h rather than in math.h. Patch from Andrew
10259 Halper <ashalper@acm.org> with further modifications, isinf() is
10260 provided by -lsunmath (sunmath.h).
10262 * lib/font.c: conditionally disabled Lars' debugging messages.
10263 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
10265 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
10267 * lib/bezier_conn.h:
10268 * objects/standard/bezier.c (bezierline_create):
10269 * lib/bezier_conn.c (bezierconn_init):
10270 Preparations for use of userdata for bezier lines.
10272 * objects/standard/polygon.c:
10273 * objects/standard/create.h:
10276 * plug-ins/xfig/xfig-import.c:
10277 Use of user_data for polygon as well, including adding
10278 polyshape_set_points. Include file for non-interactive
10279 creation of standard objects, objects/standard/create.h
10281 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
10283 * app/render_gdk.c:
10284 * app/render_gdk.h:
10288 More preliminary freetype support. Not at all functional, crashes
10293 * objects/standard/polyline.c:
10294 Support for creating polyline objects with more than two points.
10295 This includes an extra function and a prototype change in the
10296 poly_conn lib object.
10298 * lib/object.c (object_copy): Fixed memory leak of handles and
10301 2001-08-08 Abel Cheung <maddog@linux.org.hk>
10303 * dia.desktop: added traditional Chinese strings
10305 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
10307 * NEWS: updated to reflect build-time dependencies.
10309 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
10310 around obj->ops->describe_props(obj). Quarks are none of an
10311 object's business in the general case...
10312 * lib/text.c: Added an apply_textattr_properties() function to
10313 factor out some common code related to applying a dialog's text
10314 attribute properties to a (Text *) which wasn't edited there.
10315 Ditto for textstr, for the string part of an objet.
10317 * objects/GRAFCET/action.c:
10318 * objects/SADT/annotation.c:
10319 * objects/SADT/box.c: used apply_textattr_properties().
10321 * objects/UML/actor.c:
10322 * objects/UML/branch.c:
10323 * objects/UML/component.c:
10324 * objects/UML/constraint.c:
10325 * objects/UML/small_package.c:
10326 * objects/UML/state.c:
10327 * objects/UML/usecase.c:
10328 * objects/UML/large_package.c:
10329 * objects/UML/note.c:
10330 * objects/UML/node.c:
10331 * objects/UML/message.c:
10332 * objects/UML/classicon.c:
10333 * objects/UML/object.c:
10334 * objects/UML/realizes.c:
10335 * objects/UML/dependency.c:
10336 * objects/UML/implements.c:
10337 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
10338 (most objects were already using StdProps to some extent ; this
10339 systematises usage and removes some dead wood).
10341 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
10342 * objects/UML/uml.[ch]: audited for UTF-8.
10344 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
10345 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
10346 private (ISO-8859-1) definition.
10348 * lib/charconv.c: Added a warning if we didn't run
10349 nl_langinfo(CODESET) but rely instead on a hardcoded default.
10351 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
10354 * app/disp_callbacks.c: added a way for an object to cause an
10355 already realised menu to be destroyed (for instance if it changes
10358 * objects/custom/custom_object.c: used the above to fix #55073.
10360 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
10362 * configure.in: Remove 2.50 prereq.
10364 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
10366 * po-checktrans.py: under some circumstances, there was one column
10367 more than what was supposed to be, thus breaking the formatting.
10369 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
10371 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
10373 * NEWS: updated with new stuff since 0.88
10375 * shapes/network/antenna.shape: the text was misplaced ; fixed.
10377 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
10378 firewall router (upon request from Cyril Lacoux
10379 <clacoux@easter-eggs.com>)
10381 * configure.in (didn't rename to configure.ac): autoconf 2.50
10382 constructs were used ; added an AC_PREREQ call to guard against
10385 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
10387 * lib/properties.c: minor clean-ups with the event delivery code.
10389 * EML/instantiation.c: brought this object back from stone and ice
10392 * app/diaconv.c(NEW): added a command-line conversion tool. Still
10393 lacks a man page and correctness. In fact, it doesn't work. Please
10394 see #58196 if you want to finish it.
10396 * lib/message.[ch]: redefined things a little so that a different
10397 message_internal routine could be passed.
10398 applications can use that to fit themselves to the display model.
10400 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
10402 * objects/SADT/box.c:
10403 * objects/GRAFCET/action.c: spelling in property descriptors (name
10405 * objects/SADT/annotation.c: ditto, plus a temporary test of the
10406 event delivery code (try to click on the "click me !" button !).
10409 * lib/properties.[ch]: improved (fixed) support for group event
10410 handlers. Fixed various things from yesterday's code to make it
10411 not too obviously crash.
10413 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
10415 * app/group.c: added delivery of events to the first member of the
10416 group which is able to process it.
10418 * lib/properties.c(prop_desc_lists_intersection): properties
10419 don't match if they don't have identical event handler.
10420 * lib/properties.h: simplified the PropEventHandler signature.
10422 Event delivery code is still untested so far, but should be
10425 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
10427 * lib/properties.[ch]: Added (untested !) property event handler
10428 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
10429 generating such events. This stuff compiles, and should lurk
10430 around silently as long as you don't declare property descriptors
10431 with events (AFAICT).
10432 In object_create_props_dialog() and friends:
10433 attached a single structure with lots of data instead of lots of
10434 little attachments of data to the dialog widget.
10436 * lib/object.h: fixed mild typedef breakage introduced by the above.
10438 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
10440 * lots of files: Changed Font to DiaFont
10441 * */Makefile.am: Added FREETYPE_LIBS
10442 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
10444 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
10446 * configure.in: Added "nn" to ALL_LINGUAS.
10448 2001-07-09 Alex Larsson <alexl@redhat.com>
10450 * app/disp_callbacks.c:
10451 Add gdk_im_ready() calls to XIM code.
10453 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
10455 * lib/properties.[ch]: splitted prop_get_widget() into
10456 prop_get_widget() (gives a widget but doesn't fill it) and
10457 prop_reset_widget() (fills an existing widget with a property's value).
10459 * lib/widgets.[ch]: const enforcement police work.
10461 * shapes/network/antenna.shape: added a connection point at top,
10462 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
10464 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
10466 * intl/*: tested with gettext-0.10.38
10467 * configure.in: moved a macro call around (AM_PROG_CC) to keep
10468 some of autogen.sh from complaining.
10469 * INSTALL: added a warning against gettext older than at least 0.10.36
10471 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
10473 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
10474 AM_ICONV (both provided by gettext)
10476 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
10478 * lib/charconv.c: corrected the degraded mode for when
10479 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
10481 * objects/chronoline/chronoline_events.c: UTF8 compliance.
10483 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
10485 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
10486 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
10487 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
10490 * objects/chronogram/chronoline.c:
10491 * objects/chronogram/chronoref.c: took advantage of the above to
10492 make nicer looking dialogs.
10494 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
10495 from libunicode's internals).
10496 * lib/message.c: convert strings to local encoding prior to
10497 display (UNICODE_WORK_IN_PROGRESS)
10498 * lib/properties.[ch]: convert strings to local encoding prior to
10499 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
10500 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
10501 * lib/stringprerenderer.[ch]: ditto
10503 (lib/text.c has been audited for UTF8, but the size of the changes
10504 make them inappropriate for commit before 0.89)
10506 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
10508 * objects/boolequation.h (<save|load>_boolequation): made the
10509 prototypes for match the .c file.
10511 * samples/grafcet.dia: minor non-conformance with IEC-848
10512 fixed (in the transition from step 100 to step 101).
10514 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
10515 disallow editing of properties if the object is part of a group.
10517 * objects/chronogram/chronoline.c:
10518 * objects/SADT/annotation.c:
10519 * objects/SADT/box.c:
10520 * objects/GRAFCET/step.c:
10521 * objects/GRAFCET/transition.c:
10522 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
10524 2001-06-12 Hans Breuer <hans@breuer.org>
10526 * lib/libdia.def : removed lazyprop exports
10527 * lib/makefile.msc : removed lazyprop.obj
10529 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
10530 and avoid crashes by always creating a custom->text,
10531 when (custom->info->has_text)
10533 * objects/makefile.msc : removed sybase from build
10535 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
10536 ObjectNode is a pointer already, which is what we want
10537 instead of a pointer pointer.
10539 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
10540 and implemented working export for images
10542 * shapes/network/zip-disk.shape : added connection points
10544 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
10546 * objects/SADT/box.c: removed lazyprops for standard props.
10547 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
10548 * objects/chronograms/chronoref.c: ditto
10552 * lib/connpoint_line.c:
10553 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
10554 * lib/properties.[ch]: new property types:
10555 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
10556 - PROP_TYPE_MULTISTRING: same as string, but renders as a
10557 multi-line entry box.
10558 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
10559 in a tabbed-notebook style (this is a bit complicated to use;
10560 see objects/chronograms/chronoline.c for an example).
10562 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
10564 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
10565 * objects/GRAFCET/step.c: ditto.
10566 * objects/GRAFCET/vector.c: ditto.
10567 * objects/SADT/annotation.c: ditto.
10568 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
10570 * lib/properties.[ch]: two more non-visible types
10571 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
10573 * lib/neworthconn.[ch]:
10574 * lib/orthconn.[ch]: added support for manipulation through
10575 standard properties.
10577 * configure.in: removed -fomit-frame-pointer, this seems to
10578 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
10581 * charconv.[ch]: more functions from unicode.h.
10582 get_local_charset() wasn't working properly, fixed now.
10583 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
10586 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
10587 * lib/lazyprops.[ch]: put a big fat warning in.
10589 * app/render_eps.c: one line mysteriously went away, causing a
10590 variable to be used uninitialised....
10592 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
10594 * app/app_procs.c: commented out the call to
10595 bind_textdomain_codeset(): it's premature.
10597 * lib/connpoint_line.c: a NULL point can be given to
10598 connpointline_adjust_count(), in case there's not really a clicked
10601 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
10602 #include order troubles. #included by lib/text.h, so there is no
10603 impact outside lib/.
10604 * lib/properties.[ch]: added support for CONNPOINT_LINE and
10605 (nonvisible) TEXT properties.
10607 * objects/GRAFCET/action.c:
10608 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
10611 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
10612 standard properties code). Grafted a dynamic number of connection
10613 points (heavily inspired from what Vergent does). This is the real
10616 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
10618 * lib/fonts.c: some hardening (mostly g_assert())
10619 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
10621 * app/app_procs.c (app_init): added a call to
10622 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
10623 (UNICODE_WORK_IN_PROGRESS).
10625 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
10627 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
10629 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
10630 (fixes #55863) : some clean-ups in the handling of connection
10631 points. Now the total number of connection points is just a
10632 #define (the proper solution is to retrofit the GRAFCET Vergent's
10633 dynamic behaviour wrt connection points).
10635 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
10637 * app/app_procs.c (app_init): added a call to unicode_init() (only
10638 if HAVE_UNICODE, of course).
10640 * lib/charconv.c: simplified the code which detects the local
10641 charset. No need to use <langinfo.h>, libunicode already takes the
10642 burden of figuring that out. Also, if local charset is utf8, no
10643 conversion will take place.
10644 Exposed a way to get the current charset (similar to
10645 unicode_get_charset() but actually working, hopefully).
10647 * lib/charconv.h: Added a partial non-UTF8 implementation of
10648 unicode.h if !HAVE_UNICODE (actually, all the time for the
10649 moment). The UTF8 implementation is just macros on libunicode (use
10650 the functions prefixed by uni_, as defined by charconv.h, not
10651 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
10652 From now on, all strings which don't *need* to be ASCII should be
10653 utfchar *, not gchar *. Just include charconv.h, let it sort out
10654 the details (such as: "is libunicode available and enabled?")
10656 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
10657 "API" instead of directly libunicode. Removed the now unnecessary
10658 speculative clustering of characters in encoding pages.
10660 * app/render_eps.c: made the local8->utf8 conversions dependent of
10661 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
10662 boundary will be when this WIP is done).
10664 * lib/dia_xml.c (data_point): fixed a format string typo.
10666 * po/POTFILES.in: added all C files from lib/
10668 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
10670 * app/disp_callbacks.c: make sure the objects' connected objects
10671 are updated when the objects' size changes after a keypress event
10674 * configure.in: added a big warning about the possible future
10675 non-optionality of --enable-unicode.
10677 * TODO: removed entries which look like done ; added a few ones
10678 (Bugzilla "enhancement" bugs may be a better way to keep track of
10681 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
10683 * objects/UML/message.c: got rid of #55564 and of message_copy()
10684 by using more standard properties (are the message_state_*()
10685 functions still necessary ?)
10687 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
10690 * objecs/custom/shape_info.c:
10691 * plug-ins/shape/shape-export.c:
10692 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
10693 use xmlChar instead of obsolete CHAR.
10695 2001-06-03 Hans Breuer <hans@breuer.org>
10697 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
10698 * app/commands.c : give the right number of parameters
10699 to diagram_update_menu_sensitivity ()
10701 * app/preferences.c : do proper initialization for DiaPrefsData:
10702 render_bounding_boxes. It would be a real surprise if 'hidden'
10703 properties would have ever worked before.
10704 Don't try to access the widgets of hidden property, it does not
10707 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
10708 it is defined in libdia, but initialized from dia app, which
10709 otherwise gave nice start-up crashes.
10711 * lib/diagramdata.c : initialize the color for rendering bounding
10712 boxes in the Dia range (0 .. 1.0)
10714 * lib/libdia.def : added *_bbox functions for export
10716 * lib/makefile.msc : added new sources
10718 * objects/custom/custom_object.c : use HAVE_UNISTD_H
10720 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
10723 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
10724 removes a translation of menus (in a place where there shouldn't
10725 have been), which gets rid of a waterfall of warnings if LANG!=C,
10726 and a fix to #55047.
10728 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
10730 * lib/charconv.c : added #include <errno.h>
10732 * app/dia_embedd.c : updated menus_get_item_from_path usage
10734 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
10736 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
10737 Added a special case for Symbol strings, so that they're not
10738 re-encoded using the LN encoding (we use the bare Adobe encoding
10741 * objects/custom/custom_object.c: Now that #52912 is fixed,
10742 I could remove the ugly hack I wrote to squash the shape bounding box
10743 problem shown by Ben A. Hetland a few months ago, and fix it
10744 properly this time.
10746 * lib/text.c: enlarged a little the bounding box to account for
10747 the cursor in rightmost position.
10749 * lib/diagramdata.c: draw bounding boxes only if the relevant
10750 variable is set (as before), but also only if the rendere is
10751 interactive (ie, don't bother rendering bounding boxes on
10753 Made the bounding box's line width a fixed value, 0.01
10755 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
10756 and assymmetric control beziers. Implemented ellipse_bbox().
10758 * Makefile.am: incantations to get po/dia.pot build, as suggested
10759 by Hubert in #55075.
10761 * shapes/network/computer.shape: typo fixed.
10762 * shapes/network/antenna.shape: fixed #55074 (antenna is now
10763 properly translucent, except for its base where it makes sense. It
10764 doesn't look that ugly anymore if transparent mode is on).
10766 * configure.in: --enable-unicode is now the default. This
10767 still currently affects only printing.
10769 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
10771 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
10772 The overshoot code is buggy, and the bounding boxes for polyshapes
10773 looks a bit cheezy. To be done ASAP.
10775 2001-05-26 James Henstridge <james@daa.com.au>
10777 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
10778 This should clear up some of the build problems people have been
10781 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
10783 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
10786 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
10787 box code (beginning with lines, polylines and polybeziers), into a
10788 more generic facility. While at it, a better shot at correctly
10789 computing the bounding box of a Bezieroid (should take care of
10790 #53424, #51233 and of course is part 1 of #52912).
10792 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
10793 into a hidden preference (set render_bounding_boxes in diarc).
10794 * app/preferences.[ch]: Added support for hidden preferences.
10796 * lib/geometry.[ch]: sprinkled with "const" modifiers.
10798 * lib/bezier_conn.[ch]:
10799 * lib/beziershape.[ch]:
10800 * lib/connection.[ch]:
10801 * lib/element.[ch]:
10802 * lib/poly_conn.[ch]:
10803 * lib/orth_conn.[ch]:
10804 * lib/neworth_conn.[ch]:
10805 * lib/polyshape.[ch]: adapted to take advantage of
10806 boundingbox.[ch] instead of relying on private (duplicate) code.
10808 * object/FS/flow.c:
10809 * object/GRAFCET/action.c:
10810 * objects/GRAFCET/condition.c:
10811 * objects/GRAFCET/vergent.c:
10812 * objects/GRAFCET/vector.c:
10813 * objects/SADT/annotation.c:
10814 * objects/SADT/arrow.c:
10815 * objects/ER/participation.c:
10816 * objects/UML/constraint.c:
10817 * objects/UML/implements.c:
10818 * objects/UML/lifeline.c:
10819 * objects/UML/message.c:
10820 * objects/UML/realizes.c:
10821 * objects/UML/generalization.c:
10822 * objects/UML/association.c:
10823 * objects/UML/dependency.c:
10824 * objects/FS/flow-ortho.c:
10825 * objects/network/bus.c:
10826 * objects/standard/arc.c:
10827 * objects/standard/bezier.c:
10828 * objects/standard/beziergon.c:
10829 * objects/standard/line.c:
10830 * objects/standard/polygon.c:
10831 * objects/standard/zigzagline.c:
10833 * objects/standard/polyline.c: Some *BBExtras structures changed
10834 names while moving to boundingbox.[ch]. A trivial mass-renaming.
10836 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
10838 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
10839 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
10841 * app/display.c (ddisplay_update_scrollbars): from Patrick's
10842 suggestion, remove the extra scrollable area (it was only visible
10843 to the scrollbars). This is experimental.
10845 * objects/custom/custom_object.c: If a shape's icon file doesn't
10846 exist, warn and substitute a default icon, instead of crashing.
10849 * objects/network/network.c:
10850 * shapes/network/modularswitch.(shape|xpm) (NEW):
10851 * shapes/network/printer.(shape|xpm) (NEW):
10852 * shapes/network/genmonitor.(shape|xpm) (NEW):
10853 * shapes/network/computer.(shape|xpm) (NEW):
10854 * shapes/network/Makefile.am: four less objects, four more shapes.
10855 These were the last known RenderObjects. (phew !)
10859 * objects/sybase/Makefile.am:
10860 * objects/network/Makefile.am: Removed the older Renderobjects
10861 from the build, and their infrastructure (not yet deleted,
10864 * shapes/network/sceadplug.shape:
10865 * shapes/network/antenna.shape:
10866 * shapes/network/modem.shape:
10867 * shapes/network/hub.shape:
10868 * shapes/network/rj45plug.shape:
10869 * shapes/sybase/client.shape:
10870 * shapes/sybase/dataserver.shape:
10871 * shapes/sybase/ltm.shape:
10872 * shapes/sybase/repserver.shape:
10873 * shapes/sybase/rsm.shape:
10874 * shapes/sybase/stableq.shape: Minor corrections (line widths were
10875 ten times too narrow).
10877 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
10879 * objects/network/network.c:
10880 * shapes/network/sceadplug.(shape|xpm) (NEW):
10881 * shapes/network/antenna.(shape|xpm) (NEW):
10882 * shapes/network/modem.(shape|xpm) (NEW):
10883 * shapes/network/Makefile.am: four less objects, four more shapes.
10886 * lib/diagramdata.c:
10888 * lib/string_prerenderer.[ch] (NEW):
10889 Add a new renderer primitive, predraw_string() (does nothing, to be
10890 used as a hook to optimise the character encodings if needed).
10891 Added a string pre-renderer, which can be viewed as a filter
10892 renderer (to route draw_string() to predraw_string() and ignore
10893 the rest, in a first rendering pass)
10895 * app/render_eps.c: Took advantage of the above to make wholly
10896 optimised Postscript encoding page(s), even (especially) with
10897 non-latin1 code (HAVE_UNICODE must be true).
10899 (#53512 in fact is wholly resolved).
10901 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
10903 * lib/charconv.c: steps towards resolution of #53512 (inspired by
10904 Alexey Novodvorsky <aen@logic.ru>'s patch).
10906 * app/menus.c (dia_menu_signal_proxy): checked that the signal
10907 handler is not NULL before transferring control to it... (fixes #52836)
10909 * app/app_procs.c (app_init): removed non-constant initialiser
10912 * objects/custom/custom_object.c:
10913 * objects/custom/shape_info.[ch]:
10914 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
10915 <skh@mathstar.com>. This add support for a <svg:text> shape
10916 element, and some related style properties (font, font height,
10919 * doc/custom_shapes: a precision about the meaning of case in a
10920 SVG path (closes #52364)
10922 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
10923 fixed by <drk@sgi.com>)
10925 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
10927 * objects/network/network.c:
10928 * shapes/network/Makefile.am:
10929 * shapes/network/hub.(shape|xpm) (NEW):
10930 * shapes/network/flash.(shape|xpm) (NEW):
10931 * shapes/network/rj45plug.(shape|xpm) (NEW):
10932 More shapes, less renderobjects.
10934 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
10936 * plug-ins/svg/render_svg.c: typo made exported ellipses
10937 corrupted (zero Y pseudo-radius).
10939 * objects/network/network.c:
10940 * objects/network/disc.c:
10941 * shapes/network/disc.(shape|xpm): Converted the first
10942 Renderobject into a shape. Normally, old diagrams should reload
10943 without problems (please check this against your diagrams). More
10944 flexibility should be gained that way. I intend to hunt and
10945 eradicate all renderobjects as I can commit cycles to that.
10947 * objects/Makefile.am:
10950 * objects/sybase/sybase.c:
10951 * shapes/sybase/Makefile.am(NEW):
10952 * shapes/sybase/client.(xpm|shape) (NEW):
10953 * shapes/sybase/dataserver.(xpm|shape) (NEW):
10954 * shapes/sybase/ltm.(xpm|shape) (NEW):
10955 * shapes/sybase/repserver.(xpm|shape) (NEW):
10956 * shapes/sybase/rsm.(xpm|shape) (NEW):
10957 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
10958 renderobjects into shapes. The Sybase objects are now not compiled
10959 anymore, and ready to be nuked if nobody objects in the next few weeks.
10962 * app/diagram.[ch]:
10963 * app/disp_callbacks.c:
10964 * app/display.[ch]:
10965 * app/interface.[ch]:
10967 * app/modify_tool.c:
10968 * app/preferences.[ch]:
10969 * app/recent_files.c:
10970 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
10971 a menu bar reflecting the popup menu, to each display window. This
10972 is optional (changing the preference currently doesn't affect
10973 already opened windows; a few other rough edges to cut).
10975 * plug-ins/wpg/wpg.c:
10976 * plug-ins/xfig/xfig-import.c:
10977 * plug-ins/python/pydia-property.c:
10978 * plug-ins/python/pydia-properties.c:
10979 * plug-ins/python/pydia-geometry.c:
10980 * plug-ins/pstricks/render_pstricks.c:
10982 * objects/EML/dbox.c:
10983 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
10986 * lib/ps-utf8.c: improved the clustering of alphabetic character
10987 definitions in custom encodings pages.
10989 2001-05-02 Hans Breuer <hans@breuer.org>
10991 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
10992 of 'obj_bb' to PROP_TYPE_RECT
10994 * objects/custom/custom_object.c : take all quarks into account,
10995 not only 4 as copy&paste suggests
10997 * objects/uml/objects.c : completed the implementation of the
10998 property api to avoid reading of totally bogus data. Removed
10999 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
11000 there was too much but too less ...
11002 The above changes removed all known crashes (mentioned below)
11003 from the Property API. Property access is still incomplete though.
11005 * objects/flowchart/box.c :
11006 * objects/flowchart/diamond.c :
11007 * objects/flowchart/ellipse.c :
11008 * objects/flowchart/parallelogram.c :
11009 * objects/uml/classicon.c :
11010 * objects/uml/state.c : calculate number of quarks from quark array
11011 size instead of using hardcoded values for consistence and to avoid
11012 future bugs like the above
11014 * objects/eml/nlist.c : include <string.h> for strcmp()
11016 * lib/dia_xml.c : relax g_warning for values, which
11017 appear to be too small. There is nothing which prevents
11020 * plug-ins/python/pydia-geometry.c : changed stringifying of
11021 geometry objects accept BezPoint back to %f, which does not
11022 crash anymore, because all the data is intialized now and it
11023 simply is more readable than %e ...
11025 * plug-ins/python/python-startup.py : removed dependency
11026 to PyGtk, because it isn't required here and probably won't
11027 in i.e.: export filters.
11029 * plug-ins/python/gtkcons.py : create the gtkoutfile even
11030 if sys.stderr.fileno() isn't supported
11032 * app/makefile.msc : make version 0.88
11033 * plug-ins/makefile.msc : make version 0.88 an added new
11034 xfig files to build
11036 2001-05-11 James Henstridge <james@daa.com.au>
11038 * NEWS: remember to add news items this time.
11040 * dia.spec: update spec file for 0.88 release.
11042 * configure.in: up version number to 0.88
11044 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
11045 preventing any of the useful python scripts from being
11048 * sheets/Makefile.am (sheet-translation-report): fix bustage I
11049 introduced in my fixups for the 0.87 release :(
11051 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
11053 * plug-ins/xfig/xfig-import.c: Finally got groups working.
11055 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
11057 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
11058 group manipulation.
11060 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
11062 * lib/ps-utf8.[ch]:
11063 * lib/Makefile.am: fix makefile breakage which led to not
11064 including ps-utf8.[ch] in the released tarballs.
11066 2001-05-09 James Henstridge <james@daa.com.au>
11068 * Makefile.am (core-translation-report): dist scripts needed for
11069 this target, and change to $(srcdir) before running.
11071 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
11072 files aren't automatically included in the tarball by automake
11073 because they could be generated files.
11075 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
11077 * doc/en/Makefile.am (install-data-hook): fix up where graphics
11080 * configure.in: up version number to 0.87
11082 * plug-ins/python/*.py: no longer necessary to explicitly set
11083 sys.argv, as python.c does it for us now (like it should).
11085 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
11088 * plug-ins/python/python-startup.py: startup script that imports
11089 all modules in $(datadir)/dia/python and ~/.dia/python.
11091 * plug-ins/python/python.c (dia_plugin_init): change so that it
11092 only runs the $(datadir)/dia/python-startup.py script. Make sure
11093 that sys.argv and __main__.__file__ are set when calling the
11096 * plug-ins/python/Makefile.am: update makefile. Make it install
11097 gtkcons.py plugin. I haven't set any other plugins to install, as
11098 they look like they are mainly for debugging purposes.
11100 * configure.in: add tests to detect if python is available, so we
11101 can build the python plugin. Only run if --with-python passed to
11104 2001-05-08 James Henstridge <james@daa.com.au>
11106 * acinclude.m4: add macros for detecting python.
11108 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
11109 at GNOME_APP_UI_SUBTREE entries.
11110 (menus_add_path): function to add a menu item to the menubars.
11111 Uses a hash table to keep track of extra menu items it adds. Also
11112 notifies the item factory about the entries so that accels can be
11114 (menus_add_path): implement gtk only version.
11115 (menus_init): use menus_add_path() to add the menu.
11116 (plugin_callback): simplify.
11118 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
11120 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
11122 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
11124 * plug-ins/xfig/xfig-export.c:
11125 * plug-ins/xfig/xfig-common.c:
11126 * plug-ins/xfig/xfig-import.c:
11127 * plug-ins/xfig/xfig.c:
11128 * plug-ins/xfig/xfig.h:
11129 * app/Makefile.am: Added support for exporting to Fig format
11130 (except splits, which are less powerful in Fig). Some refactoring
11133 2001-05-02 Hans Breuer <hans@breuer.org>
11135 * plug-ins/python/debug_objects.py : added another
11136 test to get massive crashes from the Property API due
11137 to unintialized data.
11139 * app/menu.c : the callback_action wasn't incremented
11140 (should have checked my last optimization). Now more
11141 than one plug-in callback is supported again.
11143 * plug-ins/python/pydia-geometry.c : avoid crashes from
11144 glib, when trying to g_strdup_printf unintialized floats.
11146 * plug-ins/python/pydia-property.c : avoid crashes from
11147 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
11149 2001-05-01 Hans Breuer <hans@breuer.org>
11151 * objects/makefile.msc : added eml
11152 * objects/eml/instantiation.c : initialize 'inst' pointer
11153 before using, zero initialization for objects
11154 * objects/eml/interaction-ortho.c :
11155 * objects/eml/interaction.c : zero initialization for objects
11157 * app/menus.c : removed Gimp mru stuff which slipped in at
11158 2000-08-15, was never activated and will never be needed,
11159 because of Steffens recent file list patch added at 2001-01-05.
11161 * objects/eml/*.c : some more zero initialization of objects
11162 to avoid infinite (uninitialized) bounding boxes
11164 Implemented a callback api which allows plug-ins to register
11165 menu call backs. Dia for Gnome should compile, but will need
11166 some extra tweaking to make it work because I can't test it.
11168 * plug-ins/python/pydia-error.h :
11169 * plug-ins/python/pydia-render.c : moved Pxthon function return
11170 value handling from pydia-render.c to pydia-error.h, to make it
11172 * plug-ins/python/diamodule.c : implement callback function
11173 registration from and relaying to Python code
11175 * app/menus.c : register and use plug-in menu callbacks
11177 * lib/filter.[hc] : implement filter_register_callback() and
11178 filter_get_callbacks() for the above
11179 * lib/libdia.def : export them
11181 * plug-ins/python/debug_objects.py (new file):
11182 sample using the above
11184 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
11186 * plug-ins/shape/shape-export.c (new_shape_renderer):
11187 The name of a shape is now taken from the dir, to conform with
11190 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
11192 * app/properties.c (properties_show): Added title containing
11193 object type, plus (hopefully) fix of the ghost properties dialog.
11195 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
11197 * app/display.c: remove the display idle handler in case we
11198 destroy the ddisplay (caused crashes in ddd, probably random
11199 crashes elsewhere).
11203 * Makefile.am: hack around gettext-0.10.36's new "features".
11205 * lib/properties.[ch]: added new function object_copy_props().
11206 Added new property type PROP_TYPE_ENDPOINTS
11208 * lib/connection.h: added support for load/saving through the
11209 properties interface.
11211 * lib/object.[ch]: object_load/save/copy_using_properties()
11212 support functions (code factorisations).
11214 * objects/GRAFCET/boolequation.c: check against null values in
11215 boolequation_set_value() and boolequation_destroy().
11217 * objects/GRAFCET/transition.c: Converted from lazyprops to
11218 standard properties. 31% less (x86) code !
11220 * objects/GRAFCET/condition.c: also converted from lazyprops to
11221 standard properties. Also killed lots of code.
11223 2001-04-13 Hans Breuer <hans@breuer.org>
11225 * plug-ins/wmf/wmf.cpp : changed text conversion from
11226 g_utf8_utf16 to g_convert usage. The latter function is already
11227 available in tml's last "official" Gtk+ version (2000-12-26).
11228 This change allows to use recent Dia with either the official
11229 version or the latest cvs "gtk-1-3-win32-production"-branch.
11231 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
11233 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
11234 * app/disp_callbacks.c:
11235 - Allow submenus in DiaMenus.
11236 - Don't require DiaMenu.title to be non-null (so that
11237 submenus aren't required to have titles)
11239 * objects/FS/function.c:
11240 - object menu now has submenus, an almost complete list of
11241 standard-basis verbs, and a start on nouns.
11242 - box padding, dash length, and other visual attributes are
11243 scaled by the font size... eventually font height will be
11244 a function property.
11245 - draw functions with smaller font to make initial view hold
11246 a reasonable number of functions.
11248 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
11251 * sheets/chronogram.sheet:
11252 * sheets/jigsaw.sheet:
11253 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
11254 Wieers <dag@wieers.com>
11256 2001-04-13 Hans Breuer <hans@breuer.org>
11258 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
11259 to ensure that all the deinitialization is only done once. Fixes
11260 recent app exit crash on win32
11262 * lib/dia_xml.c : provide isinf() replacement for msc which does only
11265 * lib/libdia.def : updated
11267 * objects/makefile.msc : added wanlink.c
11269 * objects/network/wanlink.c : added M_PI_2 definition for poor
11270 platforms which don't have one
11272 * objects/standard/arc.c :
11273 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
11274 initialized which led to rather huge bounding boxes (try Ctrl^A on
11275 diagrams with Arcs or ZigZagLines).
11276 * objects/*/*.c : to avoid further bugs like the above changed all
11277 object initializations to g_malloc0 or g_new0
11280 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
11282 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
11283 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
11285 * objects/UML/class.c:
11286 * objects/UML/usecase.c:
11287 * objects/UML/large_package.c:
11288 * objects/UML/message.c:
11289 * objects/UML/object.c:
11290 * objects/UML/lifeline.c:
11291 * objects/FS/flow.c:
11292 * objects/FS/flow-ortho.c:
11293 * objects/FS/function.c:
11294 * objects/custom/custom_object.c:
11295 * objects/GRAFCET/vergent.c:
11296 * objects/chronogram/chronoref.c:
11297 * objects/SADT/box.c:
11298 * objects/SADT/annotation.c:
11299 * plug-ins/dxf/dxf-import.c:
11300 * plug-ins/xfig/xfig-import.c:
11301 * plug-ins/wpg/wpg.c:
11304 * app/display.c: /* certainly more WIP than dead code there */
11305 Unused variables, unused static function definitions, forgotten or
11306 incomplete prototypes added or fixed, lack of const or unwanted const,
11307 etc. (mostly clean-ups of leftovers of the pre-properties era).
11308 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
11309 please check these.
11311 * app/lineprops_area.c: More of the same. Missing prototypes
11312 added, and functions unused outside made static.
11314 * app/recent_files.c:
11315 * app/properties.c:
11316 * app/defaults.c: some variables are used only when doing a GNOME
11319 * app/magnify.c: missing #include <stdlib.h>.
11321 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
11323 These are a lot of clean-ups (by the way, this compiles and runs
11324 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
11325 for DEAD_CODE, and if it's yours, judge it.
11327 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
11329 * plug-ins/dxf-import.c: some progress with the arcs; still some
11330 clean-ups to do and line width scaling issues to figure out.
11332 * objects/standard/arc.c: start_point and end_point properties
11333 (duplicated from standard/line.c)
11335 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
11338 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
11340 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
11341 preliminary support for arcs (doesn't work). Circles and ellipses are
11342 now transparent. Coordinate and width scaling are now a common
11343 static constant (probably before morphing into a preference).
11345 * sheet/checktrans.py: improved error reporting. Made checktrans
11346 count lack of <name xml:lang="code"> as a lack of translation for
11347 language "code" (no, it's not a plot to bring down other
11348 language's scores !)
11350 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
11351 in the header, and have <name xml:lang="fr"> components.
11353 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
11355 * objects/custom/custom_object.c: temporary hack to fix the shape
11356 bounding box reported by Ben A. Hetland. Proper fix isn't .87
11357 material, see bugzilla #52912.
11359 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
11361 * objects/standard/image.c (get_directory): Now uses
11362 G_SEPARATOR_CHAR_S instead of "/"
11364 * sheets/network.sheet:
11365 * sheets/Logic.sheet:
11366 * sheets/Flowchart.sheet:
11367 * sheets/Electric.sheet:
11368 * sheets/Circuit.sheet:
11370 * sheets/Pneumatic.sheet:
11371 * sheets/SDL.sheet:
11372 * sheets/UML.sheet:
11373 * sheets/GRAFCET.sheet:
11374 * sheets/MSE.sheet:
11375 * sheets/chronogram.sheet:
11376 * sheets/civil.sheet:
11377 * sheets/network.sheet:
11378 Danish translations.
11380 * objects/standard/image.c (get_directory): Changed get_directory
11381 to use g_dirname to find the directory part.
11383 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
11386 * sheets/Electric.sheet:
11387 * sheets/Flowchart.sheet:
11388 * sheets/Logic.sheet:
11389 * sheets/network.sheet: More Dutch translations from Dag Wieers.
11391 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11393 * sheets/checktrans.py: now emits a warning when two descriptions
11394 for a single language code are found.
11397 * sheets/Makefile.am: -translation-reports now also depend on their
11400 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11402 * sheets/Circuit.sheet:
11403 * sheets/Contact.sheet:
11404 * sheets/Logic.sheet:
11405 * sheets/chronogram.sheet:
11406 * sheets/sybase.sheet:
11407 Dutch translations from Dag Wieers <dag@wieers.com>
11409 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11411 * po-checktrans.py: Now shows the detailed counts alongside the
11412 percentage of translations.
11414 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
11417 * po-checktrans (NEW):
11418 * po-checktrans.py (NEW): builds core-translation-report:
11419 percentages of core (gettext) translations done [Not placed into
11420 po/ where that should belong, because of integration fear^Wissues
11423 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
11424 sheets/sheet-translation-report probably ought to be copied on the
11425 user's /usr/share/doc/dia (or equivalent) directory.
11427 * sheets/Makefile.am: sheet-translation-report now a simple
11428 EXTRA_DIST; make install won't install it by default.
11430 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
11432 * app/preferences.c: changed the default grid colour to something
11435 * shapes/SDL/*.shape:
11436 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
11437 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
11438 DIA FILES (well, for files using SDL), see the mailing list
11439 archive "SDL (ab)using the global shape namespace" for a script to
11440 do this conversion.
11442 * sheets/SDL.sheet: translated into French
11443 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
11445 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
11447 * lib/dia_xml.c: made data_point() more paranoid
11449 * sheets/Makefile.am:
11450 * sheets/checktrans (NEW):
11451 * sheets/checktrans.py: Made checktrans handle more gracefully the
11452 absence of python and python-xml packages, and made the error
11453 message more helpful.
11455 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
11457 * lib/render_object.c (new_render_object): Made initial handles
11458 behave like on most other objects.
11460 * app/load_save.c (read_objects): Fixed premature free'ing ofr
11461 typestr causing garbage.
11463 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11465 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
11466 accouting for handle ordering through copy and save. (#51479)
11468 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
11470 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
11472 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
11474 * sheets/Circuit.sheet
11476 * sheets/network.sheet: Updated German translations
11478 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
11481 * app/lineprops_area.c: The return of the revenge of the arrow
11482 heads. Now all types covered by ISO 10303-201 should be covered.
11484 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
11486 * sheets/Flowchart.sheet: translations in probably Hungarian were
11487 a victim of cut-n-paste from the German one. Fixed (hopefully).
11488 * sheet/UML.sheet: translation in probably Norwegian was a victim
11489 of cut-n-paste from the French one. Fixed (hopefully).
11490 * sheets/Logic.sheet: French translation not tagged with
11493 * sheets/checktrans.py:
11494 * sheets/Makefile.am: new file, sheet-translation-report, to be
11495 installed along the sheets, show how much of them has been
11496 translated into which language (I wish the result was prettier...)
11498 * po/README: most translators don't read this file, but anyway...
11500 * sheets/.cvsignore:
11501 * objects/network/.cvsignore: the usual negotiation with CVS.
11503 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
11505 * sheets/*.sheet: French translations
11507 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
11509 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
11511 ** objects/network/network.c:
11512 ** objects/network/wanlink.c:
11513 ** objects/network/pixmaps/wanlink.c:
11514 ** sheets/network.sheet:
11515 ** objects/network/Makefile.am: a better object to use instead of
11516 the older WAN Connection.
11518 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
11520 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
11523 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
11524 Arc; kept the C file name (because CVS wouldn't like it), and
11525 still registering the older object name (but advertising the newer
11526 one in sheets/GRAFCET.sheet).
11528 2001-03-24 Hans Breuer <hans@breuer.org>
11530 * app/dia.def : some plug-ins (currently only python, xfig) are using
11531 functions from the dia executable. To get them working these functions
11532 need to be explicit exported on win32. IMO the much cleaner way would
11533 be to move these functions to libdia, but that would require some
11534 long term restructuring ...
11536 * lib/libdia.def : updated
11538 * plug-ins/makefile.msc : build xfig plug-in
11540 2001-03-24 Hans Breuer <hans@breuer.org>
11542 * app/diagram.c : g_strdup (dia->filename) because it will be
11545 * app/display.c : set ddisp->renderer to NULL after destruction.
11546 This may solve or help to identify erroneous access to it after
11549 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
11550 get 'umlauts' working
11552 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
11554 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
11555 were reversed... (look for the patch, and drink a beer to my
11558 2001-03-23 Hans Breuer <hans@breuer.org>
11560 * app/app_procs.c : don't g_error () if the config directory
11561 can't be created (at least not on windoze) because it's quite
11562 common that the user don't read or understand the FAQ ...
11564 * app/cursor.c : use ddisplay_active () instead of active_display
11567 * app/display.[hc] : made active_display var static and provide
11568 an accessor funtion ddisplay_active_diagram ()
11570 * app/dia-props.c : don't store the active_diagram, but ask
11571 for it everytime it needed.
11573 * lib/properties.h : #include "intl.h"
11575 * lib/makefile.msc : need to take care of inclusion order to
11576 avoid clashes with gtk+2.0's gdk-pixbuf
11578 * objects/makefile.msc : added uml/stereotype.c to build
11580 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
11582 * **/*.c: Added config.h to the remaining .c files, and changed
11583 all to be <config.h>.
11585 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
11590 * app/lineprops_area.c: added new arrow types with double
11593 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
11595 * shapes/Civil/civil_gas_bottle.xpm
11596 * shapes/Civil/civil_gas_bottle.shape
11597 * sheets/civil.sheet
11598 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
11601 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
11603 * objects/custom/shape_info.c (load_shape_info):
11604 * objects/custom/shape_info.h:
11605 * objects/custom/custom_object.c (custom_update_data):
11606 Better support for text outside the box -- new attributes 'resize'
11607 and 'align' for text entity. Align not fully supported yet.
11609 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
11611 2001-03-20 James Henstridge <james@daa.com.au>
11613 * app/interface.c (display_data_received_callback): comment out
11616 2001-03-19 James Henstridge <james@daa.com.au>
11618 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
11620 * objects/UML/realizes.c: similar here.
11622 * objects/UML/implements.c: similar here.
11624 * objects/UML/component.c: similar here.
11626 * objects/UML/generalization.c: same here.
11628 * objects/UML/dependency.c: allow NULL for ->name and
11629 ->stereotype. This fixes a number of problems in loading saved
11632 * lib/properties.c: various changes so that NULL string properties
11635 * objects/standard/line.c (line_update_data):
11636 line->extra.start_long and line->extra.end_long were not being
11637 initialised. This fixes potential problems with the bounding box
11638 of "Standard - Line" objects.
11640 2001-03-19 Hans Breuer <hans@breuer.org>
11642 * app/commands.c : added win32 specific code to display a html
11643 file. #include "text.h" for text_delete_all prototype.
11646 * app/dia.rc : (new) to give Dia win32 an icon
11648 * app/win32print.[ch] : new files to support direct postscript
11649 file printing on win32. Beware: it *requires* a ps-printer!
11651 * app/paginate_psprint.c : disable the signal code for win32 build
11652 and added small specific changes to support win32print.
11654 * app/makefile.msc : added win32print and linking shell32.lib
11656 * lib/libdia.def : updated
11658 2001-03-18 Kevin Breit <battery841@mediaone.net>
11660 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
11663 2001-03-17 James Henstridge <james@daa.com.au>
11665 * app/paginate_psprint.c (diagram_print_ps): add code that traps
11666 SIGPIPEs during printing. This gets rid of a number of crashes
11667 caused by printing (eg. typing an incorrect print command).
11669 * dia.spec (%install): gzip the manpage.
11671 * lib/beziershape.c (beziershape_save): fix off by one error in
11672 beziershape save code, which was adding an extra segment to the
11675 * app/menus.c: add a separator in the gnome version of the help
11678 * app/app_procs.c (app_init): add a --nosplash argument which
11679 disables the splash screen.
11681 * app/dia_embedd.c (main): don't leave the splash screen open for
11682 embeddable component.
11684 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
11685 didn't seem to be showing the splash screen like expected, so I
11686 have replaced it with some code that calls gtk_main() until the
11687 first exposure of the window.
11689 2001-03-16 James Henstridge <james@daa.com.au>
11691 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
11693 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
11696 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
11698 * app/Makefile.am (dia_core_files): remove splash.h from file
11699 list, as it doesn't exist.
11701 * doc/en/Makefile.am (uninstall-local): remove the docdir on
11704 * doc/Makefile.am (uninstall-local): target to remove the C
11707 * dia.spec (%files): include the documentation in the package.
11709 * app/menus.c (toolbox_menu_items): add menu item for manual,
11710 which calls help_manual_callback.
11712 * app/commands.c (help_manual_callback): find help file and load
11713 netscape to view it.
11715 * app/commands.h: add prototype for help_manual_callback()
11717 * doc/Makefile.am (helpdir): similar here.
11719 * doc/en/Makefile.am (helpdir): make the helpdir
11720 $(pkgdatadir)/help/en in the non gnome case.
11722 * configure.in (HAVE_GNOME): add conditional.
11724 * doc/en/Makefile.am: handle the graphics in a more general way,
11725 so it is easier for Kevin to add them to the build (just add them
11726 to the GRAPHICS var).
11728 * app/Makefile.am (embed_extra_print_files): make the case of
11729 building without gnome-print support but with bonobo support work.
11730 dia-embedd needs to be include the gnome-print
11732 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
11734 * samples/Makefile.am: included all samples in the distribution....
11736 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
11738 * configure.in: removed premature test for DPS. Added -*- m4 -*-
11739 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
11740 vanished, removed it from ALL_LINGUAS.
11742 * lib/charconv.[ch] (NEW): a very small wrapper around
11743 unicode_iconv to convert strings between utf8 and local charset
11744 (actually, ISO-8859-1, though one can do
11745 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
11747 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
11748 library to help build Postscript streams which use as many custom
11749 font encodings as necessary to correctly represent all characters
11750 used (testing from users with non-latin1 and/or more than 256
11751 characters in routine use *very* welcome).
11753 * app/Makefile.am, lib/Makefile.am: integrated these into the
11756 * shapes/Logic/.cvsignore (NEW): .cvsignore
11758 * app/render_eps.h: forwarded some changes Lars forgot to include.
11759 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
11762 2001-03-08 Kevin Breit <battery841@mediaone.net>
11764 * doc/en/home_network.png: Added file.
11765 * doc/en/line_props.png: Added file.
11766 * doc/en/usage-objects.sgml: Added two graphics to file.
11767 * doc/en/usage-quickstart.sgml: Added one graphic to file.
11769 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
11771 * app/grid.h: Place comment around text after #endif.
11772 * lib/bezier_conn.c: #include <string.h>.
11773 * lib/beziershape.c: #include <string.h>.
11774 * lib/connpoint_line.h: Comment after #endif.
11775 * lib/dia_dirs.c: #include <string.h>.
11776 * lib/element.c: Same.
11777 * lib/lazyprops.c: #include <config.h> and "intl.h".
11778 * lib/lazyprops.h: Comment out text after #endif.
11779 * lib/neworth_conn.c: #include <string.h>
11780 * lib/orth_conn.c: Same here.
11781 * lib/poly_conn.c: Here too.
11782 * lib/polyshape.c: And here.
11783 * lib/properties.c: Remove #include "intl.h" from here and add
11784 an array of static strings to work around bug in gettext that
11785 makes it miss strings in a #define body.
11786 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
11787 * objects/GRAFCET/boolequation.h: Same here.
11788 * objects/chronogram/chronoline_event.h: Add prototype for
11791 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
11793 * objects/FS/function.c:
11794 * objects/FS/flow.c:
11795 * objects/FS/flow-ortho.c:
11796 Updated to use properties.
11798 2001-03-03 James Henstridge <james@daa.com.au>
11800 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
11801 button labels when creating them.
11803 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
11805 * objects/UML/actor.c
11806 * objects/UML/realizes.c
11807 * objects/UML/implements.c
11808 * objects/UML/generalization.c
11809 * objects/UML/dependency.c
11810 * objects/UML/constraint.c
11811 Updated to use properties.
11813 * objects/UML/stereotype.c
11814 * objects/UML/stereotype.h
11815 Generalized to any kind of bracketting.
11817 2001-02-28 James Henstridge <james@daa.com.au>
11819 * app/menus.c: add help entry to the help menu. Need to get this
11820 working for the non GNOME case as well (maybe put help under
11821 $(datadir)/dia/help for non GNOME?)
11823 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
11825 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
11826 this element so that we get a meaningful filename in the html
11829 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
11832 * configure.in (DB2HTML): add a check for the db2html program, and
11833 set an automake conditional if it is found.
11835 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
11836 and descend into doc/ directory while building.
11838 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
11839 we need more complex rules for building the docs.
11841 2001-02-25 Hans Breuer <hans@breuer.org>
11843 * config.h.win32 : some cleanup
11845 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
11846 are deprecated since glib-1.3.2. Sorry needing to use them
11847 contionally, but there is no glib-1.2 for win32
11849 * app/recent_files.c : use g_strescape (params) conditionally
11851 * lib/connection.c : include string.h for memcpy
11853 * lib/geometry.h : added some stuff for compatibility with
11854 msvc, which previously came from included config.h
11856 * lib/libdia.def : updated
11858 * objects/makefile.msc : updated
11860 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
11861 'extra' used without having been initialized
11863 * objects/network/bus.c(658) : initialize 'extra'
11865 * plug-ins/makefile.msc : updated
11867 * plug-ins/cgm/cgm.c :
11868 * plug-ins/pstricks/render_pstricks.c :
11869 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
11872 * plug-ins/python/python.c : use HAVE_DIRENT_H
11874 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
11876 * lib/connection.c (connection_update_boundingbox):
11877 Made the BB shrink on right and lower sides, too.
11879 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
11881 * */*.c: #incude <config.h> at the top.
11882 * */*.h: Remove include of "config.h" since it should only
11883 be included in .c files and at the very top for things to
11885 * sheets/*.sheet: Updated Norwegian translations.
11887 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
11889 * objects/UML/small_package.c:
11890 * objects/UML/class.c:
11891 * objects/UML/node.c:
11892 * objects/UML/usecase.c:
11893 * objects/UML/lifeline.c:
11894 * objects/UML/message.c:
11895 Various cleanup of properties in particular. Now much more use of
11896 standard properties.
11898 * lib/diagramdata.c (layer_render): Visualization of bounding
11899 boxes, for debugging purpoises.
11901 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
11904 * lib/connection.[ch]:
11905 * lib/poly_conn.[ch]:
11906 * lib/polyshape.[ch]:
11907 * lib/bezier_conn.[ch]:
11908 * lib/beziershape.[ch]:
11909 * lib/orth_conn.[ch]:
11910 * lib/neworth_conn.[ch]:
11911 * lib/element.[ch]: Changed a bit the _update_boundingbox()
11912 interface. Now the parent elements have an extra_spacing
11913 structure, which child objects just need to fill, to take care of
11914 most arrow & line width extra space needs.
11916 * objects/**/*.c: updated all objects to the new interface.
11917 While at it, killed all instances of (Object *) downcasts (phew !)
11919 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
11920 doesn't speak about.
11922 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
11924 * sheets/Logic.sheet: New sheet for Logic symbols.
11926 2001-02-21 James Henstridge <james@daa.com.au>
11928 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
11929 widget by its path name. Walks the GnomeUIInfo heirachy rather
11930 than widget tree, compares untranslated label names and ignores
11931 underscores in the labels.
11932 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
11933 lookups are not dependent on the current locale, as with
11934 gnome_app_find_menu_pos.
11936 * acconfig.h: guard against multiple inclusion of config.h.
11938 * app/select.c (select_style_callback): simply set the selection
11939 style to the value of action.
11941 * app/menus.c (menus_init): simplify the item factory based menu
11942 code a bit. It looks like it was using some code cut and pasted
11943 from the gimp, which looked a bit unnecessary. Things work fine
11945 (selectmenu): set the action to the type of selection mode
11947 (display_menu_items): use the symbolic enumeration values for the
11950 * app/plugin-manager.c:
11951 * app/plugin-manager.h:
11955 * app/select.h: change prototypes.
11957 * app/commands.c: update all callback prototypes, and get rid of
11958 some #ifdef GNOME's.
11960 * app/commands.h: change function prototypes.
11962 * app/dia_embedd.c (save_fn):
11963 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
11965 * app/menus.c (menus_init): for gnome menus, use
11966 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
11967 structure that proxies the callbacks to have the same signature as
11968 GtkItemFactory type 1 callbacks.
11969 (menus_init): for GTK menus, change from callback type 2 to type
11971 (display_menu_items): add back tearoffs. I don't know who removed
11972 these for the gtk menu case.
11974 2001-02-20 Kevin Breit <battery841@mediaone.net>
11976 * doc/en/usage-objects-special.sgml: Fixed a few of the special
11977 object descriptions. More to come in the next few days.
11979 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
11981 * app/render_eps.c: Fixed for internationalized floating point
11984 * objects/UML/note.c: Fixed properties -- was missing
11985 Get/ApplyPropertiesFunc. Also improved update to recalculate text
11988 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
11990 * plug-ins/xfig/xfig-import.c:
11991 File added importing xfig files. Still very rough, but good
11992 enough to let others hack on it.
11994 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
11997 * app/linewidth_area.c:
11999 * lib/properties.c:
12001 * objects/ER/attribute.c:
12002 * objects/ER/entity.c:
12003 * objects/ER/relationship.c:
12004 * objects/custom/custom_object.c:
12005 * objects/flowchart/box.c:
12006 * objects/flowchart/diamond.c:
12007 * objects/flowchart/ellipse.c:
12008 * objects/flowchart/parallelogram.c:
12009 * objects/standard/box.c:
12010 * objects/standard/textobj.c: per Vlad Harchev's request, made
12011 page sizes of gtk_adjustments different than their step sizes.
12012 When sensible values of page size weren't found (overwhelming
12013 majority of cases), page sizes were set to 10.0 * respective step
12016 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
12018 * objects/network/hub.c:
12019 Patch from Hubert Figuiere applied, adding connection points.
12021 2001-02-02 James Henstridge <james@daa.com.au>
12023 * app/display.c (new_display): set update id to 0 here.
12024 (ddisplay_update_handler): rename from ddisplay_flush, and set
12025 update_id to 0 at end of processing.
12026 (ddisplay_flush): new implementation that simply sets an idle
12027 handler to perform the actual drawing.
12029 * app/display.h: add structure member to hold the redraw idle
12032 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
12034 * objects/standard/ellipse.c (ellipse_copy):
12035 * objects/standard/zigzagline.c (zigzagline_copy):
12036 Fix of copying provided by Martin Hawlisch.
12038 2001-01-23 Kevin Breit <battery841@mediaone.net>
12040 * doc/en/graphics/: added directory
12042 * doc/en/graphics/greendots.png: added file
12044 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
12047 2001-01-23 Kevin Breit <battery841@mediaone.net>
12049 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
12050 thanks to John Fleck!
12052 2001-01-21 Kevin Breit <battery841@mediaone.net>
12054 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
12056 2001-01-12 Michael Meeks <michael@helixcode.com>
12058 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
12059 so our POA gets setup properly.
12061 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
12062 things we g_malloc.
12064 * configure.in: Use bonobox_print.
12066 * app/dia_embedd.c (embeddable_factory): add print interface.
12067 (object_print): impl.
12069 2001-01-11 Michael Meeks <michael@helixcode.com>
12071 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
12072 (load_fn, save_fn): impl.
12073 (view_factory): hide modified status bar, & use activate fn.
12074 (refresh_view): force redraws of the views.
12075 (view_show_hide): split from
12076 (dia_view_activate): here.
12078 * app/diagram.c (diagram_load_into): split from diagram_load.
12079 (new_diagram): simplify bu splittin stuff into
12080 (diagram_init): here.
12082 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
12084 * shapes/jigsaw/*.shape: replaced #000000 with foreground
12085 and #ffffff with background
12087 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
12089 *configure.in: GTK+-build was broken due to missing
12092 2001-01-06 Michael Meeks <michael@helixcode.com>
12094 * app/dia_embedd.c (main): add running context support.
12095 (dia_embeddable_destroy): remove old running object counting.
12096 (embeddable_factory): ditto.
12097 (view_factory): comment out menu path hiding.
12099 * lib/sheet.c (load_register_sheet): use free to free
12100 stuff from libxml not g_free.
12102 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
12104 * configure.in: remove USE_OAF checks, check for a precice
12105 Bonobo version >= 0.31, revamp bits.
12107 * app/dia_embedd.c (init_server_factory): upd.
12108 (init_dia_factory): remove OAF conditionals, everything uses
12111 * app/GNOME_Dia.oafinfo: rename OAFIIDs
12113 * app/Makefile.am: remove ancient gnorba code.
12114 rename dia.oafinfo to GNOME_Dia.oafinfo
12116 2001-01-07 Hans Breuer <Hans@Breuer.Org>
12120 * readme.win32 : some more files required or useful to build
12123 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
12124 fill_bezier implementation, boundary drawing in fill mode, etc.
12125 Next one complaining gets the source, uncommented ...
12127 * shapes/network/router-symbol.xpm
12128 * shapes/network/switch-atm-symbol.xpm
12129 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
12130 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
12131 the files as XPMs. Maybe the X versions of these functions are more
12134 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
12136 * plug-ins/python/Makefile.am: added libart path
12138 * plug-ins/python/python.c: added dirent.h
12140 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
12142 2001-01-06 Hans Breuer <Hans@Breuer.Org>
12144 * objects/uml/actor.c
12145 * objects/uml/branch.c
12146 * objects/uml/class.c
12147 * objects/uml/classicon.c
12148 * objects/uml/component.c
12149 * objects/uml/large_package.c
12150 * objects/uml/node.c
12151 * objects/uml/note.c
12152 * objects/uml/object.c
12153 * objects/uml/small_package.c
12154 * objects/uml/state.c
12155 * objects/uml/usecase.c : started to implement the generic property
12156 interface for the uml objects. Would appreciate some help on how
12157 to implement properties which are list of properties themselves,
12158 e.g. member functions and their parameters of UMLClass.
12160 2001-01-06 Hans Breuer <Hans@Breuer.Org>
12162 * plug-ins/python/diamodule.c : finally ported to win32.
12163 Added new objects and implemented register_export function.
12165 * plug-ins/python/pydia-object.h
12166 * plug-ins/python/pydia-display.c
12167 * plug-ins/python/pydia-handle.c
12168 PyObject_HEAD_INIT needs some tweakink on win32. Done in
12169 pydia-object.h; others files simply using it.
12171 * plug-ins/python/pydia-layer.c : reflect
12172 layer_find_closest_connection(_)point renaming
12174 * plug-ins/python/pydia-object.c : add property properties.
12175 Also change bounding_box to DiaRectangle.
12177 * plug-ins/python/python.c : extended error reporting; use
12178 all *.py files from Dia's plug-in dir instead of hardcoded
12179 test.py. This sollution should be fine with Win32, but on
12180 Unix it may need some tweaking (dunno) ...
12182 * plug-ins/python/export-object.py
12183 * plug-ins/python/export-render.py : test and documentation
12184 implementations for export filter implementations in Python
12186 * plug-ins/python/pydia-color.[hc]
12187 * plug-ins/python/pydia-diagramdata.[hc]
12188 * plug-ins/python/pydia-error.[hc]
12189 * plug-ins/python/pydia-export.[hc]
12190 * plug-ins/python/pydia-font.[hc]
12191 * plug-ins/python/pydia-geometry.[hc]
12192 * plug-ins/python/pydia-image.[hc]
12193 * plug-ins/python/pydia-properties.[hc]
12194 * plug-ins/python/pydia-property.c
12195 * plug-ins/python/pydia-render.c : new objects in new files
12197 * plug-ins/python/makefile.am : added new files but can't test it
12199 * plug-ins/python/pydia.def
12200 * plug-ins/python/makefile.msc : for win32 build
12202 * plug-ins/cgm/cgm.c
12203 * plug-ins/dxf/dxf-import.c
12204 * plug-ins/dxf/dxf-export.c
12205 * plug-ins/hpgl/hpgl.c : reflect export API change
12207 * plug-ins/shape/shape-export.c : reflect export API change
12208 and check for libart (better the availibility of a png exporter)
12209 at run-time instead of compile-time.
12211 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
12213 * app/recent_files.h was missing from Hans's commit
12215 * plug-ins/shape/shape_export.c: shape export was broken
12216 due to interface changes
12218 2001-01-05 Hans Breuer <Hans@Breuer.Org>
12220 Applied Steffen's recent file list patch :
12221 * app/Makefile.am : added recent_files.[hc]
12222 * app/diagram.c : add files to recent file list
12223 * app/menus.c : add recent file menu
12224 * app/app_procs.c : changed initialization order to
12225 make recent file list work with command line processing.
12227 The Filter export()/import() functions have got an additional
12228 parameter to allow multiple filters via one C callback (required
12229 for Python bindings)
12231 * app/commands.[hc] : corrected the signature for gtk menu callback
12232 functions, which actually use the second or third parameter. This
12233 is the absolute minimum change to make these functions/menu entries
12234 work again. Using the other possible gtk menu callback signature
12235 would have required one more function to change. (see mailing list
12236 thread "Objects/Align/Equal Distance" for more information.
12238 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
12239 zoom-combo focus patch
12242 * app/interface.c : wrapped the Zoom Combo code into
12243 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
12244 improvement but cluttering the user interface. Also it wasn't
12245 compiling on Win32 anyway. The win32 version does define
12246 WITHOUT_ZOOM_COMBO to keep the old look.
12247 There are plans to use the statusbar to display size and placement
12248 of selected objects, whereas the Zoom Combo would need to get out
12249 of the way as well.
12251 Added "Save Changes?" to diagram close dialog. Hopefuly the
12252 Yes/No/Cancel option isn't too much windoze like. IHMO this is
12253 an useability improvement.
12258 * app/layer_dialog.c
12259 * app/paginate_psprint.c
12261 - reflect signature changing of filter->export function
12262 - replaced '/' with G_DIR_SEPARARTOR where appropriate
12264 * app/diaunitspinner.c
12265 * app/render_libart.c
12266 added misssing headers like <string.h>
12268 * app/object_ops.c : fixed copy&paste bug in dialog string
12270 * app/splash.c : gdk_widget_show_now () does not ensure actual
12271 drawing of the splash screen, at least not on win32. Reuse the
12272 previous implementation with gtk_main_iteration() again.
12274 * */makefile.msc : make use of the build module (available in
12275 gnome-cvs/build. Updated for other source changes
12277 * lib/filter.h : added an user_data pointer to <ex/im>port()
12278 function signature and Dia<Im/Ex>portFilter to allow different
12279 filters to reuse the same callback function
12281 * lib/font.c : #include <string.h>
12286 * lib/neworth_conn.c
12287 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
12289 * */*.def : export function definition files required by win32 build
12291 * objects/custom/custom.c : #include <string.h>
12293 * plug-ins/pstricks/render_pstricks.c
12294 * plug-ins/shape/shape_export.c
12295 * plug-ins/svg/render_svg.c
12296 reflect changes to filter export function signature
12298 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
12299 mostly work as expected
12300 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
12301 to build the wmf plug-in because on the one hand the GDI emulation
12302 isn't finished and on the other hand it isn't required when building
12303 for win32. Is there anybody out there, who wants to save WMF on non
12304 windoze platforms ?
12306 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
12307 offset into account.
12309 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
12311 * app/Makefile.am: added missing plug-ins to run_dia.sh
12313 * lib/paper.c: added paper sizes A0, A1, A2
12315 * objects/UML/class.c
12316 objects/UML/class.h
12317 objects/UML/class_dialog.c: added support for colored UML
12320 2000-12-30 Kevin Breit <battery841@mediaone.net>
12322 * doc/en/usage-customization.sgml: added more content
12324 2000-12-24 Kevin Breit <battery841@mediaone.net>
12326 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
12327 <remy.viard@laposte.net>
12329 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
12331 * added limiting lines to Civil Engineering sheet,
12332 fixed vertical pump icon
12334 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
12336 * updated/additional Civil Engineering shapes: better icons,
12337 shapes use foreground/background colors now and are filled
12339 2000-12-03 Kevin Breit <battery841@mediaone.net>
12341 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
12342 the selection <sect1>
12344 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
12346 * app/load_save.c (diagram_data_save): avoid using obsoleted
12347 libxml calls (only matters when compiling with libxml2)
12349 2000-11-25 James Henstridge <james@daa.com.au>
12351 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
12352 handle the tool drops on the canvas.
12354 * app/interface.c (display_data_received_callback): do the check
12355 to make sure that the drag is from a local toolbox here as well.
12357 * app/interface.c (create_tools): unref the pixmap/mask after
12358 creating the GtkPixmap.
12359 (tool_setup_drag_source): function to set up a drag source for
12360 create object tool buttons.
12361 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
12362 (fill_sheet_wbox): same here.
12363 (create_display_shell): set up the display canvas as a drag
12365 (display_drop_callback, display_data_received_callback): functions
12366 to handle drops of tool buttons.
12368 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
12369 does weird shit to the user_data pointer for a menu item. Object
12370 alignment should work again now.
12372 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
12373 NULL, and mark this function static.
12374 (app_splash_init): use gtk_widget_show_now() instead of the
12375 gtk_main_iteration loop.
12376 (app_splash_init): connecting gtk_widget_destroy to the destroy
12377 signal of a widget seems pretty useless.
12379 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
12381 * doc/en/dia-manual.sgml:
12382 Added sect1 for advanced object types. Starting development
12385 2000-11-18 Kevin Breit <battery841@mediaone.net>
12387 * doc/en/dia-manual.sgml:
12388 Stupid spelling fixes.
12390 2000-11-18 Kevin Breit <battery841@mediaone.net>
12392 * doc/en/dia-manual.sgml:
12393 Just some small changes I made. Props to Greg LeBlanc on the
12396 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
12399 (ddisplay_add_display_area): Clip input rectangle to
12400 the visible part of the display.
12401 (ddisplay_scroll): Optimization, don't scroll and
12402 redraw if moving to the same position as before.
12404 * app/render_libart.c (renderer_libart_copy_to_window):
12405 Removed sanity check. Now moved to ddisplay_add_display_area().
12408 Added return at end of file.
12410 2000-11-13 Kevin Breit <battery841@mypad.com>
12411 * doc/en/dia-manual.sgml
12412 Commited manual changes from Henry House <hajhouse@houseag.com>
12414 2000-10-21 Hans Breuer <Hans@Breuer.Org>
12415 * lib/beziershape.c :
12416 The previous code was accessing unowned memory due to IHMO
12417 wrong index calculation. Now it appears to be fixed.
12421 * plug-ins/makefile.msc
12422 * objects/makefile.msc
12423 * app/makefile.msc: (new files)
12424 Makefiles for Dia on Win32, Micro$oft VC only.
12426 * plug-ins/pstricks/render_pstricks.c
12427 * plug-ins/dxf/dxf-import.c
12428 * plug-ins/shape/shape-export.c
12429 * plug-ins/svg/render_svg.c
12432 * app/preferences.c
12436 * objects/custom/custom.c
12437 * objects/standard/image.c
12438 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
12439 where appropriate, add missing prototypes like <string.h>
12441 * plug-ins/wmf/wmf_gdi.cpp
12442 * plug-ins/wmf/wmf_gdi.h:
12443 start of wmf write functions for non Win32 platform. Not
12444 finished yet. The other way to get it working maybe to
12445 link the plug-in against wine libs.
12447 * plug-ins/wpg/wpg.c : add missing brace
12449 * app/load_save.c :
12450 Handling for unknown objects at load time. Previously Dia
12451 was crashing, if you try to load a file referencing objects
12452 whiches plug-ins aren't installed/available. Now it spits out
12453 a warning and ignores the unknown objects.
12456 toolbox DND support for files like The Gimp does it.
12460 Simple splash screen support and usage.
12463 Splash screen, portability fixes, dont' g_error if there is
12464 g_get_homedir return NULL. This may remove the one and only
12468 Make it compile without ENABLE_NLS
12470 * app/render_libart.c :
12471 Sanity check to avoid calling libart with wrong window coordinates.
12472 They come from the update handler. Direct Gdk is dealing nicely
12473 with coordinates out of range, libart does access un-owned memory
12474 in this case, mostly causing crashes.
12476 * app/winmain.c: (new file) Export the Win32 Gui version of the
12477 main function. This file is only required for Windoze.
12479 * app/splash.c: (new file) splash screen implementation
12483 * lib/diavar.h: (new file)
12484 moved special variable export code to diavar.h, because it is
12485 needed in color.h and font.h
12488 M$VC cann't export inlined functions. Quick hack to let it
12489 link again. Probably the glib mechanics should be used here?
12491 * objects/UML/lifeline.c : initialize var before usage
12493 * objects/GRAFCET/step.c : removed unused var
12495 2000-10-14 James Henstridge <james@daa.com.au>
12497 * app/render_gnomeprint.c (draw_image): change code so images
12498 don't get flipped when printing.
12500 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
12501 sure that the return value of
12502 gnome_print_context_new_with_paper_size is not NULL.
12504 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
12505 into a series of bezier segments.
12506 (fill_arc): similar code to handle filled arc segments.
12508 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
12515 * app/disp_callbacks.c
12517 * app/linewidth_area.c
12518 * app/paginate_psprint.c
12519 * app/preferences.c
12523 * app/neworth_conn.c
12525 * objects/standard/box.c: various small changes to get rid of
12526 annoying warnings (eg faulty prototypes and unused variables)
12528 * app/disp_callbacks.c
12531 * app/magnify.h: update magnify tool icon when pressing/releasing
12532 shift. I will try to make something more general so that similar
12533 things can be used by other tools.
12535 * shapes/SDL/inout.shape
12536 * shapes/SDL/return.shape: fixed some typos
12538 2000-10-09 James Henstridge <james@daa.com.au>
12540 * objects/custom/shape_info.c (parse_path): apply patch from
12541 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
12544 2000-10-08 James Henstridge <james@daa.com.au>
12546 * objects/standard/image.c (image_set_props): if the file could not
12547 be loaded, show the broken image icon.
12549 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
12551 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
12553 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
12554 object icon when loading from a file. This allows you to have PNG
12555 icon files for shapes.
12557 2000-10-07 James Henstridge <james@daa.com.au>
12559 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
12561 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
12562 GDK_IMLIB_CFLAGS reference.
12564 * app/commands.c (help_about_callback): remove imlib code.
12566 * lib/dia_image.c: only include the pixbuf version of the image
12569 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
12571 * configure.in (CPPFLAGS): remove the check for imlib, as we now
12572 require gdk-pixbuf.
12574 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
12575 conditionally define \setfont as well.
12577 2000-10-05 James Henstridge <james@daa.com.au>
12579 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
12580 preamble so that we define \setlinejoinmode and \setlinecaps
12581 commands conditionally on them being undefined. This way, the
12582 pstricks output files should work without modification, and will
12583 support the commands when they are implemented in pstricks.
12585 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
12587 * dia.desktop: added hungarian translations to dia.desktop
12589 2000-10-04 James Henstridge <james@daa.com.au>
12591 * sheets/UML.sheet: fix typo.
12593 * objects/custom/shape_info.c: use strtod instead of g_strtod.
12594 (parse_path): actually call setlocale around strtod calls.
12596 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
12597 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
12598 the g_strtod wrapper.
12600 * shapes/SDL/: add SDL shapes from Rubens Ramos
12601 <rubens_ramos@yahoo.com>
12603 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
12605 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
12607 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
12608 W. Michael Petullo <mike@flyn.org>.
12610 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
12611 from the 0.86 tarball) and jigsaw.sheet.
12613 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
12615 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
12617 * shapes/network/: add network-additional shapes here.
12619 * sheets/network.sheet: add the network-additional shapes from
12620 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
12623 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
12625 * configure.in: Updated ALL_LINGUAS
12627 * po/nl.po: Removed newline from translation
12629 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
12631 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
12632 logo filename generation.
12634 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
12635 Avoiding "//dia_logo.png".
12637 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
12639 * app/filedlg.c: add include <sys/types.h> to
12640 remove warning. (OS/2)
12642 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
12644 * objects/chronogram/chronoline_event.c (reparse_clevent):
12645 the __checksum routine was simply bogus. Redone it in a slightly
12646 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
12648 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
12650 * app/create_object.c (create_object_button_press):
12651 * app/modify_tool.c (click_select_object):
12652 * lib/object.h: select renamed to selectf to prevent
12653 compiler problems with function select(). OS/2 version.
12655 2000-09-08 Karsten Weiss <knweiss@gmx.de>
12657 * po/de.po: Updated.
12659 2000-09-07 Karsten Weiss <knweiss@gmx.de>
12661 * dia.desktop: Added German translation
12662 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
12664 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
12666 * configure.in (ALL_LINGUAS): added "es"
12668 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
12673 * app/scroll_tool.c:
12674 Standardized cursor function get_cursor(). Magnify now has
12675 looking-glass cursor with + and -.
12677 * app/create_object.c (create_object_button_press):
12678 Newly created connections now snap to connection points even when
12681 2000-08-17 Daniel Egger <egger@suse.de>
12683 * app/menus.c: #ifdef'ed some code for the none GNOME
12685 * app/dia_embedd.c: Changed obvious hackery. Can anyone
12686 please have a look at the GNOME UI menu creation? The
12687 gnome-app-helper code is ages old and plainly broken!
12689 2000-08-15 Daniel Egger <egger@suse.de>
12696 * app/select.c: First big patch to get the menus
12697 working again in the international version. Copied
12698 some code written by Sven and me from GIMP and
12699 thus implemented automatic tearoffmenu creation and
12700 proper translation. I also removed that pseudo
12701 radiomenu hack and cleaned up several translation
12702 hacks which have never really worked. All in all
12703 this is part I of the big menu patch. Enjoy and tell
12704 me if you detect any problems.
12706 2000-08-14 Daniel Egger <egger@suse.de>
12708 * sheets/UML.sheet: Changed one German translation as
12709 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
12711 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
12713 * app/diapagelayout.c:
12714 * lib/diagramdata.c:
12715 * lib/diagramdata.h:
12718 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
12719 selecting paper size for a new diagram. TODO: Use libpaper if
12720 available and use gnome_paper-stuff if using GNOME.
12722 * sheets/Electric.sheet: fixed typo.
12724 2000-08-08 James Henstridge <james@daa.com.au>
12726 * po/README: added a readme file to tell translators to translate
12727 the .sheet files as well.
12729 * app/commands.c (help_about_callback): fix small bug where we tried
12730 to gdk_bitmap_unref() the mask for the about box image, even though
12731 it was NULL. Now check for a NULL mask.
12733 2000-08-07 Daniel Egger <egger@suse.de>
12735 * sheets/*.sheet: Added translations for the name
12736 in the toolbar tab. Brushed up some descriptions
12737 and some translations a bit.
12739 2000-08-06 James Henstridge <james@daa.com.au>
12741 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
12742 identifier and dtd url for SVG output.
12743 (new_svg_renderer): fix the output of the viewBox output. The
12744 second two numbers are the width and height -- not the right
12745 and bottom sides of the box.
12747 * shapes/*/*.shape: update svg namespace URI.
12749 * objects/custom/shape_info.c (load_shape_info): change the
12750 namespace URI for custom shapes yet again to match the Candidate
12751 Recommedation. It looks like this one will probably be the final
12754 * app/display.c (new_display): remove the code that sets ic and
12755 ic_attr members to NULL, as one of the previous function calls
12756 causes the display to be realised. This means that the ic gets
12757 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
12760 2000-08-06 James Henstridge <james@daa.com.au>
12762 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
12764 * NEWS: fixed date in NEWS file, as I will release today.
12766 * README: updated the README a little. Added note that Dia is now
12769 * dia.spec: fix up spec file.
12771 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
12773 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
12774 get heaps of warnings when you turn off debugging.
12775 Also made a few other warning fixes.
12777 2000-08-02 James Henstridge <james@daa.com.au>
12779 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
12781 * configure.in: update version number.
12783 2000-08-01 James Henstridge <james@daa.com.au>
12785 * app/commands.c (help_about_callback): add Hans to about dialog.
12787 * doc/shape.dtd: dtd for shape file format.
12789 * doc/custom-shapes: update doc file about creating custom shapes.
12791 * shapes/*/*.shape: change namespace URI for the SVG portion to the
12792 one for the latest draft.
12794 * shapes/*/*.shape: fix up rect definitions.
12796 * objects/custom/shape_info.c (load_shape_info): recognise newer
12797 namespace tag for SVG.
12798 (parse_svg_node): the rect element should take attributes x, y, width
12799 and height -- not x1,y1,x2,y2.
12801 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
12802 output to use the newest draft DTD.
12804 * plug-ins/svg/svg.c: initialisation code for plugin.
12806 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
12808 * plug-ins/svg/Makefile.am: makefile for svg plugin.
12810 * app/app_procs.c (internal_plugin_init): don't register the svg
12811 export filter here.
12813 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
12815 2000-07-31 James Henstridge <james@daa.com.au>
12817 * objects/standard/textobj.c (textobj_get_defaults):
12818 * objects/standard/polygon.c (polygon_get_defaults):
12819 * objects/standard/image.c (image_get_defaults):
12820 * objects/standard/ellipse.c (ellipse_get_defaults):
12821 * objects/standard/box.c (box_get_defaults):
12822 * objects/standard/beziergon.c (beziergon_get_defaults):
12823 * objects/flowchart/parallelogram.c (pgram_get_defaults):
12824 * objects/flowchart/ellipse.c (ellipse_get_defaults):
12825 * objects/flowchart/diamond.c (diamond_get_defaults):
12826 * objects/flowchart/box.c (box_get_defaults):
12827 * objects/custom/custom_object.c (custom_get_defaults):
12828 * objects/FS/flow.c (flow_get_defaults):
12829 * objects/FS/flow-poly.c (flow_get_defaults):
12830 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
12833 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
12834 widgets for various object types.
12835 (create_dialog): ref and sink the no_defaults_dialog.
12837 * app/preferences.c (prefs_create_dialog): change
12838 gtk_container_border_width call to gtk_container_set_border_width.
12840 2000-07-29 James Henstridge <james@daa.com.au>
12842 * app/commands.c (view_aa_callback): show a warning dialog if
12845 * app/interface.c (fill_sheet_menu): don't add a menu item for
12848 2000-07-26 James Henstridge <james@daa.com.au>
12850 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
12852 * app/menus.c: remove edit grid menu item.
12854 * app/commands.[ch] (view_edit_grid_callback): removed.
12856 * app/display.c (new_display): don't initialise removed Grid members.
12858 * app/grid.c: remove unused functions.
12860 * app/grid.h: remove dialog related stuff from Grid structure.
12861 Remove prototypes for dialog functions.
12863 * app/menus.c: add to menus
12865 * app/commands.[ch] (view_diagram_properties_callback): new command
12866 for showing the diagram properties dialog.
12868 * app/dia-props.[ch]: a new diagram properties dialog. To replace
12869 the edit grid dialog.
12871 2000-07-25 James Henstridge <james@daa.com.au>
12873 * app/grid.c (grid_x_update):
12874 (grid_y_update): as the grid setting is stored with the diagram,
12875 update all displays when a change is made.
12877 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
12879 * app/create_object.c (create_object_button_press):
12880 (create_object_motion): use new snap_to_grid signature.
12882 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
12883 and handle invisible grid lines.
12884 (snap_to_grid): use new grid settings. Also changed signature to
12885 take a DDisplay rather than Grid pointer.
12886 (grid_show_dialog): get the defaults from the correct place.
12888 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
12890 * app/diagram.c (new_diagram): set the grid size defaults from the
12893 * app/load_save.c (diagram_data_save): save grid and guide info to
12895 (diagram_data_load): add guide and grid load support.
12897 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
12900 * lib/diagramdata.h: add members to DiagramData for grid and guide
12903 * configure.in (BONOBO_LIBS): update configure scripts
12905 * app/dia.oafinfo: oafinfo file for dia embeddables.
12907 * app/dia_embedd.c: add OAF support.
12909 2000-07-24 James Henstridge <james@daa.com.au>
12911 * plug-ins/wpg/Makefile.am:
12912 * plug-ins/pstricks/Makefile.am:
12913 * plug-ins/hpgl/Makefile.am:
12914 * plug-ins/dxf/Makefile.am: same here.
12916 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
12917 the required libraries, and the link line was causing libtool not
12918 to build a shared library on some systems :(
12920 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
12921 be checking x, not n.
12923 2000-07-23 James Henstridge <james@daa.com.au>
12925 * app/preferences.c (prefs_data): set the "reset tools after
12926 create" preference to true by default. That seems to be what most
12929 * app/interface.c (create_sheets): instead of a notebook, use an
12930 option menu that updates the sheet tools. The notebook tabs were
12931 getting a bit unwieldly, so the option menu should fix that. This
12932 also reduces the number of widgets in the tools radio button
12933 group, which should make the UI a little more responsive.
12935 2000-07-19 Fatih Demir <kabalak@gmx.net>
12937 * configure.in: Added tr to ALL_LINGUAS.
12938 [ Yeah, we're now having a Turkish translation,
12941 * dia.desktop: Added the Turkish entries.
12943 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
12945 * doc/diagram.dtd: changed string-element so it conforms to the
12948 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
12950 * configure.in: added chinese.
12951 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
12959 objects/custom/shape_info.c:
12960 shapes/Circuit/npn.shape:
12961 shapes/Circuit/pnp.shape:
12962 sheets/*.sheet: dia now works with libxml2.
12963 Libxml2 is a bit more picky when parsing xml and reported errors on all
12964 sheet files because they use non ascii characters (added
12965 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
12966 I commented out these.
12968 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
12970 * configure.in (ALL_LINGUAS): added Italian
12972 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
12974 * configure.in (ALL_LINGUAS): added Korean
12976 2000-06-25 James Henstridge <james@daa.com.au>
12978 * objects/flowchart/parallelogram.c (pgram_create): use default font
12979 and add properties interface support.
12981 * objects/flowchart/ellipse.c (ellipse_create): use default font and
12982 add properties interface support.
12984 * objects/flowchart/diamond.c (diamond_create): use default font and
12985 add properties interface code.
12987 * objects/flowchart/box.c (box_create): use default font.
12989 * objects/custom/custom_object.c (custom_create): use default font
12992 * objects/standard/textobj.c (textobj_create): update to use default
12995 * lib/attributes.c: add implementations.
12997 * lib/attributes.h (attributes_[gs]et_default_font): add function
12998 prototypes for setting/getting a default font.
13000 2000-06-24 James Henstridge <james@daa.com.au>
13002 * app/paginate_gnomeprint.h: updated prototype.
13004 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
13005 diagram page settings.
13007 * objects/standard/beziergon.c (beziergon_copy): same here.
13009 * objects/standard/polygon.c (polygon_copy): copy the fill colour
13013 * app/tool.h (tool_options_dialog_show):
13014 * app/scroll_tool.h (free_scroll_tool):
13015 * app/render_svg.h:
13016 * app/render_libart.h (renderer_libart_copy_to_window):
13017 * app/render_gdk.h (renderer_gdk_copy_to_window):
13018 * app/properties.h (properties_hide_if_shown):
13019 * app/preferences.h (prefs_load):
13020 * app/object_ops.h:
13021 * app/modify_tool.h (free_modify_tool):
13022 * app/magnify.h (free_magnify_tool):
13023 * app/linewidth_area.h (linewidth_area_create):
13024 * app/layer_dialog.h:
13025 * app/handle_ops.h (handle_is_clicked):
13027 * app/grid.h (grid_destroy_dialog):
13028 * app/defaults.h (defaults_show):
13029 * app/cut_n_paste.h (cnp_exist_stored_objects):
13030 * app/create_object.h (free_create_object_tool):
13031 * app/connectionpoint_ops.h (diagram_unconnect_selected):
13033 * app/color_area.h (color_area_create):
13034 * app/app_procs.h (app_is_embedded): remove extern keyword from
13035 function prototypes.
13038 * lib/sheet.h (load_all_sheets):
13039 * lib/render_store.h:
13040 * lib/render_object.h (render_object_load):
13041 * lib/polyshape.h (polyshape_closest_segment):
13042 * lib/poly_conn.h (polyconn_closest_segment):
13045 * lib/objchange.h (new_object_state_change):
13046 * lib/neworth_conn.h (neworthconn_add_segment):
13047 * lib/message.h (message_error):
13050 * lib/font.h (font_descent):
13051 * lib/focus.h (remove_focus):
13053 * lib/diagramdata.h:
13054 * lib/dia_xml.h (data_add_composite):
13056 * lib/connpoint_line.h:
13057 * lib/connection.h (connection_move_handle):
13059 * lib/attributes.h (attributes_set_default_line_style):
13060 * lib/arrows.h (arrow_draw): remove extern keyword from function
13061 definitions. It is not required for functions.
13063 * plug-ins/dxf/Makefile.am (INCLUDES):
13064 * plug-ins/pstricks/Makefile.am (INCLUDES):
13065 * plug-ins/cgm/Makefile.am (INCLUDES):
13066 * objects/SADT/Makefile.am (INCLUDES):
13067 * objects/chronogram/Makefile.am (INCLUDES):
13068 * objects/GRAFCET/Makefile.am (INCLUDES):
13069 * objects/flowchart/Makefile.am (INCLUDES):
13070 * objects/sybase/Makefile.am (INCLUDES):
13071 * objects/FS/Makefile.am (INCLUDES):
13072 * objects/standard/Makefile.am (INCLUDES):
13073 * objects/network/Makefile.am (INCLUDES):
13074 * objects/UML/Makefile.am (INCLUDES): same here.
13076 * objects/ER/Makefile.am: changed inclusion of some macros to
13079 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
13080 handle the plug in extension, rather than have all the #ifdef's in
13083 * plug-ins/Makefile.am: add renderer.inc to dist.
13085 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
13087 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
13089 * lib/plug-ins.c: Handle OS/2 dll's too.
13091 2000-06-07 James Henstridge <james@daa.com.au>
13093 * app/plugin-manager.c (get_plugin_manager): set some table
13094 packing options to make it look a little nicer.
13096 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
13097 makefiles for these plug-ins.
13099 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
13101 * configure.in: added hpgl and wpg directories to build. Added
13102 note about whether gnome-print support was enabled, and noted that
13103 it is not recommended.
13105 2000-06-06 James Henstridge <james@daa.com.au>
13107 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
13108 a little work, but I am checking them in so I don't lose them.
13110 2000-06-01 James Henstridge <james@daa.com.au>
13112 * objects/standard/arc.c: added extra properties.
13114 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
13115 was using the wrong index into the handles array. This gets corner
13116 type changing working correctly.
13118 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
13119 to properties code (no editing or loading yet though). Also added
13120 support for point array manipulation through the offsets interfaces.
13122 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
13124 * app/interface.c (origin_button_press): changes so the origin
13125 button doesn't grab the pointer when we pop up the menu.
13127 * app/commands.c (help_about_callback): fix small memory leak in
13130 * app/menus.c (menus_init): fixed breakage I introduced in the non
13131 gnome menus when I was doing the menu changes. The tearoffs work
13132 really nicely in plain gtk mode as well.
13134 * objects/standard/beziergon.c (beziergon_create): changed the
13135 returned handles to match the handle numbering changes. Now
13136 segment addition and removal works correctly with undo!
13138 * lib/beziershape.c: various changes to the code. Changed the
13139 numbering of handles, and fixed the segment removal code.
13141 2000-05-31 James Henstridge <james@daa.com.au>
13143 * objects/standard/beziergon.c: remove connection point handling.
13144 There is still a bit of work to be done to get adding and removing
13145 of segments working correctly.
13147 * lib/beziershape.c: add connection point handling to beziershape.
13148 I set it for two connection points per segment.
13150 2000-05-30 James Henstridge <james@daa.com.au>
13152 * objects/standard/polygon.c: don't do connectionpoint handling.
13154 * lib/polyshape.c: changed to handle connection points internally.
13155 Also, don't worry about connections to handles on polyshape, as
13156 all handles are non connectable.
13158 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
13160 * configure.in: Added finnish
13162 2000-05-30 James Henstridge <james@daa.com.au>
13164 * sheets/*.sheet: translation updates to the .sheet files.
13166 * po/fr.po: updated po file from Christophe Merlet.
13168 * menus.h: removed prototypes for functions which have been removed.
13170 2000-05-29 James Henstridge <james@daa.com.au>
13172 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
13173 item in the option menu when changing selected diagram.
13175 * app/dia_embedd.c (view_factory): fix up function to work with new
13178 * app/disp_callbacks.c (ddisplay_realize): remove call to
13179 display_set_active from here.
13180 (ddisplay_canvas_events): move call here. This gets rid of all the
13181 warnings, as the renderer has been fully set up correctly at this
13184 * app/menus.c (menus_init): add the tearoff item to the start of the
13187 * app/app_procs.c (create_user_dirs): we don't need to create the
13188 menus directory anymore.
13190 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
13191 necessary to update the menu state here, as it was done when the
13192 active display was set.
13194 * app/display.c (display_set_active): update the menu state when
13195 changing active displays.
13197 * app/interface.c (origin_button_press): set the display as active
13198 when a click is made on the menu button.
13200 * app/menus.c (menus_init): set up a quit function to save the accels
13202 Add tearoff items for the non GNOME menus, add accelerators for
13203 several GNOME menus.
13205 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
13206 menus_get_image_menu().
13208 * app/menus.c (menus_get_item_from_path): use display_menus here
13209 rather than ddisp->popup.
13211 * app/display.h: remove the popup member in the DDisplay structure.
13213 * app/interface.c: remove option of not using wrap box.
13214 (create_toolbox): change to always use menus_get_toolbox_menubar
13215 even when using gnome menus.
13216 (create_display_shell): use menus_get_image_menu to load accelerators
13217 only -- not the actual popup menu.
13219 * app/menus.c (menus_init): new function to create the menus.
13220 (menus_get_toolbox_menubar): use this function whether gnome is
13221 in use or not. Changed to use menus_init.
13222 (menus_get_image_menu): same here. Also, now this function always
13223 returns the same menu, rather than a new one each time.
13224 (menus_init): read a menurc file to load accelerators here.
13226 2000-05-28 James Henstridge <james@daa.com.au>
13228 * app/display.c (ddisplay_really_destroy): unset active display if
13229 active display is destroyed.
13230 (ddisplay_active): simplify function to return active_display as set
13231 by display_set_active. This allows using a pinned menu with any
13232 display -- not just the one it was popped up from.
13233 (display_set_active): notify the layer dialog of change of diagrams
13234 when active diagram changes.
13236 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
13237 on button and key presses.
13238 (ddisplay_realize): set active display on realize.
13240 * app/display.c (display_set_active): simple implementation of this
13243 * app/display.h (display_set_active): add prototype for setting
13244 the active display.
13246 * app/interface.c (create_display_shell): don't give focus to the
13249 * app/menus.c: fix up menus for Beziergon.
13251 * app/interface.c (create_display_shell): make the widget in the
13252 top left corner a button that can be used to pop up the right click
13253 menu, like in gimp and sketch.
13255 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
13258 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
13259 add code to set corner types for beziergon.
13261 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
13263 (beziershape_move_handle): use the previous corner type for right
13266 * app/interface.c (tool_data): add beziergon to toolbox.
13268 * objects/standard/standard.c (dia_plugin_init): initialise the new
13269 Beziergon object type.
13271 * objects/standard/beziergon.c: an object based on BezierShape.
13273 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
13275 * lib/beziershape.[ch]: new files implementing a bezier shape.
13277 2000-05-26 James Henstridge <james@daa.com.au>
13279 * lib/text.c (text_key_event): handle multibyte inserts.
13280 (text_key_event): also add home and end keybindings.
13282 * app/interface.c (create_display_shell): connect handlers for
13283 focus_in_event, focus_out_event, realize and unrealize signals.
13285 * app/display.[ch] (new_display): initialise input context members.
13287 * app/disp_callbacks.[ch]: added XIM support here.
13289 * lib/font.c (suck_font): the black and white pixel values should be
13290 taken from a 1 bit colormap rather than the default colormap.
13292 Hans Breuer's Windows patches ...
13294 * lib/font.c: use Courier New for fixed width font on windows
13297 * lib/dia_image.h: change to "struct _DiaImage".
13299 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
13301 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
13302 mouse button for object menu. This will make two button mouse owners
13305 2000-05-25 James Henstridge <james@daa.com.au>
13307 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
13309 * app/app_procs.c (app_init): add extra NULL argument to call of
13312 * app/load_save.h: remove prototype.
13314 * app/load_save.c: remove diagram_data function here.
13316 * app/diagram.h: added prototype.
13318 * app/diagram.c (diagram_load): new function here, which uses import
13321 * plug-ins/dxf/dxf.c: register the import filter as well.
13323 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
13324 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
13326 * objects/standard/line.c: add start_point and end_point properties
13327 to standard line object.
13329 2000-05-21 James Henstridge <james@daa.com.au>
13331 * app/paginate_psprint.c: added missing include of locale.h.
13333 * objects/custom/custom_object.c (custom_draw): use fabs rather than
13334 abs for scaling factors.
13335 (custom_distance_from): same here.
13337 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
13339 2000-05-18 James Henstridge <james@daa.com.au>
13341 * po/POTFILES.in: updated POTFILES.in.
13343 * dia.spec: incremented version number in spec file.
13345 * NEWS: added (lots of) news items for the 0.85 release.
13347 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
13350 * configure.in: updated version number here.
13352 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
13354 2000-05-17 James Henstridge <james@daa.com.au>
13356 * app/app_procs.c (internal_plugin_init): register the native import
13359 * app/load_save.c (diagram_data_load, diagram_load): split this
13360 function into two -- one that does all the work on the DiagramData
13361 structure, and the other that provides compatibility with the old
13363 (dia_import_filter): use diagram_data_load to define an import
13366 * app/diagram.h (new_diagram): added const to prototype.
13368 * app/filedlg.c (file_open_callback): change to use new import filter
13371 * lib/filter.c: added import filter management functions.
13373 * lib/filter.h: added prototypes for import filter interface.
13375 * app/commands.c (help_about_callback): updated about dialog to
13376 contain a few more names.
13378 2000-05-16 James Henstridge <james@daa.com.au>
13380 * configure.in (Configuration): added a status message to the end of
13381 the configure script to give the user some idea of what was
13384 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
13386 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
13389 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
13392 * configure.in (AM_PATH_LIBART): use the check function provided
13393 with libart rather than our own code. It is more reliable, and
13394 it only requires that people who build out of CVS have libart.m4
13395 installed (not necessarily all of libart).
13396 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
13398 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
13400 * dia.desktop: Added Swedish translation.
13402 2000-05-09 James Henstridge <james@daa.com.au>
13404 * lib/dia_xml.c: you can't free a const pointer, so remove const
13405 from variable definitions.
13407 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
13408 initialised correctly.
13410 * app/render_svg.c (export_svg): set locale to C.
13412 * app/paginate_psprint.c (paginate_psprint): set locale to C.
13414 * app/render_eps.c (export_eps): set locale to C for EPS export.
13416 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
13417 (data_add_point): same here.
13418 (data_add_rectangle): same here.
13419 (data_real): use g_strtod to convert strings to real numbers, so that
13420 locales are taken into account.
13421 (data_point): same here.
13422 (data_rectangle): same here.
13424 * AUTHORS: added Henk and Jacek to authors file.
13426 Daniel Egger's code cleanups.
13428 * app/select.c (select_invert_callback): remove unused variable.
13430 * app/plugin-manager.c (get_plugin_manager): fix typo.
13432 * app/load_save.c (read_connections, write_objects):
13433 (write_connections): made some functions static.
13435 * app/interface.c (toolbox_delete, toolbox_destroy): made some
13438 * app/filedlg.c (file_export_callback): remove unused variable.
13440 * app/app_procs.c: various warning fixes.
13442 Integrating Jacek Pliszka's pstricks export filter.
13444 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
13446 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
13447 renderer (with a few small modifications by me).
13449 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
13451 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
13453 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
13456 * sheets/Makefile.am:
13457 * shapes/Makefile.am:
13458 * shapes/Civil/Makefile.am:
13459 * sheets/civil.sheet:
13461 Added civil/hydraulic/structural engineering objects from
13462 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
13464 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
13466 * objects/FS/flow-poly.c:
13467 * objects/FS/flow.c:
13468 Fix division by zero in point_normalize().
13469 Patch by David Thompson <dcthomp@mail.utexas.edu>
13471 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
13474 * lib/bezier_conn.c:
13475 * lib/connpoint_line.c:
13476 Added checks for zero-length lines before calls to point_normalize.
13478 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13480 * app/preferences.c (prefs_data): Changed
13481 reversed_dragging_intersects to not make the dialog ridiculously
13484 2000-04-22 James Henstridge <james@daa.com.au>
13486 Hans's win32 patches:
13488 * app/export_png.c: include message.h
13489 * app/interface.c: include dia_dirs.h
13490 * app/linewidth_area.c: check for rint
13491 * app/main.c: include interface.h
13492 * app/paginate_psprint.c: remove unused variable.
13493 * app/preferences.c: include message.h
13494 * app/render_svg.c: include stdlib.h
13495 * app/select.c: include object_ops.h
13496 * lib/dia_dirs.c: miscelaneous fixes for win32.
13497 * lib/dia_image.c: include string.h
13498 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
13499 * lib/properties.c: include stdlib.h
13500 * lib/properties.h: define extra data for standard properties as
13501 static variables on win32 (to get around dynamic linker problems).
13502 * objects/standard/polygon.c: polygon_create_change missing return
13505 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
13507 * configure.in (ALL_LINGUAS): added Catalan
13509 2000-04-18 James Henstridge <james@daa.com.au>
13511 * objects/standard/bezier.c (bezierline_get_object_menu): add a
13512 separator to the object menu between the add/remove segment items
13513 and the corner type items.
13514 (bezierline_get_object_menu): add code to disable the menu item for
13515 the current corner type. Really just a cosmetic change.
13517 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
13518 a NULL for the label or with no associated callback.
13520 * objects/standard/bezier.c (bezierline_menu_items): use the
13521 enumeration values rather than numeric values for the corner types.
13523 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
13524 structure, and add code to handle it. Also, don't save the corner
13525 types inline in the bez_points node. The way it is conditionally
13526 including the element just feels like it will break.
13528 * lib/geometry.h (BezPoint): removed the corner_type stuff from
13529 BezPoint. The corner type stuff is a user interface level idea rather
13530 than something required by the renderer, so should be taken care of
13531 at the object level.
13533 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13535 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
13536 checks. Weren't able to reproduce original bug, tough.
13538 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
13540 * sheets/Electric.sheet:
13541 * sheets/Contact.sheet:
13542 * sheets/Pneumatic.sheet:
13543 * sheets/Circuit.sheet: sprayed some <br/>'s around.
13544 (added a few French translations in the last file)
13546 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13549 * lib/bezier_conn.h:
13550 * objects/standard/bezier.c:
13551 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
13552 bezier points. Only one minor problem known: Menus are active
13553 for endpoints minor handles.
13554 11:28: Save and load now works, too.
13555 (bezierconn_closest_major_handle): 12:03: New function to get the
13556 non-control point handle associated with the nearest control
13558 Also fixed the menu activation problem, and made remove_segment
13559 not remove the endpoint.
13561 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13563 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
13566 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
13568 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
13569 <sys/stat.h>. OS/2 patch.
13571 2000-04-15 James Henstridge <james@daa.com.au>
13573 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
13574 Thompson's patch that adds undo support to the function structure
13577 2000-04-14 James Henstridge <james@daa.com.au>
13579 * objects/custom/custom_object.c (custom_distance_from): new
13580 implementation of distance algorithm that actually takes the
13581 display list into account when calculating the distance. Much nicer
13582 than a simple bounding box.
13584 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
13586 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
13588 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13590 * objects/standard/polygon.c: Start of polygons own changes (for
13591 connectionpoints). Need to do seperate changes in polyshape, too,
13592 rather than reuse the bezier changes.
13594 2000-04-13 James Henstridge <james@daa.com.au>
13596 * lib/dia_image.c (dia_image_draw): use the new enumeration values
13597 from after the gdk-pixbuf cleanup.
13599 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
13600 on for loop. Last set of coefficients were not beeing calculated,
13601 which caused a bit of breakage.
13603 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
13604 functions in geometry.c for calculating the closest segment.
13605 (bezierconn_distance_from): use distance_bez_line_point to calculate
13608 * lib/geometry.c (distance_bez_line_point): new function to calculate
13609 the distance from an open bezier line to a point.
13610 (distance_bez_shape_point): new function to calculate the distance
13611 from a closed bezier shape.
13612 (distance_ellipse_point): new function to calculate the distance from
13613 a filled ellipse to a point.
13615 * lib/geometry.h (BezPoint): moved this structure here from render.h
13617 2000-04-12 James Henstridge <james@daa.com.au>
13619 * lib/geometry.c (distance_bez_seg_point): new function to calculate
13620 the distance from a bezier segment.
13622 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
13623 to calculate the distance from the object.
13625 * lib/geometry.c (distance_polygon_point): function for calculating
13626 the distance from a polygon to a point.
13628 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
13631 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
13632 breaks can be inserted in the tool box.
13634 * doc/sheet.dtd: updated the DTD
13635 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
13637 2000-04-12 James Henstridge <james@daa.com.au>
13639 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
13640 macro if the dialog is a GtkDialog :(
13642 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13644 * objects/standard/polygon.c: Connectionpoints now properly
13645 managed in a GList. As far as I can tell, this will not dieturb
13646 the order (but I have the nagging doubt...)
13648 * lib/polyshape.c: No longer knows about connectionpoints.
13650 2000-04-11 James Henstridge <james@daa.com.au>
13652 * app/Makefile.am: fix makefile for bonobo build.
13654 * configure.in: fix checks for bonobo.
13656 * app/menus.c: added entries for the plugin manager.
13658 * app/Makefile.am (dia_core_files): added plugin manager to files
13661 * app/plugin-manager.[ch]: the plugin manager dialog.
13663 * app/display.c (display_update_menu_state): set the antialiased
13664 menu entry to the correct value.
13666 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
13668 * objects/custom/custom_object.c: not all renderers like ellipses with
13669 negative dimensions. This could cause ellipses to disappear when using
13670 the flip_h and flip_v functions.
13672 * samples/grafcet.dia: fixed speling and correctness.
13674 2000-04-11 James Henstridge <james@daa.com.au>
13676 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
13677 exposed the dia_plugin_load and dia_plugin_unload functions.
13679 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
13680 already created PluginInfo structure.
13682 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
13685 * lib/sheet.c: fix up call to dia_config_filename.
13687 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
13688 file. This would save information such as which plugins not to
13689 load during startup.
13691 2000-04-09 James Henstridge <james@daa.com.au>
13693 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
13695 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
13697 * lib/plug-ins.c (dia_register_plugins):
13698 Don't free the value returned from g_getenv.
13700 2000-04-09 Anders Carlsson <andersca@gnu.org>
13702 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
13704 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
13706 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
13707 right to left, select objects that intersect the rubberbanding rectangle
13708 instead of selecting objects that are in the rectangle.
13710 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
13712 * lib/diagramdata.h: Likewise.
13715 2000-04-09 James Henstridge <james@daa.com.au>
13717 * lib/plug-ins.[ch]: add copyright messages to files.
13719 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
13722 * objects/sybase/sybase.c (dia_plugin_init):
13723 * objects/network/network.c (dia_plugin_init):
13724 * objects/flowchart/flowchart.c (dia_plugin_init):
13725 * objects/custom/custom.c (dia_plugin_init):
13726 * objects/chronogram/chronogram.c (dia_plugin_init):
13727 * objects/UML/uml.c (dia_plugin_init):
13728 * objects/SADT/sadt.c (dia_plugin_init):
13729 * objects/GRAFCET/grafcet.c (dia_plugin_init):
13730 * objects/FS/fs.c (dia_plugin_init):
13731 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
13734 * objects/standard/standard.c (dia_plugin_init): change over to new
13737 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
13738 the version checker for plugins.
13740 * app/app_procs.c: remove plugin loading code from here, and use
13741 code from plug-ins.[ch]. Also move registration of internal
13742 objects/filters to a `builtin' plugin.
13744 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
13746 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
13748 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
13749 defined variable in EXTRA_DIST.
13751 * app/preferences.h: removed dia_config_filename from header.
13753 * app/preferences.c: removed dia_config_filename function.
13755 * lib/dia_dirs.c (dia_config_filename): moved function over to this
13756 file. Also changed implementation slightly so that it should work
13757 on the win32 port correctly (and use NT home directories).
13759 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
13760 it should have been.
13762 * lib/plug-ins.[ch]: new plugin loading code.
13764 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13766 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
13768 * lib/polyshape.c: Fix closest segment finding, exposes deeper
13769 bugs in adding corners to 'wraparound' segment.
13771 * objects/standard/polygon.c: Added connection points (fixed so
13772 far), set menu sensitivity.
13774 * lib/polyshape.c: Changed to box-style handles, fixed for start
13775 and ends not being special, added initial connections,
13777 * lib/dummy_dep.h: Added polyshape (gotcha!)
13779 * objects/standard/pixmaps/ellipse.xpm:
13780 * objects/standard/pixmaps/box.xpm:
13781 Filled element pixmaps with white.
13784 * objects/standard/polygon.c:
13786 * objects/standard/standard.c:
13787 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
13788 * lib/Makefile.am (libdia_a_SOURCES):
13790 * app/interface.c (tool_data):
13791 Added Standard/Polygon object and PolyShape lib object. Still
13792 needs inside grab and connection points.
13794 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
13797 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
13800 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
13801 if (argv) outside ifdefs.
13803 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13805 * objects/standard/image.c (image_set_props):
13806 Aspect ratio is back in town.
13808 * app/Makefile.am (dia_LDADD):
13811 Check for gdk_pixbuf (by default disabled, for now)
13813 * app/render_eps.c (draw_image):
13814 * app/render_libart.c (draw_image):
13815 * app/render_gnomeprint.c (draw_image):
13816 Support for alpha mask in rendering. Color postscript, too.
13820 Support for gdk_pixbuf and proper masking for exports.
13822 2000-04-01 Kjartan Maraas <kmaraas@online.no>
13824 * sheets/*.sheets: Updated Norwegian translations.
13826 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13828 * lib/text.c (text_insert_char):
13829 * lib/render_store.c (add_data):
13830 Made realloc double the alloced space rather than add
13831 a fixed amount, to reduce memory stress.
13833 * app/select.c: Added new select method 'Transitive'
13834 that select every reachable (by connections) object.
13836 2000-03-27 Kjartan Maraas <kmaraas@online.no>
13838 * dia.desktop: Added Norwegian translation.
13840 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
13842 * app/render_eps.c:
13843 * app/render_svg.c:
13844 Don't dereference NULL pointer if the renderer
13845 couldn't open the file. Fix by Lars Clausen.
13846 Bug reported by Martin Chisholm <b1mt@unb.ca>
13848 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
13852 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
13854 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
13856 * app/dia.gnorba (location_info):
13857 Changed to correct executable name.
13859 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
13862 Don't do any argument parsing or initialization
13865 * app/dia_embedd.c:
13866 Call init_server_factroy before app_init.
13867 Call app_init with argv==NULL
13868 Now we don't get any critical error on startup.
13871 Add Electric and Pneumatic to makefile list.
13873 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
13875 * shapes/Electric/*:
13876 * sheets/Electric.sheet:
13877 Add some Electric circuit shapes.
13879 * shapes/Pneumatic/*:
13880 * sheets/Pneumatic.sheet:
13881 Add some Pneumatic & Hydraulic circuit shapes
13882 (both sheets are still incomplete, though feature enough
13883 things for basic circuits).
13885 * shapes/Contact/l_*.(xpm|shape):
13886 * sheets/Contact.sheet
13887 * shapes/Contact/Makefile.am
13888 made the older electric circuit shapes in Contact obsolete (disabled
13889 them in the sheet, made that sheet Ladder only). Fixed the makefile
13890 for forgotten items.
13892 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
13895 Add support for Dia bonobo component.
13896 Currently a bit raw, so it's commented out.
13898 * app/dia_embedd.c:
13900 New files for embedding dia.
13901 The menu disabling hack is a bit gross. Esp. for GNOME.
13904 Add new function app_is_embedded();
13907 Don't destroy diagram when last display is destroyed if embedded.
13910 Change initialization of display so it works with embedding.
13913 Clarify comment about display destruction.
13915 * app/interface.[ch]:
13916 Added top_level_window argument to create_display_shell.
13917 Don't open a top-level window if embedding.
13918 Don't quit app if trying to close toolbox window when embedding.
13919 Add toolbox_show() and toolbox_hide().
13922 Added app_is_embedded() function (just returns false).
13923 Added toolbox_show() call in main().
13926 Added code for getting toolbox menus. This is used to
13927 hide some menu items when running embedded.
13930 Include sheet.h to remove warning.
13932 * objects/UML/association.c:
13933 Clarify association direction text.
13935 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
13938 Fixed man page so whatis parsing works.
13940 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
13942 * app/render_libart.c (new_libart_renderer):
13943 Fix from segg <segg@infonet.ca> to compile without libart.
13944 I forgot to change the stub for new_libart_renderer when doing
13945 the interactive renderer stuff for libart.
13947 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
13949 * dia.desktop: Added Irish translation.
13951 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
13953 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
13955 * app/load_save.c (fchmod): OS/2 defines only.
13957 2000-03-07 James Henstridge <james@daa.com.au>
13959 * lib/properties.c (prop_get_widget): set the position in the option
13962 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
13965 * app/export_png.c:
13966 * app/render_libart.[ch]:
13967 Don't export png:s with an interactive libart renderer.
13969 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
13971 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
13973 2000-03-02 James Henstridge <james@daa.com.au>
13975 * dia.spec (%build): unset LINGUAS before running configure. This
13976 ensures that all translations get included in the RPM.
13978 * lib/properties.c (object_create_props_dialog): put in a check for
13979 a NULL return from the describe_props() object method.
13980 (prop_desc_lists_union): make sure that the returned array is not
13982 (prop_desc_lists_intersection): same here.
13984 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
13986 * objects/ER/Makefile.am:
13987 * objects/FS/Makefile.am:
13988 * objects/UML/Makefile.am:
13989 Don't link object libs with gtk.
13991 2000-02-29 James Henstridge <james@daa.com.au>
13993 * app/preferences.c (prefs_save): check to see if the file could
13994 be opened before writing the prefs.
13996 * app/disp_callbacks.c (popup_object_menu): pass the button event
13997 to gtk_menu_popup. This allows you to click and release to open
13999 (ddisplay_canvas_events): same here.
14000 (create_object_menu): set the object type menu item in the object
14001 menu to be insensitive.
14003 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
14004 as we are now requiring a new version of libxml.
14006 * dia.spec: updated version number. Added requirement for
14009 * configure.in: incremented version number to 0.84.
14010 Added check for libxml >= 1.8.5. This will prevent some of the
14011 problems people have had with broken libxml versions.
14013 * NEWS: added news items.
14015 * app/interface.c (create_color_area): removed call to realize parent
14016 widget. Segg <segg@infonet.ca> reported that it caused a warning,
14017 but I haven't seen it on my copy of dia.
14019 2000-02-28 James Henstridge <james@daa.com.au>
14021 * app/export_png.c: added copyright notice, and made the band height
14024 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
14026 * lib/font.c (suck_font):
14027 Fixed off-by one bug in font pixmap height.
14028 Fixes the problem with garbage at the bottom of some text in aa mode
14029 and in png exported files.
14031 2000-02-27 James Henstridge <james@daa.com.au>
14033 * app/app_procs.c: add the png export filter if it was compiled in.
14035 * app/export_png.c (export_png): new PNG export filter. This requires
14036 the libart renderer to work as it needs a renderer that renders to a
14039 * configure.in: add check for libpng.
14041 * lib/message.c (message_internal): use a GNOME dialog here as well.
14043 * app/display.c (ddisplay_close): use a GNOME dialog here.
14045 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
14046 when exporting to EPS. This is because some people said the EPS
14047 output was too large
14049 2000-02-26 James Henstridge <james@daa.com.au>
14051 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
14054 * app/app_procs.c (app_exit): use a GNOME dialog here.
14056 * app/preferences.c (prefs_create_dialog): if GNOME support is
14057 enabled, show a GNOME dialog.
14059 * app/grid.c (grid_draw): use preferences when drawing page break
14062 * app/preferences.c: add page break preferences to dialog.
14064 * app/preferences.h: added page break preferences.
14066 2000-02-25 James Henstridge <james@daa.com.au>
14068 * sheets/UML.sheet: added new objects.
14070 * objects/UML/uml.c: link in the two new objects.
14072 * objects/UML/node.c:
14073 * objects/UML/branch.c: new UML objects from Stfan Seefeld
14074 <seefelds@magellan.umontreal.ca>.
14076 2000-02-24 James Henstridge <james@daa.com.au>
14078 * objects/custom/custom_object.c: converted to use the properties
14079 interface. In the future, it would be nice to add support for
14080 defining custom properties for custom objects, but that can wait.
14082 2000-02-22 James Henstridge <james@daa.com.au>
14084 * sheets/Circuit.sheet: added new circuit shapes to sheet.
14086 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
14087 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
14088 and adds a few new features.
14090 2000-02-21 Daniel Egger <egger@suse.de>
14092 * sheets/*.sheets: Added German translations and made some
14093 corrections to the others.
14095 2000-02-21 James Henstridge <james@daa.com.au>
14097 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
14099 * shapes/Circuit/...: added new shapes from Erik Janssens.
14101 2000-02-20 James Henstridge <james@daa.com.au>
14103 * app/interface.c (create_color_area): realize the parent window
14106 * objects/standard/image.c: properties patch for standard image
14107 object, from Lars Clausen.
14109 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
14111 * lib/properties.h (PropType): added file property type.
14113 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
14116 * app/interface.c: use wrap box for toolbox.
14118 * app/Makefile.am: added new files.
14120 * app/gtk*wrapbox.[ch]: added wrap box widget.
14122 2000-02-19 James Henstridge <james@daa.com.au>
14124 * sheets/network.sheet: added extra shapes to networks sheet.
14126 * configure.in (AC_OUTPUT): added shapes/network/Makefile
14128 * shapes/network/*: added shapes that were posted to the list a while
14131 * shapes/Makefile.am (SUBDIRS): added network subdirectory
14133 * app/menus.c (toolbox_menu_items): don't right justify help menu for
14134 gtk+ version of menus.
14136 * app/properties.c (create_dialog): use a GnomeDialog if we happen
14139 2000-02-18 James Henstridge <james@daa.com.au>
14141 * objects/flowchart/box.c: set extra data for corner radius and text
14142 padding properties.
14144 * objects/standard/box.c: set extra data for corner radius property.
14146 * lib/properties.h: set extra data in some standard properties.
14148 * lib/properties.c (prop_get_widget): look at the extra data for
14149 int, real and enum property types. They now use GtkSpinButton and
14150 GtkOptionMenu respectively.
14152 * lib/properties.h: extra data members for creating property setting
14155 2000-02-17 James Henstridge <james@daa.com.au>
14157 * objects/flowchart/box.c: reverted load/save functions back to
14158 previous implementations. Made box use standard property names.
14160 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
14162 * app/grid.c: add more digits to the grid edit dialog. This patch
14163 was also from Lars Clausen.
14165 * objects/standard/zigzagline.c:
14166 * objects/standard/textobj.c:
14167 * objects/standard/polyline.c:
14168 * objects/standard/line.c:
14169 * objects/standard/ellipse.c:
14170 * objects/standard/box.c:
14171 * objects/standard/bezier.c:
14172 * objects/standard/arc.c: patches to add properties code to standard
14173 objects. Based on patches from Lars Clausen. I have also removed
14174 some dead code from the files.
14176 * lib/properties.h (PROP_STD_*): define a number of standard
14177 properties. Where appropriate, objects should include these
14178 properties in their PropDescription list. This way, the intersection
14179 of properties of two different shapes will be greater.
14181 2000-02-14 James Henstridge <james@daa.com.au>
14183 * objects/flowchart/box.c (box_load, box_save): use property save
14184 routines. Make sure that any props not handled by object_load_props
14185 are loaded before calling object_load_props, or we get errors because
14186 update_data is called.
14188 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
14189 error that could cause properties to be loaded incorrectly.
14190 (object_set_props_from_offsets): similar here.
14192 * lib/properties.[ch] (prop_{load,save}): functions for loading
14193 or saving a property in Dia's XML file format.
14194 (object_{load,save}_props): load or save some properties of an
14195 object. These functions should help simplify the load/save methods
14196 of objects that implement the properties interface.
14198 2000-02-13 James Henstridge <james@daa.com.au>
14200 * objects/flowchart/box.c: use offset code to simplify property
14203 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
14205 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
14207 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
14209 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
14211 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
14214 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
14217 Add the custom object to DIA_LIB_PATH in run_dia.sh
14219 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
14221 * sheets/Circuit.sheet:
14222 * shapes/l_sout* (NEW):
14223 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
14224 variants of simple, inverted, set and reset outputs.
14225 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
14226 probably a split of Contact and Ladder sheets. And then a major
14227 revamping of the Contact sheet.
14229 2000-02-10 James Henstridge <james@daa.com.au>
14231 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
14233 * app/app_procs.c (register_all_objects): don't explicitely
14234 register the custom objects library -- let it be loaded by the
14235 normal plugin loading methods.
14237 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
14239 * objects/custom/Makefile.am: build libcustom_objects as a shared
14242 * objects/custom/shape_info.[ch]: don't read the description field
14243 of custom shapes. It makes more sense to have these in the sheet
14244 file to localise the parts of dia that translators have to deal
14247 * objects/custom/custom_object.c (custom_object_new): do not
14248 create the sheet object for the new custom shape -- this is
14249 handled by the custom sheet code.
14251 * objects/custom/custom.c: change over to being a normal plug-in
14252 rather than being linked with the main dia executable.
14254 2000-02-09 James Henstridge <james@daa.com.au>
14256 * sheets/Circuit.sheet:
14257 * sheets/Flowchart.sheet:
14258 * sheets/Contact.sheet: fixed up sheets.
14260 * objects/custom/custom_object.c (custom_object_new): set the
14261 extra ObjectType fields.
14263 * lib/sheet.c: use extra ObjectType fields when creating sheet
14264 objects. Give a warning if <shape> tags are found in a sheet
14265 file. Now the custom sheet code does not know about custom
14266 shapes -- they look like any other object type.
14268 * lib/object.h (ObjectType): added extra members
14270 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
14272 * app/linewidth_area.c:
14273 Added code to set arbitrary line width.
14274 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
14276 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
14278 * app/linewidth_area.c:
14280 Add support for font-sucking.
14281 Implementation borrowed from gnome-canvas.
14283 * app/render_libart.[ch]:
14284 Implement text rendering.
14286 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
14288 * app/properties.c (create_dialog):
14289 ref and sink no_properties_dialog.
14291 2000-02-07 James Henstridge <james@daa.com.au>
14293 * app/group.c (group_describe_props): new function. Return the
14294 intersection of the properties of the contained objects that
14295 implement the describe_props interface.
14296 (group_get_props): implement by iterating through contained objects
14297 and calling their get_props method until all properties have been
14298 set. Maybe this should go through all objects all the time??
14299 (group_set_props): implement by calling set_props method on all
14301 (group_ops): use standard props dialog creation routines.
14303 * lib/properties.c (prop_desc_lists_intersection): fix implementation
14304 of intersection -- I was using i++ instead of i-- in a for loop :(
14306 * objects/custom/custom.c (custom_register_objects): fix usage
14307 of dia_get_data_directory again.
14309 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
14310 actually read the sheets.
14312 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
14314 Win32 port by Hans Breuer <Hans@Breuer.org>
14317 Remove DATADIR and LIBDIR defines.
14320 Add dia_dirs.c and dia_dirs.h
14321 Added DATADIR and LIBDIR defines.
14323 * lib/dia_dirs.[ch]:
14324 New files for handling special directories.
14329 * objects/custom/custom.c:
14330 Fix warnings. Use directory functions.
14333 Add prototype for diagram_redraw_all.
14335 * app/diaunitspinner.c:
14338 * app/preferences.c:
14342 Win32 doesn't have mkstemp and fchmod.
14344 * app/paginate_psprint.c:
14345 Win32 calls popen _popen and pclose _pclose.
14348 Win32 calls finite _finite.
14351 Win32 needs to dllexport the color vars.
14353 * objects/GRAFCET/step.c:
14354 * objects/chronogram/chronoref.c:
14355 snprintf -> g_snprintf
14357 2000-02-05 James Henstridge <james@daa.com.au>
14359 * lib/properties.c: more fixes so that it doesn't crash when using
14360 properties. The undo/redo stuff also works!!
14362 * objects/flowchart/box.c (box_{describe, get, set}_props): test
14363 object where I have implemented the new properties interface
14364 complete with automatic properties dialog generation.
14366 * lib/properties.c (object_apply_props): fixed stupid error when
14367 creating the old_props array. Also, it no longer frees the props
14368 array -- you will have to do that yourself.
14370 2000-02-04 James Henstridge <james@daa.com.au>
14372 * app/properties.c (properties_apply): pass object_part to
14375 * lib/object.h (ApplyPropertiesFunc): added widget argument.
14377 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
14378 created this way as well.
14380 * objects/*/*.c: ref and sink the properties dialog window for each
14381 widget. It can't rely on ref count being incremented by
14382 properties_show anymore.
14384 * app/properties.c (properties_show): don't ref the widget before
14385 removing it, or its ref count will increase each time you open the
14386 properties dialog. Don't unparent the widget, as container_remove
14389 * lib/object.h: fixed up prototypes for new object methods.
14391 * lib/properties.[ch]: added functions for automatically creating
14392 a properties dialog from the output of describe_props, get_props and
14394 (object_apply_props): apply properties and return an ObjectChange
14395 structure that can be used for undo.
14397 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
14399 * objects/GRAFCET/transition.c: minor leak plugged.
14401 * sheets/GRAFCET.sheet:
14402 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
14403 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
14405 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
14406 new ones (for condition.c).
14407 * objects/GRAFCET/action.c: added connection points for the conditions.
14408 * samples/grafcet.dia: updated the sample to improve conformance to
14409 IEC 848 and take advantage of dia's new features.
14411 * lib/geometry.h: (point_get_normed) fixed a typo.
14413 2000-02-02 James Henstridge <james@daa.com.au>
14415 * lib/object.h: added object functions describe_props, get_props and
14416 set_props. Do type definitions so that object.h doesn't need to
14417 include properties.h, since properties.h includes object.h.
14419 * lib/properties.[ch]: more hacking.
14421 * po/de.po: updated po file.
14423 2000-01-30 James Henstridge <james@daa.com.au>
14425 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
14426 check to see if the C compiler accepts the flag beforehand.
14428 * lib/properties.[ch]: start of properties code.
14430 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
14432 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
14434 * sheets/GRAFCET.sheet:
14435 * sheets/GRAFCET/etapemc.xpm: (NEW)
14436 * sheets/GRAFCET/etapesp.xpm: (NEW)
14437 * objects/GRAFCET/step.c: Added the macro and
14438 sub-program call step types.
14440 * objects/GRAFCET/receptivity.[ch]: renamed to
14441 objects/GRAFCET/boolequation.[ch].
14442 * objects/GRAFCET/transition.c: changed (Receptivity *) to
14445 * lib/connpoint_line.[ch]:
14446 * objects/chronogram/chronoline.c:
14447 * objects/chronogram/chronoref.c:
14448 * objects/GRAFCET/vergent.c:
14449 * objects/standard/line.c:
14450 * objects/SADT/box.c: Minor CPL interface changes, factored out the
14451 point count adjustment code into the CPL object.
14453 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
14455 * app/render_libart.c:
14456 Added support for images and bezier curves.
14457 Only text/fonts missing now.
14459 * app/render_gdk.c:
14460 Removed old erronous comment.
14462 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
14464 * objects/chronogram/chronoline_event.c: removed references to
14465 lround(). Please don't insist, I'm already red of shame.
14467 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
14469 * app/render_libart.[ch]:
14471 Non-finished libart renderer.
14474 Added HAVE_LIBART flag
14480 Call gdk_rbg_init().
14482 * app/connectionpoint_ops.c:
14483 * app/disp_callbacks.c:
14485 * app/handle_ops.c:
14487 * app/modify_tool.c:
14488 Change ddisp->renderer type from RendererGdk * to Renderer *
14489 Draw zoom and select rects in ddisp->canvas->window instead
14490 of ddisp->renderer->renderer->pixmap.
14492 * app/display.[ch]:
14493 Add aa_renderer to DDisplay, and support for it.
14494 New function ddisplay_set_renderer() for changing renderer.
14495 Add ddisplay_transform_coords_double() function, used by aa renderer.
14496 Change ddisp->renderer type from RendererGdk * to Renderer *
14499 Add antialias to menu.
14501 * app/commands.[ch]:
14502 add view_aa_callback function
14503 Change ddisp->renderer type from RendererGdk * to Renderer *
14505 * lib/geometry.[ch]:
14506 Added IntRectangle and int_rectangle_union.
14508 2000-01-28 James Henstridge <james@daa.com.au>
14510 * app/commands.h: removed prototypes.
14512 * app/commands.c: removed the functions that have been moved to
14515 * app/filedlg.h: added new prototypes.
14517 * app/filedlg.c (file_open_callback): move open dialog to this
14518 file. This implementation should remember the current directory
14519 between file loads.
14520 (file_save_as_callback): moved this dialog as well.
14521 (file_save_callback): moved this function here.
14523 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
14524 align page boundaries to the origin.
14526 * app/diagram.c (diagram_update_extents): redraw the diagram if the
14527 scaling factor changes while updating the extents. This is so the
14528 page breaks get redrawn correctly.
14530 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
14533 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
14534 For normal mode, use (0,0) as the origin. For `fit to' mode, use
14535 the corner of the bounding box.
14537 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
14538 into page setup dialog.
14539 (pagesetup_apply): apply new `fit to' attributes to the diagram.
14541 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
14542 (diagram_data_save): save `fit to' data.
14544 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
14545 (data_update_extents): when in `fit to' mode, update scale factor
14546 when we update the extents.
14548 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
14551 * .../.cvsignore: added some cvsignore files to quieten cvs.
14553 * app/pagesetup.c (pagesetup_changed): added code to change the
14554 scaling/fit to values as you change the options in the page setup
14555 dialog. I haven't added code so that the fit to options are saved
14558 * app/diapagelayout.[ch]: changed the scaling portion of the widget
14559 to make it easier to set a `fit to' style scaling factor.
14561 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
14562 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
14563 but connpoint_line-based, so that there's a connection point at the
14564 middle of each segment. Currently only the SADT arrow uses this.
14566 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
14568 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
14569 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
14570 saving and editing of properties (and default properties).
14571 See the new objects (GRAFCET, SADT, chonograms) for examples.
14572 For already too hairy stuff, see objects/chronogram/chronoline.c.
14574 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
14575 evenly spaced connection points, which the user can add or remove at
14576 will. An object can own several connection point lines. See the SADT
14577 Box, or the GRAFCET vergents for examples.
14579 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
14580 quiet about unused stuff.
14582 * objects/GRAFCET (NEW):
14583 * samples/grafcet.dia (NEW):
14584 Added support for GRAFCET charts.
14586 * objects/chronogram (NEW):
14587 * samples/chronograms.dia (NEW):
14588 Added support for chronograms (feature requested by Ronald L. Chichest;
14589 I found I'd use it often, too).
14591 * objects/standard/line.c: Replace the middle connectionpoint by
14592 a whole connection point line, which defaults to one point (hint,
14593 hint). New Line object menu to take advantage of this.
14594 "Bothwards" compatibility is preserved (although you may loose
14595 connections if you load a newer file in a older dia).
14597 * app/lineprops_area.c:
14599 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
14600 (feature requested by Benjamin Kahn).
14601 Merged in Steffen Macke's slashed arrow head type.
14603 * app/Makefile.am (app/run_dia.sh actually):
14604 Added $DEBUGGER in front of dia's invocation, so that
14605 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
14606 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
14607 "EFENCE=-lefence" to link with Electric Fence.
14609 * configure.in: Made gcc do more aggressive optimisations on i386, and
14612 2000-01-24 James Henstridge <james@daa.com.au>
14614 * lib/geometry.[ch]: added inline versions of functions. Used
14615 glib's G_INLINE_FUNC stuff, so it should still work on systems
14616 without inline funcs.
14618 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
14619 it outputs the correct element id for the ellipse objects.
14621 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
14623 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
14624 object_add_handle_at. Message typo fixed.
14626 * lib/sheet.c (load_register_sheet):
14627 potential bug fixed (warning hunt).
14629 * objects/custom/custom.c (custom_object_load): disabled an assertion
14630 which made dia abort upon failure to load a shape file. Fixed a
14633 * objects/custom/shape_info.c (load_shape_info): Made the custom
14634 shape load code ignore XML comments between <?xml ...?> and the
14635 root object (mostly useful to put the emacs magic comments).
14637 * app/load_save.c: Made dia do backup copies of files when saving,
14638 and complain in case of failure.
14640 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
14642 * AUTHORS: fixed my address (ISP thought it was a great idea to change
14647 * shapes/Contact/*:
14648 * sheets/Contact.sheet:
14649 * sheets/Makefile.am:
14650 Added support for Contact and LADDER charts.
14652 * dia.desktop: Added a French translation.
14654 2000-01-23 James Henstridge <james@daa.com.au>
14656 * app/commands.c (help_about_callback): don't die if can't load
14659 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
14660 out NaN's when performing bezier curve subdivision.
14662 * objects/custom/custom_object.c: initialise memory of Custom structs
14665 * app/render_svg.c (draw_image): added image support to the XML
14666 output filter. The image is just referenced, rather than being
14667 included inline, so if you copy the SVG file somewhere else, you
14668 may need to move the images or fix up the links.
14670 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
14671 so the text is not just displayed in black all the time.
14673 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
14675 * configure.in: fixed libpopt test so we wont try to build with
14678 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
14680 * configure.in: Added "uk" to ALL_LINGUAS.
14682 1999-12-24 James Henstridge <james@daa.com.au>
14684 * po/ru.po: updated russian translation from Valek Filippov.
14686 * app/render_svg.c (new_svg_renderer): make output use 19991203
14687 version of SVG DTD. Use viewBox to set the extents of the view.
14689 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
14690 ftp.gnome.org as the download.
14692 * TODO (TODO): weeded out completed todo items and added a few extra.
14694 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
14696 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
14697 be good to get rid of the object/shape distinction and separate
14698 the custom shape code out from the main application.
14700 * objects/custom/README, diagram.dtd: moved to new doc directory.
14701 Renamed the custom shapes README to custom-shapes. Also updated
14702 custom shape docs a bit and removed the section on sheet files, as
14703 that has changed a bit.
14705 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
14706 of the image data is larger than the maximum cell array. I should
14707 add code to break scan lines down further in this case, but for now
14708 an error message is better than an infinite loop.
14710 * app/filedlg.c (file_export_ok_callback): show a dialog if we
14711 couldn't determine the export filter to use.
14713 * app/commands.c (help_about_callback): fixed up about box logo
14714 expose bug. Now just use a GtkPixmap widget rather than a
14715 GtkDrawingArea and calling gdk_imlib_paste_image.
14717 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
14718 because automake does not always get things right.
14720 * configure.in: updated version number to 0.83.
14722 * app/preferences.c (prefs_save):
14723 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
14724 for fopen. Text is the default file mode anyway.
14726 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
14727 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
14728 * app/load_save.c (write_objects, write_connections):
14729 * app/filedlg.c (file_export_ok_callback):
14730 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
14731 * lib/dia_xml.c (data_add_point, data_add_rectangle):
14732 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
14733 snprintf to calls to g_snprintf.
14735 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
14736 as the picture name.
14738 1999-12-23 James Henstridge <james@daa.com.au>
14740 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
14741 negative numbers. This fixes the upside down text problem I was
14743 (draw_image): implemented the image code. It will try to split the
14744 image data up into bands if it is too big to fit into a single
14745 cgm cell array element. It will have problems if you try to insert
14746 an image wider than about 10,000 pixels though.
14748 * Makefile.am: use gnomedatadir for the files that need to be
14749 installed in gnome's datadir. This is mainly to help people doing
14750 packages for weird setups.
14752 1999-12-22 James Henstridge <james@daa.com.au>
14754 * plug-ins/cgm/cgm.c: added support for text. Now only images and
14755 beziers are left to do. The text seems to be the wrong way up
14756 still. This is probably a problem with character orientation
14757 element, but I have used what the settings given in the standard.
14758 Other than this, the CGMs dia produces are readable (and displayable)
14759 by ralcgm and corel draw.
14760 (draw_string): subtract from the X coord rather than the Y coord for
14761 center and right aligned text.
14763 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
14764 the size of a real number, and changed name of write_double to
14765 write_real. Consider changing to fixed real encoding. Also, now
14766 all element headers are correct. Once the real number encoding is
14767 fixed, only text, beziers and images are left to do.
14769 1999-12-21 James Henstridge <james@daa.com.au>
14771 * Makefile.am (SUBDIRS): recurse into plug-ins.
14773 * configure.in: add plug-ins directory makefiles to list.
14775 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
14776 not done yet. Also, the output files are not quite correct.
14778 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
14779 font. It doesn't work if you do.
14781 1999-12-20 James Henstridge <james@daa.com.au>
14783 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
14784 export the files. Instead, use filter_guess_export_filter to
14785 guess the correct format to save in and use the appropriate filter.
14786 It defaults to postscript for compatibility.
14788 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
14791 * app/commands.[ch]: removed export to eps functions.
14793 * app/menus.c: removed export to eps menu items.
14795 * app/app_procs.c: register new export filters.
14797 * app/load_save.[ch]: define dia native export filter.
14799 * app/render_eps.[ch]: define eps export filter.
14801 * lib/filter.h: added diafilename argument to the DiaExportFunc
14802 prototype. This is useful for putting the source of the diagram
14803 into the output file for instance.
14805 * app/app_procs.c (app_init): register the SVG export filter. Have
14806 to get EPS code converted to this API, and maybe also allow saving in
14807 DIA's native format from the export dialog. In fact, it is now
14808 possible to load an export filter from a shared library and it will
14809 integrate into the interface correctly.
14811 * app/menus.c: removed references to the SVG renderer.
14813 * app/commands.[ch]: removed svg stuff.
14815 * app/diagram.[ch]: removed diagram_export_to_svg function.
14817 * app/render_svg.[ch]: added a DiaExportFilter structure for this
14820 * app/filedlg.[ch]: code for the new export diagram dialog. Will
14821 probably move the open/save dialogs to this file as well.
14823 1999-12-19 James Henstridge <james@daa.com.au>
14825 * lib/filter.[ch]: start of interface for generalised handling of
14826 filters. I have only done code for export filters so far. I still
14827 need to do the gui for this, and convert the current SVG and EPS
14828 filters to the new API.
14830 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
14831 weren't setting the last handle correctly. It was actually assigning
14832 to the wrong position in the handles array, so the last handle was
14833 left as NULL, which caused the segfault.
14835 * objects/standard/image.c (image_copy): modified routine so that
14836 it just adds a reference to the DiaImage structure in the new image
14837 object. This seems to have cleared up the problems with copying
14840 * dia.spec: spec file additions from John Gotts.
14842 1999-12-12 James Henstridge <james@daa.com.au>
14844 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
14845 has not been released yet though.
14847 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
14850 The following based on a patch from Lars Clausen:
14852 * objects/standard/bezier.c (bezierline_move_handle): when performing
14853 the initial drag of the bezierline, move the control points to keep
14856 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
14857 make the new control points a bit closer to the major point.
14859 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
14860 as the reason for the move.
14861 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
14864 * lib/handle.h: new handle move reasons.
14866 1999-12-09 James Henstridge <james@daa.com.au>
14868 * dia.spec: include the new files in RPMs.
14870 * Makefile.am: install these new files.
14872 * dia.keys.in: file describing actions and icon for dia diagrams for
14873 use in the gnome file manager.
14875 * dia.mime: a file defining the application/x-dia-diagram mime type.
14877 * dia-diagram.png: an icon for dia diagrams.
14879 1999-12-08 James Henstridge <james@daa.com.au>
14881 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
14883 * plug-ins/python/pydia-display.[ch]: wrapper for display.
14885 * objects/standard/ellipse.c: applied Lars's patch to optionally not
14886 draw the background of the ellipse.
14888 * app/load_save.c (read_connections): do some sanity checking on the
14889 handle and connection point numbers before performing the object
14892 * lib/bezier_conn.c (bezierconn_load): give the correct number of
14893 handles when loading a BezierConn.
14895 1999-12-07 Kjartan Maraas <kmaraas@online.no>
14897 * sheets/*.sheet: Finished Norwegian translations.
14899 1999-12-07 James Henstridge <james@daa.com.au>
14901 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
14902 (PyDia_GetObjectType): find object type function.
14904 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
14905 method for diagrams.
14907 * plug-ins/python/pydia-object.c: added methods for DiaObject and
14910 * AUTHORS: added Lars and Cyrille to the authors file.
14912 * objects/standard/bezier.c (bezierline_add_segment_callback): place
14913 new point correctly.
14915 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
14917 * lib/bezier_conn.c: applied Lars's patch for placement of the new
14918 point when adding a segment to a BezierConn.
14920 1999-12-06 James Henstridge <james@daa.com.au>
14922 * plug-ins/python/test.py: test script for the python plug-in.
14924 * plug-ins/python/python.c: this file contains the plug-in startup
14925 code for the python plugin. Right now, it just initialises the
14926 dia module and executes a script.
14928 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
14930 * objects/standard/bezier.c (bezierline_draw): draw control lines for
14931 bezier curve if we are using an interactive renderer (ie. only if
14932 displaying to the screen).
14934 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
14935 to draw control lines on to a bezier curve. Based on implementation
14938 * objects/standard/bezier.c (bezierline_delete_segment_callback):
14939 calculate segment number using closest_segment rather than
14940 closest_handle. Sometimes the closest handle is part of a different
14942 (bezierline_draw): use correct size for start arrow.
14944 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
14945 * lib/geometry.c (distance_line_point): added notes to documentation
14947 * app/object_ops.c (object_list_align_v):
14948 (object_list_align_h): fix of by one error when calculating free space
14949 for equal distance alignment.
14950 * app/menus.c (objects_align_h, objects_align_v): include align
14951 adjacent menu items in the gnome version of the menus.
14952 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
14953 align adjacent menu items correctly.
14956 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
14959 * objects/standard/bezier.c: converted bezierline to use BezierConn.
14960 Still a few bugs. It crashes on deleting line segments.
14962 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
14964 1999-12-05 James Henstridge <james@daa.com.au>
14966 * lib/bezier_conn.[ch]: start of BezierConn object
14968 * app/interface.c: add bezierline to toolbox.
14970 * objects/standard/standard.c: initialise bezierline.
14972 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
14973 made a few modifications to get it working nicely. It still needs
14974 a bit of work though. Maybe create a BezierConn object in lib.
14976 1999-12-02 James Henstridge <james@daa.com.au>
14978 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
14980 * plug-ins/python/Makefile.am: tried building everything. It is
14981 building as a library at the moment. I will have to convert it
14982 to a libtool library and add some initialisation code.
14984 * plug-ins/python/diamodule.c: start of the dia module, using the
14985 other object wrappers. Not complete.
14987 1999-12-01 James Henstridge <james@daa.com.au>
14989 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
14990 the handles and connections attributes.
14992 * plug-ins/python/pydia-layer.c: added functions that use
14995 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
14997 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
14999 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
15000 I am currently wrapping the basic elements in the diagram in python
15001 objects -- nothing to see or play with yet.
15003 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
15007 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
15009 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
15013 Added russian translation from Valek Filippov <frob@df.ru>
15015 1999-11-24 James Henstridge <james@daa.com.au>
15018 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
15019 discussed with Alex. Also added extra makefiles so that make install
15022 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
15024 * app/preferences.[ch]:
15026 Added snap to grid preference.
15027 Patch from Michael Leslie <mles@springboardwireless.com>
15029 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15035 * objects/custom/shape_info.c:
15036 All strings returned by libxml must be freed with free, not
15037 g_free, or there will be problems if you use memory debugging
15040 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15042 * app/create_object.[ch]:
15045 * app/commands.[ch]:
15047 * app/interface.[ch]:
15048 Reverted the tool menu patch. It has some 'issues'.
15049 I liked it though, so it'll probably return.
15051 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15053 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
15054 <bruce@cybersight.com> for some purify runs and analysis.
15055 Also a great thank you to Owen Taylor for creating MemProf, a
15056 free memory leak detector that was used to find and verify a
15057 lot of these fixes.
15060 * app/paginate_psprint.c:
15061 * app/render_eps.[ch]:
15062 * app/render_svg.[ch]:
15066 Don't add a reference to ddisp->shell. Why was this done in
15073 Free all strings returned from xmlGetProp
15075 * app/modify_tool.c:
15078 * objects/custom/custom.c:
15079 Use closedir() after opendir().
15081 * objects/custom/shape_info.c:
15082 User g_free() instead of "if (tmp) free(tmp)".
15085 Add newline at end of file.
15088 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
15090 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
15091 Adds tool menu and keyboard shortcuts.
15093 * app/create_object.[ch]:
15094 Use tool_set() instead of tool_reset().
15095 create_create_object_tool() takes extra type argument
15101 Moved tool_data here, export it.
15102 Add separate tool type for all create objects tools.
15103 new functions tool_set().
15106 New callback tool_set_callback.
15109 Moved some pixmaps to interface.c.
15112 Remove tool_data array (moved to tool.c).
15113 Use the tool_data from tool.c.
15114 Remove modify_tool_button global var.
15116 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
15118 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
15121 Interprets command-line arguments as files to open even when
15122 HAVE_POPT is not defined.
15125 Shift-clicking when zooming zooms out, like the Gimp.
15128 Has hotkeys for zoom-100% and snap-to-grid.
15130 1999-11-17 James Henstridge <james@daa.com.au>
15132 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
15133 that it is not jumpy.
15135 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
15137 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
15138 scrolling by pressing the shift key when using the scroll tool.
15140 * sheets/Makefile.am: fixed makefile so that install actually works
15141 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
15143 (SHEETS): install Circuit.sheet
15145 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
15146 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
15148 * sheets/Circuit.sheet:
15151 * sheets/Flowchart.sheet:
15152 * sheets/UML.sheet:
15153 * sheets/network.sheet:
15154 * sheets/sybase.sheet:
15157 * sheets/Circuit.sheet:
15158 added some missing French translations
15161 killed the temporary sheet namespace
15163 * objects/custom/custom.c:
15164 obsolete comment cleaned up
15166 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
15170 Added portugese translation from Pedro Morais
15171 <pmmm@rnl.ist.utl.pt>
15173 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
15175 Changed all sheets to be specified in xml.
15176 All sheet objects removed from the C code.
15177 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
15182 Updated version to 0.81cvs.
15185 Update run_dia.sh with sheet-dir.
15188 Load all sheets on startup.
15189 Create sheet directory first time.
15190 Don't call custom_register_sheets().
15193 Add sheetdir define
15196 Remove custom_register_sheets().
15199 Add sheet loading code.
15201 * sheet/Circuit.sheet:
15204 * sheet/Flowchart.sheet:
15206 * sheet/network.sheet:
15207 * sheet/sybase.sheet:
15210 * sheet/ER/weakentity.xpm:
15211 * sheet/UML/aggregation.xpm
15212 * sheet/UML/umlclass_template.xpm
15213 Added sheet pixmaps.
15214 These are moved from their old places.
15216 * sheet/.cvsignore:
15220 Removed sheet objects and sheet registration.
15222 * objects/ER/Makefile.am:
15223 * objects/ER/pixmaps/weakentity.xpm:
15224 * objects/UML/Makefile.am:
15225 * objects/UML/pixmaps/aggregation.xpm:
15226 * objects/UML/pixmaps/umlclass_template.xpm:
15227 Removed alternative pixmaps. (Moved to sheet).
15229 * objects/custom/Makefile.am:
15230 * objects/custom/load_sheet.[ch]:
15231 Removed old sheet loading code.
15233 * objects/custom/custom.c:
15234 Load all shapes instead of sheets.
15235 Removed custom_register_sheets().
15237 * objects/custom/custom_object.c:
15240 * objects/custom/shape_info.[ch]:
15241 Added shape_info_getbyname().
15243 * objects/flowchart/Makefile.am:
15244 * objects/flowchart/collate.shape
15245 * objects/flowchart/delay.shape
15246 * objects/flowchart/display.shape
15247 * objects/flowchart/document.shape
15248 * objects/flowchart/extract.shape
15249 * objects/flowchart/flowchart.c
15250 * objects/flowchart/intstorage.shape
15251 * objects/flowchart/magdisk.shape
15252 * objects/flowchart/magdrum.shape
15253 * objects/flowchart/magtape.shape
15254 * objects/flowchart/manualinput.shape
15255 * objects/flowchart/manualop.shape
15256 * objects/flowchart/merge.shape
15257 * objects/flowchart/offlinestore.shape
15258 * objects/flowchart/offpageconn.shape
15259 * objects/flowchart/or.shape
15260 * objects/flowchart/predefdproc.shape
15261 * objects/flowchart/preparation.shape
15262 * objects/flowchart/punchedcard.shape
15263 * objects/flowchart/punchedtape.shape
15264 * objects/flowchart/sort.shape
15265 * objects/flowchart/sumjunction.shape
15266 * objects/flowchart/terminal.shape
15267 * objects/flowchart/transaction.shape
15268 * objects/flowchart/transmittape.shape
15269 * objects/flowchart/pixmaps/collate.xpm
15270 * objects/flowchart/pixmaps/delay.xpm
15271 * objects/flowchart/pixmaps/display.xpm
15272 * objects/flowchart/pixmaps/document.xpm
15273 * objects/flowchart/pixmaps/extract.xpm
15274 * objects/flowchart/pixmaps/intstorage.xpm
15275 * objects/flowchart/pixmaps/magdisk.xpm
15276 * objects/flowchart/pixmaps/magdrum.xpm
15277 * objects/flowchart/pixmaps/magtape.xpm
15278 * objects/flowchart/pixmaps/manualinput.xpm
15279 * objects/flowchart/pixmaps/manualop.xpm
15280 * objects/flowchart/pixmaps/merge.xpm
15281 * objects/flowchart/pixmaps/offlinestore.xpm
15282 * objects/flowchart/pixmaps/offpageconn.xpm
15283 * objects/flowchart/pixmaps/or.xpm
15284 * objects/flowchart/pixmaps/predefdproc.xpm
15285 * objects/flowchart/pixmaps/preparation.xpm
15286 * objects/flowchart/pixmaps/punchedcard.xpm
15287 * objects/flowchart/pixmaps/punchedtape.xpm
15288 * objects/flowchart/pixmaps/sort.xpm
15289 * objects/flowchart/pixmaps/sumjunction.xpm
15290 * objects/flowchart/pixmaps/terminal.xpm
15291 * objects/flowchart/pixmaps/transaction.xpm
15292 * objects/flowchart/pixmaps/transmittape.xpm
15293 Moved shapes and their pixmaps to shapes/flowchart
15295 * shapes/Circuit/Makefile.am:
15296 * shapes/Circuit/index.sheet:
15297 Removed index.sheet.
15299 * shapes/Makefile.am:
15300 * shapes/flowchart/Makefile.am:
15301 * shapes/flowchart/*.shape:
15302 * shapes/flowchart/*.xpm:
15303 Added flowchart shapes. (Moved from objects/flowchart)
15306 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
15308 * app/app_procs.c: Fixed popt stuff.
15310 1999-11-01 James Henstridge <james@daa.com.au>
15312 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
15315 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
15319 Update version to 0.81.
15322 Update with news for 0.81.
15324 * shapes/Circuit/*:
15325 * shapes/Circuit_eu/*:
15326 Moved european circuit objects to Circuit sheet.
15328 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
15330 * lib/diagramdata.[ch]:
15331 Added layer_set_object_list() function.
15334 Added support for undo of reordered objects.
15335 Fix the undo of delete to keep the right order on undo.
15338 changed loop to object_add_updates_list() calls.
15339 Added undo support to bring to front/back.
15341 * app/disp_callbacks.c:
15342 * app/paginate_psprint.c:
15345 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
15347 This plugs some leaks. Thanks to
15348 Bruce Mitchener <bruce@cybersight.com> for running
15349 Dia through purify for me.
15352 Free displays and diagrams on exit.
15354 * app/modify_tool.c:
15355 Free gc when freeing tool.
15357 * lib/diagramdata.c:
15361 Free update and display lists when destroying display.
15363 * lib/diagramdata.c:
15364 Don't leak layer name.
15366 * objects/custom/load_sheet.c:
15367 * objects/custom/shape_info.c:
15368 Free loaded xml documents.
15370 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
15373 * app/object_ops.[ch]:
15374 Add undo handling to alignment ops.
15375 Based partially on patch by Dan Cohn <dan@internap.com>.
15377 * objects/standard/image.c (image_move_handle):
15378 Don't divide by zero for small images.
15379 Patch by Dan Cohn <dan@internap.com>.
15381 * objects/UML/class.c (umlclass_destroy):
15382 * objects/custom/custom_object.c (custom_destroy):
15383 Don't free connectionpoints before calling element_destroy
15384 which unconnects them.
15386 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
15388 * objects/custom/custom_object.c:
15389 Load and save padding too. Fixes strange load crashes.
15391 * app/group.c (group_destroy):
15392 Don't unconnect already freed connectionpoints when
15393 destroying group. Probably fixes bug reported by
15394 Elliot Lee <sopwith@redhat.com>.
15396 * app/render_gdk.c:
15397 Don't crash on zero-size (broken) bezier curves.
15398 Different sort of fix. This should work on closed bezier curves
15401 * objects/standard/textobj.c:
15402 Activate default properties dialog for Text objects.
15404 * app/render_eps.c:
15406 * app/preferences.c:
15407 * app/render_svg.c:
15408 fopen files in binary or text mode.
15410 1999-10-26 Alexander Larsson <alex@cendio.se>
15412 * app/render_gdk.c (bezier_add_lines):
15413 Don't crash on zero-size (broken) bezier curves.
15414 Fixes a crashing bug.
15416 1999-10-25 James Henstridge <james@daa.com.au>
15418 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
15419 before it is installed.
15421 * objects/flowchart/flowchart.c: use relative paths to find shapes.
15423 * objects/custom/custom.c (custom_object_load): take file names
15424 relative to $(pkgdatadir)/shape-internal, and check an environment
15425 variable for an alternative directory.
15427 * app/...: added copyright messages to the top of my new code.
15429 * app/paginate_psprint.c: some general clean ups. Also, give an error
15430 dialog if we can't open the command or output file for writing.
15432 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
15433 function so it would set orientation to landscape correctly.
15435 * app/paginate_psprint.c: use the paper settings that come with
15436 the diagram. Also implemented landscape printing.
15438 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
15441 * app/commands.[ch] (file_pagesetup_callback): added callback for
15442 the page setup dialog.
15444 * app/menus.c: added page setup menu item.
15446 * app/pagesetup.[ch]: implementation of the page setup dialog.
15448 * app/diapagelayout.[ch]: added accessors for the scaling factor.
15450 * app/load_save.c (diagram_load): load paper information from save
15452 (diagram_save): save the paper info.
15454 * lib/diagramdata.c (new_diagram_data): initialise paper info section
15455 of DiagramData structure.
15456 (diagram_data_destroy): free the paper name.
15458 * lib/diagramdata.h: added a paper member to the DiagramData structure
15459 that holds the page layout info for a diagram.
15461 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
15463 * objects/flowchart/box.c:
15464 * objects/flowchart/ellipse.c:
15465 * objects/flowchart/diamond.c:
15466 * objects/flowchart/parallelogram.c:
15467 Load and save padding too. Fixes strange load crashes.
15469 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
15471 * app/app_procs.c (name_is_lib):
15472 .dll, .sl and .so.0.0.0 are also libraries.
15474 1999-10-20 James Henstridge <james@daa.com.au>
15476 * configure.in: added extra makefile.
15478 * shapes/Circuit_eu/*: a new set of european circuit shapes from
15479 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
15480 (added fuses to makefile, fill the area of some of the components).
15482 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
15486 Add GDK_IMLIB_CFLAGS to includes.
15487 Changed --export-dynamic to -export-dynamic
15490 * objects/UML/message.c:
15491 Removed c++ comment.
15493 * lib/render_store.[ch]:
15494 Don't use empty structure. That is not Ansi C.
15496 1999-10-19 James Henstridge <james@daa.com.au>
15498 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
15499 the margin entries, as they allow interpretation of units.
15500 (paper_size_change): display the current page dimensions.
15502 * app/diaunitspinner.[ch]: a widget derived from the standard
15503 GtkSpinButton that tries to take units into account. So if you enter
15504 "1in" into the entry, it will convert it to 2.54cm.
15506 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
15509 Removed include of dlfcn.h
15511 1999-10-18 James Henstridge <james@daa.com.au>
15513 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
15514 bound on margin widths. It is set to the paper width/height.
15516 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
15517 routine for the diamond. This bug was found and fixed by Daniel Wang
15518 <danwang@CS.Princeton.EDU>
15520 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
15522 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
15523 remove warning (OS/2 version).
15525 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
15528 Put a pointer to objects/custom/README.
15530 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
15533 Updated version to 0.80
15536 Updated version to 0.80cvs
15538 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
15540 * Released Dia 0.80
15541 Tag called DIA_0_80
15543 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
15547 * objects/UML/Makefile.am
15548 * objects/ER/Makefile.am
15549 * objects/network/Makefile.am
15550 * objects/standard/Makefile.am
15551 * objects/FS/Makefile.am
15552 * objects/sybase/Makefile.am
15553 * objects/flowchart/Makefile.am
15554 * objects/custom/Makefile.am
15555 Added -I$(top_srcdir)/intl which is needed for
15556 --with-included-gettext.
15562 Updated swedish translation.
15564 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
15567 Updated version number to 0.80.
15573 Updated. Moved bugs to KNOWN_BUGS.
15576 Updated with 0.80 release notes.
15578 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
15581 For backwards compatibility, make sure handle 0 and 1 are the
15582 first and last handle. Fixes compatibility with 0.41, breaks
15583 compatibility with cvs version.
15584 Fixed bug in undo/redo of adding deleting endpoint segments
15585 when the endpoint was connected.
15586 Start OrthConn objects with three segments.
15588 1999-10-16 James Henstridge <james@daa.com.au>
15590 * objects/custom/custom_object.c (custom_update_data): changed
15591 resizing behaviour a bit so that shapes don't grow huge when you try
15592 to resize them to smaller than the size required by the text box.
15593 Also, now shapes will not grow with fixed aspect ratio when you enter
15594 text into them unless the shape has the fixed aspect ratio flag set.
15596 1999-10-15 James Henstridge <james@daa.com.au>
15598 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
15600 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
15602 * objects/flowchart/magdrum.shape:
15603 * objects/flowchart/offlinestore.shape:
15604 * objects/flowchart/punchedtape.shape:
15605 * objects/flowchart/transmittape.shape:
15606 * objects/flowchart/punchedcard.shape: new shapes.
15608 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
15610 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
15612 * objects/flowchart/collate.shape:
15613 * objects/flowchart/delay.shape:
15614 * objects/flowchart/extract.shape:
15615 * objects/flowchart/intstorage.shape:
15616 * objects/flowchart/magdisk.shape:
15617 * objects/flowchart/magtape.shape:
15618 * objects/flowchart/merge.shape:
15619 * objects/flowchart/or.shape:
15620 * objects/flowchart/sort.shape:
15621 * objects/flowchart/sumjunction.shape: new shapes.
15623 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
15627 Entering an erronous command as print command
15630 * app/paginate_psprint.c:
15631 Save all print dialog values for next time.
15634 Remove custom lib from DIA_LIB_PATH.
15636 1999-10-14 James Henstridge <james@daa.com.au>
15638 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
15640 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
15642 * objects/flowchart/offpageconn.shape:
15643 * objects/flowchart/manualop.shape:
15644 * objects/flowchart/preparation.shape:
15645 * objects/flowchart/manualinput.shape:
15646 * objects/flowchart/predefdproc.shape:
15647 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
15649 1999-10-13 James Henstridge <james@daa.com.au>
15651 * app/diapagelayout.[ch]: added accessors to paper information. The
15652 widget should be just about complete now.
15654 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
15655 It actually does something now.
15657 1999-10-12 James Henstridge <james@daa.com.au>
15659 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
15660 for the page layout widget.
15662 * app/diapagelayout.[ch]: start of page layout widget. Not actually
15663 built yet as it is not complete.
15665 * objects/flowchart/flowchart.c: added new shapes to sheet.
15667 * objects/flowchart/display.shape:
15668 * objects/flowchart/transaction.shape: new shapes.
15670 * AUTHORS: added my name to the spec file.
15672 * dia.spec: include the dia desktop entry to the spec file.
15674 * Makefile.am: install the dia.desktop file.
15676 * dia.desktop: added a gnome desktop entry so you can start dia
15677 from the gnome panel menu.
15679 1999-10-11 James Henstridge <james@daa.com.au>
15681 * objects/custom/custom_object.c:
15682 * objects/custom/shape_info.c: warning fixes.
15684 * objects/flowchart/document.shape: a shape file for the `document'
15687 * lib/custom.h: new header with the custom shape prototypes.
15689 * app/app_procs.c: register custom objects as well.
15690 (register_objects_in): close shared libraries if they don't load
15691 correctly, and call g_module_make_resident on libraries that load
15694 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
15696 * objects/custom/custom.c: removed get_version, added custom_ prefix
15697 to register_objects and register_sheets.
15699 * objects/custom/Makefile.am: converted to a normal library.
15701 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
15703 * app/lineprops_area.c:
15704 * app/render_svg.c:
15706 * objects/custom/shape_info.c:
15707 * objects/flowchart/box.c:
15708 * objects/flowchart/diamond.c:
15709 * objects/flowchart/ellipse.c:
15710 * objects/flowchart/parallelogram.c:
15711 * objects/network/flash.c:
15712 * objects/network/scead-plug.c:
15713 * objects/sybase/client.c:
15714 Removed -Wall warnings.
15716 * objects/network/bus.c:
15717 Removed unused functions.
15719 * objects/FS/flow-ortho.c:
15720 * objects/FS/flow-poly.c:
15721 * objects/FS/flow.c:
15722 * objects/FS/function.c:
15724 Implemented "non-implemented" undo for FS objects.
15725 Now at least it won't crash.
15727 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
15729 * objects/network/bus.c:
15731 Handles are now added and removed using the object menu.
15732 Default to 6 handles instead of 10.
15733 Changed name from "Standard - Bus" to "Network - Bus". Kept old
15734 name for backwards compatibility.
15736 * objects/network/network.c:
15737 Changed name from "Standard - Bus" to "Network - Bus". Kept old
15738 name for backwards compatibility.
15740 * app/properties.[ch]:
15742 Update properties in properties dialog if the shown object
15743 is part of and ObjectChange (undo or redo).
15746 Remove old known bugs list.
15748 * objects/UML/class_dialog.c:
15749 Removed debug printf's.
15751 1999-10-10 James Henstridge <james@daa.com.au>
15753 * objects/custom/custom.c (custom_object_load): new function that
15754 provides a nice entry point to the custom shape code for when it
15755 gets used by other libraries.
15757 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
15758 speeds builds up a bit.
15760 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
15761 (SUBDIRS): do not descend into pixmaps subdirs.
15763 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
15764 This speeds up build process.
15766 * objects/custom/custom.c (sheets): made variable static.
15768 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
15771 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
15773 * objects/custom/custom.c: look in ~/.shapes instead of
15774 ~/.dia_shapes as the per-user shapes directory.
15776 * app/preferences.c (prefs_save): save config to ~/.diarc.
15777 (prefs_load): load configuration from ~/.diarc. If the file
15778 does not exist, fallback on the old ~/.diarc location.
15780 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
15782 (register_all_objects): look for user specific objects in
15783 ~/.objects rather than ~/.dia_libs.
15785 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
15789 * objects/flowchart/box.c
15790 * objects/flowchart/ellipse.c
15791 * objects/flowchart/flowchart.c
15792 Use gmodule for dynamic linking. As gmodule is using
15793 RTLD_GLOBAL i had to change flowchart box and ellipse
15794 so the typenames doesn't conflict with the standard
15799 Use button box to make dialogs look better.
15801 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
15803 * objects/UML/class_dialog.c:
15804 * objects/UML/class.h:
15805 Implemented undo for "UML - Class" objects.
15806 Not 100% tested yet.
15808 * objects/UML/classicon.c:
15809 * objects/UML/constraint.c:
15810 * objects/UML/dependency.c:
15811 * objects/UML/generalization.c:
15812 * objects/UML/implements.c:
15813 * objects/UML/large_package.c:
15814 * objects/UML/lifeline.c:
15815 * objects/UML/message.c:
15816 * objects/UML/object.c:
15817 * objects/UML/realizes.c:
15818 * objects/UML/state.c:
15819 * objects/UML/usecase.c:
15822 * lib/connectionpoint.h:
15825 1999-10-09 James Henstridge <james@daa.com.au>
15827 * objects/custom/*.[ch]: added copyright notices to custom object
15830 * shapes/Circuit/hdiode.shape:
15831 * shapes/Circuit/hzener.shape:
15832 * shapes/Circuit/opamp.shape:
15833 * shapes/Circuit/vdiode.shape:
15834 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
15835 shapes look nice after the custom shape code changes.
15837 * objects/custom/README: updated docs to cover changes to drawing
15840 * objects/custom/custom_object.c (custom_draw): honour the line
15841 properties when drawing the shape.
15843 * objects/custom/shape_info.[ch]: added support for setting line
15844 properties for individual drawing elements in a custom shape. You
15845 can set the dash style, dash length, cap style and join style.
15847 1999-10-07 James Henstridge <james@daa.com.au>
15849 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
15850 for foreground and background.
15852 * objects/custom/custom_object.c (custom_draw): use the new style
15853 information when drawing the object.
15855 * objects/custom/shape_info.[ch]: store all shape style info in the
15856 GraphicStyle structure. This makes adding support for extra CSS
15857 attributes easier -- we don't have to keep adding extra arguments to
15858 a lot of functions.
15860 1999-10-05 James Henstridge <james@daa.com.au>
15862 * lib/intl.c (unalias_lang): merged in changes from the i18n code
15863 swiped from gnome-libs.
15865 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
15867 * objects/standard/image.c (get_directory):
15868 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
15870 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
15872 * lib/poly_conn.c (polyconn_destroy):
15873 Fix bug. Access of freed memory.
15874 Rememeber, you can't free the handles of an object
15875 before calling object_destroy(), as it unconnects the handles
15876 therefore referencing them.
15878 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
15881 undo_clear() didn't set stack->depth to zero.
15882 This made other undo functions crash after this had been called
15886 Slightly modified by Chris Love <clove@exactis.com>
15888 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
15890 * objects/UML/class.h:
15891 * objects/UML/class_dialog.c:
15892 Retrun NULL ObjectChange on class property change.
15893 This means no crashes, but "UML - Class" doesn't support undo yet.
15895 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
15900 * objects/UML/classicon.c:
15901 * objects/UML/dependency.c:
15902 * objects/UML/generalization.c:
15903 * objects/UML/implements.c:
15904 * objects/UML/large_package.c:
15905 * objects/UML/lifeline.c:
15906 * objects/UML/message.c:
15907 * objects/UML/object.c:
15908 * objects/UML/realizes.c:
15909 * objects/UML/state.c:
15910 * objects/UML/usecase.c:
15911 Update to new undo (w. get/set_state).
15912 Add object menu to add/delete segments.
15914 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
15917 Add equal distance alignment.
15919 * app/object_ops.c:
15920 Add equal distance alignment.
15921 Fix bug in adjacent alignment.
15923 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
15925 * objects/UML/constraint.c:
15926 Update to new undo (w. get/set_state).
15928 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
15930 * app/paginate_psprint.c:
15931 Save (parts, more todo) of the info in the print dialog to the
15932 next time it's opened.
15933 Patch from Yo Ric Dude <ricdude@toad.net>
15935 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
15938 Updated version string to 0.41cvs.
15940 * objects/UML/assocition.c:
15941 Update to new undo (w. get/set_state).
15942 Add object menu to add/delete segments.
15945 Added function debug_break() and called it after all
15946 objects and sheets are loaded. Place a breakpoint here if you
15947 want to debug objects. All symbols should be loaded.
15949 1999-09-12 James Henstridge <james@daa.com.au>
15951 * app/menus.c (display_menu_items): added print menu item.
15952 (filemenu): always add print menu item -- even if gnome-print is
15955 * app/commands.h, app/commands.c (file_print_callback): the print
15956 menu item is now available for both gnome-print and non gnome-print
15959 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
15960 print with the non gnome-print driver.
15962 1999-09-11 James Henstridge <james@daa.com.au>
15964 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
15965 printer dialog code out of commands.c.
15967 * app/paginate_psprint.c: new file containing the pagination code for
15970 * app/render_eps.c: made a few modifications so as well as producing
15971 EPS files, this renderer can be set up to do postscript printing.
15972 This basically entailed adding an extra function to create a RenderEPS
15973 renderer which did not bother setting the viewport for the document.
15974 That was left for the pagination code.
15976 1999-09-10 James Henstridge <james@daa.com.au>
15978 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
15979 gnome-print does not support elliptic arcs at the moment, approximate
15980 the ellipse with eight bezier curves. This gives a pretty good
15981 match to a true ellipse.
15983 1999-09-09 James Henstridge <james@daa.com.au>
15985 * app/commands.c (file_gnome_print_callback): added support for
15986 scaling the diagram. Also fixed a few other bugs.
15988 * app/paginate_gnomeprint.c (print_page): added ability to scale
15989 document. Fixed up test to see if the page has no objects on it.
15990 This should prevent some blank pages being printed. Non square
15991 objects such as lines could still cause problems.
15993 1999-09-08 James Henstridge <james@daa.com.au>
15995 * app/commands.c (file_gnome_print_callback): changed from using the
15996 standard printer selection dialog to one that also has a paper size
15999 * commands.[ch]: added callbacks for the print menu item. Currently
16000 it only does A4 output. I will make it configurable soon.
16002 * app/menus.c: add a print diagram menu item if gnome-print support
16005 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
16006 bit higher level than the gnome-print renderer. It splits the
16007 diagram into page size chunks and then renders them. For each
16008 page, it only renders the objects whose bounding box intersects
16009 the page, and it sets the clip mask so that the diagram does not
16010 overlap the margins.
16012 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
16013 that uses gnome-print as its back end.
16015 * configure.in: added a check for gnome-print. It is disabled by
16016 default because the code is not really working correctly yet.
16018 * app/menus.c: the delete object menu item was missing from the
16019 GnomeUIInfo style menus.
16021 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
16024 Added japanese to ALL_LINGUAS.
16025 Fix for Linux on Alpha.
16027 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
16029 * app/create_object.c (create_object_button_press):
16030 Always initialize tool->obj. Otherwise we store a null
16031 in the undo Change.
16034 Set linestyle before drawing cursor.
16035 Fix undo of backwards delete.
16037 1999-09-05 James Henstridge <james@daa.com.au>
16039 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
16041 * app/render_svg.c (draw_image): some fixes so that the appropriate
16042 style attributes are set. Before it was setting line styles on
16043 fill_* functions. Now it only does this for the draw_* variants.
16045 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
16046 variable so that custom shapes can be loaded.
16048 * shapes/: new directory for custom shapes. The Circuit sheet has
16051 1999-09-02 James Henstridge <james@daa.com.au>
16053 * TODO: removed a few todo items that have been implemented.
16055 * app/interface.c (create_sheets): enabled the popup page menu to the
16056 notebook. This can make it easier to select different sheets.
16058 * object/custom/Circuit/: added diode, zener diode, ground point and
16059 operational amplifier shapes.
16061 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
16062 if you want the output.
16064 * objects/custom/shape_info.c (parse_path): same here.
16066 * objects/custom/load_sheet.c (load_with_readdir): don't print so
16067 much debugging output. To get the previous level of output, define
16070 * objects/custom/shape_info.c (parse_svg_node): polygons were being
16071 recorded as polylines in the ShapeInfo structure.
16073 * objects/custom/README: some notes on writing new custom shapes.
16075 1999-09-01 James Henstridge <james@daa.com.au>
16077 * objects/custom/Circuit/hinductor.*:
16078 * objects/custom/Circuit/vinductor.*: added inductor shapes that
16079 also test out the bezier curve and SVG path support.
16081 * objects/custom/custom_object.c (custom_draw): added support for
16082 drawing bezier paths and filled shapes.
16084 * objects/custom/shape_info.c (parse_path): new function to parse
16085 SVG path elements. It does not do quadratic beziers or elliptic
16086 arcs though. Only moves, lines and cubic beziers.
16087 (*): added support for paths.
16089 1999-08-31 James Henstridge <james@daa.com.au>
16091 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
16093 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
16096 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
16099 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
16102 * lib/render_store.[ch]: use newer bezier functions.
16104 * lib/render.h: changed the bezier drawing functions to use an array
16105 of BezPoint structures instead of normal Point structures to allow
16106 lineto's mixed in with the curveto's.
16108 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
16110 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
16111 xpm images for different shapes to Makefile.
16113 * objects/custom/custom_object.c (custom_object_new): set the icon
16114 for the sheet button if there is one. Otherwise fall back on the
16115 default custom object icon.
16117 * objects/custom/shape_info.c (load_shape_info): read the sheet
16118 icon name from the shape file.
16120 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
16121 check the pixmap_file field for the name of a pixmap file to load
16124 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
16125 at the end of the structure, and it isn't used if the pixmap field
16126 is non NULL, so it should not break binary compatibility.
16128 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
16129 added support for the use of an index.sheet file so you can specify
16130 the ordering of the shapes in the sheet, and also internationalise
16131 the sheet name and actually be able to give a description. The old
16132 readdir based sheet loading code acts as a fallback if an index.sheet
16133 file can not be found.
16135 * objects/custom/custom_util.[ch]: new file containing useful routines
16136 needed by the custom object code. Currently only contains a simple
16137 routine for resolving relative paths.
16139 * objects/custom/custom_object.c (custom_draw): fixed problem with
16140 drawing rectangles if the shape has been flipped.
16142 1999-08-30 James Henstridge <james@daa.com.au>
16144 * objects/custom/custom_object.c (custom_get_object_menu): allow
16145 flipping of custom shapes. This uses the miggle click object
16148 * objects/custom/Circuit/npn.shape: fix aspect ratio.
16150 * objects/custom/custom_object.c (custom_update_data): honour the
16151 aspect ratio constraints.
16153 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
16154 tag parsing, so you can specify a free, fixed or a range for aspect
16155 ratios for the shape.
16157 1999-08-29 James Henstridge <james@daa.com.au>
16159 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
16160 up shape namespace tag.
16162 * objects/custom/shape_info.c (load_shape_info): check xml:lang
16163 attribute on <description> elements to support i18n for custom
16164 shape descriptions.
16165 Also changed the shape namespace for custom shapes to something
16166 a little more sensible.
16168 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
16170 * lib/intl.c: new file containing some functions for i18n stuff.
16172 * app/layer_dialog.c (create_button_box): fixed a warning.
16174 * objects/custom/custom_object.c: use current line style. Save dash
16177 * objects/flowchart/diamond.c: use current line style. Save dash
16180 * objects/flowchart/parallelogram.c: use current line style. Save
16183 * objects/flowchart/ellipse.c: use current line style. Save dash
16186 * objects/flowchart/box.c: use current line style. Save dash length.
16188 * objects/standard/ellipse.c: make ellipse use current line style.
16190 * objects/standard/box.c: use the line style set in the toolbox for
16191 new boxes, and remember the dash length.
16193 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
16196 1999-08-24 James Henstridge <james@daa.com.au>
16198 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
16199 to try to stop ellipse to get infinite width/height when we resize,
16200 while trying to keep the text inside the ellipse.
16202 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
16203 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
16204 resizing behaviour, so that you can't push objects round the screen
16205 with the resize handles.
16207 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
16208 get the OK buttons in the dialogs to take default clicks.
16210 * objects/custom/custom_object.c: added code so that resizing the
16211 shape does not end up pushing it round the screen.
16213 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
16215 * app/display.[ch]:
16216 Generate rectangle with the union of the damaged regions.
16217 This is used to optimize the grid paint and the object rendering.
16218 display_render_pixmap passes this info to grid_draw() and data_render().
16221 grid_draw doesn't draw grid lines outside of damaged rectangle.
16222 Sets dashlength when drawing non-solid grid.
16224 * lib/diagramdata.[ch]:
16225 data_render() and layer_render() takes an optional damaged rectangle
16226 argument. No objects not intersecting this are drawn.
16230 Call data_render with NULL update rectangle.
16232 1999-08-23 James Henstridge <james@daa.com.au>
16234 * objects/custom/custom_object.c (custom_update_data): if the aspect
16235 ratio is fixed, make sure the shape is not distorted.
16237 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
16238 a <fixaspectratio/> tag is given in the shape file.
16240 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
16241 added support for stroke-width, stroke and fill CSS attributes
16242 specified in style attributes of the SVG elements. The line width
16243 is relative to the user specified line width. The stroke and fill
16244 attributes can only be used to swap the foreground/background
16247 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
16248 sensitivity on the dash length selector when this function is called.
16250 * objects/standard/arc.c: same. Also handle dash length.
16251 * objects/standard/zigzagline.c: same.
16252 * objects/standard/polyline.c: same. Also handle dash length.
16253 * objects/standard/line.c: use default arrow/line styles.
16255 * app/interface.c: added callbacks to set the default attributes.
16257 * lib/attributes.c: added implementations of these functions.
16259 * lib/attributes.h: added extra prototypes for the new line properties
16260 area in the toolbox.
16262 * app/interface.c (create_lineprops_area): added line properties
16263 area to bottom of toolbox.
16265 * app/lineprops_area.h: a header exporting a few routines of the
16266 line properties area widgets.
16268 * app/lineprops_area.c: new file containing a selector for arrows
16269 and line styles to go in the main toolbox.
16271 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
16274 Update Gtk+ 1.0.5 comment to 1.2.0.
16283 Make sure we don't propagate -ldl and -lpopt to all LIBS
16284 by adding new var APP_LIBS that only app/dia links with.
16287 Update run_dia.sh to load custom and flowchart objects.
16289 * objects/ER/Makefile.am:
16290 * objects/FS/Makefile.am:
16291 * objects/UML/Makefile.am:
16292 * objects/network/Makefile.am:
16293 * objects/standard/Makefile.am:
16294 * objects/sybase/Makefile.am:
16295 Don't build versioned libs.
16297 1999-08-22 James Henstridge <james@daa.com.au>
16299 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
16302 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
16303 should actually work a bit now.
16305 * objects/custom/Circuit/*: a test sheet for the custom shape code.
16306 It is a small collection of circuit elements.
16308 * objects/custom/shape_info.c: fixed up loading of polylines and
16309 polygons. Before it was removing negative signs :(
16311 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
16312 placeholder was here before. I still need to work out how to set
16313 icons for individual custom shapes.
16315 * objects/custom/custom.c: added code to load the shapes into sheets
16316 properly. The shape files should be arranged into directories, and
16317 each directory represents a different sheet in the toolbox. This
16318 will make it very easy to distribute a collection of dia shapes as
16319 a tarball. I still need to work out internationalisation, and maybe
16320 also shape ordering in the sheet.
16322 * objects/custom/custom_object.c: fixed up dialogs for these objects.
16323 (custom_create): fix for objects without text areas.
16325 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
16326 and saving of custom object works correctly now.
16328 1999-08-21 James Henstridge <james@daa.com.au>
16330 * objects/flowchart/ellipse.c:
16331 * objects/flowchart/diamond.c:
16332 * objects/flowchart/parallelogram.c:
16333 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
16334 copying or loading these object types. Not all the connection
16335 points would be initialised correctly.
16337 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
16340 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
16341 build a versioned library. It will only ever be dlopen'd, so this
16344 * objects/custom/custom_object.c (custom_distance_from): allow
16345 selecting the object by clicking on the text. This fixes problems
16346 where the text box is outside the graphic.
16348 * objects/custom/shape_info.c (load_shape_info): fixed up reading
16349 of connections points. It should be possible to add connections
16350 to custom objects now.
16352 * objects/custom/custom_object.c (custom_update_data): fixed resizing
16353 due to changes to text.
16355 * configure.in: added extra makefiles.
16357 * objects/custom/shape_info.[ch]:
16358 * objects/custom/custom_object.c:
16359 * objects/custom/custom.c: the starts of custom shape support in dia.
16360 This is not built by default at the moment, since it is not quite
16361 complete. When it is, it will let you create more shapes for dia
16362 without writing a line of C. Its implementation includes buzzwords
16363 such as XML and SVG, so it must be good :)
16365 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
16367 * app/app_procs.c (app_exit): Use button labels "Quit" and
16368 "Cancel" instead of "Yes" and "No".
16369 Set default action to "Cancel" instead of "Quit".
16371 1999-08-19 James Henstridge <james@daa.com.au>
16373 * objects/flowchart/flowchart.c: added ellipse object.
16375 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
16377 1999-08-18 James Henstridge <james@daa.com.au>d
16379 * app/color_area.c (color_area_edit): small fix to prevent dia from
16380 segfaulting when you try to change the default foreground/background.
16382 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
16384 * app/diagram.[ch] (diagram_redraw_all):
16385 Added function that redraws all diagrams.
16387 * app/preferences.c (prefs_apply):
16388 Call diagram_redraw_all when prefs are changed.
16390 * app/render_svg.c:
16391 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
16392 older libxml's, and the old version works good enought here.
16394 1999-08-17 James Henstridge <james@daa.com.au>
16396 * lib/widgets.c: changed handlers that were connected to the GtkButton
16397 "pressed" signal to connect to the "clicked" signal. This removes the
16398 problem where dialogs are inactive until you click a mouse button
16399 after using a colour selector.
16401 * configure.in: added extra makefiles to AC_OUTPUT list.
16403 * objects/Makefile.am (SUBDIRS): added flowchart module
16405 * objects/flowchart/*: a collection of shapes for use in flowcharts.
16407 * app/color_area.c (color_area_events): similar here.
16409 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
16410 event is recieved with event->width == 0, which causes a warning if we
16411 try to create a pixmap of that width.
16413 * app/preferences.c, app/preferences.h, app/grid.c: added code to
16414 allow you to configure the colour of the grid, and also lets you
16415 set the grid to use dotted lines instead of solid ones.
16417 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
16418 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
16420 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
16421 export filter. It is not quite complete, but for most shapes it
16422 works as expected. Fonts still need a bit of work.
16424 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
16426 * configure.in: Added "en_GB" to ALL_LINGUAS.
16428 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
16431 Added Undo and Redo to GNOME menus.
16433 * objects/ER/attribute.c:
16434 * objects/ER/entity.c:
16435 * objects/ER/participation.c:
16436 * objects/ER/relationship.c:
16437 Added get/set_state functions.
16439 * objects/ER/participation.c:
16440 Added add/delete segment.
16443 Updated Swedish translation.
16445 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
16447 * app/preferences.[hc]:
16448 Added undo_depth pref.
16451 Never grow stack larger than pref.undo_depth.
16452 undo_depth == 0 means unlimited.
16453 Converted printfs to conditionally compiled DEBUG_PRINTFs.
16455 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
16460 * lib/render_object.c:
16461 * objects/ER/attribute.c:
16462 * objects/ER/entity.c:
16463 * objects/ER/participation.c:
16464 * objects/ER/relationship.c:
16465 * objects/FS/flow-ortho.c:
16466 * objects/FS/flow-poly.c:
16467 * objects/FS/flow.c:
16468 * objects/FS/function.c:
16469 * objects/UML/actor.c:
16470 * objects/UML/association.c:
16471 * objects/UML/class.c:
16472 * objects/UML/classicon.c:
16473 * objects/UML/component.c:
16474 * objects/UML/constraint.c:
16475 * objects/UML/dependency.c:
16476 * objects/UML/generalization.c:
16477 * objects/UML/implements.c:
16478 * objects/UML/large_package.c:
16479 * objects/UML/lifeline.c:
16480 * objects/UML/message.c:
16481 * objects/UML/note.c:
16482 * objects/UML/object.c:
16483 * objects/UML/realizes.c:
16484 * objects/UML/small_package.c:
16485 * objects/UML/state.c:
16486 * objects/UML/usecase.c:
16487 * objects/network/bus.c:
16488 * objects/standard/arc.c:
16489 * objects/standard/box.c:
16490 * objects/standard/ellipse.c:
16491 * objects/standard/image.c:
16492 * objects/standard/line.c:
16493 * objects/standard/polyline.c:
16494 * objects/standard/textobj.c:
16495 * objects/standard/zigzagline.c:
16496 Removed all traces of is_empty(). It doesn't work in an
16499 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
16504 Undoable grouping and ungrouping.
16506 * app/layer_dialog.c:
16507 * lib/diagramdata.[ch]:
16508 Undoable layer ops.
16510 * app/modify_tool.c:
16511 Undoable unconnect on handle move.
16513 * lib/orth_conn.[ch]:
16514 Working undoable add/remove segment.
16515 Removed endpoint_handles from OrthConn, renamed
16516 midpoint_handles to handles and put the endpoint
16519 * objects/standard/zigzagline.c:
16520 * objects/ER/participation.c:
16521 * objects/UML/association.c:
16522 * objects/UML/dependency.c:
16523 * objects/UML/generalization.c:
16524 * objects/UML/realizes.c:
16525 Update for the changes in OrthConn
16527 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
16529 * configure.in: Added "de" to ALL_LINGUAS.
16531 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
16543 Don't have the <Display> etc part of the menu strings
16544 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
16547 Don't have the <Display> etc part of the menu strings
16548 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
16549 Don't remove is_empty() objects, that don't work with undo.
16551 * lib/objchange.[ch]:
16553 Definition of ObjectChange. This is essentially an Change
16554 exported to the object libs. It encapsulates a change made
16555 to an objects internals. It can be applied, reverted and freed.
16556 There are also utility functions for doing ObjectChanges that
16557 only get/set the whole state of an object to store the change.
16558 This cannot be used when the object change deletes or adds a
16559 object which has references from other objects, eg. Handles which
16560 might be connected.
16563 Added objchange.c and objchange.h.
16566 Return NULL when loading fails.
16569 Menu callbacks return an ObjectChange.
16572 Reference objchange.o
16575 Key events return ObjectChange if they modify the object.
16579 Added object_add_handle_at() function.
16580 Apply properties returns an ObjectChange.
16581 Remove ObjectState and the get/set state functions, these
16582 don't always work. Use the new ObjectChange instead.
16585 Added object_add_handle_at() function implementation.
16587 * lib/orth_conn.[ch]:
16588 Use ObjectChange. Not finished yet.
16589 Removed get/set/free state functions
16591 * lib/poly_conn.[ch]:
16593 Don't remove segments that are small.
16594 Removed get/set/free state functions
16598 Added functions to get/set all text attributes.
16600 * objects/standard/arc.c:
16601 * objects/standard/box.c:
16602 * objects/standard/ellipse.c:
16603 * objects/standard/image.c:
16604 * objects/standard/line.c:
16605 * objects/standard/polyline.c:
16606 * objects/standard/textobj.c:
16607 * objects/standard/zigzagline.c:
16609 fixed bug in image_set_state.
16610 zigzagline.c not finished yet.
16612 * app/disp_callbacks.c:
16613 Use ObjectChange that are returned from menu callbacks and
16614 key_events for undo.
16616 * app/properties.c:
16617 Use ObjectChange that are returned from properties apply
16622 New undo type: ObjectChangeChange. This wraps a change to the
16623 internals of an object (and ObjectChange) in code that does
16624 app specific stuff (object_add_updates etc.)
16626 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
16628 * lib/orth_conn.[ch]:
16629 Added code for add/delete segment.
16631 * objects/standard/zigzagline.c:
16632 Use the new orth_conn code.
16635 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
16637 * objects/FS/Makefile.am
16638 Removed fs.h from sources.
16644 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
16646 * app/disp_callbacks.c (ddisplay_canvas_events):
16647 Fix for bug. Every other arrow-key press got lost.
16648 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
16651 change automake.sh to autogen.sh
16653 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
16656 Don't remove 'empty' objects.
16657 This violent destruction of objects won't work
16658 with the new undo framework.
16660 * app/disp_callbacks.c:
16661 Save undo info for object menu calls and key_events.
16663 * app/properties.c:
16664 Save undo info on properties apply.
16666 * lib/dia_image.[ch]:
16667 Add refcounting for images.
16669 * app/render_eps.c:
16670 * app/render_gdk.c:
16672 DiaImage * -> DiaImage
16675 Add undo functions for object state changes.
16679 change of semntics for focus->key_event.
16680 Now returns TRUE if the object recieving the event
16686 * lib/orth_conn.[ch]:
16687 Don't automatically create and delete segments when
16688 handles are moved. This is incompatible with undo.
16689 Added state get, set and free functions.
16691 * lib/orth_conn.[ch]:
16692 Added state get, set and free functions.
16694 * objects/UML/object.c:
16695 * objects/UML/uml.c:
16696 Fixed typo "UML - Objet" -> "UML - Object".
16697 Saved old for backwards compatibility.
16699 * objects/standard/arc.c:
16700 * objects/standard/box.c:
16701 * objects/standard/ellipse.c:
16702 * objects/standard/image.c:
16703 * objects/standard/line.c:
16704 * objects/standard/polyline.c:
16705 * objects/standard/textobj.c:
16706 * objects/standard/zigzagline.c:
16707 Added get/set state functions.
16708 Textobj has a redo crash-bug.
16709 Zigzagline needs object menus to add segments.
16712 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
16714 * app/render_eps.c (set_dashlength):
16715 Don't generate eps files with zero dash-length.
16717 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
16720 * app/create_object.c:
16722 Finished undo for create and paste.
16725 Started properties undo.
16727 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
16730 Added resizeable groups.
16733 Removed unused variable.
16737 Undo/redo for cut/delete done.
16739 * app/create_object.c:
16740 * app/modify_tool.c:
16741 * lib/diagramdata.[ch]:
16742 * app/diagram.[ch]:
16743 renamed diagram_add_selected -> diagram_select
16744 renamed diagram_remove_selected -> diagram_unselect
16746 * app/properties.[ch]:
16747 Added properties_hide_if_shown() function.
16749 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
16755 * app/commands.[ch]
16756 * app/modify_tool.[ch]
16757 * app/object_ops.[ch]
16758 * app/connectionpoint_ops.c
16760 Use undo functions.
16761 WARNING: Not finished. Will break.
16762 Finished: move object, move handle.
16765 Added diagram_selected_break_external() function.
16766 It removes all connections between selected objects
16768 Add undo stack to Diagram.
16770 * lib/diagramdata.[ch]
16771 Added layer_remove_objects() function
16773 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
16775 * objects/FS/Makefile.am
16776 * objects/sybase/Makefile.am
16777 Now uses GNOME_CFLAGS.
16780 Now compiles with GNOME even if popt.h isn't available.
16782 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
16785 * objects/Makefile.am
16787 First version of sybase objects from
16788 Brian Bruns <camber@umcc.ais.org>
16790 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
16793 Added fr to ALL_LINGUAS
16795 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
16799 Popt-code is activated if popt is available.
16801 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
16803 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
16805 * lib/orth_conn.[ch]:
16806 Added orthconn_get_middle_handle()
16809 Added text_set_cursor_at_end()
16812 Added first version of functions structure diagrams.
16814 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
16816 * app/modify_tool.c:
16817 Include math.h to remove warning.
16819 * app/commands.c (dialogs_properties_callback):
16820 Bring up correct properties dialog when selected
16822 From Dan Cohn <dan@internap.com>
16824 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
16826 Patch from Lars R. Clausen
16828 * app/modify_tool.c:
16829 Changed abs to fabs.
16831 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
16837 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
16839 Patches from Dan Cohn <dan@internap.com>
16841 * app/commands.[ch]:
16842 * app/display.[ch]:
16844 * app/preferences.[ch]:
16845 Implements ability to turn on/off connection points in
16846 current drawing and in global prefs.
16848 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
16850 * lib/widgets.c (dia_line_style_selector_init):
16853 * lib/diagramdata.c (layer_update_extents):
16854 Fixed uninitialized variable error.
16856 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
16859 Made some changes to the gdk_imlib visual+colormap setup.
16861 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
16863 * objects/UML/usecase.c:
16864 * objects/UML/lifeline.c
16867 * objects/UML/object.c:
16868 * objects/UML/message.c:
16869 Changed font from Courier to Helvetica.
16873 Added dash lenth to the LineStyle widget.
16875 * objects/standard/ellipse.c :
16876 * objects/standard/zigzagline.c:
16877 * objects/standard/line.c:
16878 Added dash lenght property.
16880 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
16882 * app/render_eps.c:
16883 First shot at latin1 encoded eps files.
16884 Works, but the eps files get a bit large.
16886 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
16888 * objects/UML/class.[ch]:
16889 * objects/UML/uml.[ch]:
16890 Reverted the line wrap changes.
16891 Some day this might return, but it has to be selectable and
16892 default to off for loaded objects, otherwise it breaks file
16893 format compatibility.
16894 There was also some complains about how it looked, so a making it
16895 selectable is good for this too.
16897 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
16899 * objects/UML/class.[ch]:
16900 Some indentation cleanup.
16901 Added wrap_lines variable to class.
16902 I'll fix the line break stuff tomorrow.
16904 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
16907 Added ref to poly_conn.o.
16909 * objects/standard/polyline.c (polyline_draw):
16910 * objects/standard/zigzagline.c (zigzagline_draw):
16911 * objects/standard/arc.c (arc_draw):
16912 * objects/standard/line.c (line_draw):
16913 Draw lines before arrows. This makes hollow arrows not
16916 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
16918 Changes from Kim Peasley <kpeasley@ior.com>
16920 * objects/UML/class.c:
16921 Break lines with long operations so classes won't be
16924 * objects/UML/uml.[ch]:
16925 Helperfunctions for the above.
16927 * objects/UML/objects.c:
16928 Fix bug that duplicated the text in the attributes
16929 textwidget each time the object was selected.
16931 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
16933 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
16935 * app/modify_tool.c:
16936 * app/modify_tool.h:
16937 Control-drag is restricted to vertical/horizontal movement
16940 ModifierKeys argument added to object_move_handle
16942 * app/connectionpoint_ops.c:
16943 * app/create_object.c:
16944 * app/object_ops.c:
16945 * objects/ER/attribute.c:
16946 * objects/ER/entity.c:
16947 * objects/ER/participation.c:
16948 * objects/ER/relationship.c:
16949 * objects/UML/actor.c:
16950 * objects/UML/association.c:
16951 * objects/UML/class.c:
16952 * objects/UML/classicon.c:
16953 * objects/UML/component.c:
16954 * objects/UML/constraint.c:
16955 * objects/UML/dependency.c:
16956 * objects/UML/generalization.c:
16957 * objects/UML/implements.c:
16958 * objects/UML/large_package.c:
16959 * objects/UML/lifeline.c:
16960 * objects/UML/message.c:
16961 * objects/UML/note.c:
16962 * objects/UML/object.c:
16963 * objects/UML/realizes.c:
16964 * objects/UML/small_package.c:
16965 * objects/UML/state.c:
16966 * objects/UML/usecase.c:
16967 * objects/network/bus.c:
16968 * objects/standard/arc.c:
16969 * objects/standard/box.c:
16970 * objects/standard/ellipse.c:
16971 * objects/standard/image.c:
16972 * objects/standard/line.c:
16973 * objects/standard/polyline.c:
16974 * objects/standard/textobj.c:
16975 * objects/standard/zigzagline.c:
16976 Changed calls to move_handle to pass the new argument.
16980 Default line width, color etc #define'd
16983 Updates of danish menus
16985 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
16988 * dia_gnome_icon.png
16989 * dia_gnome_menu_icon.png
16991 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
16994 About dialog shows dia_logo.png. Removed the GNOME about dialog.
16997 Distribute the icons and install logo in pkgdatadir.
17000 Added DATADIR-define.
17002 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
17003 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
17006 Updated version number, made setup quiet, can build from cvs,
17007 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
17010 * objects/ER/Makefile.am
17011 * objects/UML/Makefile.am
17012 * objects/network/Makefile.am
17013 * objects/standard/Makefile.am
17014 now builds better with gnome
17016 * objects/UML/class_dialog.c
17017 Fixed typo -> po files must be updated too!!
17019 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
17022 Added reference so that widgets.o gets linked to the app.
17024 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17026 * objects/UML/classicon.c:
17029 * objects/UML/actor.c:
17030 Changed position of 'snap-to-grid' so connection points are
17033 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
17035 * objects/UML/classicon.c:
17036 Changed position of 'snap-to-grid'.
17037 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17039 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
17041 * objects/network/antenna.c
17042 * objects/network/flash.c
17043 * objects/network/hub.c
17044 * objects/network/modem.c
17045 * objects/network/modularswitch.c
17046 * objects/network/rj45plug.c
17047 * objects/network/scead-plug.c
17048 * objects/network/network.c
17049 * objects/network/Makefile.am
17050 * objects/network/pixmaps/antenna.xpm
17051 * objects/network/pixmaps/flash.xpm
17052 * objects/network/pixmaps/hub.xpm
17053 * objects/network/pixmaps/modem.xpm
17054 * objects/network/pixmaps/modularswitch.xpm
17055 * objects/network/pixmaps/rj45plug.xpm
17056 * objects/network/pixmaps/sceadplug.xpm
17057 * objects/network/pixmaps/Makefile.am
17058 Lots of new network objects from
17059 Roland Steinbach <roland@support-system.com>.
17061 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17063 * objects/UML/classicon.c:
17064 Fixed connection positions, saved type as int (it has 3 states),
17065 and other small fixes.
17067 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
17069 * app/preferences.c:
17071 Added preference compress_save. It lets dia save uncompressed
17074 * objects/UML/class.c:
17075 Fixed bug with size calculation on methods that had class scope.
17077 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17079 * objects/UML/usecase.c:
17080 Added collaboration mode
17081 Fixed connection points with text > ellipse bug and other
17084 * objects/UML/state.c:
17085 Fixed bug of bad position of text after being either end
17086 or begin, moved and returned to text
17088 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
17090 * app/preferences.c: Add prototype declaration for prefs_apply.
17092 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
17094 * app/preferences.c:
17096 Apply don't hide window.
17098 * app/properties.c:
17101 * objects/UML/object.c:
17102 * objdcts/UML/state.c:
17103 Some data was not copied on copy.
17106 Ben Hochstedler <benh@eeyore.moneng.mei.com>
17108 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
17111 Changed link order between X and libxml.
17112 Some people had problems with an old libz in their
17115 1999-04-09 Kjartan Maraas <kmaraas@online.no>
17117 * po/no.po: updated translation.
17119 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
17121 * lib/message.c (message_error):
17124 * app/commands.[ch]:
17125 * app/diagram.[ch]:
17126 Added begining of xfig importing
17128 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17130 * objects/UML/pixmaps/state.xpm:
17131 * objects/UML/state.c:
17132 New UML object state machine.
17134 * objects/UML/uml.c:
17135 * objects/UML/Makefile.am:
17136 * objects/UML/pixmaps/Makefile.am:
17137 Added the state object.
17139 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
17141 * objects/UML/usecase.c:
17142 Added dialog to allow move text outside the ellipse.
17144 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
17146 * Released Dia 0.41
17147 Tag called DIA_0_41
17152 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
17155 Updated version number to 0.41
17160 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
17163 Changed errormessage for --export-to-ps. Removed call to
17164 g_log_set_always_fatal().
17167 * app/disp_callbacks.c
17169 (i18n) Removed gettext from some debugmessages.
17172 Small fix in GNOME-menus. Added warning that will help track
17173 problems with translations.
17176 (i18n) Updated swedish translation.
17178 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
17183 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
17189 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
17192 (i18n) Updated the danish translation.
17193 From Lars R. Clausen.
17195 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
17198 (i18n) The popup menu is translated now.
17201 (i18n) Updated swedish translation.
17203 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17205 * Released Dia 0.40
17206 Tag called DIA_0_40
17209 Updated for new release
17211 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17213 * objects/network/bus.c:
17214 Added initialization of properties dialog to NULL.
17216 * app/commands.c (edit_cut_callback):
17217 Update menu sensitivity when cut object.
17219 * app/modify_tool.c (click_select_object):
17220 * app/modify_tool.c (modify_button_release):
17221 Call diagram_update_menu_sensitivity() when
17222 selecting objects to update stuff that depends
17223 on selected/not selected.
17225 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17228 Change order of subdir so that libintl.a builds.
17229 Now passed make distcheck.
17231 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17233 * lib/font.c (init_x11_font):
17236 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17238 * objects/UML/pixmaps/classicon.xpm:
17239 * objects/UML/classicon.c:
17240 * objects/UML/uml.c:
17241 Added the class stereotype icon objects.
17244 Changed default ps extension from .ps to .eps.
17246 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17249 Added diamenu.h and intl.h
17254 * objects/UML/pixmaps/Makefile.am:
17257 * objects/standard/pixmaps/Makefile.am:
17260 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17263 Use a scalable font before fixed when real font not found.
17268 * objects/standard/image.c:
17269 Better handling of loading/saving of images.
17272 Added some text about cvs, fonts and rewrote some parts.
17275 Updated with new stuff.
17278 Bump up version number to 0.40.
17280 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17283 Moved diagram_add_ddisplay() call into new_display().
17284 Fixed new_display to not use uninitialized variables
17285 causing loaded files to show up as black (or garbage).
17289 Removed unneeded calls to diagram_add_ddisplay().
17291 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17293 * objects/UML/lifeline.c:
17295 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
17297 * objects/UML/message.c:
17298 Fixed bug loading messages with null-text.
17299 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
17301 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
17304 Updated swedish translation.
17307 (GNOME) Removed help-browser from help menu. Fixed typo.
17310 (GNOME) Accelerators in diagrams should work now.
17312 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
17317 * app/disp_callbacks.c
17321 * app/preferences.c
17323 * lib/diagramdata.c
17329 * objects/network/*.c
17330 * objects/standard/*.c
17331 * po/update_pofiles_in.sh
17333 More i18n. All strings (expect rare debug messages) can be
17334 translated now. Moved intl.h from app to lib. Updated
17335 update_pofiles_in.sh to check all .c-files.
17337 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
17339 * app/disp_callbacks.c (ddisplay_canvas_events):
17340 Don't drop keys while num-lock, scroll-lock etc is on.
17342 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17344 * app/render_eps.c (draw_image):
17345 Fixed exporting of images.
17346 Still not perfect, but not outright buggy.
17348 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17352 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
17355 Added $* to the dia call in run_dia.sh
17357 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
17360 Added color_equals() call.
17362 * objects/standard/arc.c:
17363 * objects/standard/line.c:
17364 Don't save unneccesary data.
17366 * objects/standard/box.c:
17367 * objects/standard/ellipse.c:
17368 * objects/standard/image.c:
17369 * objects/standard/polyline.c:
17370 * objects/standard/zigzagline.c:
17371 Share properties dialog.
17372 Don't save unneccesary data.
17374 1999-03-22 Seth Alves <alves@hungry.com>
17379 small changes so that gnome menus aren't broken
17381 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17384 Added danish translation from lrclause@cs.uiuc.edu.
17389 * po/update_pofiles_in.sh:
17390 Added script that updates POFILES.in.
17391 This should probably be run automatically from somewhere.
17393 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
17395 * app/diagram.[ch]:
17396 Added function diagram_update_menu_sensitivity() which
17397 sets the sensitivity of some menu items. This function
17398 is called at each diagram state change (from diagram_modified()).
17399 This is needed because otherwise the keyboard accelerators
17400 don't work correctly.
17402 * app/display.[ch]:
17403 Changed display_set_menu_sensitivity() to display_update_menu_state().
17404 Moved lots of code to diagram_update_menu_sensitivity() in
17405 diagram.c. Optimized to only look up menu-items from path:s once.
17407 * app/disp_callbacks.c:
17409 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
17410 Need to set GDK_FOCUS_CHANGE_MASK.
17412 * app/create_object.c:
17413 Call diagram_modified when an object has been created and
17414 selected so that the menu sensitivity is updated.
17417 removed menus_set_sensitive() and menus_set_state(). Exported
17418 renamed function menus_get_item_from_path().
17420 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
17422 * app/disp_callbacks.c:
17423 Show (empty) object menus on object that has none.
17424 Show title on object menus.
17427 Set zoom factor correctly when opening new displays.
17428 Better setting of scrollbars.
17432 Some reformating cleanup.
17435 Added title to object menus.
17438 Added object menu method (NULL-valued) to all objects.
17440 * objects/standard/polyline.c:
17441 Added title to object menu.
17443 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
17445 * app/preferences.[ch]:
17446 New files. Implements the preferences dialog and
17447 loading/saving of ~/.diarc.
17450 Added preferences.[ch].
17453 Load preferences on startup.
17455 * app/commands.[ch]:
17456 Added file_preferences_callback to show the preferences dialog.
17458 * app/create_object.c:
17459 Update extents when creating object.
17460 Use the reset_tools_after_create preferences setting.
17463 Use preferences when creating new display.
17466 Add preferences to menu.
17469 * app/layer_dialog.c:
17470 * app/properties.c:
17471 Don't allow shrinking of dialog.
17472 Add i18n of some strings.
17474 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
17476 Norwegian translation added.
17478 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
17480 * objects/standard/line.c:
17481 * objects/standard/arc.c:
17482 * objects/standard/polyline.c:
17483 * objects/standard/zigzagline.c:
17484 Loading of arrow data fixed.
17486 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
17489 Update extents when saving and exporting to postscript.
17490 Fixes a bug with postscript bounding-box being wrong.
17493 Changed border width from 5 to 2.
17496 Move grouped objects by the move-point of the first object.
17497 Fixes bug that made all objects in the group be off-grid
17498 when moving the group, even though all objects was on-grid.
17500 * app/layer_dialog.c:
17501 Update extents when changing layer.
17503 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17505 * objects/UML/uml.c:
17506 * objects/UML/component.c:
17507 * objects/UML/pixmaps/component.xpm:
17508 Added the UML component object
17510 1999-03-04 Seth Alves <alves@hungry.com>
17512 * objects/UML/generalization.c (generalization_create): avoid
17513 math on uninitialized genlz->text_width (NaN causes sigfpe)
17515 * objects/UML/realizes.c (realizes_create): same
17517 * objects/UML/dependency.c (dependency_create): same
17519 1999-03-01 Seth Alves <alves@hungry.com>
17521 * app/display.c (ddisplay_active): don't fly a warning panel
17522 if ddisplay_active is called when no views are open.
17524 * app/commands.c (set_default_file_selection_directory): set
17525 file selector's default directory if there is already
17528 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
17531 New info about imlib requirements.
17534 Added lib/pixmaps/Makefile to created makefiles.
17538 Change from obsoleted to newer gtk calls.
17541 Pass filename of the diagram when loading and saving.
17542 This creates better oportunities to handle filename saving.
17545 Pass filenames to load and save methods.
17547 * lib/dia_image.[ch]:
17548 Added dia_image_get_broken() call that returns a image which
17549 is used for 'broken' images.
17551 * lib/pixmaps/.cvsignore:
17552 * lib/pixmaps/Makefile.am:
17553 * lib/pixmaps/broken.xpm:
17554 New files for the broken image bitmap.
17557 Fixed bug with double destroyed filedialog.
17560 Updated load and save prototypes to use the new filename argument.
17563 Render broken image instead of line when got no image.
17564 Use the new filename in load and save to save (if possible)
17565 relative pathnames and to better try to find loaded images.
17567 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
17570 Some updates to the todo file.
17574 Place over/place over => sent to back/bring to front.
17575 Added some keyboard shortcuts to menus.
17577 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
17580 Changed string saving/loading to a new method. This should
17581 be much better att handling &,<,> and whitespaces.
17582 Loading strings of the old kind is still supported for backwards
17585 * samples/ER-demo.dia:
17586 * samples/UML-demo.dia:
17587 Updated to use the new strings.
17590 statusbar modified update fix.
17592 1999-02-27 Seth Alves <alves@hungry.com>
17594 * app/app_procs.c (app_init): added a --export-to-ps option
17595 which will cause dia to load a dia file and save it as ps
17596 and then exit. this is a little bogus, because it still
17597 pops up a window. this option only shows up if --enable-gnome
17600 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
17601 menu when built with --enable-gnome
17603 * app/interface.c (create_display_shell): build status bar
17604 even if --enable-gnome is used
17606 * app/menus.c: menu fixes for --enable-gnome
17608 * app/commands.c (file_open_dialog_ok_callback): fixed up
17609 menus when --enable-gnome is used
17610 (file_export_to_eps_callback): set a default file name
17611 when dialog is created
17613 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
17615 * objects/UML/association.c (association_create):
17616 Fixed usage of not initialized variable.
17617 Pointed out by Seth Alves <alves@hungry.com>.
17619 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
17622 Fixed detection of gnome-xml.
17623 From Valtteri Vuorikoski <vuori@k.notcom.org>.
17626 Fixed error detection on dlsym calls.
17627 From Valtteri Vuorikoski <vuori@k.notcom.org>.
17629 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
17631 * objects/UML/message.c (fill_in_dialog):
17634 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
17636 * objects/standard/zigzagline.c:
17637 * objects/standard/polyline.c:
17638 * objects/standard/line.c:
17639 * objects/standard/arc.c:
17643 Support for sizeable arrows.
17645 * objects/standard/box.c:
17646 * objects/standard/ellipse.c:
17647 * objects/standard/image.c:
17648 Changed creation handle to lower-right.
17649 Transparent box/ellipse.
17651 * objects/standard/image.c:
17652 Better layout of properties boxes.
17654 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17656 * objects/UML/message.c (fill_in_dialog):
17657 Fixed dialog fill in. Common dialog for all messages.
17659 * objects/UML/object.c:
17660 Added multiple instance. Dialog related bugs fixed.
17661 Common dialog for all instances. Completed copy and destroy.
17663 * objects/UML/lifeline.c (lifeline_load):
17664 Conn initialization bug fixed and few bad loading prevention flags.
17665 Common dialog for all lifeline objects.
17667 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
17669 * lib/dia_image.[ch]:
17670 More work on the DiaImage abstraction.
17673 * app/render_eps.c:
17674 * app/render_gdk.c:
17675 * objects/standard/image.c:
17676 Use the new DiaImage calls.
17678 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
17682 Reversed the meaning of align horizontal/vertical.
17684 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
17686 * app/load_save.c (diagram_load):
17687 Statusbar update fix.
17689 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
17691 * app/interface.c (create_display_shell):
17692 Fixed status bar size.
17694 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
17696 * lib/dia_image.[ch]:
17697 Added extern declaration for dia_image_release.
17698 Removed dia_image_draw, as it's not neseccary.
17700 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17702 * app/object_ops.c:
17704 Added equal distance alignment both vertical and horizontal.
17706 * objects/UML/object.c:
17707 Added a couple of attributes to load/read that were missing.
17709 * objects/UML/lifeline.c:
17710 Better handling of handles. Fixed another bug I forgot to add
17713 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
17715 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
17717 * lib/dia_image.[ch]:
17719 New files. DiaImage wraps the GdkImlibImage.
17722 * app/render_eps.c:
17723 * app/render_gdk.c:
17724 * lib/render_store.[ch]:
17725 * objects/standard/image.c:
17726 Use the new DiaImagetype.
17729 Removed unused variable to eliminate warning.
17731 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
17733 * objects/standard/box.c:
17734 Added rounded corners on the box object.
17736 * lib/widgets.[ch]:
17737 Updated the DiaFileSelector widget.
17739 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17741 * objects/UML/object.c (objet_draw):
17742 Completed underlining of all object name lines.
17744 * objects/UML/message.c (fill_in_dialog):
17745 Fixed a bug that filled incorrectly the message's dialog.
17747 * objects/UML/lifeline.c (lifeline_load):
17748 Some cleanning and fixed a couple of bugs that caused
17749 crashes after reading diagrams with lifelines.
17752 Added flags to prevent crash with void strings
17754 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
17755 * app/display.[ch]:
17756 Added statusbar to the display widget. Currently shows the zoom
17757 factor and modified flag of the viewed diagram. The statusbar is
17758 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
17759 This caused the following additions:
17761 * app/diagram.[ch]:
17762 Added function diagram_set_modified. Calls
17763 ddisplay_update_statusbar for all displays showing the modified diagram.
17764 Changed diagram_modified to call diagram_set_modified.
17767 Added the creation of the statusbar.
17770 diagram_save now calls diagram_set_modified instead of setting
17771 dia->modified. Needed to force call to display_update_statusbar
17774 Changed the way view_show_all works. Now calls ddisplay_zoom
17775 instead of directly setting the zoom_factor, so the zoom factor is
17776 correctly shown in the statusbar.
17779 Fixed rubberband zoom to use ddisplay_zoom().
17781 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
17784 Rudimentary GNOME session management.
17786 * app/disp_callbacks.c
17790 GNOME menus. Problems:
17791 Callbacks doesn't get user_data.
17792 Weird warnings when creating popup menus.
17793 menus_set_sensitive(), menus_set_state() doesn't work.
17795 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
17798 Add AM_PATH_GDK_IMLIB() call.
17801 Add gdk_imlib to linking flags.
17805 Print library-loading error messages on stdout too.
17808 Add standard image to toolbox.
17810 * app/render_eps.c:
17811 Set a more reasonable dot length. Fixed
17812 missing initialization of dot length.
17813 Added draw_image methods.
17815 * app/render_gdk.c (new_gdk_renderer):
17816 Dot a bit wider. Looks good in normal mode now.
17818 * objects/standard/image.c:
17819 * objects/standard/pixmaps/image.xpm:
17820 New files. Standard object for images.
17822 * app/render_eps.c (set_linestyle):
17823 * app/render_gdk.c (set_linestyle):
17824 * lib/widgets.c (dia_line_style_selector_init):
17826 New line style DOTTED.
17829 * lib/render_store.c:
17830 Change DrawImage call to use gdk_imlib.
17832 * lib/widgets.[ch]:
17833 Added widgets for selecting files.
17834 Added dotted to the linestyle selector.
17836 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
17838 * objects/network/printer.c:
17839 * objects/network/network.c:
17840 * objects/network/pixmaps/printer.xpm:
17841 * objects/network/.cvsignore:
17842 * objects/network/Makefile.am:
17843 * objects/network/pixmaps/Makefile.am:
17844 New printer object in network.
17845 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
17848 Added known XML bug.
17850 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
17854 Reverted back from #include <gnome-xml/tree.h> to
17855 #include <tree.h> as this is fixed by the xml-config program.
17856 The former way broke for some people.
17857 Reported by blizzard@redhat.com.
17859 * objects/UML/lifeline.c:
17860 * objects/UML/message.c:
17861 * objects/UML/object.c:
17862 Removed some warnings.
17864 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17866 * objects/UML/lifeline.c:
17867 Fixed connection points over the life line when the focus of
17868 control is not drawn.
17870 * objects/UML/message.c:
17871 Now a recursive message can be freely resized using the handles.
17873 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17875 * objects/UML/lifeline.c:
17876 Added connection points.
17877 Added properties dialog with the option to draw/hide focus of control
17878 box and destruction mark.
17880 * objects/UML/object.c:
17881 Added properties dialog and stereotype, explicit state and attributes.
17882 It's also possible to mark the object as active.
17884 * objects/UML/pixmaps/object.xpm:
17887 * objects/UML/message.c:
17888 Added "recursive" message type (was not necessary to use OrthConn).
17890 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
17892 * objects/standard/arc.c:
17893 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
17895 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
17897 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
17901 Update xml includes to gnome-xml/*.h.
17903 * objects/standard/arc.c:
17904 Only one property dialog per type.
17905 Fix arrows directions.
17907 * objects/standard/box.c:
17908 * objects/standard/ellipse.c:
17909 * objects/standard/textobj.c
17910 Added default properties dialog.
17913 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17915 * objects/UML/Makefile.am:
17916 * objects/UML/uml.c:
17917 * objects/UML/lifeline.c:
17918 * objects/UML/object.c:
17919 * objects/UML/message.c:
17920 * objects/UML/pixmaps/lifeline.xpm:
17921 * objects/UML/pixmaps/object.xpm:
17922 * objects/UML/pixmaps/message.xpm:
17923 Added 3 new UML objects for dynamic modeling. To avoid internal
17924 conflicts, the name "objet" is used for object "object".
17927 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
17930 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
17932 * app/display.[ch]:
17933 * app/modify_tool.c:
17934 Added autoscrolling while doing rubber-band select.
17935 This patch from Matthias Köster
17936 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
17939 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
17941 * app/defaults.[ch]:
17942 New files, deals with default properties dialog.
17945 New file. Contains definitions for the new object menu.
17947 * lib/poly_conn.[ch]:
17948 New file. Base class for poly-line like objects.
17950 * objects/standard/polyline.c:
17951 * objects/standard/pixmaps/polyline.xpm:
17952 New files. Polyline object.
17955 Fixed bug with infinite loop when registering sheets.
17958 Removed unneccesary stuff.
17960 * app/disp_callbacks.c:
17961 Support for object menus.
17964 Added polyline to toolbox.
17965 Added call to tool_options_dialog_show() when double clicking on
17969 New function tool_options_dialog_show() for tool properties.
17975 Added ObjectType methods for handling object default dialogs.
17976 Added Object method for handling object_menu.
17977 Added unused methods to ObjectTypeOps for future binary
17980 * lib/widgets.[ch]:
17981 Added DiaArrowTypeSelector widget.
17983 * objects/standard/arc.c:
17984 * objects/standard/zigzagline.c:
17985 Added support for default properties.
17987 * objects/standard/line.c:
17988 Added support for default properties.
17989 Just use one properties dialog for all line objects. NOTE: This
17990 seems to have a bug. We're working on it.
17992 * standard/standard.c:
17993 Add the polyline object.
17995 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
17997 * app/modify_tool.c:
17998 Commented out buggy transitive select function. It wasn't really
17999 meant to go into cvs.
18002 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
18014 Swedish translation. Not completed.
18018 Added possibility to enable GNOME specific code with configure.
18021 Added possibility to set debug level with configure.
18024 Added about dialog.
18030 Added some GNOME specific code. Not ready for use.
18032 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
18035 Added text about needing gtk 1.1.13 and gnome-xml.
18038 Described changes since last version (0.20).
18040 Released version 0.30, tagged DIA_0_30.
18042 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
18044 * app/magnify.c (magnify_button_release):
18045 Fixed a problem when zooming in on a very small box would
18046 not release the grabbed pointer-focus.
18048 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
18050 * app/load_save.c (diagram_load):
18051 Be somewhat more robust when loading files that
18054 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
18058 * objects/UML/uml.c:
18059 * objects/network/network.c:
18060 * objects/standard/standard.c:
18061 Added versioning of object libraries.
18063 * app/create_object.c:
18064 Don't change tool when an object is created.
18066 * objects/network/network.c:
18071 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
18074 Updated gtk requirement to Gtk+ 1.1.13.
18077 Always add one screenful of scrolling space on
18078 each side of a diagram window.
18080 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
18083 Tell automake to auto-install missing files.
18086 Renamed deprecated Gtk+ function.
18088 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
18092 * samples/Makefile.am:
18093 * samples/ER-demo.dia:
18094 * samples/UML-demo.dia:
18095 Added samples directory.
18096 Added samples for ER and UML.
18099 * app/disp_callbacks.c:
18101 Zoom is done by sqrt(2) instead of 2.
18102 Lots of more zoom options in the menu.
18104 * objects/ER/relationship.c:
18105 Relationships have 8 connectionpoints instead of 4.
18107 * objects/UML/class.c:
18108 UML class name font a bit smaller.
18109 Fixed stupid bug in the copy operation.
18112 Displays are opened at 500x400 instead of 256x256.
18115 Fixup of internal error message.
18117 * app/color_area.c:
18119 * app/modify_tool.c:
18121 Removed debug printf's.
18124 Added new known bug.
18126 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
18130 Fixed so accelerator groups work in all windows.
18131 Updated to new gtk function names.
18137 Updated to new gtk function names.
18138 Set sensitivity of the align menu items.
18140 * objects/ER/pixmaps/Makefile.am:
18141 * objects/UML/pixmaps/Makefile.am:
18142 * objects/network/pixmaps/Makefile.am:
18143 Fix so that make dist works.
18146 * app/color_area.c:
18150 * app/layer_dialog.c:
18152 * app/object_ops.c:
18153 * app/properties.c:
18154 * lib/diagramdata.[ch]:
18156 * lib/objects/ER/attribute.c:
18157 * lib/objects/ER/entity.c:
18158 * lib/objects/ER/participation.c:
18159 * lib/objects/ER/relationship.c:
18160 * lib/objects/ER/.c:
18161 * objects/UML/actor.c:
18162 * objects/UML/association.c:
18163 * objects/UML/class_dialog.c:
18164 * objects/UML/dependency.c:
18165 * objects/UML/generalization.c:
18166 * objects/UML/large_package.c:
18167 * objects/UML/realizes.c:
18170 Updated to new gtk function names.
18173 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
18179 Fixed loading of diagrams specified as arguments.
18181 * objects/ER/attribute.c:
18182 * objects/ER/entity.c:
18184 * objects/ER/participation.c:
18185 * objects/ER/relationship.c:
18186 Updated the ER objects.
18189 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
18193 * objects/Makefile.am:
18194 * objects/ER/attribute.c:
18195 * objects/ER/entity.c:
18197 * objects/ER/participation.c:
18198 * objects/ER/relationship.c:
18199 * objects/ER/pixmaps/Makefile.am:
18200 * objects/ER/pixmaps/attribute.xpm:
18201 * objects/ER/pixmaps/entity.xpm:
18202 * objects/ER/pixmaps/participation.xpm:
18203 * objects/ER/pixmaps/relationship.xpm:
18204 * objects/ER/pixmaps/weakentity.xpm:
18205 First commit of entity relationship objects.
18206 These were done by hallon@lysator.liu.se.
18207 There are still stuff to do on these.
18209 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
18214 * app/diagram.[ch]:
18215 Change diagram_remove_all_selected to take new argument
18216 delete_empty. Empty objects are deleted only if it is TRUE.
18217 Removed call to close_eps_renderer. This is now done in end_render
18218 in the eps renderer.
18220 * app/create_object.c:
18221 * app/layer_dialog.c:
18222 Update calls to diagram_remove_all_selected.
18225 Update calls to diagram_remove_all_selected.
18226 Some code reformating.
18227 Changed order of adding updates i align_h and align_v.
18229 * app/modify_tool.c:
18230 Update calls to diagram_remove_all_selected.
18231 Added pointer grab when doing rubber-band selection, this fixes
18232 the bug when draging the box over to another window.
18234 * app/connectionpoint_ops.[ch]:
18235 diagram_update_connections_object changed to take an argument
18236 update_nonmoved. This lets connections that has not moved, but
18237 the stuff they're connected to has been moved work.
18238 Update calls to the new diagram_update_connections_object.
18240 * app/properties.c:
18241 Update calls to the new diagram_update_connections_object.
18242 Update extents when properties are applied.
18244 * app/disp_callbacks.c:
18245 Added support for zooming with the '+' and '-' keys.
18248 Removed old keyboard shortcuts for zoom.
18251 Added calls begin_render and end_render to renderer.
18252 These can be used for setup and cleanup.
18254 * lib/diagramdata.c:
18255 Added calls to begin_render and end_render in data_render.
18257 * app/render_gdk.c:
18258 Added begin_render and end_render.
18260 * app/render_eps.[ch]:
18261 Added begin_render and end_render.
18262 Moved close_eps_renderer code to end_render.
18263 Various fixes to the generated eps code. This fixes importing
18264 generated eps into LYX.
18266 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
18272 Menus for alignment updated.
18274 * app/object_ops.[ch]:
18275 Functions for object alignment updated.
18277 * app/commands.[ch]:
18278 Object alignment callbacks updated.
18279 New diagrams are called Untitled-<nr>.
18281 * app/layer_dialog.c:
18282 Active layer selected when showing layers from new
18286 Compress xml files when saving.
18287 Use xml namespace 'dia'.
18290 Minor comment update.
18292 * objects/UML/class_dialog.c:
18293 Cleanup of the gkt_list_item moving code.
18294 Fixed bug with update of operation when moving parameters.
18296 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
18298 * app/layer_dialog.[ch]:
18299 Fixed the rest of the layers dialog.
18302 Added call to redo layer dialogs diagram list when changing
18305 * lib/diagramdata.[ch]:
18306 Added data_raise_layer and data_lower_layer functions for
18307 raising/lowering layers. Added data_add_layer_at for adding a
18308 layer at a specified index.
18310 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
18312 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
18315 Added support for reading diagrams from the command line.
18317 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
18319 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
18321 * app/commands.[ch]:
18322 Added objects_align_callback().
18325 Added align objects to menu.
18327 * app/object_ops.[ch]:
18328 Add object_list_align().
18330 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
18331 * app/layer_dialog.[ch]:
18332 New files. Handles the layers dialog. Needs a bugfix for glib to
18333 work. Sent patch to gtk-list.
18335 * app/pixmaps/new.xpm:
18336 * app/pixmaps/eye.xbm:
18337 * app/pixmaps/lower.xpm:
18338 * app/pixmaps/raise.xpm:
18339 * app/pixmaps/delete.xpm:
18340 New files. Images for the layer dialog buttons.
18342 * lib/diagramdata.h
18343 * lib/diagramdata.c
18344 New files for the DiagramData and Layer structures and functions.
18347 Added call to create_layer_dialog() on startup.
18349 * app/commands.[ch]:
18350 New callbacks for showing the properties and layout dialog.
18351 Changes for the new DiagramData structure.
18353 * app/connectionpoint_ops.c:
18354 * app/cut_n_paste.c:
18355 * app/diagram.[ch]:
18356 * app/display.[ch]:
18358 * app/modify_tool.c:
18359 * app/object_ops.[ch]:
18360 * app/render_eps.c:
18362 Changes for the new DiagramData structure.
18365 * app/properties.c:
18366 Set correct wmclasses.
18369 Fix load and save of layers.
18372 Update DTD for layers.
18375 New menus for dialogs.
18381 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
18384 Removed the gtk 1.1.5 stuff.
18387 Updated gtk check to version 1.1.5.
18388 Updated version from 0.20 to 0.30
18390 * app/commands.[ch]:
18391 Updated some callbacks to be of type GtkItemFactoryCallback1.
18392 Not all are done yet, but it works anyway.
18395 Removed Gtk 1.0.0 GtkAcceleratorTable references.
18399 Update to Gtk 1.1.x functions.
18400 Use ItemFactory instead of MenuFactory.
18402 * app/render_gdk.c:
18403 Removed Gtk 1.0.0 references.
18405 * objects/UML/class_dialog.c:
18406 Scrolled window updates for Gtk 1.1.5.
18409 Removed ugly fix for gnome-xml bug. Make sure you get the
18410 newest version of gnome-xml from CVS.
18412 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
18415 Removed the xml load/save line.
18421 Removed building of files.c
18424 * lib/connection.c:
18428 * lib/render_object.c:
18429 * objects/UML/actor.c:
18430 * objects/UML/association.c:
18431 * objects/UML/class.c:
18432 * objects/UML/constraint.c:
18433 * objects/UML/dependency.c:
18434 * objects/UML/generalization.c:
18435 * objects/UML/implements.c:
18436 * objects/UML/large_package.c:
18437 * objects/UML/note.c:
18438 * objects/UML/realizes.c:
18439 * objects/UML/small_package.c:
18440 * objects/UML/uml.c:
18441 * objects/UML/usecase.c:
18442 * objects/network/bus.c:
18443 * objects/standard/arc.c:
18444 * objects/standard/box.c:
18445 * objects/standard/ellipse.c:
18446 * objects/standard/line.c:
18447 * objects/standard/textobj.c:
18448 * objects/standard/zigzagline.c:
18449 Removed all includes of files.h
18452 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
18455 Made the val property of string be implied.
18456 This makes it possible to save strings that
18457 are NULL. Just leave out val.
18459 * objects/lib/dia_xml.c:
18460 Fixed string so that it is possible to save strings
18461 that are NULL. Also made an ugly workaround of a
18462 bug in gnome-xml which removes empty properties.
18464 * objects/lib/orth_conn.c:
18465 Fixed a bug in saving. Forgot to step through the
18468 * objects/UML/association.c:
18469 * objects/UML/class.c:
18470 * objects/UML/constraint.c:
18471 * objects/UML/dependency.c:
18472 * objects/UML/generalization.c:
18473 * objects/UML/implements.c:
18474 * objects/UML/large_package.c:
18475 * objects/UML/note.c:
18476 * objects/UML/small_package.c:
18477 * objects/UML/realizes.c:
18478 * objects/UML/usecase.c:
18479 * objects/UML/actor.c:
18480 Fixed UML objects to save as xml.
18481 The last two were done by asierra@servidor.unam.mx (asierra-981204)
18483 * objects/UML/uml.[ch]:
18484 Updated *_write() and *_read() functions to use xml.
18486 * objects/network/bus.c:
18487 * objects/network/computer.c:
18488 * objects/network/disc.c:
18489 * objects/network/monitor.c:
18490 Updated network diagrams to use xml.
18492 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
18495 New file. DTD that describes the xml file format
18498 * lib/dia_xml.[ch]:
18499 New files. Support for saving object to xml files.
18504 Added check for and usage of gnome-xml library.
18507 Major chages. Now saves/loads diagrams as xml.
18510 * lib/element.[ch]:
18511 * lib/connection.[ch]:
18512 * lib/orth_conn.[ch]:
18513 * lib/render_object.[ch]:
18515 Updated object support load/save functions for xml:
18517 * object/standard/arc.c:
18518 * object/standard/box.c:
18519 * object/standard/ellipse.c:
18520 * object/standard/line.c:
18521 * object/standard/textobj.c:
18522 * object/standard/zigzagline.c:
18523 Updated all standard objects to use xml.
18526 Only the standard objects are converted right now, don't
18527 save or load uml or network diagrams yet. Also, since this
18528 is new code it is deemed a bit unstable.
18533 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
18535 * objects/UML/class.c:
18536 Changed classname font to Helvetica.
18537 Added more space above the classname
18539 * objects/UML/usecase.c:
18540 Correct placements of connectionpoints on ellipse.
18541 Better algorithm for deciding aspect ration on
18544 These changes were made by Alejandro Aguilar Sierra
18545 <asierra@servidor.unam.mx>. (asierra-981201)
18547 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
18549 * objects/UML/actor.c:
18550 Changed the extents and alignment of the element
18553 * objects/UML/.cvsignore:
18554 Added usecase.lo and actor.lo.
18556 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
18558 * objects/UML/actor.c:
18559 * objects/UML/usecase.c:
18560 * objects/UML/pixmaps/actor.xpm:
18561 * objects/UML/pixmaps/case.xpm:
18562 New files. Implements usecase and actor UML objects.
18563 These objects are done by Alejandro Aguilar Sierra
18564 <asierra@servidor.unam.mx>.
18566 * objects/UML/Makefile.am:
18567 * objects/UML/pixmaps/Makefile.am:
18568 Added usecase and actor to makefile.
18571 Added Alejandro and Jerome to autors list.
18573 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
18575 * objects/UML/class.c (umlclass_load):
18576 Fixed typo. Reported by Jerome.Abela@solsoft.fr
18578 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
18580 * app/properties.c:
18581 Update connections when doing apply in the properties window.
18583 * objects/UML/uml.[ch]:
18584 * objects/UML/class.[ch]:
18585 * objects/UML/class_dialog.c:
18586 Added connection points on both sides of attributes and
18587 operations in UML classes.
18588 Based on idea from Jerome.Abela@solsoft.fr
18590 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
18593 Some new documentation about handles and connectionpoints.
18596 Added functions object_add_connectionpoint and
18597 object_remove_connectionpoint for handling a dynamic
18598 number of connectionpoints.
18600 * objects/UML/class.c:
18601 Only reserve space for stereotype when it is shown.
18603 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
18605 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
18607 * app/connectionpoint_ops.c:
18609 * app/disp_callbacks.c:
18610 * app/display.[ch]:
18612 * app/handle_ops.c:
18614 * app/modify_tool.c:
18615 * app/render_gdk.[ch]:
18617 Huge cleanup of internal rendering system.
18618 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
18619 This gives a few new methods for Interactive Renderers for setting
18620 clipping regions and drawing pixel based lines and rects.
18621 Updated the rest of the code to use the new stuff.
18623 * app/render_eps.c:
18627 * objects/standard/zigzagline.c
18628 Fixed unused variable warnings.
18631 Fixedbug with stringwidth where width==0.
18636 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
18638 * lib/widgets.[ch]:
18639 Added suppot for setting the font of a
18640 DiaFontSelector widget.
18641 Also fixed some typos in the header.
18644 Added a comment about the GetPRoperties method call.
18645 You have to make sure to update widget state when
18646 this method is called. (Not all objects do this yet,
18652 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
18655 Fixed problem with height of ascent and descent for fonts.
18656 It didn't use the whole height (==ascent+descent) when calculatine
18657 ascent_ratio and descent_ratio.
18659 * objects/standard/textobj.c:
18660 * objects/standard/box.c:
18661 * objects/standard/ellipse.c:
18662 * objects/standard/line.c:
18663 * objects/standard/arc.c:
18664 Updated and added property dialogs for these objects.
18665 Also added line width/color/style to those objects
18666 that didn't have it.
18667 This change breaks fileformat compatibility for these objects.
18669 * objects/standard/zigzagline.c:
18670 Changed zigzagline to be based on OrthConn, much nicer.
18671 Also added line style and color to properties.
18672 This change breaks fileformat compatibility for zigzagline.
18675 Fixed bug in message(). Forgot a pair of '&'.
18677 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
18679 * lib/widgets.[ch]:
18680 Added DiaColorSelector widget.
18681 This is a colored button that pops up a color selection
18682 dialog when pressed.
18684 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
18686 * lib/widgets.[ch]:
18688 New files, added widgets for selecting fonts, alignment
18689 and line-style. Will be used later.
18691 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
18695 * objects/UML/Makefile.am:
18696 * objects/network/Makefile.am:
18697 * objects/standard/Makefile.am:
18698 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
18699 in all Makefile.am.
18701 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
18703 * app/handle_ops.c (handle_draw):
18704 connected HANDLE_MINOR_CONTROL also becomes red.
18706 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
18709 removed -ldl from linking. This is added if needed by configure.
18712 Open dlls with RTLD_LAZY if it is defined.
18713 Some cleanups: char *error -> const char *error
18714 Added fprintf()'s to where we exited because of errors.
18717 Include <sys/types.h>
18719 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
18724 Detect dlopen better.
18725 Detect wether dlopen needs an underscore in the identifier.
18726 This code was mostly borrowed from guile.
18730 * objects/standard/standard.c:
18731 * objects/network/network.c:
18732 * objects/UML/uml.c:
18734 Changed the way sheets reference objects to use just the
18735 name. Changed module loading to a two stage model:
18736 First register_objects() is called for all modules.
18737 Then register_sheets() is called. This means that
18738 sheets can safely include objects from other modules.
18741 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
18743 * objects/network/bus.c:
18744 * objects/network/network.c:
18745 * objects/network/Makefile.am:
18746 New file bus.c. Added new object: Ethernet bus.
18748 * objects/standard/box.c:
18749 Added call to gtk_spin_button_set_numeric for linewidth spinner
18750 in property dialog.
18752 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
18754 * app/connectionpoint_ops.c:
18755 * app/create_object.c:
18757 * app/handle_ops.c:
18758 * app/modify_tool.c:
18759 * lib/connection.c:
18764 * loads of objects:
18765 Changed handle->connectable to handle->connect_type.
18766 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
18767 that their connections don't break when moving objects.
18770 Always select the last handle in an object that has
18771 the closest distance.
18773 * lib/geometry.[ch]:
18774 Added rectangle_add_point function.
18777 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
18779 * app/properties.[ch]: New files. Handles the new properties
18782 * app/modify_tool.c: Changed to use new properties dialog.
18784 * app/object_ops.[ch]: Removed object_changed_callback, as it's
18785 not needed anymore. This is now handled differently in
18789 Changed the properties ops for objects. Removed typedefs
18790 ChangedObjectTime and ObjectChangedFunc needed for the old way.
18791 Added object_return_null function.
18794 * lib/render_object.c:
18796 Changed objects to use the new properties dialog.
18799 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
18801 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
18804 * autogen.sh: New file. Copied from gtk and added a call to
18805 libtoolize. Anyone knows why this isn't done in gtk?
18807 * Removed autogenerated files.
18809 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
18811 * Added call setlocale(LC_NUMERIC, "C") so that formating of
18812 floating-point numbers in postscript output will be correct.
18813 * Did some cleanup of generated postscript files.