New group work, and utility funcs.
[dia.git] / ChangeLog
blobc91da7c81ba85bfffe02a5bbf5ebe6dcdb66302e
1 2006-08-06  Lars Clausen  <lars@raeder.dk>
3         * objects/Misc/newgroup.c: 
4         * lib/diagramdata.c: 
5         * app/diagram.[ch]: 
6         * app/select.c: 
7         * app/modify_tool.c: 
8         * lib/object.[ch]: Work towards a more reasonable definition of
9         Groups. 
10         
11 2006-08-06  Steffen Macke <sdteffen@gmail.com>
13         * installer/win32/dia.nsi: Save diagrams by default in "My Pictures";
14         fixes bug #344247
16 2006-08-04  Steffen Macke <sdteffen@gmail.com>
18         * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm 
19         newgroup.xpm , *ui.xml files
21 2006-08-03  Lars Clausen  <lars@raeder.dk>
23         * sheets/Makefile.am: EML sheet taken out since it's been empty
24         for five years anyway.  Fixes bug #347894.
26         * doc/eu/dia.dbk: 
27         * doc/en/dia.dbk: 
28         * doc/en/usage-layers.xml: Fixed obsolete references to
29         export-to-format.  Fixes bug #346510.
31 2006-08-02  Lars Clausen  <lars@raeder.dk>
33         * plug-ins/vdx/visio-types.h: 
34         * plug-ins/vdx/vdx.h: 
35         * plug-ins/vdx/vdx-xml.c: 
36         * plug-ins/vdx/vdx-import.c: 
37         * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of
38         Visio import, thanks to Ian Redfern, who states: 
40         Version 0.4 does a passable job with curves, and has the first
41         implementation of Masters. It also handles XForm1D, and fixes a
42         potential crash. It gets some layers in the wrong order and still
43         has some major positioning and sizing issues. 
45         Version 0.3 gets object layout correct, and does a better job of
46         text, lines, arrows, layers etc. Some diagrams (that don't contain
47         curves) now render pretty much correctly. 
49 2006-07-16  Hans Breuer  <hans@breuer.org>
51         * app/cut_n_paste.[hc] : maintain a generation counter to count
52         how many times the stored object list is used
53         * app/commands.c : use the generation for paste placement. The
54         first one after cut is not moved at all: a nice way to move objects
55         between layers without changing their lateral position.
56         Also sprinkled some diagram_update_extents()
57         
58         * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080
59         
60         * app/recent_files.c : don't g_return_if_fail() on common use case,
61         here an empty recent file list
62         
63         * lib/dia_image.c(dia_image_draw) : don't try to draw anything if
64         width or height is smaller than 1 pixel
65         
66         * plug-ins/cairo/diacairo.c : allow to export to svg if available 
67         with cairo. Some tweaking of surface sizes.
68         
69 2006-07-12  Lars Clausen  <lars@raeder.dk>
71         * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
73 2006-06-28  Lars Clausen  <lars@raeder.dk>
75         * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
76         is in create.c.
78 2006-06-25  Hans Breuer  <hans@breuer.org>
80         * app/display.c : avoid to call gettext on parameters for ngettext()
81         Should finally really fix bug #344896
82         
83         * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
84         removed expand="yes" because otherwise the files can't be read with
85         gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
86         * app/menus.c app/Makefile.am : also find the ui files when run from
87         app/run_dia.sh
89 2006-06-17  Gintautas Miliauskas  <gintas@akl.lt>
91         * configure.in: Added lt to ALL_LINGUAS.
93 2006-06-15  Hans Breuer  <hans@breuer.org>
95         * app/display.c : use ngettext() for possible plural variations.
96         (Bug #344896, tokul@users.sourceforge.net)
98         * objects/UML/class.c : use g_list_append() rather than prepend
99         when copying attributes, operations, formalparams. Fixes bug #342902
100         Also removed some superfluous outcommented code and fixed a warning.
102         * objects/UML/class.c : dont break reading comment_line_length
103         by misguide compatibility code. Fixes bug #341887
105         * plug-ins/vdx/vdx-xml.c : added file missing from 0.3 
106         version commit. Fixes bug #344804
107         
108         * lib/create.h : add create_standard_group() prototype
109         * lib/libdia.def lib/makefile.msc objects/makefile.msc 
110           plug-ins/makefile.msc : added missing (files|exports)
112 2006-06-13  Lars Clausen  <lars@raeder.dk>
114         * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
115         again to Ian Redfern.
117 2006-06-12  Elijah Newren  <newren gmail com>
119         * autogen.sh: Run configure by default, allow it to be skipped if
120         NOCONFIGURE is set in the environment.  #344574.
122 2006-06-12  Elijah Newren  <newren gmail com>
124         Pair of build fixes.  #344357
126         * Makefile.am: avoid cp errors when $(srcdir) == .
128         * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
129         pixmaps/group.xpm as the latter doesn't exist.
131 2006-06-12  Hans Breuer  <hans@breuer.org>
133         * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
134         which adds support for Java and inheritance. Closes bug #344187
135         
136 2006-05-28  Lars Clausen  <lars@raeder.dk>
138         * sheets/Misc.sheet.in: 
139         * objects/Misc/Makefile.am (EXTRA_DIST): 
140         * objects/Misc/pixmaps/newgroup.xpm: 
141         * objects/Misc/newgroup.c: 
142         * objects/Misc/libmisc.c: Start of new group model, with "visible"
143         object to test with.  This object will later become the default
144         group object and thus (mostly) invisible.
146         * lib/parent.c (parent_handle_move_in_check): 
147         * app/create_object.c (create_object_button_press): 
148         * app/diagram.c (diagram_unparent_children_selected): 
149         * app/disp_callbacks.c (ddisplay_drop_object): 
150         * app/load_save.c (write_objects): 
151         * objects/network/radiocell.c (radiocell_create): 
152         * objects/AADL/aadlbox.c (aadlbox_create): 
153         * objects/UML/large_package.c (largepackage_create): 
154         * objects/UML/component.c (component_create): 
155         * lib/object.[ch]: DiaObject API change: DiaObject now has gint
156         flags rather than gboolean can_parent, and utility function
157         object_flags_set.  Uses of can_parent changed to call to function.
159         * doc/en/dia.dbk: Removal of obsolete epsi references.
161 2006-05-27  Hans Breuer  <hans@breuer.org>
163         * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator 
164         '<control>+': it wants '<control>plus', same for minus.
166         * tests/exports/cgm/* : cvs admin -kb *.cgm
167           tests/exports/png/* tests/exports/png-libart/* 
168           tests/exports/shape/* : cvs admin -kb *.png
169           tests/exports/wpg/* : cvs admin -kb *.wpg
170         mark binary files as such to not get them broken on platforms which
171         insist on replacing line-ends.
173         * app/app_procs.c app/display.c app/filedlg.c app/interface.c
174           app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
175           plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
176           plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
177         as well. Patch from Hans de Goede, bug #342111
179 2006-05-27  Rob Staudinger <robert.staudinger@gmail.com>
181         * Makefile.am: 
182         * app/Makefile.am:
183         * app/diagram.c: 
184         * lib/Makefile.am:
185         * objects/standard/Makefile.am:
186         * plug-ins/python/Makefile.am:
187         Fix out of tree build (#340115).        
189 2006-05-25  Hans Breuer  <hans@breuer.org>
191         * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
192         to action_name. Don't mark action names for translation. It is not
193         needed and some languages don't support CamelCase. Fixes bug #342895
194         
195         * app/menus.c : re-added a bunch of accelerators lost in translation
196         to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
197         it was not available with gtk+-2-6-x.
198         Use dia_get_data_directory() instead of hardcoded UIDATADIR.
199         * app/dia_embedd.c : explain instead of out-comment
200         
201         * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c 
202           lib/properties.h dia_xml.c : warningectomy
203           
204         * lib/create.h : create_standard_group()
205         * lib/libdia.def lib/makefile.msc : reflect moved stuff
206         
207 2006-05-25  Lars Clausen  <lars@raeder.dk>
209         * tests/exports/*.dia: A set of test diagrams for export
210         plug-ins.  The intention is to use these for regression tests by
211         ensuring that they don't change when code is altered, or if they
212         change that a manual inspection proves them ok.  The fact that an
213         export plug-in passes these tests doesn't mean it's perfect, just
214         that is hasn't degraded.
215         
216         * plug-ins/xfig/xfig-import.c: 
217         * plug-ins/vdx/vdx-import.c: 
218         * lib/create.[ch]: Functions taken from xfig to create some
219         standard objects easily.  Uses of them updated, no longer need to
220         take DiagramData.
222         * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
223         Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>.  Also a bunch of
224         samples for the purpose from the vdxtosvg project.
226 2006-05-21  Hans Breuer  <hans@breuer.org>
228         * app/interface.[hc] app/disp_callbacks.c : removed unused
229         global variable popup_shell
230         
231         * app/pagesetup.c app/diapagelayout.c : restrict every page margin
232         to a little less than half of the page. This guarantees margins
233         leaving some useable page area and thus avoids crashing on negative
234         page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
235         
236 2006-05-20  Hans Breuer  <hans@breuer.org>
238         Patch from Robert Staudinger to base dia menus on GtkAction framework
239         instead on deprecated GtkItemFactory. Tracked in bug #340352. 
240         En passant fixes bug #171397
241         * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
242         * Makefile.am : added data dir
243         * app/Makefile.am : added $(uidatadir)
244         * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
245           app/diagram_tree_window.c app/diagram_tree_window.h
246           app/disp_callbacks.c app/display.c app/display.h
247           app/interface.c app/menus.c app/menus.h app/recent_files.c :
248         changed a bunch of callback signatures to take GtkAction
249         * app/pixmaps/Makefile.am 
250         * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
251           data/popup-ui.xml : new files containing the menu structure
252         * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
253           registration change to be more appropriate for actions
254         * lib/libdia.def : updated externals
255         * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
256           plug-ins/python/group_props.py plug-ins/python/gtkcons.py 
257           plug-ins/python/otypes.py plug-ins/python/pydiadoc.py 
258           plug-ins/python/scascale.py plug-ins/python/select_by.py :
259         adapted to API change dia.register_callback to dia.register.action
261         * app/authors.h : added Robert to the authors
262         * app/commands.c : got rid of compiler warnings
264 2006-05-14  Hans Breuer  <hans@breuer.org>
266         * plug-ins/python/python.c : protect the plug-in against 
267         initializing if Python already is initialized. This PyDia extensions
268         is designed for embedding Python.
269         
270         * plug-ins/python/pydia-property.c : LineStyle.dash may be either
271         Float or Integer.
272         
273         * plug-ins/python/diasvg_import.py : remove FontSize debug spew
274         
275         * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
276         setup use the pango context matching the display. Otherwise fallback
277         to a context from PangoWin32 (matches only for gtk+-2-6, not the one
278         used since gtk+-2-8 using cairo.
279         
280 2006-05-13  Hans Breuer  <hans@breuer.org>
282         [ also applied to branch dia-0-95 ]
283         * objects/UML/umloperationc: add "query" to umloperation_offsets.
284         Patch from Peter Allin, fixes bug #338336
286         [ also applied to branch dia-0-95 ]
287         * app/diagram.c(diagram_ungroup_selected) : operate on a copy
288         of data-Selected cause the original is modified during use.
289         Patch from Victor Stinner, fixes bug #334771
291         * configure.in config.h.win32 : development started again so 095+cvs.
292         Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1 
293         if necessary)
294         
295         * app/diagram.c : removed long-time outcommented code
296         
297         * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
298           lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
299         
300         * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
301         it is handled everywhere else just fine.
302         
303 2006-04-19  Lars Clausen  <lars@raeder.dk>
305         * installer/win32/dia.nsi: 
306         * doc/en/dia.xml: 
307         * doc/eu/dia.xml: 
308         * doc/pl/dia.xml: 
309         * config.h.win32: 
310         * configure.in: 
311         * NEWS: Release 0.95
313         * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
314         from Nick Moore <shiny.nickel@gmail.com>.
316 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
318         * configure.in: Remove obsolete entry for no_NO
319         * po/no.po: And the translation.
321 2006-04-12  Lars Clausen  <lars@raeder.dk>
323         * installer/win32/dia.nsi: 
324         * doc/en/dia.xml: 
325         * doc/eu/dia.xml: 
326         * doc/pl/dia.xml: 
327         * config.h.win32: 
328         * configure.in: 
329         * NEWS: -pre9
331         * configure.in: Check for xgettext.  Apparently
332         AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
334 2006-04-04  Steffen Macke <sdteffen@gmail.com>
336         * installer/win32/dia.nsi:
337         * installer/win32/langmacros.nsh:
338         * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
339         closes bug #335477
341 2006-04-03  Lars Clausen  <lars@raeder.dk>
343         * installer/win32/dia.nsi: 
344         * doc/en/dia.xml: 
345         * doc/eu/dia.xml: 
346         * doc/pl/dia.xml: 
347         * config.h.win32: 
348         * configure.in: 
349         * NEWS: -pre8
351         * plug-ins/xfig/xfig-import.c: Initially place text in the right
352         place. 
354 2006-04-03  Steffen Macke <sdteffen@gmail.com>
356         * installer/win32/dia.nsi:
357         * installer/win32/locale/french.nsh: Added french installer
358         locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
360 2006-04-02  Hans Breuer  <hans@breuer.org>
362         * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
364 2006-03-29  Daniel Drake  <dsd@gentoo.org>
366         * configure.in: Use standard pkg-config expressions to check for
367         GTK+/Glib, the GTK-supplied macro's conflict with our usage of
368         $GTK_MODULES (#335422)
370 2006-03-28  Lars Clausen  <lars@raeder.dk>
372         * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
373         Include libs and cflags in proper places.
375         * installer/win32/dia.nsi: 
376         * doc/en/dia.xml: 
377         * doc/eu/dia.xml: 
378         * doc/pl/dia.xml: 
379         * config.h.win32: 
380         * configure.in: 
381         * NEWS: -pre7
383         * shapes/network/mobile_phone.{png,xpm,shape}:
384         * shapes/network/telephone.shape:
385         * shapes/network/disc.shape:
386         Updates from W. Borgert <debacle@debian.org> improving looks and
387         positioning.
388         
389 2006-03-26  Lars Clausen  <lars@raeder.dk>
391         * objects/network/radiocell.c: Patch from W. Borgert
392         <debacle@debian.org> for extra midpoint, flicker, extraneous
393         properties.
394         
395         * objects/network/basestation.c: Patch for BB from W. Borgert
396         <debacle@debian.org>. 
398 2006-03-23  Hans Breuer  <hans@breuer.org>
400         * lib/widgets.c : use original fontname and fallback 'sans' to
401         render the font menu. Thus crashing (in Pango) is delayed until
402         the point where one chooses a font, which can't be rendered by
403         Pango. Fixes bug #335096 as far as Dia can.
404         
405 2006-03-21  Lars Clausen  <lars@raeder.dk>
407         * installer/win32/dia.nsi: 
408         * doc/en/dia.xml: 
409         * doc/eu/dia.xml: 
410         * doc/pl/dia.xml: 
411         * config.h.win32: 
412         * configure.in: 
413         * NEWS: -pre6
415         * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
417 2006-03-19  Hans Breuer  <hans@breuer.org>
419         * app/display.c app/preferences.c : unset transient, still issues
420         with transient handling, see bug #332828
421         
422         * app/makefile.msc lib/makefile.msc objects/makefile.msc
423           plug-ins/makefile.msc : removed stuff supposed to be used from
424         $(TOP)/glib/build/win32/make.msc
425         
426         * plug-ins/xfig/xfig-import.c : make it compile with strict type 
427         checking [these were real errors, freeing stack passed values instead
428         of the intended local variable] :
429         xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *' 
430          differs in levels of indirection from 'struct _Point ** '
431         xfig-import.c(580) : warning C4024: 'g_array_free' : different types 
432          for formal and actual parameter 1
434         * lib/libdia.def : export connection_adjust_for_autogap 
435         
436         * plug-ins/hpgl/hpgl.c : there is one floating point value in the 
437         whole HPGL output - and it was locale dependent.
439 2006-03-12  Lars Clausen  <lars@raeder.dk>
441         * installer/win32/dia.nsi: 
442         * doc/en/dia.xml: 
443         * doc/eu/dia.xml: 
444         * doc/pl/dia.xml: 
445         * config.h.win32: 
446         * configure.in: 
447         * NEWS: -pre5
449         * objects/UML/constraint.c (constraint_update_data): 
450         * objects/UML/message.c (message_update_data): 
451         * objects/UML/implements.c (implements_update_data): 
452         * objects/SADT/annotation.c (annotation_update_data): 
453         * objects/Jackson/phenomenon.c (message_update_data): 
454         * objects/network/wanlink.c (wanlink_update_data): 
455         * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
457         * objects/standard/line.c: 
458         * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
459         functionality for connections.
461 2006-03-11  Lars Clausen  <lars@raeder.dk>
463         * lib/diagdkrenderer.c (draw_object): 
464         * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
465         in the non-interactive rendering.
467         * dia.spec:
468         * installer/rpm/dia.spec:
469         * installer/rpm/README:
470         Moving dia.spec to installer directory, where distribution
471         maintainers can keep their own copies.
473         * objects/UML/uml.h: 
474         * objects/UML/class.h: 
475         * objects/UML/umloperation.c: 
476         * objects/UML/class.c: 
477         Preparations to fix bug #334037: Clean away the Lisp-like
478         constructs confusing the issue.
480 2006-03-10  Lars Clausen  <lars@raeder.dk>
482         * lib/object.c: Don't compare floats with ==, even in sanity checks.
484 2006-03-09  Lars Clausen  <lars@raeder.dk>
486         * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
487         reading, depth reading, and points reading.  Thanks to 
488         
489         * COPYING: Added copyright info again.
491 2006-03-09  Steffen Macke <sdteffen@gmail.com>
493         * installer/win32/dia.nsi: don't uninstall old version; overwrite
494         existing files
496 2006-03-08  Steffen Macke <sdteffen@gmail.com>
498         * installer/Makefile.am:
499         * installer/win32/Makefile.am:
500         * installer/win32/locale/Makefile.am: Making sure that the installer
501         sources are included in the dia source distribution
502         * installer/win32/dia.nsi: Don't include makefiles in installer;
503         Add uninstaller link to start menu (bug #332650); added commandline 
504         option GTKBIN to specify GTK installation directory (fixes bug #332595)
505         * installer/win32/dia-diagram.ico:
506         * installer/win32/dia-header.bmp:
507         * installer/win32/dia-install.ico:
508         * installer/win32/dia-intro.bmp:
509         * installer/win32/dia-uninstall.ico:
510         * installer/win32/dia.nsi:
511         * installer/win32/langmacros.nsh:
512         * installer/win32/locale/english.nsh:
513         * installer/win32/locale/german.nsh: Added files to build the win32
514         installer using NSIS (http://nsis.sourceforge.net)
515         
516 2006-03-06  Lars Clausen  <larsrc@raeder.dk>
518         * doc/en/dia.xml: 
519         * doc/pl/dia.xml: 
520         * config.h.win32: 
521         * configure.in: 
522         * NEWS: -pre4
524         * samples/TexChars.dia: Added sample of the escaped chars for TeX.
525         
526         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
527         Changing escape of \, [, and ] to something that works.  $ is
528         fine.  Fixes parts of 333193.
530 2006-03-05  Lars Clausen  <larsrc@raeder.dk>
532         * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
534         * lib/orth_conn.c (orthconn_update_data): 
535         * app/diagram.c: Removing debug info.
537         * app/object_ops.c (object_find_connectpoint_display): Don't
538         magnet to parents.
540 2006-02-26  Hans Breuer  <hans@breuer.org>
542         * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
543         * plug-ins/python/python.c : if set use it to find python-startup.py
544         (bug #332599, Torben H. Nielsen)
546         * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
547         my test code]. Really closes #332177, thanks Mateus César Gröess.
549 2006-02-26  Lars Clausen  <lars@raeder.dk>
551         * doc/en/dia.xml: 
552         * doc/pl/dia.xml: 
553         * config.h.win32: 
554         * configure.in: 
555         * NEWS: -pre3
557         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
558         of element_width and element_height until constraints can be 
559         properly checked.  Bug #328200
561         * dia.spec (Requires): Updated GTK requirements.
563 2006-02-25  Lars Clausen  <lars@raeder.dk>
565         * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
566         other dynamic menus have proper translation.
568         * lib/widgets.c (dia_dynamic_menu_create_string_item): 
569         * app/interface.c (cmp_names): 
570         * app/sheets.c (sheets_optionmenu_create): 
571         * lib/sheet.c (load_register_sheet): Using C locale for sheet
572         names internally, translating on display instead.  Also sorting
573         by gettext order explicitly.  Bug #328570.
575 2006-02-25  Hans Breuer  <hans@breuer.org>
577         * app/interface.c(get_sheet_by_name) : be more tolerant about 
578         localization of the sheet name. ( Steffen Macke, #332070 )
579         
580         * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
581         in any case. In contrast to X11/*nix displays are not optional on
582         windoze. And we need some help of gtk to render text to bitmaps.
583         ( Rob McDonald, bug #332177 )
584         
585 2006-02-21  Lars Clausen  <lars@raeder.dk>
587         * NEWS: 
588         * doc/pl/dia.xml: 
589         * doc/en/dia.xml: 
590         * configure.in: 
591         * config.h.win32: Update to -pre2.
593         * lib/beziershape.c (add_handles): Fixing CP pos calculation for
594         adding new CP's.  Fixes bug #331557.
596 2006-02-20  Lars Clausen  <lars@raeder.dk>
598         * lib/diarenderer.c (find_center_point): Better handling of some
599         degenerate cases.
600         (draw_arc_with_arrows): Draw line in all cases.  Doesn't handle
601         the truly degenerate cases well enough yet, but at least doesn't
602         break on common cases.  Probably need to do something special for
603         arcs with start and end point the same.  Improves but does not
604         entirely fix bug #331372.
606 2006-02-20  Hans Breuer  <hans@breuer.org>
608         * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
609         
610 2006-02-18  Hans Breuer  <hans@breuer.org>
612         * plug-ins/metapost/render_metapost.c : text position gives the
613         baseline neither top nor bottom. ( Rob McDonald, #331491 )
615         * plug-ins/wmf/wmf.cpp : finally respecting the print margins
616         ( Rob McDonald, #331371 )
617         * plug-ins/wmf/wmf_gdi.h : some more constants not useful 
618         without a GDI printer (driver)
619         
620 2006-02-17  Hans Breuer  <hans@breuer.org>
622         * plug-ins/metapost/render_metapost.c(draw_string) : dont query
623         the font for it's height but use the 'height' parameter passed
624         in. Close enough to the desired size - and independent of zoom -
625         to close bug #331489 (Rob McDonald)
626         
627 2006-02-12  Lars Clausen  <lars@raeder.dk>
629         * NEWS: 
630         * dia.spec: 
631         * doc/pl/dia.xml: 
632         * doc/en/dia.xml: 
633         * configure.in: 
634         * config.h.win32: Updates for version 0.95-pre1.
636 2006-02-12  Hans Breuer  <hans@breuer.org>
638         * app/makefile.msc : build three components dia.exe (console
639         application), diaw.exe (windows application) and dia-app.dll
640         containing almost all of Dia's application shared between
641         the two executables
642         * app/main.c app/winmain.c app/app_procs.c app/dia.def : some 
643         refactoring to accomplish the new dependency layout
644         * objects/makefile.msc plug-ins/python/makefile.msc : need to
645         link dia-app.lib now - if at all depending on app/*
646         
647 2006-02-11  Hans Breuer  <hans@breuer.org>
649         * makefile.msc : nmake -f makefile.msc just compiles now
650         * app/makefile.msc lib/makefile.msc : make not using FT2
651         on win32 the default (works around bug #150813 by diabaling it)
652         * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
653         $(CC) command line. It isn't understood by newer versions of cl.
654         
655         * app/authors.h : reflect the recent maintainers change
656         
657         * app/display.c app/load_save.c : removed debug spew
658         
659         * app/winmain.c : improved redirection
660         
661 2006-02-05  Hans Breuer  <hans@breuer.org>
663         * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead 
664         since 0.94. Fix somne left-overs, also properly disable the duplicate
665         menu entry
667         * po/POTFILES.in : added objects/network/wanlink.c
669 2006-02-05  Hans Breuer  <hans@breuer.org>
671         * lib/dialibartrenderer.c(renderer_finalize) : dont unref 
672         parent_instance.font here. It will be done in DiaRenderer::finalize()
673         Just another reason for crashing at diagram close with libart 
674         renderer involved ...
675         
676 2006-02-04  Hans Breuer  <hans@breuer.org>
678         * objects/standard/image.c : added mainpoint, patch from
679         Torben H. Nielsen fixing bug #329603
681         * app/layer_widget.c : avoid writing to Layer::connectable for a
682         diagram possibly already gone. Fixes bug #329096.
684         * lib/persitence.c(persistence_load) : dont leak filename
685         in case of not existing file
687         Code review via regex "[^_l>p](malloc|free|realloc)\("
688         * objects/fs/function.c : what's g_strdup() must be g_free()'d
689         * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
690         * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
692         * app/filedlg.c(file_save_as_response_callback) : before destroying 
693         the save as dialog we need to drop the dialogs diagram reference.
694         Fixes behaviour described in bug #123225#c7
696         * app/interface.c(get_sheet_names) : need to sort sheets by their 
697         display name to really fix bug #160101.
698         
699         * objects/UML/association.c : dont leak the role_name calculated
700         with visibility attribute, use g_strdup_printf() instead of strcat().
701         
702         * configure.in : fix typo in error message
704         * lib/object.c : remove duplicated prototype
705         * lib/element.c : element_update_connections_rectangle() assumes nine
706         connection points, i.e. requires 'mainpoint'. g_assert() for this.
707         
708 2006-02-03  Hans Breuer  <hans@breuer.org>
710         * objects/network/bus.c : allow to tint it. Patch from
711         Torben H. Nielsen, closes bug #328580.
712         * objects/network/wanlink.c : allow to tint this as well.
713         
714 2006-01-29  Hans Breuer  <hans@breuer.org>
716         * app/render_libart.c(draw_line) : make setting the pixel side-effect
717         free; account for it in now (less) magic increments. Fixes bug #312147
719 2006-01-28  Hans Breuer  <hans@breuer.org>
721         * po/checktrans.py : make it work with recent pyxml (unknown url type)
722         * po/AADL.sheet.in : remove duplicated _description
723         => translation report works again
725         * app/display.c : revert back to "_Discard Changes" to avoid
726         accelerator clash. Also gtk_button_new_with_mnemonic() to
727         'expand' the accelerator.
729         * lib/dia_svg.c(dia_svg_style_init) : need to initialize
730         linecap, linejoin, linestyle to avoid invalid settings.
731         (Nguyen Thai Ngoc Duy, bug #328945)
732         * lib/diagdkrenderer.c : add a place fro breakpoint to 
733         detect invalid mode
735         * lib/diarenderer.c(setfont) : if we get passed in the
736         same font it must be ref'd before unref.
738         * lib/text.c(set_string) : don't eat the trailing new-line
739         Fixes bug #165092
740         
741         * app/app_procs.c app/display.c app/filedlg.c 
742         attempt to provide more HIG compliant dialogs. Patch from
743         Nguyen Thai Ngoc Duy, part of bug #138183
744         
745         * app/recent_files.c(recent_file_history_clear_menu) : instead of 
746         messing with GtkMenuShell::children and gtk_widget_destroy() just 
747         use gtk_container_remove. Avoids memory corruption causing the
748         most 'random' crashes recently.
749         
750         * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL 
751         cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the 
752         TextAttributes - not some subset. Fixes bug #327701
753         * objects/UML/implements.c objects/UML/generalization.c
754           objects/UML/constraint.c objects/UML/object.c
755           objects/UML/large_package.c objects/UML/realizes.c : same here.
756         * objects/UML/dependency.c : same here. Also draw the "Name" with the
757         given color, not only the Stereotype.
758         * objects/UML/class.c : same here. But we also need to restore 
759         explicit restore "text_color" for the load case.
760         
761 2006-01-27  Hans Breuer  <hans@breuer.org>
763         * configure.in : error out if GLib/GTK+ version is lower than required
765         * app/filedlg.c lib/widgets.c : more default responses. Patch 
766         from Nguyen Thai Ngoc Duy, part of bug #138183
767         
768         * NEWS : Main point feature correction. The line is supposed to
769         start at the border of the object not the bounding box.
770         
771         * app/commands.c : respect difference between documenters and
772         translators and show both in about dialog. Closes bug #328711.
773         
774         * app/interface.c : instead of g_warning for missing shape icon
775         but use message_warning and show the 'missing' icon
776         
777         * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
778         not match pango_win32_get_context(). Use gdk_pango_get_context ().
779         Also removed my special win32-modified-pango code for draw_string()
780         without the help of gdk.
782         * Makefile.am : include MAINTAINERS file in tarball
784         * lib/conectionpoint.h : removed double include of "geometry.h"
785         
786 2006-01-22  Hans Breuer  <hans@breuer.org>
788         * app/splash.c app/commands.c : dont share the logo and finally leak
789         it. Instead both place load and unref the logo themself. 
790         Also unbreak GNOME case.
792         * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
793         or GNOME specific one. 120 lines less code and more standard.
794         * configure.in : require GTK+ >= 2.6
796         * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
797         make GtkTypeInfo static const as usual elsewhere
798         
799         * app/recent_files.c : it almost certainly is an error to ignore
800         the return value of g_list_remove_link()
801         
802         * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
803           lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
804           lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
805           lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
806           objects/UML/uml.h : documentation fixes
807         
808         * lib/object.h lib/diagramdata.h : avoid circular inclusion
809         * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
810           lib/properties.h lib/sheet.h lib/diamenu.h
811         : dont include "object.h", "diatypes.h" is enough. 
812         Rule of thumb: only headers declaring an inheritant of DiaObject
813         should include "object.h"
814         * lib/diarenderer.h : include "font.h" not strictly needed by 
815         this header, but needed in almost any plug-in/
816         * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
817           app/export_png.c app/interface.c app/load_save.c app/sheets.c
818           app/sheets_dialog.c app/sheets_dialog_callbacks.c 
819           lib/diagdkrenderer.c lib/object.c lib/propobject.c
820           lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
821           plug-ins/svg/render_svg.c
822           : some .c files now need to include "object.h" or <gtk/gtk.h>
823         or e.g. "intl.h" direct, formerly dargged in indirectly
824         * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
825         
826 2006-01-21  Hans Breuer  <hans@breuer.org>
828         * lib/connection.c lib/connection.h lib/connectionpoint.h
829           lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
830           lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
831           lib/object.c lib/object.h : documentation tweaking
833         * objects/UML/class_dialog.c(attributes_create_page,
834         operations_create_page) : dont connect
835         to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
836         g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
837         (This was a leftover of introducing the GtkTextView instead of GtkEntry)
839         * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
840         Introduce 'comment_tagging' switch which allows to hide the rendering
841         {documentation = } Maybe a choice between ugliness and non-standard.
842         Fixes bug #326214. (Unrelated: started to adapt casing of variables
843         to Dia's common coding style)
844                 
845         * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
846           lib/proplist.c : fixed pdtpp_default()
847           lib/propobject.c : correctly reflect is_default 
848         * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
849         PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
850         
851         * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
852         widget in defaults dialog
854         * app/display.c(initialize_display_widgets) : also append the Input 
855         Methods menu to the diagram menubar. Now fixes bug #327862.
857         * config.h.win32 : #undef LOCALEDIR
858         * app/app_procs.c : runtime calculation of localedir. It now is
859         $(executable_dir)/../locale. Should help fix bug #309763
860         
861         * sheets/AADL.sheet.in : remove left over xml:lang tag. 
862         ( Nguyen Thai Ngoc Duy, bug #327519)
864         * lib/dialibartrenderer.c : make text rendering work without
865         PangoFT2 and PangoWin32
868 2006-01-18  Lars Clausen  <lars@raeder.dk>
870         * objects/UML/class.h: Enabling UML class mainpoint after failure
871         to break it.
873         * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
874         1.
876 2006-01-14  Hans Breuer  <hans@breuer.org>
878         * app/paginate_psprint.c : ensure we are not producing pages for
879         epsilon. Floating imprecision is fun. Fixes bug #133856.
880         * app/paginate_gdiprint.cpp : same here.
882         * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
883         found the nice samples from bug #156171 it was quite simple to
884         confirm that the y value need indeed to be inverted. Fixes bug #304974.
885         Also special case strings starting with \tex - i.e. dont escape them -
886         to keep the use-case of direct tex input.
887         
888         * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
891 2006-01-14  Hans Breuer  <hans@breuer.org>
893         * samples/Self/umlclass.dia : (new file) documenting part of the
894         object relations of UMLClass. Also good for testing connections.
895         
896         * lib/debug.c : replace wrong call to vprintf() - missing file
897         descriptor - with the more appropriate g_vprintf(). Thus 
898         dia_assert_true() does not smash the stack anymore on win32.
899         
900         * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
901           objects/UML/umlattribute.c objects/UML/umloperation.c :
902         reverted the memory managment of UMLAttribute/UMLOperation's 
903         ConnectionPoint(s) back to how it was up until 0.94. This finally
904         makes the UMLClass work again including undo/redo support. Fixes
905         bug #314153 and en passant bug #326453.
906         
907 2005-01-12  Lars Clausen  <lars@raeder.dk>
909         * objects/UML/umlattribute.c: 
910         * objects/UML/class_dialog.c: Better way of handling
911         connectionpoints: Don't copy them, just reference them.  Finally
912         fixes bug #314153 (not quite the pi bug:)
914         * app/menus.c (display_menu_items): 
915         * app/filedlg.c (file_open_response_callback): 
916         * app/display.[ch] (copy_display): 
917         * app/commands.[ch] (view_clone_view_callback): 
918         Added functionality to clone display.  Preparation for storing
919         display info in diagram files (not happening this version, though).
921         * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
922         users pointing at dia-installer.
924 2006-01-08  Hans Breuer  <hans@breuer.org>
926         * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
927         (Narcelio Filho, #326075)
929         * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
930         plug-ins should not depend on app/* and it even breaks 'make distcheck'.
931         * objects/AADL/Makefile.am : added edit_port_declaration.h
932         * app/Makefile.am : added diaconv.c to EXTRA_DIST
933         => 'make distcheck' passes again.
935         * configure.in : use some more of gcc's useful warnings
937         * lib/geometry.h : removed unused functions just producing warnings
938         [sometimes it's good to read compiler warnings]
939         * plug-ins/cairo/diacairo.c : somehow a function call got lost
940         (left-hand operand of comma expression has no effect)
941         * plug-ins/metapost/render_metapost.c : dia_message_filename()
942         wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
943         from incompatible pointer type)
946 2006-01-07  Hans Breuer  <hans@breuer.org>
948         * objects/custom/shape_info.c(parse_path) : handle the case of 
949         invalid path data more gracefully, i.e. show a warning instead 
950         of crashing later on.
951         * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
952         
953         * configure.in sheets/Makefile.am shapes/Gane_and_Sarson 
954           shapes/Makefile.am : added Gane & Sarson shapes 
955         (Nick Moore, #319544)
957         * objects/makefile.msc : building AADL on win32
959 2006-01-06  Hans Breuer  <hans@breuer.org>
961         * objects/AADL/aadl.h : avoid redefinition warnings by #undef
962         min, #undef max before local definitions
963         * objects/AADL/aadl.h : more prototypes
964         * objects/AADL/aadltext.c : for C89 declarations must be at the
965         beginning of a block. And Dia *must* be compileable with C89.
967         * objects/AADL/** objects/Makefile.am sheets/Makefile.am 
968         configure.in : AADL plug-in from Pierre Duquesne. See
969         http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
970         for more information
971         * sheets/AADL.sheet.in : from the above patch but modified 
972         to become translatable like the other sheet files. That is: the
973         french translation got temporary removed cause it does not belong here.
975         * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
977         * app/app_procs.c app/diaconv.c : get rid of run-on sentences
978         (Adam Weinberger, bug #325567)
979         
980         * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
981         and change some other to use <control><alt>. They collide with GTK's 
982         Unicode input feature. Fixes bug #320495. For rationale see: 
983         http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
984         
985         * app/display.c : pay attention to g_warnings() [should always run
986         with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
987         actually is a menu bar.
988         
989         * lib/diarenderer.c : the righthand calculation accidentially broke
990         some arcs direction. Should be fixed again.
991         
992 2006-01-02  Hans Breuer  <hans@breuer.org>
994         * app/display.c(new_display) : also append the Input Methods menu to 
995         the diagram menubar. Fixes bug #308576.
997         * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
998         freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
1000         * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to 
1001         their localized name (with g_utf8_collate). Thus not relying on the 
1002         capabilities of the C libraries strcmp(). Fixes bug #160101.
1004         * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
1005         point and width from the (arrow-)corrected new points. Otherwise a 
1006         whole new wrong arc may emerge. Fixes bug #312641.
1007         
1008 2006-01-01  Hans Breuer  <hans@breuer.org>
1010         * objects/custom/custom_object.c(cutom_update_data) : depending 
1011         on the handle moving let one scale (x or y) take precedence. 
1012         (bug #308515, Eric Deplagne)
1013         
1014         * objects/UML/class.c : only perform the attributes check with
1015         attributes visible to ged rid of false warnings
1016         * objects/UML/class_dialog.c : need to setup Connection::object
1017         after uml_attribute_new() and uml_operation_new(), again less
1018         warnings but bug #314153 still not fixed.
1020         * NEWS : updated
1022         * plug-ins/python/diasvg.py : more correct svg by also writing 
1023         xmlns="http://www.w3.org/200/svg"
1025         * plug-ins/python/dot.py : skip unconnected connection lines
1026         * plug-ins/python/Makefile.am : added dot.py
1028         * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
1029         typos in comments
1031 2005-12-31  Hans Breuer  <hans@breuer.org>
1033         * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the 
1034         caching of UMLClass::attributes_strings, operations_strings, 
1035         templates_strings.
1036         It was broken by the recent code restructuring in bug #303744 and
1037         - if necessary at all - nowadays it should be done on the 
1038         UMLAttribute, UMLOperation, UMLFormalParameter level anyway. 
1039         A small, much needed simplification of the code.
1041 2005-12-30  Hans Breuer  <hans@breuer.org>
1043         * objects/UML/class.c : Patch from Dave Klotzbach
1044         fixes crash bug #325151
1046         * app/app_procs.c : add command line parameter --nonew to allow
1047         avoiding the empty start-up diagram
1048         Also give a hint on where the object-libs were missing.
1049         Finally work around a misbehaviour upstreamm :
1050         g_option_context_parse() returning FALSE but not setting error.
1052         * app/commands.c app/app_diagram_tree.c app/interface.c :
1053         Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
1054         http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
1055         
1056         * lib/widgets.c : image file selection finally ported to the new
1057         gtk file chooser. Fixes bug #309383
1059 2005-12-28  Hans Breuer  <hans@breuer.org>
1061         * app/commands.c(file_new_callback) : convert to filename encoding before
1062         passing to new_diagram(), fixes bug #322400
1063         
1064         * app/interface.c(create_display_shell) : don't clip width on screen 
1065         height - now commited. Also lazy creation of tooltips.
1066         
1067         * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1068         
1069 2005-12-27  Hans Breuer  <hans@breuer.org>
1071         * app/diapsft2renderer.c(draw_bezier_outline) : only call
1072         FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1073         Prefers no text output over crashing for bug #144212
1075         * app/interface.c : removed superfluous call to dia_canvas_set_size().
1076         Suggested by Roland Stigge, fixes bug #148149.
1078         * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1079         DXF. It is not supported at all. Fixes bug #322101
1081         * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1082         define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1085 2005-12-27  Hans Breuer  <hans@breuer.org>
1087         * app/navigation.c : protect on_da_button_release_event() against being
1088         called twice. Also only popdown the navigation window after the first 
1089         draw (reusing nav->is_first_expose). Fixes bug #151696
1090         
1091         * app/interface.c(create_display_shell): don't clip width on screen height, 
1092         but height
1094         * lib/plug-ins.c : fixed typo in comment
1095         
1096         * lib/libdia.def : updated externals
1097         * lib/makefile.msc : build debug.obj
1099         * plug-ins/makefile.msc : building pgf in the right alphabetical order
1100         * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1101         
1102 2005-12-08  Lars Clausen  <lars@raeder.dk>
1104         * app/authors.h: 
1105         * plug-ins/pgf/pgf.c: 
1106         * plug-ins/pgf/render_pgf.[ch]: 
1107         * plug-ins/pgf/Makefile.am: 
1108         * plug-ins/Makefile.msc: 
1109         * plug-ins/Makefile.am (SUBDIRS): 
1110         * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1111         support for PGF output for including in (La)TeX documents that
1112         allows PDF generation.
1114         * samples/render-test.dia: Added samples of text in different
1115         sizes, standard fonts and styles with size markers.
1117 2005-12-04  Lars Clausen  <lars@raeder.dk>
1119         * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1120         (BUILT_SOURCES): Added marshal files.
1122 2005-12-03  Lars Clausen  <lars@raeder.dk>
1124         * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1125         about $(srcdir) and confusing everybody.
1127         * app/undo.c:
1128         * lib/diagramdata.c:
1129         * lib/diagramdata.h:
1130         * lib/diamarshal.list:
1131         * plug-ins/python/pydia-diagram.c:
1132         * plug-ins/python/pydia-diagramdata.c:
1133         * plug-ins/python/python-startup.py: Patch from David Johansson
1134         <david.lgj@gmail.com>: Add signals emitted when objects are
1135         inserted or removed.
1137 2005-11-13  Lars Clausen  <lars@raeder.dk>
1139         * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1140         (small) buffer overflow by using g_strdup_printf instead of sprintf.
1142 2005-11-09  Lars Clausen  <lars@raeder.dk>
1144         * app/app_procs.c: 
1145         * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1146         when reaching the statement is a bug.  Using g_critical and exit() for
1147         fatally wrong inputs.
1149         * objects/UML/uml.c: 
1150         * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1151         Klotzbach): Fixes template rendering and converts home-brew inline
1152         doc format to javadoc.  Doesn't yet fix bug #320934, but turns it
1153         into a dup.
1155 2005-11-07  Lars Clausen  <lars@raeder.dk>
1157         * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1158         box' since several objects have problems of using bounding box in
1159         different ways (see bug #300055).  For now, enclosing box ==
1160         bounding box, but over time objects will learn to expand the
1161         bounding box to include things only rendered interactively.
1163         * app/modify_tool.c (modify_motion): Make sure highlight is reset
1164         when moving between overlapping objects.
1166         * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1167         diagram after toggling to make red X's come and go.
1169         * lib/font.c: #ifdef'd out layout cache for bug #307320.  Define
1170         it if you need faster rendering and aren't afraid of crashbugs:)
1172         * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1173         (dave Klotzbach):  Fixes null pointer problems in free function.
1175         * objects/UML/class.c
1176         * objects/UML/class.h
1177         * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1178         (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1179         and allow multi-line comments. Ugly as hell, but standard.  Time
1180         for a 'Strict UML' option?  Fixes bug #303744.
1181         
1182         * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1183         entry, exit and do descriptions to a state object.  Fixes bug #65434.
1185 2005-11-03  Lars Clausen  <lars@raeder.dk>
1187         * lib/arrows.c:
1188         * lib/attributes.c:
1189         * lib/autoroute.c:
1190         * lib/bezier_conn.c:
1191         * lib/boundingbox.c:
1192         * lib/color.c:
1193         * lib/connection.c:
1194         * lib/connectionpoint.c:
1195         * lib/dia_dirs.c:
1196         * lib/dia_image.c:
1197         * lib/dia_svg.c:
1198         * lib/dia_xml.c:
1199         * lib/diaarrowchooser.c:
1200         * lib/diaerror.c:
1201         * lib/diagdkrenderer.c:
1202         * lib/diagramdata.c:
1203         * lib/element.c:
1204         * lib/object.c:
1205         * lib/object.h:
1206         * lib/parent.c:
1207         Added documentation java-doc style.  Also a few trivial cleanups.
1208         
1209 2005-10-13  Lars Clausen  <lars@raeder.dk>
1211         * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1212         in macros.
1214         * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1216         * lib/Makefile.am:
1217         * lib/debug.[ch]:
1218         * lib/object.[ch]: 
1219         * objects/UML/class.[ch]: 
1220         * objects/UML/uml.h: 
1221         * objects/UML/umlattribute.c: 
1222         * objects/UML/umloperation.c: 
1223         * objects/UML/class_dialog.c: 
1224         Rework of the UML class attribute/operation handling.  Now doesn't
1225         copy connection points into the dialog data, but only the "flat"
1226         data.  As part of debugging made sanity check functionality.
1227         Currently still dies when deleting an attribute/operation that has
1228         a connection to it.
1230 2005-10-09  Hans Breuer  <hans@breuer.org>
1232         * lib/properties.h : prefer american spelling of colo(u)r for
1233         user visible strings - i.e. to be translated ones.
1234         * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1235                                         ^
1236         * po/*.po : updated (by 'make distcheck')
1238 2005-10-09  Hans Breuer  <hans@breuer.org>
1240         * app/display.c : allow !"toolbox on top" without restart.
1241         (Chris Hellberg, bug #310702)
1243 2005-10-09  Hans Breuer  <hans@breuer.org>
1245         * lib/arrows.c : patch from Radek Krahl fixing the blanking
1246         of two arrowheads, bug #310157
1248 2005-10-08  Hans Breuer  <hans@breuer.org>
1250         * plug-ins/python/group_props.py : show a descriptive text instead of an 
1251         empty table if there are no common properties to change. Fixes bug #314432
1253 2005-10-08  Hans Breuer  <hans@breuer.org>
1255         * objects/UML/transition.c : inverted default direction of
1256         the direction. Patch from Peter Allin, fixes bug #318049
1257         [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1259 2005-10-08  Hans Breuer  <hans@breuer.org>
1261         * app/Makefile.am objects/standard/Makefile.am : match the
1262         referenced icons to the needed. Make 'make distcheck' pass
1263         and thus fixes bug #312152
1265         * objects/standard/textobj.c : no C++ comments please!
1267 2005-10-08  Hans Breuer  <hans@breuer.org>
1269         * objects/standard/textobj.c : preserve the position set on create
1270         [makes e.g. text positioning of diasvg_import.py work]
1272         * plug-ins/python/diasvg_import.py : restrict what eval() can do
1273         with strings from svg files. Fixes the arbitrary code execution from 
1274         bug #317637
1275         
1276         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1277         magnetism. At least they are distinguishable from grid snapping.
1278         * app/makefile.msc app/Makefile.am : use them
1279         
1280         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1281         I also can't reproduce bug #309044 anymore (on win32).
1282         
1283 2005-10-01  Lars Clausen  <lars@raeder.dk>
1285         * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1287         * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1288         pass FILE * as gchar *.
1290         * lib/debug.[ch] (dia_assert_true): Debugging aids.
1292 2005-09-29  Lars Clausen  <lars@raeder.dk>
1294         * objects/UML/class.h: Enabling mainpoints for UML.
1296         * objects/UML/class.c (umlclass_set_props): Make sure to always
1297         realloc connection point list.
1299 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
1301         * configure.in: Added "id" in ALL_LINGUAS line.
1303 2005-09-14  Lars Clausen  <lars@raeder.dk>
1305         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1306         loading.  Fixes bug #315427.
1308 2005-09-11  Hans Breuer  <hans@breuer.org>
1310         * objects/standard/arc.c objects/standard/textobj.c : fix
1311         C99isms, Dia is supposed to compile with C89 like msvc
1313         * app/makefile.msc : use the wrong center-point-magnetism
1314         icons for the win32 build, too.
1316         * plug-ins/python/pydia-error.c : dont crash on C escape
1317         sequences in the error string
1318         * plug-ins/python/pydia-render.c : dont free filename twice
1320         * plug-ins/python/dot.py : start of an exporter to DOT language
1321         which can be processed by www.graphviz.org tools
1323 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1325         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1327 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1329         * configure.in: Added "eu" to ALL_LINGUAS.
1331 2005-09-04  Lars Clausen  <lars@raeder.dk>
1333         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1334         dimensions frame to make ext_attributes work again.
1336         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1337         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1338         global prefs.
1340         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1341         <dooms info ucl ac be>: Add vertical alignment for standard text
1342         object.  This should really be moved into lib/text.c and apply to
1343         all text objects.
1345 2005-09-03  Lars Clausen  <lars@raeder.dk>
1347         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1348         mainpoint when snap-to-objects is not on.
1350         * app/Makefile.am (ICON_PNG_PAIRS): 
1351         Fake icons for snap-to-objects.
1353         * app/commands.[ch]: 
1354         * app/menus.c (menus_get_image_menubar): 
1355         * app/display.[ch]: 
1356         * app/interface.c (create_display_shell): 
1357         * app/create_object.c (create_object_button_release): 
1358         * app/disp_callbacks.c (ddisplay_drop_object): 
1359         * app/object_ops.[ch]: 
1360         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
1361         * app/modify_tool.c (modify_button_release): 
1362         * app/display.[ch]: 
1363         Togglable snap-to-objects, also doesn't snap when moving entire
1364         object.  This should be more reasonable in practical use, and can
1365         be turned off when you want to place your arrows more precisely.
1367 2005-08-06  Hans Breuer  <hans@breuer.org>
1369         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1370         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1371         becomes even more ugly when the user has choosen *not* to build 
1372         the diacairo plug-in. If noone can come up with a very convincing 
1373         reason why it has to be done this way I'll probably go back to 
1374         my original dont-build-at-all approach when this breaks the 
1375         next time.
1377 2005-08-02  Lars Clausen  <lars@raeder.dk>
1379         * objects/standard/arc.c: Patch from Grégoire Dooms
1380         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1381         implementation.  "There is still a small bug when the non
1382         connected end of the arc is very close to the border of the
1383         connected object. I think this is due to rounding errors in the
1384         code for SHIFT-move handle which is reused to trim the arc in
1385         autogap. Also it is not yet possible to have a startgap and an
1386         endgap from/to the same central CP."
1388 2005-07-31  Hans Breuer  <hans@breuer.org>
1390         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
1391         longer for distributions official packages - depend 
1392         on cairo 0.6.0 - fixes bug #307144
1394 2005-07-20  Hans Breuer  <hans@breuer.org>
1396         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1397         which must match PropDescription, that is make it at least compile.
1399 2005-07-19  Hans Breuer  <hans@breuer.org>
1401         * app/diagram.c(new_diagram) : what comes from g_object_new()
1402         MUST NOT be g_free()'d 
1404         * lib/message.h : added dia_message_filename() here as well.
1405         Mainly to not touch all files using. They *all* where using
1406         lib/message.h already! Maybe the implemantation should be moved
1407         to message.c as well cause the function has *nothing* to do
1408         with dynamic filename resolving. It is a wrapper around
1409         g_display_filename() mostly (only?) used for messages ...
1410         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1412 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
1414         * objects/EML/instantiation.c (instantiation_load): 
1415         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
1416         * objects/ER/participation.c (participation_type): 
1417         * objects/FS/flow-ortho.c (orthflow_type): 
1418         * objects/GRAFCET/vector.c (arc_load): 
1419         * objects/standard/zigzagline.c (zigzagline_type): 
1420         * objects/UML/transition.c (transition_load): 
1421         * objects/UML/realizes.c (realizes_load): 
1422         * objects/UML/dependency.c (dependency_load): 
1423         * objects/UML/generalization.c (generalization_type): 
1424         * objects/UML/association.c (association_type): 
1425         * objects/UML/component_feature.c (compfeat_load): 
1426         Make autorouting deafult on except for old diagrams.
1428         * plug-ins/cairo/diacairo.c (export_data): 
1429         * plug-ins/cgm/cgm.c (export_cgm): 
1430         * plug-ins/dxf/dxf-export.c (export_dxf): 
1431         * plug-ins/dxf/dxf-import.c: 
1432         * plug-ins/hpgl/hpgl.c (export_data): 
1433         * plug-ins/metapost/render_metapost.c: 
1434         * plug-ins/pixbuf/pixbuf.c: 
1435         * plug-ins/pstricks/render_pstricks.c: 
1436         * plug-ins/python/pydia-render.c: 
1437         * plug-ins/shape/shape-export.c: 
1438         * plug-ins/svg/render_svg.c: 
1439         * plug-ins/svg/svg-import.c: 
1440         * plug-ins/wpg/wpg.c 
1441         * plug-ins/xfig/xfig-export.c: 
1442         * plug-ins/xfig/xfig-import.c: 
1443         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1444         UTF-8 in message boxes.
1446 2005-07-18  Lars Clausen  <lars@raeder.dk>
1448         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1449         to have their dimensions specified in properties.  Still needs to
1450         have proper update when setting properties cause constraint changes.
1452         * app/preferences.c (update_floating_toolbox): Allow
1453         toolbox_on_top setting to happen at once.
1455         * app/diagram.c
1456         * app/filedlg.c
1457         * app/load_save.c
1458         * app/render_eps.c
1459         * app/sheets_dialog_callbacks.c
1460         * lib/dia_dirs.c
1461         * lib/dia_dirs.h
1462         * lib/dia_xml.c
1463         * lib/diarenderer.c
1464         * lib/element.h
1465         * lib/object_defaults.c:
1466         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1467         for displaying in messages - better than crashing!  Mostly fixes
1468         #310087.
1469         
1470         * objects/UML/class.c:  Save normal_font_height under the same
1471         name it gets loaded as.  Fixes bug #310515.
1473         * doc/en/authors.xml
1474         * doc/en/usage-customization.xml
1475         * doc/en/usage-objects-special.xml
1476         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
1477         #308315.
1479 2005-07-17  Lars Clausen  <lars@raeder.dk>
1481         * doc/en/usage-customization.xml: 
1482         * doc/en/usage-objects.xml: 
1483         * doc/en/authors.xml: 
1484         * doc/en/usage-objects-special.xml: Applied patch from
1485         stigge@antcom.de (Roland Stigge):  Diverse typos and
1486         misencodings.  Fixes bug #308315.
1488         * objects/UML/class.c (umlclass_save): Patch from
1489         i.pilcher@comcast.net: Save normal font height under correct name
1490         to reload it.  Fixes bug #310515.
1492 2005-07-10  Hans Breuer  <hans@breuer.org>
1494         * app/connectionpoint_ops.c app/object_ops.c : make the
1495         'whole object' connection point only center point again. 
1496         That is: it is visible and far less magnetic. Only the
1497         line gap handling make it special. For me this probably
1498         fixes bug #303301
1500         * lib/neworth_conn.c : apply the same as for bug #173031.
1501         This OrthConn fork got broken as well. Fixes bug #309381
1503         * app/makefile.msc objects/makefile.msc : adapt to icon changes
1505         * app/interface.c app/diagram_tree.c : a char** is still not 
1506         a char* and the win32 build is configured to error on 
1507         sloppiness like this
1509         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1511 2005-07-10  Hans Breuer  <hans@breuer.org>
1513         [
1514           Take part in the toolbox icon redesign context! If you want to 
1515           make them really prettier, please keep the following in mind :
1516           - the size *must* be 22x22 otherwise button reflow will get broken.
1517             Or you need to change about 800 icons at once.
1518           - one important part of Dia are control points, so maybe the icons
1519             should reflect that. (IMO gathering random icons form other 
1520             apps wont work)
1521           - the icons should at least look consistent in their group
1522         ]
1524         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1525         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1527         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1528         * objects/standard/pixmap/* : added arc.png beziergon.png 
1529         bezierline.png box.png ellipse.png image.png line.png polygon.png 
1530         polyline.png text.png zigzagline.png
1531         * objects/standard/Makefile.am : use the new icon set including
1532         text and arc ...
1534         * app/interface.c : remove the "will probably crash" debug spew
1536 2005-07-09  Lars Clausen  <lars@raeder.dk>
1538         * objects/standard/pixmaps/*.png:
1539         * objects/standard/Makefile.am:
1540         * objects/standard/*.c:
1541         * app/interface.c: 
1542         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1543         new icons. [Slightly belated entry]
1545 2005-07-03  Hans Breuer  <hans@breuer.org>
1547         * app/diagram_tree.c : dont leak display name
1548         * app/app_procs.c : dont leak GOptionContext
1549         * app/prop_widgets.c(frame_beginprop_get_widget) : 
1550         Gtk api still not eating strings ...
1552         * objects/UML/class.c() : don't load properties once more 
1553         which are already loaded by StdProps. In case of strings 
1554         (data_string) it has even produced leaks.
1556         * app/paginate_psprint.c app/diagram.[hc] : the last
1557         of the related dialogs is gone and with it the 
1558         misconception of destroying widgets from 
1559         diagram::finalize()
1560         * app/display.c : ensure the diagram is still threre
1561         when we remove the display from it's list
1563 2005-07-01  Hans Breuer  <hans@breuer.org>
1565         * lib/widgets.c(dia_color_selector_more_callback): dont 
1566         free old_color twice
1568         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1569         option. Thus linestyles can be preserved on export - at 
1570         least on NT based systems.
1572         * NEWS : clarify the wmf outside of windows issue
1574         * app/modify_too.c : fix C99ism
1576         * objects/standard/arc.c : debug spew optional at compile time
1578 2005-06-26  Hans Breuer  <hans@breuer.org>
1580         [ Cyrille would call it: warningectomy :-]
1582         * lib/font.c app/create_object.c : `...' might be used uninitialized
1583         in this function. Yes they were.
1584         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
1585         uninitialized in this function. Yes it was with textedit_activate_object()
1586         Also some static correctness.
1587         * lib/diarenderer.c:678: warning: no previous prototype for 
1588         `calculate_min_radius'. Made static.
1589         * lib/dia_svg.c : ptr is a gchar *
1590         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1591         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1592         * app/app_procs.c : confirm warning and make dump_dependencies() static
1593         * app/autosave.c : #if 0'd old stuff
1594         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1595         * 
1596         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1597           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1598           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1599           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1600           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1601           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
1602           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1603           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
1604         removed unused variables and functions
1605         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1606           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
1607         neither 'missing braces around initializer' nor 'initialization from 
1608         incompatible pointer type'
1609         * objects/UML/class_dialog.c : more static
1610         * app/interface.c : static and almost const correctness and some
1611         less unitialized variables.
1612         * app/diapsft2renderer.c : use (int) casts like the original 
1613         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1614         * app/render_gdk.c: stop assignment from incompatible pointer type,
1615         make member functions match the prototype.
1616         * app/render_libart.c : Dito. Also stop caching the copy_gc in
1617         a static variable. Otherwise it finally leaks and also may cause 
1618         BadMatch with changing windows
1619         => warning count down from about 250 to about 60, one or two hand full 
1620            crash bugs less.
1622 2005-06-26  Hans Breuer  <hans@breuer.org>
1624         * lib/libdia.def : added dia_font_get_description, missing
1625         from my last commit
1627         * app/app_procs.c : use png_get_header_ver(NULL), that is:
1628         prefer function call over exported variable to get the 
1629         runtime version of libpng
1631 2005-06-19  Hans Breuer  <hans@breuer.org>
1633         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1634         as suggested by Roland Stigge, bug #308310
1636 2005-06-19  Hans Breuer  <hans@breuer.org>
1638         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
1639         called anymore
1641 2005-06-18  Hans Breuer  <hans@breuer.org>
1643         * NEWS : mention new file dialog
1645         [plugged remaining leaks from bug #142669]
1646         * lib/prop_attr.c(fontprop_free) : not only unref the font
1647         but free the property itself, too. 
1648         * app/diagram_tree.c(create_diagram_children): remember the
1649         original list start to not only free the last element 
1651         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
1652         but not used. Here it meant a potentially huge leak.
1654 2005-06-18  Hans Breuer  <hans@breuer.org>
1656         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
1657         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
1658         for others, too. ( Roland Stigge, bug #144527 )
1660 2005-06-18  Hans Breuer  <hans@breuer.org>
1662         * plug-ins/wmf/Makefile.am : prevent installation. It 
1663         doesn't do anything useful on *NIX and even seems to be
1664         linked wrong by gcc (or me;). Fixes bug #172830 
1666 2005-06-18  Hans Breuer  <hans@breuer.org>
1668         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1669           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1670         in function declarations. 'f();' for a function without parameters is
1671         a C++ism. Though I can't get any of my compilers to warn about it.
1672         Finally fixes bug #142663.
1674 2005-06-18  Hans Breuer  <hans@breuer.org>
1676         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1677           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1678         in function declarations. 'f();' for a function without parameters is
1679         a C++ism. Though I can't get any of my compilers to warn about it.
1680         Finally fixes the rest of bug #142663.
1682 2005-06-18  Hans Breuer  <hans@breuer.org>
1684         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
1685         changes but doesn't hurt anyway. See bug #162034 
1686         * app/diapsft2renderer.c app/modify_tool.c 
1687           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
1688         instead of messing with internals
1689         * app/display.c : give interactive renderers more begin/end render. 
1690         It is guaranteed that the scale wont change between these.
1692 2005-06-18  Hans Breuer  <hans@breuer.org>
1694         * app/app_procs.c : const correctness for stderr_message_internal
1695         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
1696         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1697         * app/disp_callbacks.c : don't dereference the to the function call
1698         when the function pointer in meant to be checked against 0
1699         * app/interface.c : warning fixes by using correct types
1700         * app/modify_tool.c : describe_props() members returns const pointer
1701         * app/render_libart.c : removed most of the render function again.
1702         They happily live in lib/dialibartrenderer.c since almost 3 years
1703         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1704         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1705         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1706         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1707         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1708         Both mentioned in bug #159814 and not warned by most other compilers.
1709         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
1710         trailing colon in the GtkTypeInfo initialization
1711         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
1712         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
1713         between char and gint8
1714         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
1715         * plug-ins/wpg/wpg.c : consitently use guint8
1716         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
1717         redefinition warnings for python and xslt plug-ins
1719 2005-06-18  Hans Breuer  <hans@breuer.org>
1721         * lib/diagramdata.c : really get rid of diagram_data_destroy 
1722         and new_diagram_data [ no previous prototype for `...' is either
1723         a sign of missing static or of a function to vanish :-]
1725         * lib/geometry.c : apparently the G_INLINE stuff was working only
1726         with particular GLib version(s), glib-2.6.4 does not. Conditionally
1727         reverting to the old mecanics.
1729 2005-06-17  Hans Breuer  <hans@breuer.org>
1731         * plug-ins/python/pydia-*.c : include order tweaking to 
1732         get rid of redefinition warnings. Ensure to include <Python.h> 
1733         before any 'system' header, some dragged in by glib.h
1734         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
1735           pydia-properties.c(PyDiaProperties_Str)
1736           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
1737         use %p to format pointers
1738         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
1739         dont cast to float for %d
1740         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
1741         use correct pointer type
1742         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
1743         dont discard qualifier aka dont free const strings
1744         * plug-ins/python/pydia-properties.c : casts to PyCFunction
1745         * plug-ins/python/pydia-property.c : removed unused function,
1746         make ensure_quarks() static
1747         * plug-ins/python/pydia-render.c : removed unused vars, use
1748         the correct signature for begin_render
1749         (dia_py_renderer_finalize): pluged a leak
1750         => except -fno-strict-aliasing there is no warning left in 
1751            all of PyDia
1753 2005-06-12  Hans Breuer  <hans@breuer.org>
1755         * app/filedlg.c : really fix the file extension mismatch on export dialog
1756         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
1758 2005-06-11  Hans Breuer  <hans@breuer.org>
1760         * configure.in config.h.win32.h : mark as +cvs (should have been 
1761         done directly after the 0.94 release)
1762         * NEWS : attempt to summarize 2/3 year of development
1764         [ 
1765           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
1766           finally passes again
1767         ]
1768         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
1769         app/run_dia.sh --credits > THANKS => Segmentation fault
1770         * app/pixmaps/Makefile.am : added group.png and ungroup.png
1771         * Makefile.am : work around scrollkeeper bug
1772         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
1774         * po/*.po : 'noise' produced by make dist
1776 2005-06-10  Hans Breuer  <hans@breuer.org>
1778         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
1779         * objects/custom/custom_object.c : ... and use it to avoid 
1780         complains about missing attribute "show_background". It is 
1781         safe to leave this uninitialized. Same for flip_* and "text",
1782         the latter with comment cause it usually is *not* safe to do 
1783         it for the general case. Fixes remaining issues with bug #169006
1784         which where caused by an incompatible change in the shape file.
1786         * app/commands.c : use "gnome-open" instead of "netscape" as
1787         fallback for $BROWSER not set. Still not optimal but better
1788         to try some common desktop tool than an obsolete browser;)
1789         Fixes bug #307142. Also some whitespace changes.
1791         * app/interface.c(toolbox_delete): avoid random return value.
1792         Patch from Stanislav Brabec, fixes bug #307143
1794         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
1795         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
1796         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
1798 2005-06-06  Lars Clausen  <lars@raeder.dk>
1800         * app/diagram.c: 
1801         * app/modify_tool.c:
1802         * app/textedit.[ch]:
1803         Better support for text edit highlight.
1805         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
1806         the mainpoint extra visible.
1808 2005-06-02  Lars Clausen  <lars@raeder.dk>
1810         * objects/UML/class_dialog.c:
1811         * objects/UML/class.[ch]:
1812         The final fixes for mainpoint on UML Class.
1814         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
1815         Ian Redfern, now in color and with mainpoints!  Very pretty!
1817 2005-06-02  Hans Breuer  <hans@breuer.org>
1819         * objects/UML/class_dialog.c : the memory managment with respect to
1820         attribute/operation connections was/is a mess. But it should work again ;)
1822         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
1823         directly from the UML Specification - to show the power of Dia and 
1824         some weakness. Watch the bug reports following ;)
1826 2005-06-01  Hans Breuer  <hans@breuer.org>
1828         * app/dia.def : export diagram_update_connections_object
1829         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
1830         Patch from Paolo Bernardi, together with the property setting closes bug #300572
1832 2005-06-01  Hans Breuer  <hans@breuer.org>
1834         * plug-ins/python/pydia-property.c : complete refactoring of property 
1835         setting, now also supports setting of property arrays
1836         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
1837         Python namespacing conventions
1838         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
1839         complete UML Classes with attributes and operations
1840         * plug-ins/python/otypes.py : now also show the properties of the objects
1842         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
1843         (pointers), they might be changed with attributes and opertions changing
1845         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
1846         were broken. Apparently noone used them before.
1848         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
1849         which only operate on the DiagramData to the latter file. To get on the DiagramData
1850         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
1851         but I don't know how to reflect that in the bindings. And for backward compatibility 
1852         there also is the 'data' member.]
1854         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
1855           objects/UML/umlparameter.c : describe enums with PropEnumData
1857         * app/commands.c(view_show_all_callback) : if there is something selected show 
1858         that instead of all exisiting objects. If there is noting or all selcted it 
1859         "Show all" shows the old behaviour.
1861         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
1862         leaks and use less allocations caused by misguided API. Also some adaption to common 
1863         coding style
1865         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
1867         * app/makefile.msc : added new icons and build as console app while 
1868         not releaseing to the general public
1870         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
1871         and keep a refernce when storing the a font from style="" in s.font. This should
1872         finally allow to have shapes with fully predefined text (and no 'random' crashes)
1874         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
1875         capable to interpret it's output
1877 2005-05-31  Lars Clausen  <lars@raeder.dk>
1879         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
1881 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
1883         * configure.in: Added ne in ALL_LINGUAS
1885 2005-05-24  Lars Clausen  <lars@raeder.dk>
1887         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
1888         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
1889         anyway. 
1891 2005-05-23  Lars Clausen  <lars@raeder.dk>
1893         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
1895 2005-05-21  Lars Clausen  <lars@raeder.dk>
1897         * lib/diaarrowchooser.c: 
1898         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
1899         'infinite' line (three dots) arrowhead.  Fix line length in arrow
1900         preview.  And fix typo.  Fixes bug #303904. 
1902 2005-05-20  Hans Breuer  <hans@breuer.org>
1904         * lib/text.c : advice from valgrind and data_string() review:
1905         neither g_free() memory on the stack
1906         * objects/GRAFCET/boolequation.c : ... nor const strings 
1907         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
1908         wants to be freed
1910         * app/diagram.c : a g_object_ref() following g_object_new() is almost
1911         always wrong. Why would we need two refernces?
1912         * app/app_procs.c : same here.If it crashes later on someone is dropping
1913         refernces he does not own, and *that* needs to be fixed. This is reverting
1914         "Remember to ref g_object_new'd object" (bug #170972) below, which 
1915         causes more harm (leaking, hiding bugs elsewhere) than good.
1917         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
1918         diagramdata_destroy() which was only a wrapper to g_object_unref()
1920         * app/display.c(selection_changed) : don't g_strdup_printf() without
1921         g_free() later /or/ a C++ comment of me mostly denotes an error
1923         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
1925         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
1926         const gchar* entry it must not eat memory, added a lot of g_free() and
1927         some const. Fixed a bunch - i.e. *all* - warnings.
1928         * lib/widget.h : removed unused/deleted functions
1930         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
1931         avoid 'Invalid write of size 4', no luck yet
1933 2005-05-19  Lars Clausen  <lars@raeder.dk>
1935         * objects/UML/class.c: 
1936         * objects/UML/class.h: 
1937         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
1938         for uml class object.  #ifdef'd out right now.
1940 2005-05-18  Lars Clausen  <lars@raeder.dk>
1942         * objects/standard/line.c: Make line adjust its actual endpoints
1943         for autogap -- looks and feels better.
1945         * objects/standard/arc.c: 
1946         * lib/geometry.h: 
1947         * app/modify_tool.c: Patch from Grégoire Dooms
1948         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
1949         shifted arc angle movement.
1951 2005-05-16  Hans Breuer  <hans@breuer.org>
1953         * lib/widget.c : variable declarations need to be at the start of a block,
1954         at least as we are not using C++ or C99
1956         * plug-ins/python/pydia-property.c : implment the read part for Property
1957         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
1958         They are working quite well as can be seen with export-object.py
1960         * plug-ins/python/codegen.py : prove it once more with the generation of C++
1961         or Python code from an UML Diagram. Simply save as .py or .cxx ...
1962         * plug-ins/python/Makefile.am : install it
1964 2005-05-16  Lars Clausen  <lars@raeder.dk>
1966         * app/pixmaps/{un}group.png: 
1967         * app/Makefile.am (ICON_PNG_PAIRS): 
1968         * app/menus.c (display_menu_items): 
1969         New icons for grou/ungroup finally added, closing bug #105519.
1971         * app/Makefile.am: Dependencies for pixmaps.
1973         * app/pixmaps/connectable.png: An icon that actually makes sense
1974         for switching connectability.
1976 2005-05-15  Hans Breuer  <hans@breuer.org>
1978         * lib/group.c object/UML/classicon.c : fixed leftovers of
1979         'Adding connectionpoint to _move_handle
1981         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
1982         is *ALWAYS* a memory leak. Plug some more.
1984         [
1985          In preparation to make UML operations/attributes/parameters setable by Python
1986          UML class became more StdProp conformant. A nice experience to be the first 
1987          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
1988         ]
1989         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1990           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
1991         split from objects/UML/uml.c and made StdProp aware
1992         * objects/UML/class.c : finally make "attributes", "operations", "templates"
1993         <template parameters> first class StdProps citizens.
1994         (umlclass_load) : removed hand-written parsing for the above, it is all done
1995         by object_load_props() now. The old write code is still in place, so be very
1996         careful when changing something - at the moment load/save it is 100% compatible 
1997         as it needs to be.
1998         * objects/UML/uml.c : now just type registration here, as it is supposed to be
1999         * objects/UML/Makefile.am objects/makefile.msc : build the new files
2001         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
2002         in-record offsets
2003         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
2004         (darray_prop_adjust_object_records) : don't loop forever
2005         (whole file) : use the new (working) way to get on the second level offsets.
2006         Also resolved some abbreviations, it is complicated enough without them ;)
2007         * lib/proplist.c : even complete list contents may be optional
2009 2005-05-15  Hans Breuer  <hans@breuer.org>
2011         * lib/bezier_conn.c(remove_handles) : don't try to remove 
2012         non-exisitng handles (patch from Radek Krahl, bug #302273)
2014 2005-05-15  Hans Breuer  <hans@breuer.org>
2016         * plug-ins/metapost/render_metapost.c : locale independent output
2017         (Radek Krahl, bug #301866)
2019 2005-05-12  Lars Clausen  <lars@raeder.dk>
2021         * shapes/Cisco/*.{shape,png}:
2022         * sheets/cisco*.sheet.in:
2023         Updated with color icons from Ian Redfern, closing bug #303889.
2024         Added automatic midpoints, not attempt at adjusting them.
2026 2005-05-11  Lars Clausen  <lars@raeder.dk>
2028         * many shapes:  Use mid of bounding box for midpoint, better than
2029         mid of connection points generally.
2031 2005-05-10  Lars Clausen  <lars@raeder.dk>
2033         * lib/widgets.c: Decided on one way for the ratio thing in arrow
2034         size selector:  Fixed ratio is on by default and keeps the sizes
2035         at the given ratio, but doesn't clamp them to be the same.  Fixes
2036         bug #302861.
2038         * lib/font.c: Fix for bug #303695: Allow more than one entry of
2039         each legacy name, thereby correctly encoding bold and italic of
2040         the three main fonts.  Also use | rather than || to combine slant
2041         and weight, so matching works.  Had to remove binary search for
2042         new font name, but the list is short enough it's not a problem.
2044 2005-05-09  Lars Clausen  <lars@raeder.dk>
2046         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
2048 2005-05-08  Hans Breuer  <hans@breuer.org>
2050         * objects/UML/class.c : Reverted to have no center point.
2051         At first it looked as if there was only the bug to not increase
2052         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
2053         potentially much more dynamic connection points (to the left
2054         and right of every attribute/operation). Now simply adding one
2055         between see static and dynamic will screw up any existing diagram
2056         which makes use of the dynamic connection points. The would all
2057         be connected with an off-by-one error. I have no idea how to
2058         code around that. But breaking backward compatibility is no 
2059         option here. Does not completely fix bug #303301 ...
2060         
2061         * lib/widget.c(dia_font_selector_set_font): actually set the options 
2062         menu state. So we are not any longer resetting the font style on Apply.
2063         Use "UML - Class" dialog as stress text example.
2065         * app/command.c : some people insist to close diagrams already
2066         closed using tear-off menus. Maybe we should add a dialog 
2067         "Do you want to call Dr. Watson now?". If there is no diagram
2068         to close anymore just do nothing, fixes bug #303221
2069         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2070         Calling this with no display to close is a pathological case.
2072         * app/diagram.[hc] : moved object.h and other DiaObject stuff
2073         to the implementation in preparation of Big Things(tm)
2075         * app/interface.c : less warnings and make it compile. strncmp()
2076         does not take a char**, neither does gdk_pixbuf_new_from_inline().
2078         * objects/makefile.msc plug-ins/makefile.msc : less output
2080 2005-05-08  Lars Clausen  <lars@raeder.dk>
2082         * lib/orth_conn.c (orthconn_init): The right place to set the
2083         default autorouting value.  Fixes bug #303291.
2085         * app/display.c (ddisplay_close): Patch from Radek Krahl
2086         (ptasz3k@o2.pl):  Fix crash when using from detached menu
2087         (#303221)
2088         
2089 2005-05-07  Lars Clausen  <lars@raeder.dk>
2091         * lib/orth_conn.c (orthconn_load): Autorouting should default to
2092         off in diagrams that don't have it explicitly.  All diagrams
2093         should be explicit about it.
2095 2005-05-06  Hans Breuer  <hans@breuer.org>
2097         * app/samples/Self/*.dia : some UML diagrams describing Dia's
2098         inner working (or it's future;)
2100 2005-04-26  Lars Clausen  <lars@raeder.dk>
2102         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2103         change to display of mainpoint to be easier to debug autogenerated
2104         ones. 
2106 2005-04-23  Hans Breuer  <hans@breuer.org>
2108         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2109           plug-ins/python/pydia-properties.h : use lib/ prefix for
2110         Dia internal headers with too common names (fixes bug #173061)
2112         * app/display.c : stop special casing the first display of
2113         a diagram. Every display now has it's own refernce. The initial
2114         reference gets dropped when there is no display anymore. See
2115         diagram_remove_ddisplay(). Fixes bug #300744.
2117         * app/diapsft2renderer.c : locale independent output
2118         (Radek Krahl, bug #300847)
2119         * app/paginate_psprint.c :  fixing use of setlocale() calls
2120         (Radek Krahl, bug #300886)
2121         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2122         (Radek Krahl, bug #300889)
2124         * objects/UML/class.c : fix another crash with the line 
2125         wrapping code (Gabor Simon, bug #160865)
2127         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
2128         issue (or is this working around a libpixman bug?;)
2130 2005-04-21  Lars Clausen  <lars@raeder.dk>
2132         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2134         * shapes/**/*.shape: All shapes now have midpoints.
2136 2005-04-20  Lars Clausen  <lars@raeder.dk>
2138         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2139         (Radek Krahl): Make sure there's enough handles for the line.
2140         Fixes bug #173031.
2142         * objects/UML/node.c (node_draw): Better drawing method avoids
2143         garbage after moving.  Fixes bug #301032.
2145 2005-04-17  Hans Breuer  <hans@breuer.org>
2147         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
2148         changes (whould compile with current cvs and 0.(3|4).0
2150 2005-04-11  Lars Clausen  <lars@raeder.dk>
2152         * xmldocs.make (all): Fix to put installed docs in right place
2153         under disable-gnome.
2155         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2156         only for dia.dbk.
2158         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2159         (Leonardo Boshell): Use standard gnome help if called with Gnome.
2161         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2162         locale issues for eps output.  Fixes bug #173135.
2164 2005-04-10  Hans Breuer  <hans@breuer.org>
2166         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
2167         changes (somewhat broken)
2168         
2169         * plug-ins/pstricks/render_pstricks.c : still C89 ...
2170         * objects/custom/shape_info.c : ... but with prototypes
2171         
2172 2005-04-07  Lars Clausen  <lars@raeder.dk>
2174         * lib/dia_xml.c: 
2175         * plug-ins/svg/render_svg.c: 
2176         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2177         Make decimal separators be correct in save file formats
2178         (non-localized).  Fixes bugs #172529 and 172531.
2180 2005-04-06  Lars Clausen  <lars@raeder.dk>
2182         * app/create_object.c (create_object_button_release): 
2183         * app/modify_tool.c (modify_button_release): Correct activations
2184         of text edits.
2186 2005-04-05  Simon KÃ¥gström  <ska@bth.se>
2188         * app/app_procs.c: the --show-layers option can now handle numeric
2189         ranges of layers.
2191 2005-04-05  Lars Clausen  <lars@raeder.dk>
2193         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2194         (Tom Kast): Avoid blockiness caused by bad updates.
2196 2005-04-03  Lars Clausen  <lars@raeder.dk>
2198         * lib/polyshape.c: 
2199         * lib/beziershape.c: Main points.  A crude solution, having the
2200         center in the middle of the bb.  Shows a bug in the distance_from
2201         code for polyshape when a side is horizontal.
2203 2005-04-02  Lars Clausen  <lars@raeder.dk>
2205         * plug-ins/pstricks/render_pstricks.c: 
2206         * plug-ins/xfig/xfig-export.c: Patch from Radek
2207         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
2209 2005-04-02  Hans Breuer  <hans@breuer.org>
2211         * lib/dia_image.c(dia_image_filename) : return the path 
2212         again. (bug #172416, Radek Krahl)
2213         
2214 2005-04-01  Steve Murphy  <murf@e-tools.com>
2216         * configure.in: Added "rw" to ALL_LINGUAS.
2218 2005-03-31  Lars Clausen  <lars@raeder.dk>
2220         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2222         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2223         autorouting.  
2225         * objects/network/basestation.c: Main points.
2227 2005-03-27  Hans Breuer  <hans@breuer.org>
2229         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2230         * app/pixmaps.h : removed arrow.xpm
2231         * lib/Makefile.am : added diamarshal
2232         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2233         => makes 'make dist' pass and produce a useable package
2235         * po/*.po : 'noise' profuced by make dist
2237 2005-03-24  Lars Clausen  <lars@raeder.dk>
2239         * objects/flowchart/parallelogram.c (pgram_update_data): 
2240         * objects/flowchart/ellipse.c (ellipse_update_data): 
2241         * objects/flowchart/diamond.c (diamond_update_data): 
2242         * objects/flowchart/box.c (box_update_data): Main points.
2244         * objects/custom/custom_object.c (custom_create): 
2245         * objects/custom/shape_info.h: 
2246         * shapes/Assorted/square.shape: 
2247         * objects/custom/shape_info.c (load_shape_info): 
2248         * doc/shape.dtd: Added main point support to shapes, and an
2249         example of how to use it.
2251 2005-03-21  Lars Clausen  <lars@raeder.dk>
2253         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2254         unnormalize from same point as you normalize, or else!
2256 2005-03-20  Lars Clausen  <lars@raeder.dk>
2258         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2259         Remember to ref g_object_new'd object.
2261 2005-03-19  Hans Breuer  <hans@breuer.org>
2263         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2264         have configurations, fixes bug #170962
2266         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2267         or better not used any longer. Fixes bug #169142.
2269         * lib/element.c(element_update_connections_rectangle): don't initialize 
2270         the eighth point twice but instead the nineth once
2272         * objects/standard/bezier.c : no C++ comments *please*
2274         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2276         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2277         * plug-ins/python/pydia-image.c : ... so, don't do it!
2279         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2280         also named colors via pango_color_parse()
2282         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2284         * lib/libdia.def : updated externals
2286         * app/object_ops.c : still not C99 everywhere
2288 2005-03-19  Hans Breuer  <hans@breuer.org>
2290         * lib/autoroute.c : at least it should compile ;)
2291         
2292 2005-03-19  Lars Clausen  <lars@raeder.dk>
2294         * lib/autoroute.c: Orthconns now do autogap.
2296 2005-03-17  Lars Clausen  <lars@raeder.dk>
2298         * app/authors.h: Added Gregoire Dooms for gap stuff.
2300         * objects/standard/polyline.c: Patch from Grégoire Dooms
2301         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2302         
2303         * objects/standard/bezier.c: Patch from Grégoire Dooms
2304         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
2305         property. 
2306         
2308         * objects/UML/state_term.c: 
2309         * objects/UML/large_package.c: 
2310         * objects/UML/node.c: 
2311         * objects/UML/object.c: 
2312         * objects/UML/small_package.c: 
2313         * objects/UML/state.c: 
2314         * objects/UML/usecase.c: 
2315         * objects/UML/note.c: 
2316         * objects/UML/actor.c: 
2317         * objects/UML/classicon.c: 
2318         * objects/UML/component.c: 
2319         * objects/Misc/analog_clock.c: 
2320         * objects/Jackson/requirement.c: 
2321         * objects/Istar/goal.c: 
2322         * objects/Istar/actor.c: 
2323         * objects/FS/function.c: 
2324         * object/standard/box.c:
2325         * objects/ER/entity.c: 
2326         * objects/ER/relationship.c: 
2327         * objects/ER/attribute.c: Main points added.   Distance_from fixed
2328         in attribute, broken in relationship, I* goal, Jackson
2329         requirement, analog_clock, all non-rectangular UML elements, 
2331         * lib/libdia.def: 
2332         * lib/element.[ch]: New method to help update connection points.
2334         * app/menus.c: Change Help/Manual to Help/Contents to follow
2335         standard.
2336         
2337         * objects/standard/line.c:
2338         * lib/geometry.[ch]: 
2339         * objects/standard/bezier.c: Patch from Grégoire Dooms
2340         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2341         bezier objects.   Autogap nowchanged to be a function of the
2342         connpoints.
2344         * lib/libdia.def: 
2345         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2346         autogap flag.
2348         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2349         CP_FLAG_ANYPLACE connpoints.
2351 2005-03-16  Lars Clausen  <lars@raeder.dk>
2353         * app/interface.c (create_tools): Removed debug printf.
2355 2005-03-15  Lars Clausen  <lars@raeder.dk>
2357         * lib/widgets.[ch]: Constification.
2359         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2360         working yet.
2362         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2364         * lib/connectionpoint.h: Flags for connection points.
2366         * app/create_object.c (create_object_motion): 
2367         * app/modify_tool.c (modify_motion): Minor refactoring.
2369         * app/object_ops.c (object_find_connectpoint_display): Extend with
2370         finding connpoints that cover entire objects.
2372         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2374         * objects/custom/custom_object.c (custom_setup_properties): Avoid
2375         uninitialized use.
2377 2005-03-13  Hans Breuer  <hans@breuer.org>
2379         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2381 2005-03-13  Hans Breuer  <hans@breuer.org>
2383         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2384         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
2385         dia_svg_style_copy(), dia_svg_style_init()
2387         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2388         moved out of this)
2390         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2391         not wrapped in the style attribute
2393         * plug-ins/svg/svg-import.c : implement nested group handling and style
2394         'style inheritance'. Still no transformations, no <image/>, no <style/> 
2395         <defs/>...
2397         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2398         the latter is for programmers.
2399         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
2400         namespace is defined in the file search for the top node including svg. This
2401         allows us to re-read the svg part of our own shape format.
2403         * lib/libdia.def : there is no give_focus_to_object
2404         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
2405         type as an expression
2407         * lib/geometry. c : use G_IMPLEMENT_INLINES
2408         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2410         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2411         gone when trying to remove the focus
2413         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2414         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2415         case of this plug-in, i.e. producing output files]
2417 2005-03-13  Lars Clausen  <lars@raeder.dk>
2419         * lib/Makefile.am (BUILT_SOURCES): 
2420         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2421         the building of the icons header files.
2422         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2424 2005-03-13  Hans Breuer  <hans@breuer.org>
2426         * configure.in : require Cairo 0.3.0
2427           plug-ins/cairo/diacairo.c : changed to match ;-)
2429         * app/app_procs.c() : new function dump_dependencies()
2430         which gets called by: dia --version --verbose
2431         and may help to track version dependent problems in
2432         our dependencies
2434         * lib/font.c : reverted to previous version cause using
2435         not implemented Pango API did not improve the issue.
2436         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2437         for more information.
2439         * lib/dialinechooser.c : a little shrinking of the 
2440         initial size (to work around line wrappjing the right 
2441         arrow control)
2443 2005-03-11  Lars Clausen  <lars@raeder.dk>
2445         * app/textedit.c: Concentrate start/end editing in single functions.
2447 2005-03-10  Lars Clausen  <lars@raeder.dk>
2449         * lib/text.h: 
2450         * lib/object.h: Added new object function to allow the object to
2451         be notified when its text is being edited.
2453         * lib/libdia.def: 
2454         * app/modify_tool.c: 
2455         * app/commands.c: 
2456         * app/textedit.c: 
2457         * lib/focus.c: Remove sideeffects from focus objects, add getter
2458         for focus->obj.
2460 2005-03-09  Lars Clausen  <lars@raeder.dk>
2462         * lib/Makefile.am (dia-lib-icons.h): 
2463         * app/Makefile.am: Minor cleanup.
2465 2005-03-06  Hans Breuer  <hans@breuer.org>
2467         * app/app_procs.c : avoid "assignment within conditional expression"
2468         and handle -L for the GOption case as well.
2470         * lib/widget.c : strchr() does not return -1 on not found but NULL;
2471         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
2472         indirection from 'const int '
2474         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
2475         large_arc, thus produce correct arc output (like diasvg.py does;),
2476         fixes bug #144401
2478         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
2479         from objects/custom/shape_info.c to be shared with object/custom and
2480         plug-in/svg -> finally the C based svg-import reads pathes again.
2481         Added arc parsing while I was there, which fixes bug #169191
2482         * objects/custom/shape_info.c(parse_path) : 
2483         * plug-ins/svg/svg-import : reuse above function
2484         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2485         But in general this does only support a small subset of what is 
2486         possible in SVG.
2488 2005-03-06  Lars Clausen  <lars@raeder.dk>
2490         * objects/UML/association.c: Patch from Dave Klotzbach applied:
2491         Add visibility to association arrow.  Fixes bug #157012.
2493         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2494         closing bug #161040.
2496         * app/layer_dialog.c (create_button_box): Use stock icons instead
2497         of homemade onces.  Gets us rid of four more XPMs.
2499 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
2501         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2502         This option permits command line control of which layers are visible.
2503         Useful when automatically exporting multiple versions of the same
2504         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2505       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2506         and made it static since its only used in that file.
2507         * app/authors.h: added myself
2508         * doc/en/dia.1: documented the switch
2509         * doc/en/usage-layers.xml: ditto
2510         
2511 2005-03-05  Alan Horkan <horkana@tcd.ie>
2513         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2514         this restores how Dia behaved before the GTK2 port and seems to help 
2515         allow the toolbox to be more easily resized.  Bug #108891.
2517 2005-03-05  Lars Clausen  <lars@raeder.dk>
2519         * Civil/civil_motor.shape:
2520         * Civil/civil_rotor.shape:
2521         * Logic/and.shape:
2522         * Logic/buffer.shape:
2523         * Logic/connector.shape:
2524         * Logic/inverter.shape:
2525         * Logic/nand.shape:
2526         * Logic/nor.shape:
2527         * Logic/not.shape:
2528         * Logic/or.shape:
2529         * Logic/xor.shape:
2530         * shapes/Assorted/arrow-left-up.shape: 
2531         * shapes/Assorted/heptagon.shape: 
2532         * shapes/Assorted/star5.shape: 
2533         * shapes/Assorted/trapezoid.shape: 
2534         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2535         defaults, see bug #169143.
2537         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2539         * configure.in: 
2540         * doc/en/Makefile.am: Finally figured out the right way to ask for
2541         the manpage xslt.  Closes bug #144539.
2543 2005-03-01  Lars Clausen  <lars@raeder.dk>
2545         * lib/Makefile.am (nodist_include_HEADERS): 
2546         * app/Makefile.am: Correctly generate these files from PNGs with
2547         automake.
2549         * lib/widgets.h: 
2550         * lib/libdia.def:
2551         * lib/widgets.c: Refactor toggle button factory to allow inline
2552         data.
2554         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2556         * app/makefile.msc (ICON_PNG_PAIRS): 
2557         * app/dia-app-icons.h: Updated with more icons.
2559         * lib/Makefile.am: 
2560         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2561         from pngs.
2563         * app/interface.c (create_display_shell): 
2564         * app/layer_dialog.c (dia_layer_widget_init): 
2565         * lib/dia_image.c (dia_image_get_broken): Use inlined data
2566         generated from png.
2568         * app/display.c (ddisplay_close): Removed unused includes.
2570 2005-03-01  Lars Clausen  <lars@raeder.dk>
2572         * app/sheets.c (create_object_pixmap): Create a placeholder image
2573         for when the real image is missing.  Better than crashing:)
2574         Closes bug #166786.
2576 2005-02-25  Hans Breuer  <hans@breuer.org>
2578         * app/app_procs.c : don't requets to open a default display with
2579         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2581 2005-02-22  Lars Clausen  <lars@raeder.dk>
2583         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2584         Fixes bug #168125.
2586 2005-02-19  Lars Clausen  <lars@raeder.dk>
2588         * app/menus.c (display_menu_items): Applied patch from bug #94019:
2589         Menu cleanup and addition of icons.  Also a few additional stock
2590         icons. 
2592         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2593         the layers dialog.
2595 2005-02-14  Lars Clausen  <lars@raeder.dk>
2597         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2599 2005-02-13  Lars Clausen  <lars@raeder.dk>
2601         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2602         width.  Seems to work.  Once tested some more, needs old code
2603         removed. 
2605         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2606         warning by escaping & properly.
2608 2005-02-06  Lars Clausen  <lars@raeder.dk>
2610         * app/filedlg.c (file_export_callback): Set correct extension as
2611         soon every time the dialog is shown.  Fixes bug #162535.
2613         * app/display.c (ddisplay_set_origo): Use more standard
2614         transformations.
2616         * app/modify_tool.c (modify_motion): 
2617         * app/create_object.c (create_object_motion): Put coordinates of
2618         handle/object in status bar while moving. Fixes bug #163164.
2620 2005-02-03  Lars Clausen  <lars@raeder.dk>
2622         * lib/.cvsignore: Added generated files diamarshal.[ch]
2624 2005-02-02  Lars Clausen  <lars@raeder.dk>
2626         * configure.in: Add GLIB_GENMARSHAL def as suggested in
2627         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2628         Now compiles on Linux.
2630 2005-02-01  Lars Clausen  <lars@raeder.dk>
2632         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2633         need to translate the empty string.  Especially not after
2634         g_assert_not_reached().  Fixes bug #165966.
2636 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
2638         * objects/UML/activity.c : add fill- and line-colour properties
2639         [applied by Hans Breuer, fixes bug #163260]
2641 2004-01-28  Hans Breuer  <hans@breuer.org>
2643         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2644         update provided by Alan Horkan (fixes bug #159592)
2646 2004-01-28  Hans Breuer  <hans@breuer.org>
2648         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2649         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2650         generalization, dependancies, parameterized classes ...
2651         * plug-ins/xslt/styleshetts.xml : refernce it
2652         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2654 2004-01-28  Hans Breuer  <hans@breuer.org>
2656         * objects/UML/transition.c : fill out the extra_spacing struct 
2657         in the OrtConn member, in order to avoid artifacts when draggin 
2658         the transition. (patch by Peter Allin, bug #144956)
2660 2004-01-15  Hans Breuer  <hans@breuer.org>
2662         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2663         to something differnt than 0. Apparently there are case where Dia misses
2664         to appropriately set it before requesting a dashed line (simple line with
2665         arrow as described in bug #151716)
2667         * lib/dia_dirs.c : special casing for drive letters which I broke with
2668         the previous change
2670 2005-01-13  Hans Breuer  <hans@breuer.org>
2672         * app/interface.c(create_sheet_page) : remved dead long time code
2674         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2675         it is availbale via header - which is the better style anyway
2677 2004-12-31  Hans Breuer  <hans@breuer.org>
2679         * lib/dia_dirs.c(dia_get_canonical_path) : complete
2680         rewrite to handle something like /mnt/some/where/../else
2681         too. Workaround for bug #162637.
2682         * app/filedlg.c : call gtk_file_chooser_set_current_name()
2683         to workaround gtk_file_chooser_set_filename() not setting
2684         it if the file does not exist
2686         * sheets/Jackson.sheet.in app/menus.c : fixed typos
2687         (Frank Arnold, bug #161676)
2689 2004-12-31  Steffen Macke <sdteffen@gmail.com>
2691         * doc/pl/*.xml: Added XML prolog
2692         * makefile.msc: Added libxslt, fixed libxml, libart
2694 2004-10-29  Alexander Shopov  <ash@contact.bg>
2696         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2698 2004-12-29  Lars Clausen  <lars@raeder.dk>
2700         * configure.in: Make gnomeprint be truly off by default (typo) and
2701         show optional compilation correctly.
2702         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2704 2004-12-22  Hans Breuer  <hans@breuer.org>
2706         * lib/widgets.c : destroy handlers can be called more than once, 
2707         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
2709         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
2710         
2711         * app/display.c : temporary debug code showing the
2712         timing the rendering
2714         * app/dialibartrenderer.c(draw_string) : removed dead
2715         code loading and leaking font and face
2717 2004-12-15  Hans Breuer  <hans@breuer.org>
2719         * app/display.c : actually use the selction-changed signal for something
2720         useful. Show selections representation on statusbar.
2721         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
2722         * app/diagram_tree.c : use new function (as in app/display.c) and only
2723         poke into property internals at one place
2724         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
2725         complains
2727 2004-12-12  Hans Breuer  <hans@breuer.org>
2729         * lib/libdia.def app/dia.def : updated externals
2731         * objects/custom/custom_object.c : custom_destroy is called per object. 
2732         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
2733         reference to it. Fixes e.g. bug #158288, #160550, ...
2735         * objects/UML/association.c(association_draw) : completed porting to
2736         draw_polyline_with_arrows()
2737         (association_update_data_end) : fixed typo in point compare
2738         (association_update_data) : for name placement take degenerated 
2739         segements into account. Together this fixes bug #143891
2741 2004-12-11  Hans Breuer  <hans@breuer.org>
2743         * lib/widgets.c(set_size_sensitivity) : revert inverted
2744         logic for arrorw size selections, fixes bug #160527
2746 2004-12-11  Hans Breuer  <hans@breuer.org>
2748         * lib/widgets.c(dia_font_selector_set_font) : initialize
2749         the font style widget, too. Gets rid of empty font
2750         style and thus default broken font style, e.g. UML::class_name
2752         * lib/widgets.c(dia_color_selector_more_callback) : fill
2753         the color palette from dynamic menu entries and also
2754         preselect the current color to the last select entry
2755         
2756         * plug-ins/python/pydia-diagramdata.c : hold a reference
2757         to the underlying GObject
2758         
2759         * app/Makefile.am app/diagrid.h : new file containing the 
2760         grid 'class' moved from DiagramData to Diagram. 
2761         Also moved pagebreak_color and guides cause they are only 
2762         used for visual appearance not 'data'.
2763         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
2764           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
2765         the above change
2767         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
2768           lib/libdia.def : get rid of new_diagram_data() 
2769         Diagram _is_ DiagramData (and does not have one any longer,
2770         just a compatibility pointer)
2771         
2772         * lib/diarenderer.h : a small doc improvement
2774 2004-12-11  Hans Breuer  <hans@breuer.org>
2776         * objects/UML/class.c : line wrapping code buffer
2777         overrun fixed by Gabor Simon, bug #160865
2779 2004-12-11  Hans Breuer  <hans@breuer.org>
2781         * plug-ins/python/pydia-diagram.c : hold a reference
2782         to the diagram in PyDiaDiagram, avoids bug #159080
2783         [another way to avoid is to detroy the dialog by
2784         clsoing it. But now there is still a diagram to
2785         apply the changes to, even if it's thrwon away just
2786         afterwards]
2788 2004-12-10  Hans Breuer  <hans@breuer.org>
2790         * **/*.c : fixed a bunch of warnings, not only for -ansi
2791         (still too many of them, but -ansi works)
2792         lib/
2793         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
2794         declaration for `fontsizeprop_reset_widget' follows non-static
2795         dia_dirs.c:196: warning: return discards qualifiers from 
2796         pointer target type
2798         objects/custom/
2799         shape_info.c:121: warning: static declaration for `parse_path' 
2800         follows non-static
2802         objects/SADT/
2803         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
2804         arrow.c:244: warning: unused variable `i'
2805         arrow.c:245: warning: unused variable `p'
2806         arrow.c:246: warning: unused variable `zzr'
2807         
2808         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
2809         finally removed c++ comments
2810         
2811         objects/Istar/goal.c : initialize connections::directions
2812         while I was there - helps autorouting
2814         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
2815           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
2816         (it would be quite simple to add image-from-memory support
2817         to lib/ if needed)
2819         * pydia-*.h : warning: no newline at end of file
2820         
2821         * plug-ins/gprint/diagnomeprint.c : allow to unregister
2822         and follow new unique name naming convention
2823         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
2824         here either
2826 2004-12-07  Hans Breuer  <hans@breuer.org>
2828         * objects/UML/message.c : better default for initial text placement
2829         a suggested in bug #154306, Henning Mersch
2830         * objects/UML/constraint.c : doing the same
2832         * app/filedlg.c : include persistence.h for persistence_get_integer
2833         * lib/libdia.def export it
2835 2004-12-05  Hans Breuer  <hans@breuer.org>
2837         * app/grid.c : respect dynamic grid during snap-to, fixes 
2838         bug #135124, Dmitriy Morozov. Added some additional magic
2839         to make the grid size more useable.
2841 2004-12-05  Hans Breuer  <hans@breuer.org>
2843         * app/app_procs.c : make it compile for the HAVE_POPT and
2844         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
2845         
2846         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
2847         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
2848         when interactive. Fixes bug #119329
2849           
2850         * plug-ins/cairo/diacairo.c : adapt to new type naming
2851         scheme (introduced by accident;-) for pixbuf-*
2852         * app/app_procs.c : reflect both type name changes
2854 2004-12-04  Hans Breuer  <hans@breuer.org>
2856         * objects/standard/image.c : fix the correct warning
2857         `image_file_name' might be used uninitialized
2858         
2859         * app/filedlg.c : near complete rewrite
2860         - removed 'related dialog', GtkOptionMenu, most global vars,
2861         also don't hide the dialog but let it go.
2862         - added: filter view by extension, hopefully working diagram
2863         referencing, GtkComboBox usage
2864         
2865         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
2866         of im/export filter entries. So the user interface reflects
2867         the dynamic nature of pixbuf loaders
2869         * lib/filter.[ch] : implement filter_unregister_*port
2870           lib/libdia.def : added new functions
2871           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
2872           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
2873           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
2874           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
2875           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
2876         use them in _plugin_unload () thus all these plug-ins
2877         can be loaded used and unloaded during Dia's runtime
2879 2004-12-04  Lars Clausen  <lars@raeder.dk>
2881         * lib/diagramdata.h: Access methods for units defined per diagram.
2883         * lib/font.c (dia_font_new_from_style): More proper object creation.
2885         * lib/properties.h: Refactored the PROP_STD_* macros to allow
2886         different options.
2888         * app/diagram.c (diagram_init): Force filename to be absolute
2889         path, easing the job for load/save.
2891 2004-12-03  Hans Breuer  <hans@breuer.org>
2893         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
2894         added dia_font_set_height, dia_font_copy (note to self: don't try to
2895         maintain these from the *NIX side ;)
2897         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
2898         the new color selection anymore
2899         * objects/UML/class_dialog.c : with the above change it would have been more 
2900         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
2901         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
2903         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
2904         (used in object vtable) and make its prototype match
2906         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
2907         correlate any of these strange crashing bug with it, but assume bad things to 
2908         happen when one passes stack allocated stuff to gtk_type_unique()
2910         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
2911         not there. Fixes most of the warnings from bug #156996
2913         * lib/makefile.msc : rules to generate diamarshal.[ch]
2915 2004-11-29  Hans Breuer  <hans@breuer.org>
2917         * app/disp_callbacks.c : reenable so-called preedit
2918         as described in bug #158859, Etsushi Kato
2919         Also fixed some compiler warnings while there.
2920         
2921         * objects/standard/image.c(get_directory) : make
2922         the documentation match the implementation.
2923         (image_save) : don't write a leading slash on 
2924         relative filenames 
2926         * plug-ins/gprint/diagnomeprintrenderer.c :
2927         switched to gnome-print-pango usage
2928         
2929         * app/app_procs.c configure.in : although Dia
2930         is not threaded it appears as if we have to
2931         g_thread_init() to avoid crashing in some
2932         libraries which are thread enabled
2934         * lib/diamarshal.list lib/Makefile.am : start of
2935         using GSignal to clean up some object relations
2936         * lib/libdia.def : export marshallers
2937         * app/diagram.[ch] : emit signals when REMOVED,
2938         SELECTION_CHANGED
2939         * app/display.c : added a connection to 
2940         SELECTION_CHANGED to test the new signal stuff
2941         
2942         * app/diagram.c : fixed diagram_finalize while I
2943         was there.
2945 2004-11-28  Hans Breuer  <hans@breuer.org>
2947         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
2948         the text if conversion to current locale fails. [This is actually
2949         using code written four years ago;]
2950         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
2952         * objects/standard/image.c(image_load) : be more robust against 
2953         filenames which seem to be absolute
2955 2004-11-27  Hans Breuer  <hans@breuer.org>
2957         * app/filedlg.c(file_save_callback) : convert to
2958         filename encoding before passing to diagram_save()
2959         Fixes bug #158381, thanks to Robert Ã–gren
2961 2004-11-27  Hans Breuer  <hans@breuer.org>
2963         * lib/dialibartrenderer.c : sometimes its good to read
2964         compiler warnings. Not only define renderer_finalize
2965         but actually *use* it. Should plug a potential huge
2966         memory leak.
2968         * configure.in plug-ins/Makefile.am 
2969           plug-ins/gprint/Makefile.am : build the experimental
2970         gnomeprint plug-in on *NIX, too.
2971         * plug-ins/gprint/diagnomeprint.c : don't include
2972         specific (private) backend headers but instead select
2973         the desired backend via config key setting
2975         * lib/diagdkrenderer.c : add 1 to size of filled arc 
2976         to be rendered by gdk. Fixes bug #150896.
2978         * plug-ins/gprint/diagnomeprint.c 
2979           plug-ins/gprint/diagnomeprintrenderer.c : added magic
2980         to better match page and dash sizes
2982 2004-11-27  Hans Breuer  <hans@breuer.org>
2984         * plug-ins/shape/shape-export.c : it's g_strdup_printf
2986 2004-11-27  Hans Breuer  <hans@breuer.org>
2988         * app/app_procs.c : mention eps-builtin aka. "using
2989         latin1", does not fix the eps-pango issues but #150571
2991 2004-11-27  Hans Breuer  <hans@breuer.org>
2993         * sheets/Cybernetics.sheet.in : changed encoding to 
2994         utf-8, patch from Takeshi AIHANA, fixes #149580
2996 2004-11-27  Hans Breuer  <hans@breuer.org>
2998         * objects/custom/custom_object.c : many existing shapes
2999         rely on a square default size, revert to it although
3000         it originally was by a typo. Fixes bug #148527.
3002 2004-11-27  Hans Breuer  <hans@breuer.org>
3004         * app/load_save.c(dia_cleanup_autosave) 
3005           app/diagram.c : don't use dia->filename if already 
3006         freed and dont use printf at all.
3008         * app/paginate_psprint.c : not only set the renderer::paper
3009         but also renderer::is_portrait. Should fix bug #142524
3011 2004-11-26  Hans Breuer  <hans@breuer.org>
3013         * dia.desktop.in : added Bug Buddy headers (as seen
3014         in planner). Hopefully the automatically filling of
3015         bugs is more meaningful by this.
3016         
3017         * objects/custom/custom_util.c objects/standard/image.c
3018           lib/plug-ins.c : getting rid of deprecated g_dirname,
3019         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
3020         bytes inside a block of size 44 free'd
3021         
3022         * lib/persistence.c(persistence_load_list) : don't
3023         leak string
3024         
3025         * lib/diaerror.[ch] : (new file) start of better error handling
3026         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
3027         added new files/funcs
3028         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
3029         allow to propagate error to caller. Also set PXP_NOTSET
3030         to avoid applying unset properties, fixes bug #155255
3031         * lib/propobject.c lib/prop_sdarray.c : still spewing
3032         g_warnings but now with context information
3033         
3034         * app/filedlg.c : more absolute filenames where required
3035         and strip them where we need the filename only
3036         Also explicit DONT choose gnome-vfs backend cause its
3037         threading appears to crash Dia - at least in GNOME build,
3038         see bug #159558
3040 2004-11-26  Hans Breuer  <hans@breuer.org>
3042         * app/filedlg.c : don't use relative filenames for
3043         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
3044         pedantic about it.
3045         (export_set_extension) : if we don't have a filename don't
3046         use it in strrchr() to avoid crashing
3047         
3048 2004-11-23  Hans Breuer  <hans@breuer.org>
3050         * app/app_procs.c : fixed build for the GNOME case
3051         (let's rip out POPT and depend on glib-2.6, please ;-)
3053 2004-11-23  Hans Breuer  <hans@breuer.org>
3055         * app/app_procs.c : fixed typo which broke the
3056         build for HAVE_POPT case
3057         
3058 2004-11-21  Hans Breuer  <hans@breuer.org>
3060         * app/app_procs.c : some more #if-mess, but one day
3061         we should rely on GLib's 2.6 Option Parser alone
3062         
3063         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
3064         and height for RoundRect() - otherwise size depends on offset,
3065         shorten the unique name
3066         
3067         * plug-ins/python/diamodule.c : provide a unique name
3068         for python filters as well
3070         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3071         by using the right colors (need black background cause we
3072         are tinitng it with the real color later)
3074         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3075         instead of hardcoded slahes, improved portability 
3077         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3078         plug-in. Also added some more error reporting (e.g. no printer driver)
3080         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3081           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
3082         Kinda works (alpha quality) for export but does not print yet. 
3083         With bug #158972 resolved this does even work on win32 :-)
3085 2004-11-07  Hans Breuer  <hans@breuer.org>
3087         * doc/diagram.dtd : <composite> can have <composite/>,
3088         <font/> has two 'optional' atributes 'style' and 'family',
3089         these are used to store new (since 0.91) font info.
3090         With this changes non of the issues in bug #147431 remains.
3092         * plug-ins/python/otypes.py : starting to implement an
3093         'create all known object' file as ne stress test source
3094         for the dtd and Dia in general.
3096 2004-11-06  Hans Breuer  <hans@breuer.org>
3098         * app/diapsrenderer.c : don't convert to locale but to 
3099         "LATIN1", fixes bug #146641
3101 2004-11-06  Hans Breuer  <hans@breuer.org>
3103         * app/diagram_tree.c : still no C99 everwhere ...
3104         * lib/libdia.def : update externals
3105         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3107         * app/app_procs.[hc] : declare, use ...
3108            app/winmain.c : ... and implement dia_redirect_console().
3109         Even though newer Gtk version don't popup a console window
3110         anymore redirecting the error messages to a file in $TEMP appears
3111         to be much more reasonable than just ignoring it. Fixes bug #150777
3112         based on a patch from Steffen Macke
3114 2004-11-06  Hans Breuer  <hans@breuer.org>
3116         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3117         RoundRect() for high level renderer api implementation thus
3118         fixing bug #138744 reported by Lars Clausen
3120 2004-11-06  Hans Breuer  <hans@breuer.org>
3122         * app/prefernces.c : applied patch to make showing the diagram 
3123         menubar the default (advanced users know how to switch it off)
3124         Fixes bug #150706, Steffen Macke
3126 2004-11-06  Hans Breuer  <hans@breuer.org>
3128         * app/commands.c app/commands.h : added view_fullscreen_callback()
3129           view_unfullscreen()
3130           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3131         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3132         ALso modified to allow handling of unmodified keys again (aren't
3133         there plenty of bug reports for this?
3135 2004-11-06  Hans Breuer  <hans@breuer.org>
3137         * objects/UML/class_dialog.c : fixed casts for usage
3138         of dia_color_selector_set_color()
3139         
3140         * app/filedlg.c : pass a valid filenames to 
3141         gtk_file_chooser_set_filename(), if we don't have a name
3142         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
3143         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
3144         assertion `local_full_path[0] == '/'' failed"
3145         
3146 2004-11-06  Lars Clausen  <lars@raeder.dk>
3148         * app/properties.c (create_dialog): 
3149         * app/diagram_tree_window.h: 
3150         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
3151         * app/diagram_tree_menu_callbacks.c: 
3152         * app/diagram_tree_window.c: 
3153         * app/diagram_tree_menu.c: 
3154         * app/diagram_tree.c: Changed to use persistence instead of
3155         strange hacks in preferences.
3157         * lib/persistence.h:
3158         * lib/persistence.c (persistent_list_get_glist): Don't deref null
3159         pointer.  New function persistent_list_remove_all, and
3160         fixed persistent_list_remove to ... work!
3162 2004-11-05  Lars Clausen  <lars@raeder.dk>
3164         * app/paginate_psprint.c (diagram_print_ps): Call
3165         diagram_print_destroy on destroy rather than delete_event.  That
3166         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
3167         #154898. 
3169 2004-11-02  Lars Clausen  <lars@raeder.dk>
3171         * objects/UML/class.c (umlclass_load): Actually load the saved
3172         fonts and font sizes. Fixes bug #157016
3174         * configure.in: Require at least GTK+ 2.4.
3176         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
3177         finally, finally.  Not quite bulletproof yet, and I need to figure
3178         out a minimum version of Gtk that doesn't spew warnings all over.
3180         * app/diagram.[ch]: diagram_set_filename with const filename.
3182         * app/sheets_dialog_callbacks.c
3183         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3184         correctly recreated.  Still something fishy with the sheet menu in
3185         the dialog after adding a new sheet.  Probably the sheet name
3186         being stomped.
3188 2004-11-01  Lars Clausen  <lars@raeder.dk>
3190         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3191         stmping.  Now requires g_free here and there.
3193         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3194         for remembering last sheet, better off as persistent string.  Must
3195         hunt down other things like that.
3197         * app/interface.c (create_sheets): Now remembers last sheet
3198         selected again. Fixes bug #157036.
3200 2004-11-01  Hans Breuer  <hans@breuer.org>
3202         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3203         will never become NULL but only point to the next char
3204         which might indeed be \0]
3205         Use tex_escape_string() to avoid writing invalid tex,
3206         fixes bug #112377
3208         * **/* : a bunch of changes caused by trying 'make distcheck'
3209         which still fails, see Bug #144527
3211 2004-10-31  Lars Clausen  <lars@raeder.dk>
3213         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3214         floating point numbers being printed with commas.  Fixes bug
3215         #156148.
3216         
3217         * app/interface.c (create_sheet_dropdown_menu): New function to
3218         create the sheet menu, and also allow recreation.  Still buggy and
3219         slightly prone to magic.
3221         * objects/UML/class_dialog.c
3222         (attributes_list_selection_changed_callback): Don't try to update
3223         the widgets after they're destroyed.  Fixes bug #156706 (I think).
3225         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3226         adjustement.  Fixes bug #154637
3228         * sheets/ER/Makefile.am (PIX): 
3229         * sheets/GRAFCET/Makefile.am (PIX): 
3230         * sheets/Jackson/Makefile.am (PIX): 
3231         * sheets/Istar/Makefile.am (PIX): 
3232         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3233         XPM.  Why these have their pictures in sheets rather than shapes I
3234         don't know.  Fixes bug #152142.
3236 2004-10-31  Hans Breuer  <hans@breuer.org>
3238         * plug-ins/pixbuf/pixbuf.c : when running non interactive
3239         Dia won't call color_init() as it assumes no display. If
3240         we have one as tested ourselve we can as well color_init()
3241         to avoid g_warnings() and produce the right collors.
3242         Fixes bug #155495.
3243     
3244         * app/app-procs.c : try to be a little more helpful
3245         and correct with regard to the command line options.
3246         Renamed --export-to-format to --export-filter and some
3247         other string changes
3249 2004-10-31  Hans Breuer  <hans@breuer.org>
3251         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3252         added GetDeviceCaps() dummy implementation to make 
3253        'wmf' compile on Linux, too.
3255 2004-10-31  Hans Breuer  <hans@breuer.org>
3257         * plug-ins/wmf/wmf.cpp : patch from Robert Ã–gren <gtk@roboros.com>
3258         to finally fix the long lasting clipping issue, bug #85831
3259         Also fixed the line style issue for printing on XP and don't 
3260         miss to ReleaseDC()
3262         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3264         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3265         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
3267         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
3268         some info from the console (soon gone on windoze) to message_error()
3269         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3270         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3272         plug-ins/python/diasvg_import.py : re.compile() only once per expression
3273         and some more playing with scaling
3275         * plug-ins/python/makefile.msc : updated
3277 2004-10-30  Hans Breuer  <hans@breuer.org>
3279         * shapes/Civil/civil_arrow_right.shape : removed
3280         <aspectratio type="fixed" /> thus allowing to change
3281         width and height independently, fixes #154897 
3282         (Serge Robinson) by making it consistent with the
3283         up arrow
3285 2004-10-30  Hans Breuer  <hans@breuer.org>
3287         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3288         on arrow being NULL, fixes bug #143063
3290 2004-10-30  Hans Breuer  <hans@breuer.org>
3292         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3293           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3294         removed use of chached variable DiagramData::selected_count
3295         * lib/diagramdata.h : renamed to selected_count_private
3296         (kept for binary compatibility and sanity checks)
3297         * lib/diagramdata.c : more checks on a screwed up selection list
3299         * app/diagram.c(diagram_group_selected) : don't screw up the
3300         DiagramData::selected list, was assignment of parent_list_affected(),
3301         * lib/diagramdata.c (data_select, data_unselect) : protect against
3302         multiple selections of the same object and removement of a not selected
3303         object (apparently caused by the recently added group undo stuff)
3304         together with the above this finally fixes bug #153525
3306         * app/Makefile.am : fix ./autogen.sh ->
3307         app/Makefile.am:171: blank line following trailing backslash
3309         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3310         ddisplay_do_update_menu_sensitivity() here as well
3312         * configure.in : make the experimental state of the cairo plug-in
3313         more visible
3314         
3315         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3316         try to update anything if we can't find an active diagram
3317         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3318         
3319         * configure.in : another attempt to fix bug #156116. If there is
3320         anyone with autotools knowledge reading this - help appreciated ;-)
3322 2004-10-30  Hans Breuer  <hans@breuer.org>
3324         * objects/makefile.msc objects/UML/Makefile.am
3325           objects/UML/uml.c objects/UML/transition.c 
3326           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
3327         Patch from Peter Allin adds statechart transitions to the UML sheet -
3328         bug #144956 - modified to not print("%s", NULL) which crashes on
3329         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3331 2004-10-30  Hans Breuer  <hans@breuer.org>
3333         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
3334         match the website anymore, i.e. sould remain unchanged. 
3335         See below and lib/dia_xml.h for the reasoning
3337         * lib/libdia.def : removed dia_color_selector_get_type
3339         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3340         (like broken PNG) and g_warning if appropriate
3342         * app/interface.c : #include "message.h"
3344         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3345         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3346         better to just move diaunitspinner to lib/ instead of polluting
3347         widgets.[hc] even more ;)
3348         * app/makefile.msc lib/libdia.def : updated
3350         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3351         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3353         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3354         do something useful when compiled
3356         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3357         Also some more #ifdefed backends usage.
3359 2004-10-10  Lars Clausen  <lars@raeder.dk>
3361         * lib/widgets.c: Better labels for color selector menu.
3363         * app/dia-props.c (diagram_properties_respond): 
3364         * app/preferences.c (prefs_get_value_from_widget): Don't assume
3365         that a dia color selector is of type DiaColorSelector:)
3367         * lib/widgets.[ch]: Color selector changed to dynamic menu.
3369         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3370         DiaColorSelector. 
3372 2004-10-09  Lars Clausen  <lars@raeder.dk>
3374         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3375         arrow preview to avoid long arrow heads flipping.
3377         * lib/arrows.[ch]: Support for getting from name to arrow type,
3378         and for listing all arrow names.
3379         
3380         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3382         * lib/libdia.def: Added new global functions.
3384         * lib/persistence.[ch]: Two of the persistent_list functions to
3385         return whether the item was found in the list.
3387         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3388         the growing number of sheets.
3390         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3391         font menu.
3393 2004-10-05  Lars Clausen  <lars@raeder.dk>
3395         * objects/UML/association.c: Patch from Harvey Thompson
3396         <harveyandsu@yahoo.com>:  Better placement of association texts.
3398 2004-10-03  Lars Clausen  <lars@raeder.dk>
3400         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3401         use the fonts in question.  Can't set tooltips with the name since
3402         lib objects don't know the tool_tips thing, which is rather
3403         app-related.
3405 2004-09-19  Hans Breuer  <hans@breuer.org>
3407         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3408         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3410 2004-09-19  Hans Breuer  <hans@breuer.org>
3412         * dia.desktop.in : string changes as proposed in bug #151822
3413         
3414         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3415         appearts not to be needed on Linux and breaks the build 
3416         on OSX. Fixes bug #152970
3417         
3418 2004-09-18  Lars Clausen  <lars@raeder.dk>
3420         * app/commands.c (view_show_all_callback): Add a bit of border
3421         around Ctrl-E'd diagram, for easier select and better view of edges.
3423 2004-09-19  Hans Breuer  <hans@breuer.org>
3425         * app/Makefile.am : trying to fix the fix from 2004-02-15
3426         Overwriting AM_LDFLAGS still gave a automake warning and it 
3427         also appeard to break linking against gtklibs in a differnt 
3428         prefix. Use dia_LDFLAGS instead.
3430         * plug-ins/svg/svg-import.c : initialize 'end' before usage
3431         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3432         
3433         * lib/diarenderer.c : don't try to draw lines which are so much 
3434         degenerated that their point count became negative, fixes bug #148139
3435         
3436         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
3437         strings (NULL from g_strdup()) 
3439 2004-09-10  Steffen Macke <sdteffen@web.de>
3441         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3442         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3443         * app/create_object.c:
3444         * app/diaunitspinner.c:
3445         * app/disp_callbacks.c:
3446         * app/makefile.msc:
3447         * app/modify_tool.c:
3448         * lib/prop_geomtypes.c:
3449         * lib/prop_geomtypes.h: made compile with msvc
3451 2004-09-10  Lars Clausen  <lars@raeder.dk>
3453         * lib/widgets.c: Insulate conversion from outside API by adding
3454         internal function to set value.  Adjustment not appropriate for
3455         units yet.
3457         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3459 2004-09-07  Lars Clausen  <lars@raeder.dk>
3461         * app/diapagelayout.c: Include from widgets.c rather than
3462         diaunitspinner.
3464 2004-09-03  Lars Clausen  <lars@raeder.dk>
3466         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3467         as unit-based property testbed.
3469         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3470         and fontsize widgets. 
3472         * app/Makefile.am (dia_core_files):
3473         * app/diaunitspinner.h: 
3474         * app/diaunitspinner.c: 
3475         * lib/widgets.h: 
3476         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3477         lib/widgets.[ch], as it's used in the properties code now.
3479 2004-08-31  Steffen Macke <sdteffen@web.de>
3481         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3483 2004-08-30  Lars Clausen  <lars@raeder.dk>
3485         * app/textedit.c: 
3486         * app/diagram.c (diagram_remove_all_selected): Remove debugging
3487         information. 
3489         * lib/color.[ch]: 
3490         * app/undo.c: 
3491         * app/disp_callbacks.c: 
3492         * app/Makefile.am: 
3493         * app/create_object.c: 
3494         * app/textedit.[ch]: 
3495         * app/modify_tool.c: 
3496         * app/diagram.c: 
3497         * lib/text.c: 
3498         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3499         current input object, multiple inputs per object, and tabbing
3500         between objects.
3502 2004-08-28  Steffen Macke <sdteffen@web.de>
3504         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3505         allow separate installer component "Translations"
3507 2004-08-27  Akagic Amila  <bono@linux.org.ba>
3509         * configure.in: Added 'bs' to ALL_LINGUAS.
3511 2004-08-26  Steffen Macke <sdteffen@web.de>
3513         * app/makefile.msc: using /subsystem:windows again
3514         * makefile.msc: updated ALL_LINGUAS
3516 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
3518         * configure.in: Add Â«nb» to ALL_LINGUAS.
3520 2004-08-21  Steffen Macke <sdteffen@web.de>
3522         * plug-ins/dxf/dxf-export.c: Patch from 
3523         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3525 2004-08-17  Lars Clausen  <lars@raeder.dk>
3527         * config.h.win32: 
3528         * dia.spec (Release): 
3529         * doc/pl/dia.xml: 
3530         * doc/en/dia.xml: 
3531         * NEWS: 
3532         * configure.in: 
3534 2004-08-13  Ankit Patel <ankit@redhat.com>
3536         * configure.in: Added "gu" in ALL_LINGUAS.
3538 2004-08-07  Lars Clausen  <lars@raeder.dk>
3540         * configure.in:
3541         * config.h.win32: 
3542         * doc/pl/dia.xml: 
3543         * doc/en/dia.xml: 
3544         * dia.spec (Release): 
3545         * NEWS: New release 0.94-pre6
3547 2004-08-07  Lars Clausen  <lars@raeder.dk>
3549         * app/highlight.c (highlight_reset_objects): Unhighlight inside
3550         groups as well.
3552         * app/load_save.c: 
3553         * plug-ins/shape/shape-export.c: String capitalization fix from
3554         Alan Horkan <horkana@tcd.ie>
3556         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3557         Class object menu kinda work, rather than blow up.  Doesn't do a
3558         proper undoable change yet.
3560 2004-08-06  Lars Clausen  <lars@raeder.dk>
3562         * app/filedlg.c (file_save_as_callback): Don't remove related
3563         dialogs from the NULL diagram.
3565 2004-08-02  Lars Clausen  <lars@raeder.dk>
3567         * config.h.win32: 
3568         * doc/pl/dia.xml: 
3569         * doc/en/dia.xml: 
3570         * dia.spec (Release): 
3571         * NEWS: Pre5 with leak fix.
3573         * lib/font.c (dia_font_build_layout): Don't try to save an
3574         allocation of LayoutCacheItem if it breaks layout cache hash.
3575         Also make hash function correct, remove explicit height entry
3576         (it's in pfd), and make sure things are correctly unreffed.
3577         Finally fixes #148141.
3579         * lib/text.c (text_set_attributes, text_set_font): Safely unref
3580         when changing font, and actually set the new font in
3581         text_set_font(!).
3582         (text_get_attributes): Ref copied font.
3584 2004-08-01  Lars Clausen  <lars@raeder.dk>
3586         * NEWS: 
3587         * configure.in: 
3588         * dia.spec (Release): 
3589         * config.h.win32: 
3590         * doc/pl/dia.xml: 
3591         * doc/en/dia.xml: Prerelease 4.
3593         * lib/font.c (dia_font_build_layout): Better comparision and
3594         freeing of font cache.
3596 2004-07-31  Lars Clausen  <lars@raeder.dk>
3598         * lib/font.c (dia_font_build_layout): Faster update to avoid
3599         memory leaks.
3601         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3602         Correctly initialize export filter variable.
3604 2004-07-25  Lars Clausen  <lars@raeder.dk>
3606         * dia.spec (Release): 
3607         * configure.in: 
3608         * NEWS: 
3609         * config.h.win32: 
3610         * doc/en/dia.xml: 
3611         * doc/pl/dia.xml: Pre3 coming out.
3613         * lib/diarenderer.c (draw_polygon): 
3614         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3615         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3616         rather than O (letter), and assert num_points > 1 rather than the
3617         other way around.
3619         * app/recent_files.c: 
3620         * app/filedlg.c: 
3621         * app/diagram.c: 
3622         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3623         Make filenames conform to filesystem encoding.
3625         * RDP/.cvsignore: Added standard ignore.
3626         
3627         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3628         last entry patch-panel, too.
3630         * app/*.png:
3631         * shapes/Circuit/*.png:
3632         * shapes/Civil/*.png:
3633         * shapes/Contact/*.png:
3634         * shapes/Electric/*.png:
3635         * shapes/MSE/*.png:
3636         * shapes/Pneumatic/*.png:
3637         * shapes/SDL/*.png:
3638         * shapes/flowchart/*.png:
3639         * shapes/jigsaw/*.png:
3640         * shapes/network/*.png:
3641         * shapes/sybase/*.png:
3642         * samples/dia*.png:
3643         * dia_gnome_icon_large.png:
3644         * doc/pl/graphics/*.png: Set -kb for PNGs.
3645         
3646         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3648 2004-07-22  Lars Clausen  <lars@raeder.dk>
3650         * NEWS: 
3651         * config.h.win32: 
3652         * doc/en/dia.xml: 
3653         * doc/pl/dia.xml: 
3654         * dia.spec (Release): 
3655         * configure.in: Update to version 0.94-pre2.
3657         * app/load_save.c (diagram_data_write_doc): Use new namespace
3658         here, too.
3660         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3661         hidden objects properties.
3663         * objects/standard/line.c: Remove halffinished line gap box from
3664         properties list.
3666         * app/paginate_psprint.c: 
3667         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3668         Immidi): Close export and print dialog with diagram as well.
3669         (#129520)
3670         
3671         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3672         borelli):  Remove deprecated stuff (#137693)
3674         * app/dia-props.c (create_diagram_properties_dialog): Patch from
3675         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
3676         on destroy.
3678 2004-07-21  Ray Strode  <rstrode@redhat.com>
3680         * dia/dia.desktop.in: Add MimeType line to desktop file
3681         new mime sytem.
3683 2004-07-18  Hans Breuer  <hans@breuer.org>
3685         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
3686           sheets/UML/*.png : icons in png format
3687         Partial fixup of stuff broken with the following comment:
3688         "7 days : xpm->png, namespace fix, first rotation bits."
3690         * app/load_save.c(read_objects) : don't add objects to the layer.
3691         This function is called recursively and only the topmost objects
3692         belong in the layers object list. Fixes bug #145417 and is the
3693         the real fix for bug #142480
3694         
3695         * app/app_procs.c : make the --size hack even uglier, but work again
3696         
3697         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3698         but g_free() what is returned by g_build_filename()
3699         
3700         * objects/custom/custom_object.c(custom_destroy) : handle all enum
3701         values in switch to get rid of the warning
3702         
3703         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
3704         of setlocale()/strtod()
3705         * lib/dia_svg.c : dito
3706         * lib/dia_xml.c : almost
3708         * plug-ins/python/group_props.py : use the string representation of 
3709         value to ensure "unique values". If the strings would not be different
3710         the user cann't see the difference either
3712 2004-07-17  Lars Clausen  <lars@raeder.dk>
3714         * lib/persistence.h: Have "void" in prototypes (#142663)
3716         * lib/widgets.c (dia_font_selector_init): Better string handling
3717         (#142663) 
3719         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
3721         * objects/standard/image.c (image_load): Use path of diagram
3722         rather than running directory as base for image file place.
3724         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
3725         syntactic fixes. 
3726         
3727         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
3728         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
3730         * Re-added new sample diagrams binarily.
3732 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
3734         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
3735         Disabled keyboard accels when dragging an object.       
3737 2004-07-14  Lars Clausen  <lars@raeder.dk>
3739         * app/grid.c (snap_to_grid): Use diagrams grid setting to
3740         determine hex grid snap.
3742         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
3743         
3744         * app/interface.h: Avoid multiply defined symbols (#147396)
3746 2004-07-10  Lars Clausen  <lars@raeder.dk>
3748         * app/sheets_dialog_callbacks.c (write_user_sheet): 
3749         * lib/sheet.c (load_register_sheet): Don't introduce double
3750         slashes in namespace.
3752         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
3753         old diagrams, or XSLT will barf all over.
3754         
3755         * shapes/RDP/place.shape: 
3756         * shapes/RDP/transition.shape: 
3757         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
3758         shapes to use those.
3760 2004-07-07  Lars Clausen <lars@raeder.dk>
3762         * config.h.win32: 
3763         * doc/{en,pl}/dia.xml: 
3764         * dia.spec: 
3765         * configure.in: 
3766         * NEWS: First prerelease of version 0.94.  Now with release
3767         versions in a branch and main devel in the trunk.
3769 2004-07-05  Hans Breuer  <hans@breuer.org>
3771         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
3772         -std=c89. Mostly //-comments and M_PI -> G_PI
3773         [Istar, Jackson, KAOS were removed from build cause they
3774         simply have *too* much C++ comments ;]
3775         * object/UML/association.c : use g_strdup() not plain strdup()
3776         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
3777         isn't known with more portable signal code
3778         
3779         * app/app_procs.c : don't call gtk_init() if just --version
3780         is requested (bug #144321, Vladimir Kondratiev)
3781         
3782         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
3783         DiaFont* if not NULL
3784         * objects/UML/class.c : moved fill_in_fontdata() to 
3785         umlclass_load() to avoid such trouble, though unsure if
3786         this really is an improvement...
3787         
3788         * shapes/network/makefile.am : patch-panel added here too
3790 2004-07-04  Hans Breuer  <hans@breuer.org>
3792         * sheets/network.sheet.in shapes/network/patch-panel.xpm
3793           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
3794         fixes bug #136629, James McDonald
3796 2004-07-04  Hans Breuer  <hans@breuer.org>
3798         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
3799           lib/object_defaults.c : revert changing of Dia's XML namespace
3800         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
3801         about its purpose and relation to real world urls.
3803         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
3804         added comment about when to do so
3805         [Should have been long time ago and probably multiple times
3806         to avoid crashing on older plug-ins]
3807         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
3808         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
3810         * lib/object.c objects/UML/class.c : there are still compilers not 
3811         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
3812         on the stack
3813         * objects/UML/class.h : there is a differnce between a list pointer
3814         and a list pointer pointer. We and GLib want the former.
3816         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
3817         if Gtk is initialized. Using gdk_display_get_default () avoids the
3818         app/* dependency and is also closer to the requirements of the
3819         plug-ins working.
3821         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
3822         some #ifdefed support for Cairo backends not public available yet.
3824         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
3825         windoze platform supports them. This should fix bug #109818, at
3826         least for the majority running NT or above ...
3827         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
3829         * objects/makefile.msc : build Istar, Jackson and Kaos
3831         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
3832         keep old diagrams as they were - instead of this nice new effect ;-)
3833         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
3835         * objects/UML/class.c : mark for translation _("Wrap ...
3837         * objects/UML/class.c : more correct types, also some default properties
3838         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
3840         * objects/UML/activity.c : removed a leftover from the 
3841         use-localization-for-font-substitution-hack
3843         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
3844         'cvs admin -kb *.png' PNG files should already be *added* as binary,
3845         otherwise they are not readable on line-end-converting-platforms
3847         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
3848         filter_get_by_name()
3850         * plug-ins/python/pydia-property.c : some more g_warnings for
3851         not implemented conversions
3853         * plug-ins/python/group_props.py : ensure unique property values
3854         at the right place. Now something like :
3855         - load an old UML class diagram
3856         - change one of the classes to wrap operations
3857         - select all classes (/Select/Same Type)
3858         - /Dialogs/Group Properties : check wrap_operations, select '1'
3859         - Ok, works like a charm :-)
3861 2004-07-04  Lars Clausen  <lars@raeder.dk>
3863         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
3864         pixbuf. (#145362)
3865         
3866 2004-07-03  Lars Clausen  <lars@raeder.dk>
3868         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
3869         <LAV@VL3143.spb.edu>: Fixes console output problems and some
3870         interactiveness problems.
3872 2004-07-02  Lars Clausen  <lars@reader.dk>
3874         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
3875         app isn't interactive.
3877 2004-07-01  Lars Clausen  <lars@raeder.dk>
3879         * plug-ins/cairo/diacairo.c: Add init of last field of filter
3880         struct to remove crash.
3882         * sheets/Makefile.am (sheet_in_files): 
3883         * shapes/Makefile.am: 
3884         * sheets/ChemEng.sheet.in: 
3885         * shapes/ChemEng/Makefile.am: 
3886         * configure.in: 
3887         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
3888         Chemical engineering shapes.
3889         
3890         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
3891         multiple arguments when using devel script.
3893         * app/display.c (new_display): 
3894         * app/dia-props.c: 
3895         * lib/diagramdata.c (new_diagram_data): 
3896         * lib/diagramdata.h: 
3897         * app/preferences.h: 
3898         * app/preferences.c: 
3899         * app/grid.c: 
3900         * app/diagram.c: 
3901         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
3902         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
3904         * HACKING: 
3905         * doc/pl/authors.xml: 
3906         * doc/en/authors.xml: 
3907         * lib/object_defaults.c (dia_object_defaults_save): 
3908         * readme.win32 (BTW): 
3909         * lib/persistence.c (persistence_save): 
3910         * app/load_save.c (diagram_data_write_doc): 
3911         * app/commands.c (help_about_callback): 
3912         * README: Fix links to home page.
3914         * lib/font.c: 
3915         * app/load_save.c (diagram_data_load): 
3916         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
3917         loading, and guard against them when fonting.
3919         * lib/diarenderer.c (draw_rounded_polyline): Patch from
3920         anthonym@overture.com:  Make limited rounding a corner-specific
3921         rendering-only thing.
3923 2004-06-30  Lars Clausen  <lars@raeder.dk>
3925         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
3926         adjustment: If you can't fix it, at least don't change it.
3928         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
3929         code instead of individual code in here.
3931 2004-06-29  Lars Clausen  <lars@raeder.dk>
3933         * objects/UML/association.c: Patch from Kiran
3934         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
3935         text. 
3937         * lib/geometry.c: 
3938         * lib/geometry.h: 
3939         * lib/diarenderer.c (draw_rounded_polyline): 
3940         * objects/standard/polyline.c (polyline_draw): 
3941         * objects/standard/zigzagline.c (zigzagline_draw): 
3942         Patch from anthonym@overture.com:  Add rounded polylines.
3944 2004-06-27  Lars Clausen  <lars@raeder.dk>
3946         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
3948         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
3949         free family list before taking out the pointer we need. Also set
3950         the entry_nr correctly so we get the menu set up right.
3952 2004-06-23  Lars Clausen  <lars@raeder.dk>
3954         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
3955         images at the right place.
3957         * objects/Istar/actor.c
3958         * objects/Istar/goal.c
3959         * objects/Istar/istar.c
3960         * objects/Istar/istar.h
3961         * objects/Istar/link.c
3962         * objects/Istar/other.c
3963         * objects/Jackson/domain.c
3964         * objects/Jackson/jackson.c
3965         * objects/Jackson/jackson.h
3966         * objects/Jackson/phenomenon.c
3967         * objects/Jackson/requirement.c
3968         * objects/KAOS/goal.c
3969         * objects/KAOS/kaos.c
3970         * objects/KAOS/kaos.h
3971         * objects/KAOS/metaandorrel.c
3972         * objects/KAOS/metabinrel.c
3973         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
3974         <cp@cetic.be>: Fix instability issues caused by not returning NULL
3975         in *_move_handle and *_move.  Also improved the headers with
3976         correct (c) information.
3978 2004-06-22  Lars Clausen  <lars@raeder.dk>
3980         * objects/KAOS/goal.c:
3981         * objects/KAOS/other.c:
3982         * objects/Istar/actor.c:
3983         * objects/Istar/goal.c:
3984         * objects/Istar/other.c:
3985         * objects/Jackson/domain.c:
3986         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
3987         <cp@cetic.be>: Fix resize issues.
3989         * app/filedlg.c (file_dialog_hide): Patch from Kiran
3990         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
3991         related dialog. #129520.
3993         * app/dia-props.c (diagram_properties_show): Patch from Kiran
3994         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
3995         a child of its diagram. #129520.
3997         * objects/UML/association.c (association_load): Patch from Kiran
3998         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
3999         text placement. #118313.
4001 2004-06-17  Lars Clausen  <lars@raeder.dk>
4003         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
4005         * Makefile.am: Make THANKS only be generated by maintainers.
4007         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
4008         Makefile, too.
4010         * configure.in: Added three missing Makefiles.
4012         * app/diagram.[ch]: 
4013         * app/filedlg.c:
4014         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
4015         diagram-related (save) dialog when closing diagram.  To be
4016         extended to other dialogs.
4018         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
4020         * samples/Istar.dia:
4021         * samples/Jackson.dia:
4022         * samples/KAOS.dia:
4023         * sheets/Istar.sheet.in:
4024         * sheets/Jackson.sheet.in:
4025         * sheets/KAOS.sheet.in:
4026         * sheets/Istar/*:
4027         * sheets/Jackson/*:
4028         * sheets/KAOS/*:
4029         * objects/Istar/*:
4030         * objects/Jackson/*:
4031         * objects/KAOS/*:
4032         * configure.in: 
4033         * objects/Makefile.am (SUBDIRS): 
4034         * sheets/Makefile.am (SUBDIRS): 
4035         * samples/Makefile.am: Additions from Christophe Ponsard
4036         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
4037         of hacking still.
4039 2004-06-12  Lars Clausen  <lars@raeder.dk>
4041         * lib/properties.h: 
4042         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
4044         * lib/font.h: Toning down comments a bit:)
4046         * lib/font.c (dia_font_build_layout): Playing around with DPI 
4048         * objects/UML/association.c (association_load): Avoid crashes on
4049         strcmp with NULL.
4051         * objects/UML/association.c: Patch from kimmidi@novell.com:
4052         Improve placement of labels when vertical.  Part fix of #118313
4054         * lib/object.c (dia_object_is_selected): Grouped objects are not
4055         selected, only the group itself.  Thus, don't crash when grouping
4056         beziers. #143681
4058         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
4059         on how to represent empty strings.  Fixes #143639.
4061         * lib/object.c (dia_object_is_selected): Added comment answer.
4063 2004-06-12  Hans Breuer  <hans@breuer.org>
4065         * lib/diagramdata.c lib/object.c : deal with grouped objects
4066         not knowing their parent_layer, i.e. avoid crashing in 
4067         dia_object_is_selected() via group_draw() [ Triggered by
4068         playing with the Visio generated svg from bug #143455 ]
4070         * plug-ins/python/diasvg_import.py : started to implement
4071         transformation="translate(...)" and <style/> handling. Also
4072         use some other completely bogus values for em/ex scaling
4073         
4074 2004-06-08  Lars Clausen  <lars@raeder.dk>
4076         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4078 2004-06-07  Lars Clausen  <lars@raeder.dk>
4080         * app/layer_dialog.c (layer_dialog_set_diagram): 
4081         * app/display.c: Layer widget crash more properly dealt with in
4082         layer dialog code.
4083         
4084         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
4085         widget deselect was called during destroy, but called
4086         ddisplay_flush, leading to a new display timeout after renderer
4087         was dead.
4089         * lib/widgets.c (dia_toggle_button_destroy): 
4090         * app/recent_files.c (recent_file_menuitem_create): 
4091         * lib/persistence.c (persistence_save_list): 
4092         * app/commands.c (edit_delete_callback): 
4093         * lib/object_defaults.c (dia_object_defaults_save): 
4094         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4095         (#142669)
4096         
4097         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4098         debugging info.
4100         * lib/diagramdata.c (new_layer): Initialize connectibility.
4102         * app/display.c (ddisplay_obj_render): 
4103         * app/diagram.c (diagram_find_closest_connectionpoint): Take
4104         connectibility into account.
4106         * app/layer_dialog.h (struct _DiaLayerWidget): 
4107         * app/layer_dialog.c:
4108         Connectible toggle updates, now works fairly well.
4110         * app/select.c (select_transitive_callback): Make sure we're only
4111         selecting in the same layer.
4113 2004-06-04  Lars Clausen  <lars@raeder.dk>
4115         * app/pixmaps/Makefile.am: Also install connectable images.
4116         
4117         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4118         layer toggles from layer itself.  Also update diagram correctly
4119         for visibility.  Still need updates for connectivity behaviour.
4121 2004-06-03  Hans Breuer  <hans@breuer.org>
4123         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4125         * lib/diagdkrenderer.c(set_linejoin) : actually set
4126         join_style not cap_style
4127         (set_dashes): with the correct number of dashes
4129 2004-06-03  Lars Clausen  <lars@raeder.dk>
4131         * app/modify_tool.c (click_select_object): 
4132         * lib/text.c (text_set_cursor): 
4133         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4135 2004-05-31  Hans Breuer  <hans@breuer.org>
4137         * lib/object_defaults.c : don't 'failed to load external 
4138         entity "NULL"' when the defaults file does not exist, 
4139         bug #108764 [again: somehow this got lost]
4141         * app/paginate_gdiprint.cpp : don guess the WMF export 
4142         filter used for printing but find it by unique name.
4143         Also update for export_func renaming
4144         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4145         provide some unique names
4147         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
4148           app/select.c : fix bug #140789 by always checking if there
4149         still is an active diagram before accessing it
4151         * app/defaults.c app/properties.c : user visible string should 
4152         not read DiaObject but stay as "Object defaults/properties"
4154         * app/app_procs.c : reduce the hack to pass --size to the
4155         export via user_data to the only filter supporting it. Other
4156         filters would crash on it or do worse ;(
4158         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4160 2004-05-31  Lars Clausen  <lars@raeder.dk>
4162         * lib/widgets.h: 
4163         * lib/widgets.c: Use GtkType rather than guint for
4164         dia_size_selector_get_type. 
4166 2004-05-29  Lars Clausen  <lars@raeder.dk>
4168         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4169         that it matches the screen output for selfoverlapping polygons and
4170         beziers. 
4172 2004-05-28  Hans Breuer  <hans@breuer.org>
4174         * app/load_save.c : ignore empty groups on load and don't
4175         write empty groups while saving
4176         * lib/group.h (group_update_data): there is no first object
4177         in empty groups and they probably don't need an update at 
4178         all. Maybe the shold just not exist ?
4180         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4181         text positioning as well as drawing of images with alpha
4183         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4184         HAVE_WINDOWS_H or G_OS_WIN32 is defined
4186 2004-05-28  Lars Clausen  <lars@raeder.dk>
4188         * app/pixmaps/Makefile.am (imagedir): 
4189         * app/pixmaps/visible.png:
4190         * app/pixmaps/visible-empty.png: New images for the visibility
4191         button in the layer dialog.
4193         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4194         more border around the button.  Still some left when hovering the
4195         mouse or selecting, and the grey background is annoying.
4197         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4198         visibility connector.
4200 2004-05-26  Lars Clausen  <lars@raeder.dk>
4202         * configure.in (DB2MAN): Better check for db2man docbook place.
4203         Need something even better.
4205         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4207         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4208         extraeneous borders.
4210         * dia_logo.png:
4211         * dia_gnome_icon.png:
4212         * samples/render-test.dia: Rendering test from Hans.
4214 2004-05-24  Hans Breuer  <hans@breuer.org>
4216         * lib/filter.h : renamed DiaExportFilter::export to
4217         _DiaExportFilter::export_func (should not use c++ 
4218         keywords (g++ specifc ?) in headers. Same for import
4219         out of pure symmetry reasons
4220         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4221           app/diagram.c app/filedlg.c : reflect functions renaming
4223         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4224         under *NIX, too. [If you want something done, do it yourself ;-]
4225         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4226         with wmf.cpp's GDI usage
4227         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4228         [For the moment it does not much more than compiling, i.e. 
4229         the produced WMF files are invalid, if not created on windoze.]
4231         * configure.in : check for C++ to compile plug-in/wmf
4232         
4233         * objects/GRAFCET/boolequation.c : looks like fixing 
4234         another leak (untested)
4236 2004-05-23  Hans Breuer  <hans@breuer.org>
4238         * acinclude.m4 : another attempt to fix 
4239         bug #142032 (still not sure it's the right one,
4240         but works for me(tm), which the other does not ;)
4241         
4242         * plug-ins/cairo/Makefile.am
4243           plug-ins/Makefile.am 
4244           configure.in : support building the new cairo
4245         plug-in, if given --with-cairo and the cairo
4246         packages are found, see http://cairographics.org
4247         and also http://hans.breuer.org/dia/dia-cairo.htm
4249         * plug-ins/cairo/diacairo.c : make it compile
4250         with DEBUG_CAIRO defined, too.
4252 2004-05-23  Hans Breuer  <hans@breuer.org>
4254         * plug-ins/cairo/Makefile.am : initial attempt
4256         * plug-ins/cairo/diacairo.c : a new exporter based on
4257         Cairo http://cairographics.org rendering api. Currently
4258         it just can export PNG and PS but one day it might get
4259         PDF and more almost for free. [It is not yet included
4260         in the *NIX build system due to lack of auto* magic.]
4262         * plug-ins/pixbuf/pixbuf.c : always register the export
4263         filter part. If the user does not want it it can be 
4264         disabled by File/Plugins or explicit selected the other
4265         one in the Export Formats List
4267 2004-05-23  Hans Breuer  <hans@breuer.org>
4269         * lib/dia_dirs.c : #include "message.h"
4270           lib/widgets.c : #include "persistence.h"
4271           lib/widgets.c(dia_font_selector_init) : still not C99
4272           lib/persitence.h : removed unimplemented prototype
4273           lib/persitence.c(persistence_load_list) : still not C99
4274           app/create_object.c : #include "highlight.h"
4275           app/layer_dialog.c : #include "widgets.h"
4276           app/modify_tool.c : prototype functions before usage
4277           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4278         [otherwise one will have a hard time to make C++ compile ;]
4279           lib/dia_dirs.c : #include "message.h"
4280           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4281           lib/
4283         * plug-ins/xfig/xfig-import.c : dont initialize an int with
4284         a string pointer
4286         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4287         as documented, i.e. _not_ copying. Plugs a memory leak in
4288         lib/dialibartrenderer.c
4290         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4291         to radius to more of a clue what it is representing
4293         * */makefile.msc lib/libdia.def : updated
4295         ChangeLog : fixed some date copy&paste bug
4297 2004-05-21  Lars Clausen <lars@raeder.dk>
4299         * NEWS: Release tag.
4301         * config.h.win32: Now 0.93+cvs
4303         * RELEASE-PROCESS: Update with new info about release branches.
4304         
4305         * Many files:  Moved devel branch back into main trunk.  Should
4306         have been done in the opposite way, with release in a branch.  
4307         
4308 2004-05-20  Hans Breuer  <hans@breuer.org>
4310         * acinclude.m4 : disable setting of PYTHON_PREFIX
4311         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4312         as workaround for bug #142032 (the real fix would 
4313         involve some auto* knowledge which I don't have
4314         either;)
4315         
4316         * plug-ins/python/Makefile.am : more python 
4317         plug-ins to be installed (especially svg import,
4318         but also 'simple scale' should be useable 
4319         sometimes)
4320         
4321         * plug-ins/python/scascale.py : update display
4322         after modifying selected objects
4323         
4324         * plug-ins/python/diasvg_import.py : initialize
4325         stroke to none
4326         
4327 2004-05-18  Lars Clausen  <lars@raeder.dk>
4329         * app/diagram_tree.c (select_node): Use
4330         diagram_remove_all_selected to kill selected list.
4332         * lib/font.c: Set language when using a different context.
4334         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4335         and removed ctype include (#142661).
4337         * lib/paper.c (get_default_paper): Changed isalnum to
4338         g_ascii_isalnum and removed ctype include. (#142661)
4340         * objects/custom/shape_info.c: 
4341         * lib/dia_svg.c: 
4342         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4344 2004-05-17  Hans Breuer  <hans@breuer.org>
4346         * lib/object_defaults.c : don't 'failed to load external 
4347         entity "NULL"' when the defaults file does not exist, 
4348         bug #108764
4350         * lib/widgets.c : fixed possible menu leak
4351         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4352         avoid finalization of floating references, bug #142307
4354 2004-05-15  Lars Clausen  <lars@raeder.dk>
4356         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4357         fonts better (#138655)
4358         
4359         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4361         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4362         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
4364         * Makefile.am (CLEANFILES): 
4365         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4366         translation-reports, they are generated automagically.  THANKS
4367         file not considered locally generated, so is not locally
4368         cleaned. (#133735) 
4370         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4372         * lib/diaarrowchooser.c: 
4373         * lib/prop_attr.c: Fixing naming for arrowselector.
4375         * objects/UML/object.c (objet_type): Oops, little too aggressive
4376         with the DiaObject thing here:)
4378         * objects/custom/shape_info.c (parse_svg_node): Use
4379         g_ascii_isdigit instead of isdigit.
4381         * app/diaunitspinner.c (dia_unit_spinner_update): 
4382         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4383         instead of isspace avoids char subscript issues (#142467).
4385         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4386         return value conflict.
4388         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4389         value conflict.  Also improved signature. (#142466)
4391         * app/load_save.c (diagram_data_load): Don't overwrite the list in
4392         the layer, but instead free the returned list (#142480)
4394         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4395         for the grid widget.
4397         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4399         * configure.in (DB2MAN): Currently just check for two known
4400         positions for the docbook xsl.  Don't know a generic way to find
4401         this info.  Ought to add an option for it, but then it's really
4402         only required for maintainers, I think.  Maybe.
4404         * app/display.c (update_snap_grid_status): Remove nasty image
4405         toggling code not require for grid toggle button anymore. (#142475)
4407         * app/interface.c (create_display_shell): Use
4408         dia_toggle_button_new_with_images to create grid toggle button.
4409         Much nicer. (#142475)
4411         * app/menus.c (menus_initialize_updatable_items): Free the string
4412         along with the GString. (#142475)
4414         * lib/intl.c (free_alias_table): Free hash table entries in a
4415         proper way, avoiding duplicate frees. (#142475)
4417         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4418         not put in the hash (avoid reading freed memory). (#142476)
4420         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4421         faces. (#142484)
4422         (dia_font_selector_get_family_from_name): Stop leaking
4423         families. (#142482) 
4425 2004-05-14  Lars Clausen  <lars@raeder.dk>
4427         * Transfer of fixes from release branch.  Not the prettiest way to
4428         do it, this should be done during release, not afterwards.
4430         Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4432         * acinclude.m4: minor fixes (added missing [] quotation).
4434         Lars Clausen  <lars@raeder.dk>:
4436         * app/interface.c (toolbox_delete): 
4437         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4438         cancels quit due to modified diagrams.
4440         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
4442         * is.po: Added "is" to ALL_LINGUAS.
4444         Lars Clausen  <lars@raeder.dk>:
4446         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4448         Hans Breuer  <hans@breuer.org>:
4450         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
4451         burden should be shared and not be win32 only ;) [this time 
4452         build was broken by adding GtkType to widget.h]
4454         * objects/standard/box.c objects/standard/ellipse.c :
4455         for code clarification compare (obj->aspect != FREE_ASPECT)
4456         and not (obj->aspect); no binary effect.
4458         * app/paginate_psprint.c : don't leak printcmd
4460         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4461         standard C requires variables to be declared at the beginning of 
4462         a block, also there is no fabsf() with msvc
4463         
4464         * app/win32print.[ch] : make win32_printer_close() return an
4465         error code, it's used as pclose replacement
4467         Lars Clausen  <lars@raeder.dk>:
4469         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4471 2004-05-06  Lars Clausen  <lars@raeder.dk>
4473         * lib/widgets.[ch]: Utility function to make a widget with two
4474         images (selected and non-selected).
4476         * lib/diagramdata.h: Renamed selectable to connectable.
4477         Selectable will come later.
4479         * configure.in: 
4480         * app/pixmaps/Makefile.am (imagedir): 
4481         * app/pixmaps/connectable.png:
4482         * app/pixmaps/connectable-empty.png: New images for the
4483         selectability widget.  Proper installation, too.
4485         * app/layer_dialog.[ch]: Adding new button showing connectability
4486         status.  Much cleaner way of doing the button, but some problems
4487         with the item getting selected
4489         * lib/widgets.h: Reminder of how to install images for use by
4490         dia_get_image_from_file.
4492 2004-05-05  Lars Clausen  <lars@raeder.dk>
4494         * objects/network/Makefile.am: 
4495         * objects/network/pixmaps/radiocell.xpm: 
4496         * objects/network/pixmaps/basestation.xpm: 
4497         * objects/network/network.c: 
4498         * objects/network/basestation.c: 
4499         * objects/network/radiocell.c: 
4500         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4501         station objects.
4503         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4504         Backslash arrow head. 
4506         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4507         Notify takes care.  Should maybe use that more.
4509         * lib/diagramdata.[ch]: 
4510         * app/filedlg.c (file_export_ok_callback): 
4511         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4513         * app/dia-props.c (diagram_properties_respond): 
4514         * app/diagram.c (diagram_set_modified): 
4515         * app/undo.c: 
4516         * app/disp_callbacks.c: 
4517         * app/commands.c: 
4518         * app/load_save.c (diagram_save): 
4519         Better handling of undo and modified status -- only diagram
4520         properties and page setup explicitly set modified status, all
4521         other important changes should be done through the undo stack
4522         now.
4524 2004-05-04  Lars Clausen  <lars@raeder.dk>
4526         * app/app_procs.c (app_init): Consistently open a new diagram if
4527         none specified, with standard name Diagram1.dia.
4529         * app/layer_dialog.c: 
4530         * app/diagram.c (diagram_finalize): 
4531         * app/commands.c (dialogs_layers_callback): 
4532         * app/filedlg.c (file_export_ok_callback): 
4533         * app/app_procs.c (app_exit): 
4534         * app/display.c (display_set_active): 
4535         * app/interface.c (dia_dnd_file_drag_data_received): 
4536         * app/recent_files.c: 
4537         Undone attempt at unifying the multi-diagram windows (like
4538         layers).  It broke the layers and didn't make much sense for the
4539         diagram properties dialog anyway.
4541         * lib/group.c: 
4542         * lib/diatypes.h: 
4543         * lib/diagramdata.c: 
4544         * lib/object.h: 
4545         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4546         many subclasses have to be fixed.  Fixed remaining
4547         Object/ObjectType renaming issues.
4549 2004-05-02  Lars Clausen  <lars@raeder.dk>
4551         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
4552           having to make all the children objects conform to
4553           GObject style at once?  Warning!  Does not compile right now.
4555         * many, many files: Rename Object to DiaObject in preparation for
4556           making it a GObject.
4557         
4558         * app/diagram.[ch]: Turn diagram into a real GObject.
4560         * app/pagesetup.c: 
4561         * app/filedlg.c: Correctly ref and unref diagram. 
4563         * lib/diagramdata.h: Starting to turn it into a GObject as well.
4565 2004-05-02  Lars Clausen  <lars@raeder.dk>
4567         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4568         GObject. 
4570         * app/dia-props.c: Undo the attempt at making it really
4571         multi-diagram, now going for a one-diagram dialog.
4573 2004-04-30  Lars Clausen  <lars@raeder.dk>
4575         * app/undo.c: Undoing broken undo stuff for diagram properties and
4576         page setup.  Shouldn't be mixed into undo at all.
4578         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4579         function to avoid in particular the grid crawling.
4581         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4582         to allow aligning dashes, so they don't crawl.
4584 2004-04-28  Lars Clausen  <lars@raeder.dk>
4586         * app/Makefile.am: New files diacanvas.[ch]
4588         * app/interface.c (create_display_shell): Use new diacanvas that
4589         allows placing widgets on canvas, for text edit.
4591         * lib/object.h: 
4592         Early work towards rotation.  No implementation yet.
4594         * app/layer_dialog.c (undo_layer): 
4595         * objects/network/bus.c (bus_create_change): 
4596         * objects/standard/box.c (aspect_create_change): 
4597         * objects/standard/ellipse.c (aspect_create_change): 
4598         Use g_new0 for change struct.
4600         * app/undo.c (diagram_change_apply_or_revert): 
4601         Support for undo of diagram properties and page setup.
4603         * app/disp_callbacks.c (ddisplay_canvas_events): 
4604         * lib/text.h: 
4605         * lib/diagramdata.h: 
4606         * app/modify_tool.c (click_select_object): 
4607         * lib/text.c (text_register_editable): 
4608         Starting work on new text editing model.  Guarded by #ifdef so
4609         far. 
4611 2004-04-07  Lars Clausen  <lars@raeder.dk>
4613         * app/recent_files.c (open_recent_file_callback): 
4614         * app/interface.c (origin_button_press): 
4615         * app/filedlg.c (file_open_ok_callback): 
4616         * app/display.c: 
4617         * app/diagram.[ch]: 
4618         * app/commands.c (dialogs_layers_callback): Using new
4619         diagram_set_current() function to ensure auxilliary windows are
4620         updated. 
4622         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
4623         menu now borken.  *sniff*
4625         * app/dia-props.c: Diagram properties window attempted
4626         persistentified.  Trying to make more like layer dialog (since it
4627         already changes when the diagram changes), but some things still
4628         borken. 
4630 2004-04-06  Lars Clausen  <lars@raeder.dk>
4632         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
4633         * lib/attributes.c (attributes_set_default_line_style): 
4634         * app/interface.c (create_lineprops_area): 
4635         Make line style persistent as well.  Added function to directly
4636         set the style and dashlength of a dialinechooser. 
4638 2004-04-03  Lars Clausen  <lars@raeder.dk>
4640         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4641         Copy the ellipse extra handle correctly.
4643         * objects/standard/box.c (box_move_handle): Move definitions
4644         according to bug #138925.
4646 2004-04-02  Lars Clausen  <lars@raeder.dk>
4648         * app/recent_files.c: Use absolute name for recent files list.
4650         * lib/attributes.c: Set start and end arrow types, correctly.
4652         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4653         to get arrow index.
4655         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4657         * app/interface.c (create_lineprops_area): Set persistently stored
4658         arrow info.
4660         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4661         from arrow type.
4663         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4664         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
4666         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4667         with what xfig does.  Text now converted from latin-1 to utf-8
4668         (latin-1, since that's what xfig seems to use.  Would like to see
4669         examples of non-latin-1 figs).  String case problems fixed.
4671 2004-04-01  Lars Clausen  <lars@raeder.dk>
4673         * lib/attributes.c: 
4674         * app/interface.c: Default arrows now stored persistently, too.
4676         * lib/arrows.[ch]: New function to get arrow type from name.
4678         * app/color_area.c (color_area_create): 
4679         * lib/attributes.c: 
4680         * app/linewidth_area.c: Also persistent colors and line width.
4681         That was easy.  Arrows and line style will take a bit more work,
4682         but not much.
4684 2004-04-01  Lars Clausen  <lars@raeder.dk>
4686         * app/preferences.c:   All preferences are now
4687         handled by persistence, old prefs load and store code is gone.
4689         * lib/persistence.[ch]: Added string and color persistents.  This is
4690         a different string from the one used in the printer dialog, that
4691         one has a GtkEntry attached -- may want to make that one an
4692         encapsulation of this one or something.
4694 2004-03-31  Lars Clausen  <lars@raeder.dk>
4696         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
4697         phased out anyway.
4698         
4699         * lib/persistence.[ch]: 
4700         * app/preferences.c: Adding persistence for integers, reals,
4701         booleans.  Fixed stupid list bug.  Test persistence for prefs.
4703 2004-03-30  Lars Clausen  <lars@raeder.dk>
4705         * app/recent_files.c: 
4706         Debugging of deallocation.
4707         
4708         * lib/widgets.c: 
4709         Font menu now uses persistence.  Ordering needs fixing, or it must
4710         be sorted.
4712         * lib/libdia.def: 
4713         * lib/Makefile.am (libdia_la_SOURCES): 
4714         * app/Makefile.am (dia_core_files): 
4715         * app/persistence.[ch]: 
4716         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
4717         number of fixes, including multiple entries now being read
4718         properly.  Still some oddity about the persistent list having the
4719         role as first entry (which makes the font menu crash after a few
4720         iterations). 
4722 2004-03-26  Lars Clausen  <lars@raeder.dk>
4724         * app/persistence.c:
4725         * app/recent_files.[ch]: Redoing the recent-files list using
4726         persistence, reducing code by about 50%.  Still a problem when
4727         selecting an item from the menu -- possibly it doesn't like the
4728         menu being destroyed while in the callback?
4730 2004-03-25  Lars Clausen  <lars@raeder.dk>
4732         * app/persistence.c (persistence_load_string): Missing semicolon?!?
4734 2004-03-24  Lars Clausen  <lars@raeder.dk>
4736         * RELEASE-PROCESS: 
4738         * app/persistence.[ch]: 
4739         * app/paginate_psprint.c (diagram_print_ps): New type of data can
4740         be stored persistently:  Strings.  Only the printer command/file
4741         go in here now, but things like creator, organization, diagram
4742         comments etc could also be handled this way.
4744         * objects/standard/beziergon.c (beziergon_draw): Avoid control
4745         lines when the object is not selected.
4747 2004-03-23  Lars Clausen  <lars@raeder.dk>
4749         * lib/connectionpoint.h: 
4750         * app/load_save.c: Allow connection points to have names, and
4751         handle that in load/store.
4753         * lib/dialibartrenderer.c: Better highlighting for text.
4755         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
4756         * lib/diagdkrenderer.c: Better highlighting for all, using same
4757         principles as libart highlighter.
4759 2004-03-22  Lars Clausen  <lars@raeder.dk>
4761         * lib/dialibartrenderer.[ch]: 
4762         * lib/diagdkrenderer.c: 
4763         * lib/object.h: 
4764         * app/object_ops.c:
4765         * app/diagram.[ch]:
4766         * app/display.[ch]:
4767         * app/Makefile.am: 
4768         * app/modify_tool.c: 
4769         * app/create_object.c: 
4770         * app/highlight.[ch]: 
4771         Added simple object highlighting.  In GDK rendering, highlights
4772         the bbox, in libart highlights the outline of the object (except
4773         for texts).
4775 2004-03-22  Lars Clausen  <lars@raeder.dk>
4777         * RELEASE-PROCESS: Added info on how to do a branch for
4778         development during release process.
4780 2004-03-20  Lars Clausen  <lars@raeder.dk>
4782         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4784 2004-03-19  Lars Clausen  <lars@raeder.dk>
4786         * xmldocs.make: Fixed apparent uninstall error.
4788         * config.h.win32: 
4789         * doc/en/dia-manual.xml: 
4790         * doc/pl/dia-manual.xml: 
4791         * dia.spec: 
4792         * configure.in: 
4793         * NEWS: Version 0.93-pre1.
4795         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
4796         borelli):  Remove some deprecated stuff.
4798 2004-03-18  Lars Clausen  <lars@raeder.dk>
4800         * Makefile.am: Try better uninstall thing for scrollkeeper.
4802         * objects/ER/entity.c: 
4803         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
4804         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
4805         1, 1 exactly, as well as associative ER entities.
4807 2004-03-17  Lars Clausen  <lars@raeder.dk>
4809         * Makefile.am: Make distcheck not complain about scrollkeeper
4810         problems (as per advice from James Henstridge).
4812         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
4813         standard installation.
4815         * objects/standard/ellipse.c: Better strings for object menu.
4817         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
4818         of dialogs (shame on you, glade!)
4820         * objects/custom/custom_object.c (custom_setup_properties):
4821         Removed debugging output
4823         * app/paginate_psprint.c (diagram_print_ps): Slightly more
4824         readable printer error messages.
4826         * xmldocs.make: 
4827         * omf.make: 
4828         * doc/en/Makefile.am: 
4829         * doc/pl/Makefile.am: 
4830         New more standard way to install the XML-based manuals.  
4832 2004-03-15  Lars Clausen  <lars@raeder.dk>
4834         * objects/standard/box.c (box_move_handle): More intuitive fixed
4835         aspect behaviour.
4837         * objects/standard/ellipse.c: 
4838         * objects/standard/box.c: 
4840         * lib/widgets.[ch]:
4841         * app/layer_dialog.[ch]:
4842         Patch from Steve Langasek <vorlon@debian.org>:
4843         Fixes startup crash on Alpha (bug #137169)
4844         
4845         * objects/standard/box.c: Aspect fixing like ellipses.
4847         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
4849         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
4850         pixmaps, now can uninstall properly.
4852         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
4853         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
4854         #93940. 
4855         Added object menu access.
4857 2004-03-07  Hans Breuer  <hans@breuer.org>
4859         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
4860         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
4861         would not use deprecated apis, but it's much simpler this way)
4863         * lib/makefile.msc : build the above new widgets and render_pixmap
4864         * lib/libdia.def app/dia.def app/makefile.msc : updated
4866         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
4867         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
4868         Previously it gave :
4869         disp_callbacks.c(188) : error C2059: syntax error : '}'
4870         disp_callbacks.c(191) : warning C4034: sizeof returns 0
4872         * app/interface.c : #include "dialinechooser.h"
4874         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
4875         [one more reason not to use it here : it's quite slow compared to
4876          the native win32 font renderer ;]
4878         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
4879         a GtkDialog*, removed unneeded cast
4881         * app/render_eps.c : avoid assignment warning for void* user_data
4882         not being an int 
4884 2004-03-06  Steffen Macke sdteffen@web.de>
4886         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
4887         shapes
4889 2004-03-06  Lars Clausen  <lars@raeder.dk>
4891         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
4892         0.5, as per poll.
4894         * lib/font.c: Simple cleanup system for layout cache removes any
4895         layout that hasn't been used for 10 minutes, but only during idle
4896         time. 
4898 2004-03-05  Lars Clausen  <lars@raeder.dk>
4900         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
4901         (lluis padro) (#130887): Extended Electric shapes with vertical
4902         versions. 
4904         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
4905         start with "Create a" or "A", always capitalize first word).
4907         * objects/standard/ellipse.c: Patch from Grégoire Dooms
4908         <dooms@info.ucl.ac.be>: Add extra connection point in center of
4909         ellipse.  Additionally added a handle in the center, and resize is
4910         now around the center.
4912         * configure.in: 
4913         * sheets/Makefile.am (SUBDIRS): 
4914         * sheets/IsometricMap.sheet.in: 
4915         * shapes/Map/Isometric/*
4916         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
4918 2004-03-04  Lars Clausen  <lars@raeder.dk>
4920         * lib/Makefile.am: 
4921         * lib/pixmaps/Makefile.am: 
4922         * configure.in: 
4923         Better installation handling of pixmaps.
4924         
4925         * lib/diagdkrenderer.c: 
4926         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
4927         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
4928         Constness fixes.
4930 2004-03-03  Lars Clausen  <lars@raeder.dk>
4932         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
4933         * lib/diagdkrenderer.c: 
4934         * lib/diasvgrenderer.c:
4935         * lib/dialibartrenderer.c:
4936         * lib/diainteractiverenderer.c: 
4937         * lib/prop_text.c (multistringprop_handle_key): 
4938         * lib/dia_dirs.c: 
4939         * lib/dia_image.c (dia_image_rgba_data): 
4940         * lib/widgets.c: 
4941         * lib/diagramdata.c (layer_set_object_list): 
4942         * lib/font.h: 
4943         * lib/font.c: 
4944         Getting rid of compile warnings.
4946         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
4947         images.  Also remove unused decls.
4949 2004-03-02  Lars Clausen  <lars@raeder.dk>
4951         * lib/widgets.h: 
4952         * lib/widgets.c (dia_size_selector_init): Add images to the size
4953         selector chain widget.  Also new function to load installed images
4954         from files (better than from included XPM, IMHO).
4956 2004-03-02  Lars Clausen  <lars@raeder.dk>
4958         * lib/libdia.def: 
4959         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
4960         size selector.
4962         * lib/Makefile.am: 
4963         * lib/widgets.c (dia_size_selector_init): Work
4964         on getting proper icon onto the size selector.  Need simple image
4965         load mechanism in utils.
4967         * lib/text.c: 
4968         * app/display.[ch]:
4969         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
4970         strings, handle utf8 strlen properly.  Bug #135930.
4972 2004-03-01  Lars Clausen  <lars@raeder.dk>
4974         * shapes/Cybernetics/*:
4975         * sheets/Cybernetics.sheet.in:
4976         * sheets/Makefile.am:
4977         * shapes/Makefile.am: 
4978         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
4979         Roggendorf): Cybernetic shapes (#95553).
4981 2004-03-01  Lars Clausen  <lars@raeder.dk>
4983         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
4985         * lib/diatypes.h: New type DiaSizeSelector.
4987         * lib/widgets.[ch]: New size selector widgets that selects two
4988         values (width and height, nominally) optionally linked to keep
4989         aspect ratio.
4991 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
4993         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
4994         in front of file. Bug #128600.
4996         * app/Makefile.am:
4997         * app/interface.h:
4998         * app/lineprops_area.[ch]:
4999         * lib/Makefile.am:
5000         * lib/dialinechooser.[ch]:
5001         * lib/widgets.c (dia_line_style_selector_init): use line preview 
5002         instead of text labels. This involve moving away line_chooser to lib
5003         from app.
5005         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
5006         symbol conflicts.
5008         * app/Makefile.am (dia_core_files): 
5009         * app/interface.c (create_lineprops_area):
5010         * app/render_pixmap.[ch]:
5011         * lib/Makefile.am:
5012         * lib/diaarrowchooser.[ch]:
5013         * lib/libdia.def:
5014         * lib/prop_attr.c:
5015         * lib/propdialogs.c:
5016         * lib/render_pixmap.[ch]:
5017         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
5018         of text labels. This involve moving away arrow_chooser to lib from
5019         app.
5021 2004-02-29  Lars Clausen  <lars@raeder.dk>
5023         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
5024         being updated half-way through destruction.  To be removed when
5025         the lists are replaced by something better.
5027         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
5028         Accelerators for class dialog.  Bug #130995.
5029         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
5031         * app/dia-props.c:
5032         * app/preferences.c:
5033         * lib/properties.c:
5034         * objects/GRAFCET/step.c:
5035         * objects/Misc/analog_clock.c:
5036         * objects/chronogram/chronoline.c:
5037         * objects/chronogram/chronoref.c:
5038         Change to american spelling (color, not colour) to ease
5039         translators job.  Note that a number of translations may need an
5040         update now.  Bug #120466.
5042 2004-02-29  Lars Clausen  <lars@raeder.dk>
5044         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
5045         Better arrow handling for missing arrows.
5047         * plug-ins/metapost/render_metapost.[ch]: Patch from
5048         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
5049         size. See bug #135363.
5051         * app/app_procs.c (app_init): If non-interactive, or if
5052         --log-to-stderr used, send all messages to stderr.  This should
5053         mean that old diaconv == dia --export-to-format=FOO BAR
5055 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
5057         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
5059 2004-02-28  Lars Clausen  <lars@raeder.dk>
5061         * lib/text.c (text_key_event): Patch from Kouhei Sutou
5062         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
5064 2004-02-27  Lars Clausen  <lars@raeder.dk>
5066         * KNOWN_BUGS: Added info on most commonly reported bugs, with
5067         BugZilla numbers.
5068         
5069         * app/disp_callbacks.c (popup_object_menu): Unified properties
5070         entry, fixes bug #105080.
5072         * app/diagram.c (diagram_update_menu_sensitivity): 
5073         * app/menus.h (struct _UpdatableMenuItems): 
5074         * app/menus.c (menus_initialize_updatable_items): Menu items
5075         changed around, align menus flattened, properties entry ghosted,
5076         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
5077         #117495, #135125.
5078         Also taking out Gnome menus for now.  They don't allow shortcuts,
5079         so what are they good for?
5081 2004-02-27  Lars Clausen  <lars@raeder.dk>
5083         * app/menus.c (display_menu_items): 
5084         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5085         (bug #95546).
5087 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
5089         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5091 2004-02-23  Lars Clausen  <lars@raeder.dk>
5093         * app/app_procs.c (app_init): Comments for translators.
5095 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
5097         * app/preferences.c (prefs_create_dialog): Change packing policy
5098         for widget to expand.
5100         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5101         running with a debugger.
5103 2004-02-19  Lars Clausen  <lars@raeder.dk>
5105         * app/undo.[ch]: Adding last-saved information to undo to allow a
5106         diagram with all changes since last save undo to be marked as
5107         nonmodified.  Still needs integration with actual undo
5108         apply/revert calls.
5110         * app/diagram.h: 
5111         * app/diagram_tree.c (diagram_tree_update): 
5112         * app/diagram.c: 
5113         * app/display.c (update_modified_status): 
5114         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
5115         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5116         test. 
5118         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5119         vs. EPSI, comment out EPSI until preview is in there.
5121         * lib/render.c: 
5122         * lib/diarenderer.c: Removing debugging printfs.
5124         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5125         (with preview)
5127         * objects/standard/arc.c (arc_update_handles): Check to avoid
5128         crash when start and end points are the same.
5130 2004-02-19  Lars Clausen  <lars@raeder.dk>
5132         * objects/standard/bezier.c: 
5133         * objects/standard/line.c (line_load): 
5134         * objects/standard/polyline.c (polyline_load): 
5135         * objects/standard/zigzagline.c (zigzagline_load): 
5136         * objects/standard/arc.c (arc_load): 
5137         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5138         instead of hardcoding.
5140 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
5142         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
5143         display properties.
5145 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
5147         * app/app_procs.c: declare rc properly with the proper #ifdef
5149 2004-02-17  Lars Clausen  <lars@raeder.dk>
5151         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5152         objects (which seemingly FIG itself breaks, or else there is no
5153         ordering).
5155 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
5157         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5158         width renderable in xfig.  Helps on bug #133637, but does not
5159         quite fix it -- something about depth is wrong.
5161         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5162         Extern definitions for Mac compilation.
5164         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5165         (jdassen@debian.org): Include fix.
5167         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
5168         sure the initial diagram size is correct.
5170 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5172         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5173         CPPFLAGS, as per automake warning.
5174         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5175         LDFLAGS, as per automake warning.
5176         (run_dia.sh): More robust creation, and more easily moved.
5178         * app/undo.c (group_objects_revert): Don't double-free the objects
5179         list.  (#129221) Call object_add_updates on grouped objects.
5180         (ungroup_objects_revert): Call object_add_updates on grouped objects.
5182         * lib/diagramdata.c: Internal
5183         documentation. 
5185         * lib/polyshape.c (polyshape_update_data): Correctly calculate
5186         directions for polyshape corners (thanks, Valgrind!)
5188         * lib/attributes.c: 
5189         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5191         * lib/arrows.h: Default arrow size defined.  After all are using
5192         this, may lower to 0.4 or so.
5194         * app/lineprops_area.[ch]: New function to set the arrow type for an
5195         arrow chooser.
5197         * app/interface.c (create_lineprops_area): Set default line to
5198         have an arrow (fairly likely to be what's wanted, plus it shows
5199         the user where arrows are set).
5201         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5203 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5205         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5206         Dotted lines should use dot_length, not dash_length.
5208 2004-02-06  Hans Breuer  <hans@breuer.org>
5210         * app/interface.c : don't use gtk_drawing_area_size() to avoid
5211         the defaut size being also the minimum size. Instead use
5212         gtk_window_set_default_size() on the display shell. Fixes #130982.
5214         [fixing #131210, but umlauts in the 'main' filename still not really 
5215          supported on systems where filesystem encoding != utf8
5216         (Problems with recent file menu and window title)]
5217         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5218         to deal with possible differnces in filename encodings, see
5219         g_filename_<to|from>_utf8()
5220         * objects/standard/image.c : use them.
5222         * lib/widgets.c : handle possible encoding difference here, too.
5223         Also get rid of most warnings by using const and GTK casts where 
5224         appropriate; one wrong cast (probably causing a crash) was found/fixed 
5225         by this - the remaining give a hint on finally leaking FontSelectorEntry.
5227         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5228         dia_file_selector_<get|set>_file to behave like the respective Gtk 
5229         functions do : encoding- and const-wise ;-)
5231 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
5233         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5235 2004-01-19  Hans Breuer  <hans@breuer.org>
5237         * app/app_procs.c app/diaconv : 
5238         only call bind_textdomain_codeset when available, what's good 
5239         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5240         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5242 2004-01-19  Steffen Macke <sdteffen@web.de>
5244         * makefile.msc: updated for new GAIM-like installer build; sync'ed
5245         ALL_LINGUAS with configure.in
5247 2004-01-18  Hans Breuer  <hans@breuer.org>
5249         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
5250         by not passing NULL to g_print()
5252         * app/interface.c (create_toolbox) : actually use
5253         persitence_register_window() to restore toolbox window size
5255         * app/makefile.msc lib/makefile.msc : allow to deselect
5256         building with Freetype by command line to nmake like :
5257                 nmake -f makefile.msc "NOFT2=1"
5259         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5260         far as possible with Dia's limited line style
5261         * plug-ins/python/pydia-property.c : allow to get and set
5262         Linestyle, style and dash(length)
5264         * lib/object.h : removed typedef for ObjectId not use anywhere
5266 2004-01-17  Hans Breuer  <hans@breuer.org>
5268         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5269           doc/shape.dtd doc/custom-shapes : 
5270         support for images in custom shapes, also removed some long-time
5271         dead code
5273         * doc/en/*.xml : fixed crippled line ends which get created
5274         when windoze line ends are checkin from the unix side
5276 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
5278         * configure.in: Added "sq" to ALL_LINGUAS.
5280 2004-01-11  Hans Breuer  <hans@breuer.org>
5282         [more less leaks ;-]
5283         
5284         * objects/SADT/annotation.c : use text_destroy() not g_free()
5285         
5286         * objects/chronogram/chronoline.c : neither leak chronoline::events
5287         nor chronoline::name
5289         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5291 2004-01-11  Hans Breuer  <hans@breuer.org>
5293         * lib/properties.h :
5294         * objects/custom/custom_object.c : more properties optional
5295         to be backward compatible for older diagrams not having them 
5296         set. (Try to load samples/all_objects.dia)
5297         
5298         [less memory leaks thanks valgrind ;-]
5299         
5300         * app/recent_files.c (recent_file_history_write) : 
5301         g_free(history_filename);
5302         (recent_file_menu_item) : use g_path_get_basename() 
5303         which already strdups, free result of g_strescape()
5304         
5305         * app/filedlg.c (create_export_menu) : return of
5306         filter_get_export_filter_label() must be g_free()'d
5307         (create_open_menu) : same for import
5308         
5309         * app/export_png.c (export_png_ok) : destroy info ptr
5310         with png_destroy_write_struct()
5311         
5312         * app/app_procs.c (app_init) : g_free(export_format_string);
5313         
5314         * lib/font.c (dia_font_finalize) : finalize parent_class, too
5315         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5316         refing it a second time, g_type_create_from_instance() is enough
5317         
5318         * lib/object_defaults.c (_obj_store) : don't mess with names
5319         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5320         
5321 2004-01-11  Steffen Macke <sdteffen@web.de>
5323         * app/diapsftrenderer.c: including ftoutln.h
5324         * app/makefile.msc: updated for freetype build
5325         * lib/libdia.def: added dia_font_get_context()
5326         * lib/dialibartrenderer.c (draw_string): added cast
5327         
5328 2004-01-10  Hans Breuer  <hans@breuer.org>
5330         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5331         transformed coordinates, fixes bug 130804
5333 2004-01-10  Hans Breuer  <hans@breuer.org>
5335         * app/filedlg.c app/app_procs.c : don't try to destroy 
5336         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5337         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5338         returns. Fixes 'has no handler' bugs like #121019
5340 2004-01-10  Hans Breuer  <hans@breuer.org>
5342         * objects/UML/class.c objects/UML/class_dialog.c : 
5343         handle umlclass->name being empty to avoid, i.e. fix #127968
5345         [plugging memleaks, thanks valgrind :-]
5346         
5347         * lib/dia_xml.c (data_string) : don't leak return value
5348         of xmlNodeListGetString()
5349         
5350         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5351         before returning, maybe alloca() would be the better 
5352         choice but anyway ;)
5354         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5355         
5356         * lib/font.c (dia_font_build_layout) : don't leak result
5357         of g_utf8_strdown()
5358         
5359         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5360         (this is the one which got me started using valgrind, see #130816)
5361         
5362 2004-01-07  Sanlig Badral  <badral@openmn.org>
5364         * configure.in: Added "mn" to ALL_LINGUAS.
5366 2004-01-04  Hans Breuer  <hans@breuer.org>
5368         * lib/diagdkrenderer.c : replace rendering of really small (height
5369         less than 2 pixels) with a simple dashed line, you wont notice the 
5370         differnce beside it being much faster. This allows ...
5371         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5372         * app/navigation.c : ... and lets you see an read rendered text even 
5373         in the nice navigation popup.
5375         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
5376         (draw_string) : don't leak temporary image
5378 2004-01-04  Hans Breuer  <hans@breuer.org>
5380         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5381         * app/interface.c : use dia-app-icons.h to give Dia window icons
5383         * lib/dia_image.c lib/color.c : _never_ call functions implemented
5384         in app/ from lib/. It is not portable and broken from design
5385         * app/app_procs.c : call color_init() and dia_image_init() conditional,
5386         i.e. only if running interactive.
5388         * lib/font.h : #include <time.h>
5390         * lib/libdia.def : updated externals
5392         * objects/UML/actor.c 
5393             objects/UML/association.c (todo)
5394           objects/UML/branch.c
5395           objects/UML/class.[hc] objects/UML/class_dialog.c
5396           objects/UML/classicon.c
5397           objects/UML/component.c 
5398           objects/UML/constraint.c
5399           objects/UML/dependency.c
5400           objects/UML/generalization.c
5401           objects/UML/implements.c
5402           objects/UML/large_package.c
5403           objects/UML/lifeline.c
5404           objects/UML/message.c
5405           objects/UML/node.c
5406           objects/UML/object.c
5407           objects/UML/realizes.c
5408           objects/UML/small_package.c
5409           objects/UML/state.c
5410           objects/UML/usecase.c
5411           objects/UML/
5412         : ported coloring of most UML objects (bug #97517, orginal
5413           work Mathias Hasselmann)
5415         * lib/properties.h : add _OPTIONAL variants for 
5416         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5417         i.e. default colored - UML diagrams without complaining
5418         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5419         not set properties with the help of PXP_NOTSET. Otherwise 
5420         optional attributes would lead to wrong initialization. 
5422         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5423         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5424         Same for most other selectors which probably should be rewritten
5425         to the combo box with tree model from Gtk+ 2.4
5427 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
5429         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5430         being the Right Thing(tm) to use on Solaris.
5432         * objects/standard/bezier.c (bezierline_draw): Don't draw
5433         guidelines if not selected.
5435         * lib/object.[ch] (dia_object_is_selected): Function to check whether
5436         a given object is selected. O(n), where n is # selected objects.
5437         
5439 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
5441         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5442         Fonts dialog is closed without pressing Ok (bug #128646).
5444 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5446         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5447         #130099). 
5449 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5451         * INSTALL: Updated list of requirements (bug #129653)
5453         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5454         Pionchon <luc@handhelds.org>.
5456 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5458         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5459         empty or NULL strings (bug #130097).
5461 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
5462         
5463         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5464         Added checks against color_black.
5466 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5468         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5469         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
5470         can happen.
5472         * objects/UML/component_feature.c: Patch from W. Borgert
5473         <debacle@debian.org>:  Add handle to component feature text.
5475         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5477         * lib/font.c: Caching PangoLayout for better rendering speed.
5479 2003-12-30  Lars Clausen  <lars@raeder.dk>
5481         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5482         get absolute file name from relative.
5483         * app/recent_files.c (recent_file_history_add): Use absolute
5484         filenames for recent files menu so that files can be found when
5485         Dia is invoked from other places.  
5487         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5488         Actually load different diagrams if such are requested on command
5489         line.  
5491         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5492         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5494         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5495         remove text rendering.  May be turned into greeking at some later
5496         stage.
5498         * app/interface.c: 
5499         * app/Makefile.am (dia_core_files): 
5500         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5501         Adds navigation window a la Gimp, though without text being
5502         rendered at all.
5504 2003-12-27  Luc Pionchon <luc@handhelds.org>
5506         * app/navigation.h: (new file)
5507         * app/navigation.c: (new file) creates a navigation window with a
5508         thumbnail view of the whole diagram.
5509         * app/Makefile.am (dia_core_files): added new files.
5511         * app/interface.c (create_display_shell): added a button between
5512         the scrollbars to popup a navigation window.
5514         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5515         boolean
5516         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5517         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5518         not want text rendering.        
5520 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5522         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5524         * objects/custom/shape_info.[ch]: Cleanup.
5526         * objects/custom/custom_object.[ch]: Changed to use new props
5527         interface.
5529         * lib/properties.h: 
5530         * lib/prop_text.c: 
5531         * lib/prop_inttypes.c: 
5532         * lib/prop_geomtypes.c: Added *prop_get_data_size.
5534         * lib/libdia.def: Added object_load_props.
5536         * configure.in: Better FT2 version test, from bug #129225.
5538         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5540         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5541         Lehmann <holger.lehmann@catworkx.de>.
5543         * plug-ins/xslt/Makefile.am: 
5544         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5545         and OWL XSLT sheets.
5547 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5549         * lib/diagdkrenderer.c: Add implementation so text is still
5550         rendered.  May be improved later.
5552         * lib/dia_image.c: 
5553         * app/main.c: 
5554         * app/export_png.c: 
5555         * app/diagram.c: 
5556         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5557         Allow running without a $DISPLAY!
5559         * lib/color.c: Remove warnings for non-interactive run.
5561         * doc/en/dia.dbk: 
5562         * app/export_png.c: 
5563         * app/diaconv.c: 
5564         * app/app_procs.[ch]: 
5565         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5566         to specify size for PNG output.
5568         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5569         render a little smaller, so as to fit the big ones.
5571         * lib/arrows.[ch]: New arrow type from W. Borgert
5572         <debacle@debian.org>: Filled Dot and Triangle.
5574 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5576         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5577         for gif images.
5579         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5581         * acinclude.m4: Better Python configure code patch (can't find
5582         author, author please speak up!)
5584 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5586         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5587         smarter ones.
5589 2003-11-30  Hans Breuer  <hans@breuer.org>
5591         * plug-ins/python/diasvg.py : initialize self.dash_length
5592         in constructor to avoid crashing if the renderer user
5593         does not set it before first usage.
5595 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5597         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5598         active yet.
5600         * configure.in: 
5601         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5602         development and stable versions.
5604         * lib/text.c (text_draw): Use new renderer function to draw the
5605         text.
5607         * lib/diarenderer.h: 
5608         * lib/diarenderer.c: New renderer function "draw_text" with
5609         default implementation.  This function should eventually be the
5610         main interface, as it will be able to handle width and caching of
5611         rendering internally.  All users of draw_string should convert to
5612         use Text objects and call either renderer->draw_text or text_draw,
5613         the latter if the text can be edited in-place (as should be the
5614         goal, eventually).
5616 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5618         * shapes/Circuit/hresistor.shape: First example of extra
5619         attributes. 
5621 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5623         * plug-ins/shape/shape-export.c: 
5624         * lib/diasvgrenderer.h: 
5625         * lib/diasvgrenderer.c: 
5626         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5627         Actually store the font size, using DiaRenderer's font fields.
5629 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5631         * objects/custom/shape_info.[ch]: 
5632         * objects/custom/custom_object.[ch]: 
5633         Support for extra attributes in custom objects.
5634         
5635 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5637         * app/diagram.c (diagram_update_menu_sensitivity): More
5638         intelligent checks for menu sensitivity.  Might be slow on huge
5639         diagrams, but I think other things outweigh it by a lot.
5641         * app/menus.[ch]: Make "Bring Forwards"
5642         and "Send Backwards" updateable.
5644 2003-11-22  Steffen Macke <sdteffen@web.de>
5646         * shapes/Assorted/arrow-turn-up.shape:
5647         * shapes/Assorted/arrow-turn-up.png:
5648         * sheets/Assorted/Makefile.am:
5649         * sheets/Assorted.sheet.in: Added new arrow
5651 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5653         * app/app_procs.c
5654         * app/color_area.c
5655         * app/commands.c
5656         * app/defaults.c
5657         * app/dia_embedd.c
5658         * app/diagram.c
5659         * app/diagram_tree.c
5660         * app/diagram_tree_menu.c
5661         * app/diagram_tree_window.c
5662         * app/diapagelayout.c
5663         * app/diaunitspinner.c
5664         * app/export_png.c
5665         * app/filedlg.c
5666         * app/interface.c
5667         * app/layer_dialog.c
5668         * app/lineprops_area.c
5669         * app/linewidth_area.c
5670         * app/menus.c
5671         * app/pagesetup.c
5672         * app/paginate_psprint.c
5673         * app/persistence.c
5674         * app/plugin-manager.c
5675         * app/preferences.c
5676         * app/properties.c
5677         * app/recent_files.c
5678         * app/sheets.c
5679         * app/sheets_dialog.c
5680         * app/sheets_dialog_callbacks.c
5681         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5682         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5684         * TODO: Updated, note on EPS transparency.
5686 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5688         * objects/UML/class.c (umlclass_draw): Allow classes with no name
5689         without crashing.
5691 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5693         * config.h.win32: 
5694         * doc/en/dia-manual.xml: 
5695         * dia.spec: 
5696         * configure.in: 
5697         * NEWS: Another Brown Bag release for parenting problems,
5698         including a crash bug fix.
5700         * app/connectionpoint_ops.c (diagram_update_connections_object):
5701         Also update connections when moving children.  This can cause
5702         move_handle to be called twice, so it must be idempotent.
5704         * app/load_save.c: Loading and saving of children totally redone.
5705         Now doesn't violate assumption that all objects in a layer are
5706         placed in order in XML file.
5708         * objects/UML/branch.c (branch_create): Don't lie about being
5709         resizable. 
5711         * objects/UML/node.c (node_create): 
5712         * objects/UML/large_package.c (largepackage_create): Drag with
5713         lower right-hand handle at creation like all other objects.
5715 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5717         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
5718         parenting drop to behave like a move inside, i.e. constrain place
5719         instead of trying to resize.  'Cause, resizing cannot be done for
5720         all objects (e.g. UML Class). Also simplified the algorithm a lot
5721         at the same time.
5723         * app/load_save.c: Saving and loading of connection points for
5724         children added.  Prototypes for static functions added.
5726         * lib/dynamic_obj.c: Removed debugging output.
5728 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5730         * doc/en/dia-manual.xml: 
5731         * doc/pl/dia-manual.sgml: 
5732         * dia.spec: 
5733         * config.h.win32: 
5734         * configure.in: 
5735         * NEWS: Brown Bag release 0.92.1
5737         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
5739 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5741         * app/app_procs.c (app_init): Rearrangement for translators.
5743 2003-10-24  Steffen Macke <sdteffen@web.de>
5745         * lib/text.c(text_key_event): enforcing the inserted text length now,
5746         fix for bug #125348
5748 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5750         * MAINTAINERS: Change Debian maintainer to be the default address.
5752         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
5753         args to match prototype, thus removing crashbug #125159.
5755         * RELEASE-PROCESS: Note to self.
5757 2003-10-22  Steffen Macke <sdteffen@web.de>
5759         * doc/en/dia-manual.xml: removed superfluous external references
5760         
5761 2003-10-21  Steffen Macke <sdteffen@web.de>
5763         * lib/libdia.def: added filter_get_by_name
5764         * app/render_eps.c: moved extensions definition outside #ifdef
5766 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5768         * Makefile.am: 
5769         * dia.1:
5770         Removed old Dia manual, put new one in doc/en/.  Translations
5771         should go in doc/??/.
5773         * doc/en/dia-manual.xml: 
5774         * doc/pl/dia-manual.sgml: 
5775         * dia.spec (Release): 
5776         * config.h.win32: 
5777         * configure.in: 
5778         * NEWS: 0.92 is here!
5780         * doc/en/dia.dbk: 
5781         * doc/en/dia.1: 
5782         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
5783         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
5784         but it shall be.
5786         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
5788         * doc/en/usage-objects-selecting.xml: Commented out empty note.
5790 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5792         * doc/pl/dia-manual.sgml: 
5793         * doc/en/dia-manual.xml: 
5794         * config.h.win32: 
5795         * NEWS: 
5796         * configure.in: 
5797         * dia.spec (Release): Pre7.
5799         * app/diapsrenderer.c (draw_string): Convert string to print based
5800         on current locale.  If conversion fails, fall back to UTF-8 (which
5801         is almost certain to be messy).
5803 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5805         * doc/pl/dia-manual.sgml: 
5806         * dia.spec (Release): 
5807         * configure.in: 
5808         * NEWS: 
5809         * config.h.win32: 
5810         * doc/en/dia-manual.xml: Pre6.
5812         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
5813         TeX chars in strings -- must be possible to use TeX text in there.
5814         Also avoids infinite loop bug (#124464) Will get option for this
5815         later.
5817 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5819         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
5821         * doc/en/dia-manual.xml: 
5822         * doc/pl/dia-manual.sgml: 
5823         * dia.spec (Release): 
5824         * configure.in: 
5825         * config.h.win32: 
5826         * NEWS: pre5.
5828         * app/authors.h: Removed duplicate of M. C. Nelson.
5830         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
5832         * app/export_png.c: Unique name for libart PNG export: png-libart.
5834         * app/render_eps.c: Unique names for the two eps export methods:
5835         eps-builtin, eps-pango.
5837         * lib/filter.h: Binary compatibility change: 
5838         Added unique name to export filters.  Can be NULL.
5839         * lib/filter.c (filter_get_by_name): Finding a filter by
5840         non-extension name.
5842         * app/app_procs.h: Changed prototype for do_convert.
5843         * app/app_procs.c (app_init): Support for non-extension file
5844         format selection for export.  Also allow extension to differ from
5845         that specified by the filters.  A bit of refactoring, too.
5847 2003-09-28  Steffen Macke <sdteffen@web.de>
5849         * makefile.msc: added target po to update the translations
5851 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5853         * config.h.win32: 
5854         * dia.spec (Release): 
5855         * NEWS: 
5856         * doc/pl/dia-manual.sgml: 
5857         * doc/en/dia-manual.xml: 
5858         Pre4 is given a short try.
5859         
5860         * configure.in: Give all necessary libs to PNG test.
5862         * lib/font.c: Added legacy entries for sans, serif and monospace.
5864         * app/app_procs.c (internal_plugin_init): 
5865         * app/render_eps.h: 
5866         * app/render_eps.c: 
5867         Added PS fonts output for Unix.
5869         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
5870         factor to make PS fonts stay in boxes.
5871         
5872 2003-08-03  Hans Breuer  <hans@breuer.org>
5874         * config.h.win32 : close the version string
5876         * lib/libdia.def : with color_white, color_black being static
5877         on win32 they can not be exported anymore either
5879         * lib/dialibartrenderer.c : text rendering is back on win32,
5880         only by Gdk though; almost a year seems to be enough to
5881         wait for my patch at bug #94791 to be accepted ...
5883 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5885         * shapes/network/{digitizing_board.png,plotter.png,
5886         laptop.png,telephone.png}: 22x22 icons.
5888 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5890         * doc/pl/dia-manual.sgml: 
5891         * doc/en/dia-manual.xml: 
5892         * dia.spec (Release): 
5893         * configure.in: 
5894         * config.h.win32: 
5895         * NEWS: 
5896         pre3 improves font rendering speed.
5898         * app/app_procs.c (app_init): Don't do pango init here, it's done
5899         on demand in font.c now.
5901         * lib/font.c: Load pango context on demand rather than during
5902         init/all the time strikes a better balance between working font
5903         size and speed.  Still need to cache width calculations.
5905 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
5907         * lib/dia_xml.c: Enable pretty printing.  Should have been added
5908         on 8/12. 
5910 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5912         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
5913         adjustment a bit for half diamond and open round.
5915         * RELEASE-PROCESS: Added note about notifying translators and
5916         maintainers. 
5918         * doc/pl/dia-manual.sgml: 
5919         * doc/en/dia-manual.xml: 
5920         * dia.spec (Release): 
5921         * configure.in: 
5922         * config.h.win32: 
5923         * NEWS:
5924         Update to 0.92-pre2.
5925         
5926 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
5928         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
5929         calculation for half diamond and open round.
5931         * lib/arrows.c: 
5932         * objects/UML/component_feature.c: 
5933         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
5934         arrows instead of specific little hacks.  Much nicer, but damn
5935         there's a lot of arrows.
5937         * lib/dialibartrenderer.c (begin_render): 
5938         * app/render_libart.c (begin_render): Use correct DPI for screen
5939         (well, actually the default DPI of 75 for now).
5941         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
5943         * lib/diagdkrenderer.c (draw_string): Some reformatting.
5945         * app/app_procs.c (app_init): Note on what should be done for the
5946         pango context now, only it doesn't work:(
5948         * lib/font.c (dia_font_new): Make sure to load fonts that are
5949         used, using a reasonable pango_context.  Also a comment on the
5950         global_zoom_factor, 
5952 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
5954         * doc/pl/graphics/*.png:
5955         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
5956         loop (bug #121817).  PL translator may want to change the
5957         home_network png to be in Polish.  If the docs get translated into
5958         more languages, we'll want to find out how to share these things.
5960 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5962         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
5963         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
5964         splash.
5966         * app/filedlg.c (file_save_as_callback): Put filename setting
5967         together.  (Preparation for allowing default save dir.)
5969         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
5970         correctly this time:)
5972         * app/dia-props.c (diagram_properties_show): 
5973         * app/properties.c (properties_show): Make sure the
5974         dialogs are transient for the correct diagram.
5976 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5978         * configure.in: Make sure -lz -lm is passed into second png test
5979         as well (stupid AC_LINK_IFELSE can't take it as an argument).
5981         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
5982         comment-filled files readable.  Once we have a 'generic data'
5983         system, we can put comments in there.
5985 2003-09-06  Steffen Macke <sdteffen@web.de>
5987         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
5988         g_string_sized_new() instead of g_string_new() to make it compile
5989         * app/Makefile.am: including dia.ico and dia.rc in the tarball
5990         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
5991         for non-solid linestyles - otherwise custom linestyles have to be used.
5993 2003-09-02  Steffen Macke <sdteffen@web.de>
5995         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
5996         dia.chm
5998 2003-09-02  Christian Neumair  <chris@gnome-de.org>
6000         * sheets/Pneumatic.sheet.in: Slight unification fix.
6002 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6004         * config.h.win32: 
6005         * configure.in: 
6006         * dia.spec (Release): 
6007         * doc/en/dia-manual.xml: 
6008         * doc/pl/dia-manual.sgml: 
6009         * NEWS: Update to 0.92-pre1.
6011         * app/properties.c (properties_key_event): Removing Esc/Enter
6012         handling for now, interferes to much with regular dialog usage.
6014         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
6015         Function to escape special TeX characters.  Not in use yet, as
6016         PSTricks output by default is TeX strings.  Should get a save-time
6017         selector. 
6019 2008-09-01  Steffen Macke <sdteffen@web.de>
6021         * lib/paper.h: explanatory comment on width and height
6023 2003-08-30  Steffen Macke <sdteffen@web.de>
6025         * lib/color.c:
6026         * lib/color.h: made color_white, color_black static on win32
6028 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6030         * configure.in (PNG_LIBS): Something in the png tests added an
6031         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
6033 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6035         * configure.in: Quote correctly for temporarily adding freetype
6036         cflags to CPPFLAGS.
6038         * app/preferences.c (prefs_save): Remove debugging g_print.
6040 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6042         * objects/flowchart/parallelogram.c (pgram_update_data):
6043         Directions for connections, better system for placing
6044         connectionpoints. 
6046 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6048         * lib/diagramdata.c (layer_find_closest_object_except): Look all
6049         the way through the object list, so the foremost object is selected.
6051         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
6052         included for diagramdata.c.
6054         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
6055         newline in multistringprop not close the dialog.  Failed so far.
6057 2003-08-25  Steffen Macke <sdteffen@web.de>
6059         * app/commands.c: using CHM instead of HTML on win32 if available
6060         * lib/diagramdata.h: including dynamic_obj.h
6062 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6064         * app/properties.c (properties_key_event): Make Enter = Ok for
6065         properties dialogs.  Still some problems with this and Esc for
6066         Cancel, for instances escaping out of a menu closes the dialog.
6068         * objects/UML/association.c (association_get_properties): 
6069         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6070         focus. 
6072         * app/diapsft2renderer.c (draw_string): Use
6073         dia_font_scaled_build_layout to ensure similarity of text.
6075         * lib/diagramdata.c: Remove obj from dynobj list when removing
6076         from layer to avoid nasty race conditions.
6078         * app/undo.c (group_objects_revert): Make sure to unparent and
6079         remove from dynobj list when changing layers objects.
6081 2003-08-23  Steffen Macke <sdteffen@web.de>
6083         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
6084         StretchBlt(); fixes #92249
6085         
6086 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6088         * app/filedlg.c (file_save_as_callback): 
6089         * app/preferences.h: 
6090         * app/preferences.c (prefs_data): 
6091         * lib/diagramdata.h: 
6092         * lib/diagramdata.c (new_diagram_data): 
6093         * app/load_save.c (diagram_data_load): 
6094         Let the document remember whether it was compressed.  The user can
6095         still override this in the Save As... dialog, and that will still
6096         be remembered as the default for new diagrams.
6098 2003-08-23  Steffen Macke <sdteffen@web.de>
6100         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6102 2003-08-22  Steffen Macke <sdteffen@web.de>
6104         * plug-ins/xslt/dia-uml.xsl:
6105         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6106         table containing a list of components grouped by stereotype
6108 2003-08-21  Steffen Macke <sdteffen@web.de>
6110         * lib/makefile.msc: added connectionpoint.obj
6111         * lib/libdia.def: added connpoint_update, find_slope_directions
6112         * app/disp_callbacks.c: including scroll_tool.h
6113         * obj/makefile.msc: added component_feature.obj
6114         * app/paginate_gdiprint.c: fixed loop initialization in 
6115         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6116         wrong
6118 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6120         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6121         move_handle call.
6123         * lib/diagramdata.h: Colors added to prefs.
6124         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6125         New field for pagebreak color, which should
6126         behave the same as grid color and be settable for a diagram.
6128         * app/diagram.c (diagram_init): Update diagram pagebreak color
6129         from prefs. 
6131         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6132         colors. 
6134         * app/preferences.[ch]: Default diagram colors now #defines, so
6135         loading can use it.  Also, colors are now in NewDiagramData, so
6136         are passed nicely into new diagrams directly from prefs.  Yum.
6138         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
6139         Support for loading and saving grid and pagebreak colors with the
6140         diagram.  I'm inclined to make all the three Colors in diagram
6141         Color*s instead, so we can tell if they're specified for the
6142         diagram or merely the default setting.  There'd be no way for the
6143         user to tell if the color of a diagram is default, though, unless
6144         we add a 'reset to default' button to prefs.
6146         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6147         pagebreak color.  Unsensitizing grid size when dynamic.
6149         * objects/UML/component.c: Patch from Krzysztof Foltman
6150         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6151         third.  Makes the left side connections actually be on the line
6152         (gasp!). 
6154 2003-08-20  Steffen Macke <sdteffen@web.de>
6156         * lib/libdia.def: added layer_find_closest_object_except
6157         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
6159 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
6161         * app/tool.h: 
6162         * app/tool.c: 
6163         * app/scroll_tool.c: 
6164         * app/interface.c: 
6165         * app/disp_callbacks.c: 
6166         * app/create_object.h: 
6167         * app/create_object.c: Patch from Krzysztof Foltman
6168         <kfoltman@onet.pl>: Middle button can scroll transiently when
6169         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6170         various ways.
6172         * app/authors.h: 
6173         * sheets/UML.sheet.in: 
6174         * sheets/UML/receptacle.xpm: 
6175         * sheets/UML/Makefile.am: 
6176         * sheets/UML/eventsource.xpm: 
6177         * sheets/UML/eventsink.xpm: 
6178         * objects/UML/pixmaps/facet.xpm: 
6179         * objects/UML/uml.c (dia_plugin_init): 
6180         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
6181         * objects/UML/component_feature.c: 
6182         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
6183         event sinks.
6184         
6185 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6187         * lib/object.h: Turning some comments into doxygen style.
6189         * lib/object_defaults.c (dia_object_defaults_load)
6190         (dia_object_default_get, dia_object_default_create): 
6191         Fixing up existing documentation.
6193         * lib/object.h: Doxygen style documentation begun.
6195         * app/create_object.c: 
6196         * app/undo.c: 
6197         * app/connectionpoint_ops.c: 
6198         * app/disp_callbacks.c: 
6199         * app/modify_tool.c: 
6201         * objects/network/wanlink.c (wanlink_move_handle): 
6202         * objects/network/bus.c (bus_move_handle): 
6204         * objects/flowchart/parallelogram.c (pgram_move_handle): 
6205         * objects/flowchart/ellipse.c (ellipse_move_handle): 
6206         * objects/flowchart/diamond.c (diamond_move_handle): 
6207         * objects/flowchart/box.c (box_move_handle): 
6209         * objects/custom/custom_object.c (custom_move_handle): 
6211         * objects/chronogram/chronoref.c (chronoref_move_handle): 
6212         * objects/chronogram/chronoline.c (chronoline_move_handle): 
6214         * objects/SADT/box.c (sadtbox_move_handle): 
6215         * objects/SADT/arrow.c (sadtarrow_move_handle): 
6216         * objects/SADT/annotation.c (annotation_move_handle): 
6218         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
6220         * objects/GRAFCET/vergent.c (vergent_move_handle): 
6221         * objects/GRAFCET/vector.c (arc_move_handle): 
6222         * objects/GRAFCET/transition.c (transition_move_handle): 
6223         * objects/GRAFCET/step.c (step_move_handle): 
6224         * objects/GRAFCET/condition.c (condition_move_handle): 
6225         * objects/GRAFCET/action.c (action_move_handle): 
6227         * objects/FS/function.c: 
6228         * objects/FS/flow.c: 
6229         * objects/FS/flow-ortho.c (orthflow_move_handle): 
6230         * objects/FS/flow-poly.c (flow_move_handle): 
6232         * objects/UML/usecase.c (usecase_move_handle): 
6233         * objects/UML/state_term.c (state_move_handle): 
6234         * objects/UML/state.c (state_move_handle): 
6235         * objects/UML/small_package.c (smallpackage_move_handle): 
6236         * objects/UML/realizes.c (realizes_move_handle): 
6237         * objects/UML/object.c (objet_move_handle): 
6238         * objects/UML/note.c (note_move_handle): 
6239         * objects/UML/node.c (node_move_handle): 
6240         * objects/UML/message.c (message_move_handle): 
6241         * objects/UML/lifeline.c (lifeline_move_handle): 
6242         * objects/UML/large_package.c (largepackage_move_handle): 
6243         * objects/UML/implements.c (implements_move_handle): 
6244         * objects/UML/generalization.c (generalization_move_handle): 
6245         * objects/UML/fork.c (fork_move_handle): 
6246         * objects/UML/dependency.c (dependency_move_handle): 
6247         * objects/UML/constraint.c (constraint_move_handle): 
6248         * objects/UML/compprop.c (compprop_move_handle): 
6249         * objects/UML/component.c (component_move_handle): 
6250         * objects/UML/branch.c (branch_move_handle): 
6251         * objects/UML/association.c (association_move_handle): 
6252         * objects/UML/actor.c (actor_move_handle): 
6253         * objects/UML/activity.c (state_move_handle): 
6254         * objects/UML/class.c (umlclass_move_handle): 
6256         * objects/standard/ellipse.c (ellipse_move_handle): 
6257         * objects/standard/zigzagline.c (zigzagline_move_handle): 
6258         * objects/standard/textobj.c (textobj_move_handle): 
6259         * objects/standard/polyline.c (polyline_move_handle): 
6260         * objects/standard/polygon.c (polygon_move_handle): 
6261         * objects/standard/line.c (line_move_handle): 
6262         * objects/standard/image.c (image_move_handle): 
6263         * objects/standard/bezier.c (bezierline_move_handle): 
6264         * objects/standard/arc.c (arc_move_handle): 
6265         * objects/standard/beziergon.c (beziergon_move_handle): 
6266         * objects/standard/box.c (box_move_handle): 
6267         
6268         * objects/ER/relationship.c (relationship_move_handle): 
6269         * objects/ER/participation.c (participation_move_handle): 
6270         * objects/ER/entity.c (entity_move_handle): 
6271         * objects/ER/attribute.c (attribute_move_handle): 
6272         
6273         * lib/polyshape.c (polyshape_move_handle): 
6274         * lib/polyshape.h: 
6275         * lib/orth_conn.c (orthconn_move_handle): 
6276         * lib/orth_conn.h: 
6277         * lib/neworth_conn.c (neworthconn_move_handle): 
6278         * lib/neworth_conn.h: 
6279         * lib/element.c (element_move_handle): 
6280         * lib/element.h: 
6281         * lib/connection.c (connection_move_handle): 
6282         * lib/connection.h: 
6283         * lib/beziershape.c (beziershape_move_handle): 
6284         * lib/beziershape.h: 
6285         * lib/bezier_conn.c (bezierconn_move_handle): 
6286         * lib/bezier_conn.h: 
6287         *BINARY COMPATIBILITY CHANGE*
6288         Update prototype for *_move_handle() to include connectionpoint,
6289         and also pass on modifiers.  Pass in connectionpoint where
6290         applicable. 
6291         
6292         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6293         file connectionpoint.c.
6295 2003-08-17  Danilo Å egan  <dsegan@gmx.net>
6297         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6299 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6301         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6303         * lib/beziershape.c (beziershape_update_data): Autoroute
6304         directions for beziershapes!
6306         * lib/connectionpoint.c (find_slope_directions): 
6307         * lib/connectionpoint.h: Function for finding the available
6308         directions on a slope.
6310         * lib/polyshape.c: Reasonable directions for
6311         connectionpoints.       
6313 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6315         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
6316         * objects/GRAFCET/vergent.c (vergent_update_data): 
6317         * objects/GRAFCET/transition.c (transition_update_data): 
6318         * objects/GRAFCET/action.c (action_update_data): 
6319         * objects/GRAFCET/step.c (step_update_data): 
6320         * objects/FS/function.c (function_update_data): 
6321         * lib/connpoint_line.c (connpointline_putonaline): 
6322         * objects/ER/attribute.c (attribute_update_data): 
6323         * objects/ER/entity.c (entity_update_data): 
6324         * objects/ER/relationship.c (relationship_update_data): 
6325         * objects/chronogram/chronoline.c (chronoline_update_data): Set
6326         directions for connection points.
6328         * objects/UML/component.c (component_create): Set to allow
6329         parenting. 
6331         * app/create_object.c (create_object_button_press): 
6332         * app/diagram.[ch] (diagram_find_clicked_object_except): 
6333         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
6334         Avoid parenting to objects you're connecting to (otherwise you
6335         couldn't make a connection out of a parenting object).  To do
6336         this, added functions to find the nearest object except a given
6337         list of objects.
6338         
6339         * app/render_libart.c: Rearrange libart include to avoid multiple
6340         include program (and put libart includes inside #ifdef!)
6342 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6344         * lib/dialibartrenderer.c: Don't include art_config.h if others
6345         also do, as it isn't #ifdef'd.
6347         * objects/flowchart/ellipse.c (ellipse_update_data): Add
6348         directions for connection points.
6350 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6352         * objects/flowchart/box.c (box_update_data): Add directions, use
6353         connpoint_update. 
6354         (box_load): Use g_malloc0.
6356         * lib/Makefile.am (libdia_la_SOURCES):
6357         * lib/connectionpoint.c (connpoint_update): 
6358         Function to call to update a connection point info in _update_data().
6359         
6360         * lib/connectionpoint.h: Convenience DIR_ macros.
6362         * app/preferences.c (prefs_data): Make pretty formatted XML the
6363         default.
6365         * lib/dialibartrenderer.c: 
6366         * app/render_libart.c: Make sure art_config.h is included, cause
6367         some libart headers are broken.
6369         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6370         after test.  Add freetype-config cflags to cflags variable.
6372 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6374         * app/authors.h: Credits for Krzysztof.
6376         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6377         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
6378         than the description) is visible in the title of the properties
6379         dialog.  That ought to be a short description (translatable),
6380         though we still want long descriptions for the tooltips.  Hmmm...
6382         * configure.in: Updated to use AC_LINK_IFELSE instead of
6383         AC_TRY_COMPILE, also force to link to check libs on Solaris.
6385         * objects/ER/entity.c (entity_load): 
6386         * objects/ER/attribute.c (attribute_load): 
6387         * lib/attributes.c (attributes_set_default_font): 
6388         Check if font is non-null before unreffing.
6389         
6390 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6392         * app/diagram.c (diagram_ungroup_selected) 
6393         (diagram_group_selected): Use the undo apply to make sure grouping
6394         and ungrouping is done in consistent manners.  This removes a fair
6395         amount of duplicated code from diagram.c.
6397         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
6398         (group_objects_revert, group_objects_apply): Working undo/redo for
6399         diagram tree updates.  The initial actions still don't quite work.
6401 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6403         * app/create_object.c (create_object_button_press): 
6404         * app/undo.[ch]: 
6405         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
6406         undo only for manipulating the parent/child relationships.  Things
6407         like removing an object doesn't use the undo functions for
6408         parenting, so any updates to come (like to diagramtree) should be
6409         done in those, too.
6411 2003-08-03  Hans Breuer  <hans@breuer.org>
6413         * app/create_object.c : minor formating and g_new0 for
6414         tool creation
6416         * lib/bezier_conn.[hc] lib/beziershape.[hc]
6417           lib/prop_geomtypes.c (prop_geomtypes_register)
6418           objects/standard/bezier.c objects/standard/beziergon.c :
6419         ability to set bezpoints via StdProp api
6421         * plug-ins/python/pydia-property.c : convert list of tuples
6422         to BEZPOINTARRAY
6424         *  plug-ins/python/diasvg_import.py : use it to
6425         implement part of path parsing. Also minor improvements
6426         like inheritance of group attributes to members,
6427         whitespace, title and style:text/css ignoring ;-)
6429 2003-08-02  Hans Breuer  <hans@breuer.org>
6431         * lib/connections.c (connection_move_handle): return
6432         something to make it compile
6433         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
6434         must return a value -> dito
6435         [Is there a warnings-as-errors switch we could use with gcc 
6436          to avoid such in future ?]
6438         * plug-ins/python/pydia-object.h : define *_Check macros
6439         * plug-ins/python/diamodule.c : provide dia.group_create()
6440         * plug-ins/python/pydia-diagramdata.c : add 
6441         DiaDiagramData.add_layer()
6442         * plug-ins/python/pydia-property.c : allow to set color by
6443         tuple of doubles
6445         *  plug-ins/python/diasvg_import.py : based on the above
6446         implement a) group support, b) rgb(1,2,3) color handling,
6447         and somewhat fishy data:image/png;base64 support (create
6448         temporary files from inline image data)
6449         d) dump the import errors as text into an 'Error' layer
6451         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6452         stray " in draw_rect and corrected error message formating 
6454         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6455         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
6456         Jacobowitz.
6457         
6458 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
6460         * app/magnify.c (create_magnify_tool): allocate with g_new0()
6462         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
6463         preferences values (see bug 118570). Also group items into a GtkFrame.
6465 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6467         * app/menus.c:
6468         * app/menus.h:
6469         * app/commands.h: 
6470         * app/commands.c (objects_unparent_children_callback): 
6471         * app/diagram.h: 
6472         * app/diagram.c (diagram_unparent_selected,
6473         (diagram_update_menu_sensitivity): 
6474         Added unparenting of single children.
6476         * lib/bezier_conn.c:
6477         * lib/bezier_conn.h:
6478         * lib/beziershape.c:
6479         * lib/beziershape.h:
6480         * lib/connection.c:
6481         * lib/connection.h:
6482         * lib/element.c:
6483         * lib/element.h:
6484         * lib/group.c:
6485         * lib/neworth_conn.c:
6486         * lib/neworth_conn.h:
6487         * lib/object.h:
6488         * lib/orth_conn.h:
6489         * lib/poly_conn.c:
6490         * lib/poly_conn.h:
6491         * lib/polyshape.c:
6492         * lib/polyshape.h:
6493         * objects/EML/instantiation.c:
6494         * objects/EML/interaction-ortho.c:
6495         * objects/EML/interaction.c:
6496         * objects/EML/process.c:
6497         * objects/ER/attribute.c:
6498         * objects/ER/entity.c:
6499         * objects/ER/participation.c:
6500         * objects/ER/relationship.c:
6501         * objects/FS/flow-ortho.c:
6502         * objects/FS/flow-poly.c:
6503         * objects/FS/flow.c:
6504         * objects/FS/function.c:
6505         * objects/GRAFCET/action.c:
6506         * objects/GRAFCET/condition.c:
6507         * objects/GRAFCET/step.c:
6508         * objects/GRAFCET/transition.c:
6509         * objects/GRAFCET/vector.c:
6510         * objects/GRAFCET/vergent.c:
6511         * objects/Misc/analog_clock.c:
6512         * objects/SADT/annotation.c:
6513         * objects/SADT/arrow.c:
6514         * objects/SADT/box.c:
6515         * objects/UML/activity.c:
6516         * objects/UML/actor.c:
6517         * objects/UML/association.c:
6518         * objects/UML/branch.c:
6519         * objects/UML/class.c:
6520         * objects/UML/classicon.c:
6521         * objects/UML/component.c:
6522         * objects/UML/constraint.c:
6523         * objects/UML/dependency.c:
6524         * objects/UML/fork.c:
6525         * objects/UML/generalization.c:
6526         * objects/UML/implements.c:
6527         * objects/UML/large_package.c:
6528         * objects/UML/lifeline.c:
6529         * objects/UML/message.c:
6530         * objects/UML/node.c:
6531         * objects/UML/note.c:
6532         * objects/UML/object.c:
6533         * objects/UML/realizes.c:
6534         * objects/UML/small_package.c:
6535         * objects/UML/state.c:
6536         * objects/UML/state_term.c:
6537         * objects/UML/usecase.c:
6538         * objects/chronogram/chronoline.c:
6539         * objects/chronogram/chronoref.c:
6540         * objects/custom/custom_object.c:
6541         * objects/flowchart/box.c:
6542         * objects/flowchart/diamond.c:
6543         * objects/flowchart/ellipse.c:
6544         * objects/flowchart/parallelogram.c:
6545         * objects/network/bus.c:
6546         * objects/network/wanlink.c:
6547         * objects/standard/arc.c:
6548         * objects/standard/bezier.c:
6549         * objects/standard/beziergon.c:
6550         * objects/standard/box.c:
6551         * objects/standard/ellipse.c:
6552         * objects/standard/image.c:
6553         * objects/standard/line.c:
6554         * objects/standard/polygon.c:
6555         * objects/standard/polyline.c:
6556         * objects/standard/textobj.c:
6557         * objects/standard/zigzagline.c:
6558         Binary compatibility update:  Added return value for foo_move() and
6559         foo_move_handle().  Orthconn derivatives also returns change from
6560         orthconn_move_handle().
6561         
6562         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
6563         doesn't support it yet.
6565         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6566         Add returning ObjectChange from object moves.  Needs to handle
6567         multiple object moves.
6569         * app/modify_tool.c (modify_motion, modify_release): Add
6570         ObjectChange from move & move_handle to undo stack.
6572         * objects/EML/instantiation.c (instantiation_move): Removing
6573         duplicate move & update.
6575 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6577         * plug-ins/xfig/xfig-export.c: Added support for arrow head
6578         export.  Many arrow types not supported by XFig, replacing those
6579         with standard arrows.  Not sure whether it'd be better to render
6580         them as a group of lines instead.  You'd lose the arrow-ness for
6581         further editing, but preserve the actual shape of it.  Also added
6582         support for dash length.
6584         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6586         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6587         description for version 3.2, for reference.
6589         * plug-ins/xfig/xfig-import.c: Added import of arrows.
6591         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
6592         Align Vertical Adjacent call _v rather than _h.
6594 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
6596         * app/scroll_tool.c (create_scroll_tool): 
6597         * app/modify_tool.c (create_modify_tool): use g_new0() to
6598         initialize the tool
6600 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6602         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6604 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
6606         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6608 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
6610         * configure.in: Added Belarusian to ALL_LINGUAS.
6612 2003-07-19  Hans Breuer  <hans@breuer.org>
6614         [
6615          Make the xslt plug-in work on win32, too. It appears
6616          to require a quite recent version of libxml and libxslt,
6617          otherwise windoze pathes aren't translated correctly
6618          during file processing
6619         ]
6621         * plug-ins/xslt/xslt.h : #include <glib.h> before 
6622         using G_OS_WIN32
6624         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6625         the 'script' file finding similar to how it is done
6626         with the python scripts (no need for hardcoded pathes,
6627         removed the 'plugin' part from the path)
6629         * plug-ins/xslt/stylesheets.xml : added again. It does
6630         not have any path but only the pure filename again
6632         * plug-ins/xslt/stylesheets.xml.in : removed
6634         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6635         rule to process stylesheets.xml.in
6637         * plug-ins/makefile.msc : added xslt
6639 2003-07-19  Hans Breuer  <hans@breuer.org>
6641         Finally Dia learned to remember the recent selected sheet
6643         * app/preferences.[hc] : added prefs.recent_sheet
6644         * app/interface.c : restore and remember the sheet-option-menu
6645         history, but only if the respective number is stiil available.
6646         This additional adds robustness against running Dia without
6647         any sheet (e.g. installation problems)
6648         * app/app_procs.c : call prefs_safe() in app_exit() to remember
6649         changes which are not done by the prefernces dialog
6651         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6652         removed every call (especially the conditional ones) to prefs_safe().
6653         Before prefs_safe() was called _many_ times during Dia startup
6655 2003-07-18  Hans Breuer  <hans@breuer.org>
6657         * app/makefile.msc lib/makefile.msc lib/libdia.def :
6658         updated win32 build
6660         * lib/color.c : use gtk_widget_get_default_visual();
6661         as suggested in #114536
6663         * app/interface.c app/disp_callbacks.c :
6664         moved round_up () to the latter file where it is used
6666         * app/linewidth_area.c : #include "interface.h" for
6667         interface_get_toolbox_shell()
6669 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
6671         * plug-ins/pixbuf/.cvsignore
6672         * shapes/Cisco/.cvsignore: 
6673         added cvsignore
6675 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6677         * app/dia-props.c (diagram_properties_retrieve): Use
6678         diagram_get_name() to add the diagram name to the diagram
6679         properties dialog.
6681         * app/diagram.h: 
6682         * app/diagram.c (diagram_get_name): New function to get a
6683         reasonable diagram name.
6685         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6686         info.  Still need to be able to set dynamic grid.  Also ought to
6687         follow Gnome style and have instant apply.
6689         * app/preferences.h: 
6690         * app/preferences.c (prefs_data): Remove option to use stippled
6691         grid, add option for major line offset.  Default to 5 minor lines
6692         per major line.
6693         Add option for dynamically sized grid.
6695         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6697         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6698         stippled/solid to display minor/major grid lines.  Line drawing in
6699         separate functions away from calculating line distance.
6701         * app/grid.h: Split page break drawing out of grid_draw.
6703         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6704         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
6705         when menu item is selected.
6707 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6709         * configure.in: Removed -Winline flag to make way for important
6710         warnings. 
6712         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
6713         non-compressed.  Should fix bug #117381, also look prettier.
6714         
6715         * Makefile.am: 
6716         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
6717         Set up desktop info more properly.
6719 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6721         * activity.c:
6722         * actor.c:
6723         * branch.c:
6724         * class.c:
6725         * classicon.c:
6726         * component.c:
6727         * large_package.c:
6728         * lifeline.c:
6729         * node.c:
6730         * note.c:
6731         * object.c:
6732         * small_package.c:
6733         * state.c:
6734         * state_term.c:
6735         * usecase.c: 
6736         Autorouting directions patch from Krzysztof Foltman
6737         <kfoltman@onet.pl>.
6739         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
6740         GNOME parent menu items.
6741         
6742         * app/authors.h: Added Vadim to contributors list.
6744 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6746         * app/commands.[ch]: 
6747         * app/create_object.c: 
6748         * app/disp_callbacks.[ch]: 
6749         * app/diagram.[ch]: 
6750         * app/interface.c: 
6751         * app/load_save.c: 
6752         * app/menus.[ch]:
6753         * app/modify_tool.c
6754         * app/undo.[ch]:
6755         * lib/Makefile.am:
6756         * lib/group.c: 
6757         * lib/object.[ch]: 
6758         * lib/parent.[ch]:
6759         * objects/UML/large_package.c: Patch from Vadim Berezniker
6760         <vadim@berezniker.com>: 
6761         Objects may "parent" other objects, i.e. contain them within
6762         themselves, restrain them and move them along.  Some more stuff is
6763         needed, such as selection and individual unparenting.  This adds
6764         parenting to UML - Large Package rather than Box.
6766 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6768         * app/linewidth_area.c: Patch from Krzysztof Foltman
6769         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
6770         conform more, at least:).
6772         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
6773         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
6774         arcs.  Implemented images (though there is some pixelization and
6775         banding in the output).  Changed output file format to be a little
6776         more readable.  
6778         * app/app_procs.c (app_exit): Added message for double exit, which
6779         shouldn't happen any more.  Also preventing strange g_object_unref
6780         messages by having a printf after gtk_main_quit.  This is really
6781         weird.
6783         * app/interface.c (toolbox_delete): Avoid double app_exit call by
6784         removing handler for destroy when delete is called.
6786 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6788         * app/display.h: 
6789         * app/display.c (ddisplay_scroll_to_object,
6790         ddisplay_scroll_center_point):  New function for easy scrolling to
6791         object or point.
6793 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6795         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
6796         $(srcdir) on stylesheets.xml.
6798         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
6799         diagram menus (since they're at the top by default now).  Also
6800         move the Properties... menu item from Dialogs to Objects.  Dialogs
6801         menu should disappear at some point.
6803         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
6804         ./configure from ./autogen.sh, as configure may need to be run
6805         from a different directory.  (Also more standard this way.)
6807         * app/app_procs.c (app_init): 
6808         * app/Makefile.am (INCLUDES): Gnome standardization patch from
6809         Alex. 
6811 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6813         * objects/flowchart/parallelogram.c (pgram_update_data):
6814         Left/right alignment for parallelograms.  Doesn't use all
6815         available space, but then pgrams also ignore their shear value.
6816         This thing needs a loving hand.
6818 2003-07-01  Hans Breuer  <hans@breuer.org>
6820         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
6821         * lib/proplist.c : don't complain if optional attr is missing
6822         * lib/orth_conn.h : make "orth_autoroute" optional to
6823         stop complaining with older files.
6825 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
6827         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
6829 2003-06-05  Andrew Halper  <ashalper@cox.net>
6831         * app/diagram_tree.c : add scrolling of drawing area
6832         to desired object on "Locate".  Patch modified to use new ddisplay
6833         function ddisplay_scroll_to_object().
6835 2003-06-11  Lars Clausen  <lars@raeder.dk>
6837         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6838         info.  Before next version, the grid dialog (view dialog, really)
6839         must be redone to allow a) instant apply, b) apply to all
6840         diagrams, and c) setting colour, dynamic, major lines.
6842         * app/preferences.h: 
6843         * app/preferences.c (prefs_data): Remove option to use stippled
6844         grid, add option for major line offset.  Default to 5 minor lines
6845         per major line.
6846         Add option for dynamically sized grid.
6848         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6850         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6851         stippled/solid to display minor/major grid lines.  Line drawing in
6852         separate function away from calculating line distance.
6854         * app/grid.h: Split page break drawing out of grid_draw.
6856 2003-05-15  Hans Breuer  <hans@breuer.org>
6858         * plug-ins/python/diasvg.py : add xlink definition,
6859         also avoid to put spaces into attribute values. At least
6860         Sodipodi doesn't like them in width/height attributes
6862         * plug-ins/python/diasvg_import.py : add simple scaling.
6863         Some (more) handling for <svg>, <desc>, <circle>        
6865         * plug-ins/python/scascale.py : (new file) which does
6866         some experimental scaling via StdProp api
6868         * plug-ins/python/pydia-cpoint.c 
6869           plug-ins/python/pydia-handle.c : return PyDiaPoint for
6870         obj.pos not simple tuples. PyDiaPoint has a tuple interface
6871         so this may even be api compatible ...
6873 2003-05-11  Hans Breuer  <hans@breuer.org>
6875         * app/line_area.c : add window position persitence
6877         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
6878         'poly_points' via StdProp api
6879         * lib/neworth_conn.h : don't rely on OrthConn and 
6880         NewOrtConn having the same struct offsets
6882         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
6883         to help separating 'useful' properies - in terms of
6884         the PyDia access
6886         * objects/custom/custom_object.c
6887           objects/UML/*.c
6888         add the missing prop_desc_list_calculate_quarks to
6889         all the *_describe_props()
6891         * objects/standard/beziergon.c objects/standard/bezier.c :
6892         explicit initializtion of default_user_data
6893         * objects/standard/polygon.c objects/standard/polyline.c :
6894         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
6896         * plug-ins/python/diamodule.c : implement dia.register_import
6898         * plug-ins/python/makefile.msc : need to link with Pango
6899         for pango_color_parse()
6901         * plug-ins/python/pydia-property.c : add a bunch of type
6902         conversions to PyDiaProperty_ApllyToObject()
6904         * plug-ins/python/diasvg_import.py : (new file) which currently
6905         is mainly a stress test for PyDia but for some files already
6906         produces better results than svg-import.c
6908 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6910         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
6911         type-less operations.
6913 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
6915         * configure.in(ALL_LINGUAS): Added "ms".
6917 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6919         * plug-ins/xslt/xslt.c (xslt_ok): 
6920         * plug-ins/shape/shape-export.c (new_shape_renderer): 
6921         * plug-ins/svg/render_svg.c (new_svg_renderer): 
6922         * plug-ins/hpgl/hpgl.c (export_data): 
6923         * plug-ins/dxf/dxf-export.c (export_dxf): 
6924         * plug-ins/metapost/render_metapost.c (export_metapost): 
6925         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
6926         * plug-ins/xfig/xfig-export.c (export_fig): 
6927         * plug-ins/wpg/wpg.c (export_data): 
6928         * plug-ins/cgm/cgm.c (export_cgm): 
6929         * app/render_eps.c (export_eps): 
6930         * app/export_png.c (export_png_ok): 
6931         * app/load_save.c (diagram_data_save): Adding and standardizing
6932         output file error messages to include fopen error message.
6934 2003-05-01  Steffen Macke <sdteffen@web.de>
6936         * app/persistence.c: do not use unistd.h for MSVC build
6938 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6940         * sheets/Assorted.sheet.in
6941         * sheets/Circuit.sheet.in
6942         * sheets/Contact.sheet.in
6943         * sheets/EML.sheet.in
6944         * sheets/ER.sheet.in
6945         * sheets/Electric.sheet.in
6946         * sheets/FS.sheet.in
6947         * sheets/Flowchart.sheet.in
6948         * sheets/GRAFCET.sheet.in
6949         * sheets/Logic.sheet.in
6950         * sheets/MSE.sheet.in
6951         * sheets/Misc.sheet.in
6952         * sheets/Pneumatic.sheet.in
6953         * sheets/SADT.sheet.in
6954         * sheets/SDL.sheet.in
6955         * sheets/UML.sheet.in
6956         * sheets/chronogram.sheet.in
6957         * sheets/ciscohub.sheet.in
6958         * sheets/ciscomisc.sheet.in
6959         * sheets/cisconetwork.sheet.in
6960         * sheets/ciscorouter.sheet.in
6961         * sheets/civil.sheet.in
6962         * sheets/network.sheet.in
6963         * sheets/sybase.sheet.in:
6964         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
6965         standardizes shape descriptions to use no articles, no 'create
6966         ...'.
6967         
6968         * app/interface.c (tool_data): Standard objects follow same
6969         standard as sheets.
6971 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6973         * app/color_area.c (color_area_edit): More informative title on
6974         color selection dialog.
6976         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
6977         sensitivity when dropping object in.  Also reset tool to pointer.
6979         * objects/flowchart/diamond.c (diamond_update_data): 
6980         * objects/flowchart/parallelogram.c (pgram_update_data): Added
6981         left and right alignment options.
6983 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6985         * objects/flowchart/box.c: Added left and right alignment options.
6987 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6989         * app/persistence.c (persistence_load): Test existence of
6990         persistence file before trying to open it.
6992 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6994         * app/properties.c: Escape now closes properties dialogs.
6996 2003-04-25  Hans Breuer  <hans@breuer.org>
6998         * app/config.h.win32 : bump version to 0.91+cvs
7000         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
7002         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
7004         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
7005         returns NULL
7007         * app/presistence.c : need to #include "dia_xml_libxml.h"
7008         for xmlDiaParseFile
7010         * app/layer_dialog.c : make delayed creation work by protecting
7011         all non static layer_dialog_*() with :
7012            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
7013              create_layer_dialog();
7014         * app/app_procs.c : removed /* create_layer_dialog(); */
7016         * objects/uml/association.c : give it a minimal StdProp
7017         implementation to fix bug #108896
7018         * lib/object_defaults.c : don't try to copy props if there
7019         is no obj->ops->describe_props
7021 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7023         * objects/standard/image.c (image_create): 
7024         * objects/standard/ellipse.c (ellipse_create): 
7025         * objects/standard/box.c (box_create): 
7026         * objects/flowchart/ellipse.c (ellipse_create): 
7027         * objects/flowchart/diamond.c (diamond_create): 
7028         * objects/flowchart/box.c (box_create): 
7029         * objects/custom/custom_object.c (custom_create): 
7030         * objects/ER/relationship.c (relationship_create): 
7031         * objects/ER/entity.c (entity_create): 
7032         * objects/ER/attribute.c (attribute_create): Initialize
7033         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
7035         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
7036         alignment. 
7038         * configure.in: 
7039         * plug-ins/Makefile.am: 
7040         * plug-ins/xslt/Makefile.am: 
7041         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7042         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
7043         automake-style if to only include xslt dir when needed.  Works
7044         with automake 1.4 and up, at least.
7046 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7048         * lib/diasvgrenderer.c (draw_string): 
7049         * lib/dia_svg.c (dia_svg_parse_style): Use
7050         text-anchor:(start|middle|end).
7052         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
7053         polygon rather than polyline & avoid missing line pieces.
7054         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
7055         black-filled things.
7057 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7059         * app/persistence.c (persistence_load): Check that persistence
7060         file exists before trying to read it.
7061         (persistence_update_window): Removed printf.
7063         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
7065         * lib/autoroute.c: Take badness into the layouters again, as some
7066         of them know they can do things that are pretty but would be
7067         counted as ugly by the default calculation.
7069         * objects/UML/large_package.c: Shrink package name box when no
7070         stereotype is present.
7072         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
7073         * lib/orth_conn.c: Added object menu item for autorouting.
7075         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
7076         Autorouting, plus set initial dragging handle to be the end, not
7077         the middle.
7078         (orthflow_draw): Flipped arrow place to be at the end, as
7079         originally intended (got lost in arrow update).
7081         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
7082         * objects/UML/dependency.c (dependency_get_object_menu): 
7083         * objects/UML/association.c (association_get_object_menu): 
7084         * objects/UML/realizes.c (realizes_get_object_menu): 
7085         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
7086         * objects/GRAFCET/vector.c (arc_get_object_menu): 
7087         * objects/ER/participation.c (participation_get_object_menu): 
7088         * objects/EML/instantiation.c (instantiation_get_object_menu): 
7089         * objects/UML/generalization.c (generalization_get_object_menu): 
7090         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
7091         Autorouting setup (currently disabled for SADT/arrow).
7092         
7093 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7095         * lib/autoroute.c: Removed printfs.
7097         * lib/orth_conn.c: 
7098         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7099         non-connected orthconns too.
7101 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7103         * lib/orth_conn.h: 
7104         * lib/orth_conn.c: Function to set autorouting on/off, use
7105         autorouting in move_handle (turns off when a middle handle is
7106         moved), added to standard orthconn props. 
7108         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7109         Stopped signal emission for check menu items being set to on/off.
7111         * objects/standard/zigzagline.c: Added autorouting object menu item.
7113         * lib/autoroute.c: Added last cases of autoroute layout, fixed
7114         floating point comparison bug, cleaned up layouters, tweaked
7115         badness to allow kinks. 
7117 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7119         * lib/connectionpoint.h: Changed DIR_* macros to go around the
7120         clock. 
7122         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7123         points at once.
7124         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7125         old cruft, added call to autoroute (currently cannot be turned
7126         off).  Need to check what undo thinks about this.
7127         * lib/autoroute.[ch]: Fairly working simple layout.
7129         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7130         * lib/autoroute.[ch]: Start of proper autorouting functionality.
7132 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7134         * lib/prop_widgets.c: Show labels on ListProp.
7136 2003-04-11  Steffen Macke <sdteffen@web.de>
7138         * doc/en/dia-manual.xml: removed reference of non-existing authors 
7139         note.
7140         * doc/en/usage-objects-selecting: commented out misleading section
7141         references.
7143 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7145         * app/app_procs.c (app_init): Layer window now opened at startup
7146         only if needed.
7148         * lib/prop_widgets.c: Show labels on ListProp.
7150 2003-04-09  Steffen Macke <sdteffen@web.de>
7152         * doc/en/*.sgml: removed files
7153         * doc/en/*.xml: added files
7154         * doc/en/Makefile.am: switched to XML DocBook
7156 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7158         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7159         * configure.in: Added --with-xslt-prefix to allow other XSLT
7160         placements than /usr/lib.
7162 2003-04-09  Steffen Macke <sdteffen@web.de>
7164         * lib/makefile.mingw: updated to include latest files, including 
7165         and linking libintl
7166         * lib/geometry.h: don't define isinf and finite for mingw gcc build
7168 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7170         * app/persistence.h:
7171         * app/persistence.c (persistence_register_window_create): 
7172         * app/app_procs.c (app_init): 
7173         Register window function that doesn't create the window unless it
7174         should be open.  Other windows should move to this, so startup
7175         speed can be reduced.
7176         
7177         * app/persistence.h: Removed call prototype for update_window, now
7178         done internally.
7179         * app/persistence.c (persistence_register_window): A number of
7180         fixes.  Doesn't forget position when window is closed.  Now
7181         actually loads prefs.
7183         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7184         event connect.
7186         * app/preferences.c (prefs_data): 
7187         * app/diagram_tree_window.h: 
7188         * app/diagram_tree_window.c: Added persistence registering.
7189         Removed prefs items storing size and openness. 
7191         * app/sheets_dialog.c (create_sheets_main_dialog): Added
7192         persistence registering.  
7194         * app/Makefile.am (dia_core_files): Added persistence files.
7196         * lib/dia_dirs.h: 
7197         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7198         that dirs are present.
7200         * app/app_procs.c (app_init): Loads persistent values on startup.
7201         (app_exit): Saves persistent values on exit.
7203         * app/layer_dialog.c (create_layer_dialog): Registers the layer
7204         window for persistence.
7206         * app/persistence.[ch]: New files handling various kinds of
7207         persistence.
7209 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7211         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7212         head spacing calculations.  Added half-circle arrow from Matthieu
7213         Sozeau <mattam@netcourrier.com> 
7215 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7217         * app/app_procs.c (app_init): Moved layer dialog init to allow
7218         tooltips to be initialized.
7220         * app/interface.c (create_display_shell): More tooltips.
7222         * app/linewidth_area.c (linewidth_area_create) 
7223         (linewidth_area_events): 
7224         * app/color_area.c (color_area_events, color_area_create): 
7225         Made tooltips work by embedding drawing_area in event_box.
7227         * app/interface.c (create_display_shell,
7228         (create_lineprops_area, create_color_area): Added a few tooltips.
7230 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7232         * app/pixmaps/off-grid.xpm: 
7233         * app/pixmaps/on-grid.xpm: 
7234         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7236         * app/display.h: 
7237         * app/commands.c (view_snap_to_grid_callback): 
7238         * app/display.c (ddisplay_set_snap_to_grid) 
7239         (update_snap_grid_status): 
7240         * app/interface.c (create_display_shell, grid_toggle_snap): 
7241         Added snap-to-grid status button.
7243 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7245         * app/app_procs.c (app_init): Create a new diagram if a file on
7246         the command line isn't found.
7248 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7250         * lib/dialibartrenderer.c (draw_string): Correct color handling
7251         for AA.
7253 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7255         * NEWS: 
7256         * doc/en/dia-manual.sgml: 
7257         * doc/pl/dia-manual.sgml: 
7258         * configure.in: 
7259         * dia.spec (Release): 
7260         Version 0.91 is here!
7262 2003-02-10  Steffen Macke <sdteffen@web.de>
7264         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
7265         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7266         non-ANSI characters, closes #107980
7268 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7270         * configure.in: 
7271         * NEWS: 
7272         * dia.spec (Release): 
7273         * doc/en/dia-manual.sgml: Upping to pre6.
7275         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7277         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7278         #107511:  Make arrow selector for correct arrow type.
7280 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7282         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7283         EXTRA_DIST.
7285 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7287         * doc/en/dia-manual.sgml: 
7288         * configure.in: 
7289         * NEWS: 
7290         * dia.spec (Release): Upping to pre5.
7292         * configure.in: Add freetype-config derived libs to the
7293         AC_CHECK_LIB statement for freetype.
7295 2003-02-28  Hans Breuer  <hans@breuer.org>
7297         [fix for bug #107203]
7299         * lib/diarenderer.c : add warning 'implementation'
7300         for fill_rect to avoid crashing with a renderer
7301         which does not implement this required function.
7303         * plug-ins/dxf/dxf-export.c : provide - still empty -
7304         'implementations' for fill_rect and fill_polygon 
7305         to suppress the above warnings. Now it works like
7306         in version 0.90 
7308 2003-02-28  Steffen Macke <sdteffen@web.de>
7310         * samples/all_objects.dia: New sheet containing all dia shapes
7311         and objects; one layer per sheet
7312         
7313 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7315         * lib/prop_text.c (multistringprop_get_widget,
7316         multistringprop_reset_widget, multistringprop_set_from_widget): 
7317         Now uses GtkTextView instead of deprecated stuff, and also works:)
7319         * configure.in: Slightly more informative error message for isinf.
7321         * dia.spec (Requires): Require libxml2 rather than libxml.
7323 2003-02-28  Steffen Macke <sdteffen@web.de>
7325         * shapes/Circuit/hjumper.png:
7326         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7327         jumper shape
7328         
7329 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7331         * doc/en/dia-manual.sgml: 
7332         * configure.in: 
7333         * dia.spec (Release):
7334         * NEWS: New prerelease 0.91pre4, two important fixes.
7336 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7338         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7339         stylesheets.xml.in 
7341         * app/commands.c (help_manual_callback): More correct URL for help
7342         page (include file://, was broken on Dillo without it).
7344 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7346         * app/disp_callbacks.c: Set modifed when text is changed.
7348         * app/modify_tool.c (modify_button_release): Allow undo for moving
7349         objects.
7351 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7353         * dia.spec: 
7354         * doc/en/dia-manual.sgml: 
7355         * NEWS: 
7356         * configure.in: New prerelease with important bugfix.
7357         * shapes/network/digitizing_board.png:
7358         * shapes/network/plotter.png: Re-adding with -kb.
7359         
7360 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
7362         * app/app_procs.c (app_init): Add comment for translators.
7364 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7366         * lib/filter.c (filter_register_import, filter_register_export):
7367         Don't accept filters with NULL description.
7369         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7370         (as we assume the description is available in other places).
7372 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7373         
7374         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
7375         * app/display.c (ddisplay_resize_canvas): Use
7376         ddisplay_add_update_all().
7377         (ddisplay_add_update_all): Free display and update lists when
7378         doing update_all, as they'll be regenerated immediately to cover
7379         all visible area.  Fixes bug #106165, crash when resizing.  This
7380         appears to be the original AA crash bug, believed long extinct.
7382 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7384         * app/commands.c (help_manual_callback): Use file: protocol for
7385         help. 
7387         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7389         * plug-ins/xslt/stylesheets: Removed old-style config file.
7390         
7391         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7393         * plug-ins/xslt/Makefile.am: 
7394         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7395         handling (no more DIA_PLUGIN_PATH).
7397 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
7399         * plug-ins/svg/render_svg.c: 
7400         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7402 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7404         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
7405         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
7406         side of the triangle is longer than the hypotenuse.  Rounding
7407         error suspected.
7409 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7411         * NEWS: 
7412         * configure.in: 
7413         * doc/en/dia-manual.sgml: Update for pre2.
7415         * app/menus.c (display_menu_items): Fixed wrongly place separators.
7417         * objects/flowchart/box.c (box_update_data): Applied patch from
7418         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7419         comment). 
7421         * app/paginate_psprint.c (print_page): Set paper name, so it
7422         convinces ps printers to use to right size.
7424 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7426         * app/properties.c (properties_show): Hide the dialog if the
7427         object is NULL (get rid of 'no properties' randomly popping up).
7429 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7431         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7432         for diagrams not starting at origo.
7434 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7436         * dia.spec (BuildRequires): Use libxml2-devel.
7438         * plug-ins/pixbuf/Makefile.am: Added to CVS.
7440         * RELEASE-PROCESS: Note on RPM version numbers.
7442         * app/interface.c (create_display_shell): Don't set as toolbar
7443         under Unix, either.  Especially not the diagram shell.  It removes
7444         it from the taskbar and makes it unresizable, always-on-top with
7445         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
7446         appropriate thing, UTILITY, is not good either, you lose resizing
7447         and minimizing/maximizing under OpenBox.
7449         * app/menus.c (display_menu_items): Set delete item to use Delete.
7451 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7453         * dia.spec (BuildRequires, Requires): Updated for Gtk2
7454         requirements.
7456         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7457         display flush when getting focus in, or we may get an update after
7458         the diagram has been destroyed in some cases.  Fixes bug #105221.
7460         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7462         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7464         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7465         - gnome-compiled Dia will now read files specified on the command line.
7467 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7469         * INSTALL (REQUIREMENTS): Updated requirements section.
7471         * configure.in: Better finite() check from MÃ¥rten Svantesson
7472         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
7473         if's. 
7474         
7475 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7477         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7479         * app/app_procs.c (debug_break): Added some code to avoid
7480         over-eager optimizations removing the call.  Surely there's a
7481         nicer way, but I'm not sure how.
7483         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7484         that set text to black.
7486 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7488         * NEWS: Mention of Twiki as doc source for Python.
7490         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7491         libart/libpng is not available.  Later when we have a way of
7492         letting the user pick options in the file select dialog we shall
7493         allow the choice when applicable.
7495 2003-02-02  Steffen Macke <sdteffen@web.de>
7497         * doc/en/usage-loadsave.sgml:
7498         * doc/en/usage-objects.sgml: patch from
7499         James K. Lowden <jklowden@schemamania.org> to fix
7500         some docbook errors
7501         
7502 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7504         * plug-ins/Makefile.am (SUBDIRS): 
7505         * plug-ins/pixbuf/pixbuf.c: 
7506         * plug-ins/pixbuf/Makefile.am: 
7507         * configure.in: 
7508         Added pixbuf plugin to Makefile.am, but for import only.  PNG
7509         export handled by libart, which is better. JPG export is
7510         discouraged.  BMP is not much used on Unix.  Next release will
7511         integrate libart to allow all outputs.
7513 2003-02-01  Hans Breuer  <hans@breuer.org>
7515         * app/preferences.c :
7516         * app/pagesetup.c :
7517         the last two dialogs with 'old' button order finally
7518         are converted to gtk2, no GnomeDialog in all of Dia 
7519         anymore :-) 
7521 2003-02-01  Hans Breuer  <hans@breuer.org>
7523         * app/filedlg.c : don't try to use a button as
7524         'overwrite-file-dialog'-parent, use the FileSelDialog
7525         instead
7527         * plug-ins/pixbuf/pixbuf.c : make it work with 
7528         system-visual-depth < 24. Remove 'bmp' from output
7529         format extensions, it just was wishful thinking.
7531         * plug-ins/python/Makefile.am : added the four new python 
7532         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7534 2003-02-01  Hans Breuer  <hans@breuer.org>
7536         * NEWS : updated content beside dependencies
7538 2003-02-01  Hans Breuer  <hans@breuer.org>
7540         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7541         to make it useable across DLL boundaries
7542         * app/lineprops_area.c : same code to access arrow_types
7543         on all platforms
7545         * objects/UML/class.c : the non empty string is e.g.
7546         comment != NULL && comment[0] != '\0'
7547         * objects/UML/uml.c : same here, don't bother with
7548         empty operation stereotypes
7550 2003-02-01  Steffen Macke <sdteffen@web.de>
7552         * app/lineprops_area.c: latest changes do not work on
7553         windows, using old code without tooltips
7554         * makefile.msc: fixed copying of wmf.dll
7555         * plug-ins/makefile.msc: 
7556         * app/makefile.msc:
7557         * lib/makefile.msc: now linking libintl
7558         * config.h.win32: enabling native language support
7560 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7562         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7563         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
7565 2003-01-31  Daniel Yacob  <locales@geez.org>
7567         * configure.in: Added am (Amharic) to ALL_LINGUAS.
7569 2003-01-31  Steffen Macke <sdteffen@web.de>
7571         * objects/UML/class.c (umlclass_calculate_data): fixed crash
7572         when comments were visible, no class comment available and
7573         a attribute comment
7574          
7575 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7577         * RELEASE-PROCESS: Updated to fit new install-module syntax.
7578         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
7579         with DIA_0_91_PRE1.
7581 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7583         * config.h.win32: 
7584         * NEWS: 
7585         * configure.in:
7586         * dia.spec:
7587         Prerelease version changes, version 0.91-pre1.
7589         * app/sheets_dialog_callbacks.h: 
7590         * app/sheets_dialog_callbacks.c: 
7591         * app/sheets_dialog.c (create_sheets_main_dialog): 
7592         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
7593         to handle destruction of main dialog cleanly, but it's a mess.
7595         * configure.in: Downgraded ieeefp test to make it not produce
7596         illegal shell code.
7598         * lib/widgets.c (dia_arrow_selector_set_arrow): 
7599         (dia_line_style_selector_set_linestyle): Select menu dot
7600         correctly set.
7602         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7603         adjustment for diamondheads.
7605         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7607         * app/properties.c (create_dialog): Destroy properties dialog and
7608         box correctly.
7610         * app/sheets_dialog_callbacks.c
7611         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7612         if the old one is destroyed.
7614 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7616         * app/export_png.c (export_png_ok): Added info on resolution.
7617         Should (next release) improve export dialog to allow setting
7618         resolution instead of pixels.
7620         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7621         to generate arrowheads as well as tooltips.
7623         * lib/arrows.c: Added hollow diamond to menudesc list.
7625         * lib/arrows.[ch]: 
7626         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7627         unify with rendered menu.
7629         * lib/diarenderer.c (draw_line_with_arrows)
7630         (draw_polyline_with_arrows, draw_arc_with_arrows)
7631         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7632         without changing renderer API.  Thanks to David Scherba for
7633         providing inspiration.
7635 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7637         * app/interface.c (create_display_shell):
7638         * app/display.h: Patching from Hubert Figuiere
7639         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
7640         correct menu items.
7642 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7644         * app/defaults.c (defaults_show): Fixed defaults closing bug.
7645         Thanks to Hans for pointing it out.
7647 2003-01-25  Hans Breuer  <hans@breuer.org>
7649         * app/commands.c : don't warn about crashing libart renderer
7650         on win32. It simply doesn't render text anymore :-(
7652         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7654         * objects/UML/class.c : don't access umlclass->properties_dialog
7655         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7656         which sets the former to NULL by destroy_properties_dialog() callback.
7658         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7660         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7662         * plug-ins/python/pydia-image.c : add image.uri member
7663         not only useful for SVG rendering
7665         * plug-ins/python/diasvg.py : (new file) a more advanced
7666         example. A full blown SVG Renderer, currently only
7667         registered for .svgz
7669         * plug-ins/python/export-object.py : write text props
7671         * plug-ins/python/debug_objects.py : write prop.type and
7672         prop.visible 
7674 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7676         * objects/UML/association.c (association_update_data): Better
7677         bounding box for assoc with arrows.
7679         * lib/properties.h: New flag for properties with multiple values
7680         in groups.
7682         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7683         arrow updating in dialog.  Was broken due to changes from destroy
7684         fix:(
7686         * app/commands.c (view_aa_callback): AA warning only for Windows
7687         -- I trust the Unix side well enough.
7689         * app/render_libart.c (get_text_width): 
7690         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7691         font height can be taken from parent instance.
7693         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
7694         (get_text_width): Proper cursor positioning for libart renderer.
7695         Ought to have a DiaInteractiveRenderer that these two can inherit
7696         from, that knows about transform.
7698 2003-01-25  Steffen Macke <sdteffen@web.de>
7700         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7701         plug-in still not working on win32
7702         
7703 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7705         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7706         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
7707         thought.
7709 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
7711         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
7712         bail out on gtk options.
7714         * lib/message.c (gtk_message_internal): Better handling of destroy
7715         event.
7717 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7719         * app/color_area.c (color_area_edit): 
7720         * lib/widgets.c (dia_file_selector_browse_pressed) 
7721         (dia_color_selector_pressed): 
7722         * app/plugin-manager.c (get_plugin_manager): 
7723         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7724         (file_export_callback):
7725         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
7726         handling of destroy event.
7728 2003-01-22  Alan Horkan <horkana@tcd.ie>
7730         * app/commands.c (file_new_callback): Changed Untitled to Diagram
7731         for default name.
7733 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7735         * app/preferences.c (prefs_create_dialog): 
7736         * app/linewidth_area.c (linewidth_create_dialog): 
7737         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7738         * app/layer_dialog.c (create_layer_dialog)
7739         (layer_dialog_edit_layer): Correct handling of destroy signal. 
7741         * app/diapsft2renderer.c (set_font): Adjust silly random factor
7742         for change in font.c
7744         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
7746         * lib/font.c (dia_font_build_layout): Let's all use the same weird
7747         factor here.
7749         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7750         * app/layer_dialog.c (create_layer_dialog) 
7751         (layer_dialog_edit_layer): 
7752         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7753         (file_export_callback): 
7754         * app/dia-props.c (create_diagram_properties_dialog): 
7755         * app/defaults.c (defaults_dialog_destroyed): 
7756         * app/color_area.c (color_area_edit): Dialog destroy event handling.
7758 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7760         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
7761         defaults dialog destroyed.
7763 2003-01-19  Steffen Macke <sdteffen@web.de>
7765         * objects/makefile.msc: added bondgraph
7766         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
7767         to compile pixbuf.dll
7768         * makefile.msc: copying all objects and dlls now
7769         
7770 2003-01-19  Hans Breuer  <hans@breuer.org>
7772         * app/diagram.[hc] : provide dia_open_diagrams(), make
7773         open_diagrams variable static
7774         * app/dia.def : export it (to be used by PyDia)
7775         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
7776           app/display.c app/dynamic_refresh.c app/layer_dialog.c
7777           app/load_save.c : make use of dia_open_diagrams()
7779         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
7780         on win32. It removes the diagram window from the taskbar and
7781         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
7783         * app/menus.c : add '...' to menu entries where a dialog 
7784         gets invoked
7785         * app/recent_files.c app/dia_embedd.c : reflect the above in 
7786         menus_get_item_from_path() calls
7788         * lib/libdia.def : add dia_image_rgba_data
7790         * lib/properties.h lib/prop_text.[hc] : add new property
7791         type StringList
7792         * objects/UML/class.[hc] object/UML/class_dialog.c : use
7793         StringList for attributes_strings and operations_strings to
7794         make this calculated data accessible via the Property API
7796         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
7797         provide dia.new() to create a new diagram, dia.registered_types()
7798         to get on Dia's type registry, dia.message() for simple dialogs
7800         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
7801         to create a new display from a diagram. Let diagram.extents and
7802         diagram.bg_color return the same types as in diagramdata.*
7804         * plug-ins/python/pydia-geometry.c : add a read-only 
7805         'sequence interface' to DiaPoint and DiaRectangle
7807         * plug-ins/python/pydia-property.c : allow to get on StringList
7808         from Python
7810         * plug-ins/python/pydia-render.c : fix typo to make it compile
7812         * plug-ins/python/python-startup.py : removed 'import pygtk'
7813         again. This file does not need any gtk UI, and some python
7814         plug-ins don't do either
7816         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
7817         it should actually work as intended again
7819         * plug-ins/python/group_props.py : (new file) a prototype for
7820         one the most requested features: Change properties of selected
7821         objects in one step. Requires pygtk.
7823         * plug-ins/python/select_by.py : (new file) select objects by 
7824         common properties. Requires pygtk.
7826         [Start of 'PyDia Self Documentation Series']
7828         * plug-ins/python/pydiadoc.py : (new file) generates a new 
7829         diagram which contains all objects of dir(dia)
7830         
7831         * plug-ins/python/otypes.py : (new file) generates a new diagram 
7832         which contains all the currently registered object types sorted 
7833         by their containing package
7835 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7837         * configure.in: Added check for Pango >= 1.1.5, which appears to
7838         be enough to have text work.
7839         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
7840         do it.  AC_SUBST should be idempotent, though.
7842 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7844         * configure.in (HAVE_FREETYPE): Better test for freetype version
7845         using neat macro.
7846         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
7848         * lib/font.c: Renamed global_size_one to global_zoom_factor to
7849         avoid confusion, and added comment.  Set scale factor in
7850         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
7851         my weird scaling problems.  Fonts are now of the expectable size,
7852         i.e. the space between lines at size 1.0 is 1.0.  If we want a
7853         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
7854         diagrams, though there will always be differences.
7856 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7858         * plug-ins/python/python-startup.py: 
7859         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
7861         * plug-ins/python/python.c (dia_plugin_init): Added warning
7862         message for missing startup file.
7864         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
7865         
7866         * lib/dia_image.c (dia_image_rgb_data): 
7867         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
7868         involving EPS.  Can't do transparency in EPS yet.
7870         * lib/dia_image.h: 
7871         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
7872         data as one chunk.  Documentation for the RGB data getting funcs.
7873         (dia_image_rgb_data): Added comment.
7875         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
7876         (bug #103565)
7878 2003-01-13  Steffen Macke <sdteffen@web.de>
7880         * lib/dia_image.c: dia_image_rgb_data() is working for
7881         non-alpha images now. Fixes #93762
7882         * Makefile.am: added makefile.msc to EXTRA_DIST
7883         
7884 2003-01-10  Steffen Macke <sdteffen@web.de>
7886         * app/paginate_psprint.c: Closing print dialog when file
7887         could not be written. Fixes #84746
7888         
7889 2003-01-04  Steffen Macke <sdteffen@web.de>
7891         * doc/custom-shapes: incomplete description of <svg:text>
7893 2003-01-03  Steffen Macke <sdteffen@web.de>
7895         * makefile.msc(new): new makefile to create file
7896         structure suitable for running dia win32 under
7897         $(TOP)/dia/build/win32
7898         
7899 2003-01-02  Steffen Macke <sdteffen@web.de>
7900         
7901         * lib/dia_svg.c: including stdlib.h
7902         * lib/makefile.msc: added gdk_pixbuf libs to linker
7903         * app/makefile.msc: added gdk_pixbuf libs, made libart
7904         libs compatible with gnuwin32 package
7905         
7906 2003-01-01  Hans Breuer  <hans@breuer.org>
7908         * lib/font.c : more comment about global_size_one
7910         * app/menus.c : <control>[<shift>]A for plain gtk build too.
7912         * plug-ins/wmf/wmf.cpp : some type juggling to make 
7913         msvc7 happy
7915 2002-12-31  Steffen Macke <sdteffen@web.de>
7917         * app/makefile.msc: added hint on how to enable console output
7918         
7919 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7921         * objects/standard/textobj.c (textobj_load): Get the handle type
7922         right, at least to be the same as when created.
7924 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7926         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
7928 2002-12-08  Hans Breuer  <hans@breuer.org>
7930         * app/commands.c : fixed bug #85315 'give diagram properties, 
7931         instead of no object selected error' almost a one-liner
7933         * app/splash.c : don't make having the logo pixmap
7934         mandatory. Fixes bug #96068. 
7936         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
7937         sequence by connecting to the "delete_event"
7938         * app/objects/uml/class_dialog.c : handle "destroy" for 
7939         the same reason.
7941         * lib/libdia.def : remove diaXmlNewChild again
7943         * app/paginate_gdiprint.cpp : reflect Dia's page setting
7944         portrait/landscape in the windoze print dialog
7946         * objects/makefile.msc : only UML needs to link against
7947         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
7949 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7951         * objects/standard/ellipse.c (ellipse_distance_from): 
7952         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
7953         correct distance function.  Could be faster, but it's not really
7954         essential. 
7956 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
7958         * lib/font.c: Changed global_size_one to more correct 28.35.
7959         Looks better, too.
7961         * app/load_save.c:
7962         * lib/dia_xml.h: 
7963         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
7964         after all.
7966 2002-12-07  Hans Breuer  <hans@breuer.org>
7968         * lib/widgets.c : g_file_get_contents() silently assumes
7969         a binary file. Reflect when creating the font_menu file
7970         to get rid of junk in font menus
7972 2002-12-06  Hans Breuer  <hans@breuer.org>
7974         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
7975         removed 0xD 0xD 0xA line ends which get created by
7976         cvs if windoze line ends 0xD 0xA are checked in from
7977         *nix and checked out on win32.
7979         * app/preferences.c : changed toolbox_on_top default to
7980         false. It is currently not possible to change the behaviour
7981         at runtime, at least not on win32.
7983         * lib/dialibartrenderer.c : bug #94791 'rendering to 
7984         bitmap without PangoFt2' got delayed to milestone future 
7985         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
7986         It is not available without my Pango patch in bugzilla.
7988         * lib/font.c : added comment to global_size_one and adapt
7989         the arbitrary size scaling in dia_font_build_layout() for
7990         win32, too. This is needed to get an acceptable font size 
7991         approximation for Dia 0.90 and earlier files.
7992         Also #include "message.h".
7994         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
7995         reflect movement of group.[hc]
7996         * lib/group.h : export group_type which gets used by app/*
7998         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
7999         to get the GtkTypeInfo definition
8001         * plug-ins/makefile.msc : dxf and xfig don't need to link
8002         against app/ anymore now that group is moved to lib/
8004         * plug-ins/python/pydia-render.c : remove massive leaking
8005         of self, i.e. PyDiaRenderer
8007         *  plug-ins/python/makefile.msc : remove linking against
8008         GTK libs
8010 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8012         * objects/standard/line.c: Removed properties options for gaps,
8013         until release is done.
8015         * configure.in: Check for freetype version.
8017         * lib/text.c (text_insert_char): Fixed small buffer overflow for
8018         length = 0.
8020         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
8022         * app/diapsft2renderer.h: 
8023         * app/diapsft2renderer.c: 
8024         * app/diapsrenderer.h: 
8025         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
8027         * app/render_eps.c (export_eps, new_psprint_renderer): Using
8028         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
8030         * lib/properties.h: Fixed bad frame end def.
8032         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
8034         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
8035         
8036         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
8038 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8040         * lib/font.c: Now checking for the proper dia-style standard fonts.
8042         * lib/Makefile.am: 
8043         * app/Makefile.am: Moving group.[ch]
8045         * plug-ins/dxf/dxf-import.c: 
8046         * plug-ins/xfig/xfig-import.c: 
8047         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
8049         * app/object_ops.c: 
8050         * app/object_ops.h: 
8051         * lib/object.c (object_list_move_delta, object_copy_list): 
8052         * lib/object.h: Moved some object-related functions from
8053         object_ops to object to assist moving group.c.
8055         * lib/diatypes.h: Added Group typedef.
8057         * lib/group.h: 
8058         * lib/group.c: Moved from app to lib to a) resolve plug-ins
8059         references, and b) make groups more "real" objects.
8061         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
8063 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
8065         * lib/font.c (dia_font_init): Added check that the three standard
8066         fonts exist.
8068 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8070         * lib/dia_xml.[ch]:
8071         * app/load_save.c: Linebreaks in dia files, no indentation.
8072         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
8073         this. 
8074         
8075         * objects/standard/line.c: Small but important fixes to the line
8076         gap code.
8078         * lib/dia_xml.h: 
8079         * lib/dia_xml.c (diaXmlNewChild): 
8080         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8081         XML prettyprinting wrapper.
8083 2002-12-03  Steffen Macke <sdteffen@web.de>
8085         * shapes/Cisco/Makefile.am:
8086         * shapes/Cisco/*.shape: finished conversion of Cisco icons
8087         to *.png
8088         
8089 2002-12-02  Steffen Macke <sdteffen@web.de>
8091         * doc/en/Makefile.am:
8092         * doc/en/usage-objects.sgml:
8093         * doc/en/graphics/line_icon.png: (new) added line icon
8094         
8095 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8097         * objects/standard/line.c: Binary search object edge line gap.
8099 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8101         * configure.in: Added Cisco makefile, sorted Makefiles list.
8103         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8105         * configure.in: Now checks for availability of PangoFT2 and
8106         FreeType, raising an error if not found.
8108         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8109         Hans.
8111 2002-12-01  Steffen Macke <sdteffen@web.de>
8112         
8113         * doc/en/usage-loadsave.sgml: updated information on import
8114         and export formats
8115         
8116 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
8118         * app/commands.c (edit_copy_callback): Freeing copy_list.
8120 2002-11-28  Steffen Macke <sdteffen@web.de>
8121         
8122         * app/render_libart.c: art_config.h was included twice
8124 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8126         * sheets/.cvsignore: More ignorance.
8128         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8130         * lib/prop_widgets.h: Two (currently unused) settings for frame
8131         foldability.
8133         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8134         (by default) foldable. 
8136         * lib/propinternals.h: 
8137         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8138         widgets in a more controlled manner.
8140         * objects/standard/line.c (line_update_data): Line gap things
8141         inserted.  Can do xeyes now:)
8143 2002-11-26  Christian Neumair  <chris@gnome-de.org>
8145         * .cvsignore: Changed.
8146         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8147         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8148         Added.
8150 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8152         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8154         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8155         passing to font hash.
8157         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8158         utf-8 or locale-convertible before adding to dialog text.  This
8159         probably needs done in a number of places where we get text from
8160         the environment and send it to GTK to display.
8162         * lib/widgets.c: Fixed case problems for font menu entries.
8164         * objects/SADT/annotation.c: Don't run the event test (but leave
8165         it here for inspiration).
8167         * lib/widgets.c: 
8168         * lib/widgets.h: Allowing setting preview text for fonts.
8170 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8172         * objects/bondgraph/Makefile.am: 
8173         * objects/bondgraph/bondgraph.c: 
8174         * configure.in: 
8175         * objects/Makefile.am: Added bond graph dir.
8177 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8179         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8181 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8183         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8184         positioning. 
8186         * app/diapsrenderer.c: Freetype rendering is back in force.
8188         * app/disp_callbacks.c: Added missing updates for pre-text-change.
8190 2002-11-25  David Hoover <jazzdaq@yahoo.com>
8192         * app/render_libart.c: Added missing #include line for libart.
8194         * lib/geometry.h:
8195         * lib/geometry.c: Added point_convex function.  This computes
8196         points inside a line segment (0 <= alpha <= 1) or outside the
8197         line segment (alpha < 0 | alpha > 1).
8199         * objects/standard/line.c: Line now has additional code/attributes
8200         which permit the line to extend past the line anchors (gap < 0) or
8201         leave a gap without reaching the anchor (gap > 0).  If no gap is
8202         specified, the default gap of 0 will result in identical line
8203         behavior as before.  If the 'fractional' attributes are TRUE, the
8204         gap length is not fixed, but a percentage of the line length.  I
8205         did not know how create the GTK widgets so the gap code currently
8206         cannot be used without adding XML attributes by hand.
8208 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8210         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8212         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8214 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8216         * lib/font.c: Debugging functionality in separate functions.
8218         * lib/widgets.c: Using fontsel with context.
8220         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8222         * objects/custom/custom_object.c: Orientation handling for shapes,
8223         patch thanks to Martin Hans <opfinder@gmx.net>.
8225         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8226         work on even better orientation handling.
8228         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8229         casting NULL pointers.  Should be unnecessary in an upcoming GTK
8230         release. 
8232 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8234         * lib/font.h:
8235         * lib/font.c:
8236         * lib/widgets.c: Now uses correct context to get font families.
8238         * lib/diagdkrenderer.c (get_text_width, draw_string): 
8239         * lib/dialibartrenderer.c (draw_string): 
8240         * lib/font.h: 
8241         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8242         (dia_font_build_layout): Unified the twiddle factors into a use of
8243         global_size_one.  But I deeply distrust Pango for seeming to
8244         change size of fonts every time I turn my back.
8246         * app/display.c: 
8247         * app/diagram.c: 
8248         * app/menus.c:
8249         * app/menus.h: Updated some more methods to also be more specific
8250         on the types.
8252         * app/menus.h:
8253         * app/recent_files.c: 
8254         Changed to return most specific type, to avoid run-time type errors.
8256         * app/menus.c (menus_get_item_from_path): Non-gnome version now
8257         gets menu_item rather than widget, which works better.
8259 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
8261         * app/display.c: (new_display):
8262         * app/menus.c: (menus_get_item_from_path):
8263         Relying on the tearoff to locate the input methods menu wasn't a
8264         good idea: tearoffs seem to be an endangered species nowadays.
8265         Anyway, the IM menu seems to be working now.
8267         * app/interface.c: hinted the window manager that the toolbox window
8268         is a toolbox window. Not that my (fairly default configuration)
8269         sawfish cares, but other NETWM compliant WMs may.
8271         * app/commands.c: 
8272         * app/defaults.c: 
8273         * app/dia-props.c:
8274         * app/filedlg.c: 
8275         * app/interface.c: 
8276         * app/layer_dialog.c: 
8277         * app/linewidth_area.c: 
8278         * app/properties.c: 
8279         * app/sheets_dialog.c: 
8280         * app/splash.c: 
8282         The GTK doc says to avoir gtk_window_set_wmclass() and 
8283         gtk_window_set_policy(), and use gtk_window_set_role() and
8284         gtk_window_set_resizable(), respectively.
8285         
8286         * app/preferences.c: (prefs_create_dialog):
8287         * app/preferences.h:
8288         * app/display.c: (display_set_active):
8289         Added a preference to have the toolbox hover over diagram windows.
8290                 
8291 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8293         * lib/diagdkrenderer.c (get_text_width, draw_string):
8294         Freetype-based string drawing now works.  Not very fast, though.
8295         I wish I could use the graphics card for this:(  I'm doing three
8296         bitmap loops where I should be doing one.  The size is not correct
8297         either, despite having get_text_width give the right thing.
8299 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8301         * app/connectionpoint_ops.c (diagram_update_connections_object):
8302         Allows more than one connectionpoint on an object to be moved at a
8303         time (bug #96306).
8305 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
8307         * configure.in: Added cs to ALL_LINGUAS.
8309 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8311         * app/paginate_psprint.c: Removed unnecessary decl of autosave
8312         stuff.
8314         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8316         * app/export_png.c (export_png_ok): Saving more variables from the
8317         evil setjmp.
8319 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8321         * lib/dialibartrenderer.c (begin_render):
8322         (end_render): Correct pushing and popping of font contexts.
8323         (draw_string): Double zooming eliminated, strange twiddle factor
8324         introduced (grumble).  Close to working now, but there are still
8325         strange differences from font to font.  In particular, some fonts
8326         really mess with the cursor and extents.
8328         * app/render_eps.c (export_eps): 
8329         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
8330         Fixed file closing confusion, no longer dependent on PS/EPS.
8332         * app/diagram.c (diagram_place_down_selected) 
8333         (diagram_place_up_selected): Now implemented.
8335         * lib/font.c (dia_font_init): 
8336         * lib/font.h: 
8337         Redesigned the font init/context pushing code.  Start of fix for
8338         font name differences.
8339         
8340 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
8342         * app/sheets_dialog_callbacks.c: Fix a typo.
8343         
8344 2002-10-15  Hans Breuer  <hans@breuer.org>
8346         * app/diapsrenderer.[hc] : (new files, old content :-)
8347         simple base class for post script rendering. Does neither 
8348         use Pango/FT2 nor does it handle non latin1 characters. 
8349         The fancy stuff which nowadays appears to be needed should 
8350         probably be done in derived class(es)
8352         * app/makefile.msc app/Makefile.am : added new files
8354         * app/paginate_psrint.c : re-enabled and used as test
8355         for the simple ps renderer above.
8357         * app/render_eps.[hc] : ripped out common ps code and
8358         moved to DiaPsRenderer. The rest of the file is mostly
8359         disabled. And I don't understand enough of it to 
8360         change port it.
8362         * app/diaepsrenderer.h : short lived, removed.
8364 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8366         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8367         as a plugin (thanks to Torben Nielsen).
8369 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8371         * app/diaepsrenderer.h: 
8372         * app/render_eps.h: 
8373         * app/paginate_psprint.c: 
8374         #ifdef'd out enough ps stuff to allow compile.  Now we just need
8375         to convert it.
8376         
8377 2002-10-12  Hans Breuer  <hans@breuer.org>
8379         [last plug-in ported]
8381         * plug-ins/xfig/xfig-export.c : ported to new renderer api
8383         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8384         scale color values to [0..1.0] to properly reconstruct
8385         user colors
8387         * plug-ins/xfig/xfig-common.c : some cleaning
8389 2002-10-12  Hans Breuer  <hans@breuer.org>
8391         [decrease inter-plug-in-dependencies]
8393         * objects/custom/shape_info.[hc] : move parse_style()
8394         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8395         the related structs and constants.
8396         * objects/custom/custom_object.c : reflect namespace
8397         changes
8399         * lib/dia_svg.[hc] : new files
8400         * lib/makefile.msc lib/Makefile.am : add new files
8401         * lib/libdia.def : updated externals
8403         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8405         * plug-ins/svg/svg.c : enable svg import for win32 (and
8406         probably for other non ELF builds)
8408         * plug-ins/makefile.msc : enable svg import
8410 2002-10-11  Hans Breuer  <hans@breuer.org>
8412         * plug-ins/metapost/render_metapost.[hc] : ported
8414         * plug-ins/pstricks/render_pstricks.[hc] : dito
8416 2002-10-11  Hans Breuer  <hans@breuer.org>
8418         * plug-ins/cgm/cgm.c : ported, appears to work as before,
8419         but graphic apps available to me can't import the generated 
8420         files (the could not with Dia-0.90 cgm as well) ...
8422         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8423         Removed all those function which did emulate 'complex' 
8424         drawing ops with basic ones (e.g. rect by line) cause this
8425         stuff is already provided by the base class
8426         * plug-ins/dxf/dxf-import.c : removed render.h include
8428         * plug-ins/python/pydia-font.[hc]
8429           plug-ins/python/pydia-text.c : finally ported to new font api
8431         * plug-ins/python/pydia-layer.c : add extra parameter
8432         to layer_find_closest_connectionpoint()
8434         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8436         * plug-ins/python/python.c : added missing copyright notice
8438         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
8439         actually use the renderers set_font implementation
8441         * plug-ins/renderer.inc : unused now, removed
8442         * plug-ins/Makefile.am : reflect it
8444 2002-10-08  Hans Breuer  <hans@breuer.org>
8446         * app/render_gdk.c : don't add the InteractiveRenderer
8447         interface multiple times (it's added to the type, not
8448         the object)
8449         * app/render_libart.c : dito. It's currently added
8450         unconditional cause eport_png uses it, but claims
8451         to be non-interactive. Probably set_size should be moved
8452         to the DiaRenderer interface.
8454         * lib/dialibartrenderer.c : add implementations for
8455         get_<width|height>_pixels. Libart rendering works again.
8456         DiaLibartRenderer::draw_image : use dia_image_rowstride()
8457         instead of width*3
8459         * lib/diatransform.c(dia_transform_coords_double) :
8460         don't ROUND() the returned values
8462         * plug-ins/pixbuf/pixbuf.c : added import function. It
8463         simply creates a wrapping "Standard - Image" object.
8465         * plug-ins/shape/shape-export.c : use the more direct
8466         method to call base class methods
8468 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
8470         * lib/font.c (dia_font_init): Changed dia_font_init to return old
8471         pango context, to allow stacked contexts (for printing while
8472         antialiased).
8473         
8474         * lib/arrows.h
8475         * lib/bezier_conn.h
8476         * lib/beziershape.h
8477         * lib/boundingbox.h
8478         * lib/color.h
8479         * lib/connection.h
8480         * lib/connectionpoint.h
8481         * lib/create.h
8482         * lib/dia_image.h
8483         * lib/diagdkrenderer.h
8484         * lib/diagramdata.h
8485         * lib/dialibartrenderer.h
8486         * lib/diamenu.h
8487         * lib/diarenderer.h
8488         * lib/diasvgrenderer.h
8489         * lib/diatransform.h
8490         * lib/element.h
8491         * lib/filter.h
8492         * lib/focus.h
8493         * lib/font.h
8494         * lib/geometry.h
8495         * lib/handle.h
8496         * lib/neworth_conn.h
8497         * lib/objchange.h
8498         * lib/object.h
8499         * lib/orth_conn.h
8500         * lib/paper.h
8501         * lib/plug-ins.h
8502         * lib/poly_conn.h
8503         * lib/polyshape.h
8504         * lib/properties.h
8505         * lib/ps-utf8.h
8506         * lib/sheet.h
8507         * lib/text.h
8508         * lib/textattr.h
8509         * lib/widgets.h
8510         * lib/diatypes.h
8511         Moved all externally visible struct typedefs into diatypes.h, as
8512         per Hans' suggestions.
8514 2002-10-07  Steffen Macke <sdteffen@web.de>
8516         * lib/Makefile.am: removed a '\' causing problems
8518 2002-10-07  Hans Breuer  <hans@breuer.org>
8520         [Libart Renderer resurrected; almost it's compiling but
8521          almost instantly crashing :-]
8523         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8524         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8525         * lib/diatransform.[hc] : added dia_transform_coords_double()
8527         * app/display.c : the right parameters for new_renderer_libart()
8528         * app/export_png.c : ported, removed the blind Display hack
8530         * app/makefile.msc lib/makefile.msc 
8531           lib/Makefile.am : updated
8533         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8535 2002-10-06  Hans Breuer  <hans@breuer.org>
8537         * plug-ins/pixbuf/pixbuf.c : (new file)
8538         there is a new export plug-in called 'Pixbuf' which uses 
8539         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8540         formats (currently only PNG and JPEG).
8542 2002-10-06  Hans Breuer  <hans@breuer.org>
8544         See also: 
8545         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8547         * lib/dia-enums.h lib/diatransform.[hc]
8548           lib/diarenderer.[hc] lib/diainteractiverenderer.c
8549           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8550         : new files 
8552         * lib/makefile.msc lib/makefile.am : added new files
8554         * lib/plug-ins.c : g_module_error() returns a locale
8555         string, convert to utf8 before further usage 
8557         * lib/render.h : #error out. Everything including this
8558         needs porting
8559         * lib/*.[hc] : ported to new renderer api
8561         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8562         just to make the rest compile
8563         * app/render_eps.c : temporary disabled all of this
8564         * app/render_eps.h : removed RendererEPS
8566         * app/render_gdk.[hc] : a small wrapper around the new
8567         DiaGdkRenderer form lib/*
8569         * app/render_libart.h : removed RenderLibart definition
8570         * app/render_libart.c : not yet ported to new DiaRenderer
8571         but having an implementation to untie form FT2 dependency
8572         at least on win32. It is using new Pango api form bug #94791
8574         * app/render_pixmap.[hc] : a small wrapper around the new
8575         DiaGdkRenderer form lib/*
8577         * app/display.h : removed render_*.h includes
8578         * app/display.c : the only place where specific 
8579         renderers need to be known
8581         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8582         use new DiaInteractiveRenderer interface
8584         * app/*.c : ported to new renderer api
8585         * object/*/*.c : ported to new renderer api
8586         s/render.h/diarenderer.h/
8587         s/Renderer/DiaRenderer/
8588         s/renderer->ops/renderer_ops/
8589         add in every draw method:
8590         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8592         * plug-ins/hpgl/hpgl.c : 
8593           plug-ins/wmf/wmf.cpp 
8594           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8595         * plug-ins/shape/shape-export.c
8596           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8597           (nice how small these files became :-)
8599 2002-09-28  Hans Breuer  <hans@breuer.org>
8601         * */makefile.msc : updated
8603         * app/defaults.c : don't gdk_invalidate_rect(NULL)
8604         * app/disp_callbacks.c : 
8605         can't cast GtkWindow to GdkWindow, use shell->window
8606         (ddisplay_unrealize) don't use already unrefed im_context
8607         * app/display.c :
8608         can't cast from GtkMenu to GtkMenuItem
8609         (ddisp_destroy) : mark im_context as unrefed
8611         * lib/dia_xml (data_font) : prefer new font format over old one
8612         (data_add_font) : write the legacy name to allow file exchange
8613         with pre Pango versions of Dia, which would otherwise crash 
8614         on missing font 'name' attribute.
8615         * lib/font.c (dia_font_get_legacy_name) : improved implementation
8616         to get a better match.
8618         * lib/libdia.def : updated
8620         * lib/messages.c : don't gdk_widget_show(NULL)
8622         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
8624         [make Dia compile, link _and_ work with mingw/gcc3.2]
8626         * config.h.win32 : #define LIBXML, this gets defined from libxml
8627         header but only for _MSC_VER. The mingw build did access an 
8628         unitialized function pointer for xmlFree.
8630         * */makefile.mingw : updated (some plug-ins have build issues)
8631         
8632         * lib/handle.h lib/object.h :   there appears to be no 
8633         forward declaration of the form 
8634                 typedef enum _HandleId HandleId 
8635         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
8636         use of enum `_HandleId' without previous declaration
8638         * app/paginate_gdiprint.cpp : added a hack to avoid g++
8639         naming conflict on 'export'
8641         * app/paginate_gdiprint.h : forward declare Diagram
8643         * objects/SADT/annotaion.c : use g_random_double()
8645 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8647         * app/modify_tool.c: Made motion not happen until sufficiently
8648         large or past double-click interval, to avoid accidental moving
8649         when doubleclicking.  Got the double-click time right, and fixed
8650         some issues with release.  There are some corner cases that may
8651         exhibit strange behaviour, will look at those later.  Nah, let's
8652         not care about those, they are rare and not dangerous.
8654 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
8656         * app/layer_dialog.c: 
8657         * app/load_save.c: 
8658         * plug-ins/dxf/dxf-import.c: 
8659         * plug-ins/python/pydia-diagram.c: 
8660         * lib/diagramdata.c:
8661         * lib/diagramdata.h:
8662         Improved the consistency of the obj->parent_layer backlinks (esp.
8663         during reloads)
8665         * lib/Makefile.am:
8666         * lib/dummy_dep.h:
8667         * lib/dynamic_obj.[ch] (NEW):
8668         * app/Makefile.am:
8669         * app/app_procs.c: 
8670         * app/dynamic_refresh.[ch] (NEW):
8671         * objects/Misc/analog_clock.c: 
8672         Added support for dynamic refresh (animated objects).
8673                 
8674 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
8676         Patch from Owen Taylor <otaylor@redhat.com>:    
8677         * doc/en/Makefile.am:
8678         * doc/en/dia-manual.sgml:
8679         * doc/en/usage-objects.sgml:
8680         * doc/en/usage-quickstart.sgml:
8681         * doc/pl/Makefile.am:
8682         * doc/pl/dia-manual.sgml:
8683         * doc/pl/usage-objects.sgml:
8684         * doc/pl/usage-quickstart.sgml:
8686         - Change the DTD declration from an outdated GNOME one to a
8687         standard DTD.
8688         
8689         - Remove close tags for <graphics> which aren't allowed for
8690         docbook SGML
8691         
8692         - A hacky fix for a problem where some versions of db2html don't
8693         create *.css files. (If *.css doesn't match anything, then you get
8694         the global explicitely.)
8696         (Closes: #92061)
8697         
8698 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
8700         * objects/custom/custom_object.c: 
8701         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
8702         were never properly prepared for use when reloading a shape with
8703         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8704         reporting the problem and coming up with a fix! (Closes: #93974)
8706         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8707         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
8709         * app/menus.c:
8710         * app/display.c: updated menu item paths Alan's patch had moved.
8711         
8712         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
8713         load the sheet-provided icon (libpng versions mismatch, grrr.).
8714         
8715         * configure.in:
8716         * objects/Makefile.am:
8717         * objects/Misc/Makefile.am (NEW):
8718         * objects/Misc/libmisc.c (NEW):
8719         * objects/Misc/analog_clock.c (NEW):
8720         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
8721         * sheets/Misc.sheet.in: just a little experiment...
8723 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
8725         * plug-ins/xlst/Makefile.am: found a way to silence automake while
8726         not forcing everyone to build using libxslt.
8728         * lib/font.c: 
8729         * lib/message.c:
8730         * lib/object_defaults.c:
8731         * lib/intl.[ch]:
8732         * lib/render.c:
8733         * lib/properties.[ch]:
8734         * lib/propobject.c:
8735         * objects/standard/box.c: 
8736         * objects/UML/state_term.c:
8737         * objects/FS/box.c:
8738         * objects/FS/flow-ortho.c:
8739         * app/app_procs.c:
8740         * app/autosave.c:       
8741         * app/commands.c:
8742         * app/diagram_tree.c:
8743         * app/display.c:
8744         * app/disp_callbacks.c:
8745         * app/export_png.c:
8746         * app/filedlg.c:
8747         * app/lineprops_area.c:
8748         * app/menus.c:  
8749         * app/preferences.c:
8750         * app/render_eps.c:     
8751         * app/sheets.c:
8752         * app/sheets_dialog_callbacks.c:
8753         * plug-ins/xslt/xslt.c:
8754         * plug-ins/metapost/render_metapost.c:
8755         * plug-ins/xfig/xfig-export.c:
8756         * plug-ins/shape/shape-export.c:
8757         
8758         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
8759         unused variables, mostly)
8761         * app/display.c:
8762         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
8764         * app/Makefile.am: modified run_dia.sh so that we recover the
8765         ability to run a debugger despite libtool's hacks.
8767         * plug-ins/dxf/Makefile.am: 
8768         * app/Makefile.am
8769         "make distcheck" fixes.
8770         
8771 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8773         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
8774         <mfranzoni@madd.it>:  Check for the type being NULL.
8776 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8778         * app/render_eps.c (set_font): Re-tweaked font size for printing.
8780 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
8782         Patch from Angus Ainslie <angusa@deltatee.com>:
8783         * plug-ins/dxf/dxf-import.c:
8784         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
8786         (plus a couple extra fixes by me, such as the removal of printf's,
8787         adapting for recent changes, and killed a couple warnings) 
8789         * app/authors.h: a 60K patch isn't insignificant, is it?
8790         
8791 2002-09-09  Tor Lillqvist  <tml@iki.fi>
8793         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
8794         as before) and -lfreetype (using AC_CHECK_LIB). At least on
8795         Solaris with Sun's compiler (Forte C), you need to link also the
8796         dia application with -lfreetype, even if it is implicitly linked
8797         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
8798         which is what they actually mean. Use FREETYPE_LIBS for
8799         -lfreetype.
8801         Don't look for libsunmath if isinf() is not found in math.h (as on
8802         Solaris). The sunmath library is part of Forte C and not present
8803         on all machines. Besides, even if isinf was found in libsunmath,
8804         we didn't use it in the Makefile.am.
8805         
8806         Fix a couple of bashisms.
8808         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
8809         too, on Solaris with Forte C.
8811         Don't try to use the gcc flags with other compilers.
8812         DIA_CHECK_CFLAG gives a false indication that Forte C understands
8813         the gcc -f switches, but in fact they get interpreted meaning
8814         something completely different.
8816         Define the automake conditional HAVE_CGC.
8817         
8818         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
8820         Use -export-dynamic only with gcc.
8822         * */Makefile.am
8823         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
8824         PANGOFT2_CFLAGS rename.
8826         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
8827         
8828         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
8829         Solaris.
8831         * lib/paper.c: Workaround for gccism: Can't use inline this way with
8832         Forte C, either.
8834 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
8836         * lib/text.c(set_string): fixed a memory leak (char* ain't no
8837         std::auto_ptr<char> !).
8839         * app/display.[ch]:
8840         * app/interface.[ch]:
8841         * app/ddisp_callbacks.[ch]: Added some basic support for input 
8842         methods (GtkIMContext-based)
8844         * lib/Makefile.am:
8845         * app/Makefile.am: made libdia a shared object (per Tor
8846         Lillqvist's suggestion/request), to cope for platforms with a less
8847         than par dynamic library loader.
8849         * app/display.c: disabled the input method menu (I really don't
8850         see where and how to put them. Blame Frozen Bubble )
8851         
8852 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8854         * objects/flowchart/box.c (box_update_data): Made resizing
8855         possible again (only set width & height when resized too small).
8857         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
8859         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
8860         GdkScrollEvents.
8861         
8862 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
8864         * app/authors.h: now showing Akira TAGOH's name in the native script.
8866 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8868         * plug-ins/xslt/xslt.c: Removed glib warning for unset
8869         DIA_PLUGIN_PATH.
8871 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
8873         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
8874         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
8875         sweep flag in arcs.
8877 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
8879         * objects/UML/class.c: Fixed showing of empty stereotypes and got
8880         the string placed correctly.
8882 2002-08-30  Hans Breuer  <hans@breuer.org>
8884         * lib/font.c (dia_font_get_style) : don't shift already
8885         shifted DIA_FONT values.
8887         * lib/libdia.def : updated externals
8889         * app/disp_callbacks.c : on win32 GdkEventKey::string already
8890         is in UTF-8. (Longterm this probably should be handled on the
8891         gtk api level)
8893         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
8894         switch display renderers again. The libart renderer is very 
8895         useful for win9x with it's limited GDI.
8897         * app/render_gdk.c : use g_warning instead of printf which gets
8898         nowhere on win32 (non console apps)
8900         * app/render_libart.c : make it compile without FREETYPE
8902         * objects/makefile.msc plug-ins/makefile.msc : added clean target
8904 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
8906         * app/render_eps.c (postscript_draw_contour): Debugging statement
8907         that allowed me to figure out font problems.
8909         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
8910         items for font styles.
8912         * objects/FS/flow-poly.c: 
8913         * objects/FS/flow-ortho.c: 
8914         * objects/FS/flow.c: Further conversion away from GTK dialogs.
8915         Can't set a default label right now:(
8917         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
8919 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
8920         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
8922         * Makefile.am: rules relating to AUTHORS and THANKS
8923         altered.
8924         * AUTHORS: file content changed to more accurately
8925         reflect guideline requirements.
8926         * TODO: warning added about Gnome BTS.
8927         * KNOWN_BUGS: warning added about Gnome BTS.
8929         ---
8931         * AUTHORS: added full copyright info.
8932         * mkauthors-placeholder: (removed) 
8933         
8934 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8936         * app/paginate_psprint.c (print_page): Fixed text printing after
8937         tip from Dov Grobgeld.
8939 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8941         * app/paginate_psprint.c (print_page): Fixed color of clip
8942         region.
8944 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
8946         * sheets/Makefile.am: enabled intltool-merge translation cache for
8947         sheets.
8949         * Makefile.am:
8950         * mkauthors-placeholder:
8951         * AUTHORS: revived that file (in a placeholder form) so that
8952         automake stops yelling.
8953         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
8954         (Closes: #91144)
8956         Heh, by the way, thanks Christophe. I feel better now.
8957         
8958 2002-08-25  Christophe Merlet  <christophe@merlet.net>
8960         * app/command.c: Removed invalid multibyte sequence in Chepelov.
8962 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8964         * lib/dia_image.c (dia_image_rgb_data): 
8965         Bugfixes in image data retrieval.
8966         
8967         * app/render_eps.c: Refactoring of new_*_renderer.
8969 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8971         * app/render_eps.c: 
8972         * lib/dia_image.h: 
8973         * lib/dia_image.c: Support for rowstride != width (odd width images)
8975 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
8977         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
8978         * plug-ins/xfig/xfig-import.c: Removed assertion.
8980 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8982         * lib/paper.c: Removed app/preferences.h reference.
8984 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8986         * plug-ins/svg/svg-import.c: 
8987         * plug-ins/xfig/xfig-import.c: 
8988         * lib/Makefile.am (libdia_a_SOURCES): 
8989         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
8990         * lib/create.h:
8991         * objects/standard/create.h:
8992         * objects/standard/polygon.c (polygon_create): 
8993         * objects/standard/polyline.c (polyline_create): 
8994         * objects/standard/beziergon.c (beziergon_create): 
8995         * objects/standard/bezier.c (bezierline_create): 
8996         Moving create.h into lib.
8998 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9000         * app/render_libart.[ch]: Work on PNG font export.  Something's
9001         still fishy with the scaling, I don't get it.
9003         * app/display.c: 
9004         * app/interface.c: Replaced broken zoom combo with entry+menu.
9005         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
9007         * app/render_gdk.c (get_text_width): Checks for validity of text.
9008         Temporary help while debugging input -- should only activate on
9009         invalid input.
9011         * objects/SADT/annotation.c: 
9012         * objects/GRAFCET/transition.c: 
9013         * objects/FS/function.c: Removal of gtk.h include.
9015         * objects/UML/state.c (state_load): Warnings about using State
9016         object for initial/final states.
9018         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
9020 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9022         * app/render_eps.c: Text rendering that scales correctly.  Too bad
9023         the standard fonts don't get selected right.
9025 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
9027         * lib/diagramdata.h: 
9028         * lib/paper.c (get_paper_info): 
9029         * lib/paper.h: 
9030         * plug-ins/xfig/xfig-import.c: 
9031         Committed before testing.  I am so embarrased.  This compiles, now
9032         that the includes are in the right order.
9033         
9034         * app/diagram.c (diagram_init): 
9035         * app/app_procs.c (do_convert): 
9036         * app/preferences.h: 
9037         * lib/diagramdata.h: 
9038         * lib/diagramdata.c (new_diagram_data): 
9039         * lib/paper.h: 
9040         * lib/paper.c (get_paper_info): 
9041         Moved new_diagram part of prefs into lib/diagramdata.h.  More
9042         could be done in new_diagram_data() now.
9044 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
9046         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
9048 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
9050         * configure.in: removed silly user-visible comment
9052         (actually, this is a dummy entry before I manually run nemo; for
9053         some dist-upgrade related reason, this morning's run aborted before
9054         the snapshots were created)
9055         
9056 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9058         * objects/network/wanlink.c: 
9059         * objects/network/bus.c: 
9060         stdprop compliance!
9062         * objects/custom/custom_object.c: 
9063         * objects/network/wanlink.c: 
9064         * objects/flowchart/parallelogram.c: 
9065         * objects/flowchart/ellipse.c: 
9066         * objects/flowchart/diamond.c: 
9067         * objects/flowchart/box.c: 
9068         Removed GTK defaults stuff.
9069         
9070         * objects/UML/fork.c: 
9071         * objects/UML/object.c: 
9072         * objects/UML/lifeline.c: 
9073         * objects/UML/branch.c: 
9074         * objects/GRAFCET/transition.c: 
9075         * objects/FS/function.c: Removed GTK include.
9077         * objects/FS/flow-ortho.c: 
9078         * objects/FS/flow.c: Made the label behave again.
9079         Also removed GTK defaults stuff.
9081 2002-08-06  Hans Breuer  <hans@breuer.org>
9083         * app/autosave.c : ported to GDir which is the improved
9084         cross platform replacement for <dirent.h>
9086         * app/makefile.msc : build autosave.obj
9088         * app/font.c : some (bad?) code calls 
9089         dia_font_scaled_decent() not only with empty string but 
9090         with NULL. Handle it gracefully.
9092         * lib/paper.c : don't depend on ../app. Although IMO
9093         this shouldn't be allowed on any platform it is only
9094         disabled for win32, where it simply doesn't work
9095         this way
9097         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9099         * objects/fs/flow.c : conditionalize debug spew, disabled
9100         and 'ported' to use g_print. Simple printf won't work with
9101         standard win32 gui apps, may even crash them.
9103         * plug-ins/makefile.msc : DISABLED svg-import cause it
9104         depends on ../objects/custom. This not only break the
9105         build for all non ELF systems but IMO also isn't acceptable
9106         from a design point of view. See dia-list mail on subject.
9108         * plug-ins/python/makefile.msc :
9109           plug-ins/python/python.c : remove all references to dirent    
9111 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
9113         * configure.in: added ro to ALL_LINGUAS
9115         * po-checktrans:
9116         * po-checktrans.py:
9117         * ../translation-graphs/transgraph.py: added support for fuzzy
9118         translations. Enlarged the graphs.
9120 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9122         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9123         key events according to locale.  No clue if this works for
9124         advanced stuff.
9126 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
9128         * lib/text.c: Various UTF8 related fixes, in particular in
9129         deleting.  Text_insert_char is fine, far as I can tell.
9131         * app/interface.c (create_display_shell): 
9132         * app/commands.c: Now uses gtk_clipboard functions, for they are
9133         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
9134         don't seem to get handled correctly by text_insert_char in
9135         lib/text.c.
9136         
9137         * app/commands.c (received_selection_handler): Got utf8 handling
9138         on paste, and individual char handling out of commands.c.  Pasting
9139         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
9141         * lib/message.c (gtk_message_internal): Message dialog re-shown
9142         when new message appears.  Maybe it should even move to top?
9144         * lib/font.c: 
9145         * lib/widgets.c: 
9146         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9147         (again) and case-insensitive.
9149         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9150         BASIC_SANS_FONT. 
9152 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
9154         * app/commands.c (edit_cut_text_callback): 
9155         * lib/text.c (text_delete_all): Now functioning undo for text cut.
9156         
9157         * app/commands.c (edit_cut_text_callback): Now removes text.
9158         Undo is broken, though.
9160 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9162         * app/diagram.c (diagram_update_menu_sensitivity): 
9163         Making cut_text active.
9164         
9165         * app/commands.h: 
9166         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9167         clipboard.  Also removed AA callback.   
9169 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9171         * objects/chronogram/chronoref.c: 
9172         * objects/chronogram/chronoline.c: 
9173         * objects/SADT/annotation.c: 
9174         * objects/SADT/arrow.c: 
9175         * objects/SADT/box.c: 
9176         * objects/GRAFCET/vergent.c: 
9177         * objects/GRAFCET/vector.c: 
9178         * objects/GRAFCET/step.c: 
9179         * objects/GRAFCET/condition.c: 
9180         * objects/GRAFCET/action.c: 
9181         * objects/ER/participation.c: 
9182         * objects/ER/relationship.c: 
9183         * objects/ER/entity.c: 
9184         * objects/ER/attribute.c: 
9185         Removing unnecessary GTK references.
9187 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
9189         * objects/standard/image.c: 
9190         * objects/standard/textobj.c: 
9191         * objects/standard/ellipse.c: 
9192         * objects/standard/polygon.c: 
9193         * objects/standard/beziergon.c:
9194         * objects/standard/box.c: 
9195         Making default default properties.
9196         
9197         * objects/standard/image.c: 
9198         * objects/standard/arc.c: 
9199         * objects/standard/box.c: 
9200         * objects/standard/zigzagline.c: 
9201         * objects/standard/polyline.c: 
9202         * objects/standard/line.c: 
9203         * objects/standard/ellipse.c: 
9204         * objects/standard/polygon.c: 
9205         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9207         * lib/object_defaults.c (dia_object_default_create): 
9208         * lib/proplist.c: 
9209         * lib/properties.h: 
9210         * lib/object.c (object_copy_using_properties): 
9211         * lib/propdialogs.c: 
9212         * lib/propinternals.h: 
9213         * lib/propobject.c (object_create_props_dialog)
9214         (object_copy_props): 
9215         Removing the standard (toolbox) properties from defaults dialogs.
9217 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9219         * lib/font.c (dia_font_scaled_string_width) 
9220         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9221         zoom factor.
9222         * lib/text.c (text_calc_boundingbox): Take descent into account.
9224         * objects/standard/bezier.c (bezierline_draw): 
9225         * lib/render.c (draw_bezier_with_arrows): 
9226         Better arrow drawing for beziers.  Doesn't change the mouse-click
9227         area either.
9229         * lib/arrows.h: Some const-ness.
9231         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9233         * lib/render.c (draw_arc_with_arrows): 
9234         * objects/standard/arc.c (arc_draw): Better arrow drawing for
9235         arcs.  Doesn't change the mouse-click area yet.
9237         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
9239         * lib/render.h: 
9240         * lib/render.c: 
9241         Arc arrow prework.
9243 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9245         * app/group.c (group_draw): Forgotten commit: Groups to draw as
9246         objects (using default routines).
9248         * app/object_ops.h: 
9249         * app/diagram.h: 
9250         * lib/diagramdata.h: 
9251         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
9252         * objects/standard/zigzagline.c (zigzagline_move_handle): 
9253         * app/diagram.c (diagram_find_closest_connectionpoint): 
9254         * plug-ins/python/pydia-diagram.c
9255         (PyDiaDiagram_FindClosestConnectionPoint):
9256         * app/object_ops.c (object_connect_display) 
9257         (object_find_connectpoint_display) 
9258         * app/create_object.c (create_object_button_press) 
9259         (create_object_motion): 
9260         * app/modify_tool.c (modify_motion): 
9261         Adding object param to allow connectionpoint and handle coinciding.
9263         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
9264         Fixing minor problems.
9266         * objects/standard/ellipse.c (ellipse_update_data): 
9267         Added direction hints.
9269         * lib/diagramdata.c: 
9270         * lib/object.c: 
9271         * lib/object.h: 
9272         * lib/diagramdata.h: 
9273         * objects/standard/zigzagline.c: 
9274         First working example of zigzagline hints, currently only between
9275         Box and Zigzagline.
9277 2002-07-27  Steffen Macke <sdteffen@web.de>
9279         * plug-ins/svg/render_svg.c: added support for rounded
9280         rectangles (fixes #69053 if compile with
9281         -DNEW_RENDER_OPS)
9282         * object/custom/shape_info.[c|h]: made parse_style and
9283         parse_path accessible for svg plug-in
9284         * plug-ins/svg/Makefile.am:
9285         * plug-ins/svg/svg.c:
9286         * plug-ins/svg/svg-import.c(new): added SVG import filter
9288 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9290         * objects/standard/box.c: 
9291         * objects/standard/zigzagline.c (zigzagline_move): 
9292         More work on zigzagline hints.
9294 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9295         * lib/connectionpoint.h: 
9296         Hints for zigzaglines.
9298         * app/properties.c (properties_show): 
9299         * app/defaults.c (defaults_show): 
9300         * lib/properties.h: 
9301         * lib/propobject.c (object_create_props_dialog): 
9302         * lib/object.h: 
9303         * objects/FS/flow-poly.c: 
9304         * objects/network/wanlink.c: 
9305         * objects/network/bus.c: 
9306         * objects/UML/class.h: 
9307         * objects/UML/class_dialog.c: 
9308         * objects/UML/association.c: 
9309         Start of removing toolbox props from props dialogs.
9310         
9311         * lib/widgets.c: 
9312         * lib/arrows.h: 
9313         * app/lineprops_area.c (dia_arrow_chooser_new): 
9314         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9316         * app/create_object.c: 
9317         * app/modify_tool.c: 
9318         * app/cursor.h: 
9319         * app/cursor.c: 
9320         More cursor change.
9322 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9324         * app/preferences.c: 
9325         * lib/paper.c: 
9326         * app/diapagelayout.c: 
9327         New prefs selector kind PREF_CHOICE chooses between a list of
9328         strings.  Used for picking default paper.
9329         
9330         * app/preferences.c (prefs_data): 
9331         * lib/paper.c (get_paper_info): Added prefs setting for
9332         is_portrait.
9334         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9335         line segments at the ends (bug #86603).
9337 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9339         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9340         #60324: Now calls update_data after copy.
9342         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9343         Now doesn't steal selection from non-object tools.
9345 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9347         * app/commands.c (help_manual_callback): Uses BROWSER environment
9348         variable when available.
9350 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9352         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9353         object from the new sheet when changing.
9355         * app/app_procs.c (app_init): Uses more standard size icon, from
9356         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
9358 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9360         * objects/UML/implements.c (implements_update_data): 
9361         * objects/UML/realizes.c (realizes_update_data): 
9362         * objects/UML/dependency.c (dependency_update_data): 
9363         Test for null strings before calling on ascent.
9365         * objects/UML/realizes.c (realizes_draw): 
9366         * objects/UML/message.c (message_draw): 
9367         * objects/UML/generalization.c (generalization_draw): 
9368         * objects/UML/dependency.c (dependency_draw) 
9369         * objects/UML/constraint.c (constraint_draw): 
9370         * objects/GRAFCET/condition.c (condition_draw): 
9371         * objects/UML/association.c (association_draw): 
9372         * objects/FS/flow-ortho.c (orthflow_draw): 
9373         * objects/FS/flow.c (flow_draw): Change to use
9374         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
9376         * lib/render.h: 
9377         * lib/arrows.c (calculate_arrow_point): 
9378         * lib/arrows.h: 
9379         * lib/render.c: 
9380         * objects/standard/zigzagline.c:
9381         * objects/standard/polyline.c:
9382         * objects/standard/line.c: Work towards better arrow drawing.
9384 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
9386         * objects/UML/state.c: Starting phase-out of State object as
9387         initial/final state (which never worked right).
9389         * app/app_procs.c (app_init): --version command line option for
9390         non-Gnome.
9392         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9394 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
9396         * app/render_eps.c: Removed debugging info.
9398         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9399         Kludge to make ascent and descent work for empty strings.  Won't
9400         work when using non-ASCII fonts.  Better would be to get a
9401         PangoFont and ask directly.
9403         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9404         of the init stuff.
9406         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9407         Cursor now better.
9409 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9411         * plug-ins/xfig/xfig-export.c: First use of draw_object render
9412         function: All shapes are now groups in XFig export.
9414         * lib/diagramdata.c (normal_render): 
9415         * lib/render.c: 
9416         * lib/render.h: 
9417         * app/display.c (ddisplay_obj_render): 
9418         New render function for drawing objects, allows renderers to group
9419         or otherwise specially handle objects.  We may want to reconsider
9420         calling it in app/display.c, as we 'know' the object draw function
9421         is the default one there.
9423         * lib/Makefile.am: Removed extra \ that broke stuff.
9425         * plug-ins/xfig/xfig-import.c: 
9426         Spline import for xfig.  Not perfect.
9428         * objects/standard/create.h: 
9429         * objects/standard/bezier.c (bezierline_create): 
9430         * lib/bezier_conn.c: 
9431         * lib/beziershape.c (beziershape_set_points): 
9432         * lib/bezier_conn.h: 
9433         * lib/beziershape.h: 
9434         Support for creating beziers non-interactively.
9436 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
9438         * plug-ins/xfig/xfig-import.c: Support for polygons and
9439         polylines.  Special warning handling system removed.
9441         * lib/message.c (gtk_message_internal): Fixed bug involving
9442         closing message window and then getting repeated message.
9444         * Makefile.am: 
9445         * autogen.sh: 
9446         * configure.in (GETTEXT_PACKAGE): 
9447         Update based on bug #88199.  Hopefully this doesn't break too much
9448         intl stuff.
9450         * dia.desktop.in (_Comment): Changed after suggestion from
9451         calum.benson@ireland.sun.com (bug 88345)
9453         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9454         <loli@unsa.edu.ar> that makes user/system distinction better.
9456 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9458         * app/render_libart.c: Got the context right, removed crashes.
9460         * app/commands.c: 
9461         * app/commands.h: 
9462         Redraw menu item.
9464         * app/display.c: 
9465         * app/display.h: 
9466         * app/interface.c: 
9467         * app/menus.c: 
9468         Remove libart #defines from most places (still around for png export).
9470         * app/render_libart.h: 
9471         * app/render_libart.c: 
9472         * configure.in (HAVE_LIBART): 
9473         Starting on update of libart stuff for png export (without X).
9475         * app/autosave.h (autosave_check_autosave): 
9476         * app/load_save.h: 
9477         * app/diagram.h: 
9478         * app/Makefile.am (dia_core_files): 
9479         * app/load_save.c: 
9480         * app/diagram.c (diagram_set_modified): 
9481         * app/autosave.c: 
9482         * app/app_procs.c (app_init): 
9483         Autosave support.  No automatic restore yet.
9485 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9487         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9488         assignment. 
9489         
9490 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
9492         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9494 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
9496         * Fix for 'make dist' etc. --- problem caused by
9497         previous AUTHORS patch.
9499 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9501         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9502         pango_context. 
9503         (set_font): NULL check.
9504         
9505 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9507         * app/disp_callbacks.c: 
9508         * lib/diamenu.h: 
9509         Addition to the object menus allows check menu items.
9511 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
9513         * HACKING: completely changed to bring up-to-date.
9514         * AUTHORS: file needs REMOVING from CVS as now
9515           dynamically generated.
9516         * app/authors.h: split into subcategories for original
9517           authors, maintainers, etc.
9518         * app/app_procs.c: --credits rewritten to support new
9519           app/authors.h
9520         * app/commands.c: no changes to about box code, comment
9521           added though.
9522         * Makefile.am: added rule for AUTHORS. I'm still
9523           inexperienced with automake, it seems to work, but
9524           for AUTHORS-related bugs, look at this change first.
9526 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
9528         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9529         work.  Back to including xslt dir always.
9531         * objects/UML/uml.c: 
9532         * objects/UML/class.h: 
9533         * objects/UML/class_dialog.c: 
9534         * objects/UML/class.c: Patch from
9535         <mattam@netcourrier.com>:  Adds comment visibility switch, also
9536         fixes various bugs.
9538         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9539         for state/fork/activity stuff.
9540         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9541         * objects/UML/Makefile.am:
9542         * objects/UML/uml.c:
9543         * sheets/UML.sheet.in: Added new objects activity, fork,
9544           state_term.
9545         * objects/UML/pixmaps/state_term.xpm:
9546         * objects/UML/state_term.c: New, only initial/final states.
9547         * objects/UML/pixmaps/activity.xpm:
9548         * objects/UML/activity.c: New, activity state.
9549         * objects/UML/pixmaps/fork.xpm:
9550         * objects/UML/fork.c: New, fork/join bar.
9551         * objects/UML/pixmaps/state.xpm: state icon.
9553         
9554         * doc/diagram.dtd: 
9555         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9556         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9557         svg:text to shape.
9559 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
9561         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9562         detecting XSLT
9564         * app/Makefile.am: Commented out the diaconv parts while it's not
9565         used anyway.  To come back later.
9567         * configure.in (HAVE_FREETYPE): 
9568         * app/app_procs.c: 
9569         * app/render_eps.h: 
9570         * app/render_eps.c: Support for printing with freetype, better
9571         encapsulated now.  Renders the text nicely, but ignores font
9572         setting.  Requires pangoft2 to get the font outline, but non-text
9573         objects can still be rendered without it.
9575         * app/commands.h: 
9576         * app/commands.c (objects_place_up_callback) 
9577         (objects_place_down_callback): 
9578         * app/diagram.h: 
9579         * app/diagram.c (diagram_place_down_selected) 
9580         (diagram_place_up_selected): Starting support for moving objects
9581         one level up/down.
9583         * app/menus.c: Removed character/numeral shortcuts.
9585 2002-07-06  Hans Breuer  <hans@breuer.org>
9587         * makefile.am app/makefile.am lib/makefile.am
9588           objects/makefile.am plug-ins/makefile.am 
9589           plug-ins/python/makefile.am :
9590         added required files for win32 build to EXTRA_DIST
9592         * app/paginate_psprint.c app/render_eps.c 
9593           app/app_procs.c :
9594         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9595         on Pango as currently is on win32 => no PostScript 
9596         anymore.
9598         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9599         use '/* noop */;' for empty case labels; replace
9600         debug spew printf with g_print which is guaranteed 
9601         to work on win32, too.
9603         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
9604         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
9605         in the pango_font_description_set_weight() api documentation
9606         Take care for them in dia_font_get_style() too.
9608         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9609           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9610         rename Obliquity to Slant which appears to be the usual name,
9611         also rename dia_font_get_style_string -> dia_font_get_slant_string
9613         * plug-ins/wmf/wmf.cpp : finally ported to new font api
9615         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9617         * objects/uml/association.c class.c large_package.c message.c
9618         if g_free() is used g_strdup needs to be used.
9619         * objects/custom/shape_info.c
9620           objects/ER/attribute.c entity.c
9621           objects/standard/image.c 
9622           app/sheets_dialog_callbacks.c : more strdup cleaning
9624 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9626         * app/render_eps.c: Non-crashing printing (made the right
9627         context).  Font output still fscked up.
9629 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
9631         * app/authors.h: Added file --- now master
9632         location for contributors data.
9633         * app/app_procs.c: Added --credits option.
9634         * app/commands.c: Modified about box to use
9635         app/authors.h.
9637 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9639         * app/render_eps.c: First stab at EPS rendering using the contour
9640         code from PAPS.  Crashes.
9642 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9644         * app/recent_files.c (recent_file_history_remove): 
9645         Fixed call to g_list_delete_link discarding return value.
9646         
9647         * lib/widgets.c (dia_font_selector_set_styles): 
9648         * lib/font.h (DiaFontWeight): 
9649         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9651 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
9653         Contribution from Alan Horkan <horkana@tcd.ie>: 
9654         
9655         * shapes/Assorted/*
9656         * sheets/Assorted.sheet:
9657         A set of 40 assorted geometric shapes.
9659         * sheets/Assorted.sheet.in:
9660         * sheets/Makefile.am
9661         * shapes/Assorted/Makefile.am:
9662         * shapes/Makefile.am:
9663         * po/POTFILES.in:
9664         * configure.in:
9665         Done the integration job of Alan's shapes. (Translators: have fun!)
9667         * po/dia.pot: refreshed the main potfile.
9668         
9669 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
9671         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9672         
9673         * objects/UML/class.[ch]:
9674         * objects/UML/class_dialog.c:
9675         changed the number of connection points from a hardcoded value of
9676         8 to a #defined constant
9678         (I changed the constant back from 20 to 8, until we better know
9679         how we'll handle more connection points on the UML class in the
9680         future -- but Tim's patch is a welcome clean-up).
9682 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
9684         * shapes/MSE/demultiplexer.xpm:
9685         * shapes/MSE/node_center.xpm:
9686         * shapes/MSE/multiplexer.xpm:
9687         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9688         Horkan <horkana@tcd.ie>
9690 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9692         * lib/widgets.c: Total rehash of font selector, with font dialog
9693         option, expanding list (not LRU yet), and stuff.
9695 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
9697         * lib/font.h:
9698         * lib/font.c: 
9699         Added a set of new setter/getters, some of them more specially for
9700         the SVG-ish I/O.
9701         
9702         * plug-ins/shape/shape-export.c: (new_shape_renderer),
9703         (destroy_shape_renderer), (set_font), (draw_string):
9704         * plug-ins/svg/render_svg.c: (new_svg_renderer),
9705         (destroy_svg_renderer), (set_font), (draw_string):
9707         Actually exported the font face, style, weight and size (sodipodi
9708         agrees with dia on how a small sample should look like (a sample
9709         0.90 would not even display anyways). Yay !)
9711         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9713         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
9715         (end of ChangeLog-less patch)
9717         * objects/custom/shape_info.c (parse_style): now understands the
9718         font-style and font-weight attributes as well. Does not use
9719         anymore dia_font_new_from_legacy_name().
9720         
9721 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9723         * objects/standard/textobj.c: Now uses stdprops for defaults.
9725         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
9726         * lib/font.c (dia_font_get_style): Style now linear and conversion
9727         simple. 
9729         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
9730         selector. 
9732 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
9734         * plug-ins/dxf/dxf-import.c:
9735         using dia_font_new_from_style()
9737         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9739         * objects/UML/class.[ch]: Added a comment field to class
9740         * objects/UML/uml.[ch]: Added a comment field to attributes,
9741         operations and parameters.
9742         * objects/UML/class_dialog.c: Added code for the new comment
9743         fields.
9744         * plug-ins/xslt/*.xsl: Added some code to handle comments.
9745         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
9746         Added a $directory parameter for stylesheets so the output is 
9747         in the good place (not in the $PWD).
9749         (end of Patch)
9751         * AUTHORS: added contributors, updated maintainers. Removed the
9752         specific areas of action.
9754         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
9755         from a patch by Xing Wang <quixon@gnuchina.org>:
9757         * app/commands.c: help_about_callback now supports
9758         new-style GNOME about box as well as old GTK style. 
9759         code also tidied (Closes: #85726)
9761         (end of Patch)
9763         * app/commands.c: fixed the copyright (it's not all FSF), and
9764         maintainers. Synced contributors list with AUTHORS.
9765                 
9766 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9768         * lib/message.c: More work on repeating messages, now with
9769         togglable view.
9771 2002-06-24  Hans Breuer  <hans@breuer.org>
9773         * lib/widget.c : some more bits in place, at least
9774         it does something useful instead of crashing. Much
9775         better - but not all ok :-)
9777 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9779         * lib/message.c (gtk_message_internal): First stab at repeating
9780         message dialog.
9782 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9784         * objects/FS/*.c:
9785         * objects/GRAFCET/*.c:
9786         * objects/SADT/*.c:
9787         * objects/UML/association.c: (one instance forgotten)
9788         * objects/UML/large_package.c: 
9789         * objects/standard/textobj.c:
9790         * lib/attributes.c:
9791         * lib/text.c:
9792         using dia_font_new_from_style()
9794 2002-06-23  Hans Breuer  <hans@breuer.org>
9796         * lib/font.c : giving some love to
9797         dia_font_new_from_legacy_name() that is making
9798         import of old files as painless as possible and
9799         provide an almost exact match where possible.
9800         It does not yet fully work because it interfers
9801         with the Style to DiaStyle conversion which comes
9802         next ...
9804         [Changing these files is only allowed with Dia-0.90]
9805         * broken-files/fonts-0.90.dia : including the
9806         common hard-coded fonts from Dia-0.90. It also
9807         has drawn bounding-boxes for win32 as they were calculated
9808         from the former version (they were all too big).
9809         * broken-files/fonts-0.90-full.dia : all hardcoded
9810         fonts including the asian versions. On my machine
9811         this gives _a lot_ complaining about missing fonts
9812         and a finally a broken file display. Anyone having
9813         all these fonts ?
9814         
9815 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9817         * objects/chronogram/*.c: 
9818         * objects/custom/custom_object.c:
9819         * objects/ER/*.c:
9820         using dia_font_new_from_style()
9822 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9824         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
9825         font selector (stability, insensitivity).
9827         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
9828         stretching scheme for tweaking, and made scaling scheme faster
9829         (but less precise).
9830         (dia_font_dia_style_to_pango): Oops, % != /.
9832 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9834         
9835         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9837         * plug-ins/xslt : Added an XSLT plugin to export dia files using
9838         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
9839         It includes a small config file to tell it what stylesheets to use.
9841         (end of patch)
9842         
9843         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
9844         GTK2.0/HIG compliant (the labels could be slightly more verbose,
9845         perhaps). Added back a couple forgotten _(). Removed //-style
9846         comments.
9847         
9848 2002-06-23  Hans Breuer  <hans@breuer.org>
9850         * lib/plug-ins.c
9851         (dia_plugin_get_name) : don't crash plugin_manager
9852         on name being NULL 
9853         (dia_plugin_load) : reuse the description field to
9854         store the error string if loading fails.
9856         * lib/font.[hc] : starting to beautify the new
9857         font api: proper namespacing, adding convenience
9858         functions like dia_font_new_from_style(), ...
9860         * objects/uml/*.c : use the new convenience functions.
9862         [Next thing I plan to do is changing the other font
9863          functions to take DiaStyle and make Style and 
9864          BASIC_*_FONT vanish. As well as giving some love to
9865          dia_font_new_from_legacy_name().
9866          If anyone want's to help on converting the other
9867          objects to the new api during that, I would highly 
9868          appreciate it.]
9870 2002-06-23  Hans Breuer  <hans@breuer.org>
9872         * lib/font.c : made it compile and small indent fixes.
9873         Is there a code-has-no-effect-so-needs-not-be-valid
9874         with GCC?       
9876         * lib/widgets.c : use g_strcasecmp
9878 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9880         * lib/font.c: 
9881         * lib/font.h: 
9882         * lib/widgets.c: Font names sorted, style selector widget
9883         reappeared.  Doesn't select the old style yet.
9885 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
9887         * lib/font.c: one who expects a text's font to be changed shall 
9888         actually request the attributes to apply to the whole range of the
9889         said text... D'oh! 
9891         * lib/font.c: extents computation was wrong.
9893         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
9894         if a last NULL parameter is added...
9896         * lib/font.c: extents computation was completely wrong. This looks
9897         much better this time.
9899         * objects/UML/class.c: fixed the various strings positions.
9901         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
9902         macros to get the hardcoded base fonts.
9904         * objects/ER/relationship.c: wasn't converted to DiaFont*
9905         
9906 2002-06-22  Hans Breuer  <hans@breuer.org>
9908         * lib/widget.c : dont use backend specific functions
9909         to get on the font_families. Including it would mean
9910         including <windows.h> which breaks due to namespace
9911         pollutions ...
9913         * lib/libdia.def : updated externals
9915         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
9917         * lib/font.c : added empty dia_font_init_instance function,
9918         reformatting of dia_fon_unref to allow to set breakpoint,
9919         dia_fon_build_layout() : dont crash on string==NULL
9921         * lib/text.c (text_set_attributes) : don't unref the wrong font
9923         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
9924         stores lowercased font names, but dia_font_get_family()
9925         returns mixed case      
9927 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9929         * lib/widgets.c: 
9930         * app/render_gdk.c: Patch from Hans Breuer.
9932         * app/Makefile.am (dia_core_files): diaconv commented out for now.
9933         
9934 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
9936         * lib/all files touched yesterday: took into account some of Hans
9937         Breuer's remarks in
9938         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
9940         * objects/chronogram/*: 
9941         * objects/custom/*:
9942         * objects/ER/*:
9943         * objects/flowchart/*:
9944         * objects/FS/*:
9945         * objects/GRAFCET/*:
9946         * objects/SADT/*:
9947         * objects/standard/textobj.?:
9948         * objects/UML/*:
9949         converted to the new DiaFonts.
9951         * plug-ins/cgm/*:
9952         * plug-ins/pstricks/*:
9953         * plug-ins/wpg/*:
9954         * plug-ins/dxf/*:
9955         * plug-ins/xfig/*:
9956         Made minimalistic conversions so that they'd at least compile.
9958         * app/render_gdk.c:
9959         * app/render_pixmap.c:
9960         Converted to the new DiaFonts.
9962         * app/app_procs.c
9963         * app/diaconv.c:
9964         * app/render_eps.c:
9965         made the minimal changes so that it would at least build.       
9967         *** At this point, the thing builds on my machine, but segfaults
9968         right away. ***
9969         
9970 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
9972         * configure.in: removed the backend-specific pango pkg_modules
9973         (trivial to add back if needed, when actually needed)
9975         * app/Makefile.am:
9976         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
9977         renderer. The APIs will have completely changed when we get around
9978         to redo a renderer for it, anyways.
9980         * font.[ch]: rewrote everything from scratch, with a Pango
9981         implementation. Normally, only backend-neutral things should go in
9982         there.
9984         **WARNING**: new rules for managing DiaFont* pointers: these are
9985         reference-counted GObjects. One >must< diafont_ref() and
9986         diafont_unref() as appropriate. I wish I could overload operator=()...
9988         lib/plug-ins.h: bumped up the plug-in API.
9989         
9990         lib/attributes.c: 
9991         lib/dia_xml.c: 
9992         lib/dummy_dep.h
9993         lib/object_defaults:
9994         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
9995         again tomorrow with GObject.
9996         
9997         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
9999         **** The rest of the tree should be updated as well ****
10000         
10001 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
10003         * app/render_gdk.h: 
10004         * app/render_gdk.c: 
10005         * app/render_pixmap.c: 
10006         * app/render_pixmap.h: 
10007         * app/render_libart.h: 
10008         * app/render_libart.c: 
10009         * lib/font.h: 
10010         * lib/font.c: Removed freetype stuff (still around in
10011         lib/widgets.c 'cause we might want the font selector widget).
10013 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
10015         * shapes/network/laptop.(xml|shape):
10016         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
10017         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
10019 2002-06-17  Hans Breuer  <hans@breuer.org>
10021         * lib/object_defaults.c : #include <libxml/tree.h> not
10022         <tree.h> pointed out by Xing Wang
10024 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
10026         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
10027         * lib/widgets.c: 
10028         * app/color_area.c: Update to
10029         gtk_color_selection_*_current_color() fixed bad crash issues, plus
10030         updated color conversions.
10032         * sheets/ER/weakentity.xpm: Accepted patch from
10033         quixon@gnuchina.org to make icon match actual appearance.
10035         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
10036         quixon@gnuchina.org.
10038 2002-06-16  Hans Breuer  <hans@breuer.org>
10040         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
10041         good tradition of information hiding. Add new function
10042         dia_plugin_get_symbol()
10043         * app/sheets.c app/sheets_dialog_callbacks.c : use it
10045         * app/sheets.c : stop complaining about object_get_type() 
10046         returning NULL. This is a consequence of e.g. disabling 
10047         plug-ins at runtime _and_ it was and is gracefully handled. 
10048         Spitting out g_warning for it isn't appropriate. 
10050         * lib/object.[ch] : removed dead code
10052         * app/plugin-mangager.c : almost complete rewrite for gtk2
10053         using GtkListStore/GtkTreeView
10055         * lib/libdia.def : updated externals
10057         * todo.gtk2 : updated, that is removed already done steps
10059 2002-06-15  Hans Breuer  <hans@breuer.org>
10061         * objects/uml/class_dialog.c : clean some left-over
10062         utf8-mess, return 0 from "focus_out_event" handlers
10063         to avoid asserting in gtk (#78305). Reconstruct 
10064         stereotype/NULL behaviour to avoid rendering empty
10065         stereotypes on classes and member functions
10067         [#56109 - Provide object defaults for StdProp objects,
10068          some remaining issues are discussed in bugzilla]
10070         * lib/object_defaults.c : (new file) manage default properties 
10071         of dia objects. The serialization is done with standard
10072         object methods in a diagram compatible format.
10074         * lib/object.c : add object_registry_foreach() which allows
10075         to iterate over all registered object types
10077         * lib/object.h : added prototypes object_default*() and
10078         object_registry_foreach()
10080         * lib/makefile.am lib/makefile.msc : add new file to build
10082         * lib/libdia.def : export new functions
10084         * app/defaults.c : provide StdProp based defaults if the
10085         ObjectType doesn't implement it's own default functions
10087         * app/create_object.c : through dia_object_default_create()
10088         * app/disp_callbacks.c : same here
10090 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10092         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10093         sensitivity for deleting segments.
10095 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
10097         * app/color_area.c: (color_area_events):
10098         * app/diagram.c: (diagram_destroy):
10099         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10100         (fill_sheet_menu):
10101         * app/load_save.c: (diagram_data_load):
10102         * app/menus.c: (menus_get_item_from_path):
10103         * app/preferences.c: (prefs_load):
10104         * app/render_gdk.c: (get_text_width):
10105         * lib/arrows.h:
10106         * lib/color.c: (color_convert):
10107         * lib/dia_dirs.c: (dia_config_filename):
10108         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10109         * lib/intl.c: (intl_get_language_list):
10110         * lib/message.c: (message):
10111         * lib/message.h:
10112         * lib/paper.c: (get_default_paper):
10113         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10114         * lib/widgets.c: (dia_file_selector_get_file):
10115         * lib/widgets.h:
10116         * objects/standard/image.c: (get_directory):
10118         warningectomy.
10119         
10120 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10122         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
10124 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10126         * app/interface.c: sscanf now returns EOF on empty string, so
10127         handle no match for zoom factor better => correct zoom at start.
10129         * app/sheets.c (create_object_pixmap): Tried to display empty error.
10130         (sheets_optionmenu_create): Died when not finding specified
10131         sheet.  Don't think it should.
10133         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10134         (bug #84367) to place the text better.
10136 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
10138         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10139                         
10140         * app/commands.c: Removed unnecessary gnome include. Removed
10141         GNOME-Print support.
10143         * app/menus.h: Removed now unnecessary gnome include.
10144         
10145         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10146         GNOME-specific stock buttons
10147         
10148 2002-06-09  Hans Breuer  <hans@breuer.org>
10150         * app/app_procs.c : convert 'Modified diagrams exits'
10151         dialog to use GtkMessageDialog. That gives us:
10152         - icons without Gnome dependency
10153         - much less code, also cross platform
10154         - improved useability ?
10156         * app/color_area.c : the Color Selection Widget looked
10157         quite wrong (alpha problems). Fix it by merging in required
10158         changes stolen from The Gimp cvs
10159         * app/color_area.h : to get the right appearance the maskes
10160         needed to be taken into account
10161         * app/interface.c : adapt to color_area_create changes.
10162         Also remove some dead code and finally remove cvs autexpansion, 
10163         I was bothered enough by irrelevant differences :-)
10165         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10166         api, i.e stocks and response to make the GnomeDialog usage
10167         obsolete. Also fixed the issue with closing the 'parent'
10168         before closing the dialog
10170         * app/display.[ch] : removed some dead code and conversion
10171         to new GtkDialog api. Also trying to conform to new HIG
10172         standard http://developer.gnome.org/projects/gup/hig/
10174 2002-06-09  Hans Breuer  <hans@breuer.org>
10176         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10177         build ps-utf8.c
10179         * lib/dia_image.c : gtk_widget_set_default_visual()
10180         remove. It does nothing with Gtk2.
10182         * lib/libdia.def : added ps_unicoder exports
10184         * lib/message.c : remove #GNOME use GtkMessageDialog.
10185         Yeah, Dia gets dialogs wit icons cross-platform.
10187         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10188         to gtk_spin_button_get_value()
10190         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10192         add #undef GTK_DISABLE_DEPRECATED to still use ...
10193         * lib/prop_text.c :  ... GtkText
10194         * lib/prop_widgets.c : ... GtkList
10195         * lib/prop_dialogs.c : ... gtk_signal_connect and more
10196         * lib/widgets.c : ... (too much to list here)
10198         * lib/ps-utf8.c : #include <string.h>
10200 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
10202         * configure.in:
10203         * Makefile.am:  Adapted for gtk2.
10204         Removed dependencies on libunicode, on iconv(), on langinfo().
10206         * acconfig.h: removed (now obsolete)
10208         * lib/charconv.[ch]: removed (superceded by glib)
10209         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10211         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10212         libunicode types for their glib counterparts. Fixed the include
10213         paths for libxml2. Removed all traces of libxml1 or non-UTF8
10214         support (there were remains in objects/uml).
10216         
10217 2002-06-08  Hans Breuer  <hans@breuer.org>
10219         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10220         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10221         Also use g_strdup()'s handling of NULL by returning NULL
10222         again at all places I found (remove unnecessary if's)
10224         * todo.gtk2 : new file to keep notes about gtk2 porting,
10225         further issues and thoughts and some status information.
10226         Also sent to dia-list ('Dia goes Gtk2 ...').
10227         
10228         [make it compile with GTK+ 2.0]
10230         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10231         removed definition of S_ISDIR, S_ISREG and getlogin
10233         * */makefile.msc : Use GTK2 and libxml2
10234         BEWARE: makefile.am, configure.in not yet ported !
10236         * app/app_procs.c app/diagram.c : remove 
10237         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
10238         but set use gtk_menu_set_accel_path() on menu creation
10240         * app/color_area.c lib/widgets.c : 
10241         make use of gtk_color_selection_set_has_palette ()
10243         * app/commands.c : gdk_pixbuf_new_from_file wants an 
10244         extra argument. Convert from DIR to GDir usage.
10246         * app/diagram_tree.c(button_press_callback) : need to return 
10247         FALSE in the signal handler to let gtk process it further.
10248         (get_object_name) : don't leak 'prop'
10249         
10250         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
10251         dia_page_layout_destroy() getting called more than once
10253         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
10254         GtkTypeInfo changes
10256         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10258         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10259         IIRC this code will not compile unchanged when USE_XIM is defined ...
10261         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10263         * app/interface.c : there is no widget->klass anymore in Gtk, 
10264         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10265         parameter. Some tweaking of GtkWrapBox usage to get four tools in
10266         a row again.
10267         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
10268         get triple buffering and flicker.
10269         Replace call to GTK private function _gtk_accel_group_attach()
10270         with public gtk_window_add_accel_group()
10272         * app/layer_dialog.c : adapt to GtkTypeInfo changes
10274         * app/load_save.c lib/plug-ins.c lib/sheet.c 
10275           objects/custom/custom.c : 
10276         simplified by using g_file_test()
10278         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
10279         to gtk_accel_map_<save|load>. Also added common stock-icons
10280         to the menu.
10281         
10282         * app/preferences.c : use gtk_button_set_label() instead
10283         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10285         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10286         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10287         in config.h.win32
10289         * app/recent_files.c : removed GLIB_CHECK_VERSION
10291         * app/render_eps.c 
10292           plug-ins/metapost/render_metapost.c
10293           plug-ins/pstricks/render_pstricks.c
10294           plug-ins/svg/render_svg.c :
10295         replace getlogin() with g_get_user_name() which always
10296         returns non NULL
10298         * app/render_gdk.c : gdk_region_union_with_rect() modifies
10299         inplace now and returns nothing, also less #hell
10301         * app/render_libart.c : some initial #hell cleaning, SuckFont
10302         still needs to vanish
10304         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10305         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10307         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10308         * app/sheets_dialog_callbacks.c : some #hell and adaptions
10309         needed to GtkWrapBox api changes
10312         * lib/charconv.[hc] : removed from build
10313         [changed appropriate]
10314         * lib/prop_inttypes.c lib/prop_text.c : 
10315         all utf-8 cleaning 
10316         * lib/text.c : ported from HEAD but keep original indent
10317         intact. Original was done by Akira TAGOH.
10319         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10321         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10323         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10324         same on all platforms now!
10326         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10328         * lib/message.c : remove "charconv.h"
10330         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10332         * lib/plug-in.c :
10333         * lib/sheet.c : convert from DIR to GDir usage
10335         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10337         * lib/widgets.h : include gtk<label|colorseldialog>.h
10340         * objects/fs/flow.c :
10341         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10343         * objects/custom/custom.c : convert from DIR to GDir usage
10346         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10349 2002-05-03  Hans Breuer  <hans@breuer.org>
10351         * lib/dia_xml.c : make the well formed utf8 check
10352         actually work for &#251; (non 7-bit ascii encoding)
10353         and fixed the file re-writing if the check fails.
10354         Thanks to Vitaly Lipatov for noticing the misbehaviour.
10356         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10357         comment on last ressort font. Thanks to Maxim Sobolev.
10359 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
10361         * sheets/network.sheet.in: corrected a typo in plotter invocation.
10363 2002-06-03  Steffen Macke  <sdteffen@web.de>
10365         * shapes/network/digitizing_board.png:
10366         * shapes/network/digitizing_board.shape:
10367         * shapes/network/plotter.png:
10368         * shapes/network/plotter.shape:
10369         * shapes/network/Makefile.am
10370         * sheets/network.sheet.in: added new plotter and digitizing
10371         board shapes
10372         
10373 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
10375         * lib/font.c: made a symptomatic fix to a segfault reported by 
10376         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10377         won't prevent dia from terminating, but should give more
10378         user-friendly information about why did it terminate.
10380         Two patches from <robert.young@dsto.defence.gov.au>:
10381         
10382         * app/display.c: fix the size of the canvas area which gets
10383         redrawn. There was an off-by one error (Closes #83659)
10385         * app/display.c: make sure we redraw all screen only when we
10386         really have to (some update_areas were mistakenly ignored) (Closes
10387         #83496). 
10389         * NEWS: added a new entry for the future. Put there a reminder to
10390         update the dependencies.
10392         * configure.in: put in notes about what will change shortly.
10393         upped the version to 0.90+cvs (did also in config.h.win32)
10394         upped the minimum version for intltools (now 0.21)
10395         
10396 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
10398         * dia.spec:
10399         * configure.in:
10400         * NEWS:
10401         * config.h.win32:
10402         bumped up version number to 0.90. Yay!
10404 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
10406         * doc/pl/Makefile.am:
10407         * doc/en/Makefile.am: fixed a "make install" problem when db2html
10408         is not present (Reported by Andrew Ferrier
10409         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10410         problem which prevented me from ever seeing the problem in doc/en...
10411         
10412         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10413         
10414         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10415         way to read the font path from the XFS configuration files in
10416         order to enable FreeType (fixes #83098).
10418         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10419         shipped nowadays.
10420                 
10421         * dia.spec:
10422         * configure.in:
10423         * NEWS:
10424         * config.h.win32:
10425         bumped up version number to 0.90.RC3
10427 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
10429         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10430         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10431         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10432         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10433         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10434         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10435         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10436         Added Polish documentation.
10438 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
10440         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10441         format for the UML State object. Now there's a hack to reload
10442         older files, and get them converted on the fly. 
10443         Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10445         * lib/properties.h:
10446         * lib/propobject.c:
10447         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10448         and adapter the proplist predicates. A LOAD_ONLY property is for
10449         when you have legacy to support but can't resist moving your
10450         fields around... (was needed to support the above state.c fix).
10452         If the in-core of your object changes and you need a LOAD_ONLY
10453         property for the old format, you must keep some spare room in your
10454         object's struct to accomodate for the potential old-style
10455         attributes. Then in foo_load(), after having called
10456         object_load_using_properties(), you must inspect the old-style
10457         fields and act accordingly. Don't ever change the on-disk formats...
10459         * objects/UML/object.c:
10460         * objects/UML/small_package.c: added a check against empty
10461         stereotypes still consuming space. Reported by Dolores Alia de
10462         Saravia <loli@unsa.edu.ar>. Thanks!     
10463         
10464 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
10466         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10467         using libtool on an AFS partition.
10469         * po/update_potfiles_in.sh: now simply calls the recent intltools 
10470         features; they work better than hand-crafted half-ignorant
10471         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10472         for the tip.
10474         * po/POTFILES.in: added back two files update_potfiles_in.sh
10475         didn't take into account. Now this file is not automatically
10476         generated anymore!      
10477         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10478         (the usual suspects, in fact).
10480         * configure.in: improved the isinf() / isfinite() detection on
10481         Solaris (MÃ¥rten Svantesson)
10482         
10483 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
10485         * configure.in: one expression was replacing $CFLAGS, removing
10486         whatever was previously in.
10487         Added more checks for isinf() and finite() on Solaris.
10489         * lib/geometry.h: added a macro defintion for isinf() if not
10490         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10491         on Win32)
10493         * app/commands.c: "cut" did not set the 'modified' bit (paste has
10494         been for a little while). Fixes #82994.
10496         * Makefile.am: added more stuff to distclean-local. This should make
10497         "make distcheck" pass! Thanks to the author of
10498         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10499         ... I wonder who this Henstridge guy is ... ;-)
10500         Darn. Still doesn't pass. I give up for tonight.
10501         
10502         * po/update_potfiles_in.sh: updated to take care of sheet files,
10503         and to filter out the EML plug-in.
10504         * po/POTFILES.in: updated with all .c and all .sheet.in files 
10506         * po/dia.pot, po/*.po: again updated all .po files with all
10507         strings (with the updated POTFILES). Now with the up-to-date
10508         POTFILES, just all languages have some fuzzy or untranslated
10509         strings (not that the 100% team was that large beforehand...)
10511         * po-checktrans: removed the comment about .po files not holding
10512         all translatable stuff, since now they do.
10513         
10514 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
10516         * dia.spec:
10517         * configure.in:
10518         * NEWS:
10519         * config.h.win32:
10520         bumped up version number to 0.90.RC2
10522 2002-05-20  Hans Breuer  <hans@breuer.org>
10524         * app/load_save.c : starting to increase
10525         Dias tolerance on incomplete/broken files. The 
10526         corresponding bug is #56233. But the patch there does
10527         neither apply anymore nor does it really fix the problem
10528         but only delays it, e.g. even if it would be allowed
10529         to read a file without any layers, the later code can't
10530         handle it.
10531         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10532         handle passing in NULL for the node gracefully.
10534         * shapes/network/printer.shape : added two more connection
10535         points - one at each side - to fix bug #60359
10537         * app/commands.c (edit_copy_callback) : 
10538         add ddisplay_do_update_menu_sensitivity() to make 
10539         sequence select-copy-paste work.
10541 2002-05-20  Hans Breuer  <hans@breuer.org>
10543         * app/create_object.c (create_object_button_press) :
10544         added a call to ddisplay_do_update_menu_sensitivity()
10545         to make Ctrl^D etc work after object creation. 
10546         Fixes #80983.
10548 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10550         * objects/ER/entity.c: 
10551         * objects/ER/attribute.c: 
10552         * objects/ER/relationship.c: Patch to allow text size change from
10553         Celso Tetsuo Nagase Suzuki.
10555 2002-05-18  Steffen Macke <sdteffen@web.de>
10557         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
10558         libxml2)
10559         * doc/en/graphics/greendots.png:
10560         * doc/en/home_network.png:
10561         * doc/en/line_props.png: 
10562         * dia-diagram.png:
10563         * dia_gnome_icon.png:
10564         * dia_gnome_menu_icon.png:
10565         * dia_logo.png:
10566         * shapes/network/telephone.png:
10567         * shapes/Logic/and.png:
10568         * shapes/Logic/buffer.png:
10569         * shapes/Logic/connector.png:
10570         * shapes/Logic/inverter.png:
10571         * shapes/Logic/nand.png:
10572         * shapes/Logic/nor.png:
10573         * shapes/Logic/not.png:
10574         * shapes/Logic/or.png:
10575         * shapes/logic/xor.png:
10576         * samples/ER-demo.dia:
10577         * samples/SADT.dia:
10578         * samples/UML-demo.dia:
10579         * samples/chronograms.dia:
10580         * samples/grafcet.dia: re-added as binary files
10582 2002-05-17  Hans Breuer  <hans@breuer.org>
10584         * lib/libdia.def : reflect removing of render_store.[ch]
10586         * */makefile.mingw : remove VERSION definition it's
10587         done in config.h.win32. Dia still doesn't work if
10588         build with mingw ...
10590         * RELEASE-PROCESS : removed */makefile.mingw
10592         * app/sheets_dialog_callbacks.c : if we use those
10593         ugly charconv_gtk_* functions lib/charconv.h needs to
10594         be #included ...
10595         * lib/charconv.h : ... and needs to contain the 
10596         necesseray prototypes _and_ #defines
10598         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10599         is deprecated and does nothing but spit a warning. This broke
10600         the shape format writing. Fixed.
10601         Also with libxml2 pretty formatted xml isn't the default
10602         anymore, but needs to be enabled explicit: It is done now 
10603         for shape files, which almost always needed to be edited by
10604         hand ... 
10606         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10607         from stderr - which is invalid on Dia/win32 - to g_print -
10608         which opens up a console window if necessary. This way
10609         a xml-deprecation-error shouldn't stay unnoticed next time
10611 2002-05-17  Steffen Macke <sdteffen@web.de>
10613         * shapes/Misc/folder.png:
10614         * shapes/Misc/file.png: re-added as binary files
10615         
10616 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10618         * lib/font.c: Fixed segfault for fonts without family_name.
10620 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
10622         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10624         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10625         Lars' request, minor cosmetic stuff (mostly _() of human-readable
10626         XML comments in .sheet files; one translator booby-trap disarmed).
10628         * lib/charconv.c: moved #hell inside the body of the new
10629         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10630         will yell)
10631         
10632 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10634         * plug-ins/wpg/Makefile.am (INCLUDES): 
10635         * plug-ins/shape/Makefile.am (INCLUDES): 
10636         * plug-ins/svg/Makefile.am (INCLUDES): 
10637         * plug-ins/pstricks/Makefile.am (INCLUDES): 
10638         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10639         and DEBUG_CFLAGS in some missing places.
10641         * MAINTAINERS: New file containing list of known package
10642         maintainers. 
10644         * lib/charconv.h: 
10645         * lib/charconv.c: Charconv versions of some common gtk calls.
10647         * app/sheets_dialog_callbacks.c
10648         (on_sheets_new_dialog_button_ok_clicked),
10649         (on_sheets_dialog_button_edit_clicked),
10650         (on_sheets_dialog_button_remove_clicked),
10651         (on_sheets_edit_dialog_button_ok_clicked):
10652         * app/sheets.c (sheets_optionmenu_create),
10653         (sheets_optionmenu_create): Added utf8 translations.
10655         * app/sheets_dialog.c: 
10656         * app/sheets.c: 
10657         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10659 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
10661         * po/POTFILES.in: added app/sheets_dialog.c
10663 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
10665         * lib/charconv.c: (charconv_local8_to_utf8),
10666         (charconv_utf8_to_local8): tweaked the warnings to get more 
10667         informations
10668         * lib/font.c: (font_get_suckfont): handled a potential case of
10669         uninitialised data being used (just paranoid)
10670         
10671         * objects/GRAFCET/boolequation.c: (opstring),
10672         (opblock_get_boundingbox), (opblock_draw),
10673         (boolequation_calc_boundingbox): some extra hoops needed now dia
10674         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10675         symbols can't yet be used with their proper Unicode cells, since
10676         gtk will demand them in the Symbol font, expressed in the local
10677         8-bit encoding.
10678         
10679         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10680         the fix just above).
10682 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
10684         * app/diagram_tree.c (get_object_name): Check that name property
10685         doesn't have null string.
10687 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10689         * autogen.sh (DIE): Added conditional --force to gettextize.
10691         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10692         function call.
10694 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
10696         * RELEASE-PROCESS: added James' notes on how to properly make the
10697         tarball.
10699         * configure.in: removed macro nesting related to libpng.h, which
10700         was causing some problems on some systems (like mine, which made
10701         the snapshots bad).
10703         Made --enable-unicode, previously an option, the mandatory case.
10705         * app/Makefile.am: updated EXTRA_DIST
10706         
10707         * NEWS:
10708         * app/makefile.mingw:
10709         * dia.spec:
10710         * doc/en/dia-manual.sgml:
10711         * plug-ins/makefile.mingw:
10712         * configure.in: bumped up the version number to 0.90.RC1
10714         * lib/render_objects.[ch]:
10715         * po/POTFILES.in: removed render_objects from the build.
10717         * plug-ins/Makefile.am:
10718         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
10719         so we keep its source in the tarball.
10721         * objects/network/*.c, Makefile.am:
10722         * objects/sybase/*.c, Makefile.am:
10723         * po/POTFILES.in: cleaned up the non-existent files from the po
10724         build process.
10726         * plug-ins/Makefile.am: re-enabled metapost plug-in.
10727         
10728 2002-05-13  Steffen Macke <sdteffen@web.de>
10730         * AUTHORS:
10731         * app/command.c: added M. C. Nelson to the Authors
10732         * sheets/Circuit/Makefile.am: added firewall shape to build
10733         * sheets/network/Makefile.am: added telephone and microphone
10734           shapes to build
10736 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10738         * RELEASE-PROCESS: Added list of files that contain the release
10739         number or should otherwise be changed at each release.
10741 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10743         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
10744         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
10746 2002-05-12  Hans Breuer  <hans@breuer.org>
10748         * config.h.win32 : changed VERSION to 0.90.RC1
10750         * app/makefile.msc lib/makefile.msc : use renamed
10751         gdk-pixbuf version (same content but renamed because
10752         all the other gtk+ dlls are renamed) to avoid trouble
10753         mixing gtk versions (of which one would not 
10754         be initialized ...
10756         * app/app_procs.c : removed recently unneeded
10757         inclusion of "sheets.h"
10759         * app/render_gdk.c : removed my own debug spew
10760         which should never made it to cvs
10762         * lib/render_object.[hc] : added
10763         #error "File not used anymore."
10765         * lib/libdia.def : updated externals
10767         * app/interface.c : dropped filenames need to be
10768         converted from uri with Gtk+2.0
10770 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
10772         * RELEASE-PROCESS (new): a draft document about how to release. To
10773         be discussed. (already with some input from Hans Breuer)
10775 2002-05-12  Steffen Macke <sdteffen@web.de>
10777         * sheets/Makefile.am: re-added Misc sheet to make process
10778         
10779 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10781         * objects/FS/function.c: Added comments to humungous list of menu
10782         items, to aid translators.
10784 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10786         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10788         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10790         * app/interface.c (create_toolbox): Disallow shrinking beyond
10791         requested size.  Fixes bug #59439, and confirms to GTK guidelines
10792         (see gtk_window_set_policy).
10793         (create_sheets): Removed now unnecessary set_usize call.
10795 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10797         * lib/beziershape.c (remove_handles): Fixing removal of last
10798         segment.  Undo of removal still hokey.
10800 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
10802         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
10803         handles. 
10804         * lib/beziershape.c (beziershape_init): Removed early call to
10805         beziershape_update_data where points aren't set yet.
10806         (beziershape_add_segment): Use segment 0 instead of overflowing
10807         points array with segment+1.
10808         (beziershape_remove_segment): Proper offset for fixing
10809         connectionpoints. 
10810         (remove_handles): Proper offset.
10812 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
10814         * objects/GRAFCET/action.c (action_update_data): Init x value of
10815         click point for call to connpointlist_adjust_count.
10817         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
10819         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
10820         setting to where values are inited.
10822         * lib/polyshape.c (polyshape_init): Removed call to
10823         polyshape_update_data that tried to use uninitialized data.
10825 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10827         * app/sheets_dialog.c: Mass removal of //-style comments.  The
10828         Irix compiler doesn't like them:(  I do...
10830 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
10832         * app/render_libart.c (draw_string): Bail out when no GDK font is
10833         found.
10834         (set_font): Give error when font not found.
10835         (set_fillstyle): Intlized error msg.
10837         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
10838         modified when applied (and ok only does apply if apply is set
10839         sensitive).  Fixes bug #75623.
10841 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
10843         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
10845 2002-05-05  Steffen Macke <sdteffen@web.de>
10847         * app/Makefile.am: added $(UNICODE_CFLAGS)
10848         
10849 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
10851         * app/commands.c (help_manual_callback): Check return value of
10852         opendir.
10854         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
10856         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
10857         checks for errors.
10859 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
10861         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
10863         * objects/UML/uml.c (uml_operation_read): Fix of UML default
10864         inheritance. 
10866 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10868         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
10869         Added button to toggle diagram compression.
10871 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10873         * lib/font.c: Support for loading extra kerning files, plus got
10874         rid of rounding errors.  Bounding box mostly perfect for freetype
10875         fonts.
10876         (font_string_width): Fudge factor to get around nonlinearity of
10877         font scaling.
10879 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
10881         * lib/font.c (font_string_width): YA font calculation scheme, with
10882         comments.
10884         * objects/UML/class.c (umlclass_calculate_data): Uses the same
10885         font for drawing and calculating now.
10887         * configure.in: Added utime.h check.
10889         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
10890         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
10892 2002-04-26  Hans Breuer  <hans@breuer.org>
10894         [ Instead of fixing about 70 occurances in 20 files
10895           where GTK_TALKS_UTF8_WE_DONT needed to be handled
10896           Dia on win32 from now on uses glib-2.0 and not 
10897           only talks utf-8 with gtk-1.3 but also internally.
10898           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
10899           anymore. ]
10901         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
10902         #undef GTK_TALKS_UTF8_WE_DONT
10904         * */makefile.msc : changes to use glib-2.0 (still
10905         using gtk+1.3(win32-production)
10907         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
10908         adapt kevent->string handling, add <string.h>
10909         * app/render_gdk.c (get_text_width) : the length given
10910         is in chars, gdk_text_width() needs bytes
10912         * app/render_libart.c : 
10913         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
10914         (could simplify the same way as done in render_gdk.c)
10916         * app/diagram_tree.c app/paginate_gdiprint.cpp
10917           app/sheets.c :
10918         * lib/prop_basic.c lib/prop_geomtypes.c 
10919           lib/propdialgs.c lib/propobject.c :
10920         added <string.h> which is now removed from charconv.h
10922         * lib/charconv.h : optional use infrastructure from
10923         glib-2.0 -> only five direct function mapping left
10925         * lib/charconv.c : avoid to build this with glib-2.0
10927         * lib/font.c : no string conversion needed anymore      
10928         when Dia and Gtk talk utf-8, also code adaptions
10929         for GLIB_CHECK_VERSION(2,0,0)
10931         * lib/libdia.def : removed charconv functions
10933         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
10934         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
10936         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
10937         removed GTK_TALKS_UTF8_WE_DONT
10939         * lib/text.c : finally(?) fixed cursor <place|move>ment 
10940         for Umlauts. Also fixed char insertion, still wondering
10941         how this could ever work. Does realloc on Linux 
10942         initialize the memory with zeros ?
10944         * objects/chronogram/chronoline_event.c
10945           objects/grafcet/boolequation.c :
10946         there is no uni_get_utf8 when building for glib-2.0.
10947         Replace with g_utf8_get_char() and g_utf8_next_char().
10949         * objects/uml/stereotype.c (bracketted_to_string) : 
10950         simplify while adding code for glib-2.0 build
10952 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
10954         * app/diagram.h: Autosave field
10955         * app/diagram.c (diagram_set_modified): Sets autosave field.
10956         
10957         * objects/UML/usecase.c (usecase_update_data): 
10958         * objects/flowchart/ellipse.c (ellipse_update_data): 
10959         * objects/flowchart/parallelogram.c (pgram_update_data): 
10960         * objects/flowchart/diamond.c (diamond_update_data): 
10961         * objects/custom/custom_object.c (custom_update_data): 
10962         * objects/UML/state.c (state_update_data): 
10963         * objects/UML/small_package.c (smallpackage_update_data): 
10964         * objects/UML/object.c (objet_update_data): 
10965         * objects/UML/note.c (note_update_data): 
10966         * objects/UML/node.c (node_update_data): 
10967         * objects/UML/component.c (component_update_data): 
10968         * objects/UML/classicon.c (classicon_update_data): 
10969         * objects/UML/actor.c (actor_update_data): 
10970         * objects/SADT/box.c (sadtbox_update_data): 
10971         * objects/FS/function.c (function_update_data): 
10972         All now update text boundaries from update_data.
10973         
10974         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
10975         correctly. 
10977 2002-04-26  Hans Breuer  <hans@breuer.org>
10979         * config.h.win32 : added VERSION definition here
10980         (and removed from makefile.msc's)
10982         * app/makefile.msc : added new files
10984         * app/app_procs.c (app_init): remove sheets_dialog_create()
10985         from start-up and ... 
10987         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
10988         sheet_dialog here when it is really needed.
10989         #include "../lib/message.h", make sheets_dialog_create() 
10990         return it's success or failing on (!custom_type_symbol). 
10991         Although editing shapes is nice IMHO it isn't crucial enough 
10992         to abort() Dia if       it isn't possible.
10994         * app/sheet.h : adapt create_sheet_dialog() prototype
10996         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
10998         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
10999         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
11000         name space corrections for utime() and utim_buf #ifdef
11001         G_OS_WIN32
11003         * lib/libdia.def : export new sheet functions
11005         * lib/makefile.msc : added new files
11007         * lib/render.c : don't put draw_bezier_with_arrows() in
11008         the DrawLineWithArrowsFunc slot
11010         * objects/custom/custom_object.c : #include <gmodule.h>
11011         and export 'custom_type' via G_MODULE_EXPORT
11013         * objects/uml/class_dialog.c : removed 'incompatible 
11014         types' warnings. Some refactoring while making it fit
11015         on screen with 800x600 again.
11017         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
11019         * plug-ins/python/pydia-handle.h : extra parameter to
11020         PyDiaHandle_New to store the owner of the handle
11021         * plug-ins/python/pydia-handle.c : store handle owner
11022         on construction and use it in new method .connect()
11023         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
11024         adapt to changed prototype
11026 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
11028         * lib/text.c (text_calc_boundingbox): Will now return early if box
11029         passed is NULL.
11031         * objects/flowchart/box.c (box_update_data): Now updates text
11032         width info from update_data.
11034 2002-04-23  Steffen Macke <sdteffen@web.de>
11036         * plug-ins/xfig/xfig-import.c: fixed text import
11037         
11038 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
11040         * app/export_png.c: Moved dialog functions to their own file.
11041         * app/dialogs.[ch]: New files with standard functions for creating
11042         small, transient dialogs (e.g. export options).
11043         * app/Makefile.am: Added dialogs.[ch]
11045 2002-04-19  Steffen Macke <sdteffen@web.de>
11047         * shapes/Misc/folder.*:
11048         * shapes/Misc/file.*:
11049         * shapes/Misc/Makefile.am:
11050         * shapes/Makefile.am:
11051         * sheets/Misc.sheet.in:
11052         * sheets/Makefile.am:
11053         * configure.in: added new Misc sheet containing filesystem shapes
11054         
11055 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
11057         * app/lineprops_area.c: Arrow selector in toolbox changed to use
11058         standard arrowdraw code.  Line is thinner to make some arrowheads
11059         distinguishable. 
11061 2002-04-18  Steffen Macke <sdteffen@web.de>
11063         * sheets/network.sheet.in:
11064         * shapes/network/telephone.shape:
11065         * shapes/network/Makefile.am: added telephone shape
11066         
11067 2002-04-16  Steffen Macke <sdteffen@web.de>
11069         * sheets/EML.sheet.in: commented out unavailable shapes
11070         
11071 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
11073         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
11074           variable assignment.
11075         
11076 2002-04-15  Steffen Macke <sdteffen@web.de>
11078         * plug-ins/dxf/dxf-import.c: text import works again
11079         * shapes/Pneumatic/Makefile.am: added compush shape
11080         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11081         and dist53
11082         
11083 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
11085         * All these modifications are for the 'Sheets and Objects' dialog
11086           (new feature):
11088         * app/pixmaps/line_break.xpm: new icon representing a line break.
11089         
11090         * app/pixmaps/n_a.xpm: new empty icon representing not available.
11092         * app/Makefile.am: added sheets_*.[ch] files to compile list.
11093         
11094         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11095         
11096         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11098         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
11099         
11100         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11101         
11102         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11104         * app/sheets_dialog_callbacks.h: [new file] support for " " "
11106         * app/interface.c: added 'interface_current_sheet_name' global to 
11107           fill_sheet_wbox(); made fill_sheet_menu() non-static
11109         * app/interface.h: added extern declaration for aboves.
11111         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11113         * app/sheets.h: [new file] declarations for backing store structures
11115         * lib/sheet.c: modification of new_sheet() parameters; introduction
11116           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11117           changes to load_register_sheet().
11119         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11120           added 'has_icon_on_sheet' flag to SheetObject structure; added 
11121           'filename', 'scope', 'shadowing' fields to Sheet structure.
11123         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11124           it belongs.
11126         * lib/plug-isn.h: see above.
11128         * lib/object.c: added 'sheet.h' to include list; added several 
11129           functions
11130           to detect objects which are not found on any sheet (for future use)
11131           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11132           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11134         * lib/object.h: added public declarations for above functions where
11135           necessary.
11137         * objects/custom/custom.c: made custom_object_load() non-static so we
11138           can load and interpret .shape files from the Sheets & Objects dialog
11140         * objects/custom/custom_object.c: made 'custom_type' non-static so 
11141           we can differentiate between SVG shapes and other types.a
11143 2002-04-07  Hans Breuer  <hans@breuer.org>
11145         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11146         from 2002-01-22 to not destroy diagram->data->selected. 
11147         Avoids to crash on Objects/Align/Vertical/Top
11149         * app/render_eps.c (draw_string) : un-const buffer
11150         It isn't at all const (g_malloc(), assignment, g_free()).
11151         Doesn't gcc catch such ?
11153         * lib/arrows.h : prototype calculate_arrow_point()
11155         * lib/font.c (font_get_suckfont) : no need to
11156         special case gdk_draw_string() with GTK_TALKS_UTF8,
11157         cause all the parameter differences are handled above
11159         * lib/libdia.def : updated externals
11161         * lib/makefile.msc : removed string_prerenderer, added render
11163         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11164         is expected. [Sometimes it's good to read compiler warnings.]
11166         * objects/standard/image.c : simplified by use of g_strconcat()
11168         * plug-ins/python/makefile.msc : updated for Python 2.2
11170 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
11172         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11173         directionality problem for zero-length line segments.
11175 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
11177         * app/diagram.c (diagram_ungroup_selected) 
11178         (diagram_update_menu_sensitivity): Now allows ungrouping of
11179         several groups at once.
11181 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
11183         * lib/render.c, all renderers: Binary incompatibility, change to
11184         expandable renderops structure.
11186 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
11188         * objects/standard/Makefile.am:
11189         * objects/network/Makefile.am:
11190         * objects/UML/Makefile.am:
11191         * objects/ER/Makefile.am:
11192         * objects/FS/Makefile.am:
11193         * objects/flowchart/Makefile.am:
11194         * objects/custom/Makefile.am:
11195         * objects/GRAFCET/Makefile.am:
11196         * objects/chronogram/Makefile.am:
11197         * objects/SADT/Makefile.am:
11198         * plug-ins/cgm/Makefile.am:
11199         * plug-ins/pstricks/Makefile.am:
11200         * plug-ins/hpgl/Makefile.am:
11201         * plug-ins/wpg/Makefile.am:
11202         * plug-ins/svg/Makefile.am:
11203         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11204         
11205 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
11207         * app/render_eps.c: Support for dumping TrueType fonts (taken from
11208         ttfps).
11210 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11212         * lib/render.c: New abstract super class for renderers.
11214 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
11216         * objects/ER/attribute.c (attribute_save): save a font property.
11217         (attribute_load): load a font property, and if can't load it, it's
11218         initialized.
11220         * objects/ER/entity.c (entity_save): save a font property.
11221         (entity_load): load a font property, and if can't load it, it's
11222         initialized.
11224         * objects/ER/relationship.c (relationship_save): save a font property.
11225         (relationship_load): load a font property, and if can't load it, it's
11226         initialized.
11228         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11229         has a vaule.
11230         (umlclass_save): save the font and the font size properties.
11231         (umlclass_load): load the font and the font size properties.
11233 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
11235         * lib/string_prerenderer.[ch] (REMOVED):
11236         * lib/render.h:
11237         * lib/diagramdata.c:
11238         * lib/Makefile.am:
11239         * app/render_eps.c: got rid of the string-specific string
11240         prerenderer, transitioned its functionality towards Lars'
11241         two-phase rendering
11243 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
11245         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
11246         may need to rerun aclocal.
11248 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11250         * lib/font.c: First attempt at Unicodeness for Freetype.
11252 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11254         * lib/font.c (font_string_width): Fixed font_string_width for
11255         freetype.  BB is now almost right.
11257 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11259         * app/render_eps.h: 
11260         * app/paginate_psprint.c (paginate_psprint): 
11261         * lib/font.c: 
11262         * app/render_eps.c: Support for dumping postscript fonts into
11263         postscript files with freetype.  Fairly primitive, but works.
11264         Unicode version may have problems.
11266 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11268         * objects/UML/class_dialog.c (class_read_from_dialog)
11269         (class_fill_in_dialog), (class_create_page): add the font selector and
11270         the font size selector.
11272         * objects/UML/class.c (umlclass_draw): uses each font_height.
11273         (umlclass_calculate_data): ditto.
11274         (fill_in_fontdata): add initial value of new font_height.
11275         (umlclass_copy): add new font_height.
11277 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
11279         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11280         
11281         * lib/font.c: calculate font metrics properly and stop guessing at
11282         string widths.
11284 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11286         * configure.in: changed gtk_advancement value to dia_talks_utf8.
11287         right now Dia is working with UTF-8 internally. it means Dia probably
11288         support most languages also including the languages which heretofore
11289         didn't work correctly.
11291 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
11293         * objects/FS/function.c: add related text properties.
11294         (function_get_props), (function_set_props): add handling attribute.
11296         * objects/FS/flow.c: add related text properties.
11297         (flow_get_props), (flow_set_props): add handling attribute.
11299         * objects/FS/flow-ortho.c: add related text properties.
11300         (orthflow_set_props), (orthflow_get_props): add handling attribute.
11302         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11304         * objects/ER/entity.c: ditto.
11306         * objects/ER/attribute.c: ditto.
11308 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
11310         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11311         
11312         * autogen.sh: add a check for missing intltoolize.
11314 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
11316         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11317         charcode, it was registered the duplicate item to HashTable. fix.
11319         * app/render_gnomeprint.c (get_width_string): add new function.
11320         (draw_string): fix non-multibyte specific code.
11322 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
11324         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11325         
11326         * lib/font.c: do not try to search paths that do not begin with
11327         '/', like X Font Server addresses.
11328         
11329         * objects/UML/message.c (message_draw): free mname when not 
11330         message->text but CREATE or DESTROY.
11331         
11332         * objects/UML/uml.h:
11333         * objects/UML/uml.c:
11334         * objects/UML/class_dialog.c: added code to handle a stereotype 
11335         attribute for operations.
11337 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
11339         * lib/Makefile.am: add LIBART_CFLAGS.
11341 2002-02-15  Hans Breuer  <hans@breuer.org>
11343         * lib/font.c (font_get_suck_font): the black and white pixel values 
11344         need to be taken from a 1 bit colormap rather than the default colormap.
11345         (fixed again, last time was 2000-05-26)
11347         Also handle the case where GTK_TALKS_UTF8 and expects all strings
11348         passed in to be in this encoding.
11350         * lib/libdia.def : export suck_font_free()
11352         * lib/text.c (text_draw) : avoid circular dependency to ../app
11353         at least for the !USE_XIM case, where it is unnecessary.
11355 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
11357         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11358         
11359         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11360         * sheets/Circuit.sheet.in: added new shape microphone
11361         * shapes/Circuit/speaker_de.shape: Added a connection point.
11362         
11363 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
11365         * app/render_libart.c (draw_string): fixed build issue for Win32.
11367         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11368         Win32.
11370         * configure.in: fixed testing gtk_advancement.
11372         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11374 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
11376         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11377         diagram window.
11379 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
11381         * app/group.c (group_copy): Made new object properly initialized
11382         before copy.
11384 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
11386         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11387         
11388 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
11390         * lib/text.c (text_draw): fixed XIM transaction.
11392         * app/interface.c (create_display_shell): add signal for
11393         size_allocate.
11395         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11396         XIM transaction.
11397         (set_input_dialog): remove.
11398         (ddisplay_canvas_events): remove XIM transaction. it can't transact
11399         correctly on this function.
11401 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11403         * app/app_procs.c:
11404         * app/export_png.c: Added checks for interactivity (maybe this
11405         should be a hook after all?).
11407         * app/filedlg.c (file_export_callback): Made export dialog add
11408         suffix when reopened.
11410         * app/export_png.c: Added dialog asking for export size.
11412 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11414         * lib/widgets.c: Fixed font reselection problem and first font
11415         bogus warning.
11417         * objects/UML/actor.c (actor_update_data): Changed to have
11418         connection points below text.
11420 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
11422         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11423         and memcpy().
11425 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
11427         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11428         strings which is given.
11429         (suck_font): remove. it's any longer needed.
11431         * app/render_libart.c (set_font): don't get suckfont.
11432         (draw_string): get suckfont only which is needed for now.
11434 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11436         * lib/text.c: Fixes for misunderstood width functions.
11438 2002-02-05  Hans Breuer  <hans@breuer.org>
11440         * lib/dia_xml.c : use g_strconcat() instead of 
11441         malloc, strcpy, strcat dance
11442         * app/properties.c : same here and plug memory leak
11443         (gtk functions don't eat strings)
11445         * objects/UML/message.c : there is no g_sprintf()
11446         use g_strdup_printf() instead ...
11448 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
11450         * lib/message.c (gtk_message_internal): doesn't need to convert to
11451         UTF-8.
11453         * app/render_libart.c (draw_string): fixed transaction for UTF-8
11454         support.
11455         (get_text_width): ditto.
11457         * app/Makefile.am (EXTRA_DIST):
11458         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11460         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11461         This function needs ifdef HAVE_FREETYPE because don't use it for
11462         --disable-freetype
11464 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
11466         * NEWS: updated with the new dependencies.
11467         
11468         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11470         * objects/UML/class.h:
11471         * objects/UML/class.c:  
11472         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11473         property using a GtkMenu. Options are Undefined, In, Out, In & Out
11475 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11477         * app/render_libart.c: Slow but working libart freetype renderer,
11478         with color!
11480 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11482         * app/render_gdk.c (draw_string): Fixed gc_function bug.
11484         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11486         * lib/font.c (freetype_render_string): 
11487         * lib/font.h:
11488         * app/render_gdk.c:
11489         * app/render_gdk.h: Changed freetype_render_string to use
11490         callback.  Rendering is broken.
11492 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
11494         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11496         * objects/UML/uml.h:    
11497         * objects/UML/uml.c: added UMLInheritanceType and isQuery
11498         (constant) UML Operation attributes. UMLInheritanceType is either
11499         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
11501         * objects/UML/class.h:
11502         * objects/UML/class.c:  
11503         * objetcs/UML/class_dialog.c: added code to handle new
11504         UMLOperation attributes via a GtkMenu and a checkbox.
11506 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
11508         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11509         several client doesn't work with previous codes.
11511 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11513         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
11514         seem to use it.
11516 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
11518         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11519         when doing the operation like invert the objects after active view is
11520         destroyed. when changes focus, it needs to set active_display.
11522         * app/layer_dialog.c (dia_layer_update_from_layer):
11523         (layer_dialog_edit_layer): need to convert to locale encoding
11524         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11525         (edit_layer_ok_callback):
11526         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11528         * lib/diagramdata.c (new_diagram_data): ditto.
11530         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11532         * lib/diagramdata.c (new_layer): use utfchar instead of char for
11533         argument.
11535         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11536         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11537         it's needed for now. also this function needs prototype declaration.
11539 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
11541         * lib/widgets.c: Style now functional on font selector.  Some leak
11542         possible, but doesn't show up under stress test.
11544 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
11546         * app/plugin-manager.c (clist_select_row): name and description needs to
11547         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11548         (get_plugin_manager): ditto.
11550         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11552         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11553         support.
11555         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11556         when prop->string_data is NULL.
11558 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11560         * lib/widgets.c: 
11561         * lib/widgets.h: New font selector separating font and style.
11562         Style not functional yet.
11564 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11566         * lib/text.c: 
11567         * app/render_gdk.c (draw_string): More freetype support, now
11568         renders text.  Still broken is font selection and exporting.
11570 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
11572         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11573         for font.
11575         * objects/chronogram/chronoline.c (chronoline_create): ditto.
11577         * objects/UML/usecase.c (usecase_create): ditto.
11579         * objects/UML/state.c (state_create): ditto.
11581         * objects/UML/object.c (objet_create): ditto.
11583         * objects/UML/node.c (node_create): ditto.
11585         * objects/UML/message.c (message_create): ditto.
11587         * objects/UML/component.c (component_create): ditto.
11589         * objects/UML/classicon.c (classicon_create): ditto.
11591         * objects/UML/actor.c (actor_create): ditto.
11593         * objects/SADT/box.c (sadtbox_create): ditto.
11595         * objects/SADT/annotation.c (annotation_create): ditto.
11597         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11599         * objects/GRAFCET/step.c (STEP_FONT):
11600         * (step_create): ditto.
11602         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11604         * objects/GRAFCET/action.c (ACTION_FONT):
11605         (action_create): ditto.
11607         * objects/FS/function.c (function_create): ditto.
11609         * objects/FS/flow.c (flow_create):
11610         (flow_load): 
11611         (flow_apply_defaults): ditto.
11613         * objects/FS/flow-poly.c (flow_create):
11614         (flow_load):
11615         (flow_apply_defaults): ditto.
11617         * objects/FS/flow-ortho.c (orthflow_create):
11618         (orthflow_load):
11619         (orthflow_apply_defaults): ditto.
11621         * objects/ER/relationship.c: use utfchar instead of char for structure.
11622         (relationship_create): name needs to convert to UTF-8.
11624         * objects/ER/attribute.c: use utfchar instead of char for structure.
11625         (attribute_create): name needs to convert to UTF-8.
11627         * objects/ER/entity.c: use utfchar instead of char for structure.
11628         (entity_create): name needs to convert to UTF-8.
11630         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11631         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11632         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11633         items. if GTK_TALKS_UTF8 isn't defined.
11635 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
11637         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11638         it was my careless mistake...
11640         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11641         a font name, because there are strings which isn't shown by "Courier".
11642         We need to consider a way to feel free to choose a font at runtime.
11644         * lib/render_object.c (render_object_load): ditto.
11646         * lib/text.c (data_text): ditto.
11648         * objects/EML/instantiation.c (instantiation_create): ditto.
11650         * objects/EML/interaction-ortho.c (interaction_ortho_create):
11651         (interaction_ortho_load): ditto.
11653         * objects/EML/interaction.c (interaction_create):
11654         (interaction_load): ditto.
11656         * objects/EML/process.c (fill_in_fontdata): ditto.
11658         * objects/ER/attribute.c (attribute_create): 
11659         (attribute_load): ditto.
11661         * objects/ER/entity.c (entity_create): 
11662         (entity_load): ditto.
11664         * objects/ER/relationship.c (relationship_create): 
11665         (relationship_load): ditto.
11667         * objects/UML/association.c (association_create): 
11668         (association_load): ditto.
11670         * objects/UML/class.c (fill_in_fontdata): ditto.
11672         * objects/UML/constraint.c (constraint_create): ditto.
11674         * objects/UML/dependency.c (dependency_create): ditto.
11676         * objects/UML/generalization.c (generalization_create): ditto.
11678         * objects/UML/implements.c (implements_create): ditto.
11680         * objects/UML/large_package.c (largepackage_create): ditto.
11682         * objects/UML/note.c (note_create): ditto.
11684         * objects/UML/realizes.c (realizes_create): ditto.
11686         * objects/UML/small_package.c (smallpackage_create): ditto.
11688         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11690         * objects/custom/custom_object.c (custom_create): ditto.
11692         * objects/network/antenna.c (render_to_store): ditto.
11694         * objects/network/computer.c (render_to_store): ditto.
11696         * objects/network/disc.c (render_to_store): ditto.
11698         * objects/network/flash.c (render_to_store): ditto.
11700         * objects/network/hub.c (render_to_store): ditto.
11702         * objects/network/modem.c (render_to_store): ditto.
11704         * objects/network/modularswitch.c (render_to_store): ditto.
11706         * objects/network/monitor.c (render_to_store): ditto.
11708         * objects/network/printer.c (render_to_store): ditto.
11710         * objects/network/rj45plug.c (render_to_store): ditto.
11712         * objects/network/scead-plug.c (render_to_store): ditto.
11714         * objects/standard/textobj.c (textobj_load): ditto.
11716         * objects/sybase/client.c (render_to_store): ditto.
11718         * objects/sybase/dataserver.c (render_to_store): ditto.
11720         * objects/sybase/ltm.c (render_to_store): ditto.
11722         * objects/sybase/repserver.c (render_to_store): ditto.
11724         * objects/sybase/rsm.c (render_to_store): ditto.
11726         * objects/sybase/stableq.c (render_to_store): ditto.
11728         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
11730         * objects/UML/uml.h (UML_STEREOTYPE_START):
11731         (UML_STEREOTYPE_END): changes default strings.
11733 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
11735         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
11736         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
11737         which is given to arguments isn't UTF-8. so don't need to convert it.
11738         if GTK+ handle UTF-8, also don't need to convert it.
11739         (strend): remove.
11740         (bracketted_to_string): fixed transaction for UTF-8 support.
11741         also start/end bracket is not necessarily 1 character. so that when use
11742         strend(), it doesn't work correctly.
11743         (string_to_stereotype): use utfchar instead of char.
11744         (remove_stereotype_from_string): ditto.
11745         (stereotype_to_string): ditto.
11747         * objects/UML/stereotype.h: ditto.
11749         * objects/UML/message.c: use utfchar instead of char for structure.
11750         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
11752         * objects/UML/small_package.c: use utfchar instead of char for structure.
11754         * objects/UML/realizes.c: ditto.
11756         * objects/UML/object.c: ditto.
11758         * objects/UML/large_package.c: ditto.
11760         * objects/UML/implements.c: ditto.
11762         * objects/UML/generalization.c: ditto.
11764         * objects/UML/dependency.c: ditto.
11766         * objects/UML/constraint.c: ditto.
11768         * objects/UML/component.c: ditto.
11770         * objects/UML/class_dialog.c (attributes_get_current_values):
11771         (attributes_list_new_callback, attributes_fill_in_dialog):
11772         (parameters_set_values, parameters_get_values):
11773         (parameters_get_current_values, parameters_list_new_callback):
11774         (operations_set_values, operations_get_values):
11775         (operations_get_current_values, operations_list_new_callback):
11776         (operations_fill_in_dialog, templates_set_values):
11777         (templates_get_values, templates_get_current_values):
11778         (templates_list_new_callback, templates_fill_in_dialog):
11779         fixed transaction for UTF-8 support.
11781 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
11783         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
11785         * objects/UML/class_dialog.c (class_read_from_dialog):
11786         (class_fill_in_dialog):
11787         (attributes_get_values): ditto.
11789         * objects/UML/actor.c (actor_create): ditto.
11791         * objects/UML/class.c (umlclass_calculate_data): ditto.
11793         * objects/UML/association.c (association_apply_properties):
11794         (fill_in_dialog): ditto.
11796         * objects/UML/uml.c (uml_get_attribute_string):
11797         (uml_get_operation_string):
11798         (uml_get_parameter_string):
11799         (uml_get_formalparameter_string): use utfchar instead of char.
11801         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
11802         UML_STEREOTYPE_END.
11804         * objects/UML/class.h: use utfchar instead of char.
11806         * lib/dia_xml.c (data_add_string): ditto.
11808         * lib/text.c (text_insert_char): fixed characters# calculation
11809         when includes multibytes character in strings.
11811 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
11813         Patch from Richard Rowell <rwrowell@bellsouth.net>:
11815         * app/lineprops_area.c:
11816         * lib/arrows.h:
11817         * lib/arrows.c: 
11818         * lib/widgets.c: added crow foot arrow and cross arrow
11819         
11820         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
11821         
11822         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
11824 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
11826         * po/update.pl (REMOVED):
11827         * po/update.sh (REMOVED):
11828         * xml-i18n-merge.in.kg (REMOVED):
11829         * xml-i18n-update.in.kg (REMOVED):
11830         * sheets/Makefile.am:
11831         * Makefile.am:
11832         * autogen.sh:
11833         * configure.in: converted from xml-i18n-tools to intltools
11835         This looks like it fixes the build bugs of the snapshot tarballs, 
11836         and it supersedes #69611.       
11838 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
11840         * lib/text.c (text_insert_char): fixed characters# calculation.
11841         it's not string length.
11843         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
11844         is defined, needs to convert a description to UTF-8.
11846         * app/render_gdk.c (get_text_width): fixed transaction for
11847         UTF-8 support. also should uses gdk_text_width_wc() instead
11848         of gdk_text_width().
11850         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
11851         is defined, needs to convert to locale encoding for display.
11852         Also use utfchar instead of char for argument.
11854 2002-01-24  Hans Breuer  <hans@breuer.org>
11856         * app/commands.c(edit_paste_callback and more) : 
11857         call diagram_modified(ddisp->diagram) to fix #68083
11858         (help_menu_callback) : plug a DIR leak
11860         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
11861         GTK_TALKS_UTF8_WE_DONT
11863         * app/render_gdk.c(get_text_with) : it's a bad idea to use
11864         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
11865         gdk_text_width(). The length value is still questionable ...
11867         * lib/charconv.c : use functions already available in early
11868         GLIB-1.3 days whiches API hasn't changed since, to avoid
11869         version problems with the win32 build
11871         * lib/font.c : finally fix #58045 and #68208
11873         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
11875 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
11877         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
11878         no strings, fixed transaction.
11880         * lib/charconv.h: fixed typo.
11882         * app/menus.c: fixed typo.
11884         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
11886         * objects/UML/object.c: attrib's type uses utfchar instead of char.
11888         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
11890         * lib/text.c (text_create_change): use unichar instead of char.
11892         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
11893         use utfchar instead of char.
11895         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
11896         UTF-8 support.
11898         * lib/charconv.c (charconv_utf8_get_char): add new function.
11900 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
11902         * lib/text.c (text_delete_forward, text_delete_backward,
11903         text_split_line): fixed transaction for UTF-8 support.
11905         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
11906         strlen[] has string length for UTF-8, so has to use alloclen[].
11908         * dia.pot: remove.
11910         * .cvsignore: add dia.pot.
11912 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
11914         * configure.in: Added "sk" to ALL_LINGUAS.
11916 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
11918         * lib/text.c (text_set_string, new_text, text_copy,
11919         text_get_string_copy, text_join_lines): use utfchar instead of gchar
11920         for strings.
11922         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
11923         strchr().
11925         * lib/charconv.c (charconv_utf8_strchr): add new function.
11927         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
11929         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
11931         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
11932         strings to the appropriate encoding.
11934 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
11936         * app/object_ops.c (object_list_align_[hv]): Leak fix.
11938         * lib/Makefile.am (INCLUDES): Added debug flags.
11940         * app/object_ops.c: Fixed ordering problem of align equi-distant &
11941         adjacent. 
11943 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
11945         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
11946         gdk_string_width().
11948         * objects/GRAFCET/boolequation.c: fixed invalid comment.
11950         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
11951         when defined UNICODE_WORK_IN_PROGRESS.
11953         * lib/dia_xml.c (data_add_string): fixed typo.
11955 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
11957         * configure.in: fixed test gtk_advancement.
11959 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
11961         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
11962         exported to SVG
11964         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
11966         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
11967         tool tips, preferences, and arbitrarily long ~/.dia/history
11969         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
11970         removed 'Open Recent'; added new separators for recent documents on
11971         File menu.
11973         * app/interface.[ch] (interface_get_toolbox_shell): new function
11975         * app/diagram.c: added new parameter to recent_file_history_add() call
11977         * app/preferences.[ch]: added new 'Recent documents list size'
11978         preferences item
11979         
11980 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
11982         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
11983         if it failed, should be used gdk_font_load ().
11985         * lib/font.c (font_data): added the font entries for CJK.
11987 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
11989         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
11991         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
11992         
11993 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
11995         Patch from Martin Cracauer <cracauer@cons.org>:
11996         
11997         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
11998         non-GNOME case ?)
12000 2002-01-01  Hans Breuer  <hans@breuer.org>
12002         * app/command.c : optional use GDI printing on windoze
12004         * app/preferences.[hc] : add option 'prefer_psprint' to 
12005         select the print engine to use (could be used for Dia/Gnome
12006         as well)
12008         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
12009         wmf plug-in with the common win32 print api. Now printing
12010         should work almost as expected from a windows program :-)
12012         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
12013         to .edit_delete to avoid clashes with C++
12015         * app/makefile.msc : updated for GDI printing
12017         * plug-ins/wmf/wmf.cpp : some small modifications to support
12018         GDI printing. Also swap R and B channel in draw_image()
12020         * app/makefile.am : added windows only files to EXTRA_DIST
12022         * objects/uml/class.c(umlclass_set_props) : force recalculation
12023         when applying properties
12025         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
12026         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
12027         many incompatible changes (and would force a gtk update)
12029         * objects/makefile.msc : don't build C-Objects which are
12030         already available as 'pure shape'
12032         * plug-ins/makefile.msc : remove diaimport from build. It was
12033         only available via mailing-list and is broken since the
12034         StdProp overhaul.
12037         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
12039         * app/preferences.[hc] : tweaked preferences.c to make 
12040         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
12041         added some more DiagramTree prefererences and their own
12042         notebook page.
12044         * app/diagram_tree.[hc] : allow to sort by object type or name
12045         and hide by type ...
12046         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
12047         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
12049         * app/diagram_tree_window.c : handle hidden types and window
12050         size restoring.
12052 2001-12-20  Hans Breuer  <hans@breuer.org>
12054         * plug-ins/python/Makefile.am : patch from Peter Moulder 
12055         <pmoulder@csse.monash.edu.au> to make the python plug-in
12056         compile on *nix too.
12058 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
12060         Patch from Alan <horkana@tcd.ie>:
12062         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
12064 2001-11-20  Hans Breuer  <hans@breuer.org>
12066         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12068 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
12070         * app/diagram_tree.[hc] : Added new functions and types for
12071         sorting diagram and objects, and attaching the popup menus.
12073         * app/preferences.h: Added more diagram tree preferences, using a
12074         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12075         height and width of the diagram tree window and the default sort
12076         orders for diagrams and objects.
12078         * app/preferences.c (prefs_data): Added new entries for the new
12079         diagram tree preferences.
12081         * app/preferences.c (prefs_tabs): New tab for diagram tree
12082         preferences.
12084         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
12085         * app/diagram_tree_window.c (diagram_tree_window_new): 
12086         * app/interface.c (create_tree_window): The diagram tree window is
12087         initialised using the DiagramTreeConfig part of prefs.
12090 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
12092         * app/diagram_tree_menu.[hc]: New files. Functions to create the
12093         diagram tree popup menus.
12095         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12096         the diagram tree popup menus.
12098         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12099         added.
12101 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
12103         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12104         double-clicking a diagram tree node raises the diagram window
12105         to the foreground (and, if a object node was clicked, selects the
12106         object in the diagram).
12108         * app/diagram_tree.c (select_tree_widget): selecting an object
12109         node with single click simply updates it (no raise).
12111 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
12112         These changes make the diagram tree lazy: it is not created unless
12113         the diagram tree window is requested.
12114         
12115         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12116         function for creating the tree window.
12118         * app/interface.c (create_tree_window): call
12119         create_diagram_tree_window() instead of diagram_window().
12121         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
12122         (diagram_tree_update, diagram_tree_update_name) 
12123         (diagram_tree_add_object, diagram_tree_add_objects) 
12124         (diagram_tree_remove_object, diagram_tree_remove_objects) 
12125         (diagram_tree_update_object): accept a NULL tree as a nominal
12126         argument (and do nothing in this case!), so that the diagram tree
12127         is not initialised if not used.
12129         * app/diagram_tree_window.c (diagram_tree): do not create the
12130         diagram tree until diagram_window() or diagtree_show_callback()
12131         are invoked.
12133 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
12134         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12136         * app/diagram_tree_window.[hc] : (new files) implementation of 
12137         the diagram tree window, a container for a diagram tree. [Removed
12138         the horizontal scroll bar glitch by disableing it]
12140         * app/diagram_tree.[hc] : (new files) implementation of the 
12141         diagram tree widget. [Don't rely on the layers GPtrArray to be
12142         NULL terminated, but use its ->len field] 
12144         * app/Makefile.am (dia_core_files): added new files
12145         diagram_tree.[hc] and diagram_tree_window.[hc]
12147         * app/interface.[hc] : (create_tree_window): this function 
12148         creates the new diagram tree window widget
12150         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
12151         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
12152         (ungroup_objects_apply) (ungroup_objects_revert): 
12153         every time that an undoable command modifies a diagram 
12154         adding/removing/(un)grouping objects, a diagram_tree_something() is 
12155         invoked to keep the diagram tree window in sync
12157         * app/properties.c (properties_apply): call to
12158         diagram_object_modified(), which updates the diagram tree window
12159         when the properties of an object are modified
12161         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
12162         (whether the diagram tree window should be shown on dia startup)
12164         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12166         * app/diagram.h (diagram_object_modified): callback notifying of a
12167         diagram object modification
12169         * app/diagram.c (diagram_load_into): added call to
12170         diagram_tree_add() to add newly loaded diagrams to the diagram
12171         tree window
12172         (diagram_destroy): call to diagram_tree_remove() to remove a
12173         destroyed diagram from the diagram tree window
12174         (diagram_add_object): call to diagram_tree_add_object() to add an
12175         object to the diagram tree window
12176         (diagram_add_object_list): as above, but with an object list
12177         (diagram_selected_break_external): deletion of objects from the
12178         diagram is detected here, and diagram_tree_remove_object() is
12179         invoked to remove the object from the diagram tree window (it
12180         would be nice to have a diagram_remove_object() in the Diagram
12181         interface)
12182         (diagram_set_filename): update the diagram tree window when a
12183         diagram's filename changes
12185         * app/commands.c (file_new_callback): added call to
12186         diagram_tree_add() to add newly created diagrams to the diagram
12187         tree window
12189         * app/app_procs.c (app_init): added call to create_tree_window()
12191         * app/makefile.msc : updated
12193 2001-10-28  Hans Breuer  <hans@breuer.org>
12195         * app/preferences.h (DiaPreferences): 
12196         * app/preferences.c (prefs_data): new "show_diagram_tree"
12197         configuration option (whether the diagram tree window should be
12198         shown on dia startup)
12200         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12201         entry (both for GNOME and gtk)
12203         * app/diagram.h (diagram_object_modified): callback notifying of a
12204         diagram object modification
12206         * app/diagram.c (diagram_load_into): added call to
12207         diagram_tree_add() to add newly loaded diagrams to the diagram
12208         tree window
12209         (diagram_destroy): call to diagram_tree_remove() to remove a
12210         destroyed diagram from the diagram tree window
12211         (diagram_add_object): call to diagram_tree_add_object() to add an
12212         object to the diagram tree window
12213         (diagram_add_object_list): as above, but with an object list
12214         (diagram_selected_break_external): deletion of objects from the
12215         diagram is detected here, and diagram_tree_remove_object() is
12216         invoked to remove the object from the diagram tree window (it
12217         would be nice to have a diagram_remove_object() in the Diagram
12218         interface)
12219         (diagram_set_filename): update the diagram tree window when a
12220         diagram's filename changes
12222         * app/commands.c (file_new_callback): added call to
12223         diagram_tree_add() to add newly created diagrams to the diagram
12224         tree window
12226         * app/app_procs.c (app_init): added call to create_tree_window()
12228 2001-10-28  Hans Breuer  <hans@breuer.org>
12230         * plug-ins/python/pydia-property.c : apparently I missed
12231         to commit this last time. Now it has some more SetAttr
12232         support (apply from property)
12234         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12236         * plug-ins/python/pydia-text.[ch] : new files
12238 2001-10-14  Hans Breuer  <hans@breuer.org>
12240         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12241         strings. Use g_strdup() for these.
12243         libxml2 does not produce 'any extra indentation when saving a tree'
12244         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12245         libxml(1). To get human readable XML some extra tweaking is required.
12246         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12247         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12248         * app/preferences.[ch] : initialize 'pretty_formated_xml'
12250         * lib/libdia.def : updated externals
12252         * lib/properties.h : add prototype for prop_list_from_single ()
12254         * plug-ins/makefile.msc : build metapost plug-in
12256         * plug-ins/metapost/render_metapost.c : msvc does not like
12257         switch labels without operation 'default: }'. Added a noop.
12259         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12260         * plug-ins/python/diamodule.c : added PyDiaText 
12261         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12262         Although the python plug-in does not use libxml at all, the
12263         headers are required to use the lib/prop*.h headers
12265         * plug-ins/python/pydia-diagramdata.c : added wrappers for
12266         update_extents and get_sorted_selected (should I duplicate
12267         more functions from PyDiaDiagram or should they be moved?)
12269         * plug-ins/python/pydia-properties.c : allow to set (some) properties
12270         through the dictionary api
12271         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12272         * plug-ins/python/pydia-property.c : implement it (currently only
12273         string properties can be set)
12275         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12276         Quoting myself: 'Still not convinced that this is better than an 
12277          integral property->type and some casting ...
12278          It is trading a straightforward 40 lines switch statement to
12279          this nice 'type safe' function mapping (about 125 lines)'
12280         (But now it works again, better than changing the News file :)
12281         
12282 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
12284         patch from <robert.young@dsto.defence.gov.au>: 
12285         * objects/UML/component.c: remember to set font in UML component
12286         object (fixes #62132)   
12288 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
12290         * plug-ins/metapost/metapost.c: 
12291         * plug-ins/metapost/Makefile.am:
12292         * plug-ins/metapost/render_metapost.c:
12293         * plug-ins/metapost/render_metapost.h:
12294         Metapost renderer from Chris Sperandio
12296 2001-09-14  Hans Breuer  <hans@breuer.org>
12298         * app/render_gdk.c : reflect the fact, that GTK already talks
12299         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12301         * lib/font.c : 
12302         * app/render_libart.c : trying to fix #58045 but it appears
12303         to be an Gdk/win32, too. 
12305         * lib/charconv.c : handle utf8 conversion with the help of
12306         glib-1.3 even in the !HAVE_UNICODE case.
12308         * lib/dia_xml.c : reduce complaing about missing encoding, by
12309         detecting if the default (utf8) would break the file.
12311 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
12313         * lib/charconv.c: (get_local_charset): at least please try to not 
12314         silently change the logic, while avoiding crashes. 
12316         * lib/font.c: (suck_font): put a #error, we have a nasty something
12317         to fix there before we switch to Gtk 2.0.
12318         
12319 2001-09-09  Hans Breuer  <hans@breuer.org>
12321         * **/makefile.mingw : Approach to compile Dia with mingw.
12322         Compiling mostly works but running does not (yet) ... 
12324         * lib/geometry.h : 
12325         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
12326           Apparently mingw needs it too.
12327         - enable 'normalization' of a null verctor. Otherwise the beziergon
12328           bounding box calculation would be broken at least with msvc. What's
12329           the mathematical correct result of 0.0/0.0 ?
12331         * lib/dia_xml.c : isinf() for mingw too.
12333         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
12334         and msvc)
12336         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
12337         Please don't do it.
12339         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12341         * lib/libdia.def : updated externals. Apparently mingw needs
12342         them to produce the right mangling.
12344         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12345         and xmlDiaSaveFile
12347 2001-09-08  Wang Jian  <lark@linux.net.cn>
12349         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12351 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
12353         * lib/dia_xml_libxml.h:
12354         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12355         libxml1's code, to rework the output file before it gets committed
12356         to disk. This is rubbish, and will be removed when libxml2
12357         switches from discouraged to mandatory. 
12358         All in all, this fixes #60152. 
12359         
12360         * lib/charconv.h: 
12361         * lib/charconv.c: (charconv_unichar_to_utf8):
12362         made the type of the input parameter explicitly an unsigned long.
12364         * configure.in: Added a check for libz (we must now include it
12365         explicitly, for xmlDiaSaveFile).
12366         
12367         * app/load_save.c: (diagram_data_save):
12368         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12369         (dia_pluginrc_write):
12370         * plug-ins/shape/shape-export.c: (new_shape_renderer),
12371         (end_render), (draw_string):
12372         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12373         (draw_string):
12375         Made sure we always write UTF-8 XML files, and through
12376         xmlDiaSaveFile().
12378         * NEWS: documented that fact.
12379         
12380 2001-09-07  James Henstridge  <james@daa.com.au>
12382         * configure.in (found_libxml): refactor the check for libxml a
12383         little so that it handles finding both libxml1 and 2 better.
12385 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
12387         * app/app_procs.c: removed a spurious } which caused a compilation
12388         error in the (!HAVE_GNOME && HAVE_POPT_H) case
12390         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12391         don't know what ANSI X3.4-1968 is. I didn't know until this day,
12392         but it's just plain old ASCII. Added a check to shield the poor
12393         XML library.
12395         Patches from <robert.young@dsto.defence.gov.au>:
12397         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12398         width and height of text before calculating bounds. Fixes #59928
12400         * app/preferences.c: Moved grid related items into Grid Tab.
12401         
12402 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
12404         * app/interface.c: (create_zoom_widget): connected one more signal
12405         to the Zoom selector combo's list. Fixes #59879.
12407         * app/app_procs.[ch]: (app_init) (do_convert)
12408         (build_output_file_name): brought back into the main executable
12409         the rare useful bits of the ill-fated diaconv. This means we have
12410         one new feature : --export-to-format (-t), which should make
12411         writing conversion scripts easier, and a crude implementation of
12412         -t and -e for the poptless argument parsing, which means the Win32
12413         port should be able to take advantage of it (that should make
12414         resolving #58197 possible).
12416         * app/diaconv.c: kept the poor duck compiling (but that's about
12417         it).
12419         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12420         I've got it right).
12422         * NEWS: updated about the new feature above, and documented the 
12423         "missing encoding specification" complaint. 
12424         
12425 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
12427         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12429 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
12431         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12432         care of #59837.
12434 2001-09-01  James Henstridge  <james@daa.com.au>
12436         * */Makefile.am: various changes to include missing files, and fix
12437         sheets dir to handle building with builddir != srcdir.
12439         * autogen.sh: unconditionally pass the --enable-maintainer-mode
12440         and --enable-db2html flags so that builds from CVS work correctly.
12442         * configure.in: increment version number.  Also add an
12443         --enable-db2html flag.  Without the flag, db2html won't be run (if
12444         the flag is passed and db2html is not present, do nothing).
12446 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
12448         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12449         even compiled. It's really too bad there is no lint tool easily
12450         available (or a more cautious, pedandic, paranoid and verbose
12451         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12453 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12455         * app/load_save.c:
12456         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12457         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12459         * app/menu.c: added ellipsis(...) to diagram properties menu item.
12460         * app/dia-props.c: diagram properties dialog contents did not
12461         represent current diagram settings.
12462         * app/dia-props.[ch]:
12463         * app/display.c: diagram properties contents now follows currently
12464         selected diagram.
12465         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12467         * AUTHORS: added Robert Young.
12468         
12469 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12471         * app/modify_tool.c: (modify_button_release): Patch from
12472         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12473         #59090: if selection dragging was released outside of the window, 
12474         artifacts of the selection box remained.
12476 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
12478         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12480 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
12482         * configure.in:
12483         * sheets/Makefile.am: prepared the terrain for the Version of
12484         xml-i18n-tools Which Comes After 0.9 (and which will feature at
12485         last a sane behaviour with XML files). Some reasonible delay
12486         before enforcing that version *will* be given.
12488         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12489         
12490         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12491         becomes a nonexistent symbol.
12492         
12493 2001-08-18  Hans Breuer  <hans@breuer.org>
12495         * app/app_procs.c : made it compile without ENABLE_NLS
12497         * app/diap_callbacks.c : strcmp isn't guaranteed to work
12498         with NULL pointers
12500         * app/load_save.c :
12501         * lib/plug-ins.c : 
12502         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
12503         It has to be :
12504                 xmlGetProp, ... -> xmlFree
12505                 malloc, strdup -> free
12506                 g_new, g_malloc, g_strdup - > g_free
12508         * app/win32print.c : some more error checking, still not
12509         working on Win9x
12511         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12513         * lib/dia_xml.c : msvc still has no unistd.h
12515         * lib/dia_xml.c :
12516         * lib/sheets.c : temporary resolved libxml include brokeness
12518         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12519         changes. Compiles again, but doesn't do anything useful anymore.
12520         (see THE_PROP_TYPE_IS_INTEGRAL)
12522         * **/makefile.msc : updated to use LIBXML2
12524         * lib/libdia.def : reflect api changes
12526 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
12528         * config.h.win32: added defines telling that gtk speaks UTF8.
12529         Hans, I believe this reflects what GTK on Win32 does.
12531         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12532         strings.        
12533         * lib/prop_inttypes.c: 
12534         * lib/prop_text.c:
12535         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12536         code path.
12537         
12538         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12539         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12540         search for plug-ins is done.
12541         * app/Makefile.am: made app/run_dia.sh use the // capability. No
12542         need to update this anymore if we get a new plug-in library (or
12543         remove one).
12545         * lib/dia_xml.c: #include <unistd.h> was missing.
12546         
12547         * lib/properties.h: 
12548         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12549         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12550         support.        
12552 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
12554         * sheets/civil.sheet: removed duplicate "Danish" entries.
12556         * autogen.sh:
12557         * configure.in: 
12558         * .cvsignore:
12559         * sheets/Makefile.am: 
12560         * po/POTFILES.in:
12561         * Makefile.am: applied the xml-i18n-tools README's instructions.
12563         * po/(da de fr hu nl nn no sl).po: merged the translations from
12564         the sheet files into the .po files. I hope I haven't mixed
12565         languages...
12566         * sheets/*.sheet (REMOVED):
12567         * sheets/*.sheet.in (NEW): moved the sheet files sans
12568         translations into .sheet.in files. 
12569         
12570         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12571         because we don't yet want to force all translators to work using
12572         UTF-8 editors. We'll want to do that sometime (sooner rather than
12573         later). Okay, I sing a slightly different tune in po/ChangeLog...
12575         * dia.desktop (REMOVED):
12576         * dia.desktop.in (NEW): used also the x18t infrastructure for
12577         this too.
12579         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12580         "official" version of x18t with support for .sheet files is available.
12581         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12582         "official" version of x18t which doesn't corrupt UTF-8 data in XML
12583         is available.
12584         
12585         ** yes, we are now using xml-i18n-tools to manage the sheet
12586         translations. For the Win32 build, Nemo stores snapshots of
12587         translated strings next to the CVS snapshots. **
12589         * sheets/checktrans.py: suddenly, some sheets have lots of
12590         translations (objects which existed before sheets, mostly).
12591         Adapted the formatting.
12593         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12595         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12596         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12597         <robert.young@dsto.defence.gov.au>, to fix #59090.
12599         * app/display.c: (ddisplay_scroll): While at it, added some
12600         margin, so that autoscrolling can happen within a margin outside
12601         the diagram's extents.
12603         * app/tool.[ch]: 
12604         * app/interface.c:
12605         * app/disp_callbacks.c: Robert "forced" me to go when I usually
12606         don't, namely the app/ directory. So while I was there, I
12607         scratched a long-time itch. If no object has focus, pressing the
12608         space bar will select back the tool which was selected before the 
12609         current one (I find this especially useful with "reset after create" !)
12610         
12611         * lib/proplist.c: (prop_list_from_single): Renamed
12612         prop_list_singleton() to avoid confusion with the Singleton
12613         pattern (which it definitely is not).
12614         
12615         * lib/propobject.c: (object_prop_by_name_type),
12616         (object_prop_by_name): The "flags" parameter was not necessary.
12617         These don't return synthetic properties, but properties built from
12618         a real property description list; therefore, we don't call
12619         make_new_prop() but use the existing property descriptor, which
12620         has perfectly valid (and meaningful) flags.
12622         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12623         new predicates better reflect the reason why properties exist when
12624         they're created by make_new_prop() or object_prop_by_name().    
12626         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12627         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12628         of pdtpp_true().
12630         * lib/properties.h: reflects all the above changes.
12632         * objects/SADT/arrow.c:
12633         * objects/SADT/annotation.c:
12634         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12635         IDEF0 terminology.
12636         
12637 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
12639         * lib/properties.h:
12640         * lib/proplist.c: (prop_list_singleton):
12641         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12642         Added these, to simplify interactions of plug-ins with the StdProp
12643         core.
12645         * lib/Makefile.am:
12646         * lib/dia_xml.h:
12647         * lib/dia_xml_libxml.h (NEW): 
12648         * app/load_save.c:
12649         * lib/dia_xml.c:
12650         * lib/plug-ins.c:
12651         * lib/sheet.c:
12652         * objects/custom/shape_info.c: A few prototypes were causing
12653         #include hell, because we generally attempt to not pull the whole
12654         libxml header set when we include dia_xml.h. Moved those
12655         prototypes away for the rare cases they're necessary.
12656         
12657 2001-08-15  Hans Breuer  <hans@breuer.org>
12659         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12661         * lib/libdia.def : 
12662         * lib/makefile.msc : updated
12664         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12665         use G_GNUC_FUNCTION instead.
12667         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12669         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12670         msvc instead of cleaning missing includes
12672         * plug-ins/wmf/wmf.cpp :
12673         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12675 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12677         * app/app_procs.c:
12678         * app/load_save.c:
12679         * lib/dia_xml.c:
12680         * lib/plug-ins.c:
12681         * lib/sheet.c:
12682         * objects/custom/shape_info.c:
12683         * plug-ins/shape/shape-export.c:
12684         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12685         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12686         removed xmlKeepBlanksDefault(0) in favour for proper
12687         xmlIsBlankNode() testing. Lots of other fixups to use the
12688         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12689         make libxml1 output correct files.
12691         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12692         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12693         packages). If both devel packages are found, the build will stop 
12694         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
12696         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12697         allocate the first handle :-)
12698         
12699         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12700         a cast and a sizeof.</gratuitous>
12702         * objects/custom/custom_object.c: (custom_copy): don't call
12703         text_get_attrbutes if the shape has no text...
12704         (custom_update_data): The info->resize_with_text code was a bit
12705         directive; basically, the shape's bounding box was forced to be 
12706         proportional to the text's bounding box.... This fixes #57187.
12707         
12708         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
12709         default for info->aspect_ratio; unobfuscated a line about
12710         info->resize_with_text;
12711         
12712 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12714         * lib/properties.h: added comments next to the PROP_TYPEs to tell
12715         which C Property subclass to use.
12716         
12717         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
12718         cast-ridden form of setting properties in a list, in favour for
12719         the "local pointers" form. I'll take any better offer...
12721 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
12722         
12723         * lib/font.c: fprintf(...) --> fprintf(format...)
12725         * configure.in: added a disabled versioned test for glib.
12726         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
12727         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
12728         g_critical() with a simple g_error(). Proper fix is to implement
12729         that stuff. 
12731         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
12732         PROP_TYPE_STRING.
12733         
12734         * lib/properties.h:     
12735         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
12736         * lib/proplist.c: (find_prop_by_name_and_type):
12737         * lib/prop_basic.c: (make_new_prop), (initialize_property):
12738         * lib/propoffsets.c: (do_set_props_from_offsets),
12739         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
12740         Added a type_quark member to PropDescription, Property and
12741         PropOffset. Used it to implement a safety in
12742         do_[sg]et_props_from_offsets().
12743                 
12744         * objects/flowchart/diamond.c: the diamond's text was not saved,
12745         and thus not even copied (c&p).
12746         * objects/standard/textobj.c: ditto.
12748         Most of the above changes thanks to Robert Young's testing. Thanks !
12749         
12750 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
12752         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
12753         and bokmÃ¥l).
12754         
12755 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12757         * lib/proplist.c (prop_list_from_descs): added a call to
12758         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
12759         too embarrassing to tell.
12760         
12761         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
12762         while loop to a for loop, for symmetry with
12763         prop_offset_list_calculate_quarks().
12765         * lib/geometry.h: new inline function, rectangle_equals.
12767         * lib/diagramdata.[ch]: refactored a bit the diagram extents
12768         computation logic, and changed it to always be the union of the
12769         visible layers' extents. This should close #58882 (Debian
12770         #107167), and fixes #55498.
12772         * app/display.c: made the initial visible box more coherent with
12773         the diagram being loaded's extents.
12775         * app/prop_attr.c: don't set the font (from offset) if font_data
12776         is NULL. Two brainos in colorprop_load() and fontprop_load().
12777         
12778 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12780         * lib/properties.[ch]: split in a lot of pieces: 
12782         * lib/prop_*.[ch] (NEW): all property types are now first-class
12783         objects, inheriting from the original abstract Property type.
12784         * lib/propdesc.c (NEW): property description handling routines
12785         * lib/propoffsets.c (NEW): property offset handling routines
12786         * lib/proplist.c (NEW): property list handling routines
12787         * lib/propobject.c (NEW): property list <-> object routines
12788         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
12789         relations.
12790         * lib/propinternals.h: prototypes for stuff not usually needed by 
12791         the outside of StdProps.
12792         * lib/Makefile.am: a lot of new files have been added...
12794         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
12795         BOTH INTERFACES AND RUN-TIME STABILITY.
12797         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
12798         
12799         * lib/object.h: removed the incestuous relationship with
12800         properties.h' contents. Now a Property list is a GPtrArray -->
12801         object interface change !
12803         * app/app_procs.c/app_init(): removed a disabled call to a
12804         non-existent routine. Added a call to stdprops_init().
12805         
12806         * objects/Makefile.am: disabled the construction of EML. I'm not
12807         touching these until a certain issue is solved (or this module
12808         removed).
12809         * app/group.c:  
12810         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
12811         objects to the interface changes.
12812         
12813         * app/disp_callbacks.c: killed a warning.
12814         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
12816         * app/commands.c: 
12817         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
12818         interface.
12820         * plug-ins/dxf/dxf-import.c: 
12821         * plug-ins/xfig/xfig-import.c: 
12822         PROP_VALUE_* macros have been removed. Converted to the new API.
12824         * plug-ins/python/**/*: I gave up converting this; I can't
12825         compile --with-python (problems with object.h defined both by us
12826         and by Python). I'll gladly help whomever cares to fix it !
12827         (or, fix it myself if someone tells me how to compile it).
12828         
12829         * configure.in: added the UNICODE-related progress defines.
12830                 
12831         * configure.in:
12832         * lib/geometry.h: On Solaris and perhaps other systems, finite()
12833         is defined in ieeefp.h rather than in math.h. Patch from Andrew
12834         Halper <ashalper@acm.org> with further modifications, isinf() is
12835         provided by -lsunmath (sunmath.h).
12836         
12837         * lib/font.c: conditionally disabled Lars' debugging messages.
12838         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
12839         
12840 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
12842         * lib/bezier_conn.h: 
12843         * objects/standard/bezier.c (bezierline_create): 
12844         * lib/bezier_conn.c (bezierconn_init): 
12845         Preparations for use of userdata for bezier lines.
12846         
12847         * objects/standard/polygon.c: 
12848         * objects/standard/create.h:
12849         * lib/polyshape.c:
12850         * lib/polyshape.h:
12851         * plug-ins/xfig/xfig-import.c:
12852         Use of user_data for polygon as well, including adding
12853         polyshape_set_points.  Include file for non-interactive 
12854         creation of standard objects, objects/standard/create.h
12856 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
12858         * app/render_gdk.c: 
12859         * app/render_gdk.h: 
12860         * lib/font.c:
12861         * lib/font.h:
12862         * lib/widgets.c:
12863         More preliminary freetype support.  Not at all functional, crashes
12864         when rendering.
12866         * lib/poly_conn.h: 
12867         * lib/poly_conn.c: 
12868         * objects/standard/polyline.c: 
12869         Support for creating polyline objects with more than two points.
12870         This includes an extra function and a prototype change in the
12871         poly_conn lib object.
12873         * lib/object.c (object_copy): Fixed memory leak of handles and
12874         connections.
12876 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
12878         * dia.desktop: added traditional Chinese strings
12880 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
12882         * NEWS: updated to reflect build-time dependencies.
12884         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
12885         around obj->ops->describe_props(obj). Quarks are none of an
12886         object's business in the general case... 
12887         * lib/text.c: Added an apply_textattr_properties() function to
12888         factor out some common code related to applying a dialog's text
12889         attribute properties to a (Text *) which wasn't edited there. 
12890         Ditto for textstr, for the string part of an objet.
12892         * objects/GRAFCET/action.c:
12893         * objects/SADT/annotation.c:
12894         * objects/SADT/box.c: used apply_textattr_properties().
12895         
12896         * objects/UML/actor.c: 
12897         * objects/UML/branch.c:
12898         * objects/UML/component.c:
12899         * objects/UML/constraint.c:
12900         * objects/UML/small_package.c:
12901         * objects/UML/state.c:
12902         * objects/UML/usecase.c:
12903         * objects/UML/large_package.c:
12904         * objects/UML/note.c:
12905         * objects/UML/node.c:
12906         * objects/UML/message.c:
12907         * objects/UML/classicon.c:
12908         * objects/UML/object.c:
12909         * objects/UML/realizes.c:
12910         * objects/UML/dependency.c:
12911         * objects/UML/implements.c:
12912         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
12913         (most objects were already using StdProps to some extent ; this
12914         systematises usage and removes some dead wood). 
12915         
12916         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
12917         * objects/UML/uml.[ch]: audited for UTF-8.
12919         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
12920         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
12921         private (ISO-8859-1) definition.
12922         
12923         * lib/charconv.c: Added a warning if we didn't run
12924         nl_langinfo(CODESET) but rely instead on a hardcoded default.
12925         
12926 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
12928         * lib/diamenu.h:
12929         * app/disp_callbacks.c: added a way for an object to cause an
12930         already realised menu to be destroyed (for instance if it changes
12931         too much).
12933         * objects/custom/custom_object.c: used the above to fix #55073.
12935 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
12937         * configure.in: Remove 2.50 prereq.
12939 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
12941         * po-checktrans.py: under some circumstances, there was one column 
12942         more than what was supposed to be, thus breaking the formatting.
12943         
12944 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
12945         
12946         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
12948         * NEWS: updated with new stuff since 0.88
12950         * shapes/network/antenna.shape: the text was misplaced ; fixed.
12952         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
12953         firewall router (upon request from Cyril Lacoux
12954         <clacoux@easter-eggs.com>)
12956         * configure.in (didn't rename to configure.ac): autoconf 2.50
12957         constructs were used ; added an AC_PREREQ call to guard against
12958         older autoconfs.
12959         
12960 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
12962         * lib/properties.c: minor clean-ups with the event delivery code.
12964         * EML/instantiation.c: brought this object back from stone and ice
12965         age.    
12967         * app/diaconv.c(NEW): added a command-line conversion tool. Still
12968         lacks a man page and correctness. In fact, it doesn't work. Please
12969         see #58196 if you want to finish it.
12970         
12971         * lib/message.[ch]: redefined things a little so that a different
12972         message_internal routine could be passed.
12973         applications can use that to fit themselves to the display model.
12975 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
12977         * objects/SADT/box.c: 
12978         * objects/GRAFCET/action.c: spelling in property descriptors (name
12979         field...)
12980         * objects/SADT/annotation.c: ditto, plus a temporary test of the
12981         event delivery code (try to click on the "click me !" button !).
12983         * app/group.c: 
12984         * lib/properties.[ch]: improved (fixed) support for group event 
12985         handlers. Fixed various things from yesterday's code to make it
12986         not too obviously crash.
12988 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
12990         * app/group.c: added delivery of events to the first member of the
12991         group which is able to process it.
12993         * lib/properties.c(prop_desc_lists_intersection): properties
12994         don't match if they don't have identical event handler.
12995         * lib/properties.h: simplified the PropEventHandler signature.
12997         Event delivery code is still untested so far, but should be
12998         lurking harmless.
12999         
13000 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
13002         * lib/properties.[ch]: Added (untested !) property event handler
13003         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
13004         generating such events. This stuff compiles, and should lurk
13005         around silently as long as you don't declare property descriptors
13006         with events (AFAICT).
13007         In object_create_props_dialog() and friends:
13008         attached a single structure with lots of data instead of lots of
13009         little attachments of data to the dialog widget.
13010         
13011         * lib/object.h: fixed mild typedef breakage introduced by the above.
13013 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
13015         * lots of files: Changed Font to DiaFont
13016         * */Makefile.am: Added FREETYPE_LIBS
13017         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
13019 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
13021         * configure.in: Added "nn" to ALL_LINGUAS.
13022         
13023 2001-07-09  Alex Larsson  <alexl@redhat.com>
13025         * app/disp_callbacks.c:
13026         Add gdk_im_ready() calls to XIM code.
13028 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
13030         * lib/properties.[ch]: splitted prop_get_widget() into
13031         prop_get_widget() (gives a widget but doesn't fill it) and 
13032         prop_reset_widget() (fills an existing widget with a property's value).
13034         * lib/widgets.[ch]: const enforcement police work.
13036         * shapes/network/antenna.shape: added a connection point at top,
13037         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
13038         
13039 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
13041         * intl/*: tested with gettext-0.10.38
13042         * configure.in: moved a macro call around (AM_PROG_CC) to keep
13043         some of autogen.sh from complaining.
13044         * INSTALL: added a warning against gettext older than at least 0.10.36
13045         
13046 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
13048         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
13049         AM_ICONV (both provided by gettext)
13051 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
13053         * lib/charconv.c: corrected the degraded mode for when
13054         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
13056         * objects/chronoline/chronoline_events.c: UTF8 compliance.
13057         
13058 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
13060         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
13061         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
13062         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
13063         into a frame box.
13065         * objects/chronogram/chronoline.c:
13066         * objects/chronogram/chronoref.c: took advantage of the above to
13067         make nicer looking dialogs.
13069         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13070         from libunicode's internals).
13071         * lib/message.c: convert strings to local encoding prior to
13072         display (UNICODE_WORK_IN_PROGRESS)
13073         * lib/properties.[ch]: convert strings to local encoding prior to
13074         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13075         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13076         * lib/stringprerenderer.[ch]: ditto
13078         (lib/text.c has been audited for UTF8, but the size of the changes
13079         make them inappropriate for commit before 0.89)
13080         
13081 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13083         * objects/boolequation.h (<save|load>_boolequation): made the 
13084         prototypes for match the .c file.
13085         
13086         * samples/grafcet.dia: minor non-conformance with IEC-848
13087         fixed (in the transition from step 100 to step 101).
13089         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13090         disallow editing of properties if the object is part of a group.
13092         * objects/chronogram/chronoline.c: 
13093         * objects/SADT/annotation.c:
13094         * objects/SADT/box.c:
13095         * objects/GRAFCET/step.c:
13096         * objects/GRAFCET/transition.c:
13097         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13098         
13099 2001-06-12  Hans Breuer  <hans@breuer.org>
13101         * lib/libdia.def : removed lazyprop exports
13102         * lib/makefile.msc : removed lazyprop.obj
13104         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13105         and avoid crashes by always creating a custom->text,
13106         when (custom->info->has_text) 
13108         * objects/makefile.msc : removed sybase from build
13110         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13111         ObjectNode is a pointer already, which is what we want
13112         instead of a pointer pointer.
13114         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13115         and implemented working export for images
13117         * shapes/network/zip-disk.shape : added connection points 
13119 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13121         * objects/SADT/box.c: removed lazyprops for standard props.
13122         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13123         * objects/chronograms/chronoref.c: ditto 
13125         * lib/Makefile.am:
13126         * lib/dummy_dep.h:
13127         * lib/connpoint_line.c:
13128         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13129         * lib/properties.[ch]: new property types:
13130             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13131             - PROP_TYPE_MULTISTRING: same as string, but renders as a
13132             multi-line entry box.
13133             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13134             in a tabbed-notebook style (this is a bit complicated to use; 
13135             see objects/chronograms/chronoline.c for an example).
13136                
13137 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
13139         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13140         * objects/GRAFCET/step.c: ditto.
13141         * objects/GRAFCET/vector.c: ditto.
13142         * objects/SADT/annotation.c: ditto.
13143         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13144         
13145         * lib/properties.[ch]: two more non-visible types
13146         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13148         * lib/neworthconn.[ch]:
13149         * lib/orthconn.[ch]: added support for manipulation through
13150         standard properties.
13152         * configure.in: removed -fomit-frame-pointer, this seems to
13153         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
13154         bugzilla.
13156         * charconv.[ch]: more functions from unicode.h.
13157         get_local_charset() wasn't working properly, fixed now.
13158         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
13159         ElectricFence !)
13160         
13161         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13162         * lib/lazyprops.[ch]: put a big fat warning in.
13164         * app/render_eps.c: one line mysteriously went away, causing a
13165         variable to be used uninitialised....
13167 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
13169         * app/app_procs.c: commented out the call to
13170         bind_textdomain_codeset(): it's premature.
13171         
13172         * lib/connpoint_line.c: a NULL point can be given to
13173         connpointline_adjust_count(), in case there's not really a clicked
13174         point.
13176         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13177         #include order troubles. #included by lib/text.h, so there is no 
13178         impact outside lib/.
13179         * lib/properties.[ch]: added support for CONNPOINT_LINE and
13180         (nonvisible) TEXT properties.
13182         * objects/GRAFCET/action.c:
13183         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13184         properties.
13185         
13186         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13187         standard properties code). Grafted a dynamic number of connection
13188         points (heavily inspired from what Vergent does). This is the real
13189         fix for #55863.
13191         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13193         * lib/fonts.c: some hardening (mostly g_assert())
13194 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
13196         * app/app_procs.c (app_init): added a call to
13197         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13198         (UNICODE_WORK_IN_PROGRESS).
13199         
13200 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
13202         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13204         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
13205         (fixes #55863) : some clean-ups in the handling of connection
13206         points. Now the total number of connection points is just a
13207         #define (the proper solution is to retrofit the GRAFCET Vergent's
13208         dynamic behaviour wrt connection points).
13209         
13210 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
13212         * app/app_procs.c (app_init): added a call to unicode_init() (only
13213         if HAVE_UNICODE, of course).
13215         * lib/charconv.c: simplified the code which detects the local
13216         charset. No need to use <langinfo.h>, libunicode already takes the
13217         burden of figuring that out. Also, if local charset is utf8, no
13218         conversion will take place.
13219         Exposed a way to get the current charset (similar to
13220         unicode_get_charset() but actually working, hopefully).
13222         * lib/charconv.h: Added a partial non-UTF8 implementation of
13223         unicode.h if !HAVE_UNICODE (actually, all the time for the
13224         moment). The UTF8 implementation is just macros on libunicode (use
13225         the functions prefixed by uni_, as defined by charconv.h, not
13226         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13227         From now on, all strings which don't *need* to be ASCII should be
13228         utfchar *, not gchar *. Just include charconv.h, let it sort out
13229         the details (such as: "is libunicode available and enabled?") 
13231         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13232         "API" instead of directly libunicode. Removed the now unnecessary
13233         speculative clustering of characters in encoding pages.
13235         * app/render_eps.c: made the local8->utf8 conversions dependent of
13236         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13237         boundary will be when this WIP is done).
13239         * lib/dia_xml.c (data_point): fixed a format string typo.
13241         * po/POTFILES.in: added all C files from lib/ 
13242         
13243 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
13245         * app/disp_callbacks.c: make sure the objects' connected objects
13246         are updated when the objects' size changes after a keypress event
13247         (fixes #51222)
13249         * configure.in: added a big warning about the possible future
13250         non-optionality of --enable-unicode. 
13252         * TODO: removed entries which look like done ; added a few ones
13253         (Bugzilla "enhancement" bugs may be a better way to keep track of
13254         this)
13255         
13256 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
13258         * objects/UML/message.c: got rid of #55564 and of message_copy()
13259         by using more standard properties (are the message_state_*()
13260         functions still necessary ?)
13262 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
13264         * lib/plug-ins.c: 
13265         * objecs/custom/shape_info.c:
13266         * plug-ins/shape/shape-export.c:
13267         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13268         use xmlChar instead of obsolete CHAR.
13270 2001-06-03  Hans Breuer  <hans@breuer.org>
13272         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13273         * app/commands.c : give the right number of parameters
13274         to diagram_update_menu_sensitivity ()
13276         * app/preferences.c : do proper initialization for DiaPrefsData:
13277         render_bounding_boxes. It would be a real surprise if 'hidden'
13278         properties would have ever worked before.
13279         Don't try to access the widgets of hidden property, it does not
13280         have one.
13282         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13283         it is defined in libdia, but initialized from dia app, which 
13284         otherwise gave nice start-up crashes.
13286         * lib/diagramdata.c : initialize the color for rendering bounding 
13287         boxes in the Dia range (0 .. 1.0)
13289         * lib/libdia.def : added *_bbox functions for export
13291         * lib/makefile.msc : added new sources
13293         * objects/custom/custom_object.c : use HAVE_UNISTD_H
13295 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
13297         * app/interface.c:
13298         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13299         removes a translation of menus (in a place where there shouldn't
13300         have been), which gets rid of a waterfall of warnings if LANG!=C,
13301         and a fix to #55047.
13303 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
13305         * lib/charconv.c : added #include <errno.h>
13307         * app/dia_embedd.c : updated menus_get_item_from_path usage
13308         
13309 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
13311         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13312         Added a special case for Symbol strings, so that they're not
13313         re-encoded using the LN encoding (we use the bare Adobe encoding
13314         instead).
13316         * objects/custom/custom_object.c: Now that #52912 is fixed,
13317         I could remove the ugly hack I wrote to squash the shape bounding box
13318         problem shown by Ben A. Hetland a few months ago, and fix it
13319         properly this time.
13320         
13321         * lib/text.c: enlarged a little the bounding box to account for
13322         the cursor in rightmost position.
13323         
13324         * lib/diagramdata.c: draw bounding boxes only if the relevant
13325         variable is set (as before), but also only if the rendere is
13326         interactive (ie, don't bother rendering bounding boxes on 
13327         Postscript...)
13328         Made the bounding box's line width a fixed value, 0.01
13329         
13330         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13331         and assymmetric control beziers. Implemented ellipse_bbox().
13332         
13333         * Makefile.am: incantations to get po/dia.pot build, as suggested
13334         by Hubert in #55075.
13335         
13336         * shapes/network/computer.shape: typo fixed.
13337         * shapes/network/antenna.shape: fixed #55074 (antenna is now
13338         properly translucent, except for its base where it makes sense. It
13339         doesn't look that ugly anymore if transparent mode is on).
13341         * configure.in: --enable-unicode is now the default. This
13342         still currently affects only printing.
13343         
13344 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13346         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
13347         The overshoot code is buggy, and the bounding boxes for polyshapes
13348         looks a bit cheezy. To be done ASAP.
13350 2001-05-26  James Henstridge  <james@daa.com.au>
13352         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13353         This should clear up some of the build problems people have been
13354         having.
13356         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13358 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13360         * lib/Makefile.am:
13361         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13362         box code (beginning with lines, polylines and polybeziers), into a
13363         more generic facility. While at it, a better shot at correctly
13364         computing the bounding box of a Bezieroid (should take care of
13365         #53424, #51233 and of course is part 1 of #52912).
13367         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13368         into a hidden preference (set render_bounding_boxes in diarc).
13369         * app/preferences.[ch]: Added support for hidden preferences.
13371         * lib/geometry.[ch]: sprinkled with "const" modifiers.
13372         
13373         * lib/bezier_conn.[ch]:
13374         * lib/beziershape.[ch]:
13375         * lib/connection.[ch]:
13376         * lib/element.[ch]:
13377         * lib/poly_conn.[ch]:
13378         * lib/orth_conn.[ch]:
13379         * lib/neworth_conn.[ch]:
13380         * lib/polyshape.[ch]: adapted to take advantage of
13381         boundingbox.[ch] instead of relying on private (duplicate) code.
13383         * object/FS/flow.c:
13384         * object/GRAFCET/action.c:
13385         * objects/GRAFCET/condition.c:
13386         * objects/GRAFCET/vergent.c:
13387         * objects/GRAFCET/vector.c:
13388         * objects/SADT/annotation.c:
13389         * objects/SADT/arrow.c:
13390         * objects/ER/participation.c:
13391         * objects/UML/constraint.c:
13392         * objects/UML/implements.c:
13393         * objects/UML/lifeline.c:
13394         * objects/UML/message.c:
13395         * objects/UML/realizes.c:
13396         * objects/UML/generalization.c:
13397         * objects/UML/association.c:
13398         * objects/UML/dependency.c:
13399         * objects/FS/flow-ortho.c:
13400         * objects/network/bus.c:
13401         * objects/standard/arc.c:
13402         * objects/standard/bezier.c:
13403         * objects/standard/beziergon.c:
13404         * objects/standard/line.c:
13405         * objects/standard/polygon.c:
13406         * objects/standard/zigzagline.c:
13407         
13408         * objects/standard/polyline.c: Some *BBExtras structures changed
13409         names while moving to boundingbox.[ch]. A trivial mass-renaming.
13410         
13411 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
13413         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13414         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13416         * app/display.c (ddisplay_update_scrollbars): from Patrick's
13417         suggestion, remove the extra scrollable area (it was only visible
13418         to the scrollbars). This is experimental.
13419         
13420         * objects/custom/custom_object.c: If a shape's icon file doesn't 
13421         exist, warn and substitute a default icon, instead of crashing.
13422         (fixes #52913)
13423         
13424         * objects/network/network.c:
13425         * shapes/network/modularswitch.(shape|xpm) (NEW):
13426         * shapes/network/printer.(shape|xpm) (NEW):
13427         * shapes/network/genmonitor.(shape|xpm) (NEW):
13428         * shapes/network/computer.(shape|xpm) (NEW):
13429         * shapes/network/Makefile.am: four less objects, four more shapes.
13430         These were the last known RenderObjects. (phew !)
13432         * lib/Makefile.am:
13433         * lib/dummy_dep.h:
13434         * objects/sybase/Makefile.am: 
13435         * objects/network/Makefile.am: Removed the older Renderobjects
13436         from the build, and their infrastructure (not yet deleted,
13437         though).
13439         * shapes/network/sceadplug.shape:
13440         * shapes/network/antenna.shape:
13441         * shapes/network/modem.shape:
13442         * shapes/network/hub.shape:
13443         * shapes/network/rj45plug.shape:
13444         * shapes/sybase/client.shape:
13445         * shapes/sybase/dataserver.shape:
13446         * shapes/sybase/ltm.shape:
13447         * shapes/sybase/repserver.shape:
13448         * shapes/sybase/rsm.shape:
13449         * shapes/sybase/stableq.shape: Minor corrections (line widths were
13450         ten times too narrow).
13451         
13452 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
13454         * objects/network/network.c:
13455         * shapes/network/sceadplug.(shape|xpm) (NEW):
13456         * shapes/network/antenna.(shape|xpm) (NEW):
13457         * shapes/network/modem.(shape|xpm) (NEW):
13458         * shapes/network/Makefile.am: four less objects, four more shapes.
13459         
13460         * lib/Makefile.am:
13461         * lib/diagramdata.c:
13462         * lib/render.h:
13463         * lib/string_prerenderer.[ch] (NEW):
13464         Add a new renderer primitive, predraw_string() (does nothing, to be
13465         used as a hook to optimise the character encodings if needed). 
13466         Added a string pre-renderer, which can be viewed as a filter
13467         renderer (to route draw_string() to predraw_string() and ignore
13468         the rest, in a first rendering pass)
13469         
13470         * app/render_eps.c: Took advantage of the above to make wholly
13471         optimised Postscript encoding page(s), even (especially) with 
13472         non-latin1 code (HAVE_UNICODE must be true).
13474         (#53512 in fact is wholly resolved).
13475         
13476 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
13478         * lib/charconv.c: steps towards resolution of #53512 (inspired by
13479         Alexey Novodvorsky <aen@logic.ru>'s patch).
13481         * app/menus.c (dia_menu_signal_proxy): checked that the signal
13482         handler is not NULL before transferring control to it... (fixes #52836)
13484         * app/app_procs.c (app_init): removed non-constant initialiser
13485         (fixes #52950)
13487         * objects/custom/custom_object.c:
13488         * objects/custom/shape_info.[ch]:
13489         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
13490         <skh@mathstar.com>. This add support for a <svg:text> shape
13491         element, and some related style properties (font, font height, 
13492         alignment)
13494         * doc/custom_shapes: a precision about the meaning of case in a
13495         SVG path (closes #52364)
13497         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13498         fixed by <drk@sgi.com>)
13499         
13500 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
13502         * objects/network/network.c:
13503         * shapes/network/Makefile.am:
13504         * shapes/network/hub.(shape|xpm) (NEW):
13505         * shapes/network/flash.(shape|xpm) (NEW):
13506         * shapes/network/rj45plug.(shape|xpm) (NEW):
13507         More shapes, less renderobjects.
13509 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
13510         
13511         * plug-ins/svg/render_svg.c: typo made exported ellipses
13512         corrupted (zero Y pseudo-radius).
13514         * objects/network/network.c:
13515         * objects/network/disc.c:
13516         * shapes/network/disc.(shape|xpm): Converted the first
13517         Renderobject into a shape. Normally, old diagrams should reload
13518         without problems (please check this against your diagrams). More
13519         flexibility should be gained that way. I intend to hunt and
13520         eradicate all renderobjects as I can commit cycles to that. 
13522         * objects/Makefile.am:
13523         * configure.in:
13524         * app/Makefile.am:
13525         * objects/sybase/sybase.c:
13526         * shapes/sybase/Makefile.am(NEW):
13527         * shapes/sybase/client.(xpm|shape) (NEW):
13528         * shapes/sybase/dataserver.(xpm|shape) (NEW):
13529         * shapes/sybase/ltm.(xpm|shape) (NEW):
13530         * shapes/sybase/repserver.(xpm|shape) (NEW):
13531         * shapes/sybase/rsm.(xpm|shape) (NEW):
13532         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13533         renderobjects into shapes. The Sybase objects are now not compiled
13534         anymore, and ready to be nuked if nobody objects in the next few weeks.
13535         
13536         * app/commands.c:
13537         * app/diagram.[ch]:
13538         * app/disp_callbacks.c:
13539         * app/display.[ch]:
13540         * app/interface.[ch]:
13541         * app/menus.[ch]:
13542         * app/modify_tool.c:
13543         * app/preferences.[ch]:
13544         * app/recent_files.c:
13545         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13546         a menu bar reflecting the popup menu, to each display window. This
13547         is optional (changing the preference currently doesn't affect
13548         already opened windows; a few other rough edges to cut).
13550         * plug-ins/wpg/wpg.c:
13551         * plug-ins/xfig/xfig-import.c:
13552         * plug-ins/python/pydia-property.c:
13553         * plug-ins/python/pydia-properties.c:
13554         * plug-ins/python/pydia-geometry.c:
13555         * plug-ins/pstricks/render_pstricks.c:
13556         * lib/arrows.c:
13557         * objects/EML/dbox.c:
13558         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
13559         #53054.
13561         * lib/ps-utf8.c: improved the clustering of alphabetic character
13562         definitions in custom encodings pages.
13563         
13564 2001-05-02  Hans Breuer  <hans@breuer.org>
13566         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
13567         of 'obj_bb' to PROP_TYPE_RECT
13569         * objects/custom/custom_object.c : take all quarks into account, 
13570         not only 4 as copy&paste suggests
13572         * objects/uml/objects.c : completed the implementation of the
13573         property api to avoid reading of totally bogus data. Removed
13574         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13575         there was too much but too less ...
13576   
13577         The above changes removed all known crashes (mentioned below) 
13578         from the Property API. Property access is still incomplete though.
13580         * objects/flowchart/box.c :
13581         * objects/flowchart/diamond.c :
13582         * objects/flowchart/ellipse.c :
13583         * objects/flowchart/parallelogram.c :
13584         * objects/uml/classicon.c :
13585         * objects/uml/state.c : calculate number of quarks from quark array 
13586         size instead of using hardcoded values for consistence and to avoid 
13587         future bugs like the above
13588         
13589         * objects/eml/nlist.c : include <string.h> for strcmp()
13591         * lib/dia_xml.c : relax g_warning for values, which
13592         appear to be too small. There is nothing which prevents
13593         them while saving
13595         * plug-ins/python/pydia-geometry.c : changed stringifying of
13596         geometry objects accept BezPoint back to %f, which does not
13597         crash anymore, because all the data is intialized now and it
13598         simply is more readable than %e ...
13600         * plug-ins/python/python-startup.py : removed dependency
13601         to PyGtk, because it isn't required here and probably won't
13602         in i.e.: export filters.
13604         * plug-ins/python/gtkcons.py : create the gtkoutfile even
13605         if sys.stderr.fileno() isn't supported
13607         * app/makefile.msc : make version 0.88
13608         * plug-ins/makefile.msc : make version 0.88 an added new
13609         xfig files to build
13611 2001-05-11  James Henstridge  <james@daa.com.au>
13613         * NEWS: remember to add news items this time.
13615         * dia.spec: update spec file for 0.88 release.
13617         * configure.in: up version number to 0.88
13619         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13620         preventing any of the useful python scripts from being
13621         distributed.
13623         * sheets/Makefile.am (sheet-translation-report): fix bustage I
13624         introduced in my fixups for the 0.87 release :(
13626 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13628         * plug-ins/xfig/xfig-import.c: Finally got groups working.
13630 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
13632         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13633         group manipulation.
13635 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
13637         * lib/ps-utf8.[ch]:
13638         * lib/Makefile.am: fix makefile breakage which led to not
13639         including ps-utf8.[ch] in the released tarballs. 
13641 2001-05-09  James Henstridge  <james@daa.com.au>
13643         * Makefile.am (core-translation-report): dist scripts needed for
13644         this target, and change to $(srcdir) before running.
13646         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
13647         files aren't automatically included in the tarball by automake
13648         because they could be generated files.
13650         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13652         * doc/en/Makefile.am (install-data-hook): fix up where graphics
13653         are installed.
13655         * configure.in: up version number to 0.87
13657         * plug-ins/python/*.py: no longer necessary to explicitly set
13658         sys.argv, as python.c does it for us now (like it should).
13660         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13661         python plugin.
13663         * plug-ins/python/python-startup.py: startup script that imports
13664         all modules in $(datadir)/dia/python and ~/.dia/python.
13666         * plug-ins/python/python.c (dia_plugin_init): change so that it
13667         only runs the $(datadir)/dia/python-startup.py script.  Make sure
13668         that sys.argv and __main__.__file__ are set when calling the
13669         startup script.
13671         * plug-ins/python/Makefile.am: update makefile.  Make it install
13672         gtkcons.py plugin.  I haven't set any other plugins to install, as
13673         they look like they are mainly for debugging purposes.
13675         * configure.in: add tests to detect if python is available, so we
13676         can build the python plugin.  Only run if --with-python passed to
13677         configure.
13679 2001-05-08  James Henstridge  <james@daa.com.au>
13681         * acinclude.m4: add macros for detecting python.
13683         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13684         at GNOME_APP_UI_SUBTREE entries.
13685         (menus_add_path): function to add a menu item to the menubars.
13686         Uses a hash table to keep track of extra menu items it adds.  Also
13687         notifies the item factory about the entries so that accels can be
13688         saved for them.
13689         (menus_add_path): implement gtk only version.
13690         (menus_init): use menus_add_path() to add the menu.
13691         (plugin_callback): simplify.
13693 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
13695         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13696         
13697 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
13699         * plug-ins/xfig/xfig-export.c: 
13700         * plug-ins/xfig/xfig-common.c: 
13701         * plug-ins/xfig/xfig-import.c: 
13702         * plug-ins/xfig/xfig.c: 
13703         * plug-ins/xfig/xfig.h: 
13704         * app/Makefile.am: Added support for exporting to Fig format
13705         (except splits, which are less powerful in Fig).  Some refactoring
13706         along the way.
13708 2001-05-02  Hans Breuer  <hans@breuer.org>
13710         * plug-ins/python/debug_objects.py : added another
13711         test to get massive crashes from the Property API due
13712         to unintialized data.
13714         * app/menu.c : the callback_action wasn't incremented
13715         (should have checked my last optimization). Now more
13716         than one plug-in callback is supported again.
13718         * plug-ins/python/pydia-geometry.c : avoid crashes from
13719         glib, when trying to g_strdup_printf unintialized floats.
13721         * plug-ins/python/pydia-property.c : avoid crashes from
13722         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
13724 2001-05-01  Hans Breuer  <hans@breuer.org>
13726         * objects/makefile.msc : added eml
13727         * objects/eml/instantiation.c : initialize 'inst' pointer
13728         before using, zero initialization for objects
13729         * objects/eml/interaction-ortho.c :
13730         * objects/eml/interaction.c : zero initialization for objects
13732         * app/menus.c : removed Gimp mru stuff which slipped in at
13733         2000-08-15, was never activated and will never be needed, 
13734         because of Steffens recent file list patch added at 2001-01-05.
13736         * objects/eml/*.c : some more zero initialization of objects
13737         to avoid infinite (uninitialized) bounding boxes
13739         Implemented a callback api which allows plug-ins to register
13740         menu call backs. Dia for Gnome should compile, but will need 
13741         some extra tweaking to make it work because I can't test it.
13743         * plug-ins/python/pydia-error.h :
13744         * plug-ins/python/pydia-render.c : moved Pxthon function return 
13745         value handling from pydia-render.c to pydia-error.h, to make it
13746         usable for
13747         * plug-ins/python/diamodule.c : implement callback function
13748         registration from and relaying to Python code
13750         * app/menus.c : register and use plug-in menu callbacks
13752         * lib/filter.[hc] : implement filter_register_callback() and
13753         filter_get_callbacks() for the above
13754         * lib/libdia.def : export them
13756         * plug-ins/python/debug_objects.py (new file): 
13757         sample using the above
13759 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
13761         * plug-ins/shape/shape-export.c (new_shape_renderer): 
13762         The name of a shape is now taken from the dir, to conform with
13763         standard naming.
13765 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
13767         * app/properties.c (properties_show): Added title containing
13768         object type, plus (hopefully) fix of the ghost properties dialog.
13770 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
13772         * app/display.c: remove the display idle handler in case we
13773         destroy the ddisplay (caused crashes in ddd, probably random
13774         crashes elsewhere).
13776         * autogen.sh: 
13777         * configure.in:
13778         * Makefile.am: hack around gettext-0.10.36's new "features".
13779         
13780         * lib/properties.[ch]: added new function object_copy_props().
13781         Added new property type PROP_TYPE_ENDPOINTS
13783         * lib/connection.h: added support for load/saving through the
13784         properties interface.
13786         * lib/object.[ch]: object_load/save/copy_using_properties()
13787         support functions (code factorisations).
13788         
13789         * objects/GRAFCET/boolequation.c: check against null values in
13790         boolequation_set_value() and boolequation_destroy().
13792         * objects/GRAFCET/transition.c: Converted from lazyprops to
13793         standard properties. 31% less (x86) code !
13795         * objects/GRAFCET/condition.c: also converted from lazyprops to
13796         standard properties. Also killed lots of code.
13797         
13798 2001-04-13  Hans Breuer  <hans@breuer.org>
13800         * plug-ins/wmf/wmf.cpp : changed text conversion from
13801         g_utf8_utf16 to g_convert usage. The latter function is already
13802         available in tml's last "official" Gtk+ version (2000-12-26).
13803         This change allows to use recent Dia with either the official
13804         version or the latest cvs "gtk-1-3-win32-production"-branch.
13806 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
13808         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
13809         * app/disp_callbacks.c:
13810         - Allow submenus in DiaMenus.
13811         - Don't require DiaMenu.title to be non-null (so that
13812           submenus aren't required to have titles)
13814         * objects/FS/function.c:
13815         - object menu now has submenus, an almost complete list of
13816           standard-basis verbs, and a start on nouns.
13817         - box padding, dash length, and other visual attributes are
13818           scaled by the font size... eventually font height will be
13819           a function property.
13820         - draw functions with smaller font to make initial view hold
13821           a reasonable number of functions.
13822         
13823 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
13825         * sheets/ER.sheet:
13826         * sheets/chronogram.sheet:
13827         * sheets/jigsaw.sheet:
13828         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
13829         Wieers <dag@wieers.com>
13831 2001-04-13  Hans Breuer  <hans@breuer.org>
13833         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
13834         to ensure that all the deinitialization is only done once. Fixes
13835         recent app exit crash on win32
13837         * lib/dia_xml.c : provide isinf() replacement for msc which does only
13838         have _finite()
13840         * lib/libdia.def : updated
13842         * objects/makefile.msc : added wanlink.c 
13844         * objects/network/wanlink.c : added M_PI_2 definition for poor
13845         platforms which don't have one
13847         * objects/standard/arc.c :
13848         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
13849         initialized which led to rather huge bounding boxes (try Ctrl^A on
13850         diagrams with Arcs or ZigZagLines).
13851         * objects/*/*.c : to avoid further bugs like the above changed all
13852         object initializations to g_malloc0 or g_new0
13855 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
13857         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
13858         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
13860         * objects/UML/class.c: 
13861         * objects/UML/usecase.c:
13862         * objects/UML/large_package.c:
13863         * objects/UML/message.c:
13864         * objects/UML/object.c:
13865         * objects/UML/lifeline.c:
13866         * objects/FS/flow.c:
13867         * objects/FS/flow-ortho.c:
13868         * objects/FS/function.c:
13869         * objects/custom/custom_object.c:
13870         * objects/GRAFCET/vergent.c:
13871         * objects/chronogram/chronoref.c:
13872         * objects/SADT/box.c:
13873         * objects/SADT/annotation.c:
13874         * plug-ins/dxf/dxf-import.c:
13875         * plug-ins/xfig/xfig-import.c:
13876         * plug-ins/wpg/wpg.c:
13877         * app/command.c:
13878         * app/app_procs.c:
13879         * app/display.c: /* certainly more WIP than dead code there */
13880         Unused variables, unused static function definitions, forgotten or
13881         incomplete prototypes added or fixed, lack of const or unwanted const,
13882         etc. (mostly clean-ups of leftovers of the pre-properties era).
13883         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
13884         please check these.
13886         * app/lineprops_area.c: More of the same. Missing prototypes
13887         added, and functions unused outside made static.
13889         * app/recent_files.c:
13890         * app/properties.c:
13891         * app/defaults.c: some variables are used only when doing a GNOME
13892         build.
13893         
13894         * app/magnify.c: missing #include <stdlib.h>.
13896         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
13898         These are a lot of clean-ups (by the way, this compiles and runs
13899         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
13900         for DEAD_CODE, and if it's yours, judge it.
13901         
13902 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
13904         * plug-ins/dxf-import.c: some progress with the arcs; still some
13905         clean-ups to do and line width scaling issues to figure out.
13907         * objects/standard/arc.c: start_point and end_point properties
13908         (duplicated from standard/line.c)
13910         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
13911         code there.
13912         
13913 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
13915         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
13916         preliminary support for arcs (doesn't work). Circles and ellipses are
13917         now transparent. Coordinate and width scaling are now a common 
13918         static constant (probably before morphing into a preference).
13919         
13920         * sheet/checktrans.py: improved error reporting. Made checktrans
13921         count lack of <name xml:lang="code"> as a lack of translation for
13922         language "code" (no, it's not a plot to bring down other
13923         language's scores !)
13924         
13925         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
13926         in the header, and have <name xml:lang="fr"> components.
13927         
13928 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
13930         * objects/custom/custom_object.c: temporary hack to fix the shape
13931         bounding box reported by Ben A. Hetland. Proper fix isn't .87
13932         material, see bugzilla #52912.
13934 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
13936         * objects/standard/image.c (get_directory): Now uses
13937         G_SEPARATOR_CHAR_S instead of "/"
13939         * sheets/network.sheet: 
13940         * sheets/Logic.sheet:
13941         * sheets/Flowchart.sheet:
13942         * sheets/Electric.sheet:
13943         * sheets/Circuit.sheet:
13944         * sheets/ER.sheet:
13945         * sheets/Pneumatic.sheet:
13946         * sheets/SDL.sheet:
13947         * sheets/UML.sheet:
13948         * sheets/GRAFCET.sheet:
13949         * sheets/MSE.sheet:
13950         * sheets/chronogram.sheet:
13951         * sheets/civil.sheet:
13952         * sheets/network.sheet:
13953         Danish translations.
13954         
13955         * objects/standard/image.c (get_directory): Changed get_directory
13956         to use g_dirname to find the directory part.
13958 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
13960         * sheets/ER.sheet:
13961         * sheets/Electric.sheet:
13962         * sheets/Flowchart.sheet:
13963         * sheets/Logic.sheet:
13964         * sheets/network.sheet: More Dutch translations from Dag Wieers.
13966 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13968         * sheets/checktrans.py: now emits a warning when two descriptions
13969         for a single language code are found.
13971         * Makefile.am:
13972         * sheets/Makefile.am: -translation-reports now also depend on their
13973         checktrans.py
13974         
13975 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13977         * sheets/Circuit.sheet:
13978         * sheets/Contact.sheet:
13979         * sheets/Logic.sheet:
13980         * sheets/chronogram.sheet:
13981         * sheets/sybase.sheet: 
13982         Dutch translations from Dag Wieers <dag@wieers.com>
13984 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13986         * po-checktrans.py: Now shows the detailed counts alongside the
13987         percentage of translations.
13988         
13989 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
13991         * Makefile.am:
13992         * po-checktrans (NEW):
13993         * po-checktrans.py (NEW): builds core-translation-report:
13994         percentages of core (gettext) translations done [Not placed into
13995         po/ where that should belong, because of integration fear^Wissues
13996         with gettextize]. 
13998         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
13999         sheets/sheet-translation-report probably ought to be copied on the 
14000         user's /usr/share/doc/dia (or equivalent) directory.
14002         * sheets/Makefile.am: sheet-translation-report now a simple
14003         EXTRA_DIST; make install won't install it by default. 
14004         
14005 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
14007         * app/preferences.c: changed the default grid colour to something
14008         less intrusive. 
14010         * shapes/SDL/*.shape:
14011         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
14012         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
14013         DIA FILES (well, for files using SDL), see the mailing list
14014         archive "SDL (ab)using the global shape namespace" for a script to
14015         do this conversion.
14017         * sheets/SDL.sheet: translated into French
14018         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
14019         
14020 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
14022         * lib/dia_xml.c: made data_point() more paranoid
14024         * sheets/Makefile.am:
14025         * sheets/checktrans (NEW):
14026         * sheets/checktrans.py: Made checktrans handle more gracefully the
14027         absence of python and python-xml packages, and made the error
14028         message more helpful.
14029         
14030 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
14032         * lib/render_object.c (new_render_object): Made initial handles
14033         behave like on most other objects.
14035         * app/load_save.c (read_objects): Fixed premature free'ing ofr
14036         typestr causing garbage.
14038 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
14040         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
14041         accouting for handle ordering through copy and save. (#51479)
14043 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
14045         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
14047 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
14049         * sheets/Circuit.sheet
14050         * sheets/UML.sheet
14051         * sheets/network.sheet: Updated German translations
14052         
14053 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14054         * lib/arrows.[ch]:
14055         * lib/widgets.c:
14056         * app/lineprops_area.c: The return of the revenge of the arrow
14057         heads. Now all types covered by ISO 10303-201 should be covered.
14058         
14059 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14061         * sheets/Flowchart.sheet: translations in probably Hungarian were
14062         a victim of cut-n-paste from the German one. Fixed (hopefully).
14063         * sheet/UML.sheet: translation in probably Norwegian was a victim
14064         of cut-n-paste from the French one. Fixed (hopefully).
14065         * sheets/Logic.sheet: French translation not tagged with
14066         xml:lang="fr".
14067         
14068         * sheets/checktrans.py:
14069         * sheets/Makefile.am: new file, sheet-translation-report, to be
14070         installed along the sheets, show how much of them has been
14071         translated into which language (I wish the result was prettier...)
14073         * po/README: most translators don't read this file, but anyway...
14075         * sheets/.cvsignore:
14076         * objects/network/.cvsignore: the usual negotiation with CVS.
14078 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14080         * sheets/*.sheet: French translations
14082 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
14084         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14086         ** objects/network/network.c:
14087         ** objects/network/wanlink.c:
14088         ** objects/network/pixmaps/wanlink.c:
14089         ** sheets/network.sheet:
14090         ** objects/network/Makefile.am: a better object to use instead of
14091         the older WAN Connection.
14092         
14093         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14095         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14096         name clash 
14098         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14099         Arc; kept the C file name (because CVS wouldn't like it), and
14100         still registering the older object name (but advertising the newer
14101         one in sheets/GRAFCET.sheet).   
14103 2001-03-24  Hans Breuer  <hans@breuer.org>
14105         * app/dia.def : some plug-ins (currently only python, xfig) are using 
14106         functions from the dia executable. To get them working these functions 
14107         need to be explicit exported on win32. IMO the much cleaner way would
14108         be to move these functions to libdia, but that would require some
14109         long term restructuring ...
14111         * lib/libdia.def : updated
14113         * plug-ins/makefile.msc : build xfig plug-in
14115 2001-03-24  Hans Breuer  <hans@breuer.org>
14117         * app/diagram.c : g_strdup (dia->filename) because it will be
14118         g_free ()d
14120         * app/display.c : set ddisp->renderer to NULL after destruction.
14121         This may solve or help to identify erroneous access to it after
14122         destruction.
14124         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14125         get 'umlauts' working
14127 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
14129         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14130         were reversed... (look for the patch, and drink a beer to my
14131         stupidity)      
14132         
14133 2001-03-23  Hans Breuer  <hans@breuer.org>
14135         * app/app_procs.c : don't g_error () if the config directory
14136         can't be created (at least not on windoze) because it's quite
14137         common that the user don't read or understand the FAQ ...
14139         * app/cursor.c : use ddisplay_active () instead of active_display
14140         from app/display.c
14142         * app/display.[hc] : made active_display var static and provide
14143         an accessor funtion ddisplay_active_diagram ()
14145         * app/dia-props.c : don't store the active_diagram, but ask
14146         for it everytime it needed.
14148         * lib/properties.h : #include "intl.h"
14150         * lib/makefile.msc : need to take care of inclusion order to
14151         avoid clashes with gtk+2.0's gdk-pixbuf
14153         * objects/makefile.msc : added uml/stereotype.c to build
14155 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
14157         * **/*.c: Added config.h to the remaining .c files, and changed
14158         all to be <config.h>.
14160 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
14162         * lib/arrows.c
14163         * lib/arrows.h
14164         * lib/widgets.c
14165         * app/lineprops_area.c: added new arrow types with double
14166         heads
14167         
14168 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
14170         * shapes/Civil/civil_gas_bottle.xpm
14171         * shapes/Civil/civil_gas_bottle.shape
14172         * sheets/civil.sheet
14173         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14174         Battermann
14175         
14176 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14178         * objects/custom/shape_info.c (load_shape_info): 
14179         * objects/custom/shape_info.h: 
14180         * objects/custom/custom_object.c (custom_update_data): 
14181         Better support for text outside the box -- new attributes 'resize'
14182         and 'align' for text entity.  Align not fully supported yet.
14184         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14186 2001-03-20  James Henstridge  <james@daa.com.au>
14188         * app/interface.c (display_data_received_callback): comment out
14189         status message.
14191 2001-03-19  James Henstridge  <james@daa.com.au>
14193         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14195         * objects/UML/realizes.c: similar here.
14197         * objects/UML/implements.c: similar here.
14199         * objects/UML/component.c: similar here.
14201         * objects/UML/generalization.c: same here.
14203         * objects/UML/dependency.c: allow NULL for ->name and
14204         ->stereotype.  This fixes a number of problems in loading saved
14205         files.
14207         * lib/properties.c: various changes so that NULL string properties
14208         should work.
14210         * objects/standard/line.c (line_update_data):
14211         line->extra.start_long and line->extra.end_long were not being
14212         initialised.  This fixes potential problems with the bounding box
14213         of "Standard - Line" objects.
14215 2001-03-19  Hans Breuer  <hans@breuer.org>
14217         * app/commands.c : added win32 specific code to display a html
14218         file. #include "text.h" for text_delete_all prototype.
14220         * app/dia.ico :
14221         * app/dia.rc : (new) to give Dia win32 an icon
14223         * app/win32print.[ch] : new files to support direct postscript
14224         file printing on win32. Beware: it *requires* a ps-printer!
14226         * app/paginate_psprint.c : disable the signal code for win32 build
14227         and added small specific changes to support win32print.
14229         * app/makefile.msc : added win32print and linking shell32.lib
14231         * lib/libdia.def : updated
14233 2001-03-18  Kevin Breit <battery841@mediaone.net>
14235         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
14236           Help tabs.
14238 2001-03-17  James Henstridge  <james@daa.com.au>
14240         * app/paginate_psprint.c (diagram_print_ps): add code that traps
14241         SIGPIPEs during printing.  This gets rid of a number of crashes
14242         caused by printing (eg. typing an incorrect print command).
14244         * dia.spec (%install): gzip the manpage.
14246         * lib/beziershape.c (beziershape_save): fix off by one error in
14247         beziershape save code, which was adding an extra segment to the
14248         object on save.
14250         * app/menus.c: add a separator in the gnome version of the help
14251         menu.
14253         * app/app_procs.c (app_init): add a --nosplash argument which
14254         disables the splash screen.
14256         * app/dia_embedd.c (main): don't leave the splash screen open for
14257         embeddable component.
14259         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14260         didn't seem to be showing the splash screen like expected, so I
14261         have replaced it with some code that calls gtk_main() until the
14262         first exposure of the window.
14264 2001-03-16  James Henstridge  <james@daa.com.au>
14266         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14268         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14269         stereotype.h
14271         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14273         * app/Makefile.am (dia_core_files): remove splash.h from file
14274         list, as it doesn't exist.
14276         * doc/en/Makefile.am (uninstall-local): remove the docdir on
14277         uninstall.
14279         * doc/Makefile.am (uninstall-local): target to remove the C
14280         symlink.
14282         * dia.spec (%files): include the documentation in the package.
14284         * app/menus.c (toolbox_menu_items): add menu item for manual,
14285         which calls help_manual_callback.
14287         * app/commands.c (help_manual_callback): find help file and load
14288         netscape to view it.
14290         * app/commands.h: add prototype for help_manual_callback()
14292         * doc/Makefile.am (helpdir): similar here.
14294         * doc/en/Makefile.am (helpdir): make the helpdir
14295         $(pkgdatadir)/help/en in the non gnome case.
14297         * configure.in (HAVE_GNOME): add conditional.
14299         * doc/en/Makefile.am: handle the graphics in a more general way,
14300         so it is easier for Kevin to add them to the build (just add them
14301         to the GRAPHICS var).
14303         * app/Makefile.am (embed_extra_print_files): make the case of
14304         building without gnome-print support but with bonobo support work.
14305         dia-embedd needs to be include the gnome-print
14307 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14309         * samples/Makefile.am: included all samples in the distribution....
14310         
14311 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14313         * configure.in: removed premature test for DPS. Added -*- m4 -*-
14314         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14315         vanished, removed it from ALL_LINGUAS.
14317         * lib/charconv.[ch] (NEW): a very small wrapper around
14318         unicode_iconv to convert strings between utf8 and local charset
14319         (actually, ISO-8859-1, though one can do
14320         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14322         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14323         library to help build Postscript streams which use as many custom
14324         font encodings as necessary to correctly represent all characters
14325         used (testing from users with non-latin1 and/or more than 256
14326         characters in routine use *very* welcome).
14328         * app/Makefile.am, lib/Makefile.am: integrated these into the
14329         build process.
14331         * shapes/Logic/.cvsignore (NEW): .cvsignore
14332         
14333         * app/render_eps.h: forwarded some changes Lars forgot to include.
14334         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14335         doesn't yet build.
14337 2001-03-08  Kevin Breit <battery841@mediaone.net>
14339         * doc/en/home_network.png: Added file.
14340         * doc/en/line_props.png: Added file.
14341         * doc/en/usage-objects.sgml: Added two graphics to file.
14342         * doc/en/usage-quickstart.sgml: Added one graphic to file.
14344 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
14346         * app/grid.h: Place comment around text after #endif.
14347         * lib/bezier_conn.c: #include <string.h>.
14348         * lib/beziershape.c: #include <string.h>.
14349         * lib/connpoint_line.h: Comment after #endif.
14350         * lib/dia_dirs.c: #include <string.h>.
14351         * lib/element.c: Same.
14352         * lib/lazyprops.c: #include <config.h> and "intl.h".
14353         * lib/lazyprops.h: Comment out text after #endif.
14354         * lib/neworth_conn.c: #include <string.h>
14355         * lib/orth_conn.c: Same here.
14356         * lib/poly_conn.c: Here too.
14357         * lib/polyshape.c: And here.
14358         * lib/properties.c: Remove #include "intl.h" from here and add
14359         an array of static strings to work around bug in gettext that
14360         makes it miss strings in a #define body.
14361         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14362         * objects/GRAFCET/boolequation.h: Same here.
14363         * objects/chronogram/chronoline_event.h: Add prototype for
14364         destroy_cle().
14365         
14366 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14368         * objects/FS/function.c: 
14369         * objects/FS/flow.c: 
14370         * objects/FS/flow-ortho.c: 
14371         Updated to use properties.
14373 2001-03-03  James Henstridge  <james@daa.com.au>
14375         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14376         button labels when creating them.
14378 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14380         * objects/UML/actor.c
14381         * objects/UML/realizes.c 
14382         * objects/UML/implements.c 
14383         * objects/UML/generalization.c 
14384         * objects/UML/dependency.c 
14385         * objects/UML/constraint.c
14386         Updated to use properties.
14387         
14388         * objects/UML/stereotype.c 
14389         * objects/UML/stereotype.h
14390         Generalized to any kind of bracketting.
14391         
14392 2001-02-28  James Henstridge  <james@daa.com.au>
14394         * app/menus.c: add help entry to the help menu.  Need to get this
14395         working for the non GNOME case as well (maybe put help under
14396         $(datadir)/dia/help for non GNOME?)
14398         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14400         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14401         this element so that we get a meaningful filename in the html
14402         translation.
14404         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14405         documentation.
14407         * configure.in (DB2HTML): add a check for the db2html program, and
14408         set an automake conditional if it is found.
14410         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14411         and descend into doc/ directory while building.
14413         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14414         we need more complex rules for building the docs.
14416 2001-02-25  Hans Breuer  <hans@breuer.org>
14418         * config.h.win32 : some cleanup
14420         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14421         are deprecated since glib-1.3.2. Sorry needing to use them
14422         contionally, but there is no glib-1.2 for win32
14424         * app/recent_files.c : use g_strescape (params) conditionally
14426         * lib/connection.c : include string.h for memcpy
14428         * lib/geometry.h : added some stuff for compatibility with
14429         msvc, which previously came from included config.h
14431         * lib/libdia.def : updated
14433         * objects/makefile.msc : updated
14435         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
14436         'extra' used without having been initialized
14438         * objects/network/bus.c(658) : initialize 'extra'
14440         * plug-ins/makefile.msc : updated
14442         * plug-ins/cgm/cgm.c :
14443         * plug-ins/pstricks/render_pstricks.c : 
14444         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
14445         huge memory leaks.
14447         * plug-ins/python/python.c : use HAVE_DIRENT_H
14449 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14451         * lib/connection.c (connection_update_boundingbox): 
14452         Made the BB shrink on right and lower sides, too.
14454 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
14456         * */*.c: #incude <config.h> at the top.
14457         * */*.h: Remove include of "config.h" since it should only
14458         be included in .c files and at the very top for things to
14459         work.
14460         * sheets/*.sheet: Updated Norwegian translations.
14461         
14462 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14464         * objects/UML/small_package.c: 
14465         * objects/UML/class.c: 
14466         * objects/UML/node.c: 
14467         * objects/UML/usecase.c:
14468         * objects/UML/lifeline.c: 
14469         * objects/UML/message.c:
14470         Various cleanup of properties in particular.  Now much more use of
14471         standard properties.
14473         * lib/diagramdata.c (layer_render): Visualization of bounding
14474         boxes, for debugging purpoises.
14476 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
14478         * lib/geometry.h:
14479         * lib/connection.[ch]:
14480         * lib/poly_conn.[ch]:
14481         * lib/polyshape.[ch]:
14482         * lib/bezier_conn.[ch]:
14483         * lib/beziershape.[ch]:
14484         * lib/orth_conn.[ch]:
14485         * lib/neworth_conn.[ch]:
14486         * lib/element.[ch]: Changed a bit the _update_boundingbox()
14487         interface. Now the parent elements have an extra_spacing
14488         structure, which child objects just need to fill, to take care of
14489         most arrow & line width extra space needs.
14491         * objects/**/*.c: updated all objects to the new interface.
14492         While at it, killed all instances of (Object *) downcasts (phew !)
14494         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14495         doesn't speak about.
14496         
14497 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14499         * sheets/Logic.sheet: New sheet for Logic symbols.
14501 2001-02-21  James Henstridge  <james@daa.com.au>
14503         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14504         widget by its path name.  Walks the GnomeUIInfo heirachy rather
14505         than widget tree, compares untranslated label names and ignores
14506         underscores in the labels.
14507         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14508         lookups are not dependent on the current locale, as with
14509         gnome_app_find_menu_pos.
14511         * acconfig.h: guard against multiple inclusion of config.h.
14513         * app/select.c (select_style_callback): simply set the selection
14514         style to the value of action.
14516         * app/menus.c (menus_init): simplify the item factory based menu
14517         code a bit.  It looks like it was using some code cut and pasted
14518         from the gimp, which looked a bit unnecessary.  Things work fine
14519         without it.
14520         (selectmenu): set the action to the type of selection mode
14521         requested.
14522         (display_menu_items): use the symbolic enumeration values for the
14523         action field.
14525         * app/plugin-manager.c: 
14526         * app/plugin-manager.h: 
14527         * app/filedlg.c:
14528         * app/filedlg.h: 
14529         * app/select.c:
14530         * app/select.h: change prototypes.
14532         * app/commands.c: update all callback prototypes, and get rid of
14533         some #ifdef GNOME's.
14535         * app/commands.h: change function prototypes.
14537         * app/dia_embedd.c (save_fn):
14538         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14540         * app/menus.c (menus_init): for gnome menus, use
14541         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14542         structure that proxies the callbacks to have the same signature as
14543         GtkItemFactory type 1 callbacks.
14544         (menus_init): for GTK menus, change from callback type 2 to type
14545         1.
14546         (display_menu_items): add back tearoffs.  I don't know who removed
14547         these for the gtk menu case.
14549 2001-02-20  Kevin Breit <battery841@mediaone.net>
14551         * doc/en/usage-objects-special.sgml: Fixed a few of the special
14552         object descriptions.  More to come in the next few days.
14554 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14556         * app/render_eps.c: Fixed for internationalized floating point
14557         output. 
14559         * objects/UML/note.c: Fixed properties -- was missing
14560         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
14561         position. 
14563 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
14565         * plug-ins/xfig/xfig-import.c: 
14566         File added importing xfig files.  Still very rough, but good
14567         enough to let others hack on it.
14569 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
14571         * app/interface.c:
14572         * app/linewidth_area.c:
14573         * lib/lazyprops.c:
14574         * lib/properties.c:
14575         * lib/widgets.c:
14576         * objects/ER/attribute.c:
14577         * objects/ER/entity.c:
14578         * objects/ER/relationship.c:
14579         * objects/custom/custom_object.c:
14580         * objects/flowchart/box.c:
14581         * objects/flowchart/diamond.c:
14582         * objects/flowchart/ellipse.c:
14583         * objects/flowchart/parallelogram.c:
14584         * objects/standard/box.c:
14585         * objects/standard/textobj.c: per Vlad Harchev's request, made
14586         page sizes of gtk_adjustments different than their step sizes.
14587         When sensible values of page size weren't found (overwhelming
14588         majority of cases), page sizes were set to 10.0 * respective step
14589         size.   
14591 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
14593         * objects/network/hub.c: 
14594         Patch from Hubert Figuiere applied, adding connection points.
14596 2001-02-02  James Henstridge  <james@daa.com.au>
14598         * app/display.c (new_display): set update id to 0 here.
14599         (ddisplay_update_handler): rename from ddisplay_flush, and set
14600         update_id to 0 at end of processing.
14601         (ddisplay_flush): new implementation that simply sets an idle
14602         handler to perform the actual drawing.
14604         * app/display.h: add structure member to hold the redraw idle
14605         handler id.
14607 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
14609         * objects/standard/ellipse.c (ellipse_copy): 
14610         * objects/standard/zigzagline.c (zigzagline_copy): 
14611         Fix of copying provided by Martin Hawlisch.
14613 2001-01-23  Kevin Breit <battery841@mediaone.net>
14615         * doc/en/graphics/: added directory
14617         * doc/en/graphics/greendots.png: added file
14619         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14620         release.
14622 2001-01-23  Kevin Breit <battery841@mediaone.net>
14624         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14625                         thanks to John Fleck!
14627 2001-01-21  Kevin Breit <battery841@mediaone.net>
14629         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14631 2001-01-12  Michael Meeks  <michael@helixcode.com>
14633         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14634         so our POA gets setup properly.
14636         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14637         things we g_malloc.
14639         * configure.in: Use bonobox_print.
14641         * app/dia_embedd.c (embeddable_factory): add print interface.
14642         (object_print): impl.
14644 2001-01-11  Michael Meeks  <michael@helixcode.com>
14646         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14647         (load_fn, save_fn): impl.
14648         (view_factory): hide modified status bar, & use activate fn.
14649         (refresh_view): force redraws of the views.
14650         (view_show_hide): split from
14651         (dia_view_activate): here.
14653         * app/diagram.c (diagram_load_into): split from diagram_load.
14654         (new_diagram): simplify bu splittin stuff into
14655         (diagram_init): here.
14657 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
14659         * shapes/jigsaw/*.shape: replaced #000000 with foreground
14660         and #ffffff with background
14661         
14662 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
14664         *configure.in: GTK+-build was broken due to missing
14665         have_bonobo=no
14666         
14667 2001-01-06  Michael Meeks  <michael@helixcode.com>
14669         * app/dia_embedd.c (main): add running context support.
14670         (dia_embeddable_destroy): remove old running object counting.
14671         (embeddable_factory): ditto.
14672         (view_factory): comment out menu path hiding.
14674         * lib/sheet.c (load_register_sheet): use free to free
14675         stuff from libxml not g_free.
14677         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14679         * configure.in: remove USE_OAF checks, check for a precice
14680         Bonobo version >= 0.31, revamp bits.
14682         * app/dia_embedd.c (init_server_factory): upd.
14683         (init_dia_factory): remove OAF conditionals, everything uses
14684         oaf now.
14686         * app/GNOME_Dia.oafinfo: rename OAFIIDs
14688         * app/Makefile.am: remove ancient gnorba code.
14689         rename dia.oafinfo to GNOME_Dia.oafinfo
14691 2001-01-07  Hans Breuer <Hans@Breuer.Org>
14693         * config.h.win32
14694         * install.win32
14695         * readme.win32 : some more files required or useful to build 
14696         Dia on win32
14698         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14699         fill_bezier implementation, boundary drawing in fill mode, etc.
14700         Next one complaining gets the source, uncommented ...
14702         * shapes/network/router-symbol.xpm 
14703         * shapes/network/switch-atm-symbol.xpm 
14704         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14705         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
14706         the files as XPMs. Maybe the X versions of these functions are more
14707         tolerant ...
14709 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14711         * plug-ins/python/Makefile.am: added libart path
14713         * plug-ins/python/python.c: added dirent.h
14715         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
14716         
14717 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14719         * objects/uml/actor.c
14720         * objects/uml/branch.c
14721         * objects/uml/class.c
14722         * objects/uml/classicon.c
14723         * objects/uml/component.c
14724         * objects/uml/large_package.c
14725         * objects/uml/node.c
14726         * objects/uml/note.c
14727         * objects/uml/object.c
14728         * objects/uml/small_package.c
14729         * objects/uml/state.c
14730         * objects/uml/usecase.c : started to implement the generic property
14731         interface for the uml objects. Would appreciate some help on how
14732         to implement properties which are list of properties themselves,
14733         e.g. member functions and their parameters of UMLClass.
14735 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14737         * plug-ins/python/diamodule.c : finally ported to win32.
14738         Added new objects and implemented register_export function.
14740         * plug-ins/python/pydia-object.h
14741         * plug-ins/python/pydia-display.c
14742         * plug-ins/python/pydia-handle.c
14743         PyObject_HEAD_INIT needs some tweakink on win32. Done in
14744         pydia-object.h; others files simply using it.
14746         * plug-ins/python/pydia-layer.c : reflect 
14747         layer_find_closest_connection(_)point renaming
14749         * plug-ins/python/pydia-object.c : add property properties.
14750         Also change bounding_box to DiaRectangle.
14752         * plug-ins/python/python.c : extended error reporting; use
14753         all *.py files from Dia's plug-in dir instead of hardcoded
14754         test.py. This sollution should be fine with Win32, but on
14755         Unix it may need some tweaking (dunno) ...
14757         * plug-ins/python/export-object.py
14758         * plug-ins/python/export-render.py : test and documentation 
14759         implementations for export filter implementations in Python
14761         * plug-ins/python/pydia-color.[hc]
14762         * plug-ins/python/pydia-diagramdata.[hc]
14763         * plug-ins/python/pydia-error.[hc]
14764         * plug-ins/python/pydia-export.[hc]
14765         * plug-ins/python/pydia-font.[hc]
14766         * plug-ins/python/pydia-geometry.[hc]
14767         * plug-ins/python/pydia-image.[hc]
14768         * plug-ins/python/pydia-properties.[hc]
14769         * plug-ins/python/pydia-property.c
14770         * plug-ins/python/pydia-render.c : new objects in new files 
14772         * plug-ins/python/makefile.am : added new files but can't test it
14774         * plug-ins/python/pydia.def
14775         * plug-ins/python/makefile.msc : for win32 build
14777         * plug-ins/cgm/cgm.c
14778         * plug-ins/dxf/dxf-import.c
14779         * plug-ins/dxf/dxf-export.c
14780         * plug-ins/hpgl/hpgl.c : reflect export API change
14782         * plug-ins/shape/shape-export.c : reflect export API change
14783         and check for libart (better the availibility of a png exporter) 
14784         at run-time instead of compile-time. 
14786 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14788         * app/recent_files.h was missing from Hans's commit
14790         * plug-ins/shape/shape_export.c: shape export was broken
14791         due to interface changes
14792         
14793 2001-01-05  Hans Breuer <Hans@Breuer.Org>
14795         Applied Steffen's recent file list patch :
14796         * app/Makefile.am : added recent_files.[hc]
14797         * app/diagram.c : add files to recent file list
14798         * app/menus.c : add recent file menu
14799         * app/app_procs.c : changed initialization order to
14800         make recent file list work with command line processing.
14802         The Filter export()/import() functions have got an additional 
14803         parameter to allow multiple filters via one C callback (required
14804         for Python bindings)
14806         * app/commands.[hc] : corrected the signature for gtk menu callback
14807         functions, which actually use the second or third parameter. This
14808         is the absolute minimum change to make these functions/menu entries
14809         work again. Using the other possible gtk menu callback signature
14810         would have required one more function to change. (see mailing list
14811         thread "Objects/Align/Equal Distance" for more information.
14813         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
14814         zoom-combo focus patch
14816         * app/display.c
14817         * app/interface.c : wrapped the Zoom Combo code into 
14818         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
14819         improvement but cluttering the user interface. Also it wasn't
14820         compiling on Win32 anyway. The win32 version does define 
14821         WITHOUT_ZOOM_COMBO to keep the old look. 
14822         There are plans to use the statusbar to display size and placement
14823         of selected objects, whereas the Zoom Combo would need to get out
14824         of the way as well.
14826         Added "Save Changes?" to diagram close dialog. Hopefuly the
14827         Yes/No/Cancel option isn't too much windoze like. IHMO this is
14828         an useability improvement.
14830         * app/export_png.c
14831         * app/filedlg.c
14832         * app/load_save.c
14833         * app/layer_dialog.c
14834         * app/paginate_psprint.c
14835         * app/render_eps.c
14836         - reflect signature changing of filter->export function
14837         - replaced '/' with G_DIR_SEPARARTOR where appropriate
14839         * app/diaunitspinner.c
14840         * app/render_libart.c
14841         added misssing headers like <string.h>
14843         * app/object_ops.c : fixed copy&paste bug in dialog string
14845         * app/splash.c : gdk_widget_show_now () does not ensure actual
14846         drawing of the splash screen, at least not on win32. Reuse the
14847         previous implementation with gtk_main_iteration() again.
14849         * */makefile.msc : make use of the build module (available in
14850         gnome-cvs/build. Updated for other source changes
14852         * lib/filter.h : added an user_data pointer to <ex/im>port()
14853         function signature and Dia<Im/Ex>portFilter to allow different
14854         filters to reuse the same callback function
14856         * lib/font.c : #include <string.h>
14858         * lib/orth_conn.c 
14859         * lib/poly_conn.c 
14860         * lib/poly_shape.c 
14861         * lib/neworth_conn.c
14862         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
14864         * */*.def : export function definition files required by win32 build
14866         * objects/custom/custom.c : #include <string.h>
14868         * plug-ins/pstricks/render_pstricks.c
14869         * plug-ins/shape/shape_export.c
14870         * plug-ins/svg/render_svg.c
14871         reflect changes to filter export function signature
14873         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
14874         mostly work as expected
14875         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
14876         to build the wmf plug-in because on the one hand the GDI emulation 
14877         isn't finished and on the other hand it isn't required when building
14878         for win32. Is there anybody out there, who wants to save WMF on non
14879         windoze platforms ?
14881         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
14882         offset into account.
14884 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
14886         * app/Makefile.am: added missing plug-ins to run_dia.sh
14888         * lib/paper.c: added paper sizes A0, A1, A2
14890         * objects/UML/class.c
14891         objects/UML/class.h
14892         objects/UML/class_dialog.c: added support for colored UML
14893         classes
14894         
14895 2000-12-30  Kevin Breit <battery841@mediaone.net>
14897         * doc/en/usage-customization.sgml: added more content
14899 2000-12-24  Kevin Breit <battery841@mediaone.net>
14901         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
14902         <remy.viard@laposte.net>
14904 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
14906         * added limiting lines to Civil Engineering sheet,
14907         fixed vertical pump icon
14908         
14909 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
14911         * updated/additional Civil Engineering shapes: better icons,
14912         shapes use foreground/background colors now and are filled
14913         
14914 2000-12-03  Kevin Breit  <battery841@mediaone.net>
14916         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
14917         the selection <sect1>
14919 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
14921         * app/load_save.c (diagram_data_save): avoid using obsoleted
14922         libxml calls (only matters when compiling with libxml2)
14924 2000-11-25  James Henstridge  <james@daa.com.au>
14926         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
14927         handle the tool drops on the canvas.
14929         * app/interface.c (display_data_received_callback): do the check
14930         to make sure that the drag is from a local toolbox here as well.
14932         * app/interface.c (create_tools): unref the pixmap/mask after
14933         creating the GtkPixmap.
14934         (tool_setup_drag_source): function to set up a drag source for
14935         create object tool buttons.
14936         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
14937         (fill_sheet_wbox): same here.
14938         (create_display_shell): set up the display canvas as a drag
14939         destination.
14940         (display_drop_callback, display_data_received_callback): functions
14941         to handle drops of tool buttons.
14943         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
14944         does weird shit to the user_data pointer for a menu item.  Object
14945         alignment should work again now.
14947         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
14948         NULL, and mark this function static.
14949         (app_splash_init): use gtk_widget_show_now() instead of the
14950         gtk_main_iteration loop.
14951         (app_splash_init): connecting gtk_widget_destroy to the destroy
14952         signal of a widget seems pretty useless.
14954 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
14956         * doc/en/dia-manual.sgml:
14957                 Added sect1 for advanced object types.  Starting development
14958                 on that part.
14960 2000-11-18  Kevin Breit <battery841@mediaone.net>
14962         * doc/en/dia-manual.sgml:
14963                 Stupid spelling fixes.
14965 2000-11-18  Kevin Breit <battery841@mediaone.net>
14967         * doc/en/dia-manual.sgml:
14968                 Just some small changes I made.  Props to Greg LeBlanc on the
14969                 recommendations.
14971 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
14973         * app/display.c:
14974         (ddisplay_add_display_area): Clip input rectangle to
14975         the visible part of the display.
14976         (ddisplay_scroll): Optimization, don't scroll and
14977         redraw if moving to the same position as before.
14979         * app/render_libart.c (renderer_libart_copy_to_window):
14980         Removed sanity check. Now moved to ddisplay_add_display_area().
14982         * lib/diavar.h:
14983         Added return at end of file.
14984         
14985 2000-11-13 Kevin Breit <battery841@mypad.com>
14986         * doc/en/dia-manual.sgml
14987                 Commited manual changes from Henry House <hajhouse@houseag.com>
14989 2000-10-21 Hans Breuer <Hans@Breuer.Org>
14990         * lib/beziershape.c :
14991                 The previous code was accessing unowned memory due to IHMO
14992                 wrong index calculation. Now it appears to be fixed.
14993                 *Please Review!*
14995         * lib/makefile.msc
14996         * plug-ins/makefile.msc
14997         * objects/makefile.msc
14998         * app/makefile.msc: (new files)
14999                 Makefiles for Dia on Win32, Micro$oft VC only.
15001         * plug-ins/pstricks/render_pstricks.c
15002         * plug-ins/dxf/dxf-import.c
15003         * plug-ins/shape/shape-export.c
15004         * plug-ins/svg/render_svg.c
15005         * app/commands.c
15006         * app/filedlg.c
15007         * app/preferences.c
15008         * app/render_eps.c
15009         * lib/sheet.c
15010         * lib/plug-ins.c
15011         * objects/custom/custom.c
15012         * objects/standard/image.c
15013                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
15014                 where   appropriate, add missing prototypes like <string.h>
15016         * plug-ins/wmf/wmf_gdi.cpp
15017         * plug-ins/wmf/wmf_gdi.h:
15018                 start of wmf write functions for non Win32 platform. Not 
15019                 finished yet. The other way to get it working maybe to
15020                 link the plug-in against wine libs.
15021                 
15022         * plug-ins/wpg/wpg.c : add missing brace
15024         * app/load_save.c :
15025                 Handling for unknown objects at load time. Previously Dia
15026                 was crashing, if you try to load a file referencing objects
15027                 whiches plug-ins aren't installed/available. Now it spits out 
15028                 a warning and ignores the unknown objects.
15030         * app/interface.c
15031                 toolbox DND support for files like The Gimp does it.
15033         * app/main.c
15034         * app/app_procs.h
15035                 Simple splash screen support and usage.
15037         * app/app_procs.c
15038                 Splash screen, portability fixes, dont' g_error if there is
15039                 g_get_homedir return NULL. This may remove the one and only
15040                 FAQ for Win32.
15042         * app/menus.c :
15043                 Make it compile without ENABLE_NLS
15045         * app/render_libart.c :
15046                 Sanity check to avoid calling libart with wrong window coordinates.
15047                 They come from the update handler. Direct Gdk is dealing nicely
15048                 with coordinates out of range, libart does access un-owned memory
15049                 in this case, mostly causing crashes.
15051         * app/winmain.c: (new file) Export the Win32 Gui version of the
15052                 main function. This file is only required for Windoze.
15054         * app/splash.c: (new file) splash screen implementation
15056         * lib/color.h
15057         * lib/font.h
15058         * lib/diavar.h: (new file)
15059                 moved special variable export code to diavar.h, because it is
15060                 needed in color.h and font.h
15062         * lib/paper.c :
15063                 M$VC cann't export inlined functions. Quick hack to let it
15064                 link again. Probably the glib mechanics should be used here?
15066         * objects/UML/lifeline.c : initialize var before usage
15068         * objects/GRAFCET/step.c : removed unused var
15070 2000-10-14  James Henstridge  <james@daa.com.au>
15072         * app/render_gnomeprint.c (draw_image): change code so images
15073         don't get flipped when printing.
15075         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15076         sure that the return value of
15077         gnome_print_context_new_with_paper_size is not NULL.
15079         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15080         into a series of bezier segments.
15081         (fill_arc): similar code to handle filled arc segments.
15083 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
15085         * app/app_procs.c
15086         * app/commands.c
15087         * app/dia-props.c
15088         * app/diagram.c
15089         * app/diagram.h
15090         * app/disp_callbacks.c
15091         * app/display.c
15092         * app/linewidth_area.c
15093         * app/paginate_psprint.c
15094         * app/preferences.c
15095         * app/undo.c
15096         * app/font.c
15097         * app/message.c
15098         * app/neworth_conn.c
15099         * app/orth_conn.c
15100         * objects/standard/box.c: various small changes to get rid of 
15101         annoying warnings (eg faulty prototypes and unused variables)
15103         * app/disp_callbacks.c
15104         * app/cursor.h
15105         * app/magnify.c
15106         * app/magnify.h: update magnify tool icon when pressing/releasing
15107         shift. I will try to make something more general so that similar
15108         things can be used by other tools.
15110         * shapes/SDL/inout.shape
15111         * shapes/SDL/return.shape: fixed some typos
15113 2000-10-09  James Henstridge  <james@daa.com.au>
15115         * objects/custom/shape_info.c (parse_path): apply patch from
15116         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15117         #25221
15119 2000-10-08  James Henstridge  <james@daa.com.au>
15121         * objects/standard/image.c (image_set_props): if the file could not
15122         be loaded, show the broken image icon.
15124         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15126         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15128         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15129         object icon when loading from a file.  This allows you to have PNG
15130         icon files for shapes.
15132 2000-10-07  James Henstridge  <james@daa.com.au>
15134         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15136         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15137         GDK_IMLIB_CFLAGS reference.
15139         * app/commands.c (help_about_callback): remove imlib code.
15141         * lib/dia_image.c: only include the pixbuf version of the image
15142         routines.
15144         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15146         * configure.in (CPPFLAGS): remove the check for imlib, as we now
15147         require gdk-pixbuf.
15149         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15150         conditionally define \setfont as well.
15152 2000-10-05  James Henstridge  <james@daa.com.au>
15154         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15155         preamble so that we define \setlinejoinmode and \setlinecaps
15156         commands conditionally on them being undefined.  This way, the
15157         pstricks output files should work without modification, and will
15158         support the commands when they are implemented in pstricks.
15160 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
15162         * dia.desktop: added hungarian translations to dia.desktop
15164 2000-10-04  James Henstridge  <james@daa.com.au>
15166         * sheets/UML.sheet: fix typo.
15168         * objects/custom/shape_info.c: use strtod instead of g_strtod.
15169         (parse_path): actually call setlocale around strtod calls.
15171         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
15172         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15173         the g_strtod wrapper.
15175         * shapes/SDL/: add SDL shapes from Rubens Ramos
15176         <rubens_ramos@yahoo.com>
15178         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15180         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15182         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15183         W. Michael Petullo <mike@flyn.org>.
15185         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15186         from the 0.86 tarball) and jigsaw.sheet.
15188         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15190         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15192         * shapes/network/: add network-additional shapes here.
15194         * sheets/network.sheet: add the network-additional shapes from
15195         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15196         sheet.
15198 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15200         * configure.in: Updated ALL_LINGUAS
15202         * po/nl.po: Removed newline from translation
15204 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
15206         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
15207         logo filename generation. 
15209         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15210         Avoiding "//dia_logo.png".
15212 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
15214         * app/filedlg.c: add include <sys/types.h> to
15215         remove warning. (OS/2)
15217 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
15219         * objects/chronogram/chronoline_event.c (reparse_clevent):
15220         the __checksum routine was simply bogus. Redone it in a slightly
15221         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15223 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
15225         * app/create_object.c (create_object_button_press): 
15226         * app/modify_tool.c (click_select_object): 
15227         * lib/object.h: select renamed to selectf to prevent
15228         compiler problems with function select().  OS/2 version.
15230 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
15232         * po/de.po: Updated.
15234 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
15236         * dia.desktop: Added German translation
15237         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15239 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
15241         * configure.in (ALL_LINGUAS): added "es"
15243 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15245         * app/magnify.c:
15246         * app/cursor.h:
15247         * app/cursor.c:
15248         * app/scroll_tool.c:
15249         Standardized cursor function get_cursor().  Magnify now has
15250         looking-glass cursor with + and -.
15252         * app/create_object.c (create_object_button_press): 
15253         Newly created connections now snap to connection points even when
15254         off the grid. 
15256 2000-08-17  Daniel Egger  <egger@suse.de>
15258         * app/menus.c: #ifdef'ed some code for the none GNOME
15259         case.
15260         * app/dia_embedd.c: Changed obvious hackery. Can anyone
15261         please have a look at the GNOME UI menu creation? The
15262         gnome-app-helper code is ages old and plainly broken!
15264 2000-08-15  Daniel Egger  <egger@suse.de>
15266         * app/commands.c:
15267         * app/commands.h:
15268         * app/diagram.c:
15269         * app/display.c:
15270         * app/menus.c:
15271         * app/select.c: First big patch to get the menus
15272         working again in the international version. Copied
15273         some code written by Sven and me from GIMP and
15274         thus implemented automatic tearoffmenu creation and
15275         proper translation. I also removed that pseudo
15276         radiomenu hack and cleaned up several translation
15277         hacks which have never really worked. All in all
15278         this is part I of the big menu patch. Enjoy and tell
15279         me if you detect any problems.
15281 2000-08-14  Daniel Egger  <egger@suse.de>
15283         * sheets/UML.sheet: Changed one German translation as
15284         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15286 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
15288         * app/diapagelayout.c:
15289         * lib/diagramdata.c:
15290         * lib/diagramdata.h:
15291         * lib/Makefile.am:
15292         * lib/paper.c:
15293         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15294         selecting paper size for a new diagram. TODO: Use libpaper if 
15295         available and use gnome_paper-stuff if using GNOME.
15297         * sheets/Electric.sheet: fixed typo.
15298         
15299 2000-08-08  James Henstridge  <james@daa.com.au>
15301         * po/README: added a readme file to tell translators to translate
15302         the .sheet files as well.
15304         * app/commands.c (help_about_callback): fix small bug where we tried
15305         to gdk_bitmap_unref() the mask for the about box image, even though
15306         it was NULL.  Now check for a NULL mask.
15308 2000-08-07  Daniel Egger  <egger@suse.de>
15310         * sheets/*.sheet: Added translations for the name
15311         in the toolbar tab. Brushed up some descriptions 
15312         and some translations a bit.
15314 2000-08-06  James Henstridge  <james@daa.com.au>
15316         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15317         identifier and dtd url for SVG output.
15318         (new_svg_renderer): fix the output of the viewBox output.  The
15319         second two numbers are the width and height -- not the right
15320         and bottom sides of the box.
15322         * shapes/*/*.shape: update svg namespace URI.
15324         * objects/custom/shape_info.c (load_shape_info): change the
15325         namespace URI for custom shapes yet again to match the Candidate
15326         Recommedation.  It looks like this one will probably be the final
15327         one.
15329         * app/display.c (new_display): remove the code that sets ic and
15330         ic_attr members to NULL, as one of the previous function calls
15331         causes the display to be realised.  This means that the ic gets
15332         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15333         this one.
15335 2000-08-06  James Henstridge  <james@daa.com.au>
15337         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15339         * NEWS: fixed date in NEWS file, as I will release today.
15341         * README: updated the README a little.  Added note that Dia is now
15342         a GNU program.
15344         * dia.spec: fix up spec file.
15346         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15348         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15349         get heaps of warnings when you turn off debugging.
15350         Also made a few other warning fixes.
15352 2000-08-02  James Henstridge  <james@daa.com.au>
15354         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15356         * configure.in: update version number.
15358 2000-08-01  James Henstridge  <james@daa.com.au>
15360         * app/commands.c (help_about_callback): add Hans to about dialog.
15362         * doc/shape.dtd: dtd for shape file format.
15364         * doc/custom-shapes: update doc file about creating custom shapes.
15366         * shapes/*/*.shape: change namespace URI for the SVG portion to the
15367         one for the latest draft.
15369         * shapes/*/*.shape: fix up rect definitions.
15371         * objects/custom/shape_info.c (load_shape_info): recognise newer
15372         namespace tag for SVG.
15373         (parse_svg_node): the rect element should take attributes x, y, width
15374         and height -- not x1,y1,x2,y2.
15376         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15377         output to use the newest draft DTD.
15379         * plug-ins/svg/svg.c: initialisation code for plugin.
15381         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15383         * plug-ins/svg/Makefile.am: makefile for svg plugin.
15385         * app/app_procs.c (internal_plugin_init): don't register the svg
15386         export filter here.
15388         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15390 2000-07-31  James Henstridge  <james@daa.com.au>
15392         * objects/standard/textobj.c (textobj_get_defaults): 
15393         * objects/standard/polygon.c (polygon_get_defaults): 
15394         * objects/standard/image.c (image_get_defaults): 
15395         * objects/standard/ellipse.c (ellipse_get_defaults): 
15396         * objects/standard/box.c (box_get_defaults): 
15397         * objects/standard/beziergon.c (beziergon_get_defaults): 
15398         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
15399         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
15400         * objects/flowchart/diamond.c (diamond_get_defaults): 
15401         * objects/flowchart/box.c (box_get_defaults): 
15402         * objects/custom/custom_object.c (custom_get_defaults): 
15403         * objects/FS/flow.c (flow_get_defaults): 
15404         * objects/FS/flow-poly.c (flow_get_defaults): 
15405         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15406         defaults widget.
15408         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15409         widgets for various object types.
15410         (create_dialog): ref and sink the no_defaults_dialog.
15412         * app/preferences.c (prefs_create_dialog): change
15413         gtk_container_border_width call to gtk_container_set_border_width.
15415 2000-07-29  James Henstridge  <james@daa.com.au>
15417         * app/commands.c (view_aa_callback): show a warning dialog if
15418         you start AA mode.
15420         * app/interface.c (fill_sheet_menu): don't add a menu item for
15421         empty sheets.
15423 2000-07-26  James Henstridge  <james@daa.com.au>
15425         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15427         * app/menus.c: remove edit grid menu item.
15429         * app/commands.[ch] (view_edit_grid_callback): removed.
15431         * app/display.c (new_display): don't initialise removed Grid members.
15433         * app/grid.c: remove unused functions.
15435         * app/grid.h: remove dialog related stuff from Grid structure.
15436         Remove prototypes for dialog functions.
15438         * app/menus.c: add to menus
15439         
15440         * app/commands.[ch] (view_diagram_properties_callback): new command
15441         for showing the diagram properties dialog.
15443         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
15444         the edit grid dialog.
15446 2000-07-25  James Henstridge  <james@daa.com.au>
15448         * app/grid.c (grid_x_update): 
15449         (grid_y_update): as the grid setting is stored with the diagram,
15450         update all displays when a change is made.
15452         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15454         * app/create_object.c (create_object_button_press): 
15455         (create_object_motion): use new snap_to_grid signature.
15457         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15458         and handle invisible grid lines.
15459         (snap_to_grid): use new grid settings.  Also changed signature to
15460         take a DDisplay rather than Grid pointer.
15461         (grid_show_dialog): get the defaults from the correct place.
15463         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15465         * app/diagram.c (new_diagram): set the grid size defaults from the
15466         user preferences.
15468         * app/load_save.c (diagram_data_save): save grid and guide info to
15469         diagram file.
15470         (diagram_data_load): add guide and grid load support.
15472         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15473         members.
15475         * lib/diagramdata.h: add members to DiagramData for grid and guide
15476         settings.
15478         * configure.in (BONOBO_LIBS): update configure scripts
15480         * app/dia.oafinfo: oafinfo file for dia embeddables.
15482         * app/dia_embedd.c: add OAF support.
15484 2000-07-24  James Henstridge  <james@daa.com.au>
15486         * plug-ins/wpg/Makefile.am: 
15487         * plug-ins/pstricks/Makefile.am: 
15488         * plug-ins/hpgl/Makefile.am: 
15489         * plug-ins/dxf/Makefile.am: same here.
15491         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
15492         the required libraries, and the link line was causing libtool not
15493         to build a shared library on some systems :(
15495         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15496         be checking x, not n.
15498 2000-07-23  James Henstridge  <james@daa.com.au>
15500         * app/preferences.c (prefs_data): set the "reset tools after
15501         create" preference to true by default.  That seems to be what most
15502         people expect.
15504         * app/interface.c (create_sheets): instead of a notebook, use an
15505         option menu that updates the sheet tools.  The notebook tabs were
15506         getting a bit unwieldly, so the option menu should fix that.  This
15507         also reduces the number of widgets in the tools radio button
15508         group, which should make the UI a little more responsive.
15510 2000-07-19  Fatih Demir <kabalak@gmx.net>
15511         
15512         * configure.in: Added tr to ALL_LINGUAS.
15513                 [ Yeah, we're now having a Turkish translation,
15514                    too. ]
15515         
15516         * dia.desktop: Added the Turkish entries.
15518 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
15520         * doc/diagram.dtd: changed string-element so it conforms to the
15521         output from dia.
15523 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15525         * configure.in: added chinese. 
15526         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15528         * app/app_procs.c:
15529           app/load_save.c:
15530           app/render_svg.c:
15531           lib/dia_xml.c:
15532           lib/plug-ins.c:
15533           lib/sheet.c:
15534           objects/custom/shape_info.c: 
15535           shapes/Circuit/npn.shape:
15536           shapes/Circuit/pnp.shape:
15537           sheets/*.sheet: dia now works with libxml2.
15538         Libxml2 is a bit more picky when parsing xml and reported errors on all 
15539         sheet files because they use non ascii characters (added 
15540         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
15541         I commented out these.
15543 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
15545         * configure.in (ALL_LINGUAS): added Italian
15547 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
15549         * configure.in (ALL_LINGUAS): added Korean
15551 2000-06-25  James Henstridge  <james@daa.com.au>
15553         * objects/flowchart/parallelogram.c (pgram_create): use default font
15554         and add properties interface support.
15556         * objects/flowchart/ellipse.c (ellipse_create): use default font and
15557         add properties interface support.
15559         * objects/flowchart/diamond.c (diamond_create): use default font and
15560         add properties interface code.
15562         * objects/flowchart/box.c (box_create): use default font.
15564         * objects/custom/custom_object.c (custom_create): use default font
15565         here too.
15567         * objects/standard/textobj.c (textobj_create): update to use default
15568         font.
15570         * lib/attributes.c: add implementations.
15572         * lib/attributes.h (attributes_[gs]et_default_font): add function
15573         prototypes for setting/getting a default font.
15575 2000-06-24  James Henstridge  <james@daa.com.au>
15577         * app/paginate_gnomeprint.h: updated prototype.
15579         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15580         diagram page settings.
15582         * objects/standard/beziergon.c (beziergon_copy): same here.
15584         * objects/standard/polygon.c (polygon_copy): copy the fill colour
15585         as well.
15587         * app/undo.h: 
15588         * app/tool.h (tool_options_dialog_show): 
15589         * app/scroll_tool.h (free_scroll_tool): 
15590         * app/render_svg.h: 
15591         * app/render_libart.h (renderer_libart_copy_to_window): 
15592         * app/render_gdk.h (renderer_gdk_copy_to_window): 
15593         * app/properties.h (properties_hide_if_shown): 
15594         * app/preferences.h (prefs_load): 
15595         * app/object_ops.h: 
15596         * app/modify_tool.h (free_modify_tool): 
15597         * app/magnify.h (free_magnify_tool): 
15598         * app/linewidth_area.h (linewidth_area_create): 
15599         * app/layer_dialog.h: 
15600         * app/handle_ops.h (handle_is_clicked): 
15601         * app/group.h: 
15602         * app/grid.h (grid_destroy_dialog): 
15603         * app/defaults.h (defaults_show): 
15604         * app/cut_n_paste.h (cnp_exist_stored_objects): 
15605         * app/create_object.h (free_create_object_tool): 
15606         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
15607         * app/commands.h: 
15608         * app/color_area.h (color_area_create): 
15609         * app/app_procs.h (app_is_embedded): remove extern keyword from
15610         function prototypes.
15612         * lib/text.h: 
15613         * lib/sheet.h (load_all_sheets): 
15614         * lib/render_store.h: 
15615         * lib/render_object.h (render_object_load): 
15616         * lib/polyshape.h (polyshape_closest_segment): 
15617         * lib/poly_conn.h (polyconn_closest_segment): 
15618         * lib/orth_conn.h: 
15619         * lib/object.h: 
15620         * lib/objchange.h (new_object_state_change): 
15621         * lib/neworth_conn.h (neworthconn_add_segment): 
15622         * lib/message.h (message_error): 
15623         * lib/lazyprops.h: 
15624         * lib/geometry.h: 
15625         * lib/font.h (font_descent): 
15626         * lib/focus.h (remove_focus): 
15627         * lib/element.h: 
15628         * lib/diagramdata.h: 
15629         * lib/dia_xml.h (data_add_composite): 
15630         * lib/dia_image.h: 
15631         * lib/connpoint_line.h: 
15632         * lib/connection.h (connection_move_handle): 
15633         * lib/color.h: 
15634         * lib/attributes.h (attributes_set_default_line_style): 
15635         * lib/arrows.h (arrow_draw): remove extern keyword from function
15636         definitions.  It is not required for functions.
15638         * plug-ins/dxf/Makefile.am (INCLUDES): 
15639         * plug-ins/pstricks/Makefile.am (INCLUDES): 
15640         * plug-ins/cgm/Makefile.am (INCLUDES): 
15641         * objects/SADT/Makefile.am (INCLUDES): 
15642         * objects/chronogram/Makefile.am (INCLUDES): 
15643         * objects/GRAFCET/Makefile.am (INCLUDES): 
15644         * objects/flowchart/Makefile.am (INCLUDES): 
15645         * objects/sybase/Makefile.am (INCLUDES): 
15646         * objects/FS/Makefile.am (INCLUDES): 
15647         * objects/standard/Makefile.am (INCLUDES): 
15648         * objects/network/Makefile.am (INCLUDES):
15649         * objects/UML/Makefile.am (INCLUDES): same here.
15651         * objects/ER/Makefile.am: changed inclusion of some macros to
15652         variables.
15654         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15655         handle the plug in extension, rather than have all the #ifdef's in
15656         the code.
15658         * plug-ins/Makefile.am: add renderer.inc to dist.
15660         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15662 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
15664         * lib/plug-ins.c: Handle OS/2 dll's too.
15666 2000-06-07  James Henstridge  <james@daa.com.au>
15668         * app/plugin-manager.c (get_plugin_manager): set some table
15669         packing options to make it look a little nicer.
15671         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15672         makefiles for these plug-ins.
15674         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15676         * configure.in: added hpgl and wpg directories to build.  Added
15677         note about whether gnome-print support was enabled, and noted that
15678         it is not recommended.
15680 2000-06-06  James Henstridge  <james@daa.com.au>
15682         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
15683         a little work, but I am checking them in so I don't lose them.
15685 2000-06-01  James Henstridge  <james@daa.com.au>
15687         * objects/standard/arc.c: added extra properties.
15689         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15690         was using the wrong index into the handles array.  This gets corner
15691         type changing working correctly.
15693         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15694         to properties code (no editing or loading yet though).  Also added
15695         support for point array manipulation through the offsets interfaces.
15697         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
15699         * app/interface.c (origin_button_press): changes so the origin
15700         button doesn't grab the pointer when we pop up the menu.
15702         * app/commands.c (help_about_callback): fix small memory leak in
15703         about box code.
15705         * app/menus.c (menus_init): fixed breakage I introduced in the non
15706         gnome menus when I was doing the menu changes.  The tearoffs work
15707         really nicely in plain gtk mode as well.
15709         * objects/standard/beziergon.c (beziergon_create): changed the
15710         returned handles to match the handle numbering changes.  Now
15711         segment addition and removal works correctly with undo!
15713         * lib/beziershape.c: various changes to the code.  Changed the
15714         numbering of handles, and fixed the segment removal code.
15716 2000-05-31  James Henstridge  <james@daa.com.au>
15718         * objects/standard/beziergon.c: remove connection point handling.
15719         There is still a bit of work to be done to get adding and removing
15720         of segments working correctly.
15722         * lib/beziershape.c: add connection point handling to beziershape.
15723         I set it for two connection points per segment.
15725 2000-05-30  James Henstridge  <james@daa.com.au>
15727         * objects/standard/polygon.c: don't do connectionpoint handling.
15729         * lib/polyshape.c: changed to handle connection points internally.
15730         Also, don't worry about connections to handles on polyshape, as
15731         all handles are non connectable.
15733 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
15735         * configure.in: Added finnish
15736         
15737 2000-05-30  James Henstridge  <james@daa.com.au>
15739         * sheets/*.sheet: translation updates to the .sheet files.
15741         * po/fr.po: updated po file from Christophe Merlet.
15743         * menus.h: removed prototypes for functions which have been removed.
15745 2000-05-29  James Henstridge  <james@daa.com.au>
15747         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
15748         item in the option menu when changing selected diagram.
15750         * app/dia_embedd.c (view_factory): fix up function to work with new
15751         menus API.
15753         * app/disp_callbacks.c (ddisplay_realize): remove call to
15754         display_set_active from here.
15755         (ddisplay_canvas_events): move call here.  This gets rid of all the
15756         warnings, as the renderer has been fully set up correctly at this
15757         point.
15759         * app/menus.c (menus_init): add the tearoff item to the start of the
15760         right click menu.
15762         * app/app_procs.c (create_user_dirs): we don't need to create the
15763         menus directory anymore.
15765         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
15766         necessary to update the menu state here, as it was done when the
15767         active display was set.
15769         * app/display.c (display_set_active): update the menu state when
15770         changing active displays.
15772         * app/interface.c (origin_button_press): set the display as active
15773         when a click is made on the menu button.
15775         * app/menus.c (menus_init): set up a quit function to save the accels
15776         at exit.
15777         Add tearoff items for the non GNOME menus, add accelerators for
15778         several GNOME menus.
15780         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
15781         menus_get_image_menu().
15783         * app/menus.c (menus_get_item_from_path): use display_menus here
15784         rather than ddisp->popup.
15786         * app/display.h: remove the popup member in the DDisplay structure.
15788         * app/interface.c: remove option of not using wrap box.
15789         (create_toolbox): change to always use menus_get_toolbox_menubar
15790         even when using gnome menus.
15791         (create_display_shell): use menus_get_image_menu to load accelerators
15792         only -- not the actual popup menu.
15794         * app/menus.c (menus_init): new function to create the menus.
15795         (menus_get_toolbox_menubar): use this function whether gnome is
15796         in use or not.  Changed to use menus_init.
15797         (menus_get_image_menu): same here.  Also, now this function always
15798         returns the same menu, rather than a new one each time.
15799         (menus_init): read a menurc file to load accelerators here.
15801 2000-05-28  James Henstridge  <james@daa.com.au>
15803         * app/display.c (ddisplay_really_destroy): unset active display if
15804         active display is destroyed.
15805         (ddisplay_active): simplify function to return active_display as set
15806         by display_set_active.  This allows using a pinned menu with any
15807         display -- not just the one it was popped up from.
15808         (display_set_active): notify the layer dialog of change of diagrams
15809         when active diagram changes.
15811         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
15812         on button and key presses.
15813         (ddisplay_realize): set active display on realize.
15815         * app/display.c (display_set_active): simple implementation of this
15816         function.
15818         * app/display.h (display_set_active): add prototype for setting
15819         the active display.
15821         * app/interface.c (create_display_shell): don't give focus to the
15822         menu button.
15824         * app/menus.c: fix up menus for Beziergon.
15826         * app/interface.c (create_display_shell): make the widget in the
15827         top left corner a button that can be used to pop up the right click
15828         menu, like in gimp and sketch.
15830         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
15831         the display menu.
15833         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
15834         add code to set corner types for beziergon.
15836         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
15837         setting code.
15838         (beziershape_move_handle): use the previous corner type for right
15839         controls.
15841         * app/interface.c (tool_data): add beziergon to toolbox.
15843         * objects/standard/standard.c (dia_plugin_init): initialise the new
15844         Beziergon object type.
15846         * objects/standard/beziergon.c: an object based on BezierShape.
15848         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
15850         * lib/beziershape.[ch]: new files implementing a bezier shape.
15852 2000-05-26  James Henstridge  <james@daa.com.au>
15854         * lib/text.c (text_key_event): handle multibyte inserts.
15855         (text_key_event): also add home and end keybindings.
15857         * app/interface.c (create_display_shell): connect handlers for
15858         focus_in_event, focus_out_event, realize and unrealize signals.
15860         * app/display.[ch] (new_display): initialise input context members.
15862         * app/disp_callbacks.[ch]: added XIM support here.
15864         * lib/font.c (suck_font): the black and white pixel values should be
15865         taken from a 1 bit colormap rather than the default colormap.
15867         Hans Breuer's Windows patches ...
15869         * lib/font.c: use Courier New for fixed width font on windows
15870         machines.
15872         * lib/dia_image.h: change to "struct _DiaImage".
15874         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
15876         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
15877         mouse button for object menu.  This will make two button mouse owners
15878         happier.
15880 2000-05-25  James Henstridge  <james@daa.com.au>
15882         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
15884         * app/app_procs.c (app_init): add extra NULL argument to call of
15885         diagram_load.
15887         * app/load_save.h: remove prototype.
15889         * app/load_save.c: remove diagram_data function here.
15891         * app/diagram.h: added prototype.
15893         * app/diagram.c (diagram_load): new function here, which uses import
15894         filters.
15896         * plug-ins/dxf/dxf.c: register the import filter as well.
15898         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
15899         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
15901         * objects/standard/line.c: add start_point and end_point properties
15902         to standard line object.
15904 2000-05-21  James Henstridge  <james@daa.com.au>
15906         * app/paginate_psprint.c: added missing include of locale.h.
15908         * objects/custom/custom_object.c (custom_draw): use fabs rather than
15909         abs for scaling factors.
15910         (custom_distance_from): same here.
15912         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
15914 2000-05-18  James Henstridge  <james@daa.com.au>
15916         * po/POTFILES.in: updated POTFILES.in.
15918         * dia.spec: incremented version number in spec file.
15920         * NEWS: added (lots of) news items for the 0.85 release.
15922         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
15923         the config file.
15925         * configure.in: updated version number here.
15927         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
15929 2000-05-17  James Henstridge  <james@daa.com.au>
15931         * app/app_procs.c (internal_plugin_init): register the native import
15932         filter.
15934         * app/load_save.c (diagram_data_load, diagram_load): split this
15935         function into two -- one that does all the work on the DiagramData
15936         structure, and the other that provides compatibility with the old
15937         function.
15938         (dia_import_filter): use diagram_data_load to define an import
15939         filter.
15941         * app/diagram.h (new_diagram): added const to prototype.
15943         * app/filedlg.c (file_open_callback): change to use new import filter
15944         code.
15946         * lib/filter.c: added import filter management functions.
15948         * lib/filter.h: added prototypes for import filter interface.
15950         * app/commands.c (help_about_callback): updated about dialog to
15951         contain a few more names.
15953 2000-05-16  James Henstridge  <james@daa.com.au>
15955         * configure.in (Configuration): added a status message to the end of
15956         the configure script to give the user some idea of what was
15957         configured.
15959         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
15961         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
15962         plugin.
15964         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
15965         filter for dia.
15967         * configure.in (AM_PATH_LIBART): use the check function provided
15968         with libart rather than our own code.  It is more reliable, and
15969         it only requires that people who build out of CVS have libart.m4
15970         installed (not necessarily all of libart).
15971         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
15973 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
15975         * dia.desktop: Added Swedish translation.
15977 2000-05-09  James Henstridge  <james@daa.com.au>
15979         * lib/dia_xml.c: you can't free a const pointer, so remove const
15980         from variable definitions.
15982         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
15983         initialised correctly.
15985         * app/render_svg.c (export_svg): set locale to C.
15987         * app/paginate_psprint.c (paginate_psprint): set locale to C.
15989         * app/render_eps.c (export_eps): set locale to C for EPS export.
15991         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
15992         (data_add_point): same here.
15993         (data_add_rectangle): same here.
15994         (data_real): use g_strtod to convert strings to real numbers, so that
15995         locales are taken into account.
15996         (data_point): same here.
15997         (data_rectangle): same here.
15999         * AUTHORS: added Henk and Jacek to authors file.
16001         Daniel Egger's code cleanups.
16003         * app/select.c (select_invert_callback): remove unused variable.
16005         * app/plugin-manager.c (get_plugin_manager): fix typo.
16007         * app/load_save.c (read_connections, write_objects): 
16008         (write_connections): made some functions static.
16010         * app/interface.c (toolbox_delete, toolbox_destroy): made some
16011         functions static.
16013         * app/filedlg.c (file_export_callback): remove unused variable.
16015         * app/app_procs.c: various warning fixes.
16017         Integrating Jacek Pliszka's pstricks export filter.
16019         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
16021         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
16022         renderer (with a few small modifications by me).
16024         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
16026         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
16028 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
16030         * configure.in:
16031         * sheets/Makefile.am:
16032         * shapes/Makefile.am:
16033         * shapes/Civil/Makefile.am:
16034         * sheets/civil.sheet:
16035         * shapes/Civil/*:
16036         Added civil/hydraulic/structural engineering objects from
16037         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
16038         
16039 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
16041         * objects/FS/flow-poly.c:
16042         * objects/FS/flow.c:
16043         Fix division by zero in point_normalize().
16044         Patch by David Thompson <dcthomp@mail.utexas.edu>
16046 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
16048         * lib/arrows.c:
16049         * lib/bezier_conn.c:
16050         * lib/connpoint_line.c:
16051         Added checks for zero-length lines before calls to point_normalize.
16053 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16055         * app/preferences.c (prefs_data): Changed
16056         reversed_dragging_intersects to not make the dialog ridiculously
16057         wide.
16058         
16059 2000-04-22  James Henstridge  <james@daa.com.au>
16061         Hans's win32 patches:
16063         * app/export_png.c: include message.h
16064         * app/interface.c: include dia_dirs.h
16065         * app/linewidth_area.c: check for rint
16066         * app/main.c: include interface.h
16067         * app/paginate_psprint.c: remove unused variable.
16068         * app/preferences.c: include message.h
16069         * app/render_svg.c: include stdlib.h
16070         * app/select.c: include object_ops.h
16071         * lib/dia_dirs.c: miscelaneous fixes for win32.
16072         * lib/dia_image.c: include string.h
16073         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16074         * lib/properties.c: include stdlib.h
16075         * lib/properties.h: define extra data for standard properties as
16076         static variables on win32 (to get around dynamic linker problems).
16077         * objects/standard/polygon.c: polygon_create_change missing return
16078         statement.
16080 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
16082         * configure.in (ALL_LINGUAS): added Catalan
16084 2000-04-18  James Henstridge  <james@daa.com.au>
16086         * objects/standard/bezier.c (bezierline_get_object_menu): add a
16087         separator to the object menu between the add/remove segment items
16088         and the corner type items.
16089         (bezierline_get_object_menu): add code to disable the menu item for
16090         the current corner type.  Really just a cosmetic change.
16092         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16093         a NULL for the label or with no associated callback.
16095         * objects/standard/bezier.c (bezierline_menu_items): use the
16096         enumeration values rather than numeric values for the corner types.
16098         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16099         structure, and add code to handle it.  Also, don't save the corner
16100         types inline in the bez_points node.  The way it is conditionally
16101         including the element just feels like it will break.
16103         * lib/geometry.h (BezPoint): removed the corner_type stuff from
16104         BezPoint.  The corner type stuff is a user interface level idea rather
16105         than something required by the renderer, so should be taken care of
16106         at the object level.
16108 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16110         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16111         checks.  Weren't able to reproduce original bug, tough.
16113 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
16115         * sheets/Electric.sheet:
16116         * sheets/Contact.sheet:
16117         * sheets/Pneumatic.sheet:
16118         * sheets/Circuit.sheet: sprayed some <br/>'s around.
16119         (added a few French translations in the last file)
16120         
16121 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16123         * lib/geometry.h: 
16124         * lib/bezier_conn.h: 
16125         * objects/standard/bezier.c: 
16126         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16127         bezier points.  Only one minor problem known:  Menus are active
16128         for endpoints minor handles.
16129         11:28: Save and load now works, too.
16130         (bezierconn_closest_major_handle): 12:03: New function to get the
16131         non-control point handle associated with the nearest control
16132         point.  
16133         Also fixed the menu activation problem, and made remove_segment
16134         not remove the endpoint.
16136 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16138         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16139         new API is in use.
16141 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
16143         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16144         <sys/stat.h>.   OS/2 patch.
16146 2000-04-15  James Henstridge  <james@daa.com.au>
16148         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16149         Thompson's patch that adds undo support to the function structure
16150         diagram objects.
16152 2000-04-14  James Henstridge  <james@daa.com.au>
16154         * objects/custom/custom_object.c (custom_distance_from): new
16155         implementation of distance algorithm that actually takes the
16156         display list into account when calculating the distance.  Much nicer
16157         than a simple bounding box.
16159 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
16161         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16163 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16165         * objects/standard/polygon.c: Start of polygons own changes (for
16166         connectionpoints).  Need to do seperate changes in polyshape, too,
16167         rather than reuse the bezier changes.
16169 2000-04-13  James Henstridge  <james@daa.com.au>
16171         * lib/dia_image.c (dia_image_draw): use the new enumeration values
16172         from after the gdk-pixbuf cleanup.
16174         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16175         on for loop.  Last set of coefficients were not beeing calculated,
16176         which caused a bit of breakage.
16178         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16179         functions in geometry.c for calculating the closest segment.
16180         (bezierconn_distance_from): use distance_bez_line_point to calculate
16181         the distance.
16183         * lib/geometry.c (distance_bez_line_point): new function to calculate
16184         the distance from an open bezier line to a point.
16185         (distance_bez_shape_point): new function to calculate the distance
16186         from a closed bezier shape.
16187         (distance_ellipse_point): new function to calculate the distance from
16188         a filled ellipse to a point.
16190         * lib/geometry.h (BezPoint): moved this structure here from render.h
16192 2000-04-12  James Henstridge  <james@daa.com.au>
16194         * lib/geometry.c (distance_bez_seg_point): new function to calculate
16195         the distance from a bezier segment.
16197         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16198         to calculate the distance from the object.
16200         * lib/geometry.c (distance_polygon_point): function for calculating
16201         the distance from a polygon to a point.
16203 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
16205         * app/interface.c:
16206         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
16207         breaks can be inserted in the tool box. 
16209         * doc/sheet.dtd: updated the DTD
16210         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16211         
16212 2000-04-12  James Henstridge  <james@daa.com.au>
16214         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16215         macro if the dialog is a GtkDialog :(
16217 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16219         * objects/standard/polygon.c: Connectionpoints now properly
16220         managed in a GList.  As far as I can tell, this will not dieturb
16221         the order (but I have the nagging doubt...)
16223         * lib/polyshape.c: No longer knows about connectionpoints.
16225 2000-04-11  James Henstridge  <james@daa.com.au>
16227         * app/Makefile.am: fix makefile for bonobo build.
16229         * configure.in: fix checks for bonobo.
16231         * app/menus.c: added entries for the plugin manager.
16233         * app/Makefile.am (dia_core_files): added plugin manager to files
16234         list.
16236         * app/plugin-manager.[ch]: the plugin manager dialog.
16238         * app/display.c (display_update_menu_state): set the antialiased
16239         menu entry to the correct value.
16241 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
16243         * objects/custom/custom_object.c: not all renderers like ellipses with
16244         negative dimensions. This could cause ellipses to disappear when using
16245         the flip_h and flip_v functions.
16247         * samples/grafcet.dia: fixed speling and correctness.
16248         
16249 2000-04-11  James Henstridge  <james@daa.com.au>
16251         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16252         exposed the dia_plugin_load and dia_plugin_unload functions.
16254         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16255         already created PluginInfo structure.
16257         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16258         the pluginrc file.
16260         * lib/sheet.c: fix up call to dia_config_filename.
16262         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16263         file.  This would save information such as which plugins not to
16264         load during startup.
16266 2000-04-09  James Henstridge  <james@daa.com.au>
16268         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16270 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
16272         * lib/plug-ins.c (dia_register_plugins):
16273         Don't free the value returned from g_getenv.
16275 2000-04-09  Anders Carlsson  <andersca@gnu.org>
16277         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16279         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16281         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
16282         right to left, select objects that intersect the rubberbanding rectangle
16283         instead of selecting objects that are in the rectangle.
16285         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16287         * lib/diagramdata.h: Likewise.
16290 2000-04-09  James Henstridge  <james@daa.com.au>
16292         * lib/plug-ins.[ch]: add copyright messages to files.
16294         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16295         plugin interface.
16297         * objects/sybase/sybase.c (dia_plugin_init): 
16298         * objects/network/network.c (dia_plugin_init): 
16299         * objects/flowchart/flowchart.c (dia_plugin_init): 
16300         * objects/custom/custom.c (dia_plugin_init): 
16301         * objects/chronogram/chronogram.c (dia_plugin_init): 
16302         * objects/UML/uml.c (dia_plugin_init): 
16303         * objects/SADT/sadt.c (dia_plugin_init): 
16304         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
16305         * objects/FS/fs.c (dia_plugin_init): 
16306         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16307         object libraries.
16309         * objects/standard/standard.c (dia_plugin_init): change over to new
16310         plugin interface.
16312         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16313         the version checker for plugins.
16315         * app/app_procs.c: remove plugin loading code from here, and use
16316         code from plug-ins.[ch].  Also move registration of internal
16317         objects/filters to a `builtin' plugin.
16319         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16321         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16323         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16324         defined variable in EXTRA_DIST.
16326         * app/preferences.h: removed dia_config_filename from header.
16328         * app/preferences.c: removed dia_config_filename function.
16330         * lib/dia_dirs.c (dia_config_filename): moved function over to this
16331         file.  Also changed implementation slightly so that it should work
16332         on the win32 port correctly (and use NT home directories).
16334         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16335         it should have been.
16337         * lib/plug-ins.[ch]: new plugin loading code.
16339 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16341         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16343         * lib/polyshape.c: Fix closest segment finding, exposes deeper
16344         bugs in adding corners to 'wraparound' segment.
16346         * objects/standard/polygon.c: Added connection points (fixed so
16347         far), set menu sensitivity.
16349         * lib/polyshape.c: Changed to box-style handles, fixed for start
16350         and ends not being special, added initial connections,
16352         * lib/dummy_dep.h: Added polyshape (gotcha!)
16354         * objects/standard/pixmaps/ellipse.xpm: 
16355         * objects/standard/pixmaps/box.xpm: 
16356         Filled element pixmaps with white.
16358         * lib/polyshape.c: 
16359         * objects/standard/polygon.c: 
16360         * lib/polyshape.h: 
16361         * objects/standard/standard.c: 
16362         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
16363         * lib/Makefile.am (libdia_a_SOURCES): 
16364         * app/menus.c: 
16365         * app/interface.c (tool_data): 
16366         Added Standard/Polygon object and PolyShape lib object.  Still
16367         needs inside grab and connection points.
16369         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16370         available. 
16372         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16373         not wanted.
16375         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16376         if (argv) outside ifdefs.
16378 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16380         * objects/standard/image.c (image_set_props): 
16381         Aspect ratio is back in town.
16383         * app/Makefile.am (dia_LDADD): 
16384         * acconfig.h: 
16385         * configure.in: 
16386         Check for gdk_pixbuf (by default disabled, for now)
16388         * app/render_eps.c (draw_image): 
16389         * app/render_libart.c (draw_image): 
16390         * app/render_gnomeprint.c (draw_image): 
16391         Support for alpha mask in rendering.  Color postscript, too.
16393         * lib/dia_image.c: 
16394         * lib/dia_image.h: 
16395         Support for gdk_pixbuf and proper masking for exports.
16397 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
16399         * sheets/*.sheets: Updated Norwegian translations.
16400         
16401 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16403         * lib/text.c (text_insert_char): 
16404         * lib/render_store.c (add_data): 
16405         Made realloc double the alloced space rather than add
16406         a fixed amount, to reduce memory stress.
16408         * app/select.c: Added new select method 'Transitive'
16409         that select every reachable (by connections) object.
16411 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
16413         * dia.desktop: Added Norwegian translation.
16414         
16415 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16417         * app/render_eps.c:
16418         * app/render_svg.c:
16419         Don't dereference NULL pointer if the renderer
16420         couldn't open the file. Fix by Lars Clausen.
16421         Bug reported by Martin Chisholm <b1mt@unb.ca>
16422         
16423 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16425         * dia.desktop:
16426         * po/pt.po:
16427         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16429 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16431         * app/dia.gnorba (location_info):
16432         Changed to correct executable name.
16434 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16436         * app/app_procs.c:
16437         Don't do any argument parsing or initialization
16438         if argv==NULL.
16440         * app/dia_embedd.c:
16441         Call init_server_factroy before app_init.
16442         Call app_init with argv==NULL
16443         Now we don't get any critical error on startup.
16445         * configure.in:
16446         Add Electric and Pneumatic to makefile list.
16447         
16448 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
16450         * shapes/Electric/*:
16451         * sheets/Electric.sheet:
16452         Add some Electric circuit shapes.
16454         * shapes/Pneumatic/*:
16455         * sheets/Pneumatic.sheet:
16456         Add some Pneumatic & Hydraulic circuit shapes
16457         (both sheets are still incomplete, though feature enough 
16458         things for basic circuits).
16460         * shapes/Contact/l_*.(xpm|shape):
16461         * sheets/Contact.sheet
16462         * shapes/Contact/Makefile.am
16463         made the older electric circuit shapes in Contact obsolete (disabled
16464         them in the sheet, made that sheet Ladder only). Fixed the makefile
16465         for forgotten items.
16466         
16467 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
16469         * app/Makefile.am:
16470         Add support for Dia bonobo component.
16471         Currently a bit raw, so it's commented out.
16472         
16473         * app/dia_embedd.c:
16474         * app/dia.gnorba:
16475         New files for embedding dia.
16476         The menu disabling hack is a bit gross. Esp. for GNOME.
16478         * app/app_procs.h:
16479         Add new function app_is_embedded();
16481         * app/diagram.c:
16482         Don't destroy diagram when last display is destroyed if embedded.
16483         
16484         * app/display.c:
16485         Change initialization of display so it works with embedding.
16487         * app/display.h:
16488         Clarify comment about display destruction.
16490         * app/interface.[ch]:
16491         Added top_level_window argument to create_display_shell.
16492         Don't open a top-level window if embedding.
16493         Don't quit app if trying to close toolbox window when embedding.
16494         Add toolbox_show() and toolbox_hide().
16496         * app/main.c:
16497         Added app_is_embedded() function (just returns false).
16498         Added toolbox_show() call in main().
16500         * app/menus.c:
16501         Added code for getting toolbox menus. This is used to
16502         hide some menu items when running embedded.
16503         
16504         * app/app_procs.c:
16505         Include sheet.h to remove warning.
16507         * objects/UML/association.c:
16508         Clarify association direction text.
16509         
16510 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
16512         * dia.1
16513         Fixed man page so whatis parsing works.
16515 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
16517         * app/render_libart.c (new_libart_renderer):
16518         Fix from segg <segg@infonet.ca> to compile without libart.
16519         I forgot to change the stub for new_libart_renderer when doing
16520         the interactive renderer stuff for libart.
16522 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
16524         * dia.desktop: Added Irish translation.
16525         
16526         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16528 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
16530         * app/load_save.c (fchmod): OS/2 defines only.
16532 2000-03-07  James Henstridge  <james@daa.com.au>
16534         * lib/properties.c (prop_get_widget): set the position in the option
16535         menu correctly.
16537 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
16539         * app/display.c:
16540         * app/export_png.c:
16541         * app/render_libart.[ch]:
16542         Don't export png:s with an interactive libart renderer.
16544 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
16546         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
16548 2000-03-02  James Henstridge  <james@daa.com.au>
16550         * dia.spec (%build): unset LINGUAS before running configure.  This
16551         ensures that all translations get included in the RPM.
16553         * lib/properties.c (object_create_props_dialog): put in a check for
16554         a NULL return from the describe_props() object method.
16555         (prop_desc_lists_union): make sure that the returned array is not
16556         NULL.
16557         (prop_desc_lists_intersection): same here.
16559 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
16561         * objects/ER/Makefile.am:
16562         * objects/FS/Makefile.am:
16563         * objects/UML/Makefile.am:
16564         Don't link object libs with gtk.
16566 2000-02-29  James Henstridge  <james@daa.com.au>
16568         * app/preferences.c (prefs_save): check to see if the file could
16569         be opened before writing the prefs.
16571         * app/disp_callbacks.c (popup_object_menu): pass the button event
16572         to gtk_menu_popup.  This allows you to click and release to open
16573         the object menu.
16574         (ddisplay_canvas_events): same here.
16575         (create_object_menu): set the object type menu item in the object
16576         menu to be insensitive.
16578         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16579         as we are now requiring a new version of libxml.
16581         * dia.spec: updated version number.  Added requirement for
16582         libxml >= 1.8.5
16584         * configure.in: incremented version number to 0.84.
16585         Added check for libxml >= 1.8.5.  This will prevent some of the
16586         problems people have had with broken libxml versions.
16588         * NEWS: added news items.
16590         * app/interface.c (create_color_area): removed call to realize parent
16591         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
16592         but I haven't seen it on my copy of dia.
16594 2000-02-28  James Henstridge  <james@daa.com.au>
16596         * app/export_png.c: added copyright notice, and made the band height
16597         a constant.
16599 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
16601         * lib/font.c (suck_font):
16602         Fixed off-by one bug in font pixmap height.
16603         Fixes the problem with garbage at the bottom of some text in aa mode
16604         and in png exported files.
16606 2000-02-27  James Henstridge  <james@daa.com.au>
16608         * app/app_procs.c: add the png export filter if it was compiled in.
16610         * app/export_png.c (export_png): new PNG export filter.  This requires
16611         the libart renderer to work as it needs a renderer that renders to a
16612         pixel buffer.
16614         * configure.in: add check for libpng.
16616         * lib/message.c (message_internal): use a GNOME dialog here as well.
16618         * app/display.c (ddisplay_close): use a GNOME dialog here.
16620         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16621         when exporting to EPS.  This is because some people said the EPS
16622         output was too large
16624 2000-02-26  James Henstridge  <james@daa.com.au>
16626         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16627         window.
16629         * app/app_procs.c (app_exit): use a GNOME dialog here.
16631         * app/preferences.c (prefs_create_dialog): if GNOME support is
16632         enabled, show a GNOME dialog.
16634         * app/grid.c (grid_draw): use preferences when drawing page break
16635         lines.
16637         * app/preferences.c: add page break preferences to dialog.
16639         * app/preferences.h: added page break preferences.
16641 2000-02-25  James Henstridge  <james@daa.com.au>
16643         * sheets/UML.sheet: added new objects.
16645         * objects/UML/uml.c: link in the two new objects.
16647         * objects/UML/node.c: 
16648         * objects/UML/branch.c: new UML objects from Stfan Seefeld
16649         <seefelds@magellan.umontreal.ca>.
16651 2000-02-24  James Henstridge  <james@daa.com.au>
16653         * objects/custom/custom_object.c: converted to use the properties
16654         interface.  In the future, it would be nice to add support for
16655         defining custom properties for custom objects, but that can wait.
16657 2000-02-22  James Henstridge  <james@daa.com.au>
16659         * sheets/Circuit.sheet: added new circuit shapes to sheet.
16661         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16662         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
16663         and adds a few new features.
16665 2000-02-21  Daniel Egger  <egger@suse.de>
16667         * sheets/*.sheets: Added German translations and made some
16668         corrections to the others.
16669         
16670 2000-02-21  James Henstridge  <james@daa.com.au>
16672         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16674         * shapes/Circuit/...: added new shapes from Erik Janssens.
16676 2000-02-20  James Henstridge  <james@daa.com.au>
16678         * app/interface.c (create_color_area): realize the parent window
16679         first.
16681         * objects/standard/image.c: properties patch for standard image
16682         object, from Lars Clausen.
16684         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16686         * lib/properties.h (PropType): added file property type.
16688         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16689         other shapes.
16691         * app/interface.c: use wrap box for toolbox.
16693         * app/Makefile.am: added new files.
16695         * app/gtk*wrapbox.[ch]: added wrap box widget.
16697 2000-02-19  James Henstridge  <james@daa.com.au>
16699         * sheets/network.sheet: added extra shapes to networks sheet.
16701         * configure.in (AC_OUTPUT): added shapes/network/Makefile
16703         * shapes/network/*: added shapes that were posted to the list a while
16704         back.
16705         
16706         * shapes/Makefile.am (SUBDIRS): added network subdirectory
16708         * app/menus.c (toolbox_menu_items): don't right justify help menu for
16709         gtk+ version of menus.
16711         * app/properties.c (create_dialog): use a GnomeDialog if we happen
16712         to be using gnome.
16714 2000-02-18  James Henstridge  <james@daa.com.au>
16716         * objects/flowchart/box.c: set extra data for corner radius and text
16717         padding properties.
16719         * objects/standard/box.c: set extra data for corner radius property.
16721         * lib/properties.h: set extra data in some standard properties.
16723         * lib/properties.c (prop_get_widget): look at the extra data for
16724         int, real and enum property types.  They now use GtkSpinButton and
16725         GtkOptionMenu respectively.
16727         * lib/properties.h: extra data members for creating property setting
16728         widgets.
16730 2000-02-17  James Henstridge  <james@daa.com.au>
16732         * objects/flowchart/box.c: reverted load/save functions back to
16733         previous implementations.  Made box use standard property names.
16735         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
16737         * app/grid.c: add more digits to the grid edit dialog.  This patch
16738         was also from Lars Clausen.
16740         * objects/standard/zigzagline.c: 
16741         * objects/standard/textobj.c:
16742         * objects/standard/polyline.c:
16743         * objects/standard/line.c:
16744         * objects/standard/ellipse.c:
16745         * objects/standard/box.c: 
16746         * objects/standard/bezier.c: 
16747         * objects/standard/arc.c: patches to add properties code to standard
16748         objects.  Based on patches from Lars Clausen.  I have also removed
16749         some dead code from the files.
16751         * lib/properties.h (PROP_STD_*): define a number of standard
16752         properties.  Where appropriate, objects should include these
16753         properties in their PropDescription list.  This way, the intersection
16754         of properties of two different shapes will be greater.
16756 2000-02-14  James Henstridge  <james@daa.com.au>
16758         * objects/flowchart/box.c (box_load, box_save): use property save
16759         routines.  Make sure that any props not handled by object_load_props
16760         are loaded before calling object_load_props, or we get errors because
16761         update_data is called.
16763         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
16764         error that could cause properties to be loaded incorrectly.
16765         (object_set_props_from_offsets): similar here.
16767         * lib/properties.[ch] (prop_{load,save}): functions for loading
16768         or saving a property in Dia's XML file format.
16769         (object_{load,save}_props): load or save some properties of an
16770         object.  These functions should help simplify the load/save methods
16771         of objects that implement the properties interface.
16773 2000-02-13  James Henstridge  <james@daa.com.au>
16775         * objects/flowchart/box.c: use offset code to simplify property
16776         get/set routines.
16778         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
16779         properties.
16780         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
16782         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
16783         properties.
16784         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
16786         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
16787         functions 
16789 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
16791         * app/Makefile.am:
16792         Add the custom object to DIA_LIB_PATH in run_dia.sh
16794 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
16796         * sheets/Circuit.sheet:
16797         * shapes/l_sout* (NEW):
16798         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
16799         variants of simple, inverted, set and reset outputs.
16800         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
16801         probably a split of Contact and Ladder sheets. And then a major 
16802         revamping of the Contact sheet.
16804 2000-02-10  James Henstridge  <james@daa.com.au>
16806         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
16808         * app/app_procs.c (register_all_objects): don't explicitely
16809         register the custom objects library -- let it be loaded by the
16810         normal plugin loading methods.
16812         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
16814         * objects/custom/Makefile.am: build libcustom_objects as a shared
16815         library again.
16817         * objects/custom/shape_info.[ch]: don't read the description field
16818         of custom shapes.  It makes more sense to have these in the sheet
16819         file to localise the parts of dia that translators have to deal
16820         with.
16822         * objects/custom/custom_object.c (custom_object_new): do not
16823         create the sheet object for the new custom shape -- this is
16824         handled by the custom sheet code.
16826         * objects/custom/custom.c: change over to being a normal plug-in
16827         rather than being linked with the main dia executable.
16829 2000-02-09  James Henstridge  <james@daa.com.au>
16831         * sheets/Circuit.sheet: 
16832         * sheets/Flowchart.sheet: 
16833         * sheets/Contact.sheet: fixed up sheets.
16835         * objects/custom/custom_object.c (custom_object_new): set the
16836         extra ObjectType fields.
16838         * lib/sheet.c: use extra ObjectType fields when creating sheet
16839         objects.  Give a warning if <shape> tags are found in a sheet
16840         file.  Now the custom sheet code does not know about custom
16841         shapes -- they look like any other object type.
16843         * lib/object.h (ObjectType): added extra members
16845 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
16847         * app/linewidth_area.c:
16848         Added code to set arbitrary line width.
16849         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
16851 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
16853         * app/linewidth_area.c: 
16854         * lib/font.[ch]:
16855         Add support for font-sucking.
16856         Implementation borrowed from gnome-canvas.
16857         
16858         * app/render_libart.[ch]:
16859         Implement text rendering.
16861 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
16863         * app/properties.c (create_dialog):
16864         ref and sink no_properties_dialog.
16866 2000-02-07  James Henstridge  <james@daa.com.au>
16868         * app/group.c (group_describe_props): new function.  Return the
16869         intersection of the properties of the contained objects that
16870         implement the describe_props interface.
16871         (group_get_props): implement by iterating through contained objects
16872         and calling their get_props method until all properties have been
16873         set.  Maybe this should go through all objects all the time??
16874         (group_set_props): implement by calling set_props method on all
16875         contained objects.
16876         (group_ops): use standard props dialog creation routines.
16878         * lib/properties.c (prop_desc_lists_intersection): fix implementation
16879         of intersection -- I was using i++ instead of i-- in a for loop :(
16881         * objects/custom/custom.c (custom_register_objects): fix usage
16882         of dia_get_data_directory again.
16884         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
16885         actually read the sheets.
16887 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
16889         Win32 port by Hans Breuer <Hans@Breuer.org>
16891         * app/Makefile.am:
16892         Remove DATADIR and LIBDIR defines.
16894         * lib/Makefile.am:
16895         Add dia_dirs.c and dia_dirs.h
16896         Added DATADIR and LIBDIR defines.
16898         * lib/dia_dirs.[ch]:
16899         New files for handling special directories.
16901         * app/app_procs.c:
16902         * app/commands.c:
16903         * lib/sheet.c:
16904         * objects/custom/custom.c:
16905         Fix warnings.  Use directory functions.
16907         * app/diagram.h:
16908         Add prototype for diagram_redraw_all.
16910         * app/diaunitspinner.c:
16911         * app/filedlg.c:
16912         * app/interface.c:
16913         * app/preferences.c:
16914         Fix warning.
16916         * app/load_save.c:
16917         Win32 doesn't have mkstemp and fchmod.
16919         * app/paginate_psprint.c:
16920         Win32 calls popen _popen and pclose _pclose.
16921         
16922         * app/arrow.c:
16923         Win32 calls finite _finite.
16925         * lib/color.h:
16926         Win32 needs to dllexport the color vars.
16928         * objects/GRAFCET/step.c:
16929         * objects/chronogram/chronoref.c:
16930         snprintf -> g_snprintf
16932 2000-02-05  James Henstridge  <james@daa.com.au>
16934         * lib/properties.c: more fixes so that it doesn't crash when using
16935         properties.  The undo/redo stuff also works!!
16937         * objects/flowchart/box.c (box_{describe, get, set}_props): test
16938         object where I have implemented the new properties interface
16939         complete with automatic properties dialog generation.
16941         * lib/properties.c (object_apply_props): fixed stupid error when
16942         creating the old_props array.  Also, it no longer frees the props
16943         array -- you will have to do that yourself.
16945 2000-02-04  James Henstridge  <james@daa.com.au>
16947         * app/properties.c (properties_apply): pass object_part to
16948         apply_properties.
16950         * lib/object.h (ApplyPropertiesFunc): added widget argument.
16952         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
16953         created this way as well.
16955         * objects/*/*.c: ref and sink the properties dialog window for each
16956         widget.  It can't rely on ref count being incremented by
16957         properties_show anymore.
16959         * app/properties.c (properties_show): don't ref the widget before
16960         removing it, or its ref count will increase each time you open the
16961         properties dialog.  Don't unparent the widget, as container_remove
16962         does that for us.
16964         * lib/object.h: fixed up prototypes for new object methods.
16966         * lib/properties.[ch]: added functions for automatically creating
16967         a properties dialog from the output of describe_props, get_props and
16968         set_props.
16969         (object_apply_props): apply properties and return an ObjectChange
16970         structure that can be used for undo.
16972 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
16974         * objects/GRAFCET/transition.c: minor leak plugged.
16976         * sheets/GRAFCET.sheet:
16977         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
16978         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
16979         conditions.
16980         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
16981         new ones (for condition.c).
16982         * objects/GRAFCET/action.c: added connection points for the conditions.
16983         * samples/grafcet.dia: updated the sample to improve conformance to
16984         IEC 848 and take advantage of dia's new features.
16985         
16986         * lib/geometry.h: (point_get_normed) fixed a typo.
16988 2000-02-02  James Henstridge  <james@daa.com.au>
16990         * lib/object.h: added object functions describe_props, get_props and
16991         set_props.  Do type definitions so that object.h doesn't need to
16992         include properties.h, since properties.h includes object.h.
16994         * lib/properties.[ch]: more hacking.
16996         * po/de.po: updated po file.
16998 2000-01-30  James Henstridge  <james@daa.com.au>
17000         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
17001         check to see if the C compiler accepts the flag beforehand.
17003         * lib/properties.[ch]: start of properties code.
17005         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
17007 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
17008         
17009         * sheets/GRAFCET.sheet:
17010         * sheets/GRAFCET/etapemc.xpm: (NEW)
17011         * sheets/GRAFCET/etapesp.xpm: (NEW)
17012         * objects/GRAFCET/step.c: Added the macro and
17013         sub-program call step types.
17015         * objects/GRAFCET/receptivity.[ch]: renamed to 
17016         objects/GRAFCET/boolequation.[ch]. 
17017         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
17018         (BoolEquation *)
17020         * lib/connpoint_line.[ch]: 
17021         * objects/chronogram/chronoline.c:
17022         * objects/chronogram/chronoref.c:
17023         * objects/GRAFCET/vergent.c:
17024         * objects/standard/line.c:
17025         * objects/SADT/box.c: Minor CPL interface changes, factored out the
17026         point count adjustment code into the CPL object.
17027         
17028 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
17030         * app/render_libart.c:
17031         Added support for images and bezier curves.
17032         Only text/fonts missing now.
17034         * app/render_gdk.c:
17035         Removed old erronous comment.
17037 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
17039         * objects/chronogram/chronoline_event.c: removed references to
17040         lround(). Please don't insist, I'm already red of shame.
17041         
17042 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
17044         * app/render_libart.[ch]:
17045         * app/Makefile.am:
17046         Non-finished libart renderer.
17048         * acconfig.h:
17049         Added HAVE_LIBART flag
17051         * configure.in:
17052         Added libart probe
17054         * app/app_procs.c:
17055         Call gdk_rbg_init().
17057         * app/connectionpoint_ops.c:
17058         * app/disp_callbacks.c:
17059         * app/grid.c:
17060         * app/handle_ops.c:
17061         * app/magnify.c:
17062         * app/modify_tool.c:
17063         Change ddisp->renderer type from RendererGdk * to Renderer *
17064         Draw zoom and select rects in ddisp->canvas->window instead
17065         of ddisp->renderer->renderer->pixmap.
17067         * app/display.[ch]:
17068         Add aa_renderer to DDisplay, and  support for it.
17069         New function ddisplay_set_renderer() for changing renderer.
17070         Add ddisplay_transform_coords_double() function, used by aa renderer.
17071         Change ddisp->renderer type from RendererGdk * to Renderer *
17073         * app/menus.c:
17074         Add antialias to menu.
17075         
17076         * app/commands.[ch]:
17077         add view_aa_callback function
17078         Change ddisp->renderer type from RendererGdk * to Renderer *
17080         * lib/geometry.[ch]:
17081         Added IntRectangle and int_rectangle_union.
17083 2000-01-28  James Henstridge  <james@daa.com.au>
17085         * app/commands.h: removed prototypes.
17087         * app/commands.c: removed the functions that have been moved to
17088         filedlg.c.
17090         * app/filedlg.h: added new prototypes.
17092         * app/filedlg.c (file_open_callback): move open dialog to this
17093         file.  This implementation should remember the current directory
17094         between file loads.
17095         (file_save_as_callback): moved this dialog as well.
17096         (file_save_callback): moved this function here.
17098         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17099         align page boundaries to the origin.
17101         * app/diagram.c (diagram_update_extents): redraw the diagram if the
17102         scaling factor changes while updating the extents.  This is so the
17103         page breaks get redrawn correctly.
17105         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17106         applying changes.
17108         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17109         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
17110         the corner of the bounding box.
17112         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17113         into page setup dialog.
17114         (pagesetup_apply): apply new `fit to' attributes to the diagram.
17116         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17117         (diagram_data_save): save `fit to' data.
17119         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17120         (data_update_extents): when in `fit to' mode, update scale factor
17121         when we update the extents.
17123         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17124         structure.
17126         * .../.cvsignore: added some cvsignore files to quieten cvs.
17127         
17128         * app/pagesetup.c (pagesetup_changed): added code to change the
17129         scaling/fit to values as you change the options in the page setup
17130         dialog.  I haven't added code so that the fit to options are saved
17131         though.
17133         * app/diapagelayout.[ch]: changed the scaling portion of the widget
17134         to make it easier to set a `fit to' style scaling factor.
17136 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17137         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17138         but connpoint_line-based, so that there's a connection point at the 
17139         middle of each segment. Currently only the SADT arrow uses this.
17141         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17142         
17143 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17144         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
17145         saving and editing of properties (and default properties). 
17146         See the new objects (GRAFCET, SADT, chonograms) for examples.
17147         For already too hairy stuff, see objects/chronogram/chronoline.c.
17149         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
17150         evenly spaced connection points, which the user can add or remove at
17151         will. An object can own several connection point lines. See the SADT
17152         Box, or the GRAFCET vergents for examples.
17154         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
17155         quiet about unused stuff.
17157         * objects/GRAFCET (NEW):
17158         * samples/grafcet.dia (NEW):
17159         Added support for GRAFCET charts. 
17161         * objects/chronogram (NEW):
17162         * samples/chronograms.dia (NEW):
17163         Added support for chronograms (feature requested by Ronald L. Chichest;
17164         I found I'd use it often, too).
17166         * objects/standard/line.c: Replace the middle connectionpoint by 
17167         a whole connection point line, which defaults to one point (hint, 
17168         hint). New Line object menu to take advantage of this. 
17169         "Bothwards" compatibility is preserved (although you may loose 
17170         connections if you load a newer file in a older dia).
17172         * app/lineprops_area.c:
17173         * lib/arrows.[ch]:
17174         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
17175         (feature requested by Benjamin Kahn).
17176         Merged in Steffen Macke's slashed arrow head type.
17178         * app/Makefile.am (app/run_dia.sh actually):
17179         Added $DEBUGGER in front of dia's invocation, so that
17180         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17181         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
17182         "EFENCE=-lefence" to link with Electric Fence.
17184         * configure.in: Made gcc do more aggressive optimisations on i386, and
17185         enabled warnings.
17186         
17187 2000-01-24  James Henstridge  <james@daa.com.au>
17189         * lib/geometry.[ch]: added inline versions of functions.  Used
17190         glib's G_INLINE_FUNC stuff, so it should still work on systems
17191         without inline funcs.
17193         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17194         it outputs the correct element id for the ellipse objects.
17196 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17198         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17199         object_add_handle_at. Message typo fixed.
17200         
17201         * lib/sheet.c (load_register_sheet):
17202         potential bug fixed (warning hunt).
17204         * objects/custom/custom.c (custom_object_load): disabled an assertion
17205         which made dia abort upon failure to load a shape file. Fixed a
17206         subsequent crash. 
17208         * objects/custom/shape_info.c (load_shape_info): Made the custom 
17209         shape load code ignore XML comments between <?xml ...?> and the 
17210         root object (mostly useful to put the emacs magic comments).
17211         
17212         * app/load_save.c: Made dia do backup copies of files when saving,
17213         and complain in case of failure.
17215 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
17217         * AUTHORS: fixed my address (ISP thought it was a great idea to change
17218         the domain name)
17219         
17220         * configure.in:
17221         * shapes/Contact:
17222         * shapes/Contact/*:
17223         * sheets/Contact.sheet:
17224         * sheets/Makefile.am:
17225         Added support for Contact and LADDER charts.
17227         * dia.desktop: Added a French translation.
17228         
17229 2000-01-23  James Henstridge  <james@daa.com.au>
17231         * app/commands.c (help_about_callback): don't die if can't load
17232         logo image.
17234         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17235         out NaN's when performing bezier curve subdivision.
17237         * objects/custom/custom_object.c: initialise memory of Custom structs
17238         to zero.
17240         * app/render_svg.c (draw_image): added image support to the XML
17241         output filter.  The image is just referenced, rather than being
17242         included inline, so if you copy the SVG file somewhere else, you
17243         may need to move the images or fix up the links.
17245         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17246         so the text is not just displayed in black all the time.
17248 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
17250         * configure.in: fixed libpopt test so we wont try to build with
17251         too old libpopt.
17253 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
17255         * configure.in: Added "uk" to ALL_LINGUAS.
17257 1999-12-24  James Henstridge  <james@daa.com.au>
17259         * po/ru.po: updated russian translation from Valek Filippov.
17260         
17261         * app/render_svg.c (new_svg_renderer): make output use 19991203
17262         version of SVG DTD.  Use viewBox to set the extents of the view.
17264         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
17265         ftp.gnome.org as the download.
17267         * TODO (TODO): weeded out completed todo items and added a few extra.
17269         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17271         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
17272         be good to get rid of the object/shape distinction and separate
17273         the custom shape code out from the main application.
17275         * objects/custom/README, diagram.dtd: moved to new doc directory.
17276         Renamed the custom shapes README to custom-shapes.  Also updated
17277         custom shape docs a bit and removed the section on sheet files, as
17278         that has changed a bit.
17280         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17281         of the image data is larger than the maximum cell array.  I should
17282         add code to break scan lines down further in this case, but for now
17283         an error message is better than an infinite loop.
17285         * app/filedlg.c (file_export_ok_callback): show a dialog if we
17286         couldn't determine the export filter to use.
17288         * app/commands.c (help_about_callback): fixed up about box logo
17289         expose bug.  Now just use a GtkPixmap widget rather than a
17290         GtkDrawingArea and calling gdk_imlib_paste_image.
17292         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17293         because automake does not always get things right.
17295         * configure.in: updated version number to 0.83.
17297         * app/preferences.c (prefs_save): 
17298         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17299         for fopen.  Text is the default file mode anyway.
17301         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
17302         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
17303         * app/load_save.c (write_objects, write_connections): 
17304         * app/filedlg.c (file_export_ok_callback): 
17305         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
17306         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
17307         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17308         snprintf to calls to g_snprintf.
17310         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17311         as the picture name.
17313 1999-12-23  James Henstridge  <james@daa.com.au>
17315         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17316         negative numbers.  This fixes the upside down text problem I was
17317         having previously.
17318         (draw_image): implemented the image code.  It will try to split the
17319         image data up into bands if it is too big to fit into a single
17320         cgm cell array element.  It will have problems if you try to insert
17321         an image wider than about 10,000 pixels though.
17323         * Makefile.am: use gnomedatadir for the files that need to be
17324         installed in gnome's datadir.  This is mainly to help people doing
17325         packages for weird setups.
17327 1999-12-22  James Henstridge  <james@daa.com.au>
17329         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
17330         beziers are left to do.  The text seems to be the wrong way up
17331         still.  This is probably a problem with character orientation
17332         element, but I have used what the settings given in the standard.
17333         Other than this, the CGMs dia produces are readable (and displayable)
17334         by ralcgm and corel draw.
17335         (draw_string): subtract from the X coord rather than the Y coord for
17336         center and right aligned text.
17338         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
17339         the size of a real number, and changed name of write_double to
17340         write_real.  Consider changing to fixed real encoding.  Also, now
17341         all element headers are correct.  Once the real number encoding is
17342         fixed, only text, beziers and images are left to do.
17344 1999-12-21  James Henstridge  <james@daa.com.au>
17346         * Makefile.am (SUBDIRS): recurse into plug-ins.
17348         * configure.in: add plug-ins directory makefiles to list.
17350         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
17351         not done yet.  Also, the output files are not quite correct.
17353         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17354         font.  It doesn't work if you do.
17356 1999-12-20  James Henstridge  <james@daa.com.au>
17358         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17359         export the files.  Instead, use filter_guess_export_filter to
17360         guess the correct format to save in and use the appropriate filter.
17361         It defaults to postscript for compatibility.
17363         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17364         function.
17366         * app/commands.[ch]: removed export to eps functions.
17368         * app/menus.c: removed export to eps menu items.
17370         * app/app_procs.c: register new export filters.
17372         * app/load_save.[ch]: define dia native export filter.
17374         * app/render_eps.[ch]: define eps export filter.
17376         * lib/filter.h: added diafilename argument to the DiaExportFunc
17377         prototype.  This is useful for putting the source of the diagram
17378         into the output file for instance.
17380         * app/app_procs.c (app_init): register the SVG export filter.  Have
17381         to get EPS code converted to this API, and maybe also allow saving in
17382         DIA's native format from the export dialog.  In fact, it is now
17383         possible to load an export filter from a shared library and it will
17384         integrate into the interface correctly.
17386         * app/menus.c: removed references to the SVG renderer.
17388         * app/commands.[ch]: removed svg stuff.
17390         * app/diagram.[ch]: removed diagram_export_to_svg function.
17392         * app/render_svg.[ch]: added a DiaExportFilter structure for this
17393         renderer.
17395         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
17396         probably move the open/save dialogs to this file as well.
17398 1999-12-19  James Henstridge  <james@daa.com.au>
17400         * lib/filter.[ch]: start of interface for generalised handling of
17401         filters.  I have only done code for export filters so far.  I still
17402         need to do the gui for this, and convert the current SVG and EPS
17403         filters to the new API.
17405         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
17406         weren't setting the last handle correctly.  It was actually assigning
17407         to the wrong position in the handles array, so the last handle was
17408         left as NULL, which caused the segfault.
17410         * objects/standard/image.c (image_copy): modified routine so that
17411         it just adds a reference to the DiaImage structure in the new image
17412         object.  This seems to have cleared up the problems with copying
17413         image objects.
17415         * dia.spec: spec file additions from John Gotts.
17417 1999-12-12  James Henstridge  <james@daa.com.au>
17419         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
17420         has not been released yet though.
17422         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17424         
17425         The following based on a patch from Lars Clausen:
17426         
17427         * objects/standard/bezier.c (bezierline_move_handle): when performing
17428         the initial drag of the bezierline, move the control points to keep
17429         the line straight.
17431         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17432         make the new control points a bit closer to the major point.
17434         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17435         as the reason for the move.
17436         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17437         move reason.
17439         * lib/handle.h: new handle move reasons.
17441 1999-12-09  James Henstridge  <james@daa.com.au>
17443         * dia.spec: include the new files in RPMs.
17445         * Makefile.am: install these new files.
17447         * dia.keys.in: file describing actions and icon for dia diagrams for
17448         use in the gnome file manager.
17449         
17450         * dia.mime: a file defining the application/x-dia-diagram mime type.
17451         
17452         * dia-diagram.png: an icon for dia diagrams.
17454 1999-12-08  James Henstridge  <james@daa.com.au>
17456         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17458         * plug-ins/python/pydia-display.[ch]: wrapper for display.
17460         * objects/standard/ellipse.c: applied Lars's patch to optionally not
17461         draw the background of the ellipse.
17463         * app/load_save.c (read_connections): do some sanity checking on the
17464         handle and connection point numbers before performing the object
17465         connection.
17467         * lib/bezier_conn.c (bezierconn_load): give the correct number of
17468         handles when loading a BezierConn.
17470 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
17472         * sheets/*.sheet: Finished Norwegian translations.
17473         
17474 1999-12-07  James Henstridge  <james@daa.com.au>
17476         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17477         (PyDia_GetObjectType): find object type function.
17479         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17480         method for diagrams.
17482         * plug-ins/python/pydia-object.c: added methods for DiaObject and
17483         DiaObjectType.
17485         * AUTHORS: added Lars and Cyrille to the authors file.
17487         * objects/standard/bezier.c (bezierline_add_segment_callback): place
17488         new point correctly.
17490         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17492         * lib/bezier_conn.c: applied Lars's patch for placement of the new
17493         point when adding a segment to a BezierConn.
17495 1999-12-06  James Henstridge  <james@daa.com.au>
17497         * plug-ins/python/test.py: test script for the python plug-in.
17499         * plug-ins/python/python.c: this file contains the plug-in startup
17500         code for the python plugin.  Right now, it just initialises the
17501         dia module and executes a script.
17503         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17505         * objects/standard/bezier.c (bezierline_draw): draw control lines for
17506         bezier curve if we are using an interactive renderer (ie. only if
17507         displaying to the screen).
17509         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17510         to draw control lines on to a bezier curve.  Based on implementation
17511         from Lars.
17513         * objects/standard/bezier.c (bezierline_delete_segment_callback):
17514         calculate segment number using closest_segment rather than
17515         closest_handle.  Sometimes the closest handle is part of a different
17516         segment.
17517         (bezierline_draw): use correct size for start arrow.
17519         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17520         * lib/geometry.c (distance_line_point): added notes to documentation
17521         in comment.
17522         * app/object_ops.c (object_list_align_v): 
17523         (object_list_align_h): fix of by one error when calculating free space
17524         for equal distance alignment.
17525         * app/menus.c (objects_align_h, objects_align_v): include align
17526         adjacent menu items in the gnome version of the menus.
17527         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17528         align adjacent menu items correctly.
17531         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17532         table.
17534         * objects/standard/bezier.c: converted bezierline to use BezierConn.
17535         Still a few bugs.  It crashes on deleting line segments.
17537         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17539 1999-12-05  James Henstridge  <james@daa.com.au>
17541         * lib/bezier_conn.[ch]: start of BezierConn object
17543         * app/interface.c: add bezierline to toolbox.
17545         * objects/standard/standard.c: initialise bezierline.
17547         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
17548         made a few modifications to get it working nicely.  It still needs
17549         a bit of work though.  Maybe create a BezierConn object in lib.
17551 1999-12-02  James Henstridge  <james@daa.com.au>
17553         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17554         
17555         * plug-ins/python/Makefile.am: tried building everything.  It is
17556         building as a library at the moment.  I will have to convert it
17557         to a libtool library and add some initialisation code.
17558         
17559         * plug-ins/python/diamodule.c: start of the dia module, using the
17560         other object wrappers.  Not complete.
17562 1999-12-01  James Henstridge  <james@daa.com.au>
17564         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17565         the handles and connections attributes.
17567         * plug-ins/python/pydia-layer.c: added functions that use
17568         ConnectionPoint's.
17570         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17572         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17574         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17575         I am currently wrapping the basic elements in the diagram in python
17576         objects -- nothing to see or play with yet.
17578 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
17580         * AUTHORS:
17581         * HACKING:
17582         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17584 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
17586         * configure.in:
17587         * po/ru.po:
17588         Added russian translation from Valek Filippov <frob@df.ru>
17590 1999-11-24  James Henstridge  <james@daa.com.au>
17592         * sheets/UML/*: 
17593         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17594         discussed with Alex.  Also added extra makefiles so that make install
17595         works correctly.
17597 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
17599         * app/preferences.[ch]:
17600         * app/display.c:
17601         Added snap to grid preference.
17602         Patch from Michael Leslie <mles@springboardwireless.com>
17604 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17606         * app/load_save.c:
17607         * lib/dia_xml.c:
17608         * lib/sheet.c:
17609         * lib/text.c:
17610         * objects/custom/shape_info.c:
17611         All strings returned by libxml must be freed with free, not
17612         g_free, or there will be problems if you use memory debugging
17613         in glib.
17614         
17615 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17617         * app/create_object.[ch]:
17618         * app/menus.c:
17619         * app/tool.[ch]:
17620         * app/commands.[ch]:
17621         * app/pixmaps.h:
17622         * app/interface.[ch]:
17623         Reverted the tool menu patch. It has some 'issues'.
17624         I liked it though, so it'll probably return.
17626 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17628         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17629         <bruce@cybersight.com> for some purify runs and analysis.
17630         Also a great thank you to Owen Taylor for creating MemProf, a
17631         free memory leak detector that was used to find and verify a
17632         lot of these fixes.
17633         
17634         * app/diagram.c:
17635         * app/paginate_psprint.c:
17636         * app/render_eps.[ch]:
17637         * app/render_svg.[ch]:
17638         Free renderers.
17640         * app/interface.c:
17641         Don't add a reference to ddisp->shell. Why was this done in
17642         the first place?
17644         * app/load_save.c:
17645         * lib/dia_xml.c:
17646         * lib/sheet.c:
17647         * lib/text.c:
17648         Free all strings returned from xmlGetProp
17650         * app/modify_tool.c:
17651         Plug leak.
17653         * objects/custom/custom.c:
17654         Use closedir() after opendir().
17656         * objects/custom/shape_info.c:
17657         User g_free() instead of "if (tmp) free(tmp)".
17659         * sheets/ER.sheet:
17660         Add newline at end of file.
17661         
17663 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17665         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17666         Adds tool menu and keyboard shortcuts.
17668         * app/create_object.[ch]:
17669         Use tool_set() instead of tool_reset().
17670         create_create_object_tool() takes extra type argument
17672         * menus.c:
17673         Add tools menu.
17674         
17675         * tool.[ch]:
17676         Moved tool_data here, export it.
17677         Add separate tool type for all create objects tools.
17678         new functions tool_set().
17680         * commands.[ch]:
17681         New callback tool_set_callback.
17683         * pixmaps.h:
17684         Moved some pixmaps to interface.c.
17685         
17686         * interface.[ch]:
17687         Remove tool_data array (moved to tool.c).
17688         Use the tool_data from tool.c.
17689         Remove modify_tool_button global var.
17690         
17691 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17693         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17694         
17695         * app/app_procs.c:
17696         Interprets command-line arguments as files to open even when
17697         HAVE_POPT is not defined.
17699         * app/magnify.c:        
17700         Shift-clicking when zooming zooms out, like the Gimp.
17702         * app/menus.c:
17703         Has hotkeys for zoom-100% and snap-to-grid.
17705 1999-11-17  James Henstridge  <james@daa.com.au>
17707         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17708         that it is not jumpy.
17710         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
17712         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
17713         scrolling by pressing the shift key when using the scroll tool.
17715         * sheets/Makefile.am: fixed makefile so that install actually works
17716         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
17717         don't exist.
17718         (SHEETS): install Circuit.sheet
17720 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
17721         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17723         * sheets/Circuit.sheet:
17724         * sheets/ER.sheet:
17725         * sheets/FS.sheet:
17726         * sheets/Flowchart.sheet:
17727         * sheets/UML.sheet:
17728         * sheets/network.sheet:
17729         * sheets/sybase.sheet:
17730         Changed name space
17732         * sheets/Circuit.sheet:
17733         added some missing French translations
17735         * lib/sheet.c:
17736         killed the temporary sheet namespace
17738         * objects/custom/custom.c:
17739         obsolete comment cleaned up
17741 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
17743         * configure.in:
17744         * po/pt.po:
17745         Added portugese translation from Pedro Morais
17746         <pmmm@rnl.ist.utl.pt>
17748 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
17750         Changed all sheets to be specified in xml.
17751         All sheet objects removed from the C code.
17752         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17753         
17754         * Makefile.am:
17755         * configure.in:
17756         Adding shapes dir.
17757         Updated version to 0.81cvs.
17758         
17759         * app/Makefile.am:
17760         Update run_dia.sh with sheet-dir.
17761         
17762         * app/app_procs.c:
17763         Load all sheets on startup.
17764         Create sheet directory first time.
17765         Don't call custom_register_sheets().
17767         * lib/Makefile.am:
17768         Add sheetdir define
17770         * lib/custom.h:
17771         Remove custom_register_sheets().
17773         * lib/sheet.[ch]:
17774         Add sheet loading code.
17776         * sheet/Circuit.sheet:
17777         * sheet/ER.sheet:
17778         * sheet/FS.sheet:
17779         * sheet/Flowchart.sheet:
17780         * sheet/UML.sheet:
17781         * sheet/network.sheet:
17782         * sheet/sybase.sheet:
17783         Added sheet files.
17785         * sheet/ER/weakentity.xpm:
17786         * sheet/UML/aggregation.xpm
17787         * sheet/UML/umlclass_template.xpm
17788         Added sheet pixmaps.
17789         These are moved from their old places.
17791         * sheet/.cvsignore:
17792         Shut up cvs.
17794         * objects/*/*.c:
17795         Removed sheet objects and sheet registration.
17796         
17797         * objects/ER/Makefile.am:
17798         * objects/ER/pixmaps/weakentity.xpm:
17799         * objects/UML/Makefile.am:
17800         * objects/UML/pixmaps/aggregation.xpm:
17801         * objects/UML/pixmaps/umlclass_template.xpm:
17802         Removed alternative pixmaps. (Moved to sheet).
17804         * objects/custom/Makefile.am:
17805         * objects/custom/load_sheet.[ch]:
17806         Removed old sheet loading code.
17807         
17808         * objects/custom/custom.c:
17809         Load all shapes instead of sheets.
17810         Removed custom_register_sheets().
17812         * objects/custom/custom_object.c:
17813         Added debug code.
17815         * objects/custom/shape_info.[ch]:
17816         Added shape_info_getbyname().
17818         * objects/flowchart/Makefile.am:
17819         * objects/flowchart/collate.shape            
17820         * objects/flowchart/delay.shape              
17821         * objects/flowchart/display.shape            
17822         * objects/flowchart/document.shape           
17823         * objects/flowchart/extract.shape            
17824         * objects/flowchart/flowchart.c              
17825         * objects/flowchart/intstorage.shape         
17826         * objects/flowchart/magdisk.shape            
17827         * objects/flowchart/magdrum.shape            
17828         * objects/flowchart/magtape.shape            
17829         * objects/flowchart/manualinput.shape        
17830         * objects/flowchart/manualop.shape           
17831         * objects/flowchart/merge.shape              
17832         * objects/flowchart/offlinestore.shape       
17833         * objects/flowchart/offpageconn.shape        
17834         * objects/flowchart/or.shape                 
17835         * objects/flowchart/predefdproc.shape        
17836         * objects/flowchart/preparation.shape        
17837         * objects/flowchart/punchedcard.shape        
17838         * objects/flowchart/punchedtape.shape        
17839         * objects/flowchart/sort.shape               
17840         * objects/flowchart/sumjunction.shape        
17841         * objects/flowchart/terminal.shape           
17842         * objects/flowchart/transaction.shape        
17843         * objects/flowchart/transmittape.shape       
17844         * objects/flowchart/pixmaps/collate.xpm      
17845         * objects/flowchart/pixmaps/delay.xpm        
17846         * objects/flowchart/pixmaps/display.xpm      
17847         * objects/flowchart/pixmaps/document.xpm     
17848         * objects/flowchart/pixmaps/extract.xpm      
17849         * objects/flowchart/pixmaps/intstorage.xpm   
17850         * objects/flowchart/pixmaps/magdisk.xpm      
17851         * objects/flowchart/pixmaps/magdrum.xpm      
17852         * objects/flowchart/pixmaps/magtape.xpm      
17853         * objects/flowchart/pixmaps/manualinput.xpm  
17854         * objects/flowchart/pixmaps/manualop.xpm     
17855         * objects/flowchart/pixmaps/merge.xpm        
17856         * objects/flowchart/pixmaps/offlinestore.xpm 
17857         * objects/flowchart/pixmaps/offpageconn.xpm  
17858         * objects/flowchart/pixmaps/or.xpm           
17859         * objects/flowchart/pixmaps/predefdproc.xpm  
17860         * objects/flowchart/pixmaps/preparation.xpm  
17861         * objects/flowchart/pixmaps/punchedcard.xpm  
17862         * objects/flowchart/pixmaps/punchedtape.xpm  
17863         * objects/flowchart/pixmaps/sort.xpm         
17864         * objects/flowchart/pixmaps/sumjunction.xpm  
17865         * objects/flowchart/pixmaps/terminal.xpm     
17866         * objects/flowchart/pixmaps/transaction.xpm  
17867         * objects/flowchart/pixmaps/transmittape.xpm 
17868         Moved shapes and their pixmaps to shapes/flowchart
17870         * shapes/Circuit/Makefile.am:
17871         * shapes/Circuit/index.sheet:
17872         Removed index.sheet.
17873         
17874         * shapes/Makefile.am:
17875         * shapes/flowchart/Makefile.am:
17876         * shapes/flowchart/*.shape:
17877         * shapes/flowchart/*.xpm:
17878         Added flowchart shapes. (Moved from objects/flowchart)
17879         
17881 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
17883         * app/app_procs.c: Fixed popt stuff.
17885 1999-11-01  James Henstridge  <james@daa.com.au>
17887         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
17888         Andreas Scherf.
17890 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
17892         * dia.spec:
17893         * configure.in:
17894         Update version to 0.81.
17895         
17896         * NEWS:
17897         Update with news for 0.81.
17898         
17899         * shapes/Circuit/*:
17900         * shapes/Circuit_eu/*:
17901         Moved european circuit objects to Circuit sheet.
17903 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
17904         
17905         * lib/diagramdata.[ch]:
17906         Added layer_set_object_list() function.
17908         * app/undo.[ch]:
17909         Added support for undo of reordered objects.
17910         Fix the undo of delete to keep the right order on undo.
17911         
17912         * app/diagram.c:
17913         changed loop to object_add_updates_list() calls.
17914         Added undo support to bring to front/back.
17916         * app/disp_callbacks.c:
17917         * app/paginate_psprint.c:
17918         Remove warnings.
17920 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
17922         This plugs some leaks. Thanks to
17923         Bruce Mitchener <bruce@cybersight.com> for running
17924         Dia through purify for me.
17925         
17926         * app/app_procs.c:
17927         Free displays and diagrams on exit.
17929         * app/modify_tool.c:
17930         Free gc when freeing tool.
17932         * lib/diagramdata.c:
17933         Free layer name.
17934         
17935         * app/display.c:
17936         Free update and display lists when destroying display.
17937         
17938         * lib/diagramdata.c:
17939         Don't leak layer name.
17941         * objects/custom/load_sheet.c: 
17942         * objects/custom/shape_info.c:
17943         Free loaded xml documents.
17945 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
17947         * app/commands.c:
17948         * app/object_ops.[ch]:
17949         Add undo handling to alignment ops.
17950         Based partially on patch by Dan Cohn <dan@internap.com>.
17952         * objects/standard/image.c (image_move_handle):
17953         Don't divide by zero for small images.
17954         Patch by Dan Cohn <dan@internap.com>.
17956         * objects/UML/class.c (umlclass_destroy): 
17957         * objects/custom/custom_object.c (custom_destroy):
17958         Don't free connectionpoints before calling element_destroy
17959         which unconnects them.
17961 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
17963         * objects/custom/custom_object.c: 
17964         Load and save padding too. Fixes strange load crashes.
17966         * app/group.c (group_destroy):
17967         Don't unconnect already freed connectionpoints when
17968         destroying group. Probably fixes bug reported by
17969         Elliot Lee <sopwith@redhat.com>.
17971         * app/render_gdk.c:
17972         Don't crash on zero-size (broken) bezier curves.
17973         Different sort of fix. This should work on closed bezier curves
17974         too.
17976         * objects/standard/textobj.c:
17977         Activate default properties dialog for Text objects.
17979         * app/render_eps.c: 
17980         * app/load_save.c:
17981         * app/preferences.c:
17982         * app/render_svg.c:
17983         fopen files in binary or text mode.
17985 1999-10-26  Alexander Larsson  <alex@cendio.se>
17987         * app/render_gdk.c (bezier_add_lines):
17988         Don't crash on zero-size (broken) bezier curves.
17989         Fixes a crashing bug.
17991 1999-10-25  James Henstridge  <james@daa.com.au>
17993         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
17994         before it is installed.
17996         * objects/flowchart/flowchart.c: use relative paths to find shapes.
17998         * objects/custom/custom.c (custom_object_load): take file names
17999         relative to $(pkgdatadir)/shape-internal, and check an environment
18000         variable for an alternative directory.
18002         * app/...: added copyright messages to the top of my new code.
18004         * app/paginate_psprint.c: some general clean ups.  Also, give an error
18005         dialog if we can't open the command or output file for writing.
18007         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
18008         function so it would set orientation to landscape correctly.
18010         * app/paginate_psprint.c: use the paper settings that come with
18011         the diagram.  Also implemented landscape printing.
18013         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
18014         in PS header.
18016         * app/commands.[ch] (file_pagesetup_callback): added callback for
18017         the page setup dialog.
18019         * app/menus.c: added page setup menu item.
18021         * app/pagesetup.[ch]: implementation of the page setup dialog.
18023         * app/diapagelayout.[ch]: added accessors for the scaling factor.
18024         
18025         * app/load_save.c (diagram_load): load paper information from save
18026         file.
18027         (diagram_save): save the paper info.
18029         * lib/diagramdata.c (new_diagram_data): initialise paper info section
18030         of DiagramData structure.
18031         (diagram_data_destroy): free the paper name.
18033         * lib/diagramdata.h: added a paper member to the DiagramData structure
18034         that holds the page layout info for a diagram.
18036 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
18038         * objects/flowchart/box.c:
18039         * objects/flowchart/ellipse.c:
18040         * objects/flowchart/diamond.c:
18041         * objects/flowchart/parallelogram.c:
18042         Load and save padding too. Fixes strange load crashes.
18044 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
18046         * app/app_procs.c (name_is_lib):
18047         .dll, .sl and .so.0.0.0 are also libraries.
18049 1999-10-20  James Henstridge  <james@daa.com.au>
18051         * configure.in: added extra makefile.
18052         
18053         * shapes/Circuit_eu/*: a new set of european circuit shapes from
18054         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
18055         (added fuses to makefile, fill the area of some of the components).
18057 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
18059         * lib/Makefile.am:
18060         * app/Makefile.am: 
18061         Add GDK_IMLIB_CFLAGS to includes.
18062         Changed --export-dynamic to -export-dynamic
18064         * lib/widgets.c:
18065         * objects/UML/message.c:
18066         Removed c++ comment.
18068         * lib/render_store.[ch]:
18069         Don't use empty structure. That is not Ansi C.
18071 1999-10-19  James Henstridge  <james@daa.com.au>
18073         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18074         the margin entries, as they allow interpretation of units.
18075         (paper_size_change): display the current page dimensions.
18077         * app/diaunitspinner.[ch]: a widget derived from the standard
18078         GtkSpinButton that tries to take units into account.  So if you enter
18079         "1in" into the entry, it will convert it to 2.54cm.
18081 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
18083         * app/app_procs.c:
18084         Removed include of dlfcn.h
18086 1999-10-18  James Henstridge  <james@daa.com.au>
18088         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18089         bound on margin widths.  It is set to the paper width/height.
18091         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18092         routine for the diamond.  This bug was found and fixed by Daniel Wang
18093         <danwang@CS.Princeton.EDU>
18095 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
18097         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18098         remove warning (OS/2 version).
18100 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18102         * README:
18103         Put a pointer to objects/custom/README.
18104         
18105 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18107         * dia.spec:
18108         Updated version to 0.80
18110         * configure.in:
18111         Updated version to 0.80cvs
18113 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18115         * Released Dia 0.80
18116         Tag called DIA_0_80
18117         
18118 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
18120         * app/Makefile.am
18121         * lib/Makefile.am
18122         * objects/UML/Makefile.am
18123         * objects/ER/Makefile.am
18124         * objects/network/Makefile.am
18125         * objects/standard/Makefile.am
18126         * objects/FS/Makefile.am
18127         * objects/sybase/Makefile.am
18128         * objects/flowchart/Makefile.am
18129         * objects/custom/Makefile.am
18130         Added -I$(top_srcdir)/intl which is needed for
18131         --with-included-gettext.
18133         * POTFILES.in
18134         Updated.
18135         
18136         * po/sv.po
18137         Updated swedish translation.
18139 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18141         * configure.in:
18142         Updated version number to 0.80.
18144         * KNOWN_BUGS:
18145         New file.
18147         * TODO:
18148         Updated. Moved bugs to KNOWN_BUGS.
18150         * NEWS:
18151         Updated with 0.80 release notes.
18152         
18153 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18154         
18155         * lib/orth_conn.c:
18156         For backwards compatibility, make sure handle 0 and 1 are the
18157         first and last handle. Fixes compatibility with 0.41, breaks
18158         compatibility with cvs version.
18159         Fixed bug in undo/redo of adding deleting endpoint segments
18160         when the endpoint was connected.
18161         Start OrthConn objects with three segments.
18163 1999-10-16  James Henstridge  <james@daa.com.au>
18165         * objects/custom/custom_object.c (custom_update_data): changed
18166         resizing behaviour a bit so that shapes don't grow huge when you try
18167         to resize them to smaller than the size required by the text box.
18168         Also, now shapes will not grow with fixed aspect ratio when you enter
18169         text into them unless the shape has the fixed aspect ratio flag set.
18171 1999-10-15  James Henstridge  <james@daa.com.au>
18173         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18175         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18177         * objects/flowchart/magdrum.shape: 
18178         * objects/flowchart/offlinestore.shape: 
18179         * objects/flowchart/punchedtape.shape: 
18180         * objects/flowchart/transmittape.shape: 
18181         * objects/flowchart/punchedcard.shape: new shapes.
18183         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18185         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18187         * objects/flowchart/collate.shape:
18188         * objects/flowchart/delay.shape:
18189         * objects/flowchart/extract.shape:
18190         * objects/flowchart/intstorage.shape:
18191         * objects/flowchart/magdisk.shape:
18192         * objects/flowchart/magtape.shape:
18193         * objects/flowchart/merge.shape:
18194         * objects/flowchart/or.shape:
18195         * objects/flowchart/sort.shape:
18196         * objects/flowchart/sumjunction.shape: new shapes.
18198 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
18200         * TODO (BUGS):
18201         Added bug:
18202         Entering an erronous command as print command
18203         crashes dia.
18205         * app/paginate_psprint.c:
18206         Save all print dialog values for next time.
18207         
18208         * app/Makefile.am:
18209         Remove custom lib from DIA_LIB_PATH.
18211 1999-10-14  James Henstridge  <james@daa.com.au>
18213         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18215         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18216         
18217         * objects/flowchart/offpageconn.shape: 
18218         * objects/flowchart/manualop.shape: 
18219         * objects/flowchart/preparation.shape: 
18220         * objects/flowchart/manualinput.shape: 
18221         * objects/flowchart/predefdproc.shape: 
18222         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18224 1999-10-13  James Henstridge  <james@daa.com.au>
18226         * app/diapagelayout.[ch]: added accessors to paper information.  The
18227         widget should be just about complete now.
18229         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18230         It actually does something now.
18232 1999-10-12  James Henstridge  <james@daa.com.au>
18234         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18235         for the page layout widget.
18237         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
18238         built yet as it is not complete.
18240         * objects/flowchart/flowchart.c: added new shapes to sheet.
18242         * objects/flowchart/display.shape:
18243         * objects/flowchart/transaction.shape: new shapes.
18245         * AUTHORS: added my name to the spec file.
18247         * dia.spec: include the dia desktop entry to the spec file.
18249         * Makefile.am: install the dia.desktop file.
18251         * dia.desktop: added a gnome desktop entry so you can start dia
18252         from the gnome panel menu.
18254 1999-10-11  James Henstridge  <james@daa.com.au>
18256         * objects/custom/custom_object.c:
18257         * objects/custom/shape_info.c: warning fixes.
18259         * objects/flowchart/document.shape: a shape file for the `document'
18260         flowchart shape.
18262         * lib/custom.h: new header with the custom shape prototypes.
18264         * app/app_procs.c: register custom objects as well.
18265         (register_objects_in): close shared libraries if they don't load
18266         correctly, and call g_module_make_resident on libraries that load
18267         correctly.
18269         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18271         * objects/custom/custom.c: removed get_version, added custom_ prefix
18272         to register_objects and register_sheets.
18274         * objects/custom/Makefile.am: converted to a normal library.
18276 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18278         * app/lineprops_area.c:
18279         * app/render_svg.c:
18280         * lib/objchange.c:
18281         * objects/custom/shape_info.c:
18282         * objects/flowchart/box.c:
18283         * objects/flowchart/diamond.c:
18284         * objects/flowchart/ellipse.c:
18285         * objects/flowchart/parallelogram.c:
18286         * objects/network/flash.c:
18287         * objects/network/scead-plug.c:
18288         * objects/sybase/client.c:
18289         Removed -Wall warnings.
18290         
18291         * objects/network/bus.c:
18292         Removed unused functions.
18294         * objects/FS/flow-ortho.c:
18295         * objects/FS/flow-poly.c:
18296         * objects/FS/flow.c:
18297         * objects/FS/function.c:
18298         
18299         Implemented "non-implemented" undo for FS objects.
18300         Now at least it won't crash.
18301         
18302 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18304         * objects/network/bus.c:
18305         Implemented undo.
18306         Handles are now added and removed using the object menu.
18307         Default to 6 handles instead of 10.
18308         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18309         name for backwards compatibility.
18311         * objects/network/network.c:
18312         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18313         name for backwards compatibility.
18315         * app/properties.[ch]:
18316         * app/undo.c:
18317         Update properties in properties dialog if the shown object
18318         is part of and ObjectChange (undo or redo).
18320         * lib/poly_conn.c:
18321         Remove old known bugs list.
18323         * objects/UML/class_dialog.c:
18324         Removed debug printf's.
18326 1999-10-10  James Henstridge  <james@daa.com.au>
18328         * objects/custom/custom.c (custom_object_load): new function that
18329         provides a nice entry point to the custom shape code for when it
18330         gets used by other libraries.
18332         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
18333         speeds builds up a bit.
18335         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18336         (SUBDIRS): do not descend into pixmaps subdirs.
18338         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18339         This speeds up build process.
18341         * objects/custom/custom.c (sheets): made variable static.
18343         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18344         renamed function.
18346         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18348         * objects/custom/custom.c: look in ~/.shapes instead of
18349         ~/.dia_shapes as the per-user shapes directory.
18351         * app/preferences.c (prefs_save): save config to ~/.diarc.
18352         (prefs_load): load configuration from ~/.diarc.  If the file
18353         does not exist, fallback on the old ~/.diarc location.
18355         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18356         on startup.
18357         (register_all_objects): look for user specific objects in
18358         ~/.objects rather than ~/.dia_libs.
18360 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18362         * configure.in:
18363         * app_procs.c:
18364         * objects/flowchart/box.c
18365         * objects/flowchart/ellipse.c
18366         * objects/flowchart/flowchart.c 
18367         Use gmodule for dynamic linking. As gmodule is using
18368         RTLD_GLOBAL i had to change flowchart box and ellipse
18369         so the typenames doesn't conflict with the standard
18370         box and ellipse.
18372         * message.c
18373         * commands.c
18374         Use button box to make dialogs look better.
18376 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
18378         * objects/UML/class_dialog.c:
18379         * objects/UML/class.h:
18380         Implemented undo for "UML - Class" objects.
18381         Not 100% tested yet.
18383         * objects/UML/classicon.c:
18384         * objects/UML/constraint.c:
18385         * objects/UML/dependency.c:
18386         * objects/UML/generalization.c:
18387         * objects/UML/implements.c:
18388         * objects/UML/large_package.c:
18389         * objects/UML/lifeline.c:
18390         * objects/UML/message.c:
18391         * objects/UML/object.c:
18392         * objects/UML/realizes.c:
18393         * objects/UML/state.c:
18394         * objects/UML/usecase.c:
18395         Removed warnings.
18396         
18397         * lib/connectionpoint.h:
18398         Fixed typo.
18399         
18400 1999-10-09  James Henstridge  <james@daa.com.au>
18402         * objects/custom/*.[ch]: added copyright notices to custom object
18403         files.
18405         * shapes/Circuit/hdiode.shape:
18406         * shapes/Circuit/hzener.shape: 
18407         * shapes/Circuit/opamp.shape:
18408         * shapes/Circuit/vdiode.shape:
18409         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18410         shapes look nice after the custom shape code changes.
18412         * objects/custom/README: updated docs to cover changes to drawing
18413         code.
18415         * objects/custom/custom_object.c (custom_draw): honour the line
18416         properties when drawing the shape.
18418         * objects/custom/shape_info.[ch]: added support for setting line
18419         properties for individual drawing elements in a custom shape.  You
18420         can set the dash style, dash length, cap style and join style.
18422 1999-10-07  James Henstridge  <james@daa.com.au>
18424         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18425         for foreground and background.
18427         * objects/custom/custom_object.c (custom_draw): use the new style
18428         information when drawing the object.
18430         * objects/custom/shape_info.[ch]: store all shape style info in the
18431         GraphicStyle structure.  This makes adding support for extra CSS
18432         attributes easier -- we don't have to keep adding extra arguments to
18433         a lot of functions.
18435 1999-10-05  James Henstridge  <james@daa.com.au>
18437         * lib/intl.c (unalias_lang): merged in changes from the i18n code
18438         swiped from gnome-libs.
18440 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
18442         * objects/standard/image.c (get_directory):
18443         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18445 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18447         * lib/poly_conn.c (polyconn_destroy):
18448         Fix bug. Access of freed memory.
18449         Rememeber, you can't free the handles of an object
18450         before calling object_destroy(), as it unconnects the handles
18451         therefore referencing them.
18453 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18455         * app/undo.c:
18456         undo_clear() didn't set stack->depth to zero.
18457         This made other undo functions crash after this had been called
18458         on a "full" stack.
18459         
18460         * dia.xpm:
18461         Slightly modified by Chris Love <clove@exactis.com>
18463 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18465         * objects/UML/class.h: 
18466         * objects/UML/class_dialog.c:
18467         Retrun NULL ObjectChange on class property change.
18468         This means no crashes, but "UML - Class" doesn't support undo yet.
18469         
18470 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18471         
18472         * lib/text.c:
18473         Indentation fix.
18475         * objects/UML/classicon.c:
18476         * objects/UML/dependency.c:
18477         * objects/UML/generalization.c:
18478         * objects/UML/implements.c:
18479         * objects/UML/large_package.c:
18480         * objects/UML/lifeline.c:
18481         * objects/UML/message.c:
18482         * objects/UML/object.c:
18483         * objects/UML/realizes.c:
18484         * objects/UML/state.c:
18485         * objects/UML/usecase.c:
18486         Update to new undo (w. get/set_state).
18487         Add object menu to add/delete segments.
18489 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
18491         * app/menus.c:
18492         Add equal distance alignment.
18494         * app/object_ops.c:
18495         Add equal distance alignment.
18496         Fix bug in adjacent alignment.
18498 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
18500         * objects/UML/constraint.c: 
18501         Update to new undo (w. get/set_state).
18503 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
18505         * app/paginate_psprint.c:
18506         Save (parts, more todo) of the info in the print dialog to the
18507         next time it's opened.
18508         Patch from Yo Ric Dude <ricdude@toad.net>
18510 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
18512         * configure.in:
18513         Updated version string to 0.41cvs.
18515         * objects/UML/assocition.c:
18516         Update to new undo (w. get/set_state).
18517         Add object menu to add/delete segments.
18519         * app/app_procs.c:
18520         Added function debug_break() and called it after all
18521         objects and sheets are loaded. Place a breakpoint here if you
18522         want to debug objects. All symbols should be loaded.
18524 1999-09-12  James Henstridge  <james@daa.com.au>
18526         * app/menus.c (display_menu_items): added print menu item.
18527         (filemenu): always add print menu item -- even if gnome-print is
18528         not installed.
18530         * app/commands.h, app/commands.c (file_print_callback): the print
18531         menu item is now available for both gnome-print and non gnome-print
18532         setups.
18534         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18535         print with the non gnome-print driver.
18537 1999-09-11  James Henstridge  <james@daa.com.au>
18539         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18540         printer dialog code out of commands.c.
18542         * app/paginate_psprint.c: new file containing the pagination code for
18543         psprint.
18545         * app/render_eps.c: made a few modifications so as well as producing
18546         EPS files, this renderer can be set up to do postscript printing.
18547         This basically entailed adding an extra function to create a RenderEPS
18548         renderer which did not bother setting the viewport for the document.
18549         That was left for the pagination code.
18551 1999-09-10  James Henstridge  <james@daa.com.au>
18553         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18554         gnome-print does not support elliptic arcs at the moment, approximate
18555         the ellipse with eight bezier curves.  This gives a pretty good
18556         match to a true ellipse.
18558 1999-09-09  James Henstridge  <james@daa.com.au>
18560         * app/commands.c (file_gnome_print_callback): added support for
18561         scaling the diagram.  Also fixed a few other bugs.
18563         * app/paginate_gnomeprint.c (print_page): added ability to scale
18564         document.  Fixed up test to see if the page has no objects on it.
18565         This should prevent some blank pages being printed.  Non square
18566         objects such as lines could still cause problems.
18568 1999-09-08  James Henstridge  <james@daa.com.au>
18570         * app/commands.c (file_gnome_print_callback): changed from using the
18571         standard printer selection dialog to one that also has a paper size
18572         selector as well.
18574         * commands.[ch]: added callbacks for the print menu item.  Currently
18575         it only does A4 output.  I will make it configurable soon.
18576         
18577         * app/menus.c: add a print diagram menu item if gnome-print support
18578         is enabled.
18579         
18580         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18581         bit higher level than the gnome-print renderer.  It splits the
18582         diagram into page size chunks and then renders them.  For each
18583         page, it only renders the objects whose bounding box intersects
18584         the page, and it sets the clip mask so that the diagram does not
18585         overlap the margins.
18586         
18587         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18588         that uses gnome-print as its back end.
18589         
18590         * configure.in: added a check for gnome-print.  It is disabled by
18591         default because the code is not really working correctly yet.
18593         * app/menus.c: the delete object menu item was missing from the
18594         GnomeUIInfo style menus.
18596 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18598         * configure.in
18599         Added japanese to ALL_LINGUAS.
18600         Fix for Linux on Alpha.
18602 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
18604         * app/create_object.c (create_object_button_press):
18605         Always initialize tool->obj. Otherwise we store a null
18606         in the undo Change.
18608         * lib/text.c:
18609         Set linestyle before drawing cursor.
18610         Fix undo of backwards delete.
18612 1999-09-05  James Henstridge  <james@daa.com.au>
18614         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18616         * app/render_svg.c (draw_image): some fixes so that the appropriate
18617         style attributes are set.  Before it was setting line styles on
18618         fill_* functions.  Now it only does this for the draw_* variants.
18620         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18621         variable so that custom shapes can be loaded.
18623         * shapes/: new directory for custom shapes.  The Circuit sheet has
18624         been moved here.
18626 1999-09-02  James Henstridge  <james@daa.com.au>
18628         * TODO: removed a few todo items that have been implemented.
18630         * app/interface.c (create_sheets): enabled the popup page menu to the
18631         notebook.  This can make it easier to select different sheets.
18633         * object/custom/Circuit/: added diode, zener diode, ground point and
18634         operational amplifier shapes.
18635         
18636         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18637         if you want the output.
18639         * objects/custom/shape_info.c (parse_path): same here.
18641         * objects/custom/load_sheet.c (load_with_readdir): don't print so
18642         much debugging output.  To get the previous level of output, define
18643         DEBUG_CUSTOM.
18645         * objects/custom/shape_info.c (parse_svg_node): polygons were being
18646         recorded as polylines in the ShapeInfo structure.
18648         * objects/custom/README: some notes on writing new custom shapes.
18649         
18650 1999-09-01  James Henstridge  <james@daa.com.au>
18652         * objects/custom/Circuit/hinductor.*:
18653         * objects/custom/Circuit/vinductor.*: added inductor shapes that
18654         also test out the bezier curve and SVG path support.
18655         
18656         * objects/custom/custom_object.c (custom_draw): added support for
18657         drawing bezier paths and filled shapes.
18659         * objects/custom/shape_info.c (parse_path): new function to parse
18660         SVG path elements.  It does not do quadratic beziers or elliptic
18661         arcs though.  Only moves, lines and cubic beziers.
18662         (*): added support for paths.
18664 1999-08-31  James Henstridge  <james@daa.com.au>
18666         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18668         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18669         interface
18671         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18672         interface
18674         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18675         interface.
18677         * lib/render_store.[ch]: use newer bezier functions.
18679         * lib/render.h: changed the bezier drawing functions to use an array
18680         of BezPoint structures instead of normal Point structures to allow
18681         lineto's mixed in with the curveto's.
18682         
18683         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18684         
18685         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18686         xpm images for different shapes to Makefile.
18688         * objects/custom/custom_object.c (custom_object_new): set the icon
18689         for the sheet button if there is one.  Otherwise fall back on the
18690         default custom object icon.
18692         * objects/custom/shape_info.c (load_shape_info): read the sheet
18693         icon name from the shape file.
18695         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18696         check the pixmap_file field for the name of a pixmap file to load
18697         for the tool.
18699         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
18700         at the end of the structure, and it isn't used if the pixmap field
18701         is non NULL, so it should not break binary compatibility.
18703         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
18704         added support for the use of an index.sheet file so you can specify
18705         the ordering of the shapes in the sheet, and also internationalise
18706         the sheet name and actually be able to give a description.  The old
18707         readdir based sheet loading code acts as a fallback if an index.sheet
18708         file can not be found.
18710         * objects/custom/custom_util.[ch]: new file containing useful routines
18711         needed by the custom object code.  Currently only contains a simple
18712         routine for resolving relative paths.
18714         * objects/custom/custom_object.c (custom_draw): fixed problem with
18715         drawing rectangles if the shape has been flipped.
18717 1999-08-30  James Henstridge  <james@daa.com.au>
18719         * objects/custom/custom_object.c (custom_get_object_menu): allow
18720         flipping of custom shapes.  This uses the miggle click object
18721         menu.
18723         * objects/custom/Circuit/npn.shape: fix aspect ratio.
18725         * objects/custom/custom_object.c (custom_update_data): honour the
18726         aspect ratio constraints.
18728         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
18729         tag parsing, so you can specify a free, fixed or a range for aspect
18730         ratios for the shape.
18732 1999-08-29  James Henstridge  <james@daa.com.au>
18734         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
18735         up shape namespace tag.
18737         * objects/custom/shape_info.c (load_shape_info): check xml:lang
18738         attribute on <description> elements to support i18n for custom
18739         shape descriptions.
18740         Also changed the shape namespace for custom shapes to something
18741         a little more sensible.
18743         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
18745         * lib/intl.c: new file containing some functions for i18n stuff.
18747         * app/layer_dialog.c (create_button_box): fixed a warning.
18749         * objects/custom/custom_object.c: use current line style.  Save dash
18750         length.
18752         * objects/flowchart/diamond.c: use current line style.  Save dash
18753         length.
18755         * objects/flowchart/parallelogram.c: use current line style.  Save
18756         dash length.
18758         * objects/flowchart/ellipse.c: use current line style.  Save dash
18759         length.
18761         * objects/flowchart/box.c: use current line style.  Save dash length.
18763         * objects/standard/ellipse.c: make ellipse use current line style.
18765         * objects/standard/box.c: use the line style set in the toolbox for
18766         new boxes, and remember the dash length.
18768         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
18769         rulers.
18771 1999-08-24  James Henstridge  <james@daa.com.au>
18773         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
18774         to try to stop ellipse to get infinite width/height when we resize,
18775         while trying to keep the text inside the ellipse.
18777         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
18778         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
18779         resizing behaviour, so that you can't push objects round the screen
18780         with the resize handles.
18782         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
18783         get the OK buttons in the dialogs to take default clicks.
18785         * objects/custom/custom_object.c: added code so that resizing the
18786         shape does not end up pushing it round the screen.
18788 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
18790         * app/display.[ch]:
18791         Generate rectangle with the union of the damaged regions.
18792         This is used to optimize the grid paint and the object rendering.
18793         display_render_pixmap passes this info to grid_draw() and data_render().
18795         * app/grid.[ch]:
18796         grid_draw doesn't draw grid lines outside of damaged rectangle.
18797         Sets dashlength when drawing non-solid grid.
18798         
18799         * lib/diagramdata.[ch]:
18800         data_render() and layer_render() takes an optional damaged rectangle
18801         argument. No objects not intersecting this are drawn.
18803         * app/diagram.c:
18804         Fix warning.
18805         Call data_render with NULL update rectangle.
18806         
18807 1999-08-23  James Henstridge  <james@daa.com.au>
18809         * objects/custom/custom_object.c (custom_update_data): if the aspect
18810         ratio is fixed, make sure the shape is not distorted.
18812         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
18813         a <fixaspectratio/> tag is given in the shape file.
18815         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
18816         added support for stroke-width, stroke and fill CSS attributes
18817         specified in style attributes of the SVG elements.  The line width
18818         is relative to the user specified line width.  The stroke and fill
18819         attributes can only be used to swap the foreground/background
18820         colours.
18822         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
18823         sensitivity on the dash length selector when this function is called.
18825         * objects/standard/arc.c: same.  Also handle dash length.
18826         * objects/standard/zigzagline.c: same.
18827         * objects/standard/polyline.c: same.  Also handle dash length.
18828         * objects/standard/line.c: use default arrow/line styles.
18830         * app/interface.c: added callbacks to set the default attributes.
18832         * lib/attributes.c: added implementations of these functions.
18834         * lib/attributes.h: added extra prototypes for the new line properties
18835         area in the toolbox.
18837         * app/interface.c (create_lineprops_area): added line properties
18838         area to bottom of toolbox.
18840         * app/lineprops_area.h: a header exporting a few routines of the
18841         line properties area widgets.
18843         * app/lineprops_area.c: new file containing a selector for arrows
18844         and line styles to go in the main toolbox.
18846 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
18848         * HACKING:
18849         Update Gtk+ 1.0.5 comment to 1.2.0.
18851         * INSTALL:
18852         Demand libtool 1.3
18854         * acconfig.h:
18855         Add HAVE_LIBPOPT
18857         * configure.in:
18858         Make sure we don't propagate -ldl and -lpopt to all LIBS
18859         by adding new var APP_LIBS that only app/dia links with.
18860                 
18861         * app/Makefile.am:
18862         Update run_dia.sh to load custom and flowchart objects.
18864         * objects/ER/Makefile.am:
18865         * objects/FS/Makefile.am:
18866         * objects/UML/Makefile.am:
18867         * objects/network/Makefile.am:
18868         * objects/standard/Makefile.am:
18869         * objects/sybase/Makefile.am:
18870         Don't build versioned libs.     
18871         
18872 1999-08-22  James Henstridge  <james@daa.com.au>
18874         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
18875         list.
18877         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
18878         should actually work a bit now.
18880         * objects/custom/Circuit/*: a test sheet for the custom shape code.
18881         It is a small collection of circuit elements.
18883         * objects/custom/shape_info.c: fixed up loading of polylines and
18884         polygons.  Before it was removing negative signs :(
18886         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
18887         placeholder was here before.  I still need to work out how to set
18888         icons for individual custom shapes.
18889         
18890         * objects/custom/custom.c: added code to load the shapes into sheets
18891         properly.  The shape files should be arranged into directories, and
18892         each directory represents a different sheet in the toolbox.  This
18893         will make it very easy to distribute a collection of dia shapes as
18894         a tarball.  I still need to work out internationalisation, and maybe
18895         also shape ordering in the sheet.
18897         * objects/custom/custom_object.c: fixed up dialogs for these objects.
18898         (custom_create): fix for objects without text areas.
18900         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
18901         and saving of custom object works correctly now.
18903 1999-08-21  James Henstridge  <james@daa.com.au>
18905         * objects/flowchart/ellipse.c: 
18906         * objects/flowchart/diamond.c: 
18907         * objects/flowchart/parallelogram.c: 
18908         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
18909         copying or loading these object types.  Not all the connection
18910         points would be initialised correctly.
18912         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
18913         similar here.
18915         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
18916         build a versioned library.  It will only ever be dlopen'd, so this
18917         is not a problem.
18919         * objects/custom/custom_object.c (custom_distance_from): allow
18920         selecting the object by clicking on the text.  This fixes problems
18921         where the text box is outside the graphic.
18923         * objects/custom/shape_info.c (load_shape_info): fixed up reading
18924         of connections points.  It should be possible to add connections
18925         to custom objects now.
18927         * objects/custom/custom_object.c (custom_update_data): fixed resizing
18928         due to changes to text.
18930         * configure.in: added extra makefiles.
18931         
18932         * objects/custom/shape_info.[ch]:
18933         * objects/custom/custom_object.c:
18934         * objects/custom/custom.c: the starts of custom shape support in dia.
18935         This is not built by default at the moment, since it is not quite
18936         complete.  When it is, it will let you create more shapes for dia
18937         without writing a line of C.  Its implementation includes buzzwords
18938         such as XML and SVG, so it must be good :)
18940 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
18942         * app/app_procs.c (app_exit): Use button labels "Quit" and
18943         "Cancel" instead of "Yes" and "No".
18944         Set default action to "Cancel" instead of "Quit".
18946 1999-08-19  James Henstridge  <james@daa.com.au>
18948         * objects/flowchart/flowchart.c: added ellipse object.
18949         
18950         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
18952 1999-08-18  James Henstridge  <james@daa.com.au>d
18954         * app/color_area.c (color_area_edit): small fix to prevent dia from
18955         segfaulting when you try to change the default foreground/background.
18957 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
18959         * app/diagram.[ch] (diagram_redraw_all):
18960         Added function that redraws all diagrams.
18962         * app/preferences.c (prefs_apply):
18963         Call diagram_redraw_all when prefs are changed.
18965         * app/render_svg.c:
18966         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
18967         older libxml's, and the old version works good enought here.
18968         
18969 1999-08-17  James Henstridge  <james@daa.com.au>
18971         * lib/widgets.c: changed handlers that were connected to the GtkButton
18972         "pressed" signal to connect to the "clicked" signal.  This removes the
18973         problem where dialogs are inactive until you click a mouse button
18974         after using a colour selector.
18976         * configure.in: added extra makefiles to AC_OUTPUT list.
18977         
18978         * objects/Makefile.am (SUBDIRS): added flowchart module
18980         * objects/flowchart/*: a collection of shapes for use in flowcharts.
18982         * app/color_area.c (color_area_events): similar here.
18984         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
18985         event is recieved with event->width == 0, which causes a warning if we
18986         try to create a pixmap of that width.
18988         * app/preferences.c, app/preferences.h, app/grid.c: added code to
18989         allow you to configure the colour of the grid, and also lets you
18990         set the grid to use dotted lines instead of solid ones.
18991         
18992         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
18993         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
18994         
18995         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
18996         export filter.  It is not quite complete, but for most shapes it
18997         works as expected.  Fonts still need a bit of work.
18999 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
19001         * configure.in: Added "en_GB" to ALL_LINGUAS.
19003 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19005         * menus.c
19006         Added Undo and Redo to GNOME menus.
19007         
19008         * objects/ER/attribute.c:
19009         * objects/ER/entity.c:
19010         * objects/ER/participation.c:
19011         * objects/ER/relationship.c:
19012         Added get/set_state functions.
19014         * objects/ER/participation.c:
19015         Added add/delete segment.
19017         * po/sv.po
19018         Updated Swedish translation.
19020 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19022         * app/preferences.[hc]:
19023         Added undo_depth pref.
19024         
19025         * app/undo.[ch]:
19026         Never grow stack larger than pref.undo_depth.
19027         undo_depth == 0 means unlimited.
19028         Converted printfs to conditionally compiled DEBUG_PRINTFs.
19029         
19030 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19032         * app/diagram.c:
19033         * app/group.c:
19034         * lib/object.h:
19035         * lib/render_object.c:
19036         * objects/ER/attribute.c:
19037         * objects/ER/entity.c:
19038         * objects/ER/participation.c:
19039         * objects/ER/relationship.c:
19040         * objects/FS/flow-ortho.c:
19041         * objects/FS/flow-poly.c:
19042         * objects/FS/flow.c:
19043         * objects/FS/function.c:
19044         * objects/UML/actor.c:
19045         * objects/UML/association.c:
19046         * objects/UML/class.c:
19047         * objects/UML/classicon.c:
19048         * objects/UML/component.c:
19049         * objects/UML/constraint.c:
19050         * objects/UML/dependency.c:
19051         * objects/UML/generalization.c:
19052         * objects/UML/implements.c:
19053         * objects/UML/large_package.c:
19054         * objects/UML/lifeline.c:
19055         * objects/UML/message.c:
19056         * objects/UML/note.c:
19057         * objects/UML/object.c:
19058         * objects/UML/realizes.c:
19059         * objects/UML/small_package.c:
19060         * objects/UML/state.c:
19061         * objects/UML/usecase.c:
19062         * objects/network/bus.c:
19063         * objects/standard/arc.c:
19064         * objects/standard/box.c:
19065         * objects/standard/ellipse.c:
19066         * objects/standard/image.c:
19067         * objects/standard/line.c:
19068         * objects/standard/polyline.c:
19069         * objects/standard/textobj.c:
19070         * objects/standard/zigzagline.c:
19071         Removed all traces of is_empty(). It doesn't work in an
19072         Undo/Redo world.
19074 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19076         * app/diagram.c:
19077         * app/group.[ch]:
19078         * app/undo.[ch]:
19079         Undoable grouping and ungrouping.
19081         * app/layer_dialog.c:
19082         * lib/diagramdata.[ch]:
19083         Undoable layer ops.
19085         * app/modify_tool.c:
19086         Undoable unconnect on handle move.
19088         * lib/orth_conn.[ch]:
19089         Working undoable add/remove segment.
19090         Removed endpoint_handles from OrthConn, renamed
19091         midpoint_handles to handles and put the endpoint
19092         handles there.
19094         * objects/standard/zigzagline.c:
19095         * objects/ER/participation.c:
19096         * objects/UML/association.c:
19097         * objects/UML/dependency.c:
19098         * objects/UML/generalization.c:
19099         * objects/UML/realizes.c:
19100         Update for the changes in OrthConn
19101         
19102 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
19104         * configure.in: Added "de" to ALL_LINGUAS.
19106 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
19108         * dia.1:
19109         Fixed typo.
19111         * app/display.c:
19112         * po/da.po:
19113         * po/fr.po:
19114         * po/hu.po:
19115         * po/no.po:
19116         * po/pl.po:
19117         * po/sv.po:
19118         Don't have the <Display> etc part of the menu strings
19119         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19121         * app/diagram.c:
19122         Don't have the <Display> etc part of the menu strings
19123         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19124         Don't remove is_empty() objects, that don't work with undo.
19126         * lib/objchange.[ch]:
19127         New files.
19128         Definition of ObjectChange. This is essentially an Change
19129         exported to the object libs. It encapsulates a change made
19130         to an objects internals. It can be applied, reverted and freed.
19131         There are also utility functions for doing ObjectChanges that
19132         only get/set the whole state of an object to store the change.
19133         This cannot be used when the object change deletes or adds a
19134         object which has references from other objects, eg. Handles which
19135         might be connected.
19137         * lib/Makefile.am:
19138         Added objchange.c and objchange.h.
19140         * lib/dia_image.c:
19141         Return NULL when loading fails.
19143         * lib/diamenu.h:
19144         Menu callbacks return an ObjectChange.
19146         * lib/dummy_dep.h:
19147         Reference objchange.o
19149         * lib/focus.h:
19150         Key events return ObjectChange if they modify the object.
19152         
19153         * lib/object.h:
19154         Added object_add_handle_at() function.
19155         Apply properties returns an ObjectChange.
19156         Remove ObjectState and the get/set state functions, these
19157         don't always work. Use the new ObjectChange instead.
19158         
19159         * lib/object.c:
19160         Added object_add_handle_at() function implementation.
19161         
19162         * lib/orth_conn.[ch]:
19163         Use ObjectChange. Not finished yet.
19164         Removed get/set/free state functions
19166         * lib/poly_conn.[ch]:
19167         Use ObjectChange.
19168         Don't remove segments that are small.
19169         Removed get/set/free state functions
19171         * lib/text.[ch]:
19172         Use ObjectChange.
19173         Added functions to get/set all text attributes.
19175         * objects/standard/arc.c:
19176         * objects/standard/box.c:
19177         * objects/standard/ellipse.c:
19178         * objects/standard/image.c:
19179         * objects/standard/line.c:
19180         * objects/standard/polyline.c:
19181         * objects/standard/textobj.c:
19182         * objects/standard/zigzagline.c:
19183         Use ObjectChange.
19184         fixed bug in image_set_state.
19185         zigzagline.c not finished yet.
19187         * app/disp_callbacks.c:
19188         Use ObjectChange that are returned from menu callbacks and
19189         key_events for undo.
19191         * app/properties.c:
19192         Use ObjectChange that are returned from properties apply
19193         for undo.
19195         * app/undo.c:
19196         * app/undo.h:
19197         New undo type: ObjectChangeChange. This wraps a change to the
19198         internals of an object (and ObjectChange) in code that does
19199         app specific stuff (object_add_updates etc.)
19201 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
19203         * lib/orth_conn.[ch]:
19204         Added code for add/delete segment.
19206         * objects/standard/zigzagline.c:
19207         Use the new orth_conn code.
19208         
19210 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19212         * objects/FS/Makefile.am
19213         Removed fs.h from sources.
19215         * Makefile.am
19216         * dia.1
19217         Added man page.
19219 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
19221         * app/disp_callbacks.c (ddisplay_canvas_events):
19222         Fix for bug. Every other arrow-key press got lost.
19223         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19225         * INSTALL:
19226         change automake.sh to autogen.sh
19227         
19228 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
19230         * app/diagram.c:
19231         Don't remove 'empty' objects.
19232         This violent destruction of objects won't work
19233         with the new undo framework.
19235         * app/disp_callbacks.c:
19236         Save undo info for object menu calls and key_events.
19238         * app/properties.c:
19239         Save undo info on properties apply.
19241         * lib/dia_image.[ch]:
19242         Add refcounting for images.
19244         * app/render_eps.c:
19245         * app/render_gdk.c:
19246         * lib/render.h:
19247         DiaImage * -> DiaImage
19249         * app/undo.[ch]:
19250         Add undo functions for object state changes.
19252         * lib/focus.h:
19253         * lib/text.c:
19254         change of semntics for focus->key_event.
19255         Now returns TRUE if the object recieving the event
19256         was changed.
19258         * lib/object.h:
19259         Comment changes.
19261         * lib/orth_conn.[ch]:
19262         Don't automatically create and delete segments when
19263         handles are moved. This is incompatible with undo.
19264         Added state get, set and free functions.
19266         * lib/orth_conn.[ch]:
19267         Added state get, set and free functions.
19269         * objects/UML/object.c:
19270         * objects/UML/uml.c:
19271         Fixed typo "UML - Objet" -> "UML - Object".
19272         Saved old for backwards compatibility.
19274         * objects/standard/arc.c:
19275         * objects/standard/box.c:
19276         * objects/standard/ellipse.c:
19277         * objects/standard/image.c:
19278         * objects/standard/line.c:
19279         * objects/standard/polyline.c:
19280         * objects/standard/textobj.c:
19281         * objects/standard/zigzagline.c:
19282         Added get/set state functions.
19283         Textobj has a redo crash-bug.
19284         Zigzagline needs object menus to add segments.
19285         
19287 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
19289         * app/render_eps.c (set_dashlength):
19290         Don't generate eps files with zero dash-length.
19292 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
19294         * app/commands.c:
19295         * app/create_object.c:
19296         * app/undo.[ch]:
19297         Finished undo for create and paste.
19298         
19299         * lib/object.h:
19300         Started properties undo.
19302 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
19304         * TODO:
19305         Added resizeable groups.
19307         * app/app_procs.c:
19308         Removed unused variable.
19310         * app/commands.c:
19311         * app/undo.[ch]:
19312         Undo/redo for cut/delete done.
19314         * app/create_object.c:
19315         * app/modify_tool.c:
19316         * lib/diagramdata.[ch]:
19317         * app/diagram.[ch]:
19318         renamed diagram_add_selected -> diagram_select
19319         renamed diagram_remove_selected -> diagram_unselect
19320         
19321         * app/properties.[ch]:
19322         Added properties_hide_if_shown() function.
19324 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
19326         * app/undo.[ch]:
19327         * app/Makefile.am:
19328         Undo functions.
19329         
19330         * app/commands.[ch]
19331         * app/modify_tool.[ch]
19332         * app/object_ops.[ch]
19333         * app/connectionpoint_ops.c
19334         * app/menus.c
19335         Use undo functions.
19336         WARNING: Not finished. Will break.
19337         Finished: move object, move handle.
19339         * app/diagram.[ch]
19340         Added diagram_selected_break_external() function.
19341         It removes all connections between selected objects
19342         and non-selected.
19343         Add undo stack to Diagram.
19344         
19345         * lib/diagramdata.[ch]
19346         Added layer_remove_objects() function
19347         
19348 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
19350         * objects/FS/Makefile.am
19351         * objects/sybase/Makefile.am
19352         Now uses GNOME_CFLAGS.
19354         * app/app_procs.c
19355         Now compiles with GNOME even if popt.h isn't available.
19357 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
19359         * configure.in
19360         * objects/Makefile.am
19361         * objects/sybase/*
19362         First version of sybase objects from
19363         Brian Bruns <camber@umcc.ais.org>
19365 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
19367         * configure.in
19368         Added fr to ALL_LINGUAS
19370 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
19372         * configure.in
19373         * app/app_procs.c
19374         Popt-code is activated if popt is available.
19376 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
19378         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19379         
19380         * lib/orth_conn.[ch]:
19381         Added orthconn_get_middle_handle()
19383         * lib/text.[ch]:
19384         Added text_set_cursor_at_end()
19385         
19386         * objects/FS/*
19387         Added first version of functions structure diagrams.
19388         
19389 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
19391         * app/modify_tool.c:
19392         Include math.h to remove warning.
19394         * app/commands.c (dialogs_properties_callback):
19395         Bring up correct properties dialog when selected
19396         from menu.
19397         From Dan Cohn <dan@internap.com>
19399 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
19401         Patch from Lars R. Clausen 
19402         
19403         * app/modify_tool.c:
19404         Changed abs to fabs.
19406 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
19408         * INSTALL: 
19409         * configure.in:
19410         Require Gtk+ 1.2.0
19412 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19414         Patches from Dan Cohn <dan@internap.com>
19415         
19416         * app/commands.[ch]: 
19417         * app/display.[ch]: 
19418         * app/menus.c:
19419         * app/preferences.[ch]:
19420         Implements ability to turn on/off connection points in
19421         current drawing and in global prefs.
19423 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19425         * lib/widgets.c (dia_line_style_selector_init): 
19426         Fixed warnings.
19427         
19428         * lib/diagramdata.c (layer_update_extents):
19429         Fixed uninitialized variable error.
19431 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
19433         * lib/dia_image.c:
19434         Made some changes to the gdk_imlib visual+colormap setup.
19436 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19438         * objects/UML/usecase.c: 
19439        * objects/UML/lifeline.c
19440         Fine tunning.
19442         * objects/UML/object.c: 
19443         * objects/UML/message.c: 
19444         Changed font from Courier to Helvetica.
19446         * lib/widgets.c: 
19447         * lib/widgets.h:
19448         Added dash lenth to the LineStyle widget.
19449         
19450         * objects/standard/ellipse.c :
19451         * objects/standard/zigzagline.c: 
19452         * objects/standard/line.c: 
19453         Added dash lenght property.
19455 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19457         * app/render_eps.c:
19458         First shot at latin1 encoded eps files.
19459         Works, but the eps files get a bit large.
19460         
19461 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19463         * objects/UML/class.[ch]: 
19464         * objects/UML/uml.[ch]:
19465         Reverted the line wrap changes.
19466         Some day this might return, but it has to be selectable and
19467         default to off for loaded objects, otherwise it breaks file
19468         format compatibility.
19469         There was also some complains about how it looked, so a making it
19470         selectable is good for this too.
19472 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
19474         * objects/UML/class.[ch]:
19475         Some indentation cleanup.
19476         Added wrap_lines variable to class.
19477         I'll fix the line break stuff tomorrow.
19479 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19481         * lib/dummy_dep.h:
19482         Added ref to poly_conn.o.
19484         * objects/standard/polyline.c (polyline_draw): 
19485         * objects/standard/zigzagline.c (zigzagline_draw): 
19486         * objects/standard/arc.c (arc_draw): 
19487         * objects/standard/line.c (line_draw):
19488         Draw lines before arrows. This makes hollow arrows not
19489         show the line.
19491 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19493         Changes from Kim Peasley <kpeasley@ior.com> 
19494                 
19495         * objects/UML/class.c:
19496         Break lines with long operations so classes won't be
19497         so wide.
19499         * objects/UML/uml.[ch]:
19500         Helperfunctions for the above.
19501         
19502         * objects/UML/objects.c:
19503         Fix bug that duplicated the text in the attributes
19504         textwidget each time the object was selected.
19505         
19506 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
19508         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19509         
19510         * app/modify_tool.c:
19511         * app/modify_tool.h:
19512         Control-drag is restricted to vertical/horizontal movement
19513         
19514         * lib/object.h:
19515         ModifierKeys argument added to object_move_handle
19517         * app/connectionpoint_ops.c:
19518         * app/create_object.c:
19519         * app/object_ops.c:
19520         * objects/ER/attribute.c:
19521         * objects/ER/entity.c:
19522         * objects/ER/participation.c:
19523         * objects/ER/relationship.c:
19524         * objects/UML/actor.c:
19525         * objects/UML/association.c:
19526         * objects/UML/class.c:
19527         * objects/UML/classicon.c:
19528         * objects/UML/component.c:
19529         * objects/UML/constraint.c:
19530         * objects/UML/dependency.c:
19531         * objects/UML/generalization.c:
19532         * objects/UML/implements.c:
19533         * objects/UML/large_package.c:
19534         * objects/UML/lifeline.c:
19535         * objects/UML/message.c:
19536         * objects/UML/note.c:
19537         * objects/UML/object.c:
19538         * objects/UML/realizes.c:
19539         * objects/UML/small_package.c:
19540         * objects/UML/state.c:
19541         * objects/UML/usecase.c:
19542         * objects/network/bus.c:
19543         * objects/standard/arc.c:
19544         * objects/standard/box.c:
19545         * objects/standard/ellipse.c:
19546         * objects/standard/image.c:
19547         * objects/standard/line.c:
19548         * objects/standard/polyline.c:
19549         * objects/standard/textobj.c:
19550         * objects/standard/zigzagline.c:
19551         Changed calls to move_handle to pass the new argument.
19552         
19553         * lib/widgets.c:
19554         * lib/widgets.h:
19555         Default line width, color etc #define'd
19556         
19557         * po/da.po:
19558         Updates of danish menus
19560 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19562         * dia.xpm
19563         * dia_gnome_icon.png
19564         * dia_gnome_menu_icon.png
19565         * dia_logo.png
19566         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19568         * app/commands.c
19569         About dialog shows dia_logo.png. Removed the GNOME about dialog.
19571         * Makefile.am
19572         Distribute the icons and install logo in pkgdatadir.
19573         
19574         * app/Makefile.am
19575         Added DATADIR-define.
19576         
19577 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19578         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19580         * dia.spec:
19581         Updated version number, made setup quiet, can build from cvs,
19582         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19584         * lib/Makefile.am
19585         * objects/ER/Makefile.am
19586         * objects/UML/Makefile.am
19587         * objects/network/Makefile.am
19588         * objects/standard/Makefile.am
19589         now builds better with gnome
19591         * objects/UML/class_dialog.c
19592         Fixed typo -> po files must be updated too!!
19593         
19594 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19596         * lib/dummy_dep.h:
19597         Added reference so that widgets.o gets linked to the app.
19599 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19601         * objects/UML/classicon.c: 
19602         Added object mode.
19604         * objects/UML/actor.c: 
19605         Changed position of 'snap-to-grid' so connection points are
19606         in the grid.
19608 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19610         * objects/UML/classicon.c:
19611         Changed position of 'snap-to-grid'.
19612         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19613         
19614 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19616         * objects/network/antenna.c
19617         * objects/network/flash.c
19618         * objects/network/hub.c
19619         * objects/network/modem.c
19620         * objects/network/modularswitch.c
19621         * objects/network/rj45plug.c
19622         * objects/network/scead-plug.c
19623         * objects/network/network.c
19624         * objects/network/Makefile.am
19625         * objects/network/pixmaps/antenna.xpm
19626         * objects/network/pixmaps/flash.xpm
19627         * objects/network/pixmaps/hub.xpm
19628         * objects/network/pixmaps/modem.xpm
19629         * objects/network/pixmaps/modularswitch.xpm
19630         * objects/network/pixmaps/rj45plug.xpm
19631         * objects/network/pixmaps/sceadplug.xpm
19632         * objects/network/pixmaps/Makefile.am
19633         Lots of new network objects from
19634         Roland Steinbach <roland@support-system.com>.
19636 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19638         * objects/UML/classicon.c: 
19639         Fixed connection positions, saved type as int (it has 3 states),
19640         and other small fixes.
19641         
19642 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
19644         * app/preferences.c:
19645         * app/load_save.c:
19646         Added preference compress_save. It lets dia save uncompressed
19647         xml files.
19649         * objects/UML/class.c:
19650         Fixed bug with size calculation on methods that had class scope.
19651         
19652 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19654         * objects/UML/usecase.c: 
19655         Added collaboration mode
19656         Fixed connection points with text > ellipse bug and other 
19657         small things
19659         * objects/UML/state.c:
19660         Fixed bug of bad position of text after being either end
19661         or begin, moved and returned to text
19663 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
19665         * app/preferences.c: Add prototype declaration for prefs_apply.
19667 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
19669         * app/preferences.c:
19670         Added 'ok' button.
19671         Apply don't hide window.
19673         * app/properties.c:
19674         Add 'ok' button.
19676         * objects/UML/object.c:
19677         * objdcts/UML/state.c:
19678         Some data was not copied on copy.
19680         This patch is from
19681         Ben Hochstedler <benh@eeyore.moneng.mei.com>
19683 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
19685         * app/Makefile.am:
19686         Changed link order between X and libxml.
19687         Some people had problems with an old libz in their
19688         x11 directory.  
19690 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
19692         * po/no.po: updated translation.
19693         
19694 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
19696         * lib/message.c (message_error):
19697         Fixed small error.
19699         * app/commands.[ch]:
19700         * app/diagram.[ch]:
19701         Added begining of xfig importing
19703 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19705         * objects/UML/pixmaps/state.xpm: 
19706         * objects/UML/state.c: 
19707         New UML object state machine.
19709         * objects/UML/uml.c:
19710         * objects/UML/Makefile.am:
19711         * objects/UML/pixmaps/Makefile.am:
19712         Added the state object.
19713         
19714 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
19716         * objects/UML/usecase.c: 
19717         Added dialog to allow move text outside the ellipse.
19719 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19721         * Released Dia 0.41
19722         Tag called DIA_0_41
19724         * NEWS:
19725         Updates for 0.41.
19726         
19727 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19729         * configure.in:
19730         Updated version number to 0.41
19732         * po/*.po:
19733         Update po-files
19735 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19737         * app/app_procs.c
19738         Changed errormessage for --export-to-ps. Removed call to 
19739         g_log_set_always_fatal().
19741         * app/diagram.c
19742         * app/disp_callbacks.c
19743         * app/load_save.c
19744         (i18n) Removed gettext from some debugmessages.
19746         * app/menus.c
19747         Small fix in GNOME-menus. Added warning that will help track
19748         problems with translations.
19750         * po/sv.po
19751         (i18n) Updated swedish translation.
19753 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
19755         * po/da.po:
19756         New updates
19758 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19760         * po/da.po:
19761         * po/no.po:
19762         Some fixes.
19763         
19764 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19766         * po/da.po:
19767         (i18n) Updated the danish translation.
19768         From Lars R. Clausen.
19770 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
19772         * app/menus.c
19773         (i18n) The popup menu is translated now.
19775         * po/sv.po
19776         (i18n) Updated swedish translation.
19778 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19780         * Released Dia 0.40
19781         Tag called DIA_0_40
19783         * NEWS:
19784         Updated for new release
19785         
19786 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19788         * objects/network/bus.c:
19789         Added initialization of properties dialog to NULL.
19791         * app/commands.c (edit_cut_callback):
19792         Update menu sensitivity when cut object.
19794         * app/modify_tool.c (click_select_object):
19795         * app/modify_tool.c (modify_button_release): 
19796         Call diagram_update_menu_sensitivity() when
19797         selecting objects to update stuff that depends
19798         on selected/not selected.
19800 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19802         * Makefile.am:
19803         Change order of subdir so that libintl.a builds.
19804         Now passed make distcheck.
19806 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19808         * lib/font.c (init_x11_font):
19809         Stupid bug fixed.
19811 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19813         * objects/UML/pixmaps/classicon.xpm: 
19814         * objects/UML/classicon.c:
19815         * objects/UML/uml.c:
19816         Added the class stereotype icon objects.
19818         * app/commands.c:
19819         Changed default ps extension from .ps to .eps.
19820         
19821 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19823         * lib/Makefile.am:
19824         Added diamenu.h and intl.h
19826         * lib/font.c:
19827         Stupid typo fix.
19828         
19829         * objects/UML/pixmaps/Makefile.am:
19830         Added message.xpm
19832         * objects/standard/pixmaps/Makefile.am:
19833         Added image.xpm
19835 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19837         * lib/font.c:
19838         Use a scalable font before fixed when real font not found.
19840         * app/commands.c:
19841         Removed warning.
19843         * objects/standard/image.c:
19844         Better handling of loading/saving of images.
19846         * INSTALL:
19847         Added some text about cvs, fonts and rewrote some parts.
19849         * TODO:
19850         Updated with new stuff.
19851         
19852         * configure.in:
19853         Bump up version number to 0.40.
19854         
19855 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19857         * app/display.c:
19858         Moved diagram_add_ddisplay() call into new_display().
19859         Fixed new_display to not use uninitialized variables
19860         causing loaded files to show up as black (or garbage).
19861         
19862         * app/commands.c:
19863         * app/app_procs.c:
19864         Removed unneeded calls to diagram_add_ddisplay().
19865         
19866 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19868         * objects/UML/lifeline.c:
19869         Fixed bug in copy.
19870         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19872         * objects/UML/message.c:
19873         Fixed bug loading messages with null-text.
19874         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19876 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
19878         * po/sv.po
19879         Updated swedish translation.
19881         * app/menus.c
19882         (GNOME) Removed help-browser from help menu. Fixed typo.
19884         * app/interface.c
19885         (GNOME) Accelerators in diagrams should work now. 
19887 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
19889         * app/app_procs.c
19890         * app/commands.c
19891         * app/defaults.c
19892         * app/disp_callbacks.c
19893         * app/display.c
19894         * app/interface.c
19895         * app/menus.c
19896         * app/preferences.c
19897         * app/render_eps.c
19898         * lib/diagramdata.c
19899         * lib/font.c
19900         * lib/message.c
19901         * lib/widgets.c
19902         * objects/ER/*.c
19903         * objects/UML/*.c
19904         * objects/network/*.c
19905         * objects/standard/*.c
19906         * po/update_pofiles_in.sh
19907         * po/POFILES.in
19908         More i18n. All strings (expect rare debug messages) can be
19909         translated now. Moved intl.h from app to lib. Updated
19910         update_pofiles_in.sh to check all .c-files.
19912 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
19914         * app/disp_callbacks.c (ddisplay_canvas_events):
19915         Don't drop keys while num-lock, scroll-lock etc is on.
19917 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19919         * app/render_eps.c (draw_image):
19920         Fixed exporting of images.
19921         Still not perfect, but not outright buggy.
19922         
19923 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19925         * configure.in:
19926         * po/hu.po:
19927         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
19929         * app/Makefile.am:
19930         Added $* to the dia call in run_dia.sh
19932 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19933         
19934         * lib/color.[ch]:
19935         Added color_equals() call.
19937         * objects/standard/arc.c:
19938         * objects/standard/line.c:
19939         Don't save unneccesary data.
19940         
19941         * objects/standard/box.c:
19942         * objects/standard/ellipse.c:
19943         * objects/standard/image.c:
19944         * objects/standard/polyline.c:
19945         * objects/standard/zigzagline.c:
19946         Share properties dialog.
19947         Don't save unneccesary data.
19948         
19949 1999-03-22  Seth Alves  <alves@hungry.com>
19951         * app/menus.c:
19952         * app/diagram.c:
19953         * app/display.c:
19954         small changes so that gnome menus aren't broken
19955         
19956 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19958         * po/da.po:
19959         Added danish translation from lrclause@cs.uiuc.edu.
19961         * po/POFILES.in:
19962         Updated file.
19964         * po/update_pofiles_in.sh:
19965         Added script that updates POFILES.in.
19966         This should probably be run automatically from somewhere.
19968 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
19970         * app/diagram.[ch]:
19971         Added function diagram_update_menu_sensitivity() which
19972         sets the sensitivity of some menu items. This function
19973         is called at each diagram state change (from diagram_modified()).
19974         This is needed  because otherwise the keyboard accelerators
19975         don't work correctly.
19977         * app/display.[ch]:
19978         Changed display_set_menu_sensitivity() to display_update_menu_state().
19979         Moved lots of code to diagram_update_menu_sensitivity() in
19980         diagram.c. Optimized to only look up menu-items from path:s once.
19981         
19982         * app/disp_callbacks.c:
19983         * app/interface.c:
19984         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
19985         Need to set GDK_FOCUS_CHANGE_MASK.
19986         
19987         * app/create_object.c:
19988         Call diagram_modified when an object has been created and
19989         selected so that the menu sensitivity is updated. 
19991         * app/menus.[ch]:
19992         removed menus_set_sensitive() and menus_set_state(). Exported
19993         renamed function menus_get_item_from_path().
19995 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
19997         * app/disp_callbacks.c:
19998         Show (empty) object menus on object that has none.
19999         Show title on object menus.
20001         * app/display.c:
20002         Set zoom factor correctly when opening new displays.
20003         Better setting of scrollbars.
20005         * app/grid.c:
20006         * app/menus.h:
20007         Some reformating cleanup.
20009         * lib/diamenu.h:
20010         Added title to object menus.
20012         * objects/*/*.c:
20013         Added object menu method (NULL-valued) to all objects.
20015         * objects/standard/polyline.c:
20016         Added title to object menu.
20018 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
20020         * app/preferences.[ch]:
20021         New files. Implements the preferences dialog and
20022         loading/saving of ~/.diarc.
20024         * app/Makefile.am:
20025         Added preferences.[ch].
20027         * app/app_procs.c:
20028         Load preferences on startup.
20030         * app/commands.[ch]:
20031         Added file_preferences_callback to show the preferences dialog.
20033         * app/create_object.c:
20034         Update extents when creating object.
20035         Use the reset_tools_after_create preferences setting.
20037         * app/display.c:
20038         Use preferences when creating new display.
20040         * app/menus.c:
20041         Add preferences to menu.
20043         * app/defaults.c:
20044         * app/layer_dialog.c:
20045         * app/properties.c:
20046         Don't allow shrinking of dialog.
20047         Add i18n of some strings.
20049 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
20050         * po/no.po:
20051         Norwegian translation added.
20052         
20053 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
20055         * objects/standard/line.c: 
20056         * objects/standard/arc.c: 
20057         * objects/standard/polyline.c: 
20058         * objects/standard/zigzagline.c:
20059         Loading of arrow data fixed.
20061 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
20063         * app/commands.c:
20064         Update extents when saving and exporting to postscript.
20065         Fixes a bug with postscript bounding-box being wrong.
20067         * app/defaults.c:
20068         Changed border width from 5 to 2.
20070         * app/group.c:
20071         Move grouped objects by the move-point of the first object.
20072         Fixes bug that made all objects in the group be off-grid
20073         when moving the group, even though all objects was on-grid.
20075         * app/layer_dialog.c:
20076         Update extents when changing layer.
20078 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20080        * objects/UML/uml.c: 
20081        * objects/UML/component.c: 
20082        * objects/UML/pixmaps/component.xpm: 
20083        Added the UML component object
20084         
20085 1999-03-04  Seth Alves  <alves@hungry.com>
20087         * objects/UML/generalization.c (generalization_create): avoid
20088         math on uninitialized genlz->text_width (NaN causes sigfpe)
20089         
20090         * objects/UML/realizes.c (realizes_create): same
20092         * objects/UML/dependency.c (dependency_create): same
20094 1999-03-01  Seth Alves  <alves@hungry.com>
20096         * app/display.c (ddisplay_active): don't fly a warning panel
20097         if ddisplay_active is called when no views are open.
20099         * app/commands.c (set_default_file_selection_directory): set
20100         file selector's default directory if there is already
20101         a document open.
20103 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20105         * INSTALL:
20106         New info about imlib requirements.
20108         * Configure.in:
20109         Added lib/pixmaps/Makefile to created makefiles.
20111         * app/app_procs.c:
20112         * app/commands.c:
20113         Change from obsoleted to newer gtk calls.
20114         
20115         * load_save.c:
20116         Pass filename of the diagram when loading and saving.
20117         This creates better oportunities to handle filename saving.
20119         * lib/object.h:
20120         Pass filenames to load and save methods.
20121         
20122         * lib/dia_image.[ch]:
20123         Added dia_image_get_broken() call that returns a image which
20124         is used for 'broken' images.
20125         
20126         * lib/pixmaps/.cvsignore:
20127         * lib/pixmaps/Makefile.am:
20128         * lib/pixmaps/broken.xpm:
20129         New files for the broken image bitmap.
20131         * lib/widgets.c:
20132         Fixed bug with double destroyed filedialog.
20134         * objects/*/*.c:
20135         Updated load and save prototypes to use the new filename argument.
20137         * objects/image.c:
20138         Render broken image instead of line when got no image.
20139         Use the new filename in load and save to save (if possible)
20140         relative pathnames and to better try to find loaded images.
20142 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20144         * TODO:
20145         Some updates to the todo file.
20146         
20147         * app/menus.c:
20148         * app/display.c:
20149         Place over/place over => sent to back/bring to front.
20150         Added some keyboard shortcuts to menus.
20151         
20152 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20154         * lib/dia_xml.c:
20155         Changed string saving/loading to a new method. This should
20156         be much better att handling &,<,> and whitespaces.
20157         Loading strings of the old kind is still supported for backwards
20158         compatibility.
20160         * samples/ER-demo.dia:
20161         * samples/UML-demo.dia:
20162         Updated to use the new strings.
20163         
20164         * app/load_save.c:
20165         statusbar modified update fix.
20167 1999-02-27  Seth Alves  <alves@hungry.com>
20169         * app/app_procs.c (app_init): added a --export-to-ps option
20170         which will cause dia to load a dia file and save it as ps
20171         and then exit.  this is a little bogus, because it still
20172         pops up a window.  this option only shows up if --enable-gnome
20173         is used
20175         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20176         menu when built with --enable-gnome
20178         * app/interface.c (create_display_shell): build status bar
20179         even if --enable-gnome is used
20181         * app/menus.c: menu fixes for --enable-gnome
20183         * app/commands.c (file_open_dialog_ok_callback): fixed up
20184         menus when --enable-gnome is used
20185         (file_export_to_eps_callback): set a default file name
20186         when dialog is created
20188 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20190         * objects/UML/association.c (association_create):
20191         Fixed usage of not initialized variable.
20192         Pointed out by Seth Alves <alves@hungry.com>.
20194 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20196         * configure.in:
20197         Fixed detection of gnome-xml.
20198         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20199         
20200         * app/app_procs.c:
20201         Fixed error detection on dlsym calls. 
20202         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20204 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
20206         * objects/UML/message.c (fill_in_dialog):
20207         Fixed warnings.
20209 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20211         * objects/standard/zigzagline.c:
20212         * objects/standard/polyline.c:
20213         * objects/standard/line.c:
20214         * objects/standard/arc.c:
20215         * lib/widgets.h:
20216         * lib/arrows.h:
20217         * lib/widgets.c:
20218         Support for sizeable arrows. 
20220         * objects/standard/box.c:
20221         * objects/standard/ellipse.c:
20222         * objects/standard/image.c:
20223         Changed creation handle to lower-right.
20224         Transparent box/ellipse.
20225         
20226         * objects/standard/image.c:
20227         Better layout of properties boxes.
20229 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20231         * objects/UML/message.c (fill_in_dialog): 
20232         Fixed dialog fill in. Common dialog for all messages.
20234         * objects/UML/object.c: 
20235         Added multiple instance. Dialog related bugs fixed.
20236         Common dialog for all instances. Completed copy and destroy.
20238         * objects/UML/lifeline.c (lifeline_load): 
20239         Conn initialization bug fixed and few bad loading prevention flags.
20240         Common dialog for all lifeline objects.
20241         
20242 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20244         * lib/dia_image.[ch]:
20245         More work on the DiaImage abstraction.
20246         
20247         * app/app_procs.c:
20248         * app/render_eps.c:
20249         * app/render_gdk.c:
20250         * objects/standard/image.c:
20251         Use the new DiaImage calls.
20253 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20255         * app/menus.c:
20256         * app/display.c:
20257         Reversed the meaning of align horizontal/vertical.
20259 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20261         * app/load_save.c (diagram_load):
20262         Statusbar update fix.
20264 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20266         * app/interface.c (create_display_shell):
20267         Fixed status bar size.
20268         
20269 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20271         * lib/dia_image.[ch]:
20272         Added extern declaration for dia_image_release.
20273         Removed dia_image_draw, as it's not neseccary.
20275 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20276         
20277         * app/object_ops.c: 
20278         * app/menus.c: 
20279         Added equal distance alignment both vertical and horizontal.
20280         
20281         * objects/UML/object.c: 
20282         Added a couple of attributes to load/read that were missing.
20284         * objects/UML/lifeline.c: 
20285         Better handling of handles. Fixed another bug I forgot to add
20286         to my last patch.
20287         
20288 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
20290         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20291         
20292         * lib/dia_image.[ch]:
20293         * lib/Makefile.am:
20294         New files. DiaImage wraps the GdkImlibImage.
20296         * lib/render.h:
20297         * app/render_eps.c:
20298         * app/render_gdk.c:
20299         * lib/render_store.[ch]:
20300         * objects/standard/image.c:
20301         Use the new DiaImagetype.
20303         * lib/widgets.c:
20304         Removed unused variable to eliminate  warning.
20306 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
20308         * objects/standard/box.c:
20309         Added rounded corners on the box object.
20311         * lib/widgets.[ch]:
20312         Updated the DiaFileSelector widget.
20313         
20314 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20316         * objects/UML/object.c (objet_draw): 
20317         Completed underlining of all object name lines. 
20319         * objects/UML/message.c (fill_in_dialog): 
20320         Fixed a bug that filled incorrectly the message's dialog.
20322         * objects/UML/lifeline.c (lifeline_load): 
20323         Some cleanning and fixed a couple of bugs that caused
20324         crashes after reading diagrams with lifelines.
20326         * lib/text.c: 
20327         Added flags to prevent crash with void strings
20329 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20330         * app/display.[ch]:
20331         Added statusbar to the display widget. Currently shows the zoom
20332         factor and modified flag of the viewed diagram. The statusbar is
20333         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20334         This caused the following additions:
20335         
20336         * app/diagram.[ch]:
20337         Added function diagram_set_modified. Calls
20338         ddisplay_update_statusbar for all displays showing the modified diagram.
20339         Changed diagram_modified to call diagram_set_modified.
20340         
20341         * app/interface.c:
20342         Added the creation of the statusbar.
20343         
20344         * app/load_save.c:
20345         diagram_save now calls diagram_set_modified instead of setting
20346         dia->modified. Needed to force call to display_update_statusbar
20347         
20348         * app/commands.c:
20349         Changed the way view_show_all works. Now calls ddisplay_zoom
20350         instead of directly setting the zoom_factor, so the zoom factor is
20351         correctly shown in the statusbar.
20353         * app/magnify.c:
20354         Fixed rubberband zoom to use ddisplay_zoom().
20355         
20356 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
20358         * app/app_procs.c
20359         Rudimentary GNOME session management.
20360         
20361         * app/disp_callbacks.c
20362         * app/interface.c
20363         * app/menus.c
20364         * app/menus.h
20365         GNOME menus. Problems: 
20366         Callbacks doesn't get user_data.
20367         Weird warnings when creating popup menus.
20368         menus_set_sensitive(), menus_set_state() doesn't work.
20370 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20372         * configure.in:
20373         Add AM_PATH_GDK_IMLIB() call.
20375         * app/Makefile.am:
20376         Add gdk_imlib to linking flags.
20378         * app/app_procs.c:
20379         Init gdk_imlib.
20380         Print library-loading error messages on stdout too.
20382         * app/interface.c:
20383         Add standard image to toolbox.
20384         
20385         * app/render_eps.c: 
20386         Set a more reasonable dot length.  Fixed
20387         missing initialization of dot length.
20388         Added draw_image methods.
20390         * app/render_gdk.c (new_gdk_renderer): 
20391         Dot a bit wider.  Looks good in normal mode now.
20393         * objects/standard/image.c:
20394         * objects/standard/pixmaps/image.xpm:
20395         New files. Standard object for images.
20396         
20397         * app/render_eps.c (set_linestyle):
20398         * app/render_gdk.c (set_linestyle):
20399         * lib/widgets.c (dia_line_style_selector_init): 
20400         * lib/render.h: 
20401         New line style DOTTED.
20403         * lib/render.h:
20404         * lib/render_store.c:
20405         Change DrawImage call to use gdk_imlib.
20407         * lib/widgets.[ch]:
20408         Added widgets for selecting files.
20409         Added dotted to the linestyle selector.
20411 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20413         * objects/network/printer.c:
20414         * objects/network/network.c:
20415         * objects/network/pixmaps/printer.xpm:
20416         * objects/network/.cvsignore:
20417         * objects/network/Makefile.am:
20418         * objects/network/pixmaps/Makefile.am:
20419         New printer object in network.
20420         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20422         * TODO:
20423         Added known XML bug.
20424         
20425 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20427         * app/load_save.c:
20428         * lib/dia_xml.c:
20429         Reverted back from #include <gnome-xml/tree.h> to
20430         #include <tree.h> as this is fixed by the xml-config program.
20431         The former way broke for some people.
20432         Reported by blizzard@redhat.com.
20434         * objects/UML/lifeline.c:
20435         * objects/UML/message.c:
20436         * objects/UML/object.c:
20437         Removed some warnings.
20438         
20439 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20441         * objects/UML/lifeline.c: 
20442         Fixed connection points over the life line when the focus of
20443         control is not drawn.
20445         * objects/UML/message.c: 
20446         Now a recursive message can be freely resized using the handles.
20448 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20450         * objects/UML/lifeline.c:
20451         Added connection points.
20452         Added properties dialog with the option to draw/hide focus of control
20453         box and destruction mark.
20455         * objects/UML/object.c: 
20456         Added properties dialog and stereotype, explicit state and attributes. 
20457         It's also possible to mark the object as active.
20459         * objects/UML/pixmaps/object.xpm: 
20460         Cosmetic change.
20462         * objects/UML/message.c:
20463         Added "recursive" message type (was not necessary to use OrthConn).
20465 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
20467         * objects/standard/arc.c:
20468         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20470 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
20472         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20473         
20474         * app/load_save.c:
20475         * lib/dia_xml.c:
20476         Update xml includes to gnome-xml/*.h.
20478         * objects/standard/arc.c:
20479         Only one property dialog per type.
20480         Fix arrows directions.
20482         * objects/standard/box.c:
20483         * objects/standard/ellipse.c:
20484         * objects/standard/textobj.c
20485         Added default properties dialog.
20486         
20488 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20490         * objects/UML/Makefile.am: 
20491         * objects/UML/uml.c:
20492         * objects/UML/lifeline.c: 
20493         * objects/UML/object.c: 
20494         * objects/UML/message.c:
20495         * objects/UML/pixmaps/lifeline.xpm: 
20496         * objects/UML/pixmaps/object.xpm: 
20497         * objects/UML/pixmaps/message.xpm:
20498         Added 3 new UML objects for dynamic modeling. To avoid internal 
20499         conflicts, the name "objet" is used for object "object".        
20501         * lib/arrows.[ch]: 
20502         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20503         UML messages.
20504         
20505 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
20507         * app/display.[ch]:
20508         * app/modify_tool.c:
20509         Added autoscrolling while doing rubber-band select.
20510         This patch from Matthias Köster
20511         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20512         
20514 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
20516         * app/defaults.[ch]:
20517         New files, deals with default properties dialog.
20519         * lib/diamenu.h:
20520         New file. Contains definitions for the new object menu.
20522         * lib/poly_conn.[ch]:
20523         New file. Base class for poly-line like objects.
20525         * objects/standard/polyline.c:
20526         * objects/standard/pixmaps/polyline.xpm:
20527         New files. Polyline object.
20529         * app/app_procs.c:
20530         Fixed bug with infinite loop when registering sheets.
20531         
20532         * app/commands.c:
20533         Removed unneccesary stuff.
20535         * app/disp_callbacks.c:
20536         Support for object menus.
20538         * app/interface.c:
20539         Added polyline to toolbox.
20540         Added call to tool_options_dialog_show() when double clicking on
20541         tool.
20543         * app/tool.[ch]:
20544         New function tool_options_dialog_show() for tool properties.
20546         * lib/arrows.[ch]:
20547         Added ARROW_NONE.
20549         * lib/object.h:
20550         Added ObjectType methods for handling object default dialogs.
20551         Added Object method for handling object_menu.
20552         Added unused methods to ObjectTypeOps for future binary
20553         compatibility.
20555         * lib/widgets.[ch]:
20556         Added DiaArrowTypeSelector widget.
20558         * objects/standard/arc.c:
20559         * objects/standard/zigzagline.c:
20560         Added support for default properties.
20562         * objects/standard/line.c:
20563         Added support for default properties.
20564         Just use one properties dialog for all line objects. NOTE: This
20565         seems to have a bug. We're working on it.
20567         * standard/standard.c:
20568         Add the polyline object.
20570 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
20572         * app/modify_tool.c:
20573         Commented out buggy transitive select function. It wasn't really
20574         meant to go into cvs.
20575         
20577 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20579         * autogen.sh:
20580         * acconfig.h:
20581         * configure.in:
20582         * Makefile.am:
20583         * app/Makefile.am:
20584         * po/POTFILES.in:
20585         * app/intl.h
20586         i18n-support.
20588         * po/sv.po:
20589         Swedish translation. Not completed.
20590         
20591         * configure.in:
20592         * acconfig.h:
20593         Added possibility to enable GNOME specific code with configure.
20595         * configure.in:
20596         Added possibility to set debug level with configure.
20598         * commands.[hc]:
20599         Added about dialog.
20601         * app_procs.c
20602         * commands.c
20603         * interface.c
20604         * menus.c
20605         Added some GNOME specific code. Not ready for use.
20607 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
20609         * INSTALL:
20610         Added text about needing gtk 1.1.13 and gnome-xml.
20611         
20612         * NEWS:
20613         Described changes since last version (0.20).
20615         Released version 0.30, tagged DIA_0_30.
20617 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
20619         * app/magnify.c (magnify_button_release):
20620         Fixed a problem when zooming in on a very small box would
20621         not release the grabbed pointer-focus.
20623 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20625         * app/load_save.c (diagram_load):
20626         Be somewhat more robust when loading files that
20627         are not diagrams.
20628         
20629 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20631         * app/app_procs.c:
20632         * objects/ER/er.c:
20633         * objects/UML/uml.c:
20634         * objects/network/network.c:
20635         * objects/standard/standard.c:
20636         Added versioning of object libraries.
20638         * app/create_object.c:
20639         Don't change tool when an object is created.
20640         
20641         * objects/network/network.c:
20643         * TODO:
20644         Update
20646 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
20648         * configure.in:
20649         Updated gtk requirement to Gtk+ 1.1.13.
20651         * app/display.c:
20652         Always add one screenful of scrolling space on
20653         each side of a diagram window.
20655 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
20657         * autogen.sh:
20658         Tell automake to auto-install missing files.
20660         * app/menus.c:
20661         Renamed deprecated Gtk+ function.
20663 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20665         * Makefile.am:
20666         * configure.in:
20667         * samples/Makefile.am:
20668         * samples/ER-demo.dia:
20669         * samples/UML-demo.dia:
20670         Added samples directory.
20671         Added samples for ER and UML.
20672         
20673         * app/commands.c:
20674         * app/disp_callbacks.c:
20675         * app/menus.c:
20676         Zoom is done by sqrt(2) instead of 2.
20677         Lots of more zoom options in the menu.
20679         * objects/ER/relationship.c:
20680         Relationships have 8 connectionpoints instead of 4.
20682         * objects/UML/class.c:
20683         UML class name font a bit smaller.
20684         Fixed stupid bug in the copy operation.
20685         
20686         * app/display.c:
20687         Displays are opened at 500x400 instead of 256x256.
20689         * app/load_save.c:
20690         Fixup of internal error message.
20692         * app/color_area.c:
20693         * app/diagram.c:
20694         * app/modify_tool.c:
20695         * lib/object.c:
20696         Removed debug printf's.
20697         
20698         * TODO (BUGS):
20699         Added new known bug.
20701 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20703         * app/interface.c:
20704         * app/menus.c:
20705         Fixed so accelerator groups work in all windows.
20706         Updated to new gtk function names.
20708         * TODO (BUGS):
20709         Removed fixed bug.
20711         * app/display.c:
20712         Updated to new gtk function names.
20713         Set sensitivity of the align menu items.        
20715         * objects/ER/pixmaps/Makefile.am:
20716         * objects/UML/pixmaps/Makefile.am:
20717         * objects/network/pixmaps/Makefile.am:
20718         Fix so that make dist works.
20720         * app/app_procs.c:
20721         * app/color_area.c:
20722         * app/commands.c:
20723         * app/diagram.c:
20724         * app/grid.c:
20725         * app/layer_dialog.c:
20726         * app/load_save.c:
20727         * app/object_ops.c:
20728         * app/properties.c:
20729         * lib/diagramdata.[ch]: 
20730         * lib/message.c:
20731         * lib/objects/ER/attribute.c:
20732         * lib/objects/ER/entity.c:
20733         * lib/objects/ER/participation.c:
20734         * lib/objects/ER/relationship.c:
20735         * lib/objects/ER/.c:
20736         * objects/UML/actor.c:
20737         * objects/UML/association.c:
20738         * objects/UML/class_dialog.c:
20739         * objects/UML/dependency.c:
20740         * objects/UML/generalization.c:
20741         * objects/UML/large_package.c:
20742         * objects/UML/realizes.c:
20743         * objects/UML/.c:
20744         * objects/UML/.c:
20745         Updated to new gtk function names.
20746         Removed warnings.
20748 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
20750         * TODO:
20751         Update TODO.
20753         * app/app_procs.c:
20754         Fixed loading of diagrams specified as arguments.
20756         * objects/ER/attribute.c:
20757         * objects/ER/entity.c:
20758         * objects/ER/er.c:
20759         * objects/ER/participation.c:
20760         * objects/ER/relationship.c:
20761         Updated the ER objects.
20762         
20764 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20766         * configure.in:
20767         * app/Makefile.am:
20768         * objects/Makefile.am:
20769         * objects/ER/attribute.c:
20770         * objects/ER/entity.c:
20771         * objects/ER/er.c:
20772         * objects/ER/participation.c:
20773         * objects/ER/relationship.c:
20774         * objects/ER/pixmaps/Makefile.am:
20775         * objects/ER/pixmaps/attribute.xpm:
20776         * objects/ER/pixmaps/entity.xpm:
20777         * objects/ER/pixmaps/participation.xpm:
20778         * objects/ER/pixmaps/relationship.xpm:
20779         * objects/ER/pixmaps/weakentity.xpm:
20780         First commit of entity relationship objects.
20781         These were done by hallon@lysator.liu.se.
20782         There are still stuff to do on these.
20783         
20784 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20786         * TODO:
20787         Updates.
20789         * app/diagram.[ch]:
20790         Change diagram_remove_all_selected to take new argument
20791         delete_empty. Empty objects are deleted only if it is TRUE.
20792         Removed call to close_eps_renderer. This is now done in end_render
20793         in the eps renderer.
20795         * app/create_object.c:
20796         * app/layer_dialog.c:
20797         Update calls to diagram_remove_all_selected.
20799         * app/commands.c:
20800         Update calls to diagram_remove_all_selected.
20801         Some code reformating.
20802         Changed order of adding updates i align_h and align_v.
20804         * app/modify_tool.c:
20805         Update calls to diagram_remove_all_selected.
20806         Added pointer grab when doing rubber-band selection, this fixes
20807         the bug when draging the box over to another window.
20809         * app/connectionpoint_ops.[ch]:
20810         diagram_update_connections_object changed to take an argument
20811         update_nonmoved. This lets connections that has not moved, but
20812         the stuff they're connected to has been moved work.
20813         Update calls to the new diagram_update_connections_object.
20815         * app/properties.c:
20816         Update calls to the new diagram_update_connections_object.
20817         Update extents when properties are applied.
20818         
20819         * app/disp_callbacks.c:
20820         Added support for zooming with the '+' and '-' keys.
20822         * app/menus.c:
20823         Removed old keyboard shortcuts for zoom.
20825         * lib/render.h:
20826         Added calls begin_render and end_render to renderer.
20827         These can be used for setup and cleanup.
20829         * lib/diagramdata.c:
20830         Added calls to begin_render and end_render in data_render.
20832         * app/render_gdk.c:
20833         Added begin_render and end_render.
20835         * app/render_eps.[ch]:
20836         Added begin_render and end_render.
20837         Moved close_eps_renderer code to end_render.
20838         Various fixes to the generated eps code. This fixes importing
20839         generated eps into LYX.
20840         
20841 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
20843         * TODO:
20844         Update of todo.
20845         
20846         * app/menus.c:
20847         Menus for alignment updated.
20849         * app/object_ops.[ch]:
20850         Functions for object alignment updated.
20852         * app/commands.[ch]:
20853         Object alignment callbacks updated.
20854         New diagrams are called Untitled-<nr>.
20856         * app/layer_dialog.c:
20857         Active layer selected when showing layers from new
20858         diagram.
20860         * app/load_save.c:
20861         Compress xml files when saving.
20862         Use xml namespace 'dia'.
20864         * lib/object.h:
20865         Minor comment update.
20867         * objects/UML/class_dialog.c:
20868         Cleanup of the gkt_list_item moving code.
20869         Fixed bug with update of operation when moving parameters.
20871 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
20873         * app/layer_dialog.[ch]:
20874         Fixed the rest of the layers dialog.
20876         * app/dialog.c:
20877         Added call to redo layer dialogs diagram list when changing
20878         diagram name.
20880         * lib/diagramdata.[ch]:
20881         Added data_raise_layer and data_lower_layer functions for
20882         raising/lowering layers. Added data_add_layer_at for adding a
20883         layer at a specified index.
20885 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
20887         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
20888                 
20889         * app/app_procs.c:
20890         Added support for reading diagrams from the command line.
20892 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
20894         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
20895                 
20896         * app/commands.[ch]:
20897         Added objects_align_callback().
20899         * app/menus.c:
20900         Added align objects to menu.
20902         * app/object_ops.[ch]:
20903         Add object_list_align().
20904         
20905 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
20906         * app/layer_dialog.[ch]:
20907         New files. Handles the layers dialog. Needs a bugfix for glib to
20908         work. Sent patch to gtk-list.
20909         
20910         * app/pixmaps/new.xpm:
20911         * app/pixmaps/eye.xbm:
20912         * app/pixmaps/lower.xpm:
20913         * app/pixmaps/raise.xpm:
20914         * app/pixmaps/delete.xpm:
20915         New files. Images for the layer dialog buttons.
20916         
20917         * lib/diagramdata.h
20918         * lib/diagramdata.c
20919         New files for the DiagramData and Layer structures and functions.
20920         
20921         * app/app_procs.c:
20922         Added call to create_layer_dialog() on startup.
20923         
20924         * app/commands.[ch]:
20925         New callbacks for showing the properties and layout dialog.
20926         Changes for the new DiagramData structure.
20928         * app/connectionpoint_ops.c:
20929         * app/cut_n_paste.c:
20930         * app/diagram.[ch]:
20931         * app/display.[ch]:
20932         * app/group.c:
20933         * app/modify_tool.c:
20934         * app/object_ops.[ch]:
20935         * app/render_eps.c:
20936         * lib/object.[ch]:
20937         Changes for the new DiagramData structure.
20939         * app/interface.c:
20940         * app/properties.c:
20941         Set correct wmclasses.
20943         * app/load_save.c:
20944         Fix load and save of layers.
20946         * diagram.dtd:
20947         Update DTD for layers.
20948         
20949         * app/menus.c:
20950         New menus for dialogs.
20952         
20953         * TODO:
20954         Some updates.
20955         
20956 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
20958         * TODO:
20959         Removed the gtk 1.1.5 stuff.
20961         * configure.in:
20962         Updated gtk check to version 1.1.5.
20963         Updated version from 0.20 to 0.30
20965         * app/commands.[ch]:
20966         Updated some callbacks to be of type GtkItemFactoryCallback1.
20967         Not all are done yet, but it works anyway.
20969         * app/display.h:
20970         Removed Gtk 1.0.0 GtkAcceleratorTable references.
20971         
20972         * app/interface.c:
20973         * app/menus.[ch]:
20974         Update to Gtk 1.1.x functions.
20975         Use ItemFactory instead of MenuFactory.
20976         
20977         * app/render_gdk.c:
20978         Removed Gtk 1.0.0 references.
20980         * objects/UML/class_dialog.c:
20981         Scrolled window updates for Gtk 1.1.5.
20982         
20983         * lib/dia_xml.c:
20984         Removed ugly fix for gnome-xml bug. Make sure you get the
20985         newest version of gnome-xml from CVS.
20986         
20987 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
20989         * TODO:
20990         Removed the xml load/save line.
20992         * lib/files.[ch]:
20993         Removed files.
20994         
20995         * lib/Makefile.am:
20996         Removed building of files.c
20998         * app/load_save.c:
20999         * lib/connection.c:
21000         * lib/element.c:
21001         * lib/object.c:
21002         * lib/orth_conn.c:
21003         * lib/render_object.c:
21004         * objects/UML/actor.c:
21005         * objects/UML/association.c:
21006         * objects/UML/class.c:
21007         * objects/UML/constraint.c:
21008         * objects/UML/dependency.c:
21009         * objects/UML/generalization.c:
21010         * objects/UML/implements.c:
21011         * objects/UML/large_package.c:
21012         * objects/UML/note.c:
21013         * objects/UML/realizes.c:
21014         * objects/UML/small_package.c:
21015         * objects/UML/uml.c:
21016         * objects/UML/usecase.c:
21017         * objects/network/bus.c:
21018         * objects/standard/arc.c:
21019         * objects/standard/box.c:
21020         * objects/standard/ellipse.c:
21021         * objects/standard/line.c:
21022         * objects/standard/textobj.c:
21023         * objects/standard/zigzagline.c:
21024         Removed all includes of files.h
21026         
21027 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
21029         * dialog.dtd:
21030         Made the val property of string be implied.
21031         This makes it possible to save strings that
21032         are NULL. Just leave out val.
21034         * objects/lib/dia_xml.c:
21035         Fixed string so that it is possible to save strings
21036         that are NULL. Also made an ugly workaround of a
21037         bug in gnome-xml which removes empty properties.
21038         
21039         * objects/lib/orth_conn.c:
21040         Fixed a bug in saving. Forgot to step through the
21041         directions.
21042         
21043         * objects/UML/association.c: 
21044         * objects/UML/class.c: 
21045         * objects/UML/constraint.c: 
21046         * objects/UML/dependency.c: 
21047         * objects/UML/generalization.c: 
21048         * objects/UML/implements.c: 
21049         * objects/UML/large_package.c: 
21050         * objects/UML/note.c: 
21051         * objects/UML/small_package.c:
21052         * objects/UML/realizes.c:
21053         * objects/UML/usecase.c: 
21054         * objects/UML/actor.c: 
21055         Fixed UML objects to save as xml.
21056         The last two were done by asierra@servidor.unam.mx (asierra-981204)
21057         
21058         * objects/UML/uml.[ch]:
21059         Updated *_write() and *_read() functions to use xml.
21061         * objects/network/bus.c: 
21062         * objects/network/computer.c: 
21063         * objects/network/disc.c: 
21064         * objects/network/monitor.c:
21065         Updated network diagrams to use xml.
21067 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
21069         * dialog.dtd:
21070         New file. DTD that describes the xml file format
21071         dia uses.
21073         * lib/dia_xml.[ch]:
21074         New files. Support for saving object to xml files.
21076         * configure.in:
21077         * app/Makefile.am:
21078         * lib/Makefile.am:
21079         Added check for and usage of gnome-xml library.
21081         * app/load_save.c:
21082         Major chages. Now saves/loads diagrams as xml.
21084         * lib/object.[ch]:
21085         * lib/element.[ch]:
21086         * lib/connection.[ch]:
21087         * lib/orth_conn.[ch]:
21088         * lib/render_object.[ch]:
21089         * lib/text.[ch]:
21090         Updated object support load/save functions for xml:
21092         * object/standard/arc.c:
21093         * object/standard/box.c:
21094         * object/standard/ellipse.c:
21095         * object/standard/line.c:
21096         * object/standard/textobj.c:
21097         * object/standard/zigzagline.c:
21098         Updated all standard objects to use xml.
21099         
21100         NOTE NOTE NOTE
21101         Only the standard objects are converted right now, don't
21102         save or load uml or network diagrams yet. Also, since this
21103         is new code it is deemed a bit unstable.
21104         
21105         * TODO
21106         Added a know bug.
21108 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
21110         * objects/UML/class.c:
21111         Changed classname font to Helvetica.
21112         Added more space above the classname
21114         * objects/UML/usecase.c:
21115         Correct placements of connectionpoints on ellipse.
21116         Better algorithm for deciding aspect ration on
21117         ellipse.
21119         These changes were made by Alejandro Aguilar Sierra
21120         <asierra@servidor.unam.mx>. (asierra-981201)
21122 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21124         * objects/UML/actor.c:
21125         Changed the extents and alignment of the element
21126         and the text.
21128         * objects/UML/.cvsignore:
21129         Added usecase.lo and actor.lo.
21131 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21133         * objects/UML/actor.c:
21134         * objects/UML/usecase.c:
21135         * objects/UML/pixmaps/actor.xpm:
21136         * objects/UML/pixmaps/case.xpm:
21137         New files. Implements usecase and actor UML objects.
21138         These objects are done by Alejandro Aguilar Sierra
21139         <asierra@servidor.unam.mx>.
21140         
21141         * objects/UML/Makefile.am:
21142         * objects/UML/pixmaps/Makefile.am:
21143         Added usecase and actor to makefile.
21144         
21145         * AUTHORS:
21146         Added Alejandro and Jerome to autors list.
21147         
21148 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
21150         * objects/UML/class.c (umlclass_load):
21151         Fixed typo. Reported by Jerome.Abela@solsoft.fr
21153 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21155         * app/properties.c:
21156         Update connections when doing apply in the properties window.
21158         * objects/UML/uml.[ch]:
21159         * objects/UML/class.[ch]:
21160         * objects/UML/class_dialog.c:
21161         Added connection points on both sides of attributes and
21162         operations in UML classes.
21163         Based on idea from Jerome.Abela@solsoft.fr
21164         
21165 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21167         * README:
21168         Some new documentation about handles and connectionpoints.
21169         
21170         * lib/object.[ch]:
21171         Added functions object_add_connectionpoint and
21172         object_remove_connectionpoint for handling a dynamic
21173         number of connectionpoints.
21175         * objects/UML/class.c:
21176         Only reserve space for stereotype when it is shown.
21178         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21180 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
21182         * app/connectionpoint_ops.c:
21183         * app/commands.c:
21184         * app/disp_callbacks.c:
21185         * app/display.[ch]:
21186         * app/grid.c:
21187         * app/handle_ops.c:
21188         * app/magnify.c:
21189         * app/modify_tool.c:
21190         * app/render_gdk.[ch]:
21191         * lib/render.h:
21192         Huge cleanup of internal rendering system.
21193         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21194         This gives a few new methods for Interactive Renderers for setting
21195         clipping regions and drawing pixel based lines and rects.
21196         Updated the rest of the code to use the new stuff.
21197         
21198         * app/render_eps.c:
21199         Fixed warning.
21201         * lib/widgets.c:
21202         * objects/standard/zigzagline.c
21203         Fixed unused variable warnings.
21205         * lib/font.c:
21206         Fixedbug with stringwidth where width==0.
21208         * TODO:
21209         Added known bug.
21211 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
21213         * lib/widgets.[ch]:
21214         Added suppot for setting the font of a
21215         DiaFontSelector widget.
21216         Also fixed some typos in the header.
21218         * lib/object.h: 
21219         Added a comment about the GetPRoperties method call.
21220         You have to make sure to update widget state when
21221         this method is called. (Not all objects do this yet,
21222         to be fixed.)
21224         * TODO:
21225         Some small updates
21227 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
21229         * lib/font.c
21230         Fixed problem with height of ascent and descent for fonts.
21231         It didn't use the whole height (==ascent+descent) when calculatine
21232         ascent_ratio and descent_ratio.
21234         * objects/standard/textobj.c:
21235         * objects/standard/box.c:
21236         * objects/standard/ellipse.c:
21237         * objects/standard/line.c:
21238         * objects/standard/arc.c:
21239         Updated and added property dialogs for these objects.
21240         Also added line width/color/style to those objects
21241         that didn't have it.
21242         This change breaks fileformat compatibility for these objects.
21243         
21244         * objects/standard/zigzagline.c:
21245         Changed zigzagline to be based on OrthConn, much nicer.
21246         Also added line style and color to properties.
21247         This change breaks fileformat compatibility for zigzagline.
21249         * lib/message.c:
21250         Fixed bug in message(). Forgot a pair of '&'.
21252 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
21254         * lib/widgets.[ch]:
21255         Added DiaColorSelector widget.
21256         This is a colored button that pops up a color selection
21257         dialog when pressed.
21259 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
21261         * lib/widgets.[ch]:
21262         * lib/Makefile.am:
21263         New files, added widgets for selecting fonts, alignment
21264         and line-style. Will be used later.
21266 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
21268         * app/Makefile.am:
21269         * lib/Makefile.am:
21270         * objects/UML/Makefile.am:
21271         * objects/network/Makefile.am:
21272         * objects/standard/Makefile.am:
21273         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21274         in all Makefile.am.
21276 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
21278         * app/handle_ops.c (handle_draw):
21279         connected HANDLE_MINOR_CONTROL also becomes red.
21281 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
21283         * Makefile.am:
21284         removed -ldl from linking. This is added if needed by configure.
21286         * app/app_procs.c:
21287         Open dlls with RTLD_LAZY if it is defined.
21288         Some cleanups: char *error -> const char *error
21289         Added fprintf()'s to where we exited because of errors.
21291         * lib/files.c:
21292         Include <sys/types.h>
21294 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
21296         * acconfig.h:
21297         * configure.in:
21298         * app/app_procs.c:
21299         Detect dlopen better.
21300         Detect wether dlopen needs an underscore in the identifier.
21301         This code was mostly borrowed from guile.
21303         * lib/sheet.[ch]:
21304         * app/app_procs.c:
21305         * objects/standard/standard.c:
21306         * objects/network/network.c:
21307         * objects/UML/uml.c:
21308         * most objects:
21309         Changed the way sheets reference objects to use just the
21310         name. Changed module loading to a two stage model:
21311         First register_objects() is called for all modules.
21312         Then register_sheets() is called. This means that
21313         sheets can safely include objects from other modules.
21314         
21316 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21318         * objects/network/bus.c:
21319         * objects/network/network.c:
21320         * objects/network/Makefile.am:
21321         New file bus.c. Added new object: Ethernet bus.
21323         * objects/standard/box.c:
21324         Added call to gtk_spin_button_set_numeric for linewidth spinner
21325         in property dialog.
21327 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21329         * app/connectionpoint_ops.c:
21330         * app/create_object.c:
21331         * app/group.c:
21332         * app/handle_ops.c:
21333         * app/modify_tool.c:
21334         * lib/connection.c:
21335         * lib/element.c:
21336         * lib/handle.h:
21337         * lib/object.c:
21338         * lib/orth_conn.c:
21339         * loads of objects:
21340         Changed handle->connectable to handle->connect_type.
21341         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21342         that their connections don't break when moving objects.
21344         * app/diagram.c:
21345         Always select the last handle in an object that has
21346         the closest distance.
21347         
21348         * lib/geometry.[ch]:
21349         Added rectangle_add_point function.
21350         
21352 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
21354         * app/properties.[ch]: New files. Handles the new properties
21355         dialog.
21357         * app/modify_tool.c: Changed to use new properties dialog.
21359         * app/object_ops.[ch]: Removed object_changed_callback, as it's
21360         not needed anymore. This is now handled differently in
21361         properties.c
21363         * lib/object.[ch]:
21364         Changed the properties ops for objects. Removed typedefs
21365         ChangedObjectTime and ObjectChangedFunc needed for the old way.
21366         Added object_return_null function.
21367         
21368         * app/group.c:
21369         * lib/render_object.c:
21370         * objects/*/*.c:
21371         Changed objects to use the new properties dialog.
21372         
21374 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
21376         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21377         builddir.
21379         * autogen.sh: New file. Copied from gtk and added a call to
21380         libtoolize. Anyone knows why this isn't done in gtk?
21382         * Removed autogenerated files.
21384 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
21386         * Added call setlocale(LC_NUMERIC, "C") so that formating of
21387           floating-point numbers in postscript output will be correct.
21388         * Did some cleanup of generated postscript files.